/* ==========================================================
   ReraExam — "Admit Card" design system
   Ink navy + paper cream + certificate gold, slab serif headlines,
   ledger-style lists, perforated ticket cards.
   Supports light/dark mode via [data-theme="light"] on <html>.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  /* Page/card surfaces — the part that flips between dark and light mode */
  --surface-1:  #10162A;   /* page background */
  --surface-2:  #171F38;   /* card / sidebar background */
  --surface-3:  #232D4C;   /* deeper surface, reserved */

  /* Constant "paper ticket" surface — always cream, in both modes, by design */
  --paper:      #F6F2E8;
  --paper-dim:  #E9E2D0;
  --text-ink:   #1B1F2A;
  --text-ink-lo:#5B5F72;

  /* Constant dark navy, used only for text/icons sitting ON gold or paper (not a background role) */
  --ink:        #10162A;

  /* Accent + status — tuned per theme for contrast */
  --gold:       #C9973F;
  --gold-dim:   #8C6C2F;
  --gold-rgb:   201,151,63;
  --red:        #C1443C;
  --red-rgb:    193,68,60;
  --green:      #3F7D58;
  --green-rgb:  63,125,88;

  /* Text on surfaces (flips with theme) */
  --text-hi:    #F6F2E8;
  --text-lo:    #9CA3C0;
  --text-lo-rgb:156,163,192;
  --ghost-rgb:  255,255,255;
  --shadow:     0 20px 60px rgba(0,0,0,.35);

  --radius:     2px;
  --border:     1px solid rgba(var(--gold-rgb),0.35);
}

[data-theme="light"]{
  --surface-1:  #FAF7F0;
  --surface-2:  #FFFFFF;
  --surface-3:  #F1EBDC;

  --gold:       #A97728;
  --gold-dim:   #7C5A20;
  --gold-rgb:   169,119,40;
  --red:        #B23A32;
  --red-rgb:    178,58,50;
  --green:      #2F6647;
  --green-rgb:  47,102,71;

  --text-hi:    #1E2438;
  --text-lo:    #6B7280;
  --text-lo-rgb:107,114,128;
  --ghost-rgb:  20,20,30;
  --shadow:     0 14px 40px rgba(20,20,30,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{max-width:100%; overflow-x:hidden}
body{
  margin:0;
  background:var(--surface-1);
  color:var(--text-hi);
  font-family:'Inter',sans-serif;
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background .2s ease, color .2s ease;
}
h1,h2,h3,h4{
  font-family:'Zilla Slab',serif;
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  letter-spacing:-.01em;
}
h1{font-weight:700}
p{margin:0 0 1em; max-width:64ch; line-height:1.65}
a{color:var(--gold); text-decoration:none}
a:hover{text-decoration:underline}
.mono{font-family:'IBM Plex Mono',monospace}
:focus-visible{outline:2px solid var(--gold); outline-offset:2px}

.wrap{max-width:1600px; margin:0 auto; padding:0 48px}

/* Old icon-button toggle removed — replaced by a self-contained switch rendered inline via themeToggleButton() in config.php */

/* ---------- Nav ---------- */
.nav{
  border-bottom:1px solid rgba(var(--gold-rgb),0.25);
  background:var(--surface-1);
  position:sticky; top:0; z-index:50;
}
.nav .wrap{display:flex; align-items:center; justify-content:space-between; height:68px}
.brand{display:flex; align-items:center; gap:10px; font-family:'Zilla Slab',serif; font-size:22px; font-weight:700; color:var(--text-hi)}
.brand .mark{
  width:34px; height:34px; border:2px solid var(--gold); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--gold); font-weight:600;
}
.brand-logo{width:36px; height:36px; object-fit:contain; flex-shrink:0; display:block}
.brand:hover{text-decoration:none}
.brand small{display:block; font-family:'Inter',sans-serif; font-size:10px; font-weight:500; color:var(--text-lo); letter-spacing:.5px}
.navlinks{display:flex; align-items:center; gap:24px; font-size:14px}
.navlinks a{color:var(--text-lo)}
.navlinks a:hover{color:var(--text-hi); text-decoration:none}
.nav-toggle{display:none; background:transparent; border:1px solid rgba(var(--gold-rgb),0.3); border-radius:4px; padding:7px; color:var(--text-hi); cursor:pointer; align-items:center; justify-content:center}
.nav-theme-row{display:flex; align-items:center; gap:10px}
.nav-theme-row span{display:none}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:11px 22px; border:1px solid var(--gold); border-radius:var(--radius);
  font-family:'Inter',sans-serif; font-weight:600; font-size:14px; cursor:pointer;
  background:transparent; color:var(--gold); transition:background .15s,color .15s;
}
.btn:hover{background:var(--gold); color:var(--ink); text-decoration:none}
.btn.solid{background:var(--gold); color:var(--ink)}
.btn.solid:hover{background:#DDAE55}
.btn.ghost{border-color:rgba(var(--ghost-rgb),0.25); color:var(--text-hi)}
.btn.ghost:hover{border-color:var(--gold); background:transparent; color:var(--gold)}
.btn.block{width:100%}
.btn[disabled]{opacity:.45; cursor:not-allowed; pointer-events:none}

/* ---------- Hero ---------- */
.hero{padding:70px 0 40px; border-bottom:1px solid rgba(var(--gold-rgb),0.2); text-align:center; position:relative; overflow:hidden}
.hero .wrap{position:relative; z-index:1}
.hero-bg-blob{position:absolute; border-radius:50%; filter:blur(70px); z-index:0; pointer-events:none}
.hero-bg-blob-1{width:420px; height:420px; top:-180px; left:-120px; background:rgba(var(--gold-rgb),0.16)}
.hero-bg-blob-2{width:360px; height:360px; top:60px; right:-140px; background:rgba(var(--gold-rgb),0.1)}
.hero-eyebrow-pill{display:inline-flex; align-items:center; gap:8px; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--gold); letter-spacing:1.2px; padding:7px 16px; border:1px solid rgba(var(--gold-rgb),0.35); border-radius:20px; margin-bottom:22px}
.hero-eyebrow-dot{width:6px; height:6px; border-radius:50%; background:var(--gold); flex-shrink:0}
.hero .eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold); letter-spacing:1.2px; margin-bottom:14px}
.hero h1{font-size:46px; line-height:1.08; max-width:20ch; margin:0 auto; color:var(--text-hi); letter-spacing:-.015em}
.hero p.lede{font-size:17px; color:var(--text-lo); max-width:52ch; margin:16px auto 0}
.hero-cta-row{display:flex; gap:14px; justify-content:center; margin-top:30px; flex-wrap:wrap}
.hero-stats{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:34px; text-align:center; max-width:520px; margin-left:auto; margin-right:auto}
.hero-stats div b{display:block; font-family:'Zilla Slab',serif; font-size:26px; color:var(--gold)}
.hero-stats div span{font-size:13px; color:var(--text-lo)}

/* ---------- Section heading ---------- */
.section-head{display:flex; align-items:baseline; justify-content:space-between; margin:56px 0 24px; gap:20px; flex-wrap:wrap}
.section-head h2{font-size:25px; color:var(--text-hi)}
.section-head p{color:var(--text-lo); font-size:14px; margin:0}

/* ---------- Ticket card (mock test) ---------- */
.tickets{display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:22px; padding-bottom:60px}
.ticket{
  background:var(--surface-2); border:var(--border); border-radius:var(--radius);
  display:flex; flex-direction:column; position:relative; overflow:hidden;
}
.ticket .t-body{padding:22px 22px 18px}
.ticket .t-cat{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gold); letter-spacing:1.2px; margin-bottom:10px}
.ticket h3{font-size:19px; color:var(--text-hi); margin-bottom:8px}
.ticket p.desc{font-size:13.5px; color:var(--text-lo); margin-bottom:0}
.ticket .t-meta{display:flex; gap:18px; padding:14px 22px; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-lo); border-top:1px dashed rgba(var(--gold-rgb),0.3)}
.ticket .t-meta b{color:var(--text-hi); display:block; font-size:13px}
.perf{
  position:relative; height:0; border-top:1px dashed rgba(var(--gold-rgb),0.35); margin:0 22px;
}
.perf::before,.perf::after{
  content:''; position:absolute; top:-8px; width:16px; height:16px; background:var(--surface-1); border-radius:50%;
}
.perf::before{left:-30px} .perf::after{right:-30px}
.ticket .t-buy{display:flex; align-items:center; justify-content:space-between; padding:16px 22px 20px; gap:14px}
.ticket .t-price{font-family:'Zilla Slab',serif; font-size:23px; color:var(--gold)}
.ticket .t-price span{display:block; font-family:'Inter',sans-serif; font-size:11px; color:var(--text-lo); font-weight:400}
.ticket .t-status{font-family:'IBM Plex Mono',monospace; font-size:11.5px; padding:5px 10px; border-radius:2px; letter-spacing:.5px}
.t-status.owned{background:rgba(var(--green-rgb),0.18); color:var(--green); border:1px solid rgba(var(--green-rgb),0.4)}
.t-status.done{background:rgba(var(--text-lo-rgb),0.15); color:var(--text-lo); border:1px solid rgba(var(--text-lo-rgb),0.25)}

/* ---------- Panels / forms ---------- */
.panel-wrap{padding:64px 0; display:flex; justify-content:center}
.panel{
  background:var(--paper); color:var(--text-ink); width:100%; max-width:440px;
  border-radius:var(--radius); padding:38px 36px; border:1px solid var(--paper-dim);
  box-shadow:var(--shadow);
}
.panel h2{color:var(--text-ink); font-size:23px}
.panel p.sub{color:var(--text-ink-lo); font-size:14px; margin-bottom:26px}
.field{margin-bottom:16px}
.field label{display:block; font-size:12.5px; font-weight:600; color:var(--text-ink-lo); margin-bottom:6px; text-transform:none}
.field input,.field select,.field textarea{
  width:100%; padding:11px 13px; border:1px solid #D8CFB8; border-radius:2px;
  font-family:'Inter',sans-serif; font-size:14.5px; background:#fff; color:var(--text-ink);
}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--gold-dim); outline-offset:0; border-color:var(--gold-dim)}
.panel .btn.solid{background:var(--ink); border-color:var(--ink); color:var(--paper)}
.panel .btn.solid:hover{background:#000}
.error-box{background:#FCEBEA; border:1px solid #E9B6B1; color:#8C2B22; padding:11px 14px; border-radius:2px; font-size:13.5px; margin-bottom:18px}
.ok-box{background:#EAF3EC; border:1px solid #B7D9C1; color:#255A38; padding:11px 14px; border-radius:2px; font-size:13.5px; margin-bottom:18px}
.panel .switch{margin-top:22px; font-size:13.5px; color:var(--text-ink-lo); text-align:center}

/* ---------- Dashboard ---------- */
.dash-head{padding:44px 0 8px}
.dash-head .eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold); letter-spacing:1.2px}
.ledger{border:var(--border); border-radius:var(--radius); overflow:hidden; margin-bottom:14px}
.ledger-row{display:flex; align-items:center; justify-content:space-between; padding:16px 20px; border-bottom:1px solid rgba(var(--gold-rgb),0.15); gap:16px; flex-wrap:wrap}
.ledger-row:last-child{border-bottom:none}
.ledger-row .l-title{font-weight:600; color:var(--text-hi)}
.ledger-row .l-sub{font-size:12.5px; color:var(--text-lo); font-family:'IBM Plex Mono',monospace}
.badge{font-family:'IBM Plex Mono',monospace; font-size:11px; padding:4px 9px; border-radius:2px; letter-spacing:.4px}
.badge.pass{background:rgba(var(--green-rgb),.18); color:var(--green); border:1px solid rgba(var(--green-rgb),.4)}
.badge.fail{background:rgba(var(--red-rgb),.18); color:var(--red); border:1px solid rgba(var(--red-rgb),.4)}
.badge.pending{background:rgba(var(--gold-rgb),.15); color:var(--gold); border:1px solid rgba(var(--gold-rgb),.4)}
.empty-note{color:var(--text-lo); font-size:14px; padding:30px 0}

/* ---------- Exam UI constant tokens (always the same regardless of dark/light toggle — exam pages are deliberately theme-independent) ---------- */
:root{
  --exam-bg:#FAF7F0; --exam-card:#FFFFFF; --exam-border:#E3D9C0; --exam-border2:#D8CCA9;
  --exam-text:#1B1F2A; --exam-text2:#5B5F72; --exam-text3:#93927f;
  --exam-primary:#1E2438; --exam-primary-dark:#10162A;
  --exam-accent:#C9973F; --exam-accent-dark:#8C6C2F; --exam-accent-glow:rgba(201,151,63,.12);
  --exam-success:#2F6647; --exam-success-glow:rgba(47,102,71,.1);
  --exam-danger:#B23A32; --exam-danger-glow:rgba(178,58,50,.1);
  --exam-warning:#A97728; --exam-warning-glow:rgba(169,119,40,.12);
  --exam-purple:#5b3193;
  --exam-shadow-sm:0 1px 3px rgba(20,20,30,.05); --exam-shadow:0 4px 16px rgba(20,20,30,.07); --exam-shadow-lg:0 14px 40px rgba(20,20,30,.14);
  --exam-radius:12px; --exam-radius-sm:8px; --exam-radius-xs:6px;
}

/* ---------- Instructions (IBPS-style, exam-authentic) ---------- */
.exam-header{background:var(--exam-card); border-bottom:1px solid var(--exam-border); padding:16px 32px; position:relative; display:flex; align-items:center; justify-content:center; box-shadow:var(--exam-shadow-sm)}
.exam-header .exam-logo-img{width:40px; height:40px; object-fit:contain; position:absolute; left:24px; border-radius:8px}
.exam-header h1{font-family:'Zilla Slab',serif; font-size:20px; font-weight:700; color:var(--exam-primary); letter-spacing:.2px; margin:0}
.instr-shell{display:flex; min-height:calc(100vh - 74px); background:var(--exam-bg)}
.instr-main{flex:1; padding:32px 56px 100px 40px}
.instr-main-inner{max-width:1000px; position:relative}
.view-lang{position:absolute; top:0; right:0; font-size:13px; display:flex; align-items:center; gap:8px; color:var(--exam-text2)}
.view-lang select{padding:5px 10px; border-radius:6px; border:1px solid var(--exam-border); font-family:'Inter',sans-serif; font-size:13px; background:#fff; color:var(--exam-text); cursor:pointer}
.instr-side{width:220px; flex-shrink:0; border-left:1px solid var(--exam-border); padding:28px 20px; text-align:center; background:var(--exam-card)}
.instr-side .cand-avatar{width:110px; height:110px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#f3f6fa,#c2cad6 55%,#8d99ab 100%); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:52px; color:#54627a; box-shadow:0 6px 18px rgba(26,35,50,.18), inset 0 2px 6px rgba(255,255,255,.6)}
.instr-side .cand-name{font-weight:700; color:var(--exam-primary); font-size:16px; font-family:'Inter',sans-serif}
.instr-title-bar{background:var(--exam-accent-glow); color:var(--exam-primary); font-weight:700; font-size:17px; padding:18px 24px; border-radius:6px 6px 0 0; margin-bottom:26px; font-family:'Zilla Slab',serif}
.instr-body{font-size:14px; line-height:1.8; color:var(--exam-text); font-family:'Inter',sans-serif}
.instr-body ol{padding-left:22px; margin-bottom:8px}
.instr-body li{margin-bottom:14px}
.state-legend-row{display:flex; align-items:center; gap:16px; margin:8px 0 18px 4px}
.state-icon{width:30px; height:30px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#fff}
.state-icon.st-notvisited{background:linear-gradient(180deg,#f7f9fb,#dde2e8); border:1px solid #b9c2cf; color:#1a2332; border-radius:5px; box-shadow:0 1px 2px rgba(0,0,0,.08)}
.state-icon.st-notanswered{background:linear-gradient(180deg,#e5675a,#b8281f); border-radius:5px 5px 0 0; clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); box-shadow:0 1px 2px rgba(0,0,0,.15)}
.state-icon.st-answered{background:linear-gradient(180deg,#66bb6a,#2e7d32); clip-path:polygon(50% 0,100% 22%,100% 100%,0 100%,0 22%); box-shadow:0 1px 2px rgba(0,0,0,.15)}
.state-icon.st-marked{background:linear-gradient(180deg,#9a6fc9,#5b3193); border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.15)}
.state-icon.st-markedans{background:linear-gradient(180deg,#9a6fc9,#5b3193); border-radius:50%; position:relative; box-shadow:0 1px 2px rgba(0,0,0,.15)}
.state-icon.st-markedans::after{content:'✓'; position:absolute; bottom:-5px; right:-5px; width:14px; height:14px; border-radius:50%; background:var(--exam-success); color:#fff; font-size:9px; display:flex; align-items:center; justify-content:center}
.instr-note{color:var(--exam-danger); font-style:italic; margin-top:16px}
.instr-step{display:none}
.instr-step.active{display:block}
.ibps-logo-mark{text-align:left; margin-bottom:20px}
.ibps-logo-mark h2{font-family:'Zilla Slab',serif; font-size:18px; font-weight:700; text-decoration:underline; text-underline-offset:5px; color:var(--exam-text)}
.default-lang-row{display:flex; align-items:center; gap:10px; margin:20px 0 10px}
.default-lang-row select{padding:8px 12px; border-radius:var(--exam-radius-xs); border:1.5px solid var(--exam-border); background:var(--exam-bg); font-family:'Inter',sans-serif; font-size:13px; color:var(--exam-text)}
.agree-row{display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.7; color:var(--exam-text2); margin:14px 0 22px}
.agree-row input{margin-top:4px; width:16px; height:16px; flex-shrink:0}
.instr-nav{position:fixed; bottom:0; left:0; right:220px; display:flex; justify-content:space-between; align-items:center; padding:16px 56px 16px 40px; background:var(--exam-card); border-top:1px solid var(--exam-border); box-shadow:0 -2px 10px rgba(0,0,0,.06); z-index:60}
.btn-ibps-nav{background:#fff; border:1.5px solid var(--exam-border2); color:var(--exam-text); padding:13px 32px; border-radius:6px; font-weight:600; font-size:14px; font-family:'Inter',sans-serif; display:inline-flex; align-items:center; gap:8px; cursor:pointer; transition:all .15s; box-shadow:0 1px 3px rgba(0,0,0,.05)}
.btn-ibps-nav:hover{border-color:var(--exam-accent-dark); color:var(--exam-accent-dark); background:var(--exam-accent-glow)}
.btn-ibps-primary{background:var(--exam-primary); border:1.5px solid var(--exam-primary); color:#fff; padding:13px 32px; border-radius:6px; font-weight:600; font-size:14px; font-family:'Inter',sans-serif; cursor:pointer; transition:all .15s}
.btn-ibps-primary:hover{background:var(--exam-primary-dark)}
.btn-ibps-primary:disabled{opacity:.4; cursor:not-allowed}
.translating-msg{display:none; position:fixed; top:20px; left:50%; transform:translateX(-50%); background:var(--exam-primary); color:#fff; padding:8px 20px; border-radius:20px; font-size:13px; font-weight:600; z-index:200; box-shadow:var(--exam-shadow-lg)}
.translating-msg.show{display:block}
@media(max-width:768px){.instr-shell{flex-direction:column} .instr-side{width:100%; border-left:none; border-top:1px solid var(--exam-border)} .instr-main{padding:20px; padding-bottom:90px} .view-lang{position:static; justify-content:flex-end; margin-bottom:14px} .instr-nav{right:0; padding:14px 20px} .exam-header{padding:12px 16px; justify-content:flex-start; gap:10px} .exam-header .exam-logo-img{position:static; width:34px; height:34px; flex-shrink:0} .exam-header h1{font-size:15px; text-align:left; line-height:1.3; flex:1}}

/* ---------- Quiz engine (IBPS-style, always light — a distraction-free, exam-authentic screen not affected by the site's dark/light toggle) ---------- */
html.exam-page,body.exam-page{background:var(--exam-bg); min-height:100%}
.exam-page{font-family:'Inter',sans-serif; color:var(--exam-text)}
.exam-page select,.exam-page input{font-family:'Inter',sans-serif}
.exam-page button{font-family:'Inter',sans-serif}
.quiz-blackbar{background:var(--exam-primary-dark); color:#fff; padding:10px 24px; display:flex; align-items:center; justify-content:space-between; font-size:14px}
.quiz-blackbar .qb-title{color:var(--exam-accent); font-weight:600}
.quiz-blackbar .qb-instr{color:#cfe0ff; font-size:13px; cursor:pointer; text-decoration:none; display:flex; align-items:center; gap:6px}
.quiz-blackbar .qb-instr:hover{text-decoration:underline}
.quiz-topgrid{display:flex; background:var(--exam-card); border-bottom:1px solid var(--exam-border)}
.quiz-topgrid-left{flex:1; min-width:0}
.test-tab-row{display:flex; align-items:center; gap:10px; padding:9px 24px}
.test-tab-row.grey-strip{background:#eef1f3; border-bottom:1px solid var(--exam-border)}
.sec-tab-arrow{color:var(--exam-text3); font-size:13px; cursor:default; user-select:none}
.sec-tab{background:var(--exam-primary); color:#fff; padding:8px 18px; border-radius:4px; font-size:13px; font-weight:600; display:inline-flex; align-items:center; gap:6px; box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sec-tab-info{font-size:11px}
.sections-label-row{display:flex; align-items:center; justify-content:space-between; padding:8px 24px; font-size:13px; color:var(--exam-text2)}
.sections-label{font-weight:500}
.timeleft-inline{font-size:14px; color:var(--exam-text)}
.timeleft-inline strong{font-family:'IBM Plex Mono',monospace; font-size:15px}
.timeleft-inline.timer-danger strong{color:var(--exam-danger)}
.quiz-topgrid-right{width:280px; flex-shrink:0; border-left:1px solid var(--exam-border); padding:14px 20px; display:flex; align-items:center}
.ibps-quiz-shell{display:flex; gap:0; align-items:flex-start; position:relative}
.quiz-qarea{flex:1; min-width:0; padding:20px 24px 100px; background:var(--exam-card)}
.qtype-line{font-size:14px; color:var(--exam-text); padding:6px 2px 14px; font-weight:700}
.viewin-bar{background:var(--exam-primary); color:#fff; border-radius:4px; padding:10px 16px; display:flex; align-items:center; justify-content:flex-end; font-size:13px; font-weight:600; margin-bottom:20px}
.viewin-select{padding:6px 10px; border-radius:4px; border:1px solid #fff; font-family:inherit; font-size:13px; background:#fff; color:var(--exam-text); cursor:pointer; margin-left:6px}
.qno-line{font-size:16px; font-weight:700; margin-bottom:14px}
.qtext-ibps{font-size:15px; line-height:1.8; margin-bottom:22px; color:var(--exam-text)}
.options-list-ibps{display:flex; flex-direction:column; gap:16px; margin-bottom:30px}
.ibps-opt{display:flex; align-items:center; gap:12px; cursor:pointer; font-size:14px; color:var(--exam-text)}
.ibps-opt input[type=radio]{width:17px; height:17px; accent-color:var(--exam-accent-dark); cursor:pointer; flex-shrink:0}
.quiz-actionbar{position:fixed; bottom:0; left:0; right:280px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px 24px; background:var(--exam-card); border-top:1px solid var(--exam-border); box-shadow:0 -2px 10px rgba(0,0,0,.06); z-index:60}
.quiz-actionbar .left-grp,.quiz-actionbar .right-grp{display:flex; gap:8px; flex-wrap:wrap}
.btn-ibps{padding:9px 16px; font-size:12.5px; font-weight:600; border-radius:4px; cursor:pointer; font-family:'Inter',sans-serif; border:1px solid transparent; transition:opacity .15s}
.btn-ibps:hover{opacity:.9}
.btn-outline-purple{background:#fff; color:var(--exam-text); border:1px solid var(--exam-border2)}
.btn-outline-purple:hover{background:var(--exam-bg)}
.btn-plain{background:#fff; color:var(--exam-text); border:1px solid var(--exam-border2)}
.btn-plain:hover{background:var(--exam-bg)}
.btn-examblue{background:var(--exam-primary); color:#fff; border:1px solid var(--exam-primary)}
.btn-examblue:hover{background:var(--exam-primary-dark)}
.btn-examblue-muted{background:var(--exam-accent); color:var(--exam-primary-dark); border:1px solid var(--exam-accent)}
.btn-examblue-muted:hover{background:#DDAE55}
.quiz-rightbar{width:280px; flex-shrink:0; background:var(--exam-card); border-left:1px solid var(--exam-border); padding:20px; position:sticky; top:0; align-self:flex-start}
.palette-toggle{display:none}
.cand-box{display:flex; align-items:center; gap:12px}
.cand-box .cand-avatar-sm{width:46px; height:46px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#f3f6fa,#c2cad6 55%,#8d99ab 100%); display:flex; align-items:center; justify-content:center; font-size:22px; color:#54627a; flex-shrink:0; box-shadow:0 3px 10px rgba(26,35,50,.16)}
.cand-box .cand-name-sm{font-weight:600; font-size:14.5px; color:var(--exam-text)}
.status-grid{display:grid; grid-template-columns:1fr 1fr; gap:0; margin-bottom:16px; border:1px solid var(--exam-border); border-radius:6px; overflow:hidden}
.status-cell{display:flex; align-items:center; gap:8px; padding:9px 10px; border-bottom:1px solid var(--exam-border); font-size:11.5px; line-height:1.3; color:var(--exam-text2)}
.status-cell:nth-child(odd){border-right:1px solid var(--exam-border)}
.status-cell .sc-num{font-weight:800; font-size:14px; color:var(--exam-text); min-width:16px}
.status-cell.span2{grid-column:1/-1; border-right:none}
.sc-icon{width:20px; height:20px; flex-shrink:0}
.sc-icon.st-notvisited{background:#fff; border:1.5px solid #b9c2cf; border-radius:4px}
.sc-icon.st-notanswered{background:linear-gradient(180deg,#e5675a,#b8281f); clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sc-icon.st-answered{background:linear-gradient(180deg,#66bb6a,#2e7d32); clip-path:polygon(50% 0,100% 22%,100% 100%,0 100%,0 22%); box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sc-icon.st-marked{background:linear-gradient(180deg,#9a6fc9,#5b3193); border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sc-icon.st-markedans{background:linear-gradient(180deg,#9a6fc9,#5b3193); border-radius:50%; position:relative; box-shadow:0 1px 2px rgba(0,0,0,.15)}
.sc-icon.st-markedans::after{content:''; position:absolute; bottom:-3px; right:-3px; width:8px; height:8px; border-radius:50%; background:var(--exam-success); border:1px solid #fff}
.section-hdr-box{background:var(--exam-primary); color:#fff; font-weight:700; font-size:13px; padding:9px 14px; border-radius:6px 6px 0 0}
.choose-q-label{font-size:12px; color:var(--exam-text2); font-weight:600; padding:8px 14px; background:var(--exam-bg); border-left:1px solid var(--exam-border); border-right:1px solid var(--exam-border)}
.q-num-grid-ibps{display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:12px 14px 6px; border:1px solid var(--exam-border); border-top:none; border-radius:0 0 6px 6px}
.q-num-ibps{aspect-ratio:1; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; cursor:pointer; color:var(--exam-text); position:relative; transition:transform .1s; text-decoration:none}
.q-num-ibps:hover{transform:scale(1.06); text-decoration:none}
.q-num-ibps.qs-notvisited{background:linear-gradient(180deg,#f7f9fb,#dde2e8); border:1px solid #b9c2cf; border-radius:5px; color:#1a2332; box-shadow:0 1px 2px rgba(0,0,0,.08)}
.q-num-ibps.qs-notanswered{background:linear-gradient(180deg,#e5675a,#b8281f); color:#fff; clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); box-shadow:0 1px 3px rgba(0,0,0,.2)}
.q-num-ibps.qs-answered{background:linear-gradient(180deg,#66bb6a,#2e7d32); color:#fff; clip-path:polygon(50% 22%,100% 22%,100% 100%,0 100%,0 22%); box-shadow:0 1px 3px rgba(0,0,0,.2)}
.q-num-ibps.qs-marked{background:linear-gradient(180deg,#9a6fc9,#5b3193); color:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.2)}
.q-num-ibps.qs-markedans{background:linear-gradient(180deg,#9a6fc9,#5b3193); color:#fff; border-radius:50%; box-shadow:0 1px 3px rgba(0,0,0,.2)}
.q-num-ibps.qs-markedans::after{content:''; position:absolute; bottom:-2px; right:-2px; width:9px; height:9px; border-radius:50%; background:var(--exam-success); border:1.5px solid #fff}
.q-num-ibps.current-q{outline:2.5px solid var(--exam-primary-dark); outline-offset:2px}
.mobile-bottom-bar{display:none}
.submit-status-grid{text-align:left; margin:14px 0 4px}
.submit-status-row{display:flex; align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--exam-border); font-size:14px; color:var(--exam-text2)}
.submit-status-row:last-child{border-bottom:none}
.submit-status-row .sc-icon{width:20px; height:20px; flex-shrink:0}
.submit-status-row span:nth-child(2){flex:1}
.submit-status-row strong{font-size:15px; color:var(--exam-text)}
.modal-overlay{position:fixed; inset:0; background:rgba(20,20,30,.4); display:flex; align-items:center; justify-content:center; z-index:999; backdrop-filter:blur(3px); padding:20px}
.modal-box{background:#fff; border:1px solid var(--exam-border); border-radius:var(--exam-radius); padding:32px; max-width:440px; width:100%; text-align:center; box-shadow:var(--exam-shadow-lg); font-family:'Inter',sans-serif; color:var(--exam-text)}
.modal-box h3{font-family:'Zilla Slab',serif; font-size:19px; font-weight:700; margin-bottom:8px}
.modal-box p{color:var(--exam-text2); font-size:14px; margin-bottom:24px; line-height:1.6}
@media(max-width:900px){
  .quiz-topgrid{flex-direction:column}
  .quiz-topgrid-right{width:100%; border-left:none; border-top:1px solid var(--exam-border)}
  .ibps-quiz-shell{flex-direction:column}
  .quiz-rightbar{width:100%; position:static; border-left:none; border-top:1px solid var(--exam-border); padding-bottom:90px}
  .q-num-grid-ibps{grid-template-columns:repeat(6,1fr)}
  .quiz-actionbar{right:0}
  .palette-toggle{display:flex; align-items:center; justify-content:space-between; width:100%; background:var(--exam-primary); color:#fff; border:none; padding:12px 16px; border-radius:6px; font-size:14px; font-weight:700; cursor:pointer; font-family:'Inter',sans-serif}
  .rightbar-body{margin-top:14px}
  .rightbar-body.collapsed{display:none}
}
@media(max-width:600px){
  .exam-header{padding:10px 14px; justify-content:flex-start; gap:10px}
  .exam-header .exam-logo-img{position:static; width:30px; height:30px; flex-shrink:0}
  .exam-header h1{font-size:13px; text-align:left; line-height:1.3; flex:1}
  .quiz-blackbar{padding:9px 14px; font-size:12px}
  .quiz-topgrid-left{padding:8px 14px}
  .quiz-qarea{padding:14px 16px 110px}
  .qtext-ibps{font-size:14px}
  .quiz-actionbar{padding:12px 14px}
  .btn-ibps{font-size:12px; padding:9px 12px}
  .quiz-topgrid-right{padding:10px 14px}
  .cand-box .cand-name-sm{font-size:12px}
  .sections-label-row{padding:6px 14px; font-size:12px}
  .timeleft-inline{font-size:12px}
}

/* ---------- Result (rich, "admit card" branded results page) ---------- */
.result-page{max-width:820px; margin:0 auto; padding:36px 0 60px}
.result-header{text-align:center; padding:40px 20px; margin-bottom:24px; background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius); box-shadow:var(--exam-shadow-sm)}
.result-header h2{font-family:'Zilla Slab',serif; font-size:22px; margin:14px 0 4px; color:var(--exam-text)}
.result-header .rp-testname{color:var(--exam-text2); font-size:14px}
.score-circle{width:150px; height:150px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; position:relative}
.score-circle::before{content:''; position:absolute; inset:-5px; border-radius:50%; background:conic-gradient(var(--exam-accent) var(--pct), var(--exam-border) var(--pct))}
.score-circle .inner{position:relative; z-index:1; width:calc(100% - 10px); height:calc(100% - 10px); border-radius:50%; background:var(--exam-card); display:flex; flex-direction:column; align-items:center; justify-content:center}
.score-circle .inner .big{font-family:'Zilla Slab',serif; font-size:30px; font-weight:700; color:var(--exam-text)}
.score-circle .inner .pct{font-size:13px; color:var(--exam-text2); margin-top:2px}
.pass-flag{display:inline-block; font-family:'IBM Plex Mono',monospace; font-size:11.5px; letter-spacing:.5px; padding:4px 12px; border-radius:20px; margin-top:6px}
.pass-flag.pass{background:var(--exam-success-glow); color:var(--exam-success)}
.pass-flag.fail{background:var(--exam-danger-glow); color:var(--exam-danger)}
.result-stats{display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin-bottom:24px}
.r-stat{background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius-sm); padding:16px; text-align:center; box-shadow:var(--exam-shadow-sm)}
.r-stat .val{font-family:'Zilla Slab',serif; font-size:22px; font-weight:700}
.r-stat .lbl{font-size:11.5px; color:var(--exam-text2); margin-top:3px}
.chart-card{background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius); padding:24px; margin-bottom:20px; box-shadow:var(--exam-shadow-sm)}
.chart-card h3{font-family:'Zilla Slab',serif; font-size:16px; font-weight:700; margin-bottom:18px}
.bar-chart{display:flex; align-items:flex-end; gap:32px; justify-content:center; padding:20px 0; height:200px}
.bar-item{display:flex; flex-direction:column; align-items:center; gap:8px; justify-content:flex-end; height:100%}
.bar-fill{width:58px; border-radius:6px 6px 0 0; transition:height .5s; position:relative; min-height:4px}
.bar-val{position:absolute; top:-24px; left:50%; transform:translateX(-50%); font-size:13px; font-weight:700; white-space:nowrap}
.bar-label{font-size:12px; color:var(--exam-text2); font-weight:500; text-align:center}
.qw-cell{width:34px; height:34px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; border:2px solid}
.review-q{background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius); padding:20px; margin-bottom:12px; box-shadow:var(--exam-shadow-sm)}
.rq-head{display:flex; align-items:center; gap:12px; margin-bottom:14px}
.rq-num{width:28px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-size:12.5px; font-weight:700; color:#fff; flex-shrink:0}
.rq-num.correct{background:var(--exam-success)}
.rq-num.wrong{background:var(--exam-danger)}
.rq-num.skip{background:var(--exam-text3)}
.rev-opt{padding:10px 14px; border-radius:var(--exam-radius-xs); font-size:13px; display:flex; align-items:center; gap:10px; border:1px solid var(--exam-border); background:var(--exam-bg); margin-bottom:6px}
.rev-opt.is-correct{border-color:var(--exam-success); background:var(--exam-success-glow)}
.rev-opt.is-wrong{border-color:var(--exam-danger); background:var(--exam-danger-glow)}
@media(max-width:640px){.result-stats{grid-template-columns:repeat(2,1fr)} .bar-chart{gap:16px} .bar-fill{width:44px}}

/* ---------- Footer ---------- */
footer{border-top:1px solid rgba(var(--gold-rgb),0.2); padding:30px 0; margin-top:60px}
footer p{color:var(--text-lo); font-size:13px; margin:0}
.footer-links{display:flex; gap:22px; flex-wrap:wrap; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(var(--gold-rgb),0.12)}
.footer-links a{color:var(--text-lo); font-size:13px}
.footer-links a:hover{color:var(--gold)}
.footer-bottom-row{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px}
.legal-page{max-width:760px; margin:0 auto; padding:56px 0 70px}
.legal-page h1{font-size:30px; color:var(--text-hi); margin-bottom:6px}
.legal-page .legal-updated{color:var(--text-lo); font-size:13px; font-family:'IBM Plex Mono',monospace; margin-bottom:34px}
.legal-page h2{font-size:18px; color:var(--text-hi); margin:34px 0 10px}
.legal-page p,.legal-page li{color:var(--text-lo); font-size:14.5px; line-height:1.75}
.legal-page ul{padding-left:20px; margin:0 0 14px}
.legal-page li{margin-bottom:8px}
.legal-page a{color:var(--gold)}

/* ---------- Admin ---------- */
.admin-shell{display:grid; grid-template-columns:220px 1fr; min-height:100vh}
.admin-side{background:var(--surface-2); border-right:1px solid rgba(var(--gold-rgb),0.2); padding:26px 0}
.admin-side .brand{padding:0 22px 24px}
.admin-side a{display:block; padding:11px 22px; color:var(--text-lo); font-size:14px}
.admin-side a:hover,.admin-side a.active{color:var(--text-hi); text-decoration:none; background:rgba(var(--gold-rgb),0.08); border-left:2px solid var(--gold)}
.admin-main{padding:30px 36px; background:var(--surface-1)}
.admin-main h1{font-size:24px; margin-bottom:22px}
table.dtable{width:100%; border-collapse:collapse; background:var(--surface-2); border:var(--border); border-radius:var(--radius); overflow:hidden}
table.dtable th{text-align:left; font-family:'IBM Plex Mono',monospace; font-size:11.5px; color:var(--text-lo); padding:12px 14px; border-bottom:1px solid rgba(var(--gold-rgb),0.25); letter-spacing:.4px}
table.dtable td{padding:12px 14px; border-bottom:1px solid rgba(var(--gold-rgb),0.1); font-size:13.5px; color:var(--text-hi)}
table.dtable tr:last-child td{border-bottom:none}
.card-box{background:var(--surface-2); border:var(--border); border-radius:var(--radius); padding:22px; margin-bottom:22px}
.admin-main .field label{color:var(--text-lo)}
.admin-main .field input,.admin-main .field select,.admin-main .field textarea{background:var(--surface-1); border-color:rgba(var(--gold-rgb),0.3); color:var(--text-hi)}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.tabs{display:flex; gap:4px; margin-bottom:20px; border-bottom:1px solid rgba(var(--gold-rgb),0.2)}
.tabs a{padding:10px 16px; font-size:13.5px; color:var(--text-lo); border-bottom:2px solid transparent}
.tabs a.active{color:var(--gold); border-color:var(--gold)}
.stat-row{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:26px}
.stat-row div{background:var(--surface-2); border:var(--border); padding:18px; border-radius:var(--radius)}
.stat-row b{display:block; font-family:'Zilla Slab',serif; font-size:26px; color:var(--gold)}
.stat-row span{font-size:12px; color:var(--text-lo)}

/* ---------- Student app shell (sidebar) ---------- */
.app-shell{display:grid; grid-template-columns:240px 1fr; min-height:100vh}
.app-side{background:var(--surface-2); border-right:1px solid rgba(var(--gold-rgb),0.2); display:flex; flex-direction:column}
.app-side .brand{padding:22px 20px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.app-nav{flex:1; padding-top:6px}
.app-nav a{display:flex; align-items:center; gap:11px; padding:11px 20px; color:var(--text-lo); font-size:14px; border-left:2px solid transparent}
.app-nav a svg{stroke:currentColor}
.app-nav a:hover,.app-nav a.active{color:var(--text-hi); text-decoration:none; background:rgba(var(--gold-rgb),0.08); border-left-color:var(--gold)}
.app-nav .divider{height:1px; background:rgba(var(--gold-rgb),0.15); margin:10px 20px}
.app-user{padding:16px 20px; border-top:1px solid rgba(var(--gold-rgb),0.15); display:flex; align-items:center; gap:10px}
.app-user .avatar{width:38px; height:38px; border-radius:50%; background:var(--gold); color:var(--ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Zilla Slab',serif; font-size:14px; flex-shrink:0}
.app-user .who{flex:1; min-width:0}
.app-user .who b{display:block; font-size:13.5px; color:var(--text-hi); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.app-user .who span{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:block}
.app-user svg{stroke:currentColor}
.app-main{padding:38px 42px; background:var(--surface-1)}
.app-main .eyebrow{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold); letter-spacing:1.2px; margin-bottom:10px}
.app-main h1{font-size:29px; margin-bottom:6px}
.app-main p.sub{color:var(--text-lo); margin-bottom:0}

/* ---------- Responsive ---------- */
@media(max-width:840px){
  .quiz-shell{grid-template-columns:1fr}
  .quiz-side{position:static}
  .admin-shell,.app-shell{grid-template-columns:1fr}
  .admin-side,.app-side{display:flex; overflow-x:auto; padding:14px; flex-direction:row !important}
  .admin-side .brand,.app-side .brand{padding:0 10px 0 0; flex-shrink:0; border-right:1px solid rgba(var(--gold-rgb),.2); margin-right:8px}
  .admin-side .brand small,.app-side .brand small{display:none}
  .admin-side a,.app-nav a{padding:8px 14px; white-space:nowrap; border-left:none}
  .app-nav{display:flex}
  .app-user{border-top:none; border-left:1px solid rgba(var(--gold-rgb),.15)}
  .result-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:780px){
  .nav-toggle{display:flex}
  .nav .wrap{position:relative}
  .brand small{display:none}
  .navlinks{
    display:none; position:absolute; top:100%; left:0; right:0; z-index:60;
    flex-direction:column; align-items:stretch; gap:0; padding:8px 0;
    background:var(--surface-1); border-bottom:1px solid rgba(var(--gold-rgb),0.2); box-shadow:var(--shadow);
  }
  .navlinks.open{display:flex}
  .navlinks a{padding:13px 24px; width:100%}
  .navlinks a.btn{margin:8px 24px; width:auto}
  .nav-theme-row{padding:13px 24px; justify-content:space-between}
  .nav-theme-row span{display:inline; color:var(--text-lo); font-size:13px}
}
@media(max-width:640px){
  .wrap{padding:0 20px}
  .hero h1{font-size:32px}
  .hero-stats{gap:10px}
  .hero-stats div b{font-size:20px}
  .hero-stats div span{font-size:11px}
  .stat-row{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){ *{transition:none !important; scroll-behavior:auto !important} }

/* ---------- Interactive dashboard bits (stat rings, filter bars, hover polish) ---------- */
.stat-cards-v2{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:8px}
.stat-card-v2{background:var(--surface-2); border:var(--border); border-radius:var(--radius); padding:20px; display:flex; align-items:center; gap:16px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease}
.stat-card-v2:hover{transform:translateY(-3px); box-shadow:0 10px 26px rgba(0,0,0,.18); border-color:rgba(var(--gold-rgb),0.5)}
.stat-card-v2 .sc-icon-wrap{width:44px; height:44px; border-radius:10px; background:rgba(var(--gold-rgb),0.12); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold)}
.stat-card-v2 .sc-icon-wrap svg{stroke:currentColor}
.stat-card-v2 .sc-body b{display:block; font-family:'Zilla Slab',serif; font-size:26px; color:var(--text-hi); line-height:1.1}
.stat-card-v2 .sc-body span{font-size:12px; color:var(--text-lo)}
.stat-ring{width:44px; height:44px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center; position:relative; background:conic-gradient(var(--gold) var(--pct,0%), rgba(var(--gold-rgb),0.15) var(--pct,0%)); transition:background 1s ease}
.stat-ring .ring-inner{width:34px; height:34px; border-radius:50%; background:var(--surface-2); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:var(--text-hi); font-family:'IBM Plex Mono',monospace}

/* Filter bar */
.filter-bar{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:26px 0 18px}
.filter-bar input[type=search],.filter-bar input[type=text]{flex:1; min-width:200px; padding:10px 14px; border:1px solid rgba(var(--gold-rgb),0.3); border-radius:2px; background:var(--surface-1); color:var(--text-hi); font-family:'Inter',sans-serif; font-size:14px}
.filter-bar input[type=search]:focus,.filter-bar select:focus{outline:2px solid var(--gold-dim); outline-offset:0}
.filter-bar select{padding:10px 12px; border:1px solid rgba(var(--gold-rgb),0.3); border-radius:2px; background:var(--surface-1); color:var(--text-hi); font-family:'Inter',sans-serif; font-size:13.5px; cursor:pointer}
.filter-bar .fb-count{font-size:12.5px; color:var(--text-lo); font-family:'IBM Plex Mono',monospace; white-space:nowrap}

/* Row / card hover polish */
.ledger-row{transition:background .15s ease}
.ledger-row:hover{background:rgba(var(--gold-rgb),0.06)}
.ticket{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
.ticket:hover{transform:translateY(-4px); box-shadow:0 14px 34px rgba(0,0,0,.22); border-color:rgba(var(--gold-rgb),0.5)}
table.dtable tr:hover td{background:rgba(var(--gold-rgb),0.06)}
th.sortable{cursor:pointer; user-select:none}
th.sortable:hover{color:var(--gold)}
th.sortable .sort-arrow{font-size:10px; margin-left:4px; opacity:.5}
.empty-note.hidden,.ticket.hidden,.ledger-row.hidden,tr.hidden{display:none !important}
@media(max-width:840px){.stat-cards-v2{grid-template-columns:repeat(2,1fr)}}

/* ---------- Dashboard analytics (charts, mini-lists, deltas) ---------- */
.stat-delta{display:block; width:max-content; margin-top:8px; font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px}
.stat-delta.up{background:rgba(var(--green-rgb),0.15); color:var(--green)}
.stat-delta.down{background:rgba(var(--red-rgb),0.15); color:var(--red)}
.stat-delta.flat{background:rgba(var(--text-lo-rgb),0.15); color:var(--text-lo)}

.dashboard-grid{display:grid; grid-template-columns:2fr 1fr; gap:20px; align-items:start; margin-bottom:24px}
.dashboard-grid-3{display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:20px; align-items:start; margin-bottom:24px}
@media(max-width:1100px){.dashboard-grid-3{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr} .dashboard-grid-3{grid-template-columns:1fr}}

.chart-wrap{position:relative; height:240px}
.legend-row{display:flex; gap:18px; margin-top:14px; font-size:12px; color:var(--text-lo); flex-wrap:wrap}
.legend-dot{display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:6px}

.mini-list{list-style:none; margin:0; padding:0}
.mini-list li{display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(var(--gold-rgb),0.12); font-size:13.5px; color:var(--text-hi)}
.mini-list li:last-child{border-bottom:none}
.mini-list li span:first-child{color:var(--text-lo)}
.mini-list li a{font-size:13px}

.qa-list{display:flex; flex-direction:column; gap:8px}
.qa-list a{display:flex; align-items:center; gap:10px; width:100%; box-sizing:border-box; text-decoration:none}
.card-box h2{font-size:16px; color:var(--text-hi); margin:0 0 16px}
.card-box h2:not(:first-child){margin-top:22px}

/* ---------- Homepage — marketing sections (features, steps, FAQ, CTA) ---------- */
.feature-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; padding:56px 0 20px}
.feature-card{padding:2px}
.feature-icon{width:46px; height:46px; border-radius:10px; background:rgba(var(--gold-rgb),0.12); display:flex; align-items:center; justify-content:center; color:var(--gold); margin-bottom:16px}
.feature-icon svg{stroke:currentColor}
.feature-card h3{font-size:16.5px; color:var(--text-hi); margin-bottom:8px}
.feature-card p{font-size:13.5px; color:var(--text-lo); margin:0; line-height:1.6}

.steps-row{display:grid; grid-template-columns:repeat(3,1fr); gap:24px; padding:20px 0 8px}
.step-card{position:relative; padding:26px 22px; background:var(--surface-2); border:var(--border); border-radius:var(--radius)}
.step-num{width:34px; height:34px; border-radius:50%; background:var(--gold); color:var(--ink); display:flex; align-items:center; justify-content:center; font-family:'Zilla Slab',serif; font-weight:700; font-size:15px; margin-bottom:14px}
.step-card h3{font-size:15.5px; color:var(--text-hi); margin-bottom:6px}
.step-card p{font-size:13.5px; color:var(--text-lo); margin:0; line-height:1.6}

.faq-section{padding:8px 0 20px; max-width:760px; margin:0 auto}
.faq-item{border-bottom:1px solid rgba(var(--gold-rgb),0.18); padding:18px 0}
.faq-item summary{cursor:pointer; font-weight:600; color:var(--text-hi); font-size:15px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:'+'; font-size:20px; color:var(--gold); font-weight:400; transition:transform .2s; flex-shrink:0}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{color:var(--text-lo); font-size:14px; margin:12px 0 0; line-height:1.7; max-width:none}

.cta-banner{background:var(--surface-2); border:1px solid rgba(var(--gold-rgb),0.3); border-radius:var(--radius); padding:56px 40px; text-align:center; margin:20px 0 60px}
.cta-banner h2{font-size:27px; color:var(--text-hi); margin-bottom:10px}
.cta-banner p{color:var(--text-lo); margin:0 auto 26px; max-width:52ch}

@media(max-width:900px){.feature-grid{grid-template-columns:repeat(2,1fr)} .steps-row{grid-template-columns:1fr}}
@media(max-width:640px){.feature-grid{grid-template-columns:1fr} .cta-banner{padding:40px 22px}}

/* ---------- Homepage — interactive product mockups & scroll reveal ---------- */
.reveal{opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease}
.reveal.in-view{opacity:1; transform:none}

/* Browser-chrome frame used to present real product screens */
.mockup-chrome{display:flex; align-items:center; gap:6px; padding:10px 14px; background:var(--surface-2); border-bottom:1px solid rgba(var(--gold-rgb),0.18)}
.mockup-chrome-compact{padding:7px 12px}
.mockup-chrome-compact .mockup-dot{width:7px; height:7px}
.mockup-chrome-compact .mockup-title{font-size:10.5px}
.mockup-dot{width:9px; height:9px; border-radius:50%; display:inline-block; flex-shrink:0}
.mockup-title{margin:0 auto; font-family:'Inter',sans-serif; font-size:12px; font-weight:600; color:var(--text-lo)}
.mockup-frame{background:var(--surface-2); border:var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow)}

/* Hero mockup + floating chips */
.hero-mockup-wrap{position:relative; max-width:600px; margin:64px auto 0; padding:36px 44px 30px}
.hero-mockup-ghost{position:absolute; top:0; left:6%; width:80%; transform:rotate(-4deg); z-index:0; opacity:0.85}
.hero-mockup-main{position:relative; z-index:1}
.hero-chip{position:absolute; background:var(--paper); color:var(--text-ink); font-size:12px; font-weight:600; padding:7px 13px; border-radius:20px; box-shadow:var(--shadow); font-family:'Inter',sans-serif; animation:chipFloat 4.5s ease-in-out infinite; z-index:2; white-space:nowrap}
.hero-chip-1{top:6px; right:0}
.hero-chip-2{top:44%; right:-4%; animation-delay:.6s}
.hero-chip-3{bottom:2px; left:2%; animation-delay:1.2s}
@keyframes chipFloat{0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)}}

/* Mini exam-screen mockup (hero + tab 1) */
.demo-quiz{display:flex; gap:0}
.demo-quiz-main{flex:1; padding:18px 20px; min-width:0}
.demo-quiz-qno{font-size:11px; font-weight:700; color:var(--text-lo); margin-bottom:8px; font-family:'IBM Plex Mono',monospace}
.demo-quiz-qtext{font-size:13.5px; color:var(--text-hi); margin-bottom:14px; line-height:1.5}
.demo-quiz-opt{display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid rgba(var(--gold-rgb),0.2); border-radius:4px; font-size:12.5px; color:var(--text-lo); margin-bottom:7px}
.demo-quiz-opt .dot{width:13px; height:13px; border-radius:50%; border:1.5px solid rgba(var(--gold-rgb),0.4); flex-shrink:0}
.demo-quiz-opt.selected{border-color:var(--gold); background:rgba(var(--gold-rgb),0.08); color:var(--text-hi)}
.demo-quiz-opt.selected .dot{background:var(--gold); border-color:var(--gold)}
.demo-quiz-side{width:150px; flex-shrink:0; border-left:1px solid rgba(var(--gold-rgb),0.18); padding:16px; background:var(--surface-1)}
.demo-timer{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-hi); margin-bottom:12px}
.demo-palette{display:grid; grid-template-columns:repeat(4,1fr); gap:6px}
.demo-palette span{aspect-ratio:1; border-radius:3px; font-size:10px; display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-weight:700; color:#fff}
.demo-palette .p-answered{background:var(--green)}
.demo-palette .p-notanswered{background:var(--red)}
.demo-palette .p-notvisited{background:transparent; border:1px solid rgba(var(--gold-rgb),0.3); color:var(--text-lo)}
.demo-palette .p-marked{background:#5b3193}

/* Mini result mockup (tab 2) */
.demo-result{padding:22px; text-align:center}
.demo-score-ring{width:88px; height:88px; border-radius:50%; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; background:conic-gradient(var(--gold) var(--pct,78%), rgba(var(--gold-rgb),0.15) var(--pct,78%))}
.demo-score-ring .inner{width:76px; height:76px; border-radius:50%; background:var(--surface-2); display:flex; flex-direction:column; align-items:center; justify-content:center}
.demo-score-ring .inner b{font-family:'Zilla Slab',serif; font-size:16px; color:var(--text-hi)}
.demo-score-ring .inner span{font-size:10px; color:var(--text-lo)}
.demo-result-stats{display:flex; justify-content:center; gap:10px; margin-bottom:14px; flex-wrap:wrap}
.demo-result-stats div{background:var(--surface-1); border:1px solid rgba(var(--gold-rgb),0.18); border-radius:4px; padding:8px 14px}
.demo-result-stats b{display:block; font-family:'Zilla Slab',serif; font-size:16px}
.demo-result-stats span{font-size:10px; color:var(--text-lo)}
.demo-result-bar{display:flex; height:14px; border-radius:4px; overflow:hidden; max-width:280px; margin:0 auto}

/* Mini ticket mockup (tab 3) */
.demo-ticket{padding:22px}
.demo-ticket-cat{font-family:'IBM Plex Mono',monospace; font-size:10px; color:var(--gold); letter-spacing:1px; margin-bottom:8px}
.demo-ticket h4{font-size:15px; color:var(--text-hi); margin-bottom:14px}
.demo-ticket-meta{display:flex; gap:16px; font-size:11px; color:var(--text-lo); padding-bottom:14px; border-bottom:1px dashed rgba(var(--gold-rgb),0.3); margin-bottom:14px}
.demo-ticket-meta b{display:block; color:var(--text-hi); font-size:12.5px}
.demo-ticket-buy{display:flex; align-items:center; justify-content:space-between}
.demo-ticket-price{font-family:'Zilla Slab',serif; font-size:18px; color:var(--gold)}

/* Tabbed "see it in action" section */
.demo-tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:28px}
.demo-tab{padding:10px 18px; border:1px solid rgba(var(--gold-rgb),0.3); border-radius:20px; font-size:13.5px; color:var(--text-lo); cursor:pointer; background:transparent; font-family:'Inter',sans-serif}
.demo-tab.active{background:var(--gold); border-color:var(--gold); color:var(--ink); font-weight:600}
.demo-panel{display:none}
.demo-panel.active{display:block; animation:demoFadeIn .35s ease}
@keyframes demoFadeIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}

@media(max-width:640px){.hero-chip,.hero-mockup-ghost{display:none} .hero-mockup-wrap{padding:0; margin-top:40px} .demo-quiz{flex-direction:column} .demo-quiz-side{width:auto; border-left:none; border-top:1px solid rgba(var(--gold-rgb),0.18)}}
