/* ============================================================
   SikhoBox design system
   - System fonts only (no font files to license or download)
   - Light + dark themes follow the device setting
   ============================================================ */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5b6472;
  --line: #e4e7ef;
  --line-2: #d3d8e4;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-soft: #eef0ff;
  --on-brand: #ffffff;
  --ok: #15803d;
  --ok-soft: #e9f8ef;
  --ok-line: #9fdcb5;
  --bad: #c0262d;
  --bad-soft: #fdeeee;
  --bad-line: #f3b4b6;
  --amber: #b45309;
  --amber-soft: #fff6e6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .05);
  --shadow-lg: 0 10px 40px rgba(17, 24, 39, .12);
  --font: "AnekKN", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
/* Dark theme: used when the student picks Dark, or when their device is set to dark and they haven't picked Light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f1a;
    --surface: #131926;
    --surface-2: #1a2132;
    --ink: #e8ebf3;
    --ink-2: #c3c9d8;
    --muted: #8d96ab;
    --line: #242c3e;
    --line-2: #323b50;
    --brand: #8b8cf7;
    --brand-strong: #a5a6fb;
    --brand-soft: #1f2347;
    --on-brand: #0b0f1a;
    --ok: #4ade80;
    --ok-soft: #10261b;
    --ok-line: #1f5a37;
    --bad: #f87171;
    --bad-soft: #2a1416;
    --bad-line: #6b2a2e;
    --amber: #fbbf24;
    --amber-soft: #2a2110;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f1a;
  --surface: #131926;
  --surface-2: #1a2132;
  --ink: #e8ebf3;
  --ink-2: #c3c9d8;
  --muted: #8d96ab;
  --line: #242c3e;
  --line-2: #323b50;
  --brand: #8b8cf7;
  --brand-strong: #a5a6fb;
  --brand-soft: #1f2347;
  --on-brand: #0b0f1a;
  --ok: #4ade80;
  --ok-soft: #10261b;
  --ok-line: #1f5a37;
  --bad: #f87171;
  --bad-soft: #2a1416;
  --bad-line: #6b2a2e;
  --amber: #fbbf24;
  --amber-soft: #2a2110;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
body { transition: background-color .2s, color .2s }

* { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100% }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased }
button, input, select, textarea { font: inherit; color: inherit }
a { color: var(--brand); text-decoration: none }
a:hover { text-decoration: underline }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px }
.i { flex: none; display: inline-block; vertical-align: middle }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important } .reveal { opacity: 1 !important; transform: none !important } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line) }
.bar { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; color: var(--ink) }
.logo:hover { text-decoration: none }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center }
.logo b { color: var(--brand); font-weight: 800 }
.nav { display: flex; align-items: center; gap: 6px }
.chip-stat { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); padding: 6px 10px; border-radius: 99px; background: var(--surface-2) }
.chip-stat .i { color: var(--amber) }
.nav-link[aria-current="page"] { background: var(--surface-2); color: var(--ink) }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px }

/* account menu */
.menu-wrap { position: relative; margin-left: 4px }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; cursor: pointer; display: block }
.avatar-btn .avatar { width: 36px; height: 36px; transition: box-shadow .15s }
.avatar-btn:hover .avatar, .avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--brand-soft), 0 0 0 4px var(--brand) }
.menu { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 30; animation: rise .15s ease-out }
.menu[hidden] { display: none }
.menu-head { display: grid; padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line) }
.menu-head b { font-size: .95rem }
.menu-head span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; background: none; border-radius: 9px; font-size: .94rem; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); text-decoration: none; outline: none }
.menu-item .i { color: var(--muted) }
.menu-item.danger, .menu-item.danger .i { color: var(--bad) }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0 }
.mobile-only { display: none !important }
@media (max-width: 900px) { .mobile-only { display: flex !important } .desktop-only { display: none !important } }   /* phones and iPads held upright use the phone navigation */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: .82rem; display: grid; place-items: center; flex: none }

/* ---------- layout ---------- */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px }
.narrow { max-width: 720px; margin: 0 auto }
.stack { display: grid; gap: 20px }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 24px }
.foot { max-width: 1040px; margin: 0 auto; padding: 36px 20px 24px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px }
.foot-brand p { color: var(--muted); font-size: .9rem; margin-top: 10px; max-width: 300px }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.foot-cols h3, .foot-cols h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px }
.foot-cols a { display: block; color: var(--ink-2); font-size: .92rem; padding: 4px 0 }
.foot-cols a:hover { color: var(--brand) }
.foot-bottom { max-width: 1040px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; gap: 24px } }
@media (max-width: 420px) { .foot-cols { grid-template-columns: 1fr 1fr } }

/* ---------- homepage sections ---------- */
.section { padding: 56px 0 0 }
.section-head { max-width: 620px; margin-bottom: 26px }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; font-weight: 800; margin: 6px 0 8px }
.section-head p { color: var(--muted) }
.section.center .section-head { margin-left: auto; margin-right: auto; text-align: center }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px }
.numbers .stat { text-align: center }
.numbers .value { font-size: 1.9rem }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step }
.card.step { position: relative; padding-top: 60px }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .88rem; display: grid; place-items: center }
.step h3 { font-size: 1.05rem; margin-bottom: 4px }
.step p { color: var(--muted); font-size: .94rem }
.exams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
.exam { display: flex; gap: 14px; align-items: flex-start }
.exam h3 { margin-bottom: 2px }
.exam p { color: var(--muted); font-size: .88rem }
.topics { display: flex; flex-wrap: wrap; gap: 10px }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .94rem; box-shadow: var(--shadow) }
.topic .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand) }
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow) }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 12px }
.faq summary::-webkit-details-marker { display: none }
.faq summary .i { transition: transform .2s; color: var(--muted) }
.faq details[open] summary .i { transform: rotate(90deg) }
.faq details p { padding: 0 20px 18px; color: var(--ink-2) }
.cta-band { margin-top: 56px; border-radius: 20px; padding: 40px 28px; text-align: center; background: var(--brand); color: var(--on-brand) }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px }
.cta-band p { opacity: .85; margin-bottom: 20px }
.cta-band .btn { background: var(--surface); color: var(--brand-strong) }
.cta-band .btn:hover { background: var(--surface-2) }
@media (max-width: 820px) { .steps, .exams { grid-template-columns: 1fr 1fr } }
@media (max-width: 560px) { .steps, .exams, .numbers { grid-template-columns: 1fr } .numbers .stat { display: flex; justify-content: space-between; align-items: center; text-align: left } .numbers .value { margin: 0; font-size: 1.4rem } .section { padding-top: 44px } }

/* ---------- content pages ---------- */
.page-head { max-width: 720px; margin: 8px auto 28px }
.page-head h1 { margin: 6px 0 8px }
.prose { max-width: 720px; margin: 0 auto }
.prose h2 { font-size: 1.15rem; margin: 28px 0 8px }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px }
.prose ul { padding-left: 22px; margin-bottom: 12px }
.prose .card { margin-bottom: 16px }
.note { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .9rem; margin: 18px 0 }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr } }

/* ---------- leaderboard page ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 20px }
.podium .p { text-align: center; padding: 18px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow) }
.podium .p .avatar { width: 48px; height: 48px; margin: 0 auto 8px; font-size: 1rem }
.podium .p.first { padding: 26px 10px; border-color: var(--brand) }
.podium .p.first .avatar { width: 58px; height: 58px; background: var(--brand); color: var(--on-brand) }
.podium .p .place { font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase }
.podium .p .nm { font-weight: 700; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.podium .p .sc { font-weight: 800; font-size: 1.15rem }
.list .sub { color: var(--muted); font-size: .82rem; font-weight: 500 }

/* ---------- account page ---------- */
.danger-zone { border-color: var(--bad-line) }
.danger-zone h2 { color: var(--bad) }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr } }

/* ---------- type ---------- */
h1 { font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 800 }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em }
h3 { font-size: .95rem; font-weight: 700 }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.lead { color: var(--ink-2); font-size: 1.05rem }
.muted { color: var(--muted) }
.small { font-size: .88rem }

/* ---------- card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow) }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px }
.card.flush { padding: 0; overflow: hidden }
@media (max-width: 520px) { .card { padding: 18px } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--brand); color: var(--on-brand); font-weight: 650; font-size: .98rem; cursor: pointer; transition: background .15s, transform .05s; white-space: nowrap }
.btn:hover { background: var(--brand-strong); text-decoration: none }
.btn:active { transform: translateY(1px) }
.btn:disabled { opacity: .55; cursor: not-allowed }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2) }
.btn.secondary:hover { background: var(--surface-2) }
.btn.ghost { background: transparent; color: var(--ink-2) }
.btn.ghost:hover { background: var(--surface-2) }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--line-2) }
.btn.danger:hover { background: var(--bad-soft) }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .88rem }
.btn.icon { width: 40px; min-height: 40px; padding: 0 }
.btn.block { width: 100% }
.btn.lg { min-height: 52px; font-size: 1.05rem; padding: 0 26px }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- forms ---------- */
form { display: grid; gap: 14px }
.field { display: grid; gap: 6px }
.field > span { font-size: .88rem; font-weight: 600; color: var(--ink-2) }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
textarea.input { min-height: 90px; resize: vertical; line-height: 1.5 }
.input-wrap { position: relative }
.input-wrap .input { padding-right: 46px }
.input-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center }
.input-wrap button:hover { color: var(--ink) }
.hint { font-size: .82rem; color: var(--muted) }
.form-error { display: none; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bad-soft); color: var(--bad); font-size: .9rem; border: 1px solid var(--bad-line) }
.form-error.show { display: flex }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer }
.check input { width: 18px; height: 18px; accent-color: var(--brand) }

/* ---------- tabs / segmented ---------- */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line) }
.segmented button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 650; font-size: .92rem; color: var(--muted); cursor: pointer }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow) }
.segmented.full { display: flex }
.segmented.full button { flex: 1 }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); letter-spacing: .01em }
.badge.ok { background: var(--ok-soft); color: var(--ok) }
.badge.bad { background: var(--bad-soft); color: var(--bad) }
.badge.neutral { background: var(--surface-2); color: var(--muted) }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; padding-top: 12px }
.hero h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); margin: 10px 0 14px }
.hero h1 em { font-style: normal; color: var(--brand) }
.features { display: grid; gap: 14px; margin: 26px 0 }
.feature { display: flex; gap: 14px; align-items: flex-start }
.feature-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; flex: none }
.feature h3 { margin-bottom: 1px }
.feature p { color: var(--muted); font-size: .92rem }
.auth-card { position: sticky; top: 84px }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px } .auth-card { position: static } }

/* ---------- quiz ---------- */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px }
.segments { display: grid; gap: 5px; margin-bottom: 22px }
.segments span { height: 6px; border-radius: 99px; background: var(--line) }
.segments span.current { background: var(--brand) }
.segments span.ok { background: var(--ok) }
.segments span.bad { background: var(--bad) }
.question { font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 700; line-height: 1.4; letter-spacing: -.01em; margin: 12px 0 22px }
.options { display: grid; gap: 10px }
.option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; text-align: left; padding: 12px 16px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 1rem; transition: border-color .12s, background .12s }
.option:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft) }
.option:disabled { cursor: default }
.option .key { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .88rem; background: var(--surface-2); color: var(--ink-2); flex: none }
.option .txt { flex: 1 }
.option .mark { flex: none; display: none }
.option.correct { border-color: var(--ok); background: var(--ok-soft) }
.option.correct .key { background: var(--ok); color: var(--surface) }
.option.correct .mark { display: block; color: var(--ok) }
.option.wrong { border-color: var(--bad); background: var(--bad-soft) }
.option.wrong .key { background: var(--bad); color: var(--surface) }
.option.wrong .mark { display: block; color: var(--bad) }
.option.dim { opacity: .6 }
.option.loading .key { background: var(--brand); color: var(--on-brand) }
.feedback { margin-top: 18px; border-radius: 12px; padding: 16px; border: 1px solid; display: flex; gap: 12px; animation: rise .2s ease-out }
.feedback.ok { background: var(--ok-soft); border-color: var(--ok-line) }
.feedback.bad { background: var(--bad-soft); border-color: var(--bad-line) }
.feedback .title { font-weight: 700; margin-bottom: 2px }
.feedback.ok .title, .feedback.ok > .i { color: var(--ok) }
.feedback.bad .title, .feedback.bad > .i { color: var(--bad) }
.feedback p { color: var(--ink-2); font-size: .95rem }
.quiz-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap }
kbd { font-family: var(--mono); font-size: .75rem; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2) }
@keyframes rise { from { opacity: 0; transform: translateY(4px) } }
@media (max-width: 520px) { .kbd-hint { display: none } }

/* ---------- dashboard ---------- */
.today { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center }
.today .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px }
.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 14px; max-width: 360px }
.progress > div { height: 100%; background: var(--brand); border-radius: 99px }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow) }
.stat .label { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--muted) }
.stat .value { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px }
.stat .value small { font-size: .9rem; color: var(--muted); font-weight: 600 }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr) } .today { grid-template-columns: 1fr } .today .ring-wrap { order: -1 } }

.ring-wrap { position: relative; width: 132px; height: 132px; flex: none }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.ring-wrap .ring-bg { stroke: var(--surface-2) }
.ring-wrap .ring-fg { stroke: var(--brand); transition: stroke-dashoffset .8s ease-out }
.ring-wrap .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center }
.ring-wrap .ring-label b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1 }
.ring-wrap .ring-label span { font-size: .8rem; color: var(--muted); font-weight: 600 }

.list { list-style: none }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line) }
.list li:first-child { border-top: 0 }
.list li.me { background: var(--brand-soft) }
.list .rank { width: 26px; font-weight: 700; color: var(--muted); font-size: .9rem; text-align: center; flex: none }
.list .rank.top { color: var(--amber) }
.list .name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.list .score { font-weight: 700; font-variant-numeric: tabular-nums }
.empty-state { padding: 28px 20px; text-align: center; color: var(--muted); font-size: .92rem }
.empty-state .i { color: var(--line-2); margin-bottom: 6px }

.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 0 20px }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0 }
.chart .bar-v { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--brand); min-height: 3px }
.chart .bar-v.none { background: var(--surface-2) }
.chart .d { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums }

/* ---------- results ---------- */
.result-head { display: flex; gap: 28px; align-items: center }
.result-head .ring-wrap { width: 150px; height: 150px }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px }
.kpi { background: var(--surface-2); border-radius: 12px; padding: 10px 14px }
.kpi b { display: block; font-size: 1.25rem; font-weight: 800 }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600 }
@media (max-width: 600px) { .result-head { flex-direction: column; text-align: center } .result-head .row { justify-content: center } }
.cat-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: .9rem; padding: 6px 0 }
.cat-row .track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden }
.cat-row .track div { height: 100%; border-radius: 99px; background: var(--ok) }
.cat-row .track div.mid { background: var(--amber) }
.cat-row .track div.low { background: var(--bad) }
.cat-row b { text-align: right; font-variant-numeric: tabular-nums }
.review-item { display: flex; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--line) }
.review-item:first-child { border-top: 0 }
.review-item .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none }
.review-item .n.ok { background: var(--ok-soft); color: var(--ok) }
.review-item .n.bad { background: var(--bad-soft); color: var(--bad) }
.review-item .q { font-weight: 600; margin-bottom: 4px }
.review-item .a { font-size: .9rem; color: var(--ink-2) }
.review-item .a s { color: var(--bad); text-decoration-thickness: 1.5px }
.review-item .e { font-size: .86rem; color: var(--muted); margin-top: 4px }

/* ---------- table (admin) ---------- */
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: .92rem }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2) }
tr:last-child td { border-bottom: 0 }
tr.inactive td { opacity: .55 }

/* ---------- skeleton + toast ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px }
@keyframes shimmer { to { background-position: -200% 0 } }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; width: min(92vw, 420px) }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: .92rem; animation: rise .2s ease-out }
.toast.bad .i { color: #fca5a5 }
.toast.ok .i { color: #86efac }
/* keep section headings clear of the sticky header when jumping to them */
[id^="sec-"], #auth { scroll-margin-top: 80px }

/* ============================================================
   Landing page (homepage) – open layout, unlike the app screens
   ============================================================ */
body { overflow-x: clip }
.hero2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 24px 0 8px }
.hero2 h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.06; letter-spacing: -.035em; margin: 20px 0 18px }
.hero2 h1 em { font-style: normal; color: var(--brand) }
.hero2 .lead { font-size: 1.14rem; max-width: 520px }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 650; font-size: .86rem }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 22px }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; font-weight: 550 }
.trust li { display: inline-flex; align-items: center; gap: 6px }
.trust .i { color: var(--ok) }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 16px 0 }
.hero-visual::before { content: ""; position: absolute; inset: 4% -2%; background: radial-gradient(closest-side, var(--brand-soft), transparent 80%); border-radius: 50% }
.phone { position: relative; width: min(340px, 100%); border-radius: 44px; padding: 11px; background: #0f1422; box-shadow: 0 30px 60px -20px rgba(17, 24, 39, .45), 0 0 0 1px var(--line-2) }
.phone-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 0 0 14px 14px; background: #0f1422; z-index: 2 }
.phone-screen { background: var(--bg); border-radius: 34px; padding: 44px 16px 20px; min-height: 540px }
.phone-bar { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; font-weight: 650; color: var(--muted); margin-bottom: 10px }
.phone .question { font-size: 1.02rem; margin: 0 0 14px; line-height: 1.4 }
.phone .option { min-height: 48px; padding: 8px 12px; font-size: .92rem; gap: 10px; border-radius: 11px }
.phone .option .key { width: 26px; height: 26px; font-size: .78rem; border-radius: 7px }
.phone .feedback { padding: 12px; gap: 10px; margin-top: 12px }
.phone .feedback p { font-size: .84rem }
.float-chip { position: absolute; z-index: 2; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .88rem; color: var(--ink-2); animation: floaty 5s ease-in-out infinite }
.float-chip .i { color: var(--amber) }
.float-chip.c1 { left: 0; top: 0 }
.float-chip.c2 { right: 0; bottom: 0; animation-delay: -2.5s }
@keyframes floaty { 50% { transform: translateY(-6px) } }

.numbers { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; margin-top: 36px; text-align: center }
.numbers b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.03em }
.numbers span { color: var(--muted); font-size: .9rem }

.band { margin: 64px calc(50% - 50vw) 0; padding: 72px 20px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.band-inner { max-width: 1000px; margin: 0 auto }
.section-head.center { margin: 0 auto 40px; text-align: center }
.steps2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px }
.step2 { border-top: 2px solid var(--line); padding-top: 22px }
.step2 .num { display: block; font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand); margin-bottom: 14px }
.step2 h3 { font-size: 1.15rem; margin-bottom: 6px }
.step2 p { color: var(--muted) }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px }
.feat-list { display: grid; gap: 22px; margin-top: 28px }
.feat-list .feature p { font-size: .95rem }
.showcase { position: relative }
.showcase::before { content: ""; position: absolute; inset: -18px; border-radius: 28px; background: var(--brand-soft); transform: rotate(-2.5deg) }
.showcase .card { position: relative; padding: 26px }
.exam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px }
.exam-item { display: flex; gap: 14px; align-items: flex-start }
.exam-item h3 { margin-bottom: 2px }
.exam-item p { color: var(--muted); font-size: .9rem }
.topics-wrap { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); text-align: center }
.topics-wrap .topics { justify-content: center; margin-top: 14px }
.topics-wrap .topic { box-shadow: none; background: var(--bg) }
#sec-faq { padding-top: 72px }
.cta-band { margin-top: 72px }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 28px }
  .split { grid-template-columns: 1fr; gap: 36px }
  .steps2, .exam-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 560px) {
  .hero2 { padding-top: 4px }
  .hero-ctas .btn { width: 100% }
  .float-chip { display: none }
  .phone-screen { min-height: 0 }
  .steps2, .exam-grid { grid-template-columns: 1fr; gap: 28px }
  .band { margin-top: 48px; padding: 52px 20px }
  .split, #sec-faq { padding-top: 52px }
  .numbers { gap: 28px }
  .showcase::before { inset: -10px }
}

/* sign up / log in page */
.auth-wrap { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; max-width: 940px; margin: 24px auto 0 }
.auth-wrap .auth-card { position: static; padding: 28px }
.auth-side h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 8px 0 12px }
.checks { list-style: none; display: grid; gap: 14px; margin-top: 26px }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-weight: 550 }
.checks .i { color: var(--ok) }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: 1fr; gap: 20px; margin-top: 4px } .checks { display: none } }
:root[data-theme="dark"] .phone, :root[data-theme="dark"] .phone-notch { background: #2a3247 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone, :root:not([data-theme="light"]) .phone-notch { background: #2a3247 } }

/* ============================================================
   Kannada
   ============================================================ */
/* Kannada uses Anek Kannada (SIL Open Font License), served from fonts/. Only Kannada letters use it, so English never downloads it. */
html[lang="kn"] body { font-family: "AnekKN", "Nirmala UI", Tunga, "Kannada Sangam MN", var(--font); line-height: 1.7 }
html[lang="kn"] h1, html[lang="kn"] h2, html[lang="kn"] h3, html[lang="kn"] .question { letter-spacing: 0; line-height: 1.4 }
html[lang="kn"] .hero2 h1 { line-height: 1.3; font-size: clamp(2rem, 4.6vw, 3.1rem) }
html[lang="kn"] .eyebrow { letter-spacing: .02em }
/* Show the block that matches the chosen language */
html[lang="kn"] [data-lang="en"], html:not([lang="kn"]) [data-lang="kn"] { display: none !important }
.lang-btn span { font-weight: 650 }
.lang-flip { flex: none }
.lang-note { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted) }
.foot-lang { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--muted) }
.foot-lang .link { color: var(--ink-2); padding: 0 }
.foot-lang .link.on { color: var(--brand); font-weight: 700 }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 6px }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr } .lang-btn span { font-size: .85rem } }

/* admin: Kannada version box */
.kn-box { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2) }
.kn-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 650 }
.kn-box summary::-webkit-details-marker { display: none }
.kn-box summary .badge { margin-left: auto }
.kn-fields { display: grid; gap: 14px; padding: 0 16px 16px }
@media (max-width: 600px) { .lang-btn { padding: 0 8px } .site-header .nav { gap: 4px } }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer }
.link:hover { text-decoration: underline }

/* Remove the phone browser's blue tap flash; use our own gentle press feedback instead */
html { -webkit-tap-highlight-color: transparent }
.faq summary, .kn-box summary { user-select: none; -webkit-user-select: none; transition: background-color .15s; border-radius: 14px }
.faq summary:active, .kn-box summary:active { background: var(--surface-2) }
.faq details[open] summary { border-radius: 14px 14px 0 0 }
.option:active:not(:disabled), .menu-item:active, .list li:active { background: var(--surface-2) }
.btn:active { filter: brightness(.95) }


/* ============================================================
   Animation
   ============================================================ */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1) }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px) } }
@keyframes fadeIn { from { opacity: 0 } }

/* screens fade in when you move between them */
.view-enter { animation: fadeUp .4s var(--ease-out) both }

/* sections fade up as they scroll into view */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s) }
.reveal.in { opacity: 1; transform: none }
.steps2 > :nth-child(2), .exam-grid > :nth-child(2), .feat-list > :nth-child(2), .faq > :nth-child(2), .promises > :nth-child(2) { --d: .08s }
.steps2 > :nth-child(3), .exam-grid > :nth-child(3), .feat-list > :nth-child(3), .faq > :nth-child(3), .promises > :nth-child(3) { --d: .16s }
.exam-grid > :nth-child(4), .feat-list > :nth-child(4), .faq > :nth-child(4), .promises > :nth-child(4) { --d: .24s }
.exam-grid > :nth-child(5), .faq > :nth-child(5) { --d: .32s }
.exam-grid > :nth-child(6), .faq > :nth-child(6) { --d: .4s }
.faq > :nth-child(7) { --d: .48s }

/* homepage hero: text arrives line by line, the phone slides in and floats */
.hero-copy > * { animation: fadeUp .7s var(--ease-out) both }
.hero-copy > :nth-child(2) { animation-delay: .08s }
.hero-copy > :nth-child(3) { animation-delay: .16s }
.hero-copy > :nth-child(4) { animation-delay: .24s }
.hero-copy > :nth-child(5) { animation-delay: .32s }
.hero2 h1 em { background: linear-gradient(90deg, var(--brand), #8b5cf6, var(--brand)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite }
@keyframes shine { to { background-position: -200% 0 } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(.95) } }
@keyframes phoneFloat { 50% { transform: translateY(-8px) } }
.hero-visual .phone { animation: phoneIn .9s .2s var(--ease-out) both, phoneFloat 6s 1.4s ease-in-out infinite }
.float-chip { animation: chipIn .6s var(--ease-spring) both, floaty 5s 1.6s ease-in-out infinite }
.float-chip.c1 { animation-delay: .9s, 1.6s }
.float-chip.c2 { animation-delay: 1.1s, 2.6s }
@keyframes chipIn { from { opacity: 0; transform: scale(.6) translateY(10px) } }
.topics-wrap .topic { transition: transform .2s var(--ease-out), border-color .2s }
.topics-wrap .topic:hover { transform: translateY(-3px); border-color: var(--brand) }
.exam-item .feature-icon, .feature .feature-icon { transition: transform .3s var(--ease-spring), background-color .3s }
.exam-item:hover .feature-icon, .feature:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); background: var(--brand); color: var(--on-brand) }
.step2 .num { transition: transform .4s var(--ease-spring) }
.step2:hover .num { transform: translateX(6px) }
.showcase.reveal.in::before { animation: tilt 1s var(--ease-out) both }
@keyframes tilt { from { transform: rotate(0) } }

/* buttons: arrows nudge forward, cards lift */
.btn [data-i="arrowRight"] { transition: transform .2s var(--ease-out) }
.btn:hover [data-i="arrowRight"] { transform: translateX(4px) }
.btn [data-i="arrowLeft"] { transition: transform .2s var(--ease-out) }
.btn:hover [data-i="arrowLeft"] { transform: translateX(-3px) }
@media (hover: hover) {
  .stat, .exams .card, .promises .card, .podium .p { transition: transform .25s var(--ease-out), box-shadow .25s }
  .stat:hover, .promises .card:hover, .podium .p:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg) }
}
.site-header { transition: box-shadow .25s }
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(17, 24, 39, .25) }

/* the streak flame flickers */
.chip-stat [data-i="flame"] { transform-origin: 50% 90%; animation: flicker 2.4s ease-in-out infinite }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0) } 30% { transform: scale(1.12) rotate(-6deg) } 60% { transform: scale(.95) rotate(4deg) } }

/* quiz: right answer pops and its tick draws itself, wrong answer shakes */
.option { transition: border-color .15s, background-color .15s, transform .12s, opacity .3s }
.option:active:not(:disabled) { transform: scale(.985) }
.option.correct { animation: pop .45s var(--ease-spring) }
.option.wrong { animation: shake .45s ease-in-out }
@keyframes pop { 40% { transform: scale(1.03) } }
@keyframes shake { 15%, 55% { transform: translateX(-6px) } 35%, 75% { transform: translateX(6px) } }
.option.correct .mark path, .feedback.ok > .i path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .1s ease-out forwards }
@keyframes draw { to { stroke-dashoffset: 0 } }
.option.loading .key { animation: pulse 1s ease-in-out infinite }
@keyframes pulse { 50% { opacity: .5 } }
.segments span { transition: background-color .35s, transform .35s var(--ease-spring) }
.segments span.current { animation: segPulse 1.6s ease-in-out infinite }
@keyframes segPulse { 50% { opacity: .55 } }
.feedback { animation: fadeUp .35s var(--ease-out) both }
.quiz-actions .btn { animation: fadeUp .35s .12s var(--ease-out) both }

/* lists: rows slide in one after another */
.list li { animation: slideIn .45s var(--ease-out) both }
.list li:nth-child(2) { animation-delay: .04s } .list li:nth-child(3) { animation-delay: .08s }
.list li:nth-child(4) { animation-delay: .12s } .list li:nth-child(5) { animation-delay: .16s }
.list li:nth-child(6) { animation-delay: .2s } .list li:nth-child(7) { animation-delay: .24s }
.list li:nth-child(8) { animation-delay: .28s } .list li:nth-child(9) { animation-delay: .32s }
.list li:nth-child(n+10) { animation-delay: .36s }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px) } }
.review-item { animation: fadeUp .4s var(--ease-out) both }

/* dashboard: chart bars grow, topic bars fill */
.chart .bar-v { transform-origin: bottom; animation: grow .7s var(--ease-out) both }
.chart .col:nth-child(n) .bar-v { animation-delay: calc(var(--n, 0) * 30ms) }
@keyframes grow { from { transform: scaleY(0) } }
.cat-row .track div { transform-origin: left; animation: fill .9s .15s var(--ease-out) both }
@keyframes fill { from { transform: scaleX(0) } }
.progress > div { transform-origin: left; animation: fill .8s var(--ease-out) both }

/* leaderboard podium rises */
.podium .p { animation: rise3 .7s var(--ease-spring) both }
.podium .p:nth-child(1) { animation-delay: .15s }
.podium .p.first { animation-delay: 0s }
.podium .p:nth-child(3) { animation-delay: .3s }
@keyframes rise3 { from { opacity: 0; transform: translateY(30px) scale(.95) } }
.podium .p.first .avatar { animation: glow 2.6s ease-in-out infinite }
@keyframes glow { 50% { box-shadow: 0 0 0 8px var(--brand-soft) } }

/* FAQ answers slide open */
.faq details[open] p, .kn-box[open] .kn-fields { animation: fadeUp .3s var(--ease-out) both }
.faq summary .i { transition: transform .3s var(--ease-spring) }

/* confetti canvas */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60 }


/* ============================================================
   Ticker bar
   ============================================================ */
.ticker { position: relative; display: flex; align-items: stretch; height: 40px; background: linear-gradient(90deg, #312e81, #4338ca 40%, #4f46e5); color: #fff; font-size: .88rem; overflow: hidden; animation: tickerIn .5s var(--ease-out) both }
@keyframes tickerIn { from { opacity: 0; height: 0 } }
.ticker.closing { transition: height .25s, opacity .25s; height: 0; opacity: 0 }
body.quiz-mode .ticker { display: none }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 max(16px, calc((100vw - 1040px) / 2 + 20px)); background: #312e81; font-weight: 700; letter-spacing: .02em; z-index: 1; box-shadow: 10px 0 14px -8px rgba(0, 0, 0, .45) }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: livePulse 1.8s ease-out infinite }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .7) } 70%, 100% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0) } }
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent) }
.ticker-track { display: flex; width: max-content; animation: tickerMove var(--dur, 30s) linear infinite }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused }
@keyframes tickerMove { to { transform: translateX(-50%) } }
.ticker-group { display: flex; align-items: center; gap: 26px; padding-left: 26px }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; color: #fff; white-space: nowrap; opacity: .95 }
.ticker-item .i { opacity: .75 }
a.ticker-item:hover { text-decoration: underline; opacity: 1 }
.ticker-sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .4); flex: none }
.ticker-close { flex: none; width: 40px; border: 0; background: rgba(0, 0, 0, .15); color: rgba(255, 255, 255, .8); cursor: pointer; display: grid; place-items: center }
.ticker-close:hover { color: #fff; background: rgba(0, 0, 0, .3) }
@media (max-width: 560px) { .ticker { height: 38px; font-size: .84rem } .ticker-label { padding: 0 12px } .ticker-label-text { display: none } }
@media (prefers-reduced-motion: reduce) { .ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none } .ticker-group[aria-hidden="true"] { display: none } }

/* admin: ticker manager */
.ta-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line) }
.ta-row:first-child { border-top: 0 }
.ta-row.inactive .ta-text { opacity: .5 }
.ta-text { flex: 1; min-width: 0; display: grid; gap: 2px }
.ta-text span { font-size: .88rem; color: var(--ink-2) }


/* ============================================================
   Pop-up
   ============================================================ */
body.popup-open { overflow: hidden }
.popup-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(10, 12, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .25s ease-out both }
.popup { position: relative; width: min(440px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px 28px 22px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: popupIn .5s var(--ease-spring) both }
@keyframes popupIn { from { opacity: 0; transform: translateY(24px) scale(.9) } }
.popup-backdrop.closing { animation: fadeOut .22s ease-in forwards }
.popup-backdrop.closing .popup { animation: popupOut .22s ease-in forwards }
@keyframes fadeOut { to { opacity: 0 } }
@keyframes popupOut { to { opacity: 0; transform: translateY(12px) scale(.96) } }
.popup-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .7); animation: iconIn .7s .15s var(--ease-spring) both }
@keyframes iconIn { from { transform: scale(0) rotate(-40deg) } }
.popup-icon .i { animation: spinSlow 8s linear infinite }
@keyframes spinSlow { to { transform: rotate(360deg) } }
.popup h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px }
.popup p { color: var(--ink-2); margin-bottom: 24px }
.popup-actions { display: grid; gap: 8px }
.popup-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center }
.popup-x:hover { background: var(--surface-2); color: var(--ink) }
html[lang="kn"] .popup h2 { letter-spacing: 0; line-height: 1.45 }
@media (max-width: 560px) {
  .popup-backdrop { place-items: end center; padding: 0 }
  .popup { width: 100%; max-height: 85vh; border-radius: 24px 24px 0 0; border-bottom: 0; padding: 30px 22px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .45s var(--ease-out) both }
  .popup::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 99px; background: var(--line-2) }
  .popup-backdrop.closing .popup { animation: sheetDown .22s ease-in forwards }
}
@keyframes sheetUp { from { transform: translateY(100%) } }
@keyframes sheetDown { to { transform: translateY(100%) } }


/* ============================================================
   Practice quizzes
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px }
.chips button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 16px; border-radius: 99px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s }
.chips button:hover { border-color: var(--brand) }
.chips button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand) }
.qz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px }
.qz-card { display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease-out), box-shadow .25s }
@media (hover: hover) { .qz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) } }
.qz-card h2 { font-size: 1.15rem; line-height: 1.3; margin-top: 4px }
.qz-desc { flex: 1 }
.qz-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--ink-2); font-weight: 550 }
.qz-meta span, .qz-best { display: inline-flex; align-items: center; gap: 6px }
.qz-meta .i { color: var(--muted) }
.qz-best { font-size: .86rem; font-weight: 650; color: var(--amber) }
.qz-actions { margin-top: 6px }
.badge.amber { background: var(--amber-soft); color: var(--amber) }
.cards-grid-2 > .reveal:nth-child(2n) { --d: .08s }
.qz-grid > :nth-child(2) { --d: .06s } .qz-grid > :nth-child(3) { --d: .12s } .qz-grid > :nth-child(4) { --d: .18s }

/* timer and "picked" answers in timed tests */
.timer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-variant-numeric: tabular-nums }
.timer.low { background: var(--bad-soft); color: var(--bad); animation: pulse 1s ease-in-out infinite }
.option.picked { border-color: var(--brand); background: var(--brand-soft) }
.option.picked .key { background: var(--brand); color: var(--on-brand) }
.segments span.picked { background: var(--brand) }
@media (max-width: 520px) { .quiz-top { flex-wrap: wrap } }

/* dashboard link card */
.more-quizzes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.more-quizzes h2 { margin-bottom: 2px }

/* admin quiz picker */
.qz-picker { max-height: 340px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 12px; margin: 10px 0 14px; background: var(--surface) }
.qz-pick { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; font-size: .92rem }
.qz-pick:first-child { border-top: 0 }
.qz-pick:hover { background: var(--surface-2) }
.qz-pick input { width: 18px; height: 18px; accent-color: var(--brand); flex: none }
.qz-pick .badge { flex: none }
.qz-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }


/* FAQ accordion: arrow and corners follow the animation */
.faq summary { transition: background-color .15s, border-radius .35s }
.faq details.closing summary { border-radius: 14px }
.faq details.closing summary .i { transform: none }
.faq details[open] p { animation: faqText .5s .08s var(--ease-out) both }
.faq details.closing p { animation: faqTextOut .25s ease-in both }
@keyframes faqText { from { opacity: 0; transform: translateY(-8px) } }
@keyframes faqTextOut { to { opacity: 0; transform: translateY(-6px) } }


/* ============================================================
   UX polish
   ============================================================ */
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
::selection { background: var(--brand-soft); color: var(--ink) }
a, button, summary, .option, .chips button { touch-action: manipulation }   /* no double-tap zoom delay on phones */
main { min-height: 60vh }
main:focus { outline: none }

.skip-link { position: fixed; left: 12px; top: -64px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 18px; border-radius: 10px; font-weight: 700; transition: top .2s var(--ease-out) }
.skip-link:focus { top: 12px; text-decoration: none }

/* bigger touch targets on phones and tablets */
@media (pointer: coarse) {
  .btn.sm { min-height: 42px }
  .menu-item { min-height: 48px }
  .chips button { padding: 10px 18px }
  .faq summary { padding-top: 20px; padding-bottom: 20px }
}

/* bottom tab bar (phones only) */
.tabbar { display: none }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 94%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
    border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)) }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 2px; border-radius: 12px;
    color: var(--muted); font-size: .7rem; font-weight: 650; text-decoration: none; transition: color .15s, background-color .15s }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .tabbar a:hover { text-decoration: none }
  .tabbar a:active { background: var(--surface-2) }
  .tabbar a[aria-current="page"] { color: var(--brand) }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand) }
  .tabbar a[aria-current="page"] .i { animation: tabPop .4s var(--ease-spring) }
  body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)) }
  body.quiz-mode .tabbar { display: none }
  body.quiz-mode.has-tabbar { padding-bottom: 0 }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)) }
  body.quiz-mode .toasts { bottom: 24px }
  /* 16px inputs stop iPhones from zooming in when a field is tapped */
  .input, select.input, textarea.input { font-size: 16px }
  /* the Next button stays reachable on long questions */
  .quiz-actions { position: sticky; bottom: 0; z-index: 2; background: var(--surface); margin-top: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line) }
}
@keyframes tabPop { 40% { transform: translateY(-3px) scale(1.12) } }


/* ============================================================
   Search
   ============================================================ */
.search-btn { gap: 8px; color: var(--muted) }
.search-btn kbd { margin-left: 4px }
body.quiz-mode .search-btn { display: none }
.search-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; align-items: start; justify-items: center; padding: 11vh 16px 16px; background: rgba(10, 12, 24, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .15s ease-out both }
.search { width: min(600px, 100%); max-height: min(580px, 78vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); animation: fadeUp .25s var(--ease-out) both }
.search-field { display: flex; align-items: center; gap: 12px; padding: 4px 10px 4px 18px; border-bottom: 1px solid var(--line); color: var(--muted) }
.search-field input { flex: 1; min-width: 0; min-height: 54px; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; -webkit-appearance: none; appearance: none }
.search-field input::-webkit-search-cancel-button { display: none }
.search-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center }
.search-x:hover { background: var(--surface-2); color: var(--ink) }
.search-list { list-style: none; overflow-y: auto; padding: 8px; flex: 1 }
.search-group { padding: 12px 12px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none }
.search-item:hover { text-decoration: none; background: var(--surface-2) }
.search-item.active { background: var(--brand-soft) }
.si-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); transition: background-color .15s, color .15s }
.search-item.active .si-ico { background: var(--brand); color: var(--on-brand) }
.si-text { min-width: 0; display: grid }
.si-text b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.si-text small { color: var(--muted); font-size: .82rem }
mark { background: var(--amber-soft); color: inherit; border-radius: 3px; padding: 0 1px }
.search-empty { list-style: none; padding: 34px 16px; text-align: center; color: var(--muted) }
.search-empty .i { color: var(--line-2); margin-bottom: 8px }
.search-empty p { margin-bottom: 2px }
.search-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted) }
.search-foot kbd { margin-right: 4px }
.qz-card.flash { animation: flashRing 1.8s ease-out }
@keyframes flashRing { 0%, 55% { box-shadow: 0 0 0 3px var(--brand), var(--shadow-lg) } 100% { box-shadow: var(--shadow) } }
@media (max-width: 700px) {
  .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 6px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 650; cursor: pointer }
  .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
  .tabbar button:active { background: var(--surface-2) }
}
@media (max-width: 560px) {
  .search-backdrop { padding: 0 }
  .search { width: 100%; max-height: none; height: 100%; border: 0; border-radius: 0 }
  .search-foot { display: none }
}


/* ============================================================
   Free courses
   ============================================================ */
.lesson-list { display: grid; gap: 10px }
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .2s var(--ease-out) }
.lesson-row:hover { border-color: var(--brand); text-decoration: none; transform: translateX(3px) }
.lesson-row .ln { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-weight: 700; font-size: .9rem }
.lesson-row .ln.done { background: var(--ok); color: var(--surface) }
.lesson-row .lt { flex: 1; min-width: 0; display: grid }
.lesson-row small { color: var(--muted) }
.lesson-row > .i:last-child { color: var(--muted); flex: none }
.lesson { padding: 28px }
.lesson-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); margin-bottom: 20px }
.lesson-body p { margin-bottom: 16px }
.lesson-body ul { padding-left: 22px; margin-bottom: 16px }
.lesson-body li { margin-bottom: 10px }
.lesson-body .tip { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 12px 16px; color: var(--ink) }
html[lang="kn"] .lesson-body { line-height: 2 }
@media (max-width: 520px) { .lesson { padding: 20px } }
@media (max-width: 1100px) { .nav-link.btn.sm { padding: 0 9px } }

/* admin: lesson editor */
.ls { display: grid; gap: 12px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface-2) }


/* ============================================================
   Thumbnails
   ============================================================ */
.qz-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; background: var(--surface-2) }
.qz-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out) }
.qz-thumb .ph-ico { color: rgba(255, 255, 255, .92) }
.ph0 { background: linear-gradient(135deg, #4f46e5, #8b5cf6) }
.ph1 { background: linear-gradient(135deg, #0ea5e9, #4f46e5) }
.ph2 { background: linear-gradient(135deg, #10b981, #0ea5e9) }
.ph3 { background: linear-gradient(135deg, #f59e0b, #ef4444) }
.ph4 { background: linear-gradient(135deg, #ec4899, #8b5cf6) }
.ph5 { background: linear-gradient(135deg, #14b8a6, #6366f1) }
.card > .qz-thumb:first-child { margin: -24px -24px 14px; border-radius: 15px 15px 0 0 }
@media (max-width: 520px) { .card > .qz-thumb:first-child { margin: -18px -18px 12px } }
@media (hover: hover) { .qz-card:hover .qz-thumb img { transform: scale(1.05) } }

/* admin */
.thumb-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap }
.thumb-prev { width: 192px; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px dashed var(--line-2); background: var(--surface-2); display: grid; place-items: center; overflow: hidden }
.thumb-prev img { width: 100%; height: 100%; object-fit: cover }
.thumb-actions { display: grid; gap: 8px }
.ta-thumb { flex: none; width: 64px; aspect-ratio: 16 / 9; border-radius: 8px; background: var(--surface-2); overflow: hidden }
.ta-thumb img { width: 100%; height: 100%; object-fit: cover; display: block }

/* "Want more practice?" / "Test yourself" cards: the text keeps a sensible width, and on phones everything stacks */
.more-quizzes > div { flex: 1 1 240px; min-width: 0 }
.more-quizzes .feature-icon { flex: none }
@media (max-width: 600px) {
  .more-quizzes { flex-direction: column; align-items: stretch; gap: 14px }
  .more-quizzes > div { flex: none }
  .more-quizzes .feature-icon { align-self: flex-start }
  .more-quizzes .btn { width: 100% }
}


/* ============================================================
   Review, saved questions, study plan
   ============================================================ */
.rv { display: grid; gap: 12px }
.rv-q { font-size: 1.12rem; line-height: 1.45; letter-spacing: 0 }
.rv-opts { list-style: none; display: grid; gap: 8px }
.rv-opts li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) }
.rv-opts li.ok { border-color: var(--ok); background: var(--ok-soft) }
.rv-opts li.bad { border-color: var(--bad); background: var(--bad-soft) }
.rv-opts .k { flex: none; width: 24px; font-weight: 700; color: var(--muted) }
.rv-opts .rv-t { flex: 1; min-width: 0 }
.rv-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: var(--muted) }
.rv-opts li.ok .rv-tag { color: var(--ok) }
.rv-opts li.bad .rv-tag { color: var(--bad) }
.rv-e { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: .93rem }
.review-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px }
.bm.on { color: var(--brand); background: var(--brand-soft) }
.bm.on svg { fill: currentColor }
.study-grid { display: grid; gap: 14px }
.study-item { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.study-item > div:nth-child(2) { flex: 1 1 220px; min-width: 0 }
.study-item .feature-icon { flex: none }
@media (max-width: 600px) { .study-item .btn, .study-item .row { width: 100% } .study-item .row .btn { flex: 1 } }


/* homepage: mock test categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px }
.cat-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); transition: transform .25s var(--ease-out), border-color .15s, box-shadow .25s }
.cat-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg) }
.cat-card > .i:last-child { flex: none; color: var(--muted) }
.cat-ico { flex: none; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff }
.cat-text { flex: 1; min-width: 0; display: grid }
.cat-text b { font-size: 1.05rem }
.cat-text small { color: var(--muted); font-size: .84rem }


/* exam cards on the homepage: clickable, with a mock test count */
a.exam-item { color: inherit; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); transition: transform .25s var(--ease-out), border-color .15s, box-shadow .25s }
a.exam-item:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow-lg) }
a.exam-item:hover h3 { color: var(--brand) }
.exam-count { display: inline-block; margin-top: 8px; font-size: .84rem; font-weight: 700; color: var(--brand) }
.exam-count:empty { display: none }


/* ============================================================
   Admin: left sidebar + one section at a time
   ============================================================ */
.admin-main { max-width: 1280px }
.adm { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start }
.adm-side { position: sticky; top: 84px; display: grid; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.adm-side .eyebrow { padding: 6px 12px 8px }
.adm-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .94rem; transition: background-color .15s, color .15s }
.adm-link:hover { background: var(--surface-2); text-decoration: none }
.adm-link[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong) }
.adm-link .i { flex: none }
.adm-link .cnt { margin-left: auto; min-width: 26px; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; text-align: center }
.adm-link .cnt:empty { display: none }
.adm-link[aria-current="page"] .cnt { background: var(--surface); color: var(--brand-strong) }
.adm-sep { height: 1px; margin: 8px 6px; background: var(--line) }
.adm-main { min-width: 0 }
.adm-sec { display: grid; gap: 20px; align-content: start; animation: fadeUp .3s var(--ease-out) both }
.adm-sec[hidden] { display: none }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; gap: 16px }
  .adm-side { position: sticky; top: 56px; z-index: 15; display: flex; gap: 6px; margin: 0 -20px; padding: 8px 12px; overflow-x: auto; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none }
  .adm-side::-webkit-scrollbar { display: none }
  .adm-side .eyebrow, .adm-sep { display: none }
  .adm-link { flex: none; min-height: 40px; padding: 0 14px; white-space: nowrap }
  .adm-link .cnt { margin-left: 2px }
}


/* dashboard: overall progress and analysis */
.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px }
.insight-list { list-style: none; display: grid; gap: 16px }
.insight-list li { display: flex; gap: 14px; align-items: flex-start }
.insight-list .feature-icon { flex: none }
.insight-list li > span:last-child { padding-top: 8px; color: var(--ink-2) }
.list .sub { display: block; color: var(--muted); font-size: .82rem; font-weight: 500 }


/* custom dropdown (see common.js) */
.dd { position: relative; display: block }
.dd-native { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink) }
.dd-btn .dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.dd-btn .dd-label.placeholder { color: var(--muted) }
.dd-btn svg { flex: none; color: var(--muted); transition: transform .2s var(--ease-out) }
.dd.open .dd-btn { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
.dd.open .dd-btn svg { transform: rotate(180deg) }
.dd-btn:disabled { opacity: .6; cursor: not-allowed }
.dd-menu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 100%; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top; transition: opacity .15s, transform .18s var(--ease-out), visibility .15s }
.dd.up .dd-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; transform: translateY(6px) scale(.98) }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none }
.dd-menu li { padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: .95rem; color: var(--ink-2); white-space: nowrap; transition: background-color .12s }
.dd-menu li:hover { background: var(--surface-2) }
.dd-menu li[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700 }


/* ============================================================
   Admin polish
   ============================================================ */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap }
.adm-head h1 { font-size: 1.7rem; letter-spacing: -.02em; margin: 2px 0 4px }
.adm-head p { max-width: 60ch }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px }
.quick-item { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow); transition: transform .18s var(--ease-out), border-color .15s, box-shadow .15s }
.quick-item:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 24px -14px rgba(79, 70, 229, .5) }
.quick-item .i { color: var(--brand); margin-bottom: 4px }
.quick-item span { color: var(--muted); font-size: .84rem }
.attn { list-style: none; display: grid; gap: 10px }
.attn li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2) }
.attn li > span:nth-child(2) { flex: 1; min-width: 0 }
.attn .attn-i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong) }
.attn li.warn { background: var(--amber-soft) }
.attn li.warn .attn-i { background: rgba(0, 0, 0, .06); color: var(--amber) }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line) }
.pager .btn[disabled] { opacity: .45; cursor: not-allowed }
table.sticky-head th { position: sticky; top: 0; z-index: 1 }
.table-wrap tbody tr { transition: background-color .12s }
.table-wrap tbody tr:hover { background: var(--surface-2) }
.cfm-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(10, 12, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .2s ease-out both }
.cfm { width: min(420px, 100%); padding: 28px 24px 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: popupIn .35s var(--ease-spring) both }
.cfm-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--bad-soft, rgba(220, 38, 38, .12)); color: var(--bad) }
.cfm h2 { font-size: 1.2rem; margin-bottom: 6px }
.cfm p { color: var(--ink-2) }
.cfm .hint { margin-top: 8px; font-size: .86rem }
.cfm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px }
.btn.danger { background: var(--bad); color: #fff; border-color: transparent }
.btn.danger:hover { filter: brightness(.92) }
@media (max-width: 900px) {
  .quick { grid-template-columns: repeat(2, 1fr) }
  .adm-head h1 { font-size: 1.45rem }
}
@media (max-width: 480px) { .pager { justify-content: center } }


/* dashboard: today's plan */
.plan { list-style: none; display: grid; gap: 10px }
.plan li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2) }
.plan-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong) }
.plan-t { flex: 1; min-width: 0; display: grid; gap: 2px }
.plan-t span { color: var(--muted); font-size: .86rem }
.plan li.ok .plan-i { background: var(--ok-soft, #e6f6ec); color: var(--ok) }
.plan li.ok .plan-t b { text-decoration: line-through; color: var(--muted) }
@media (max-width: 520px) { .plan li { flex-wrap: wrap } .plan li .btn { margin-left: 54px } }


/* home: install app card */
.install { display: flex; align-items: center; gap: 16px; max-width: 1120px; margin: 24px auto; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.install[hidden] { display: none }
.install .feature-icon { flex: none }
.install-t { flex: 1; min-width: 0 }
.install-t h2 { font-size: 1.05rem; margin-bottom: 2px }
.install-t p { color: var(--muted); font-size: .92rem }
@media (max-width: 640px) { .install { flex-wrap: wrap; margin: 20px 16px } .install .btn { width: 100% } }


/* long questions: a passage followed by the question */
.question.long { font-size: 1rem; font-weight: 500; line-height: 1.75; letter-spacing: 0; max-height: min(52vh, 420px); overflow-y: auto; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; overscroll-behavior: contain }
.question.long p { margin: 0 0 .8em; overflow-wrap: anywhere }
.question.long p:last-child { margin-bottom: 0 }
.question.long .q-ask { font-weight: 700; font-size: 1.08rem; color: var(--ink) }
.rv-q.long { font-size: 1rem; font-weight: 500; line-height: 1.7 }
.rv-q.long p { margin: 0 0 .7em } .rv-q.long .q-ask { font-weight: 700 }
.q-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line }
.options .opt, .options button { overflow-wrap: anywhere }


/* ============================================================
   Admin: nicer checkboxes, switches and the mock test manager
   ============================================================ */
input[type="checkbox"]:not([hidden]) { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface) center / 14px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s }
input[type="checkbox"]:not([hidden]):hover { border-color: var(--brand) }
input[type="checkbox"]:not([hidden]):checked { background-color: var(--brand); border-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") }
input[type="checkbox"]:not([hidden]):focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--brand-soft) }

.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-2) }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px }
.switch-ui { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--line-2); transition: background-color .2s }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-out) }
.switch input:checked + .switch-ui { background: var(--ok) }
.switch input:checked + .switch-ui::after { transform: translateX(16px) }
.switch input:focus-visible + .switch-ui { box-shadow: 0 0 0 3px var(--brand-soft) }
.switch-t { min-width: 22px }

.pill-check input { position: absolute; opacity: 0; width: 1px; height: 1px }
.pill-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: .88rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s }
.pill-check span:hover { border-color: var(--brand) }
.pill-check input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong) }
.pill-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-soft) }

.mt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px }
.mt-head > div { flex: 1; min-width: 240px }
.mt-head p { max-width: 62ch; margin-top: 4px }
.mt-list { display: grid; gap: 10px }
.mt-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s }
.mt-card:hover { border-color: var(--line-2); box-shadow: var(--shadow) }
.mt-card.editing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
.mt-card.inactive .mt-info { opacity: .55 }
.mt-card .ta-thumb { width: 84px }
.mt-info { flex: 1; min-width: 0; display: grid; gap: 6px }
.mt-info b { font-size: 1rem }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 600 }
.chip .i { color: var(--muted) }
.chip.ok { background: var(--brand-soft); color: var(--brand-strong) }
.mt-actions { display: flex; align-items: center; gap: 10px; flex: none }

.mt-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 18px; animation: fadeUp .3s var(--ease-out) both }
.mt-form[hidden] { display: none }
.mt-sec { display: grid; gap: 14px; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2) }
.mt-sec legend { display: flex; align-items: center; gap: 10px; padding: 0 8px; margin-left: -8px; font-weight: 700; font-size: 1rem }
.mt-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700 }
.mt-sec .input { background: var(--surface) }
.mt-pick-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap }
.count-pill { display: inline-block; min-width: 28px; padding: 2px 10px; border-radius: 99px; background: var(--brand); color: #fff; text-align: center; font-size: .9rem }
.mt-sec .qz-picker { margin: 0; max-height: 380px; border-radius: 14px; scrollbar-width: thin }
.qz-pick { align-items: flex-start; padding: 12px 14px; transition: background-color .12s }
.qz-pick .badge { margin-top: 1px }
.qz-pick .qz-q { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.qz-pick:has(input:checked) { background: var(--brand-soft) }
.qz-pick input { margin-top: 1px }
.mt-save { display: flex; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--surface) 70%, transparent) }

@media (max-width: 720px) {
  .mt-card { flex-wrap: wrap }
  .mt-card .ta-thumb { width: 72px }
  .mt-actions { width: 100%; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line) }
  .mt-form .grid-2 { grid-template-columns: 1fr }
  .mt-sec { padding: 14px }
  .mt-save .btn { flex: 1 }
  .mt-head .btn { width: 100% }
}

.mt-sub { color: var(--ink-2); font-size: .9rem; line-height: 1.45 }
.mt-card > .mt-info:first-child { padding-left: 4px }
.mt-card:has(.ta-thumb) > .mt-info:first-child { padding-left: 0 }


/* home: install the app section */
.app-sec { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center }
.app-install { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px }
.app-how { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px }
.app-how > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px }
.app-how h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 8px }
.app-how h3 .i { color: var(--brand) }
.app-how ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .92rem; line-height: 1.7 }
.app-visual { display: grid; place-items: center }
.app-home { display: grid; align-content: center; min-height: 460px; background: linear-gradient(160deg, #c7d2fe, #fbcfe8) }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 14px; justify-items: center }
.app-ico { width: 64px; height: 64px; border-radius: 16px; opacity: .85; box-shadow: 0 4px 10px rgba(15, 23, 42, .12) }
.app-ico.me { position: relative; display: grid; opacity: 1; background: none; box-shadow: none; animation: appPop 2.8s var(--ease-spring) infinite }
.app-ico.me img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 22px -6px rgba(79, 70, 229, .7), 0 0 0 3px #fff }
.app-ico.me i { position: absolute; top: 72px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 700; color: #1e1b4b; white-space: nowrap }
@keyframes appPop { 0%, 60%, 100% { transform: scale(1) } 75% { transform: scale(1.12) } }
@media (prefers-reduced-motion: reduce) { .app-ico.me { animation: none } }
@media (max-width: 900px) {
  .app-sec { grid-template-columns: 1fr; gap: 32px }
  .app-visual { order: -1 }
  .app-home { min-height: 380px }
}
@media (max-width: 560px) { .app-how { grid-template-columns: 1fr } }


/* preloader: shown once per visit, then the page fades in */
#preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg, #f6f7fb); transition: opacity .4s ease, visibility .4s }
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none }
.pl-box { display: grid; justify-items: center; gap: 16px }
.pl-mark { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 16px 36px -12px rgba(79, 70, 229, .65); animation: plPulse 1.6s ease-in-out infinite }
.pl-tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: plDraw 1.2s .1s ease-out infinite }
.pl-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink, #111827) }
.pl-name b { color: var(--brand, #4f46e5) }
.pl-bar { position: relative; width: 120px; height: 4px; border-radius: 99px; background: var(--line, #e5e7eb); overflow: hidden }
.pl-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: 99px; background: var(--brand, #4f46e5); animation: plSlide 1.1s ease-in-out infinite }
@keyframes plPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }
@keyframes plDraw { 0% { stroke-dashoffset: 24 } 55%, 100% { stroke-dashoffset: 0 } }
@keyframes plSlide { 0% { transform: translateX(-100%) } 100% { transform: translateX(300%) } }
@media (prefers-reduced-motion: reduce) { .pl-mark, .pl-tick, .pl-bar i { animation: none } .pl-tick { stroke-dashoffset: 0 } .pl-bar i { width: 100% } }


/* ============================================================
   Responsive system: one page width that grows with the screen, plus fixes for very small and very large displays
   ============================================================ */
:root { --page: 1040px }
@media (min-width: 1200px) { :root { --page: 1160px } }
@media (min-width: 1500px) { :root { --page: 1280px } html { font-size: 17px } }
@media (min-width: 1900px) { :root { --page: 1440px } html { font-size: 18px } }
@media (min-width: 2500px) { :root { --page: 1680px } html { font-size: 20px } }

.bar, main, .foot, .foot-bottom { max-width: var(--page) }
.band-inner { max-width: calc(var(--page) - 40px) }
.install { max-width: var(--page) }
.admin-main { max-width: calc(var(--page) + 240px) }
.ticker-label { padding-left: max(16px, calc((100vw - var(--page)) / 2 + 20px)) }

body { min-height: 100vh; min-height: 100dvh }
html { scroll-padding-top: 96px }
img, video, canvas { max-width: 100%; height: auto }
h1, h2, h3, h4, p, li, td, th, .card, .badge { overflow-wrap: break-word }
.table-wrap { -webkit-overflow-scrolling: touch }

/* tablets */
@media (min-width: 701px) and (max-width: 1024px) {
  main { padding-left: 24px; padding-right: 24px }
  .stats { grid-template-columns: repeat(4, 1fr) }
}

/* small phones */
@media (max-width: 380px) {
  .bar { padding-left: 12px; padding-right: 12px }
  main { padding: 20px 14px 56px }
  .card { padding: 16px }
  .stats { gap: 10px }
  .stat { padding: 14px }
  .stat .value { font-size: 1.5rem }
  .hero-ctas { flex-direction: column; align-items: stretch }
  .hero-ctas .btn { width: 100% }
  .btn.lg { padding-left: 18px; padding-right: 18px }
  .option { padding: 10px 12px; gap: 10px }
}

/* phones held sideways: use the little height there is */
@media (max-height: 480px) and (orientation: landscape) {
  main { padding-top: 16px }
  .band { padding-top: 40px; padding-bottom: 40px; margin-top: 40px }
  .section.split { padding-top: 40px }
  .popup-backdrop, .cfm-back { align-items: start; overflow-y: auto }
  .popup { max-height: none }
}

/* big screens: let long sections breathe */
@media (min-width: 1500px) {
  .hero2 h1 { font-size: clamp(2.6rem, 3.4vw, 3.6rem) }
  .split { gap: 80px }
}


/* Kannada font: Anek Kannada, free for commercial use (SIL Open Font License, see fonts/OFL.txt) */
@font-face {
  font-family: "AnekKN";
  src: url("fonts/AnekKannada.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0C80-0CFF, U+0964-0965, U+200C-200D, U+25CC;
}
[lang="kn"], html[lang="kn"] button, html[lang="kn"] input, html[lang="kn"] textarea, html[lang="kn"] select { font-family: "AnekKN", var(--font) }
html[lang="kn"] body { font-size: 1.02rem }
html[lang="kn"] .btn, html[lang="kn"] .nav-link { font-weight: 700; letter-spacing: 0 }
html[lang="kn"] .option { line-height: 1.55 }


/* an element marked hidden must stay hidden even when a class gives it a display value (this was keeping buttons visible) */
[hidden] { display: none !important }
.app-how.flash > div { animation: flashRing 1.8s ease-out }

/* plan card on phones: icon and text on top, the button underneath, so the text gets the full width */
@media (max-width: 600px) {
  .plan li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 14px }
  .plan li .btn { grid-column: 2; justify-self: start; margin: 8px 0 0; min-height: 44px; padding: 0 20px }
  .plan-t b { line-height: 1.35 }
}

/* the longer "Free Courses" label must fit the phone tab bar */
.tabbar a, .tabbar button { min-width: 0 }
.tabbar a span, .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tabbar a span, .tabbar button span { white-space: normal; text-overflow: clip; line-height: 1.1; text-align: center; font-size: .7rem }

.chip.warn { background: var(--amber-soft); color: var(--amber) }
.chip.warn .i { color: var(--amber) }
.count-pill.low { background: var(--amber); }


/* report a question */
.fb-tools { margin-top: 10px }
.report-form { text-align: left }
.report-form .cfm-icon { margin-left: 0 }
.rp-list { display: grid; gap: 8px; margin: 14px 0 12px }
.rp-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s }
.rp-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft) }
.rp-opt input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; flex: none; margin: 0 }
.rp-opt input:checked { border-color: var(--brand); background: radial-gradient(var(--brand) 45%, transparent 50%) }
.rp-items { list-style: none; display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); margin-top: 4px }


/* exam countdown and badges */
.countdown { display: flex; align-items: center; gap: 22px; flex-wrap: wrap }
.cd-num { display: grid; justify-items: center; min-width: 110px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff }
.cd-num b { font-size: 2.6rem; line-height: 1; font-weight: 800; letter-spacing: -.03em }
.cd-num span { font-size: .8rem; font-weight: 600; opacity: .9 }
.cd-t { flex: 1; min-width: 200px; display: grid; gap: 2px }
.cd-t h2 { font-size: 1.2rem }
.cd-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end }
.cd-form .form-error, .cd-actions { grid-column: 1 / -1 }
.cd-actions { display: flex; gap: 10px; flex-wrap: wrap }
@media (max-width: 600px) { .cd-form { grid-template-columns: 1fr } .countdown .btn { width: 100% } }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px }
.bdg { display: grid; justify-items: center; gap: 6px; padding: 16px 12px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); color: var(--muted) }
.bdg b { font-size: .92rem; color: var(--ink-2) }
.bdg small { font-size: .78rem; line-height: 1.35 }
.bdg-i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface); color: var(--muted) }
.bdg.on { background: var(--brand-soft); border-color: transparent; color: var(--ink-2) }
.bdg.on .bdg-i { background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7) }
.bdg.on b { color: var(--ink) }
.bdg-bar { display: block; width: 80%; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden }
.bdg-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px }

.backup-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.backup-card .feature-icon { flex: none }


/* reading passage shown above a comprehension question */
.passage { max-height: min(42vh, 360px); overflow-y: auto; margin: 12px 0 14px; padding: 14px 16px 6px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; background: var(--surface-2); line-height: 1.75; overscroll-behavior: contain }
.passage p { margin: 0 0 .8em; overflow-wrap: anywhere }
.passage-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong) }
.stack-form { display: grid; gap: 12px }


/* an open/close panel with the same smooth glide as the FAQ (see common.js) */
details.anim > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; -webkit-user-select: none; padding: 6px 0; font-weight: 700 }
details.anim > summary::-webkit-details-marker { display: none }
details.anim > summary .i { transition: transform .3s var(--ease-out) }
details.anim[open] > summary .i { transform: rotate(90deg) }
details.anim.closing > summary .i { transform: rotate(0) }
details.anim > p { margin: 6px 0 4px; padding-left: 24px; color: var(--ink-2); white-space: pre-line }
details.anim[open]:not(.closing) > p { animation: fadeUp .4s var(--ease-out) both }


/* ============================================================
   Home page: exam marquee, numbers, feature grid with small animations
   ============================================================ */
.hero2 { position: relative }
.hero2::before { content: ""; position: absolute; z-index: -1; left: -8%; top: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 68%); animation: heroGlow 12s ease-in-out infinite alternate }
@keyframes heroGlow { to { transform: translate(14%, 8%) scale(1.15) } }

.marq { margin: 40px calc(50% - 50vw) 0; padding: 18px 0; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent) }
.marq-track { display: flex; gap: 14px; width: max-content; animation: marq 46s linear infinite }
.marq:hover .marq-track { animation-play-state: paused }
.marq-chip { flex: none; padding: 8px 18px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--ink-2); white-space: nowrap }
@keyframes marq { to { transform: translateX(-50%) } }


#sec-features { padding-top: 84px }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.bn { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s, border-color .2s }
.bn.w2 { grid-column: span 2 }
.bn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 40%, rgba(139, 92, 246, .14) 50%, transparent 60%); transform: translateX(-120%); pointer-events: none }
@media (hover: hover) { .bn:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow-lg) } .bn:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-out) } .bn:hover .feature-icon { transform: rotate(-8deg) scale(1.08) } }
.bn .feature-icon { margin-bottom: 8px; transition: transform .35s var(--ease-spring) }
.bn h3 { font-size: 1.15rem }
.bn p { color: var(--muted); font-size: .95rem; line-height: 1.55 }
.bn .link { margin-top: 8px; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-weight: 700 }
.bn-vis { min-height: 120px; margin-bottom: 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); display: grid; align-content: center; gap: 10px; position: relative }

/* smart practice: bars fill by topic */
.vb { display: grid; grid-template-columns: 96px 1fr 44px; gap: 12px; align-items: center; font-size: .86rem; font-weight: 600 }
.vb .track { height: 9px; background: var(--surface); border-radius: 99px; overflow: hidden }
.vb i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--ok) }
.vb i.mid { background: var(--amber) } .vb i.low { background: var(--bad) }
.bn.in .vb i { animation: fillBar 1.2s var(--ease-out) calc(.3s + var(--i) * .18s) both }
@keyframes fillBar { from { width: 0 } to { width: var(--w) } }
.vb b { text-align: right; font-variant-numeric: tabular-nums }

/* timed test: a ring that keeps counting down */
.v-ring { justify-items: center }
.v-ring svg { width: 96px; height: 96px; transform: rotate(-90deg) }
.v-ring circle { fill: none; stroke-width: 10 }
.v-ring .r0 { stroke: var(--surface) }
.v-ring .r1 { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; animation: ringDown 6s linear infinite }
.v-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; letter-spacing: -.03em }
@keyframes ringDown { from { stroke-dashoffset: 0 } to { stroke-dashoffset: 100 } }

/* streak: flame pulses, badges pop one by one */
.v-streak { display: flex; align-items: center; justify-content: center; gap: 12px }
.v-streak .fl { color: var(--amber); animation: flame 1.6s ease-in-out infinite; transform-origin: 50% 90% }
.v-streak .bg { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; animation: badgePop 3.6s var(--ease-spring) infinite }
.v-streak .b2 { animation-delay: .5s } .v-streak .b3 { animation-delay: 1s }
@keyframes flame { 0%, 100% { transform: scale(1) rotate(-3deg) } 50% { transform: scale(1.18) rotate(3deg) } }
@keyframes badgePop { 0%, 8% { transform: scale(0); opacity: 0 } 20%, 80% { transform: scale(1); opacity: 1 } 95%, 100% { transform: scale(0); opacity: 0 } }

/* languages: the question swaps between English and Kannada while a toggle slides */
.v-lang { gap: 14px }
.v-lang .qs { position: relative; height: 62px; font-weight: 800; font-size: 1.1rem; line-height: 1.35 }
.v-lang .qs span { position: absolute; inset: 0; animation: swapA 6s ease-in-out infinite }
.v-lang .qs .q-kn { animation-name: swapB }
@keyframes swapA { 0%, 42% { opacity: 1; transform: none } 50%, 92% { opacity: 0; transform: translateY(-10px) } 100% { opacity: 1; transform: none } }
@keyframes swapB { 0%, 42% { opacity: 0; transform: translateY(10px) } 50%, 92% { opacity: 1; transform: none } 100% { opacity: 0; transform: translateY(10px) } }
.v-lang .tg { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 190px; padding: 4px; border-radius: 99px; background: var(--surface); font-weight: 700; font-size: .86rem; text-align: center }
.v-lang .tg span { position: relative; z-index: 1; padding: 6px 0 }
.v-lang .tg i { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 99px; background: linear-gradient(135deg, var(--brand), #8b5cf6); animation: slideTg 6s ease-in-out infinite }
.v-lang .tg span:nth-of-type(1) { animation: tgA 6s ease-in-out infinite } .v-lang .tg span:nth-of-type(2) { animation: tgB 6s ease-in-out infinite }
@keyframes slideTg { 0%, 42% { transform: none } 50%, 92% { transform: translateX(100%) } 100% { transform: none } }
@keyframes tgA { 0%, 42% { color: #fff } 50%, 92% { color: var(--ink-2) } 100% { color: #fff } }
@keyframes tgB { 0%, 42% { color: var(--ink-2) } 50%, 92% { color: #fff } 100% { color: var(--ink-2) } }

/* paid tasks: the progress bar fills up and the rupee amount pops */
.v-earn .tk { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700 }
.v-earn .tk b { padding: 4px 14px; border-radius: 99px; background: var(--ok); color: #fff; animation: rupee 3.4s var(--ease-spring) infinite }
.v-earn .track { height: 12px; border-radius: 99px; background: var(--surface); overflow: hidden }
.v-earn .track i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand), #8b5cf6); animation: taskBar 3.4s ease-in-out infinite }
@keyframes taskBar { 0% { width: 0 } 70%, 100% { width: 100% } }
@keyframes rupee { 0%, 66% { transform: scale(1) } 74% { transform: scale(1.25) } 86%, 100% { transform: scale(1) } }

@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr } .bn.w2 { grid-column: span 2 } #sec-features { padding-top: 60px } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr } .bn.w2 { grid-column: auto } .vb { grid-template-columns: 78px 1fr 40px } }


/* ============================================================
   Phones, iPads and tablets: no sideways scrolling anywhere, comfortable touch targets
   ============================================================ */
html, body { max-width: 100% }
.adm-sec > *, .adm-main > *, main > * { min-width: 0 }
.quick { grid-template-columns: repeat(2, minmax(0, 1fr)) }
@media (min-width: 901px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
@media (max-width: 480px) { .quick { grid-template-columns: minmax(0, 1fr) } .adm-head { align-items: flex-start } }
.segmented { max-width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch }
.segmented::-webkit-scrollbar { display: none }
.segmented button { flex: none }
.table-wrap { max-width: 100% }
pre, code { overflow-wrap: anywhere; white-space: pre-wrap }

/* touch screens (phones, iPads): bigger tap targets, no sticky hover, and pages that clear the iPhone home bar */
@media (pointer: coarse) {
  .btn { min-height: 46px }
  .btn.sm { min-height: 42px }
  .btn.icon { min-width: 44px; min-height: 44px }
  .nav-link, .menu-item { min-height: 46px }
  .check, .rp-opt, .qz-pick { min-height: 44px }
  .faq summary, details.anim > summary { min-height: 46px }
  .chips button, .pill-check span { min-height: 42px }
  input[type="checkbox"]:not([hidden]) { width: 24px; height: 24px }
  .dd-menu li { padding: 13px 14px }
}
@media (max-width: 1100px) { main { padding-left: 24px; padding-right: 24px } }
@media (max-width: 480px) { main { padding-left: 16px; padding-right: 16px } }

/* iPad held sideways and small laptops */
@media (min-width: 901px) and (max-width: 1180px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px }
  .hero2 { gap: 28px }
  .exam-grid { grid-template-columns: repeat(2, 1fr) }
}
/* iPad held upright */
@media (min-width: 601px) and (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; text-align: center }
  .hero2 .hero-copy { max-width: 640px; margin: 0 auto }
  .hero-ctas, .trust { justify-content: center }
  .hero-visual { margin: 12px auto 0 }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)) }
  .grid-2 { grid-template-columns: 1fr 1fr }
}

@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr) }
  .adm-side { min-width: 0; margin-left: -24px; margin-right: -24px }
}
@media (max-width: 480px) { .adm-side { margin-left: -16px; margin-right: -16px } }

/* visually hidden labels inside scrolling tables must stay inside them, or they stretch the page sideways on phones */
.table-wrap { position: relative }

/* header on phones: show the whole language name (it was cut to one letter), and keep the buttons from squeezing each other */
.lang-btn { flex: none; white-space: nowrap }
.lang-btn span { font-size: .9rem }
.site-header .nav > * { flex: none }
@media (max-width: 380px) { .lang-btn { padding: 0 6px } .lang-btn span { font-size: .8rem } .site-header .nav { gap: 2px } .site-header .btn.sm { padding: 0 12px } }
/* the ticker label on phones is just a dot; keep its edge fade from hiding the first words */
@media (max-width: 560px) { .ticker-label { box-shadow: none } }

/* the soft glow behind the home headline must stay inside the hero, so it can never fade over the updates bar above it */
.hero2 { isolation: isolate }
.hero2::before { top: 0; left: -10%; width: min(60%, 520px); z-index: -1; pointer-events: none }
.ticker { z-index: 3 }
.ticker-label { box-shadow: none }

.qz-by { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .88rem; color: var(--muted) }
.qz-by .i { flex: none }
.qz-by b { color: var(--ink-2); font-weight: 700 }


/* smarter dashboard: readiness, next best step, how hard a question is */
.ready-body { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 4px }
.ready-num { display: flex; align-items: baseline; justify-content: center; min-width: 120px; padding: 14px 18px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), #8b5cf6); color: #fff }
.ready-num b { font-size: 3rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums }
.ready-num span { font-size: 1.3rem; font-weight: 700 }
.ready-bars { flex: 1; min-width: 220px }
.next-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft); border: 1px solid transparent }
.next-step .plan-i { background: var(--surface); color: var(--brand-strong) }
.next-step small { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong) }
@media (max-width: 600px) { .next-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px } .next-step .btn { grid-column: 2; justify-self: start; margin-top: 8px } .ready-body { gap: 16px } }
.fb-pct { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .88rem; font-weight: 700; color: var(--muted) }


/* exam-style test screen: question palette, mark for review, sticky timer */
.quiz-top { gap: 10px }
.pal-btn { gap: 6px; font-variant-numeric: tabular-nums }
.pal { margin: 12px 0 }
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px }
.pal-cell { position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s }
.pal-cell:active { transform: scale(.94) }
.pal-cell.done { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong) }
.pal-cell.marked { border-color: var(--amber); background: var(--amber-soft); color: var(--amber) }
.pal-cell.marked.done { background: linear-gradient(135deg, var(--brand-soft), var(--amber-soft)) }
.pal-cell.now { box-shadow: 0 0 0 3px var(--brand-soft); border-color: var(--brand) }
.pal-cell .i { position: absolute; top: 3px; right: 3px }
.pal-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .82rem; color: var(--muted); font-weight: 600 }
.pal-key span { display: inline-flex; align-items: center; gap: 6px }
.pal-key .k { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface) }
.pal-key .k.done { background: var(--brand-soft); border-color: var(--brand) }
.pal-key .k.marked { background: var(--amber-soft); border-color: var(--amber) }
.mark-btn.on { color: var(--amber); background: var(--amber-soft) }
.timer.warn { color: var(--amber) }
.timer.low { animation: timerPulse 1s ease-in-out infinite }
@keyframes timerPulse { 50% { transform: scale(1.08) } }
.sub-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 }
.sub-sum > div { display: grid; gap: 2px; padding: 12px 6px; border-radius: 14px; background: var(--surface-2) }
.sub-sum b { font-size: 1.7rem; line-height: 1 }
.sub-sum span { font-size: .76rem; font-weight: 600; color: var(--muted) }
.sub-sum .warn { background: var(--amber-soft) } .sub-sum .warn b { color: var(--amber) }
@media (max-width: 900px) { body.quiz-mode .quiz-top { position: sticky; top: 0; z-index: 9; background: var(--bg); padding: 8px 0; margin-top: -8px } }


/* dashboard tabs, pinned next step, welcome */
.dash-tabs { width: 100%; justify-content: stretch }
.dash-tabs button { flex: 1; justify-content: center; gap: 8px }
.tab-pane { animation: fadeUp .3s var(--ease-out) both }
.next-card { padding: 14px; border-color: var(--brand) }
.next-card .next-step { background: transparent; padding: 0 }
.resume-card { border-color: var(--amber) }
.wel { text-align: left; width: min(460px, 100%) }
.wel-dots { display: flex; gap: 6px; margin-bottom: 14px }
.wel-dots i { width: 28px; height: 5px; border-radius: 99px; background: var(--line-2); transition: background-color .3s }
.wel-dots i.on { background: var(--brand) }
.wel h2 { margin-bottom: 6px }
.wel-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px }
.wel-chips .chips-b { padding: 10px 18px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; font-size: .95rem; transition: border-color .15s, background-color .15s }
.wel-chips .chips-b.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong) }
@media (max-width: 480px) { .dash-tabs button span { display: none } .dash-tabs button[aria-selected="true"] span { display: inline } }


/* results: how you compare, streak celebration, prominent share */
.res-lines { list-style: none; display: grid; gap: 8px; margin: 12px 0 }
.res-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); font-weight: 600 }
.res-lines .i { flex: none; margin-top: 3px; color: var(--brand) }
.streak-banner { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 8px 14px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-weight: 800; animation: badgePopIn .6s var(--ease-spring) both }
@keyframes badgePopIn { from { transform: scale(.6); opacity: 0 } }
.share-cta { box-shadow: 0 10px 26px -10px rgba(79, 70, 229, .6) }


/* "New" markers, text size, nicer empty states, admin charts and bulk actions */
.avatar-btn { position: relative }
.new-dot { position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); animation: dotPulse 2s ease-in-out infinite }
@keyframes dotPulse { 50% { transform: scale(1.25) } }
.tag-new { margin-left: auto; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase }

html[data-fs="1"] { font-size: 112.5% }
html[data-fs="2"] { font-size: 125% }
.fs-ctl { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .86rem; color: var(--ink-2) }
.fs-ctl span { margin-right: auto }
.fs-b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 800; cursor: pointer; color: var(--ink-2) }
.fs-b.fs-0 { font-size: .82rem } .fs-b.fs-1 { font-size: 1rem } .fs-b.fs-2 { font-size: 1.2rem }
.fs-b[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff }
.foot-brand .fs-ctl { margin-top: 12px; max-width: 260px }

.empty-state > .i:first-child { box-sizing: content-box; padding: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); stroke-width: 1.6; animation: emptyFloat 3.6s ease-in-out infinite }
@keyframes emptyFloat { 50% { transform: translateY(-6px) } }

.adm-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px }
.adm-chart { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2) }
.adm-chart h3 { font-size: .95rem }
.adm-chart .chart { height: 110px; margin-top: 10px }
@media (max-width: 1100px) { .adm-charts { grid-template-columns: 1fr } }
.bulk-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--brand) }
tr.sel td { background: var(--brand-soft) }


/* notifications bell */
.bell-wrap { position: relative }
.bell-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); cursor: pointer }
.bell-btn:hover { background: var(--surface-2) }
.bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-style: normal; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--surface); box-sizing: content-box }
.bell-panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: -60px; width: min(370px, 92vw); max-height: min(70vh, 460px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(15, 23, 42, .22); animation: fadeUp .22s var(--ease-out) both }
.bell-head { padding: 14px 16px; border-bottom: 1px solid var(--line) }
.bell-panel ul { list-style: none }
.bell-panel li a { display: grid; gap: 3px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.4 }
.bell-panel li a:hover { background: var(--surface-2); text-decoration: none }
.bell-panel li.unread a { background: var(--brand-soft) }
.bell-panel li small { color: var(--muted); font-weight: 600 }
.bell-empty { padding: 22px 16px; color: var(--muted); font-size: .92rem; text-align: center }
@media (max-width: 600px) { .bell-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto } }


/* date picker */
.dp-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; color: var(--ink) }
.dp-btn.empty { color: var(--muted) }
.dp-btn svg { flex: none; color: var(--muted) }
.dp { position: fixed; z-index: 120; width: 308px; max-width: calc(100vw - 16px); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 44px rgba(15, 23, 42, .24); animation: fadeUp .2s var(--ease-out) both }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px }
.dp-head b { font-size: 1rem }
.dp-nav { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); cursor: pointer }
.dp-nav:hover { background: var(--brand-soft); color: var(--brand-strong) }
.dp-wk, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center }
.dp-wk span { padding: 6px 0; font-size: .74rem; font-weight: 700; color: var(--muted) }
.dp-d { aspect-ratio: 1; min-height: 38px; border: 0; border-radius: 12px; background: none; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer }
.dp-d:hover:not(:disabled) { background: var(--brand-soft) }
.dp-d.today { box-shadow: inset 0 0 0 1.5px var(--brand) }
.dp-d.sel { background: var(--brand); color: #fff }
.dp-d:disabled { color: var(--muted); opacity: .4; cursor: not-allowed }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line) }
.dp-link { border: 0; background: none; color: var(--brand-strong); font-weight: 700; padding: 8px 6px; cursor: pointer; border-radius: 8px }
.dp-link:disabled { opacity: .4; cursor: not-allowed }


/* audio capsules */
.aud-list { display: grid; gap: 12px; margin-top: 16px }
.aud { display: flex; gap: 14px; align-items: center; padding: 16px; transition: border-color .2s, box-shadow .2s }
.aud.playing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
.aud-play { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; transition: transform .15s }
.aud-play:active { transform: scale(.93) }
.aud-play svg { fill: currentColor }
.aud-info { min-width: 0; flex: 1 }
.aud-info h3 { margin: 6px 0 2px; font-size: 1.05rem }
.aud-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.aud-bar { height: 4px; margin-top: 10px; border-radius: 4px; background: var(--surface-2); overflow: hidden }
.aud-bar i { display: block; height: 100%; background: var(--brand) }
body.has-np main { padding-bottom: 190px }
.np { position: fixed; z-index: 70; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); padding: 12px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 44px rgba(15, 23, 42, .28); animation: fadeUp .25s var(--ease-out) both }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.np-title { min-width: 0 }
.np-title small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em }
.np-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.np-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer }
.np-x:hover { background: var(--surface-2) }
.np-seek { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: .8rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums }
.np-seek input { flex: 1; height: 26px; accent-color: var(--brand); cursor: pointer }
.np-ctl { display: flex; align-items: center; justify-content: center; gap: 14px }
.np-b { min-width: 52px; height: 44px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer }
.np-b:hover { background: var(--surface-2) }
.np-main { display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer }
.np-main svg { fill: currentColor }
@media (max-width: 900px) { .np { bottom: calc(76px + env(safe-area-inset-bottom)) } body.has-np main { padding-bottom: 270px } }


/* home: audio band */
.listen-band { display: grid; grid-template-columns: auto 1fr minmax(240px, 320px); gap: 24px; align-items: center; padding: 28px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(135deg, var(--brand-soft), var(--surface) 70%) }
.listen-band .feature-icon.big { width: 64px; height: 64px; border-radius: 20px }
.listen-band h2 { margin: 6px 0 6px }
.listen-band p { color: var(--ink-2) }
.lb-card { display: grid; gap: 6px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 6px 18px rgba(15, 23, 42, .08)) }
.lb-card small { color: var(--muted); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em }
.lb-card b { font-size: 1.05rem; line-height: 1.35 }
.lb-card .btn { margin-top: 8px; justify-self: start }
.lb-card .btn svg { fill: currentColor }
@media (max-width: 900px) { .listen-band { grid-template-columns: 1fr; padding: 22px } .lb-card .btn { justify-self: stretch } }


/* feature card: audio */
.v-audio { display: flex; align-items: center; gap: 14px; padding: 0 16px }
.v-audio .ap { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff }
.v-audio .ap svg { fill: currentColor }
.v-audio .wv { flex: 1; display: flex; align-items: center; gap: 3px; height: 44px }
.v-audio .wv i { flex: 1; min-width: 2px; height: var(--h); border-radius: 3px; background: var(--brand); opacity: .35; animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.09s) }
.v-audio .wv i:nth-child(-n+10) { opacity: .9 }
.v-audio b { font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums }
@keyframes wave { 50% { transform: scaleY(.55) } }
@media (prefers-reduced-motion: reduce) { .v-audio .wv i { animation: none } }


/* feature cards: trust and app visuals */
.v-trust { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap }
.v-trust .rp { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: .85rem }
.v-trust .rp.ok { background: var(--ok); border-color: var(--ok); color: #fff; animation: rupee 3.4s var(--ease-spring) infinite }
.v-trust .ar { color: var(--muted); display: grid }
.v-appi { display: flex; align-items: center; justify-content: center; gap: 14px }
.v-appi .hs { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: #fff }
.v-appi .ad { display: grid; line-height: 1.3 }
.v-appi .ad small { color: var(--muted); font-weight: 600 }


/* home FAQ in two columns (one column on phones) */
#sec-faq .faq2 { max-width: 1040px; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start }
.faq-col { display: grid; gap: 10px; align-content: start }
@media (max-width: 760px) { #sec-faq .faq2 { grid-template-columns: 1fr } }


/* audio: written version */
.aud-doc { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--brand-strong); font-weight: 700; font-size: .85rem; cursor: pointer }
.aud-doc:hover { background: var(--brand-soft) }
.np-view { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 9px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--brand-strong); font-weight: 700; cursor: pointer }
.np-view:hover { background: var(--brand-soft) }
.np-doc { max-height: min(46vh, 380px); overflow-y: auto; margin-bottom: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); line-height: 1.7; overscroll-behavior: contain }
.np-doc[hidden] { display: none }
.np-doc h3 { font-size: 1.05rem; margin-bottom: 8px }
.np-doc h4 { margin: 14px 0 4px; font-size: .98rem; color: var(--brand-strong) }
.np-doc p { margin-bottom: 8px; color: var(--ink-2) }
body.has-np main { padding-bottom: 260px }
@media (max-width: 900px) { body.has-np main { padding-bottom: 320px } }


/* audio: formatting in the written version, and the admin toolbar */
.np-doc a { color: var(--brand-strong); text-decoration: underline; word-break: break-word }
.np-doc strong { color: var(--ink) }
.fmt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 }


/* admin editor and the written version */
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2) }
.rt-b { min-width: 36px; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .88rem; cursor: pointer }
.rt-b:hover { background: var(--brand-soft) }
.rt-b.on { background: var(--brand); border-color: var(--brand); color: #fff }
.rt-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 2px }
.rt-editor { min-height: 220px; max-height: 480px; overflow-y: auto; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); line-height: 1.7; outline: none }
.rt-editor:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft) }
.rt-editor:empty::before { content: attr(data-ph); color: var(--muted) }
.rt-editor h3, .np-doc h3 { font-size: 1.1rem; margin: 10px 0 6px }
.rt-editor h4, .np-doc h4 { font-size: .98rem; margin: 12px 0 4px; color: var(--brand-strong) }
.rt-editor p, .np-doc p { margin-bottom: 8px }
.rt-editor ul, .rt-editor ol, .np-doc ul, .np-doc ol { margin: 4px 0 10px 1.4rem }
.rt-editor li, .np-doc li { margin-bottom: 4px }
.rt-editor blockquote, .np-doc blockquote { margin: 8px 0; padding: 6px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0 }
.rt-editor a, .np-doc a { color: var(--brand-strong); text-decoration: underline; word-break: break-word }


/* account menu: scrolls when it is taller than the screen */
.menu { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch }


/* help and support */
.btn.disabled, .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; cursor: default }
.support-card { display: flex; flex-direction: column; align-items: flex-start }
.safe-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--line); line-height: 1.6 }


/* earn: items sent back for a fix */
.fix-banner { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft, #fdecec); color: var(--bad); font-weight: 650 }


/* pricing page */
.pass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px }
.pass-card { display: flex; flex-direction: column; gap: 4px }
.pass-card h3 { font-size: 1.1rem; font-weight: 800 }
.pass-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px }
.pass-cov { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 650 }
.pass-tests { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow-y: auto }
.pass-tests li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink-2) }
.pass-tests li .i { flex: none; margin-top: 3px; color: var(--ok) }
.pass-act { margin-top: auto; padding-top: 14px }
.pt-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px }
.pt-list .name { flex: 1; min-width: 0; font-weight: 650 }
.pt-list .sub { font-weight: 500; color: var(--muted); font-size: .85rem }
.pt-price { font-weight: 800; white-space: nowrap }
@media (max-width: 560px) { .pt-list li { flex-wrap: wrap } .pt-list .name { flex-basis: 100% } .pt-price { flex: 1 } }


/* pay by QR */
.pay-qr { display: grid; place-items: center; margin: 0 auto 14px; padding: 12px; width: fit-content; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px }
.pay-qr img { display: block; width: min(260px, 100%); height: auto; border-radius: 6px }
.pay-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; text-align: left }


/* payment details form */
.pay-form { margin: 0 0 14px; text-align: left }
.pay-form .field { margin-bottom: 8px }


/* admin: earnings charts */
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin-top: 12px; padding-bottom: 2px; border-bottom: 1px solid var(--line) }
.adm-bar { flex: 1; min-width: 3px; background: var(--brand); border-radius: 3px 3px 0 0; opacity: .85 }
.adm-bar:hover { opacity: 1 }
.adm-bars-ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: .78rem; color: var(--muted) }
.pay-tabs { max-width: 100%; overflow-x: auto }
.stat .muted.small { margin-top: 2px }
.card.flat { box-shadow: none; background: var(--surface-2) }
tr.inactive { opacity: .6 }


/* blog */
.blog-card { text-decoration: none; color: inherit }
.blog-card h2 { color: var(--ink) }
.blog-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.blog-post { max-width: 720px; margin: 0 auto }
.blog-back { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-strong); font-weight: 650; text-decoration: none }
.blog-post h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2 }
.blog-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 18px 0; border-radius: 16px; background: var(--surface-2) }
.doc-body { font-size: 1.05rem; line-height: 1.8; color: var(--ink-2); margin-top: 18px }
.doc-body h3 { font-size: 1.3rem; margin: 28px 0 8px; color: var(--ink) }
.doc-body h4 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--brand-strong) }
.doc-body p { margin-bottom: 14px }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 24px }
.doc-body li { margin-bottom: 6px }
.doc-body blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--ink) }
.doc-body a { color: var(--brand-strong); text-decoration: underline; word-break: break-word }
.doc-body strong { color: var(--ink) }
html[lang="kn"] .doc-body { line-height: 2 }
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 18px; padding-top: 18px; border-top: 1px solid var(--line) }
.blog-cta { margin-top: 10px }
.rt-editor.rt-tall { min-height: 320px }


/* Buy window: the QR part folds away when online payment is offered */
.pay-alt { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px }
.pay-alt summary { color: var(--brand-strong) }
.pay-alt[open] .pay-qr { margin-top: 12px }
.pay-state { text-align: center; max-width: 520px; margin: 40px auto }
.pay-state .big { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--brand-soft); color: var(--brand-strong) }
.pay-state .big.ok { background: var(--ok-soft); color: var(--ok) }
.pay-state .big.bad { background: var(--bad-soft); color: var(--bad) }
.pay-state .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px }

/* sticky sign-up bar (phones, logged-out visitors on the home page) */
.sticky-cta { display: none }
@media (max-width: 900px) {
  .sticky-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 39;
    padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(15,23,42,.18);
    font-weight: 700; font-size: .95rem; transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .3s var(--ease-spring), opacity .2s }
  .sticky-cta.on { transform: none; opacity: 1; pointer-events: auto }
  body.quiz-mode .sticky-cta { display: none }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none } }

/* lesson video */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin: 0 0 18px }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }

/* numbered question strip in a test */
.qstrip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 12px; scrollbar-width: thin; -webkit-overflow-scrolling: touch }
.qs-c { flex: none; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .15s, background-color .15s, border-color .15s }
.qs-c:active { transform: scale(.94) }
.qs-c.picked { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong) }
.qs-c.ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: var(--ok) }
.qs-c.bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); border-color: var(--bad) }
.qs-c.marked { box-shadow: inset 0 -4px 0 var(--amber) }
.qs-c.now { background: var(--brand); border-color: var(--brand); color: #fff }
@media (prefers-reduced-motion: reduce) { .qs-c { transition: none } }

/* audit fixes: header fits 360-385px phones, bigger tap targets */
@media (max-width: 420px) {
  .site-header .nav .lang-btn { padding: 0 8px }
  .site-header .nav a.btn.sm:not(.ghost) { padding: 0 10px }
  .site-header .bar { padding-left: 10px; padding-right: 10px }
}
.logo { min-height: 44px }
.ticker-item { min-height: 40px }
.fs-b { width: 40px; height: 40px }
#pwToggle { min-width: 44px; min-height: 44px }
a.forgot-link, #loginForm a[href="forgot.html"] { display: inline-block; padding: 10px 0 }

/* mock test filter bar */
.fbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px }
.fbar .btn { gap: 8px }
.fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 800 }
.fbar .link { background: none; border: 0; padding: 10px 4px; color: var(--brand-strong); font: inherit; font-weight: 700; cursor: pointer }
.fpanel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; padding: 16px }
@media (max-width: 520px) { .fpanel { grid-template-columns: 1fr } }

/* analytics choice */
.ga-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(15,23,42,.22); display: grid; gap: 12px }
.ga-banner p { margin: 0; font-size: .92rem; color: var(--ink-2) }
.ga-banner a { font-weight: 700 }
.ga-actions { display: flex; gap: 8px; justify-content: flex-end }
@media (max-width: 900px) { .ga-banner { bottom: calc(76px + env(safe-area-inset-bottom)) } }
.foot-btn { display: block; padding: 4px 0; background: none; border: 0; font: inherit; font-size: .92rem; color: var(--ink-2); cursor: pointer; text-align: left }

/* payment receipt */
.receipt { padding: 28px }
.rc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line) }
.rc-head h1 { font-size: 1.6rem; margin-top: 4px }
.rc-no { text-align: right; display: grid; gap: 2px }
.rc-no b { font-variant-numeric: tabular-nums }
.rc-amount { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 }
.rc-amount b { font-size: 2.2rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums }
.rc-rows { border-top: 1px solid var(--line) }
.rc-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line) }
.rc-row > span { color: var(--muted); flex: none }
.rc-row b { text-align: right; overflow-wrap: anywhere }
.rc-foot { margin-top: 16px }
@media print {
  .site-header, footer, .tabbar, .ticker, .no-print, .sticky-cta, .ga-banner, .toast, .skip-link { display: none !important }
  body { background: #fff !important; color: #000 !important }
  .receipt { box-shadow: none !important; border: 1px solid #999 !important; max-width: none }
  .rc-row > span, .muted { color: #444 !important }
}

/* practice call-to-action on the review page */
.practice-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: var(--brand-soft); border-color: transparent }
.practice-cta p { margin: 2px 0 0 }

/* pictures inside lessons and posts */
.lesson-body img, .doc-body img, .rt-editor img { display: block; max-width: 100%; height: auto; margin: 14px 0; border-radius: 12px }
.lesson-body h3, .lesson-body h4 { margin: 20px 0 8px }
.lesson-body ol { padding-left: 22px; margin-bottom: 16px }
.lesson-body blockquote { border-left: 4px solid var(--line-2); padding: 4px 0 4px 14px; margin: 0 0 16px; color: var(--ink-2) }
.lesson-body a { color: var(--brand-strong); text-decoration: underline; word-break: break-word }
