/* BankPrep — palette borrowed from the real CBT exam screen:
   green = answered, red = not answered, purple = marked for review. */
:root {
  --ink: #13294B;
  --ink-2: #3A4B69;
  --muted: #66738A;
  --paper: #F5F7FA;
  --card: #FFFFFF;
  --line: #DCE2EB;
  --answered: #1E8E5A;
  --answered-bg: #E6F4EC;
  --notans: #C8403A;
  --review: #7A5CC9;
  --review-bg: #EFEAFB;
  --focus: #2F6FED;
  --radius-s: 6px;
  --radius-m: 12px;
  --te: "Noto Sans Telugu", "Archivo", system-ui, sans-serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: 16px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
:lang(te), .te { font-family: var(--te); line-height: 1.8; }
a { color: var(--ink); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-stretch: 112%; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px; background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-stretch: 118%; font-size: 19px; }
.brand-mark { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.brand-mark::before, .brand-mark::after { content: ""; border-radius: 2px; }
.brand-mark { background:
  linear-gradient(var(--answered), var(--answered)) 0 0/9px 9px no-repeat,
  linear-gradient(#fff, #fff) 13px 0/9px 9px no-repeat,
  linear-gradient(#fff, #fff) 0 13px/9px 9px no-repeat,
  linear-gradient(var(--review), var(--review)) 13px 13px/9px 9px no-repeat; }
.topnav { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.topnav a, .topnav button { color: #fff; background: none; border: 0; padding: 8px 10px; border-radius: var(--radius-s); text-decoration: none; cursor: pointer; font-size: 15px; }
.topnav a:hover, .topnav button:hover { background: rgba(255,255,255,.1); }
.pill-paid { background: var(--answered); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 20px; border-radius: var(--radius-s); border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 16px;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #E9EDF3; }
.btn.go { background: var(--answered); border-color: var(--answered); }
.btn.go:hover { background: #18754A; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* hero */
.hero { background: var(--ink); color: #fff; padding: 36px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: end; }
.hero h1 { font-size: clamp(32px, 7vw, 56px); font-weight: 800; font-stretch: 120%; max-width: 15ch; }
.hero .lead { color: #C9D3E4; font-size: 18px; max-width: 46ch; margin: 16px 0 24px; }
.hero .lead .te { display: block; margin-top: 6px; color: #E4E9F2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero .btn.ghost { color: #fff; border-color: #fff; }
.hero .btn.ghost:hover { background: rgba(255,255,255,.1); }
/* the exam palette motif */
.palette-hero { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; padding: 18px; background: #0E1F3A; border-radius: var(--radius-m) var(--radius-m) 0 0; }
.palette-hero span { aspect-ratio: 1; border-radius: 3px; background: #24395E; display: grid; place-items: center; font-size: 11px; color: #8C9BB7; }
.palette-hero span.a { background: var(--answered); color: #fff; }
.palette-hero span.r { background: var(--review); color: #fff; }
.palette-hero span.n { background: var(--notans); color: #fff; }
.palette-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #C9D3E4; padding: 0 18px 16px; background: #0E1F3A; }
.palette-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* sections */
.band { padding: 40px 0; }
.band h2 { font-size: clamp(24px, 4.5vw, 32px); margin-bottom: 8px; }
.band .sub { color: var(--muted); margin: 0 0 24px; max-width: 60ch; }

/* try-a-question */
.tryq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; max-width: 680px; }
.tryq-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.timer-chip { font-weight: 700; color: var(--ink); background: #E9EDF3; border-radius: 99px; padding: 4px 12px; font-stretch: 100%; }

/* questions & options */
.qtext { white-space: pre-line; font-size: 17px; margin: 0 0 16px; }
.opts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--card); cursor: pointer; font-size: 16px;
}
.opt:hover { border-color: #A9B5C8; }
.opt .key { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #A9B5C8; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.opt.sel { border-color: var(--ink); background: #EEF2F8; }
.opt.sel .key { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt.right { border-color: var(--answered); background: var(--answered-bg); }
.opt.right .key { background: var(--answered); border-color: var(--answered); color: #fff; }
.opt.wrong { border-color: var(--notans); background: #FBECEB; }
.opt.wrong .key { background: var(--notans); border-color: var(--notans); color: #fff; }
.opt[disabled] { cursor: default; }

/* explanation */
.exp { margin-top: 14px; border-left: 4px solid var(--answered); background: #F2F8F4; padding: 12px 14px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.exp p { margin: 0; white-space: pre-line; }
.langtoggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.langtoggle button { border: 0; background: transparent; padding: 6px 14px; cursor: pointer; font-weight: 700; font-size: 14px; min-height: 36px; }
.langtoggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* catalog */
.exam-list { display: grid; gap: 10px; }
.exam { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); }
.exam > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px; background: none; border: 0; cursor: pointer; text-align: left;
}
.exam-name { font-weight: 800; font-stretch: 112%; font-size: 18px; }
.exam-pattern { display: block; color: var(--muted); font-size: 14px; }
.exam-count { flex: none; font-size: 14px; color: var(--muted); }
.exam[open-state="1"] > button { border-bottom: 1px solid var(--line); }
.papers { list-style: none; margin: 0; padding: 4px 0; }
.paper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.paper + .paper { border-top: 1px solid #EEF1F5; }
.paper-year { font-weight: 800; font-size: 20px; width: 56px; flex: none; }
.paper-meta { flex: 1; font-size: 14px; color: var(--muted); }
.paper-meta b { color: var(--ink); font-weight: 600; display: block; font-size: 15px; }
.soon { font-size: 13px; color: var(--muted); }

/* pricing */
.price { display: grid; gap: 20px; grid-template-columns: 1fr; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 24px; }
.price-amt { font-size: 64px; font-weight: 800; font-stretch: 125%; line-height: 1; }
.price-amt small { font-size: 18px; font-weight: 600; color: var(--muted); font-stretch: 100%; }
.price ul { margin: 0; padding-left: 20px; }
.price li { margin: 6px 0; }

footer.site { padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* exam screen */
.exam-bar { position: sticky; top: 0; z-index: 25; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; }
.exam-bar .sec { font-weight: 700; font-size: 15px; }
.exam-bar .sec small { display: block; font-weight: 400; color: #C9D3E4; font-size: 13px; }
.clock { font-size: 22px; font-weight: 800; font-stretch: 100%; padding: 4px 12px; border-radius: var(--radius-s); background: rgba(255,255,255,.12); }
.clock.low { background: var(--notans); }
.exam-body { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px 16px 120px; max-width: 1040px; margin: 0 auto; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.qnum { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.setbox { background: #F7F9FC; border: 1px solid var(--line); border-radius: var(--radius-s); margin-bottom: 16px; }
.setbox > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.setbox .setinner { padding: 0 14px 14px; white-space: pre-line; font-size: 15.5px; max-height: 50vh; overflow: auto; }
.dtable { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
.dtable th, .dtable td { border: 1px solid var(--line); padding: 8px 10px; text-align: right; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable th { background: #EEF2F8; }
.chart svg { width: 100%; height: auto; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); }
.actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--card); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.actions .btn { flex: 1; min-height: 46px; padding: 8px 10px; font-size: 15px; }
.actions .btn.rev { background: var(--review); border-color: var(--review); }
.pal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; align-self: start; }
.pal h3 { font-size: 16px; margin-bottom: 10px; }
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.pal-grid button { aspect-ratio: 1; min-height: 40px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-s); cursor: pointer; font-weight: 700; font-size: 14px; }
.pal-grid button.v { border-color: var(--notans); color: var(--notans); }
.pal-grid button.a { background: var(--answered); border-color: var(--answered); color: #fff; }
.pal-grid button.r { background: var(--review); border-color: var(--review); color: #fff; }
.pal-grid button.ar { background: var(--review); border-color: var(--answered); border-width: 3px; color: #fff; }
.pal-grid button.cur { outline: 3px solid var(--focus); outline-offset: 1px; }
.pal-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.pal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; border: 1.5px solid var(--line); }
.pal-toggle { display: inline-flex; }

/* results */
.score-hero { background: var(--ink); color: #fff; padding: 28px 0; }
.score-big { font-size: clamp(48px, 12vw, 80px); font-weight: 800; font-stretch: 125%; line-height: 1; }
.score-big small { font-size: 22px; color: #C9D3E4; font-weight: 600; font-stretch: 100%; }
.score-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; color: #C9D3E4; }
.score-stats b { color: #fff; }
.sec-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.sec-table th, .sec-table td { white-space: nowrap; padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); font-size: 15px; }
.sec-table th:first-child, .sec-table td:first-child { text-align: left; }
.sec-table th { background: #EEF2F8; font-weight: 700; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 12px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: 14px; min-height: 36px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sol { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; margin-bottom: 12px; }
.sol-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tag.ok { background: var(--answered-bg); color: var(--answered); }
.tag.bad { background: #FBECEB; color: var(--notans); }
.tag.skip { background: #EEF1F5; color: var(--muted); }

/* forms & modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 40, .55); display: grid; place-items: end center; }
.modal-card { background: var(--card); width: 100%; max-width: 440px; border-radius: var(--radius-m) var(--radius-m) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.modal-card h2 { font-size: 22px; margin-bottom: 6px; }
.modal-card p { color: var(--muted); margin: 0 0 16px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 14px; }
.field input { border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 12px; min-height: 48px; background: #fff; }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(47,111,237,.25); }
.err { color: var(--notans); font-size: 14px; min-height: 20px; margin: 4px 0 8px; }
.modal-foot { display: flex; gap: 8px; margin-top: 8px; }
.modal-foot .btn { flex: 1; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); font-size: 15px; max-width: calc(100% - 32px); }
.empty { background: var(--card); border: 1px dashed #B8C2D3; border-radius: var(--radius-m); padding: 24px; text-align: center; color: var(--muted); }
.loading { padding: 60px 16px; text-align: center; color: var(--muted); }

@media (min-width: 760px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; }
  .price { grid-template-columns: auto 1fr auto; align-items: center; }
  .modal { place-items: center; }
  .modal-card { border-radius: var(--radius-m); }
  .exam-body { grid-template-columns: 1fr 300px; }
  .actions { position: static; border: 0; padding: 0; margin-top: 18px; background: transparent; }
  .pal-toggle { display: none; }
}
@media (max-width: 759px) {
  .palette-hero span:nth-child(n+51) { display: none; }
  .sec-table td:first-child { white-space: normal; }
  .topnav a, .topnav button { padding: 8px 8px; }
  .pal { display: none; }
  .pal.open { display: block; position: fixed; inset: auto 0 0 0; z-index: 40; max-height: 70vh; overflow: auto; border-radius: var(--radius-m) var(--radius-m) 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.2); padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .palette-hero span.on { animation: fill .35s ease-out both; }
  @keyframes fill { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
}
.exam-bar .btn.ghost:hover, .exam-bar .btn.ghost:focus { background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 379px) {
  .pill-paid { display: none; }
  .brand { font-size: 17px; }
  .sec-table th, .sec-table td { padding: 8px 6px; font-size: 14px; }
}

/* invite banner */
.invite { background: var(--answered-bg); border-bottom: 1px solid #BFE3CD; }
.invite .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px; font-weight: 600; }

/* rank card */
.rank { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius-m); padding: 18px; margin-bottom: 20px; display: grid; gap: 16px; }
.empty-rank { border-style: dashed; border-color: #B8C2D3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.empty-rank p { margin: 0; color: var(--ink-2); }
.rank-top { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: center; }
.rank-num { font-size: 52px; font-weight: 800; font-stretch: 125%; line-height: 1; }
.rank-num small { font-size: 18px; color: var(--muted); font-weight: 600; font-stretch: 100%; }
.rank-top p { margin: 8px 0 0; color: var(--ink-2); }
.hist { width: 100%; max-width: 360px; height: auto; }
.hist rect { fill: #CBD4E2; }
.hist rect.me { fill: var(--answered); }
.hist text { font-size: 11px; fill: var(--muted); font-family: var(--ui); }
.cmps { display: grid; gap: 8px; }
.cmp { display: grid; grid-template-columns: 70px 1fr 56px; gap: 10px; align-items: center; font-size: 15px; }
.cmp b { text-align: right; }
.track { height: 10px; background: #EEF1F5; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: #9AA7BD; }
.track i.you { background: var(--answered); }
.track i.top { background: var(--ink); }
.rank-note { margin: 0; font-size: 14px; color: var(--muted); }
.rw { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
@media (min-width: 760px) { .rank-top { grid-template-columns: 1fr 360px; } }

/* refer & earn */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.card h3 { font-size: 19px; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; font-size: 15px; background: #F7F9FC; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn.wa { background: #1E8E5A; border-color: #1E8E5A; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats3 div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; text-align: center; }
.stats3 b { display: block; font-size: 28px; font-stretch: 115%; }
.stats3 span { font-size: 13px; color: var(--muted); }
.wd { display: grid; gap: 4px; max-width: 420px; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #EEF1F5; font-size: 15px; }
.rows li:first-child { border-top: 0; }
.rows .tag { white-space: normal; text-align: right; }
.steps { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 10px; font-size: 17px; }
.rules { padding-left: 20px; margin: 10px 0 0; display: grid; gap: 6px; color: var(--ink-2); }
@media (max-width: 479px) { .pill-paid { display: none; } }
@media (max-width: 479px) {
  .sec-table th, .sec-table td { padding: 8px 7px; font-size: 14px; }
  .sec-table td:first-child { white-space: normal; }
}

/* combined-timer tests: section tabs */
.sectabs { position: sticky; top: 58px; z-index: 24; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; background: #0E1F3A; }
.sectabs button { flex: none; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 36px; }
.sectabs button small { margin-left: 6px; font-weight: 400; color: #C9D3E4; }
.sectabs button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.sectabs button[aria-pressed="true"] small { color: var(--muted); }

/* launch offer */
.offerbar { background: linear-gradient(90deg, #FFE7A3, #FFD36B); color: #3B2A00; border-bottom: 1px solid #E8B94A; }
.offerbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding-block: 10px; font-size: 15px; }
.offerbar s { opacity: .7; }
.offerbar [data-left] { font-variant-numeric: tabular-nums; white-space: nowrap; }
.strike { text-decoration: line-through; opacity: .6; font-weight: 600; margin-right: 4px; }
.price-amt .strike { font-size: .45em; vertical-align: middle; }
.save { display: inline-block; background: var(--notans); color: #fff; font-size: 14px; font-weight: 800; padding: 3px 10px; border-radius: 99px; vertical-align: middle; font-stretch: 100%; letter-spacing: 0; }
.save.big { font-size: 16px; padding: 5px 14px; }
.price-timer { display: block; font-size: 15px; font-weight: 600; color: var(--notans); margin-top: 8px; font-stretch: 100%; }
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: #EEF2F8; }
.compare tbody th { font-weight: 700; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare .us { background: var(--answered-bg); color: var(--ink); font-weight: 700; }
.compare thead .us { background: var(--answered); color: #fff; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.offer-pop { text-align: center; }
.offer-pop h2 { margin-top: 10px; }
.pop-price { font-size: 40px; font-weight: 800; font-stretch: 120%; margin: 6px 0; }
.pop-price s { font-size: 22px; opacity: .55; font-weight: 600; margin-right: 6px; }
.pop-timer { color: var(--notans) !important; font-weight: 600; }
@media (max-width: 479px) { .compare th, .compare td { padding: 9px 8px; font-size: 14px; } .compare tbody th { white-space: normal; } }

/* account, legal, topics */
.kv { width: 100%; border-collapse: collapse; }
.kv th, .kv td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #EEF1F5; vertical-align: top; font-size: 15px; }
.kv th { width: 34%; color: var(--muted); font-weight: 600; }
.bar-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.muted { color: var(--muted); }
.danger summary { cursor: pointer; font-weight: 700; color: var(--notans); }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.foot-links a { color: var(--ink-2); }
.trows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trows li { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr 84px; gap: 10px; align-items: center; font-size: 14px; }
.trows .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trows .tv { text-align: right; font-weight: 700; } .trows .tv small { color: var(--muted); font-weight: 400; }
.track i.low { background: var(--notans); }
.report { font-size: 13px; color: var(--muted); margin-top: 10px; }
@media print { .topbar, #sitefoot, .modal-foot, #app { display: none !important; } .modal { position: static; background: none; } .modal-card { box-shadow: none; max-width: none; } }
.devbar { background: #7A5CC9; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; }
/* exam cards, practice, test chips */
.exam-cards, .subject-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; }
.exam-card, .subject-card { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px;
  color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.exam-card:hover, .subject-card:hover { border-color: var(--navy, #13294B); transform: translateY(-1px); }
.exam-card .exam-count, .subject-card .exam-count { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.subject-icon { width: 40px; height: 40px; border-radius: 10px; background: #EEF2F8; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.free-txt { color: var(--answered); }
.crumb { font-size: 14px; color: var(--muted); margin: 0 0 6px; } .crumb a { color: inherit; }
.h3 { font-size: 19px; margin: 26px 0 8px; } .h3 small { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.unlock-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: #FFF6E5; border: 1px solid #F3D9A4;
  border-radius: var(--radius-s); padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { position: relative; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff;
  display: inline-grid; place-items: center; font: inherit; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; }
.tchip:hover { border-color: var(--navy, #13294B); }
.tchip.free { border-color: var(--answered); color: var(--answered); }
.tchip.free::after { content: 'FREE'; position: absolute; top: -8px; right: -6px; background: var(--answered); color: #fff; font-size: 9px; font-weight: 800;
  padding: 1px 4px; border-radius: 4px; letter-spacing: .3px; }
.tchip.locked { color: var(--muted); background: #F6F7F9; }
.tchip.done { background: #E7F5EE; border-color: var(--answered); }
.tchip.done::before { content: '✓'; position: absolute; bottom: -1px; right: 3px; font-size: 11px; color: var(--answered); }
.chip-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.chip-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chip-legend i.tchip { min-width: 18px; width: 18px; height: 18px; padding: 0; cursor: default; }
.chip-legend i.tchip::after, .chip-legend i.tchip::before { display: none; }
.topic-list { display: grid; gap: 10px; }
.topic-row, .series { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 10px 16px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; margin-bottom: 10px; }
.topic-name { display: grid; gap: 2px; } .topic-name small { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) { .topic-row, .series { grid-template-columns: 1fr; } .pill-paid { display: none; } }
.taken { color: var(--answered); font-weight: 600; }
.tabs a.chip { text-decoration: none; }
.tabs a.chip { display: inline-flex; align-items: center; white-space: nowrap; }
.sitenotice { background: #13294B; color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,.15); }
.refcode { margin: 14px 0 4px; } .refcode label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.refrow { display: flex; gap: 8px; } .refrow input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px; font: inherit; text-transform: uppercase; min-height: 44px; }
.ok-line { color: var(--answered); font-weight: 700; margin: 6px 0 0; }
/* responsive fixes */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.navlinks { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none !important; }
.linkbtn { min-height: 36px; padding: 6px 2px; }
@media (max-width: 560px) {

  .menu-btn { display: inline-block !important; border: 1px solid rgba(255,255,255,.35) !important; }
  .topnav .navlinks { display: none; }
  .topnav.open .navlinks { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; right: 8px; z-index: 50;
    background: var(--ink); border-radius: 0 0 var(--radius-s) var(--radius-s); padding: 6px; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .topnav.open .navlinks a { padding: 12px 14px; font-size: 16px; }
}
.plan-line { background: #F1FAF5; border: 1px solid #BFE3CF; border-radius: var(--radius-s); padding: 8px 12px; margin: 10px 0 0; font-size: 15px; }

/* ---------- badges, streaks, leaderboards ---------- */
.celebrate { display: grid; gap: 12px; margin-bottom: 18px; }
.newbadges { background: #FFF8E6; border: 2px solid #E9B949; border-radius: var(--radius-m); padding: 16px; animation: pop .5s ease-out; }
.nb-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.nb { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 220px; }
.nb span { display: grid; } .nb small { color: var(--ink-2); }
@keyframes pop { 0% { transform: scale(.94); opacity: 0; } 70% { transform: scale(1.02); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .newbadges { animation: none; } }
.streakline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 14px; }
.streakline a { margin-left: auto; font-weight: 700; }
.tboard h3, .card h3 { margin: 0; }
ol.board { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 6px; }
ol.board li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-s); background: #F6F8FB; min-height: 44px; }
ol.board li.you { background: var(--answered-bg); outline: 2px solid var(--answered); }
ol.board .pl { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #E3E8EF; font-weight: 800; font-size: 14px; }
ol.board .pl1 { background: #F2C94C; } ol.board .pl2 { background: #D5DBE3; } ol.board .pl3 { background: #E3A773; }
ol.board .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
ol.board .nm em { font-style: normal; font-size: 12px; background: var(--answered); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
ol.board .sc { display: grid; text-align: right; line-height: 1.2; } ol.board .sc small { color: var(--muted); font-size: 12px; }
.muted.small, p.small { font-size: 13px; }
.streak-big { display: flex; align-items: center; gap: 10px; }
.streak-big svg { width: 44px; height: 44px; }
.streak-big span { font-size: 64px; font-weight: 800; font-stretch: 125%; line-height: 1; }
.streak-big small { font-size: 18px; color: #C9D3E4; }
.daygrid { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; margin-top: 12px; max-width: 520px; }
.daygrid i { aspect-ratio: 1; border-radius: 4px; background: #E8ECF2; }
.daygrid i.on { background: var(--answered); }
.daygrid i.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #FAFBFC; }
.badge.got { background: var(--card); border-color: #CBD5E1; box-shadow: 0 1px 0 rgba(19,41,75,.06); }
.badge b { font-size: 15px; } .badge small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.badge small.ok { color: var(--answered); font-weight: 700; }
.badge:not(.got) b { color: var(--ink-2); }
.bprog { width: 80%; height: 6px; border-radius: 99px; background: #E3E8EF; overflow: hidden; margin-top: 4px; }
.bprog i { display: block; height: 100%; background: var(--focus); }
.sw-line { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.sw-line input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
@media (max-width: 420px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } .streak-big span { font-size: 52px; } }
