/* ==========================================================
   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; overflow-x:clip} /* clip (not hidden) so position:sticky on the nav + pass strip works */
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-head{padding:22px 20px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.app-side .brand{padding:0}
.app-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; flex-shrink:0; position:relative; z-index:210}
.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{display:flex; overflow-x:auto; padding:14px; flex-direction:row !important}
  .admin-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{display:none}
  .admin-side a{padding:8px 14px; white-space:nowrap; border-left:none}

  .app-side{flex-direction:column; position:relative; z-index:200; border-right:none; border-bottom:1px solid rgba(var(--gold-rgb),.2)}
  .app-main{padding:24px 18px; overflow-x:hidden; overflow-x:clip}
  .app-shell{overflow-x:hidden; overflow-x:clip}
  .app-side-head{padding:14px 16px}
  .app-side .brand small{display:none}
  .app-toggle{display:flex}
  .app-side-links{
    display:none; flex-direction:column; align-items:stretch;
    position:absolute; top:100%; left:0; right:0; z-index:210;
    background:var(--surface-2); border-bottom:1px solid rgba(var(--gold-rgb),0.2); box-shadow:var(--shadow);
    max-height:calc(100vh - 60px); overflow-y:auto;
  }
  .app-side-links.open{display:flex}
  .app-nav{display:flex; flex-direction:column; padding-top:4px}
  .app-nav a{padding:13px 20px; white-space:normal; border-left:none}
  .app-user{border-top:1px solid rgba(var(--gold-rgb),.15); border-left:none}
  .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)} .stat-card-v2{align-items:flex-start; justify-content:center}}

/* ---------- 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; max-width:100%}
.chart-wrap canvas{max-width:100%}
.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 .btn{padding:15px 34px; font-size:15px}
.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)}}

/* ---------- Cart (slide-in drawer) ---------- */
.cart-toggle{position:relative; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:4px; border:1px solid rgba(var(--gold-rgb),0.3); background:transparent; color:var(--text-hi); cursor:pointer; flex-shrink:0}
.cart-toggle svg{stroke:currentColor}
.cart-badge{position:absolute; top:-7px; right:-7px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:var(--gold); color:var(--ink); font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:700; display:flex; align-items:center; justify-content:center}
.cart-badge.hidden{display:none}
.cart-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:200; opacity:0; pointer-events:none; transition:opacity .25s ease}
.cart-backdrop.open{opacity:1; pointer-events:auto}
.cart-drawer{position:fixed; top:0; right:0; bottom:0; width:380px; max-width:92vw; background:var(--surface-1); border-left:1px solid rgba(var(--gold-rgb),0.25); z-index:201; display:flex; flex-direction:column; transform:translateX(100%); transition:transform .3s ease; box-shadow:-8px 0 30px rgba(0,0,0,.25)}
.cart-drawer.open{transform:translateX(0)}
.cart-drawer-head{display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid rgba(var(--gold-rgb),0.15)}
.cart-drawer-head h3{font-size:18px; color:var(--text-hi); margin:0}
.cart-drawer-close{background:transparent; border:none; color:var(--text-lo); font-size:22px; cursor:pointer; line-height:1; padding:4px}
.cart-drawer-close:hover{color:var(--text-hi)}
.cart-drawer-body{flex:1; overflow-y:auto; padding:10px 22px}
.cart-empty-msg{color:var(--text-lo); font-size:14px; padding:40px 0; text-align:center}
.cart-item{display:flex; align-items:flex-start; gap:12px; padding:14px 0; border-bottom:1px solid rgba(var(--gold-rgb),0.12)}
.cart-item-info{flex:1; min-width:0}
.cart-item-title{font-size:13.5px; color:var(--text-hi); font-weight:600; margin-bottom:4px}
.cart-item-price{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold)}
.cart-item-remove{background:transparent; border:1px solid rgba(var(--red-rgb),0.3); color:var(--red); border-radius:3px; font-size:11px; padding:4px 8px; cursor:pointer; flex-shrink:0}
.cart-item-remove:hover{background:rgba(var(--red-rgb),0.1)}
.cart-drawer-footer{padding:18px 22px 22px; border-top:1px solid rgba(var(--gold-rgb),0.15)}
.cart-total-row{display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-size:15px; color:var(--text-hi)}
.cart-total-row b{font-family:'Zilla Slab',serif; font-size:20px; color:var(--gold)}
@media(max-width:640px){.cart-drawer{width:100%; max-width:100%}}

/* Bundle note inside the cart drawer */
.cart-bundle-note{padding:12px 14px; margin:4px 0 8px; background:rgba(var(--gold-rgb),0.1); border:1px solid rgba(var(--gold-rgb),0.3); border-radius:var(--radius)}
.cart-bundle-note .cart-item-title{margin-bottom:2px}
.cart-bundle-note .cart-item-price{font-family:'Inter',sans-serif; font-weight:600}

/* ---------- Bundle promo card ("buy everything" pass) ---------- */
.bundle-promo{
  position:relative; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
  background:linear-gradient(135deg, rgba(var(--gold-rgb),0.14), rgba(var(--gold-rgb),0.04));
  border:1px solid rgba(var(--gold-rgb),0.4); border-radius:var(--radius); padding:30px 32px; margin:0 0 44px; overflow:hidden;
}
.bundle-promo-badge{
  position:absolute; top:0; right:0; background:var(--gold); color:var(--ink);
  font-family:'IBM Plex Mono',monospace; font-size:11.5px; font-weight:600; letter-spacing:.5px;
  padding:6px 14px; border-bottom-left-radius:var(--radius);
}
.bundle-promo-body{flex:1; min-width:240px}
.bundle-promo-body .bp-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--gold); letter-spacing:1.2px; margin-bottom:8px}
.bundle-promo-body h3{font-size:22px; color:var(--text-hi); margin-bottom:6px}
.bundle-promo-body p{color:var(--text-lo); font-size:14px; margin:0; max-width:52ch}
.bundle-promo-buy{display:flex; align-items:center; gap:20px; flex-shrink:0}
.bundle-promo-cta{display:flex; flex-direction:column; align-items:center; gap:7px}
.bundle-promo-cta a{font-size:12px; color:var(--text-lo)}
.bundle-promo-cta a:hover{color:var(--gold)}
.bundle-promo-price{font-family:'Zilla Slab',serif; text-align:right}
.bundle-promo-price .bp-regular{display:block; font-size:14px; color:var(--text-lo); text-decoration:line-through}
.bundle-promo-price .bp-sale{display:block; font-size:28px; color:var(--gold); line-height:1.15}
@media(max-width:640px){.bundle-promo{padding:24px 22px; text-align:center; justify-content:center}
  .bundle-promo-buy{width:100%; justify-content:space-between}}
/* The corner badge (FREE / SAVE ₹X / BEST VALUE) is absolutely positioned — on narrower cards the
   centred text runs underneath it, so reserve room above the text for it. */
@media(max-width:900px){.bundle-promo{padding-top:56px}}

/* ---------- Free trial promo card (green accent, reuses .bundle-promo layout) ---------- */
.free-trial-promo{
  background:linear-gradient(135deg, rgba(var(--green-rgb),0.14), rgba(var(--green-rgb),0.04));
  border-color:rgba(var(--green-rgb),0.4);
}
.free-trial-badge{background:var(--green); color:#fff}
.free-trial-promo .bp-eyebrow{color:var(--green)}
.free-trial-promo .btn.solid{background:var(--green); border-color:var(--green); color:#fff}

/* Free trial tag on ticket / test-detail price slots */
.free-trial-tag{color:var(--green) !important}
.free-trial-tag span{color:var(--text-lo)}

/* ---------- Bundle landing page (all-access.php) ---------- */
.compare-row{display:flex; align-items:stretch; justify-content:center; gap:16px; max-width:520px; margin:30px auto 0}
.compare-card{flex:1; background:var(--surface-2); border:var(--border); border-radius:var(--radius); padding:22px 18px; text-align:center; position:relative}
.compare-card-win{border-color:var(--gold); box-shadow:0 0 0 1px var(--gold) inset; background:linear-gradient(135deg, rgba(var(--gold-rgb),0.14), rgba(var(--gold-rgb),0.04))}
.cc-ribbon{position:absolute; top:-11px; left:50%; transform:translateX(-50%); background:var(--gold); color:var(--ink); font-family:'IBM Plex Mono',monospace; font-size:10px; font-weight:600; letter-spacing:.5px; padding:3px 10px; border-radius:999px; white-space:nowrap}
.cc-label{font-family:'IBM Plex Mono',monospace; font-size:11px; color:var(--text-lo); letter-spacing:.6px; margin-bottom:8px}
.cc-price{font-family:'Zilla Slab',serif; font-size:26px; color:var(--text-hi)}
.compare-card-win .cc-price{color:var(--gold)}
.cc-note{font-size:11.5px; color:var(--text-lo); margin-top:4px}
.compare-vs{align-self:center; flex-shrink:0; font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-lo)}

.access-price-block{display:flex; align-items:baseline; justify-content:center; gap:14px; margin:30px 0 6px}
.ap-regular{font-family:'Zilla Slab',serif; font-size:20px; color:var(--text-lo); text-decoration:line-through}
.ap-sale-wrap{position:relative; display:inline-flex; align-items:center; justify-content:center}
.ap-glow{position:absolute; inset:-14px; border-radius:50%; background:radial-gradient(circle, rgba(var(--gold-rgb),0.35), transparent 70%); animation:apGlowPulse 2.4s ease-in-out infinite; z-index:0}
@keyframes apGlowPulse{0%,100%{opacity:.5; transform:scale(0.9)} 50%{opacity:1; transform:scale(1.08)}}
.ap-sale{position:relative; z-index:1; font-family:'Zilla Slab',serif; font-size:44px; color:var(--gold)}
.ap-savings-badge{
  display:inline-flex; align-items:center; gap:7px; margin-bottom:26px;
  background:rgba(var(--green-rgb),0.14); border:1px solid rgba(var(--green-rgb),0.4); color:var(--green);
  font-weight:600; font-size:13.5px; padding:7px 16px; border-radius:999px;
}
.ap-savings-badge svg{stroke:var(--green); flex-shrink:0}

@keyframes ctaPulse{0%{box-shadow:0 0 0 0 rgba(var(--gold-rgb),0.5)} 70%{box-shadow:0 0 0 14px rgba(var(--gold-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--gold-rgb),0)}}
.cta-pulse{animation:ctaPulse 2.2s ease-out infinite}
.cta-pulse:hover{animation-play-state:paused; transform:translateY(-1px)}

.trust-row{display:flex; justify-content:center; align-items:center; gap:22px; flex-wrap:wrap; margin:6px 0 28px; font-size:12.5px}
.trust-row span,.trust-row a{display:inline-flex; align-items:center; gap:6px; color:var(--text-lo); text-decoration:none}
.trust-row svg{stroke:var(--gold); flex-shrink:0}
.trust-row a:hover{color:var(--gold)}

.ap-social-proof{font-size:12.5px; color:var(--text-lo); margin-top:2px}

/* Hero free-trial callout — leads the ad landing page with a no-payment CTA */
.hero-free-callout{
  position:relative; overflow:hidden; isolation:isolate;
  display:flex; align-items:center; gap:26px; flex-wrap:wrap; justify-content:center; text-align:left;
  max-width:720px; margin:36px auto 0; padding:30px 34px;
  background:linear-gradient(155deg, rgba(var(--green-rgb),0.22), var(--surface-2) 65%);
  border:1px solid rgba(var(--green-rgb),0.5); border-radius:16px;
  box-shadow:0 18px 40px -14px rgba(var(--green-rgb),0.35), 0 0 0 1px rgba(var(--green-rgb),0.08) inset;
}
.hfc-glow{position:absolute; top:-60%; right:-15%; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle, rgba(var(--green-rgb),0.35), transparent 70%); z-index:-1; animation:hfcGlowPulse 3.6s ease-in-out infinite}
@keyframes hfcGlowPulse{0%,100%{opacity:.55; transform:scale(0.92)} 50%{opacity:1; transform:scale(1.08)}}
.hfc-badge{
  flex-shrink:0; display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:700; color:#fff;
  background:linear-gradient(135deg, var(--green), #2c5a41); padding:10px 16px; border-radius:999px; letter-spacing:.5px;
  box-shadow:0 6px 16px -4px rgba(var(--green-rgb),0.55);
}
.hfc-badge-icon{display:inline-block; animation:hfcBadgeBounce 1.8s ease-in-out infinite}
@keyframes hfcBadgeBounce{0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-3px) rotate(-8deg)}}
.hfc-body{flex:1; min-width:240px}
.hfc-body .hfc-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:11px; font-weight:600; color:var(--green); letter-spacing:1.4px; margin-bottom:7px}
.hfc-body h2{font-size:21px; color:var(--text-hi); margin-bottom:6px; line-height:1.3}
.hfc-body p{font-size:13.5px; color:var(--text-lo); margin:0; max-width:46ch}
.hfc-checks{display:flex; flex-wrap:wrap; gap:14px; margin-top:14px}
.hfc-checks span{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--green)}
.hfc-checks svg{stroke:var(--green); flex-shrink:0}
.hero-free-callout .btn.solid{background:linear-gradient(135deg, var(--green), #2c5a41); border-color:var(--green); color:#fff; flex-shrink:0; white-space:nowrap}
.hfc-cta{display:inline-flex; align-items:center; gap:10px; padding:15px 26px !important; font-size:14.5px; font-weight:700; box-shadow:0 10px 24px -8px rgba(var(--green-rgb),0.6)}
.hfc-cta b{font-size:17px; font-weight:400; transition:transform .2s ease}
.hfc-cta:hover b{transform:translateX(4px)}

.hero-divider{display:flex; align-items:center; gap:14px; max-width:460px; margin:26px auto 0; color:var(--text-lo); font-size:11.5px; font-family:'IBM Plex Mono',monospace; letter-spacing:.6px; justify-content:center}
.hero-divider::before,.hero-divider::after{content:''; flex:1; height:1px; background:rgba(var(--gold-rgb),0.25); max-width:120px}

@keyframes ctaPulseGreen{0%{box-shadow:0 0 0 0 rgba(var(--green-rgb),0.5)} 70%{box-shadow:0 0 0 14px rgba(var(--green-rgb),0)} 100%{box-shadow:0 0 0 0 rgba(var(--green-rgb),0)}}
.cta-pulse-green{animation:ctaPulseGreen 2.2s ease-out infinite}
.cta-pulse-green:hover{animation-play-state:paused; transform:translateY(-2px)}

@media(max-width:640px){
  .hero-free-callout{flex-direction:column; text-align:center; padding:26px 22px}
  .hfc-checks{justify-content:center}
  .hero-free-callout .btn.solid{width:100%; justify-content:center}
}

/* ---------- Free-trial signup modal (in-page popup, no page navigation) ---------- */
.ft-modal-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:220; opacity:0; pointer-events:none; transition:opacity .25s ease}
.ft-modal-backdrop.show{opacity:1; pointer-events:auto}
.ft-modal{position:fixed; inset:0; z-index:221; display:flex; align-items:center; justify-content:center; padding:20px; opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease; transform:scale(0.97)}
.ft-modal.show{opacity:1; pointer-events:auto; transform:scale(1)}
.ft-modal-box{position:relative; max-height:90vh; overflow-y:auto; padding:34px 32px 30px}
.ft-modal-close{position:absolute; top:12px; right:14px; background:none; border:none; font-size:24px; line-height:1; color:var(--text-ink-lo); cursor:pointer; padding:8px}
.ft-modal-close:hover{color:var(--text-ink)}
.ft-modal-head{margin-bottom:20px}
.ft-modal-badge{display:inline-flex; align-items:center; font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:700; color:#fff; background:linear-gradient(135deg, var(--green), #2c5a41); padding:6px 12px; border-radius:999px; margin-bottom:12px}
.ft-modal-head h3{font-size:21px; color:var(--text-ink); margin-bottom:6px}
.ft-modal-head p{font-size:13.5px; color:var(--text-ink-lo); margin:0}
@media(max-width:640px){.ft-modal-box{padding:28px 22px 24px}}

.sticky-cta{position:fixed; left:0; right:0; bottom:0; background:var(--surface-2); border-top:1px solid rgba(var(--gold-rgb),0.3); box-shadow:0 -8px 24px rgba(0,0,0,.25); transform:translateY(100%); transition:transform .25s ease; z-index:150}
.sticky-cta.show{transform:translateY(0)}
.sticky-cta-inner{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 40px 12px 24px; flex-wrap:wrap; position:relative}
.sticky-cta-close{position:absolute; top:6px; right:10px; background:none; border:none; color:var(--text-lo); font-size:19px; line-height:1; cursor:pointer; padding:6px}
.sticky-cta-close:hover{color:var(--text-hi)}
.sc-info b{display:block; font-size:14px; color:var(--text-hi)}
.sc-info span{font-size:12px; color:var(--text-lo)}
.sc-buy{display:flex; align-items:center; gap:12px}
.sc-regular{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--text-lo); text-decoration:line-through}
.sc-sale{font-family:'Zilla Slab',serif; font-size:19px; color:var(--gold)}

@media(max-width:640px){
  .compare-row{flex-direction:column; max-width:280px}
  .compare-vs{display:none}
  .sticky-cta-inner{justify-content:center; text-align:center}
}

/* ---------- Guest checkout page ---------- */
.checkout-page-wrap{min-height:calc(100vh - 74px); display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; padding:40px 0}
.checkout-page-wrap .hero-bg-blob-1{top:-160px; left:-100px}
.checkout-page-wrap .hero-bg-blob-2{bottom:-160px; right:-100px; top:auto}
.checkout-shell{display:grid; grid-template-columns:1fr 1.5fr; gap:36px; max-width:1120px; width:100%; margin:0 auto; padding:0 32px; position:relative; z-index:1}
.checkout-summary{background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius); padding:30px; align-self:start; color:var(--exam-text)}
.checkout-summary h3{font-family:'Zilla Slab',serif; font-size:17px; margin-bottom:16px}
.checkout-summary-row{display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--exam-border); font-size:13.5px}
.checkout-summary-row b{font-family:'IBM Plex Mono',monospace; font-weight:600; flex-shrink:0}
.checkout-summary-total{display:flex; justify-content:space-between; padding-top:14px; margin-top:6px; font-size:15px; color:var(--exam-text)}
.checkout-summary-total b{font-family:'Zilla Slab',serif; font-size:19px; color:var(--exam-accent-dark)}
.checkout-form-card{background:var(--exam-card); border:1px solid var(--exam-border); border-radius:var(--exam-radius); padding:36px 40px}
.btn-pay-gradient{background:linear-gradient(135deg,#3cb875,#1f8a51); border:1px solid #1a7a47; color:#fff; box-shadow:0 4px 14px rgba(31,138,81,.35); transition:transform .15s ease, box-shadow .15s ease}
.btn-pay-gradient:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(31,138,81,.45)}
.btn-pay-gradient:disabled{opacity:.6; transform:none}
.checkout-form-card h2{font-family:'Zilla Slab',serif; font-size:21px; color:var(--exam-text); margin-bottom:6px}
.checkout-form-card .sub{color:var(--exam-text2); font-size:13.5px; margin-bottom:20px}
.checkout-form-card .field label{color:var(--exam-text2)}
.checkout-form-card .field input{background:#fff; border-color:var(--exam-border2); color:var(--exam-text)}
.checkout-form-card .switch{margin-top:18px; font-size:13.5px; color:var(--exam-text2); text-align:center}
@media(max-width:760px){.checkout-shell{grid-template-columns:1fr; margin:24px auto} .checkout-page-wrap{min-height:auto; padding:24px 0}}

/* ---------- Checkout page polish (step badge, icon inputs, tooltips) ---------- */
.checkout-step-badge{display:inline-flex; align-items:center; gap:7px; font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:.6px; color:var(--exam-accent-dark); background:var(--exam-accent-glow); padding:5px 12px; border-radius:20px; margin-bottom:16px}
.checkout-form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.field-tip{display:inline-flex; align-items:center; justify-content:center; width:15px; height:15px; border-radius:50%; background:rgba(var(--gold-rgb),0.18); color:var(--exam-accent-dark); font-size:10px; font-weight:700; font-style:normal; cursor:help; margin-left:6px; position:relative; vertical-align:middle}
.field-tip::after{content:attr(data-tip); position:absolute; bottom:130%; left:50%; transform:translateX(-50%); background:var(--exam-primary-dark); color:#fff; font-size:11.5px; font-weight:400; font-family:'Inter',sans-serif; padding:8px 11px; border-radius:6px; width:200px; line-height:1.5; opacity:0; pointer-events:none; transition:opacity .15s ease; box-shadow:var(--exam-shadow); z-index:10}
.field-tip::before{content:''; position:absolute; bottom:118%; left:50%; transform:translateX(-50%); border:5px solid transparent; border-top-color:var(--exam-primary-dark); opacity:0; transition:opacity .15s ease}
.field-tip:hover::after,.field-tip:hover::before,.field-tip:focus::after,.field-tip:focus::before{opacity:1}
.field-icon-wrap{position:relative}
.field-icon-wrap svg{position:absolute; left:13px; top:50%; transform:translateY(-50%); stroke:var(--exam-text3); pointer-events:none}
.field-icon-wrap input{padding-left:38px !important}
.checkout-secure-note{display:flex; align-items:center; justify-content:center; gap:6px; margin-top:14px; font-size:12px; color:var(--exam-text2)}
.checkout-secure-note svg{stroke:var(--exam-text3)}
.co-item-row{display:flex; align-items:flex-start; gap:10px; padding:12px 0; border-bottom:1px solid var(--exam-border)}
.co-item-icon{width:30px; height:30px; border-radius:7px; background:var(--exam-accent-glow); display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--exam-accent-dark)}
.co-item-icon svg{stroke:currentColor}
.co-item-title{font-size:13.5px; color:var(--exam-text); font-weight:600; flex:1}
.co-item-price{font-family:'IBM Plex Mono',monospace; font-size:13px; color:var(--exam-text); flex-shrink:0}
@media(max-width:520px){.checkout-form-row{grid-template-columns:1fr}}

/* ---------- Admin drag-and-drop reordering ---------- */
.drag-handle{cursor:grab; color:var(--text-lo); text-align:center; width:30px; user-select:none; font-size:16px}
.drag-handle:active{cursor:grabbing}
table.dtable tr.dragging{opacity:.4}
table.dtable tr[data-id]{transition:background .1s ease}

/* ---------- Individual mock test page ---------- */
.test-page-hero{max-width:760px; margin:24px auto 0; padding:32px 0}
.test-page-hero .t-cat{font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold); letter-spacing:1px; margin-bottom:10px}
.test-page-hero h1{font-size:32px; margin-bottom:16px; color:var(--text-hi)}
.test-page-desc{color:var(--text-lo); font-size:15px; line-height:1.75; margin-bottom:28px; max-width:64ch}
.test-page-meta{display:flex; gap:32px; padding:20px 0; border-top:1px solid rgba(var(--gold-rgb),0.15); border-bottom:1px solid rgba(var(--gold-rgb),0.15); margin-bottom:28px}
.test-page-meta div b{display:block; font-family:'Zilla Slab',serif; font-size:22px; color:var(--text-hi)}
.test-page-meta div span{font-size:12.5px; color:var(--text-lo)}
.test-page-buy{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.test-page-price{font-family:'Zilla Slab',serif; font-size:26px; color:var(--gold)}
.test-page-price span{display:block; font-size:12px; color:var(--text-lo); font-family:'Inter',sans-serif; font-weight:400}
@media(max-width:600px){.test-page-hero h1{font-size:25px} .test-page-meta{gap:20px; flex-wrap:wrap}}
/* ---------- MahaRERA Practice Papers ---------- */
.pp-section{margin-top:10px}
.pp-head{align-items:flex-end}
.pp-head h2{margin:0}
.pp-eyebrow{font-family:'IBM Plex Mono',monospace; font-size:11px; letter-spacing:1.4px; color:var(--gold); margin-bottom:6px}
.pp-ticket{border-top:3px solid var(--gold)}
.pp-ticket .pp-cat{display:inline-block; padding:3px 8px; background:rgba(var(--gold-rgb),0.12); border:1px solid rgba(var(--gold-rgb),0.35)}

/* ---------- Complete Access Pass: site-wide highlight strip ---------- */
/* Constant navy + gold in both themes, so it always stands out from the page. */
.pass-strip{
  background:#10162A; color:#F6F2E8;
  border-bottom:2px solid #C9973F;
  /* Sticks right under the sticky top nav while scrolling (--nav-h is measured by JS; 69px fallback) */
  position:-webkit-sticky; position:sticky; top:var(--nav-h, 69px); z-index:49;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.pass-strip-inner{
  max-width:1200px; margin:0 auto; padding:10px 24px;
  display:flex; align-items:center; justify-content:center; gap:18px;
}
.pass-strip .ps-copy{display:flex; align-items:center; gap:12px; min-width:0}
.pass-strip .ps-cta{display:flex; align-items:center; gap:14px; flex-shrink:0}
.pass-strip .ps-tag{
  font-family:'IBM Plex Mono',monospace; font-size:10.5px; font-weight:600; letter-spacing:1.2px;
  background:#C9973F; color:#10162A; padding:3px 8px; border-radius:2px; flex-shrink:0; white-space:nowrap;
}
.pass-strip .ps-text{font-size:14px; line-height:1.35; color:rgba(246,242,232,.85)}
.pass-strip .ps-text b{color:#F6F2E8; font-weight:700}
.pass-strip .ps-short{display:none}
.pass-strip .ps-price{font-family:'Zilla Slab',serif; white-space:nowrap; display:flex; align-items:baseline; gap:6px}
.pass-strip .ps-price s{color:rgba(246,242,232,.5); font-size:13px}
.pass-strip .ps-price b{color:#E3B866; font-size:21px; line-height:1}
.pass-strip .ps-btn{
  background:#C9973F; color:#10162A; border:none; border-radius:var(--radius);
  font:700 13.5px 'Inter',sans-serif; padding:9px 16px; cursor:pointer; white-space:nowrap;
  transition:background .15s ease, transform .15s ease;
}
.pass-strip .ps-btn:hover{background:#E3B866; transform:translateY(-1px)}
.pass-strip .ps-btn:disabled{opacity:.7; cursor:wait}
/* Inside the dashboard, span the full width of the main column */
.pass-strip.in-app{margin:-38px -42px 30px; top:0}
@media (max-width:840px){ .pass-strip.in-app{margin:-24px -18px 22px} }

/* Mobile: one compact row — title + contents on the left, price + button on the right */
@media (max-width:760px){
  .pass-strip-inner{justify-content:space-between; gap:12px; padding:9px 14px}
  .pass-strip .ps-tag{display:none}
  .pass-strip .ps-long{display:none}
  .pass-strip .ps-short{display:inline}
  .pass-strip .ps-text{display:flex; flex-direction:column; font-size:12px; line-height:1.3}
  .pass-strip .ps-text b{font-size:13.5px}
  .pass-strip .ps-cta{gap:10px}
  .pass-strip .ps-price{flex-direction:column; align-items:flex-end; gap:0}
  .pass-strip .ps-price s{font-size:11px; line-height:1.1}
  .pass-strip .ps-price b{font-size:19px}
  .pass-strip .ps-btn{padding:9px 12px; font-size:13px}
}
@media (max-width:340px){ .pass-strip .ps-price s{display:none} }

/* ---------- Complete Access Pass: featured promo card ---------- */
.bundle-promo.complete-pass{
  border:2px solid var(--gold);
  background:linear-gradient(135deg, rgba(var(--gold-rgb),0.24), rgba(var(--gold-rgb),0.06));
  box-shadow:0 10px 30px rgba(var(--gold-rgb),0.18);
}
.bundle-promo.complete-pass .bp-eyebrow{font-weight:600}
.bundle-promo.complete-pass .bp-sale{font-size:34px}
