/* ================================================================
   ResultLens — style.css  v3
   CARR Lab · KLE Technological University · Developed by Rakesh
================================================================ */

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Light surfaces */
  --bg:          #F0F4F8;
  --surface:     #FFFFFF;
  --surface2:    #F1F5F9;
  --border:      #E2E8F0;
  --border-med:  #CBD5E1;

  /* Text */
  --text:        #0F172A;
  --text-med:    #334155;
  --text-muted:  #64748B;
  --text-subtle: #94A3B8;

  /* Brand colours */
  --blue:        #2563EB;
  --blue-light:  #EFF6FF;
  --teal:        #0D9488;
  --teal-light:  #F0FDFA;
  --amber:       #D97706;
  --amber-light: #FFFBEB;
  --violet:      #7C3AED;
  --violet-light:#F5F3FF;
  --rose:        #E11D48;
  --rose-light:  #FFF1F2;
  --green:       #16A34A;
  --green-light: #F0FDF4;
  --red:         #DC2626;
  --red-light:   #FEF2F2;

  /* Status */
  --fine-c:    #16A34A; --fine-bg:    #DCFCE7;
  --ok-c:      #2563EB; --ok-bg:      #DBEAFE;
  --concern-c: #D97706; --concern-bg: #FEF3C7;
  --flag-c:    #DC2626; --flag-bg:    #FEE2E2;

  /* Dark hero accents */
  --accent-blue:  #60A5FA;
  --accent-teal:  #2DD4BF;
  --accent-amber: #FCD34D;
  --accent-red:   #F87171;

  /* Layout */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 16px rgba(15,23,42,.09), 0 1px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.14), 0 4px 12px rgba(15,23,42,.07);

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --nav-h: 60px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

/* ── PAGES ───────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; }

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex-shrink: 0;
}
.nav-logo {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white; letter-spacing: -.5px;
}
.nav-logo span { color: #93C5FD; }
.nav-brandname { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }

/* Stepper pills */
.nav-stepper {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 4px 6px;
}
.ns-item {
  display: flex; align-items: center; gap: 7px;
  border: none; background: transparent;
  padding: 5px 12px; border-radius: 22px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.ns-item:hover { color: var(--blue); background: white; }
.ns-item.active { background: white; color: var(--blue); font-weight: 700; box-shadow: var(--shadow-sm); }
.ns-item.done   { color: var(--green); }
.ns-num {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0; transition: all .15s;
}
.ns-item.active .ns-num { background: var(--blue); color: white; }
.ns-item.done   .ns-num { background: var(--green); color: white; }
.ns-sep { color: var(--text-subtle); font-size: 13px; user-select: none; padding: 0 2px; }
.nav-cta {
  background: var(--blue); color: white; border: none;
  border-radius: 8px; padding: 8px 18px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .15s; flex-shrink: 0;
}
.nav-cta:hover { background: #1d4ed8; }

/* ================================================================
   LANDING — DARK HERO
================================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: #070B14;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated grid background */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-scroll 20s linear infinite;
}
@keyframes grid-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(48px); }
}

/* Glow orbs */
.hero-glow-1 {
  position: absolute;
  top: -120px; left: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.28) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: -100px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,148,136,.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── Hero Copy ────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(96,165,250,.12);
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 600; color: #93C5FD;
  letter-spacing: .4px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 6px #60A5FA;
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%,100% { opacity:1; box-shadow: 0 0 6px #60A5FA; }
  50%      { opacity:.6; box-shadow: 0 0 14px #60A5FA; }
}

.hero-h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #F8FAFC;
  margin-bottom: 22px;
}
.hero-gradient {
  background: linear-gradient(130deg, #60A5FA 0%, #2DD4BF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-p {
  font-size: 16px;
  color: #94A3B8;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-launch {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: white; border: none;
  border-radius: 10px; padding: 13px 28px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 18px rgba(37,99,235,.45);
}
.btn-launch:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.5); }
.btn-sample {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  color: #CBD5E1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 13px 24px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-sample:hover { background: rgba(255,255,255,.1); color: white; border-color: rgba(255,255,255,.3); }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #64748B; font-weight: 500;
}
.trust-item svg { color: #2DD4BF; flex-shrink: 0; }

/* ── Hero Dashboard ───────────────────────────────────────── */
.hero-dashboard {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.06) inset;
}

/* Metrics row */
.hd-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.hd-metric {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.hdm-label {
  font-size: 10px; font-weight: 700;
  color: #64748B;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 4px;
}
.hdm-val {
  font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1;
  font-family: var(--mono);
}
.hdm-val.green  { color: #4ADE80; }
.hdm-val.blue   { color: #60A5FA; }
.hdm-val.red    { color: #F87171; }
.hdm-val.amber  { color: #FCD34D; }
.hdm-trend {
  font-size: 10px; color: #475569;
  margin-top: 4px; font-weight: 500;
}
.hdm-trend.up   { color: #4ADE80; }
.hdm-trend.down { color: #F87171; }

/* Chart area */
.hd-chart-area {
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.hd-chart-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  font-size: 11px; font-weight: 600; color: #64748B;
  text-transform: uppercase; letter-spacing: .5px;
}
.hdc-live {
  color: #4ADE80; font-size: 10px; font-weight: 700;
  animation: blink-live 1.4s ease-in-out infinite;
}
@keyframes blink-live {
  0%,100% { opacity:1; } 50% { opacity:.4; }
}

.hd-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 130px;
}
.hdb-group {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  height: 100%;
}
.hdb-pair {
  display: flex; gap: 2px; align-items: flex-end;
  flex: 1; width: 100%;
}
.hdb {
  flex: 1; border-radius: 3px 3px 0 0;
  transition: height .4s ease;
  min-height: 4px;
}
.hdb-q {
  font-size: 9px; font-weight: 700; color: #475569;
  font-family: var(--mono);
  text-align: center;
}

.hd-legend {
  display: flex; gap: 14px; margin-top: 10px;
  font-size: 10px; color: #64748B; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
}
.leg-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 2px;
  margin-right: 4px; vertical-align: middle;
}

/* Status row */
.hd-status-row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 8px;
}
.hds {
  border-radius: 8px; padding: 9px 10px;
  display: flex; align-items: center; gap: 8px;
}
.hds.fine    { background: rgba(22,163,74,.15); border: 1px solid rgba(22,163,74,.25); }
.hds.ok      { background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.25); }
.hds.concern { background: rgba(217,119,6,.15); border: 1px solid rgba(217,119,6,.25); }
.hds.flag    { background: rgba(220,38,38,.15); border: 1px solid rgba(220,38,38,.25); }
.hds-count {
  font-size: 20px; font-weight: 800; font-family: var(--mono); letter-spacing: -1px; line-height: 1;
}
.hds.fine    .hds-count { color: #4ADE80; }
.hds.ok      .hds-count { color: #60A5FA; }
.hds.concern .hds-count { color: #FCD34D; }
.hds.flag    .hds-count { color: #F87171; }
.hds-label { font-size: 11px; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: .5px; }

/* Scroll indicator */
.hero-scroll {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-bottom: 28px;
  font-size: 11px; color: #334155; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase;
  animation: bounce-arrow 2s ease-in-out infinite;
}
@keyframes bounce-arrow {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ================================================================
   LANDING — SECTIONS
================================================================ */
.section-light {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}
.section-dark-mid {
  background: #0D1117;
  padding: 80px 48px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.cta-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 48px;
}
.section-wrap { max-width: 1200px; margin: 0 auto; }

/* Section labels */
.section-tag {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid #BFDBFE;
  border-radius: 30px; padding: 4px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-tag-dark {
  display: inline-block;
  background: rgba(37,99,235,.15); color: #60A5FA;
  border: 1px solid rgba(96,165,250,.3);
  border-radius: 30px; padding: 4px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-h2 {
  font-size: 36px; font-weight: 800;
  letter-spacing: -1.2px; color: var(--text);
  margin-bottom: 52px; line-height: 1.15;
}
.section-h2-dark {
  font-size: 36px; font-weight: 800;
  letter-spacing: -1.2px; color: #F1F5F9;
  margin-bottom: 52px; line-height: 1.15;
}

/* Steps */
.steps-row {
  display: flex; align-items: flex-start; gap: 0;
}
.step-card {
  flex: 1; position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-n {
  position: absolute; top: -13px; left: 24px;
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 800;
  border-radius: 20px; padding: 3px 12px;
  letter-spacing: .5px; font-family: var(--mono);
}
.step-ico {
  width: 54px; height: 54px;
  background: var(--blue-light); color: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; margin-top: 10px;
}
.step-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-arrow {
  font-size: 26px; color: var(--border-med);
  padding: 0 16px; flex-shrink: 0;
  align-self: center; margin-top: 22px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.feat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: background .2s, transform .2s, border-color .2s;
}
.feat-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(96,165,250,.3);
  transform: translateY(-3px);
}
.fc-num {
  position: absolute; top: -11px; left: 18px;
  font-size: 10px; font-weight: 700; font-family: var(--mono);
  color: #60A5FA; letter-spacing: 1px;
}
.fc-icon {
  width: 46px; height: 46px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-card h4 { font-size: 15px; font-weight: 700; color: #F1F5F9; margin-bottom: 8px; }
.feat-card p  { font-size: 13px; color: #64748B; line-height: 1.65; }

/* CTA */
.cta-inner { text-align: center; }
.cta-badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid #BFDBFE;
  border-radius: 30px; padding: 4px 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 16px;
}
.cta-h2 {
  font-size: 38px; font-weight: 800;
  letter-spacing: -1.2px; margin-bottom: 12px;
}
.cta-p {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 36px;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 22px 40px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.footer-logo {
  width: 28px; height: 28px; background: var(--blue);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: white; letter-spacing: -.5px;
}
.footer-logo span { color: #93C5FD; }
.footer-name { font-size: 13px; font-weight: 700; color: var(--text-med); }
.footer-copy { font-size: 12.5px; color: var(--text-muted); flex: 1; }
.footer-copy strong { color: var(--text-med); }

/* ================================================================
   INNER PAGES — SHARED COMPONENTS
================================================================ */
.btn-back {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-back:hover { border-color: var(--blue); color: var(--blue); }

.btn-next {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: white; border: none;
  border-radius: var(--radius-sm); padding: 10px 22px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-next:hover { background: #1d4ed8; }

.btn-ghost-action {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm); padding: 10px 20px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  color: var(--text-med); cursor: pointer; transition: all .15s;
}
.btn-ghost-action:hover { border-color: var(--teal); color: var(--teal); }

/* ================================================================
   CONFIG PAGE
================================================================ */
.inner-page {
  max-width: 820px; margin: 0 auto;
  padding: 40px 24px 24px;
}
.inner-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 36px; flex-wrap: wrap;
}
.ih-left { display: flex; align-items: center; gap: 20px; }
.ih-step  {
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px;
}
.ih-title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.config-body { display: flex; flex-direction: column; gap: 20px; }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
}
.form-card-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 24px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.fch-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fchi-blue   { background: var(--blue-light); color: var(--blue); }
.fchi-violet { background: var(--violet-light); color: var(--violet); }
.fch-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.fch-sub   { font-size: 13px; color: var(--text-muted); }

.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 16px;
}
.form-grid-2:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-sm { max-width: 180px; }
.field label {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .6px;
}

input[type="text"], input[type="number"] {
  background: var(--bg); border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm); padding: 10px 13px;
  font-family: var(--font); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
input::placeholder { color: var(--text-subtle); }

/* Q-marks grid */
.qmarks-grid {
  display: grid; grid-template-columns: repeat(8,1fr); gap: 8px;
}
.qmark-cell {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  text-align: center; transition: border-color .15s;
}
.qmark-cell:hover { border-color: var(--blue); }
.qmark-cell .q-label {
  font-size: 10px; font-weight: 700; color: var(--text-subtle);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 5px; font-family: var(--mono);
}
.qmark-cell input {
  background: transparent; border: none;
  padding: 0; font-size: 17px; font-weight: 700;
  color: var(--text); text-align: center; outline: none;
  box-shadow: none; width: 100%;
}

.config-actions {
  display: flex; gap: 12px;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap;
}

/* ================================================================
   ENTRY PAGE
================================================================ */
.entry-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  position: sticky; top: var(--nav-h); z-index: 50;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.etb-left { display: flex; align-items: center; gap: 16px; }
.etb-step {
  font-size: 10px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 1px;
}
.etb-title { font-size: 15px; font-weight: 700; color: var(--text); }

.entry-course-strip {
  background: var(--blue-light);
  border-bottom: 1px solid #BFDBFE;
  padding: 12px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ecs-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .7px;
  white-space: nowrap; flex-shrink: 0;
}
.entry-field {
  flex: 1; min-width: 160px;
  display: flex; flex-direction: column; gap: 3px;
}
.entry-field-sm { flex: 0 0 140px; min-width: 120px; }
.entry-field label {
  font-size: 10px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: .6px; opacity: .8;
}
.entry-field input {
  background: white; border-color: #BFDBFE;
  font-size: 13px; padding: 7px 10px;
}
.entry-field input:focus { border-color: var(--blue); }

.entry-hint-bar {
  display: flex; align-items: flex-start; gap: 10px;
  background: #FFFBEB; border-bottom: 1px solid #FDE68A;
  padding: 11px 24px; font-size: 13px; color: #92400E; line-height: 1.5;
}
.entry-hint-bar svg { flex-shrink: 0; margin-top: 2px; color: #D97706; }

.table-scroll { overflow-x: auto; }
.marks-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.marks-table th {
  background: var(--surface2); padding: 10px 8px;
  color: var(--text-muted); font-weight: 700; text-align: center;
  border-bottom: 2px solid var(--border);
  white-space: nowrap; min-width: 64px;
  font-size: 11.5px; font-family: var(--mono);
}
.marks-table td { padding: 2px; border-bottom: 1px solid var(--border); }
.marks-table td.sno {
  padding: 3px 14px; color: var(--text-subtle); text-align: center;
  background: var(--surface2);
  position: sticky; left: 0;
  font-size: 11px; font-family: var(--mono); font-weight: 500;
  border-right: 1px solid var(--border);
}
.marks-table th.sno-h { position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--border); }
.marks-table input {
  width: 100%; background: white;
  border: 1px solid var(--border);
  border-radius: 4px; padding: 7px 4px;
  text-align: center; font-size: 13px; font-family: var(--mono);
  color: var(--text); outline: none;
  transition: border-color .1s, background .1s;
}
.marks-table input:focus  { border-color: var(--blue); background: #EFF6FF; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.marks-table input.filled { background: #EFF6FF; border-color: #93C5FD; color: #1d4ed8; }

.entry-generate-bar {
  padding: 20px 24px;
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
.btn-generate {
  display: flex; align-items: center; gap: 9px;
  background: var(--teal); color: white; border: none;
  border-radius: 10px; padding: 13px 40px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 16px rgba(13,148,136,.35);
}
.btn-generate:hover { background: #0f766e; transform: translateY(-2px); }

/* ================================================================
   CHARTS PAGE
================================================================ */
.charts-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  position: sticky; top: var(--nav-h); z-index: 50;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.ch-left { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ch-carr-badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  border: 1px solid #BFDBFE;
  border-radius: 20px; padding: 2px 10px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .7px; text-transform: uppercase;
  margin-bottom: 3px;
}
.ch-course-name { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; }
.hdr-code-txt  { color: var(--text-muted); font-weight: 500; font-size: 13px; margin-left: 6px; }
.ch-dept       { font-size: 11px; color: var(--text-subtle); }

.ch-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ch-stat  { text-align: center; min-width: 52px; }
.ch-stat-val { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.ch-stat-lbl {
  font-size: 10px; color: var(--text-subtle);
  font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.ch-stat-div { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

.ch-actions { display: flex; align-items: center; gap: 8px; }
.btn-export-png {
  display: flex; align-items: center; gap: 7px;
  background: var(--teal); color: white; border: none;
  border-radius: var(--radius-sm); padding: 9px 16px;
  font-family: var(--font); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.btn-export-png:hover { background: #0f766e; }
.btn-export-png:disabled { opacity: .55; cursor: not-allowed; }
.btn-export-csv {
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); color: var(--text-med);
  border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm); padding: 9px 16px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn-export-csv:hover { border-color: var(--blue); color: var(--blue); }
.btn-new {
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm); padding: 9px 14px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.btn-new:hover { border-color: var(--blue); color: var(--blue); }

.export-status {
  background: #FEF9C3; border-bottom: 1px solid #FDE68A;
  padding: 10px 28px; font-size: 13px; color: #78350F; font-weight: 600;
}
.export-status.hidden { display: none; }

/* ── Tab nav ────────────────────────────────────────────── */
.tab-nav {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  padding: 0 28px;
  display: flex; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 7px;
  background: transparent; border: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: 14px 18px;
  font-family: var(--font); font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap; transition: all .15s;
}
.tab svg { flex-shrink: 0; }
.tab:hover { color: var(--blue); }
.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}

/* ── Tab panes ──────────────────────────────────────────── */
.tab-pane         { display: none; padding: 28px; }
.tab-pane.active  { display: block; }

/* Status cards */
.status-cards {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 14px; margin-bottom: 24px;
}
.sc {
  border-radius: var(--radius-lg); padding: 20px 24px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s;
}
.sc:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sc-count { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.sc-label { font-size: 13px; font-weight: 600; margin-top: 6px; }

/* Chart cards */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.cc-head       { margin-bottom: 20px; }
.cc-title      { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.cc-desc       { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.cc-flag-note  { color: var(--red); font-size: 12px; font-weight: 600; }

.chart-wrap    { height: 340px; position: relative; }
.ch-short      { height: 240px !important; }
.radar-wrap    { height: 320px !important; }
.radar-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Concern table */
.concern-table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.ctw-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.concern-legend {
  display: flex; gap: 14px; flex-shrink: 0;
  flex-wrap: wrap; align-items: center;
}
.cl-fine    { font-size: 12px; font-weight: 700; color: var(--fine-c); }
.cl-ok      { font-size: 12px; font-weight: 700; color: var(--ok-c); }
.cl-concern { font-size: 12px; font-weight: 700; color: var(--concern-c); }
.cl-flag    { font-size: 12px; font-weight: 700; color: var(--flag-c); }

.concern-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.concern-table th {
  background: var(--surface2); padding: 11px 16px;
  color: var(--text-muted); font-weight: 700; text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap; font-size: 11px;
  text-transform: uppercase; letter-spacing: .6px;
}
.concern-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.concern-table tr:last-child td { border-bottom: none; }
.concern-table tr:hover td { background: var(--surface2); }

.badge {
  display: inline-block; border-radius: var(--radius-sm);
  padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 52px 28px 48px; }
  .hero-h1    { font-size: 42px; }
  .hd-metrics { grid-template-columns: repeat(2,1fr); }
  .steps-row  { flex-direction: column; gap: 28px; }
  .step-arrow { display: none; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .qmarks-grid   { grid-template-columns: repeat(4,1fr); }
  .status-cards  { grid-template-columns: repeat(2,1fr); }
  .radar-grid    { grid-template-columns: 1fr; }
  .section-light, .section-dark-mid, .cta-section { padding: 52px 28px; }
  .section-h2, .section-h2-dark { font-size: 28px; }
  .nav-stepper { display: none; }
}
@media (max-width: 640px) {
  .hero-h1       { font-size: 32px; letter-spacing: -1.2px; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid-2   { grid-template-columns: 1fr; }
  .ch-stats      { display: none; }
  .tab-pane      { padding: 16px; }
  .charts-header { padding: 10px 16px; }
  .tab-nav       { padding: 0 16px; }
  .tab           { padding: 12px 12px; font-size: 12px; }
  .hd-metrics    { grid-template-columns: repeat(2,1fr); }
  .hd-status-row { grid-template-columns: repeat(2,1fr); }
}
