/* =========================================================
   StemClass — site styles
   Colours, fonts and spacing live in :root. Change them here
   and the whole site follows.
   ========================================================= */
:root {
  --navy: #16304F;
  --navy-2: #1F3A5F;
  --navy-dark: #0E1F35;
  --gold: #E2B04A;
  --gold-text: #8A6414;
  --gold-soft: #FCF4E3;
  --ink: #18202C;
  --ink-2: #3A4452;
  --muted: #4E5868;
  --line: #DCE1E8;
  --line-2: #E3E7ED;
  --bg: #F3F5F8;
  --white: #FFFFFF;
  --green: #2E8B3E;
  --green-text: #1F6B2C;
  --green-soft: #E6F4E8;
  --red: #D8412F;
  --red-text: #B3321F;
  --red-soft: #FBE7E4;
  --purple: #5B3FA0;

  --font: "Mukta", "Noto Sans Devanagari", system-ui, "Segoe UI", sans-serif;
  --font-q: "Noto Serif", "Noto Serif Devanagari", "Times New Roman", Georgia, serif;

  --radius: 12px;
  --shadow: 0 6px 20px rgba(22, 48, 79, 0.06);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white); }
body.tint { background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
button { font: inherit; cursor: pointer; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.3px; }
.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 56px; }
.section.alt { background: #F6F8FB; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.h-sec { margin: 0 0 8px; font-size: 38px; font-weight: 800; }
.lead { margin: 0 0 22px; color: var(--muted); font-size: 18px; }
.grid { display: grid; gap: 22px; }
.grid-auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-auto-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-auto-230 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }

/* ---------- Buttons ---------- */
.btn { color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 800; }
.btn-gold:hover { background: #d6a23c; color: var(--navy); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-ghost-light { color: var(--white); border-color: #8DA2BF; }
.btn-ghost-light:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line-2); position: relative; z-index: 5; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-block: 12px; }
.lang { display: inline-flex; border: 1px solid #B9C2CF; border-radius: 6px; overflow: hidden; }
.lang button { border: 0; background: var(--white); color: var(--navy); padding: 6px 12px; font-size: 14px; font-weight: 700; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.logo { display: flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.1; }
.logo b { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.logo b span { color: #C8962B; }
.logo small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .pill-link { border: 1px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 6px 14px; }
.header-cta { margin-left: auto; }
.user-chip { margin-left: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9D3E1; padding-block: 40px; font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.site-footer .col { display: flex; flex-direction: column; gap: 4px; }
.site-footer b { color: var(--white); }
.site-footer a { color: #C9D3E1; }
.site-footer .logo b { color: var(--white); font-size: 22px; }
.site-footer .logo b span { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .inner { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-block: 44px 24px; }
.hero .copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero .tag { align-self: flex-start; background: var(--gold); color: var(--navy); border-radius: 6px; padding: 3px 12px; font-size: 14px; font-weight: 800; letter-spacing: 0.4px; }
.hero h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 800; color: var(--white); min-height: 2.3em; }
.hero p { margin: 0; font-size: 19px; color: #D5DDE8; max-width: 32em; }
.dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 18px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: #5E7799; margin-block: 17px; }
.dots button[aria-selected="true"] { width: 28px; background: var(--gold); }
.mock-screen { flex: 1 1 400px; min-width: 0; background: var(--white); border-radius: 12px; overflow: hidden; color: var(--ink); box-shadow: 0 18px 40px rgba(6, 16, 30, 0.35); }
.mock-screen .top { background: var(--navy-2); color: var(--white); display: flex; justify-content: space-between; gap: 8px; padding: 8px 14px; font-size: 13px; }
.mock-screen .top span:last-child { background: var(--white); color: var(--navy-2); border-radius: 4px; padding: 0 8px; font-weight: 700; }
.mock-screen .body { display: flex; }
.mock-screen .q { flex: 1 1 auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; border-right: 1px solid var(--line); }
.mock-screen .ln { height: 10px; background: #E6EAF0; border-radius: 3px; }
.mock-screen .op { border: 1px solid var(--line); border-radius: 4px; height: 26px; }
.mock-screen .op.on { border: 2px solid var(--navy-2); background: #EEF3FA; }
.mock-screen .pal { width: 150px; padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-content: start; }
.mock-screen .pal span { height: 24px; border-radius: 4px; background: var(--line-2); }
.mock-screen .pal .g { background: var(--green); } .mock-screen .pal .r { background: var(--red); } .mock-screen .pal .p { background: var(--purple); border-radius: 50%; }
.mini-btn { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 3px; color: var(--white); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.exam-card { position: relative; overflow: hidden; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.exam-card .blob { position: absolute; right: -60px; top: -40px; width: 200px; height: 260px; border-radius: 50%; }
.exam-card > *:not(.blob) { position: relative; }
.exam-card b.title { font-size: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 260px; }
.chip { border: 1px solid #C9D0DA; border-radius: 999px; padding: 6px 16px; text-decoration: none; color: var(--ink); background: var(--white); }
.chip:hover { border-color: var(--navy); }
.explore { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 18px; }
.explore span { width: 40px; height: 40px; border-radius: 50%; background: #F1F3F6; display: inline-flex; align-items: center; justify-content: center; }

.pass-card { overflow: hidden; display: flex; flex-direction: column; }
.pass-card .banner { background: var(--navy); color: var(--white); padding: 18px 20px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pass-card .banner::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 150px; height: 150px; border-radius: 50%; background: var(--navy-2); }
.pass-card .banner > * { position: relative; z-index: 1; }
.pass-card .eyebrow { font-size: 12px; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.pass-card .banner b { font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.pass-card .ribbon { align-self: flex-start; border: 1px solid var(--gold); color: #F3D58E; border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.pass-card .content { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pass-card .tagline { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pass-card .exam-tag { color: #C2410C; font-weight: 600; }
.lang-chip { border: 1px solid #C9D0DA; border-radius: 6px; padding: 0 8px; font-size: 13px; font-weight: 600; }
.price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.price-row .p { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.price-row b { font-size: 22px; }
.strike { color: #6B7584; text-decoration: line-through; font-size: 14px; }
.off { color: #1F7A35; font-weight: 700; font-size: 15px; }
.arrow-btn { border: 1px solid #C9D0DA; color: var(--navy); text-decoration: none; width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.tile { border-radius: 16px; padding: 40px 20px; display: flex; flex-direction: column; gap: 4px; }
.tile b { font-size: 46px; line-height: 1.05; }
.tile span { font-size: 18px; }
.t1 { background: #FCF1E3; } .t2 { background: #FBE9E7; } .t3 { background: #E6F6FB; } .t4 { background: #ECEAFB; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { background: var(--white); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--navy); }
.steps .n { font-size: 14px; font-weight: 700; color: var(--gold-text); }

.tabs-pill { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tabs-pill button { border: 1px solid #C9D0DA; background: var(--white); color: var(--ink); border-radius: 999px; padding: 6px 18px; }
.tabs-pill button[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.results-box { margin-top: 12px; background: #FFF8E8; border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.toppers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 22px; width: 100%; max-width: 900px; }
.topper { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.topper .ph { width: 104px; height: 104px; border-radius: 50%; background: var(--line-2); border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; color: #6B7584; font-size: 13px; }
.topper .sc { background: var(--navy); color: var(--white); border-radius: 999px; padding: 1px 14px; font-weight: 700; font-size: 14px; margin-top: -18px; }

.testimonial { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; text-align: left; }
.video-ph { flex: 1 1 420px; min-width: 0; aspect-ratio: 16 / 9; max-width: 100%; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.video-ph span { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.input, select.input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #B9C2CF; border-radius: 8px; min-height: 48px; background: var(--white); width: 100%; }
.phone { display: flex; border: 1px solid #B9C2CF; border-radius: 8px; overflow: hidden; min-height: 48px; background: var(--white); }
.phone span { background: var(--bg); padding: 0 12px; display: flex; align-items: center; color: var(--muted); border-right: 1px solid #B9C2CF; font-weight: 400; }
.phone input { flex: 1; min-width: 0; border: 0; font: inherit; font-weight: 400; padding: 0 12px; }
.otp { font-size: 24px !important; letter-spacing: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.msg { font-size: 14px; border-radius: 6px; padding: 8px 12px; }
.msg.ok { background: var(--green-soft); color: var(--green-text); }
.msg.err { background: var(--red-soft); color: var(--red-text); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 32px 8px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Pricing ---------- */
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--line-2); padding: 6px; border-radius: 12px; width: 100%; max-width: 560px; margin: 0 auto; }
.seg button { border: 0; border-radius: 8px; padding: 10px; font-size: 17px; font-weight: 800; min-height: 48px; background: transparent; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--navy); color: var(--white); }
.plans { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.plans-one .plan-main { max-width: 560px; margin-inline: auto; }
.plan-main { flex: 3 1 380px; min-width: 0; background: var(--navy); color: var(--white); border: 2px solid var(--gold); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: 0 16px 36px rgba(22, 48, 79, 0.25); }
.plan-main .badge { position: absolute; top: -15px; left: 24px; background: var(--gold); color: var(--navy); font-size: 14px; font-weight: 800; padding: 3px 14px; border-radius: 999px; }
.plan-main .big { font-size: 44px; font-weight: 800; line-height: 1; }
.plan-main .was { font-size: 20px; color: #9FB0C7; text-decoration: line-through; }
.plan-main .offtag { background: var(--green); color: var(--white); font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 6px; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.counts div { border-radius: 10px; padding: 10px 6px; display: flex; flex-direction: column; line-height: 1.2; }
.plan-main .counts div { background: var(--navy-2); }
.plan-main .counts b { font-size: 26px; color: var(--gold); }
.plan-main .counts span { font-size: 13px; color: #C9D3E1; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.checks li::before { content: "✓"; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.plan-alt { flex: 2 1 280px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan-alt .counts div { background: var(--bg); }
.plan-alt .counts b { font-size: 24px; }
.plan-alt .counts span { font-size: 13px; color: var(--muted); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.perk { display: flex; gap: 12px; align-items: flex-start; }
.perk .ic { width: 36px; height: 36px; border-radius: 10px; background: #EEF3FA; flex: none; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.dashed { border: 1px dashed #9AA5B5; border-radius: 12px; padding: 16px 22px; }
.summary { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.summary .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.summary aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.item { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.item .thumb { width: 110px; height: 76px; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: center; padding: 10px 12px; line-height: 1.15; flex: none; }
.item .thumb small { font-size: 11px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; }
.combo { background: var(--gold-soft); border: 2px solid var(--gold); border-radius: 12px; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.sumrow.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 22px; font-weight: 800; }
.overlay { position: fixed; inset: 0; background: rgba(8, 16, 28, 0.5); z-index: 50; display: flex; }
.drawer { margin-left: auto; width: 100%; max-width: 440px; background: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.modal { margin: auto; width: calc(100% - 32px); max-width: 420px; background: var(--white); border-radius: 12px; overflow: hidden; }
.modal .mhead { background: var(--navy); color: var(--white); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal .mbody { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.radio-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 48px; }
.radio-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.close-x { background: var(--bg); border: 0; border-radius: 50%; width: 44px; height: 44px; flex: none; font-size: 20px; }

/* ---------- Tables, stats ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
table.data { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 16px; border-bottom: 1px solid #EEF1F5; }
.status { border-radius: 999px; padding: 2px 10px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.status.open { background: var(--green-soft); color: var(--green-text); }
.status.live { background: #FCEFD9; color: #7A4A06; }
.status.up { background: #E9ECF1; color: #3F4957; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; font-variant-numeric: tabular-nums; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat small { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.stat b { font-size: 32px; line-height: 1.1; }
.stat.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stat.dark small { color: #C9D3E1; }

/* ---------- Dashboard ---------- */
.dash { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-block: 28px 64px; }
.dash nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.dash nav a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); border-radius: 8px; border: 1px solid transparent; }
.dash nav a[aria-current="page"] { background: var(--white); border-color: var(--line); color: var(--navy); }
.dash main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.next-test { background: var(--navy); color: var(--white); border-radius: 12px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.empty { border: 1px dashed #9AA5B5; border-radius: 12px; padding: 22px; color: var(--muted); }
.pill { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.free { background: var(--green-soft); color: var(--green-text); }

/* ---------- Result charts ---------- */
.rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; text-align: center; }
.rings figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rings svg { width: 100%; max-width: 130px; }
.up { color: var(--green-text); } .down { color: var(--red-text); }

@media (max-width: 640px) {
  .h-sec { font-size: 30px; }
  .section { padding-block: 40px; }
  .container { padding-inline: 16px; }
  .site-header .bar { gap: 10px 14px; padding-block: 10px; }
  .logo b { font-size: 22px; }
  .header-cta, .user-chip { margin-left: auto; }
  .header-cta, .user-chip .btn { min-height: 40px; padding: 8px 14px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; gap: 18px; }
}

/* Keep typed text dark on the white fields even when the browser or host page uses a dark theme */
:root { color-scheme: light; }
input, select, textarea { color: var(--ink); -webkit-text-fill-color: var(--ink); caret-color: var(--ink); background-color: #fff; }
input::placeholder, textarea::placeholder { color: #7A8494; -webkit-text-fill-color: #7A8494; opacity: 1; }
input:disabled { color: #4E5868; -webkit-text-fill-color: #4E5868; }

/* Password box with show / hide eye */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 52px; }
.pw-wrap .eye { position: absolute; top: 0; right: 0; height: 100%; width: 48px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 0 8px 8px 0; }
.pw-wrap .eye:hover, .pw-wrap .eye[aria-pressed="true"] { color: var(--navy); }
.pw-wrap .eye:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }

/* PYQ and worksheet cards on the home page */
.res-card { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.res-card .meta { color: var(--muted); font-size: 15px; }
.res-card .btn { align-self: flex-start; margin-top: auto; }
.res-card .soon { align-self: flex-start; margin-top: auto; font-weight: 700; color: var(--muted); border: 1px dashed #C9D0DA; border-radius: 8px; padding: 8px 14px; }
.subj { align-self: flex-start; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 2px 12px; }
.subj.P { background: #E8F0FB; color: #1F4E8C; } .subj.C { background: #FDF3E1; color: #8A5A00; } .subj.B { background: #E6F4E8; color: #1E6B2E; }

/* Worksheet page */
.ws-head { display: flex; flex-direction: column; gap: 10px; }
.ws-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ws-mode { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; }
.ws-mode b { font-size: 20px; } .ws-mode .big { font-size: 26px; font-weight: 800; color: var(--navy); }
.ws-mode .btn { align-self: flex-start; margin-top: 6px; }
.ws-mode:hover { border-color: var(--navy); }
.ws-brand { font-weight: 800; color: var(--navy); font-size: 18px; } .ws-brand span { color: #C8962B; }
.ws-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ws-q { display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.ws-opts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ws-opts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; }
.ws-opts li.right { border-color: #2E8B3E; background: #E6F4E8; }
.ws-opts .n { font-weight: 700; color: var(--muted); }
.ws-keygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px 12px; font-variant-numeric: tabular-nums; }
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body, body.tint { background: #fff !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc; }
  .ws-key { break-before: page; }
  .ws-list { gap: 8px; }
  .ws-q, .ws-head, .ws-key { padding: 10px 14px !important; }
  .ws-opts { grid-template-columns: 1fr 1fr; gap: 4px; }
  .ws-opts li { padding: 3px 8px; }
  .ws-q .qbody { font-size: 14px; line-height: 1.5; }
}

/* Text-style buttons (Forgot password, Resend code) and the code box */
.btn.linkish{min-height:0;padding:0;background:none;border:0;text-decoration:underline;font-weight:600;color:var(--ink);align-self:flex-start}
.btn.linkish:disabled{opacity:.55;text-decoration:none;cursor:default}
.code-in{font-size:24px;letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums}
.subj.M { background: #F1EAFB; color: #5B2C8F; }

/* Header: Log in + Sign up */
.auth-btns { display: flex; gap: 8px; align-items: center; }
.auth-btns .btn { min-height: 40px; padding: 8px 16px; }
@media (max-width: 420px) { .auth-btns .btn { padding: 8px 10px; font-size: 15px; } }
.switch-auth { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.switch-auth .btn.linkish { align-self: auto; }

/* Policy pages (terms.html, privacy.html, refund.html) */
.legal { max-width: 860px; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 16px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--muted); }
.legal-nav a { color: var(--ink-2); font-weight: 600; }
.legal-nav a[aria-current="page"] { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); }
.legal-doc { line-height: 1.7; color: var(--ink-2); }
.legal-doc h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.2; color: var(--ink); }
.legal-doc h2 { margin: 28px 0 8px; font-size: 21px; color: var(--ink); }
.legal-doc h3 { margin: 18px 0 6px; font-size: 17px; color: var(--ink); }
.legal-doc p { margin: 0 0 12px; max-width: 72ch; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; max-width: 72ch; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .legal-doc h1 { font-size: 26px; } }

/* Student ID under the dashboard greeting */
.sid{display:inline-block;margin-top:6px;padding:4px 10px;border-radius:8px;background:#fff;border:1px solid #e3e6ee;font-size:14px;color:#5b6475}
.sid b{color:#1f2d4d;letter-spacing:.06em;font-family:ui-monospace,Menlo,Consolas,monospace}

/* Off-screen copy of the paper that the PDF is drawn from (A4 width) */
.pdf-src { position: absolute; left: -12000px; top: 0; width: 760px; background: #fff; color: #18202C; font: 15px/1.5 "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif; }
.pdf-src .pq { padding: 14px 16px; border-bottom: 1px solid #DDE2EA; background: #fff; }
.pdf-src .pq-head { border-bottom: 2px solid #1F3A5F; }
.pdf-src .pq-brand { font-weight: 800; font-size: 20px; color: #1F3A5F; } .pdf-src .pq-brand span { color: #C9962E; }
.pdf-src h1 { font-size: 22px; margin: 6px 0 4px; }
.pdf-src .pq-meta { color: #5B6575; font-size: 13px; }
.pdf-src .pq-score { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; }
.pdf-src .pq-qh { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #5B6575; margin-bottom: 6px; }
.pdf-src .pq-qh b { color: #18202C; font-size: 15px; }
.pdf-src .pq-tag { padding: 1px 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.pdf-src .pq-tag.ok { background: #E3F4E6; color: #1E6B2C; } .pdf-src .pq-tag.bad { background: #FBE6E3; color: #A3271A; } .pdf-src .pq-tag.skip { background: #EEF1F5; color: #4E5868; }
.pdf-src .pq-q img { max-width: 100%; }
.pdf-src .pq-opts { display: grid; gap: 4px; margin: 8px 0; }
.pdf-src .pq-opts > div { padding: 4px 8px; border-radius: 4px; }
.pdf-src .pq-opts .right { background: #E3F4E6; } .pdf-src .pq-opts .wrong { background: #FBE6E3; }
.pdf-src .pq-ans { background: #F5F7FA; border-radius: 6px; padding: 8px 10px; font-size: 14px; }
.pdf-src .pq-sol { margin-top: 6px; }
/* Print fallback for the PDF (browser "Save as PDF") */
.print-src { display: none; }
@media print {
  body.printing > *:not(.print-src) { display: none !important; }
  body.printing .print-src { display: block; color: #18202C; font: 13px/1.5 "Noto Sans", "Noto Sans Devanagari", Arial, sans-serif; }
  .print-src .print-wm { position: fixed; inset: 0; background-repeat: repeat; -webkit-print-color-adjust: exact; print-color-adjust: exact; z-index: 5; pointer-events: none; }
  .print-src .pq { padding: 10px 0; border-bottom: 1px solid #DDE2EA; break-inside: avoid; }
  .print-src .pq-brand { font-weight: 800; font-size: 18px; color: #1F3A5F; } .print-src .pq-brand span { color: #C9962E; }
  .print-src h1 { font-size: 20px; margin: 4px 0; }
  .print-src .pq-meta { color: #5B6575; } .print-src .pq-score { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
  .print-src .pq-qh { display: flex; gap: 10px; color: #5B6575; } .print-src .pq-qh b { color: #18202C; }
  .print-src .pq-opts { display: grid; gap: 2px; margin: 6px 0; } .print-src .pq-opts .right { font-weight: 700; } .print-src .pq-opts .wrong { text-decoration: line-through; }
  .print-src .pq-ans { margin-top: 4px; } .print-src img { max-width: 100%; }
  @page { size: A4; margin: 12mm; }
}

.syl summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.syl div { margin-top: 6px; font-size: 14px; line-height: 1.5; }

/* question figures (inline SVG drawn by StemClass) */
.qfig{display:block;width:100%;min-width:min(100%,170px);height:auto;margin:10px 0;color:inherit}
.opt .qfig{margin:4px 0;max-width:170px!important}

/* ---------- Practice tools (practice.html) ---------- */
.pr-tabs { flex-wrap: wrap; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.pr-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr; } .pr-side { position: static; order: -1; } }
.pick-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 14px; margin: 0; min-width: 0; }
.pick-group legend { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; margin-top: 6px; }
.pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.pick:hover { background: var(--gold-soft); }
.pick small { color: var(--ink-2); font-size: 12px; }
.pick input, .pick-group legend input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.pr-side .chips { max-width: none; margin-top: 6px; }
button.chip { font: inherit; cursor: pointer; min-height: 40px; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pr-sum { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 8px; background: var(--gold-soft); font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.week .day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.week .day small { color: var(--ink-2); }
.week .day.done { background: var(--green-soft); border-color: var(--green-text); color: var(--green-text); }
.week .day.done small { color: var(--green-text); }
.week .day.today { outline: 2px solid var(--gold); outline-offset: 1px; }
.week .day.future { opacity: .5; }
.fc-wrap { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-inline: auto; }
.fc { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(22, 48, 79, .08); cursor: pointer; }
.fc:focus-visible { outline: 3px solid var(--gold); }
.fc.flipped { background: #F3FAF4; border-color: var(--green-text); }
.fc-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.fc-opts { margin: 0; padding-left: 26px; display: grid; gap: 4px; }
.qcard .qbody { font-size: 16px; }
.qb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.qb-col h2 { margin: 0 0 8px; font-size: 22px; }
.qb-col ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.qb-col li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.qb-col li a:hover { background: var(--gold-soft); }
.qb-col li small { color: var(--ink-2); }
.pbar { height: 10px; border-radius: 999px; background: #E5E9EF; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.pbar.warn > i { background: #D8412F; }
.stat-big { font-size: 40px; font-weight: 800; line-height: 1; color: var(--navy); }
/* ---------- Course details (course.html) ---------- */
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.course-hero { background: var(--navy); color: #fff; border-radius: 16px; padding: 28px; }
.course-hero .eyebrow { font-size: 12px; letter-spacing: 1px; color: var(--gold); font-weight: 700; }
.course-hero .lang-chip { border-color: rgba(255,255,255,.35); color: #fff; }
.course-counts div { background: var(--gold-soft); }
.course-counts b { font-size: 26px; color: var(--navy); }
.course-counts span { font-size: 13px; color: var(--ink-2); }
.course-buy { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.trial-box { gap: 10px 16px; padding: 14px 16px; }
.course-buy .trial-box { flex-direction: column; align-items: stretch; }
@media (max-width: 900px) { .course-grid { grid-template-columns: 1fr; } .course-buy { position: static; order: -1; } }
.pass-card .more { font-size: 14px; font-weight: 700; color: var(--navy); }
/* ---------- Written practice and notes (worksheet.html) ---------- */
.wr { display: flex; flex-direction: column; gap: 16px; }
.wr-sec { margin: 8px 0 0; font-size: 20px; border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.wr-q { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.wr-ans summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.wr-ans .sol { margin-top: 8px; background: #F3FAF4; border: 1px solid var(--green-text); border-radius: 8px; padding: 12px !important; }
.notes h2 { font-size: 22px; margin: 16px 0 6px; } .notes h2:first-child { margin-top: 0; }
.notes .formula { background: var(--gold-soft); border-radius: 8px; padding: 10px 14px; margin: 8px 0; overflow-x: auto; }
.notes table { border-collapse: collapse; width: 100%; } .notes td, .notes th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.tabs-pill .tab-link { align-self: center; padding: 8px 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.soon-box { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.soon-box .pill { background: var(--gold-soft); color: var(--gold-text); }
table.lb tr.me td { background: var(--gold-soft); font-weight: 700; }
.sold-box { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 12px; background: var(--gold-soft); border: 1px dashed var(--gold); }
.btn.sold { cursor: default; opacity: .8; }
.install-btn { align-self: flex-start; border: 1px solid var(--gold); background: var(--gold); color: var(--navy); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; margin-bottom: 4px; }
@media (min-width: 1000px) { .site-header .bar { gap: 12px 16px; } .nav { gap: 4px 16px; font-size: 15px; } }

/* Data tables inside questions (e.g. grouped frequency tables) */
.qbody table.list { border-collapse: collapse; font-size: 15px; display: block; max-width: 100%; overflow-x: auto; }
.qbody table.list th, .qbody table.list td { border: 1px solid var(--line, #D5DBE4); padding: 4px 10px; text-align: left; }

/* ===== Festive (Diwali) look — shown while FESTIVE.until in config.js has not passed ===== */
:root { --fest-deep: #3A0D2E; --fest-wine: #6B1238; --fest-saffron: #F28C28; --fest-marigold: #FFB627; --fest-glow: #FFE29A; }
.fest-strip { background: linear-gradient(90deg, var(--fest-wine), #8E1B3F 50%, var(--fest-wine)); color: #FFF4DA; font-size: 15px; }
.fest-strip .container { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding-block: 7px; text-align: center; }
.fest-strip .till { color: #F7CF8A; font-weight: 600; }
.fest-strip a { color: var(--fest-navy, #2A1200); background: var(--fest-marigold); border-radius: 999px; padding: 3px 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.fest-strip a:hover { background: var(--fest-glow); color: #2A1200; }
.fest-strip .diya { width: 26px; height: 26px; flex: none; }
@media (max-width: 560px) { .fest-strip .diya { display: none; } .fest-strip { font-size: 14px; } }

.diya .bowl { fill: #C2571A; } .diya .rim { stroke: #FFB627; stroke-width: 2; fill: none; }
.diya .dot { fill: #FFE29A; } .diya .wick { stroke: #3A1B0B; stroke-width: 1.6; }
.diya .flame { fill: #FFC23D; transform-origin: 20px 18px; animation: flick 1.6s ease-in-out infinite; filter: drop-shadow(0 0 4px #FFB627); }
@keyframes flick { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, 0.94) rotate(2deg); } }

.hero.festive { position: relative; background: radial-gradient(120% 90% at 85% 0%, #8E1B3F 0%, var(--fest-wine) 35%, var(--fest-deep) 75%); }
.hero.festive .inner, .hero.festive .dots { position: relative; z-index: 1; }
.hero.festive .inner { padding-bottom: 86px; }
.hero.festive .tag { background: var(--fest-marigold); color: #3A1200; }
.hero.festive h1 { min-height: 0; color: #FFF4DA; text-shadow: 0 2px 18px rgba(255, 182, 39, 0.35); }
.hero.festive p { color: #F6DCC8; }
.hero.festive .btn-gold { background: var(--fest-marigold); color: #3A1200; box-shadow: 0 6px 22px rgba(255, 182, 39, 0.35); }
.hero.festive .btn-gold:hover { background: var(--fest-glow); }
.hero.festive .mock-screen { box-shadow: 0 0 0 6px rgba(255, 182, 39, 0.18), 0 18px 50px rgba(0, 0, 0, 0.4); }
.fest-decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fest-decor .lanterns { position: absolute; top: 0; right: 0; width: min(46%, 440px); height: auto; }
.lantern .cord { stroke: #F7CF8A; stroke-width: 1.2; }
.lantern .cap { fill: #FFB627; } .lantern .body { fill: #D7263D; stroke: #FFB627; stroke-width: 1.4; }
.lantern .band { stroke: #FFB627; stroke-width: 2; } .lantern .glow { fill: #FFE29A; opacity: 0.85; }
.lantern .tassel { stroke: #FFB627; stroke-width: 1.4; }
.lantern.l2 .body, .lantern.l4 .body { fill: #F28C28; } 
.lantern { animation: sway 5s ease-in-out infinite; } .lantern.l2 { animation-duration: 6.5s; } .lantern.l3 { animation-delay: -2s; } .lantern.l4 { animation-duration: 5.8s; animation-delay: -1s; }
@keyframes sway { 0%,100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
.fest-decor .rangoli-l { position: absolute; left: -90px; bottom: -90px; width: 300px; height: 300px; opacity: 0.32; }
.rangoli .p1 { fill: #FFB627; } .rangoli .p2 { fill: #F28C28; } .rangoli .p3 { fill: #E8476A; } .rangoli .p4 { fill: #FFE29A; }
.fest-decor .sparks i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--fest-glow); box-shadow: 0 0 8px 2px rgba(255, 226, 154, 0.7); animation: twinkle 2.8s ease-in-out infinite; opacity: 0; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 0.9; transform: scale(1); } }
.fest-decor .diya-row { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-evenly; }
.fest-decor .diya-row .diya { width: 46px; height: 46px; }
.fest-decor .diya-row .diya:nth-child(2n) .flame { animation-delay: -0.7s; }
.fest-decor .diya-row .diya:nth-child(3n) .flame { animation-delay: -1.1s; }
@media (max-width: 700px) { .fest-decor .diya-row .diya:nth-child(n+6) { display: none; } .fest-decor .lanterns { width: 60%; opacity: 0.6; } }

.fest-offer { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; align-self: flex-start; background: rgba(255, 226, 154, 0.1); border: 1px dashed rgba(255, 182, 39, 0.7); border-radius: 14px; padding: 12px 18px; }
.fest-offer .fo-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fest-offer .lbl { font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; color: #F7CF8A; font-weight: 700; }
.fest-offer b { font-size: 40px; line-height: 1; color: var(--fest-glow); }
.fest-offer .strike { color: #D9B8A8; font-size: 18px; }
.fest-offer .pct { background: #1F8A4C; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 14px; font-weight: 800; }
.fest-offer .fo-meta { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: #F6DCC8; }
.fest-offer .when { color: var(--fest-marigold); font-weight: 800; }

.pass-card.fest .banner { background: linear-gradient(135deg, var(--fest-wine), var(--fest-deep)); }
.pass-card.fest .banner::after { background: radial-gradient(circle, rgba(255, 182, 39, 0.45), rgba(255, 182, 39, 0) 70%); }
.pass-card.fest .banner > .diya { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; z-index: 2; }
.pass-card.fest .ribbon { background: var(--fest-marigold); color: #3A1200; border-color: var(--fest-marigold); }
.pass-card.fest .eyebrow { color: var(--fest-glow); }

@media (prefers-reduced-motion: reduce) { .diya .flame, .lantern, .fest-decor .sparks i { animation: none; } .fest-decor .sparks i { opacity: 0.6; } }

.site-footer .ig-link { display: inline-flex; align-items: center; gap: 8px; }
.own-box { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.own-box b { color: var(--green-text, #1F7A44); font-size: 17px; }
.plan-main .own-box b { color: #9BE3B4; }
