/* ═══════════════════════════════════════════════════════════════
   TCMC GridView Documentation — style.css  (Light Mode)
   Design: Clean professional white, navy sidebar, teal accents
═══════════════════════════════════════════════════════════════ */

/* ── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light palette */
  --bg:           #f5f7fa;
  --bg-card:      #ffffff;
  --bg-elevated:  #f0f4f8;
  --bg-hover:     #eef2f7;
  --border:       #e2e8f0;
  --border-soft:  #cbd5e1;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  /* Sidebar stays dark for premium look */
  --sidebar-bg:      #0f172a;
  --sidebar-border:  #1e293b;
  --sidebar-text:    #94a3b8;
  --sidebar-active:  #f0f9ff;
  --sidebar-label:   #475569;

  --teal:        #0284c7;
  --teal-soft:   #e0f2fe;
  --teal-border: #bae6fd;
  --teal-text:   #0369a1;
  --green:       #059669;
  --green-soft:  #d1fae5;
  --green-border:#6ee7b7;
  --amber:       #d97706;
  --amber-soft:  #fef3c7;
  --amber-border:#fcd34d;
  --red:         #dc2626;
  --red-soft:    #fee2e2;
  --red-border:  #fca5a5;

  --sidebar-w: 264px;
  --section-max: 1080px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);

  --font:      'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: 180ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  line-height: 1.6;
}

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 99px; }

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 16px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #0284c7, #059669);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-title { font-size: 15px; font-weight: 700; color: #f1f5f9; line-height: 1.2; }
.logo-sub { font-size: 11px; color: var(--sidebar-label); }

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sidebar-label);
  padding: 16px 20px 6px;
}

.nav-item {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--sidebar-text);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}
.nav-item:hover {
  color: #e2e8f0;
  background: #1e293b;
  border-left-color: #334155;
}
.nav-item.active {
  color: #38bdf8;
  background: #082f49;
  border-left-color: #38bdf8;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px 0;
}
.savings-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #052e16;
  border: 1px solid #166534;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  color: #4ade80;
  font-weight: 600;
}
.savings-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* ── MAIN CONTENT ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
}

/* ── SECTIONS ────────────────────────────────────────────────── */
.section {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 72px 52px;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.section.visible { opacity: 1; transform: none; }
.section:last-child { border-bottom: none; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.section-header { margin-bottom: 44px; }
.section-badge {
  display: inline-block;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  color: var(--teal-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -.5px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.7;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #f5f7fa 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-badge {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.hero-title {
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: #0f172a;
}
.gradient-text {
  background: linear-gradient(135deg, #0284c7, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  width: fit-content;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}
.hero-stat { text-align: center; padding: 0 28px; }
.hero-stat-value { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -1px; }
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.hero-stat-divider { width: 1px; height: 44px; background: var(--border); flex-shrink: 0; }

.scroll-hint {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  color: var(--text-muted); font-size: 13px;
}
.scroll-arrow { animation: bounce 2s ease-in-out infinite; font-size: 18px; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ── PIPELINE ────────────────────────────────────────────────── */
.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 32px;
}
.pipeline-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.pipeline-step:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.step-icon { font-size: 26px; margin-bottom: 12px; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.pipeline-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 18px;
  margin-top: 55px;
  flex-shrink: 0;
}

.pipeline-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green { background: var(--green); }

/* ── ANNOTATED SCREENSHOT ────────────────────────────────────── */
.annotated-screenshot-block {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}
.annotated-screenshot-block.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.annotated-screenshot-block.reverse > * { direction: ltr; }

.screenshot-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}
.screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.tall-shot { max-height: 560px; overflow: hidden; }
.tall-shot .screenshot-img { object-fit: cover; object-position: top; }

/* ── HIGHLIGHT ZONES ─────────────────────────────────────────── */
.highlight-zone {
  position: absolute;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: crosshair;
  transition: all 180ms ease;
  background: transparent;
  z-index: 10;
}
.highlight-zone:hover {
  border-color: rgba(2, 132, 199, .85);
  background: rgba(2, 132, 199, .1);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .15);
}

/* annotation legend */
.annotation-legend {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.legend-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.legend-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; }
.legend-items { display: flex; flex-direction: column; gap: 13px; }
.legend-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px;
}
.legend-item strong { display: block; font-size: 13px; margin-bottom: 3px; color: var(--text-primary); }
.legend-item p { color: var(--text-secondary); font-size: 12px; line-height: 1.4; }

.legend-color {
  width: 13px; height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid;
}
.legend-color.c1 { background: #e0f2fe; border-color: #0284c7; }
.legend-color.c2 { background: #d1fae5; border-color: #059669; }
.legend-color.c3 { background: #fef3c7; border-color: #d97706; }
.legend-color.c4 { background: #ede9fe; border-color: #7c3aed; }
.legend-color.c5 { background: #fee2e2; border-color: #dc2626; }

/* ── METRICS GRID ────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.metric-card:hover {
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.metric-card.highlight-metric {
  background: var(--red-soft);
  border-color: var(--red-border);
}
.metric-icon { font-size: 22px; margin-bottom: 12px; }
.metric-value { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: var(--text-primary); }
.metric-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.metric-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ── IMPACT BANNER ───────────────────────────────────────────── */
.impact-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: var(--shadow-sm);
}
.impact-item {
  background: var(--bg-card);
  padding: 24px 20px;
  text-align: center;
  transition: background var(--transition);
}
.impact-item:hover { background: var(--bg-hover); }
.impact-item.highlight-impact { background: #f0fdf4; }
.impact-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: 8px; }
.impact-value.green-val { color: var(--green); }
.impact-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ── ALERT CARDS ─────────────────────────────────────────────── */
.alert-level-card {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  border: 1px solid;
}
.alert-level-card.critical { background: var(--red-soft); border-color: var(--red-border); }
.alert-level-card.high { background: var(--amber-soft); border-color: var(--amber-border); }
.alert-level-card.watch { background: var(--teal-soft); border-color: var(--teal-border); }

.alert-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.alert-level-card.critical .alert-badge { background: #fecaca; color: #dc2626; border: 1px solid #fca5a5; }
.alert-level-card.high .alert-badge { background: #fde68a; color: #92400e; border: 1px solid #fcd34d; }
.alert-level-card.watch .alert-badge { background: var(--teal-soft); color: var(--teal-text); border: 1px solid var(--teal-border); }

.alert-level-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.alert-level-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Example alert box */
.example-alert-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
}
.example-alert-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.example-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .08em;
}
.critical-badge { background: #fecaca; color: #dc2626; border: 1px solid #fca5a5; }
.example-consumer { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary); }
.example-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.example-alert-row {
  display: flex; gap: 24px; margin-bottom: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ex-label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ex-value { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.example-analysis { display: flex; flex-direction: column; gap: 6px; }
.analysis-row { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.analysis-row strong { color: var(--text-primary); }

/* ── TWO COL ─────────────────────────────────────────────────── */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* ── FEATURE PILLS ───────────────────────────────────────────── */
.feature-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 24px;
}
.feature-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-pill:hover {
  border-color: var(--teal-border);
  color: var(--teal-text);
  background: var(--teal-soft);
}

/* ── EXAMPLE TABLE ───────────────────────────────────────────── */
.sub-section-title { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.sub-section-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

.example-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  font-size: 12.5px;
  box-shadow: var(--shadow-sm);
}
.etable-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: var(--bg-elevated);
  padding: 10px 14px;
  gap: 8px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.etable-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 12px 14px;
  gap: 8px;
  border-top: 1px solid var(--border);
  align-items: center;
  transition: background var(--transition);
  background: var(--bg-card);
}
.etable-row:hover { background: var(--bg-hover); }
.etable-consumer { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }
.etable-consumer small { display: block; color: var(--text-muted); font-family: var(--font); font-size: 11px; margin-top: 2px; }
.green-text { color: var(--green); }
.font-bold { font-weight: 700; }

/* ── INFO CALLOUT ────────────────────────────────────────────── */
.info-callout {
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.info-callout strong { color: var(--teal-text); }
.amber-callout {
  background: var(--amber-soft);
  border-color: var(--amber-border);
  border-left-color: var(--amber);
}
.amber-callout strong { color: var(--amber); }

/* ── SCREENSHOT FULL ─────────────────────────────────────────── */
.screenshot-full { margin-bottom: 24px; }
.screenshot-full .screenshot-container { max-height: 480px; overflow: hidden; }

/* ── BENEFIT BLOCK ───────────────────────────────────────────── */
.benefit-block {
  display: flex; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 14px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.benefit-block:hover { border-color: var(--border-soft); transform: translateX(4px); box-shadow: var(--shadow-md); }
.benefit-icon { font-size: 26px; flex-shrink: 0; }
.benefit-block h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.benefit-block p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ── ZERO USAGE CHART ────────────────────────────────────────── */
.zero-usage-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.chart-title { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.chart-bars { display: flex; flex-direction: column; gap: 10px; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bar-label { width: 70px; color: var(--text-muted); flex-shrink: 0; }
.bar-track {
  flex: 1; height: 24px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #059669);
  border-radius: 4px;
  display: flex; align-items: center; padding-left: 10px;
  font-size: 11px; font-weight: 700; color: white;
  animation: barGrow 1s ease-out forwards;
  transform-origin: left;
}
.bar-fill.urgent { background: linear-gradient(90deg, #dc2626, #d97706); }
@keyframes barGrow { from { width: 0 !important; } }
.bar-kw { width: 60px; text-align: right; color: var(--text-muted); font-size: 11px; }

/* ── BPSC ────────────────────────────────────────────────────── */
.bpsc-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.bpsc-card {
  border-radius: var(--radius-md);
  padding: 24px 22px;
  border: 1px solid;
  box-shadow: var(--shadow-sm);
}
.bpsc-card.current { background: var(--amber-soft); border-color: var(--amber-border); }
.bpsc-card.year { background: var(--red-soft); border-color: var(--red-border); }
.bpsc-card.total { background: var(--bg-card); border-color: var(--border); }
.bpsc-card-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 10px; }
.bpsc-card-value { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: var(--text-primary); }
.bpsc-card-sub { font-size: 12px; color: var(--text-muted); }

.bpsc-leaderboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.bpsc-row {
  display: flex; align-items: center;
  padding: 13px 16px;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  font-size: 13px;
  background: var(--bg-card);
}
.bpsc-row:last-child { border-bottom: none; }
.bpsc-row:hover { background: var(--bg-hover); }
.bpsc-row.rank-1 { background: #fffbeb; }
.bpsc-row.rank-2 { background: #fafafa; }
.bpsc-rank { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); width: 24px; flex-shrink: 0; }
.bpsc-consumer { font-family: var(--font-mono); font-size: 13px; font-weight: 600; flex: 1; color: var(--text-primary); }
.bpsc-payments { font-size: 12px; color: var(--text-muted); }
.bpsc-amount { font-size: 14px; font-weight: 700; color: #d97706; margin-left: auto; }

/* ── SOLAR ───────────────────────────────────────────────────── */
.two-solar-blocks {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 28px;
}
.solar-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.solar-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.solar-block p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* ── REPORTS GRID ────────────────────────────────────────────── */
.reports-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-bottom: 36px;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  cursor: default;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.report-card:hover {
  border-color: var(--teal-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.report-icon { font-size: 26px; margin-bottom: 12px; }
.report-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.report-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.report-columns {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.report-columns span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.screenshot-row {
  display: flex; gap: 18px;
}
.small-shot-wrap { flex: 1; }
.small-shot-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 600; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .06em;
}
.small-screenshot {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.small-screenshot:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ── LOG TIMELINE ────────────────────────────────────────────── */
.log-timeline {
  display: flex; flex-direction: column; gap: 0;
  margin-bottom: 24px;
  position: relative;
}
.log-timeline::before {
  content: '';
  position: absolute;
  left: 18px; top: 36px; bottom: 36px;
  width: 2px;
  background: var(--border);
}
.log-step {
  display: flex; gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  position: relative;
}
.log-icon {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.log-title { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.log-msg { font-family: var(--font-mono); font-size: 12px; color: var(--green); margin-bottom: 4px; }
.log-sub { font-size: 12.5px; color: var(--text-muted); }

.run-counter {
  display: flex; flex-direction: column; gap: 4px;
  background: #f0fdf4;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.run-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.run-number { font-size: 44px; font-weight: 900; font-family: var(--font-mono); color: var(--green); letter-spacing: -2px; }
.run-note { font-size: 12.5px; color: var(--text-secondary); }

/* ── GUIDE TABS ──────────────────────────────────────────────── */
.guide-tabs {
  display: flex; gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.guide-tab {
  padding: 9px 20px;
  border-radius: calc(var(--radius-md) - 3px);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.guide-tab:hover { color: var(--text-primary); background: var(--bg-card); }
.guide-tab.active { background: var(--teal); color: white; font-weight: 600; box-shadow: var(--shadow-sm); }

.guide-panel { display: none; }
.guide-panel.active { display: block; }

.guide-steps { display: flex; flex-direction: column; gap: 14px; }
.guide-step {
  display: flex; gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.guide-step:hover { border-color: var(--border-soft); transform: translateX(4px); box-shadow: var(--shadow-md); }
.gstep-num {
  width: 30px; height: 30px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-border);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--teal-text);
  flex-shrink: 0;
}
.gstep-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.gstep-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.gstep-body strong { color: var(--text-primary); }

/* ── QUICK NAV TABLE ─────────────────────────────────────────── */
.quick-nav-table { margin-top: 44px; }
.quick-nav-table h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: var(--text-primary); }
table { width: 100%; border-collapse: collapse; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
thead tr { background: var(--bg-elevated); border-bottom: 2px solid var(--border); }
th {
  padding: 12px 16px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
  text-align: left;
}
td {
  padding: 12px 16px;
  font-size: 13.5px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  vertical-align: top;
}
td:last-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--teal-text); font-weight: 500; }
tr:hover td { background: var(--bg-hover); color: var(--text-primary); }
tr:last-child td { border-bottom: none; }

/* ── SUMMARY TABLE ───────────────────────────────────────────── */
.summary-section {}
.summary-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: var(--shadow-md);
}
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table thead th { padding: 14px 18px; }
.summary-table td { padding: 14px 18px; }
.savings-row td { background: var(--bg-card); }
.savings-row:hover td { background: #f0fdf4; }
.penalty-row td { background: var(--bg-card); }
.penalty-row:hover td { background: #fffbeb; }
.total-row td {
  background: #f8fafc;
  border-top: 2px solid var(--border-soft);
  font-size: 15px;
  font-weight: 600;
}

.amount-cell { text-align: right; font-weight: 700; font-family: var(--font-mono); }
.amount-cell.green { color: var(--green); }
.amount-cell.amber { color: var(--amber); }
.amount-cell.total-amount { font-size: 17px; color: var(--teal); }

.nature-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px; font-weight: 600;
}
.nature-pill.recurring { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }
.nature-pill.onetime { background: var(--teal-soft); color: var(--teal-text); border: 1px solid var(--teal-border); }
.nature-pill.penalty { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-border); }

/* year 1 total banner */
.year1-total-banner {
  background: linear-gradient(135deg, #0284c7, #059669);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}
.ytb-label { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); margin-bottom: 6px; }
.ytb-sublabel { font-size: 12px; color: rgba(255,255,255,.65); }
.ytb-amount { font-size: 44px; font-weight: 900; color: white; letter-spacing: -2px; font-family: var(--font-mono); }
.ytb-note { font-size: 12px; color: rgba(255,255,255,.7); text-align: right; margin-top: 4px; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 2;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.footer-url { margin-top: 8px; }
.footer-url a { color: var(--teal); text-decoration: none; font-weight: 500; }
.footer-url a:hover { text-decoration: underline; }

/* ── TOOLTIP ─────────────────────────────────────────────────── */
.tooltip {
  position: fixed;
  z-index: 999;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: #e2e8f0;
  max-width: 300px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease;
  box-shadow: var(--shadow-lg);
}
.tooltip.show { opacity: 1; transform: translateY(0); }
