/* ThinkOra design system — mobile-first, light + dark.
   Brand: ink black + signature red dot (from the ThinkOra mark). */
:root {
  --ink: #141414; --ink-2: #2b2b2b; --muted: #6b6b66; --line: #e9e8e3; --line-2: #f1f0ec;
  --bg: #fafaf7; --surface: #ffffff; --surface-2: #f5f4f0;
  --red: #e5242a; --red-ink: #b81419; --red-soft: #fdeceb;
  --ok: #17803d; --ok-soft: #e7f5ec; --warn: #b45309; --warn-soft: #fff4e2;
  --l0: #1f8a4c; --l0-soft: #e8f6ee; --l1: #c26a00; --l1-soft: #fff3e0; --l2: #e5242a; --l2-soft: #fdeceb;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 24px rgba(20,20,20,.06);
  --font: 'Montserrat', 'Hind Siliguri', system-ui, sans-serif;
  --font-en: 'Montserrat', 'Hind Siliguri', system-ui, sans-serif;
  --tap: 46px; color-scheme: light;
}
[data-theme=dark] {
  --ink: #f3f3f1; --ink-2: #dcdcd8; --muted: #a3a39d; --line: #2c2c2c; --line-2: #222;
  --bg: #0f0f0f; --surface: #181818; --surface-2: #202020;
  --red: #ff4d52; --red-ink: #ff7a7e; --red-soft: #3a1617; --ok: #4ade80; --ok-soft: #10301c; --warn: #fbbf24; --warn-soft: #33270f;
  --l0: #4ade80; --l0-soft: #10301c; --l1: #fbbf24; --l1-soft: #33270f; --l2: #ff6b6f; --l2-soft: #3a1617;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; } a { color: inherit; } img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; } .gap { gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ok-text { color: var(--ok); } .no-text { color: var(--red); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
[data-theme=dark] .only-light, :root:not([data-theme=dark]) .only-dark { display: none !important; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; }
.main { padding: 20px 0 40px; min-height: 70vh; }
.main.has-bottomnav { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.desk-only { display: none !important; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-en); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand-word b { font-weight: 800; }
.brand-lg .brand-mark { width: 52px; height: 52px; } .brand-lg .brand-word { font-size: 1.6rem; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; }

/* Top & bottom bars */
.demo-bar { background: var(--ink); color: var(--bg); font-size: .8rem; text-align: center; padding: 6px 12px; }
.demo-bar a { color: inherit; font-weight: 600; }
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.topnav { display: flex; gap: 4px; } .topnav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.topnav a.on, .topnav a:hover { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn.danger { color: var(--red); }
.avatar-link { display: inline-flex; border-radius: 50%; }
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar-txt { display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 700; font-family: var(--font-en); }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; padding: 6px 0; border-radius: 12px; position: relative; }
.bottomnav a .ic { width: 22px; height: 22px; }
.bottomnav a.on { color: var(--ink); font-weight: 600; }
.bottomnav a.on::before { content: ''; position: absolute; top: 2px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--ink-2); } .btn:active { transform: scale(.98); }
.btn:disabled, .btn-disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); } .btn-ghost:hover { background: var(--surface-2); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; } .btn-red:hover { background: var(--red-ink); }
.btn-danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.btn-light { background: #fff; color: #141414; border-color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; } .btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; } .btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--bg) transparent var(--bg) transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after { border-color: var(--ink) transparent var(--ink) transparent; }
.link { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; text-decoration: none; cursor: pointer; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 10px; }

/* Chips, cards */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.chip-red { background: var(--red-soft); border-color: transparent; color: var(--red-ink); }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; overflow: hidden; }
.pad { padding: 18px; }
.cards { display: grid; gap: 14px; }
.card-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; } .card-img-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.card-body { padding: 16px; } .course-card, .article-card { text-decoration: none; display: block; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; display: flex; gap: 8px; align-items: flex-start; }
.note.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 8px; } .empty > .ic { width: 44px; height: 44px; color: var(--muted); }
.page-head { margin-bottom: 18px; } .page-head h1 { margin-bottom: 4px; }
.section { margin: 40px 0; } .section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; } .section-head h2 { font-size: 1.35rem; margin: 0; }
.loading-page { display: grid; place-items: center; min-height: 40vh; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: .92rem; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.2); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast-err { background: var(--red); color: #fff; } .toast-ok { background: var(--ok); color: #fff; }

/* Progress */
.pbar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.pbar span { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .4s ease; }
.ring .ring-bg { stroke: var(--line-2); } .ring .ring-fg { stroke: var(--red); transition: stroke-dashoffset .6s ease; }
.ring text { fill: var(--ink); font-weight: 700; font-size: 18px; font-family: var(--font-en); }

/* Landing */
.hero { display: grid; gap: 28px; padding: 16px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); display: inline-block; }
.hero h1 { font-size: 2.15rem; margin: 12px 0; letter-spacing: -.02em; }
.hl { position: relative; white-space: nowrap; } .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .3em; background: var(--red-soft); z-index: -1; border-radius: 4px; }
.lead { font-size: 1.08rem; color: var(--muted); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.hero-stats { display: flex; gap: 26px; list-style: none; padding: 0; margin: 8px 0 0; }
.hero-stats li { display: grid; } .hero-stats b { font-size: 1.5rem; font-family: var(--font-en); } .hero-stats span { color: var(--muted); font-size: .85rem; }
.dash-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); position: relative; }

.ml-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ml-line { display: grid; padding: 10px 0; border-bottom: 1px dashed var(--line); } .ml-en { font-family: var(--font-en); font-weight: 600; } .ml-bn { color: var(--muted); font-size: .9rem; }
.ml-quiz { margin-top: 12px; display: grid; gap: 8px; font-family: var(--font-en); font-weight: 600; }
.ml-quiz .opt { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; margin-right: 6px; font-size: .9rem; }
.ml-quiz .opt.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step .ic { width: 28px; height: 28px; color: var(--red); margin-bottom: 8px; } .step h3 { font-size: 1rem; } .step p { color: var(--muted); font-size: .88rem; margin: 0; }
.course-hero { display: grid; gap: 14px; text-decoration: none; background: var(--ink); color: var(--bg); border-radius: 22px; padding: 22px; }
.course-hero h3 { font-size: 1.5rem; margin-top: 10px; } .course-hero p { opacity: .8; } .course-hero .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); justify-self: start; }
.level-strip { display: grid; gap: 8px; } .lvl { display: grid; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border-left: 4px solid; }
.lvl.lvl-0 { border-color: #4ade80; } .lvl.lvl-1 { border-color: #fbbf24; } .lvl.lvl-2 { border-color: #ff5a5f; } .lvl span { font-size: .85rem; opacity: .75; }
.cta-band { background: var(--red); color: #fff; border-radius: 24px; padding: 28px 22px; text-align: center; margin: 40px 0 10px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; text-align: center; }
.foot-logo { height: 46px; width: auto; margin: 0 auto 10px; }

/* Auth */
.auth { min-height: 70vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 18px; } .auth-card h1 { font-size: 1.5rem; }
.auth-links { display: grid; gap: 8px; margin-top: 16px; font-size: .92rem; text-align: center; } .auth-links a { color: var(--red); font-weight: 600; text-decoration: none; }

/* Forms */
label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; margin-bottom: 14px; }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; transition: border-color .15s; }
textarea { min-height: 0; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
label.check, .switch { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; cursor: pointer; }
label.check input, .switch input { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); }
.form-err { color: var(--red); font-size: .9rem; min-height: 1.2em; margin: 0 0 8px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; align-items: end; }
.upload-btn { margin: 0; cursor: pointer; display: inline-flex; flex-direction: row; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }

/* Course & level */
.course-top { margin-bottom: 22px; } .course-top h1 { font-size: 1.8rem; margin-top: 10px; }
.course-intro { color: var(--muted); }
.continue-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; flex-wrap: wrap; }
.continue-box > div { display: grid; } .continue-box.done { color: var(--ok); justify-content: flex-start; }
.level-list { display: grid; gap: 12px; }
.level-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.lc-num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.lvl-0 .lc-num { background: var(--l0-soft); color: var(--l0); } .lvl-1 .lc-num { background: var(--l1-soft); color: var(--l1); } .lvl-2 .lc-num { background: var(--l2-soft); color: var(--l2); }
.lc-body { flex: 1; min-width: 0; } .lc-body h3 { margin: 0; } .lc-body p { margin: 2px 0 6px; } .lc-go { color: var(--muted); margin-top: 10px; }
.level-summary { border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.level-summary.lvl-0 { background: var(--l0-soft); } .level-summary.lvl-1 { background: var(--l1-soft); } .level-summary.lvl-2 { background: var(--l2-soft); }
.lesson-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ll > a, .ll > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; min-height: 64px; }
.ll > a:hover { border-color: var(--ink); }
.ll-num { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-family: var(--font-en); font-size: .9rem; }
.ll-done .ll-num { background: var(--ok); color: #fff; } .ll-open .ll-num { background: var(--ink); color: var(--bg); }
.ll-locked > div { opacity: .55; cursor: not-allowed; }
.ll-body { flex: 1; display: grid; min-width: 0; } .ll-body b { font-weight: 600; }
.final-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 18px; flex-wrap: wrap; }
.final-card .ic { width: 28px; height: 28px; color: #ffcf33; } .final-card .btn { background: var(--red); border-color: var(--red); color: #fff; }
.final-card.is-locked { background: var(--surface-2); color: var(--ink); } .final-card.is-locked .ic { color: var(--muted); }

/* Dashboard */
.dash-hello { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.dash-hello p { margin: 0; } .dash-hello h1 { margin: 0 0 6px; font-size: 1.6rem; }
.streak-pill { display: grid; justify-items: center; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 76px; color: var(--muted); }
.streak-pill .ic { width: 22px; height: 22px; } .streak-pill b { font-size: 1.4rem; line-height: 1.1; color: var(--ink); } .streak-pill span { font-size: .7rem; }
.streak-pill.on { background: var(--red-soft); border-color: transparent; } .streak-pill.on .ic { color: var(--red); }
.continue-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; } .continue h2 { margin: 2px 0; font-size: 1.15rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; }
.stat b { font-size: 1.4rem; font-family: var(--font-en); line-height: 1.2; } .stat span { color: var(--muted); font-size: .82rem; }
.stat-ic { color: var(--red); } .stat-ic .ic { width: 20px; height: 20px; }
.stat.ok b { color: var(--ok); } .stat.no b { color: var(--red); }
.lvl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--line-2); }
.lvl-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; } .lvl-dot.lvl-0 { background: var(--l0); } .lvl-dot.lvl-1 { background: var(--l1); } .lvl-dot.lvl-2 { background: var(--l2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.wd { display: grid; justify-items: center; gap: 4px; font-size: .78rem; color: var(--muted); }
.wd i { width: 28px; height: 28px; border-radius: 50%; background: var(--line-2); display: block; } .wd.on i { background: var(--red); }
.activity { list-style: none; padding: 0; margin: 0; } .activity li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .9rem; }
.activity li:first-child { border-top: 0; } .activity a { text-decoration: none; } .activity time { color: var(--muted); font-size: .78rem; white-space: nowrap; } .activity .ic { color: var(--ok); }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.badge { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface-2); opacity: .55; }
.badge .ic { width: 24px; height: 24px; color: var(--muted); } .badge b { font-size: .9rem; } .badge span { font-size: .75rem; color: var(--muted); }
.badge.got { opacity: 1; background: var(--red-soft); } .badge.got .ic { color: var(--red); }
.two-col { display: grid; gap: 0 16px; }

/* Results */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 18px; }
.bar { flex: 1; height: calc(var(--v) * 1%); min-height: 6px; border-radius: 8px 8px 4px 4px; background: var(--ok); position: relative; text-decoration: none; max-width: 44px; }
.bar.no { background: var(--red); } .bar span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: .7rem; color: var(--muted); }
.result-list { list-style: none; padding: 0; margin: 0; } .result-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; border-top: 1px solid var(--line-2); }
.result-list li:first-child a { border-top: 0; } .result-list .grow { display: grid; }
.rl-score { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-family: var(--font-en); flex: none; }
.rl-score.ok { background: var(--ok-soft); color: var(--ok); } .rl-score.no { background: var(--red-soft); color: var(--red); }
.result-hero { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 10px 0 18px; }
.result-hero.pass .ring-fg { stroke: var(--ok); } .result-hero h1 { font-size: 1.4rem; margin-top: 8px; }
.stat-5 { grid-template-columns: repeat(2, 1fr); } .stat-5 .stat:first-child { grid-column: span 2; }
.result-actions { display: grid; gap: 10px; margin-bottom: 16px; }
.review { padding: 0; list-style: none; margin: 0; } .rv { padding: 14px 0; border-top: 1px solid var(--line-2); }
.rv-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; } .rv-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.rv.ok .rv-mark { background: var(--ok); } .rv.no .rv-mark { background: var(--red); } .rv-mark .ic { width: 16px; height: 16px; }
.rv-q { font-weight: 600; margin-bottom: 4px; } .rv-right { color: var(--ok); } .rv p { margin: 2px 0; }
.only-wrong .rv.ok { display: none; }

/* Profile */
.profile-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .profile-top h2 { margin: 0; }
.setting { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); gap: 10px; }
.setting:first-of-type { border-top: 0; } .setting span { display: flex; gap: 8px; align-items: center; }

/* Lesson player */
.lesson-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .lesson-top .back { margin: 0; }
.qcount { white-space: nowrap; }
.step-dots { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 18px; padding: 4px 16px; scrollbar-width: none; }
.step-dots::-webkit-scrollbar { display: none; }
.step-dots button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: .8rem; cursor: pointer; color: var(--muted); }
.step-dots button i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.step-dots button.past i { background: var(--ok); } .step-dots button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .step-dots button.on i { background: var(--red); }
.lstep-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.lstep-title span { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.lesson-title { font-size: 1.7rem; }
.objectives { list-style: none; padding: 0; display: grid; gap: 10px; } .objectives li { display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: 14px; }
.objectives .ic { color: var(--ok); margin-top: 3px; }
.prose { font-size: 1.05rem; } .prose p { margin-bottom: 1em; }
.en { font-family: var(--font-en); font-weight: 600; margin: 0; } .bn { color: var(--muted); margin: 0; } .big { font-size: 1.15rem; margin: 8px 0; }
.say { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: var(--red-soft); color: var(--red); cursor: pointer; vertical-align: middle; }
.say.playing { background: var(--red); color: #fff; animation: pulse 1s infinite; } .say-slow { width: auto; padding: 0 12px; border-radius: 99px; font-size: .8rem; height: 32px; }
@keyframes pulse { 50% { transform: scale(1.08); } }
.examples, .pron { list-style: none; padding: 0; display: grid; gap: 10px; }
.examples li, .pron li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.pron li > div { flex: 1; display: grid; } .pron em { font-size: .82rem; color: var(--muted); font-style: normal; }
.listen-check { margin-top: 16px; } .lc-opts { display: grid; gap: 8px; margin: 12px 0 4px; }
.vocab { display: grid; gap: 10px; } .vcard { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.vcard > div { display: grid; } .vcard b { font-family: var(--font-en); } .vcard em { font-size: .85rem; color: var(--muted); font-style: normal; font-family: var(--font-en); }
.sub { margin-top: 22px; }
.convo-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.convo { display: grid; gap: 10px; margin-top: 12px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.bubble.a { border-bottom-left-radius: 6px; } .bubble.b { justify-self: end; background: var(--ink); color: var(--bg); border-color: var(--ink); border-bottom-right-radius: 6px; }
.bubble.b .bn { color: color-mix(in srgb, var(--bg) 70%, transparent); } .bubble .say { width: 30px; height: 30px; margin-left: 4px; } .bubble .say .ic { width: 16px; height: 16px; }
.bubble .who { font-size: .72rem; font-weight: 700; opacity: .7; } .bubble.active { outline: 3px solid var(--red); }
.hide-bn .bn { display: none; }
.practice { display: grid; gap: 4px; } .pr.ok { border-color: var(--ok); } .pr.no { border-color: var(--red); }
.pr input { min-width: 0; } .pr-msg { margin: 8px 0 0; } [data-mic].rec { background: var(--red); border-color: var(--red); animation: pulse 1s infinite; }
.big-ic .ic { width: 48px; height: 48px; color: var(--red); }
.complete { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 18px 0; } .complete > .ic { width: 64px; height: 64px; color: #f5b400; }
.complete.pending > .ic { color: var(--red); }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); padding-top: 18px; }
.lesson-nav .btn { flex: 1; }

/* Quiz */
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.qprompt { font-size: 1.2rem; margin: 6px 0 16px; }
.opts { display: grid; gap: 10px; }
.opt-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 54px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-size: 1rem; }
.opt-btn:hover { border-color: var(--ink); } .opt-btn.sel { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.opt-btn.ok { border-color: var(--ok); background: var(--ok-soft); } .opt-btn.no { border-color: var(--red); background: var(--red-soft); }
.opt-key { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; flex: none; font-size: .85rem; }
.opt-btn.sel .opt-key { background: var(--ink); color: var(--bg); }
.qmap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.qmap button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .8rem; }
.qmap button.done { background: var(--ink); color: var(--bg); } .qmap button.cur { outline: 2px solid var(--red); }

/* Articles */
.article-cover { border-radius: var(--radius); margin-bottom: 18px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* Admin */
.admin-nav { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 18px; padding: 0 16px 4px; scrollbar-width: none; }
.admin-nav a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .9rem; }
.admin-nav a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stat-4 { grid-template-columns: repeat(2, 1fr); }
.quick-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
.quick { text-decoration: none; display: grid; gap: 4px; margin: 0; } .quick .ic { width: 26px; height: 26px; color: var(--red); } .quick span { font-size: .82rem; color: var(--muted); }
.note-card { border-color: var(--red); }
.adm-list, .adm-qs { list-style: none; padding: 0; margin: 0; }
.adm-list li, .adm-qs li { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line-2); }
.adm-list li:first-child, .adm-qs li:first-child { border-top: 0; } .adm-list a.grow { display: grid; text-decoration: none; }
.card.pad .adm-list li, .card.pad .adm-qs li { padding: 12px 0; } .adm-qs p { margin: 4px 0; }
.add-box { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; } .add-box summary { cursor: pointer; font-weight: 600; display: flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.danger-zone { border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.q-form { background: var(--surface-2); padding: 16px; border-radius: 14px; margin-bottom: 16px; }
.sticky-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; } .tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); } .tbl th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.tbl .who { display: flex; gap: 10px; align-items: center; text-decoration: none; } .tbl .who > span { display: grid; }

/* Tablet & desktop */
@media (min-width: 720px) {
  .desk-only { display: flex !important; } .mob-only { display: none !important; }
  .main.has-bottomnav { padding-bottom: 48px; }
  h1 { font-size: 2rem; }
  .hero { grid-template-columns: 1.1fr .9fr; align-items: center; padding: 40px 0; } .hero h1 { font-size: 2.9rem; }
  .steps { grid-template-columns: repeat(4, 1fr); } .cards { grid-template-columns: repeat(3, 1fr); }
  .course-hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 32px; } .course-hero .btn { grid-column: 1; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); } .stat-5 { grid-template-columns: repeat(5, 1fr); } .stat-5 .stat:first-child { grid-column: auto; }
  .two-col { grid-template-columns: 1fr 1fr; } .badges { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span2 { grid-column: span 2; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .lesson-nav, .sticky-actions { bottom: 0; }
  .toast { bottom: 28px; }
  .vocab { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.modal-wrap { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.45); display: grid; place-items: end center; padding: 16px; }
.modal { background: var(--surface); border-radius: 20px; padding: 22px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal p { font-size: 1.05rem; } .modal-actions { display: flex; gap: 10px; } .modal-actions .btn { flex: 1; }
@media (min-width: 720px) { .modal-wrap { place-items: center; } }

/* ===================== v2 layout ===================== */
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; height: 64px; }
.today { display: grid; line-height: 1.2; min-width: 0; }
.today b { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.today span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.topbar .brand { justify-self: center; }
.top-actions { justify-self: end; }
.text-logo { display: inline-flex; align-items: center; }
.text-logo img { height: 38px; width: auto; }
.text-logo.tiny img { height: 30px; margin: 0 auto 6px; }
.tabnav { display: flex; justify-content: center; gap: 4px; padding-bottom: 8px; }
.tabnav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.tabnav a.on, .tabnav a:hover { color: var(--ink); background: var(--surface-2); }
.nav-badge { position: absolute; top: 0; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; font-family: var(--font-en); }
.tabnav .nav-badge { top: 2px; left: auto; right: 2px; }
.bottomnav a.on::before { display: none; }
.bottomnav a.on .ic { color: var(--red); }
.main-auth { padding-top: 8px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 4px; } .auth-logo img { height: 64px; }
.auth-tag { text-align: center; color: var(--muted); font-size: .82rem; margin-bottom: 18px; }
.auth-card h1 { text-align: center; } .auth-card > p.muted { text-align: center; }

.hello { margin: 4px 0 14px; } .hello h1 { font-size: 1.55rem; margin-bottom: 2px; } .hello p { margin: 0; }
.dash-main .continue-row { margin-top: 10px; } .dash-main h3 { margin: 2px 0; }
.streak-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 600; }
.streak-chip.on { background: var(--red-soft); color: var(--red-ink); }
.stat-in { margin: 14px 0 0; } .stat-in .stat { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.bars-sm { height: 100px; margin-bottom: 10px; }
.stage-mini { display: grid; gap: 10px; margin: 12px 0; }
.stage-mini > div { display: grid; grid-template-columns: auto 6.5em 1fr auto; align-items: center; gap: 8px; }
.stage-mini b { font-size: .88rem; } .stage-mini .pbar { margin: 0; }
.section-block { margin: 22px 0; } .section-block > h2, .section-block .row-between h2 { margin-bottom: 10px; }
.sub-h { display: flex; align-items: center; gap: 6px; font-size: .95rem; color: var(--muted); margin: 14px 0 8px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; } .hscroll > * { scroll-snap-align: start; }
.course-grid { display: grid; gap: 12px; }
.ccard { display: grid; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ccard-cover { position: relative; aspect-ratio: 16/7; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.ccard-cover img { width: 100%; height: 100%; object-fit: cover; } .ccard-cover > span:first-child .ic { width: 40px; height: 40px; }
.ccard-cover .chip { position: absolute; top: 10px; right: 10px; }
.ccard-cover::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--red); bottom: 12px; left: 14px; }
.ccard-body { display: grid; gap: 4px; padding: 12px 14px 14px; } .ccard-body .pbar { margin: 6px 0 0; }
.ccard-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; margin-top: 4px; color: var(--red-ink); }
.chip-gold { background: #fff4d6; color: #8a5a00; border-color: transparent; }
[data-theme=dark] .chip-gold { background: #3a2e0f; color: #fbbf24; }

.weekstrip { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wday { display: grid; justify-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; }
.wd-name { font-size: .76rem; color: var(--muted); font-weight: 600; }
.wd-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1.5px solid var(--line); }
.wd-mark i { font-style: normal; font-size: .8rem; color: var(--muted); font-family: var(--font-en); }
.wday.on .wd-mark { background: var(--red-soft); border-color: transparent; color: var(--red); }
.wday.on .wd-mark .ic { width: 22px; height: 22px; fill: var(--red); stroke: var(--red); }
.wday.today { background: var(--surface-2); } .wday.today .wd-name { color: var(--ink); }
.wday.future .wd-mark { opacity: .45; border-style: dashed; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; margin-bottom: 16px; }
.seg a { display: inline-flex; justify-content: center; align-items: center; gap: 6px; padding: 10px; border-radius: 11px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notif-list li { margin: 0; position: relative; } .notif-list li.unread { border-color: var(--red); }
.notif-list .dot { position: absolute; top: 16px; right: 16px; }

.course-intro summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.buy-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 8px; }
.buy-box > div { display: grid; } .buy-box b { font-size: 1.4rem; font-family: var(--font-en); }
.stage { margin: 18px 0 26px; }
.stage-head { display: flex; align-items: center; gap: 12px; }
.stage-head h2 { margin: 0; } .stage-head p { margin: 0; }
.stage-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; flex: none; }
.lvl-0 .stage-num { background: var(--l0-soft); color: var(--l0); } .lvl-1 .stage-num { background: var(--l1-soft); color: var(--l1); } .lvl-2 .stage-num { background: var(--l2-soft); color: var(--l2); }
.lvl-0 .pbar span { background: var(--l0); } .lvl-1 .pbar span { background: var(--l1); }
.stage-desc { color: var(--muted); margin: 6px 0 10px; }
.path { position: relative; }
.path::before { content: ''; position: absolute; left: 31px; top: 18px; bottom: 18px; width: 2px; background: var(--line); z-index: 0; }
.path .ll > a, .path .ll > div { position: relative; z-index: 1; }
.ll-level { font-size: .72rem; font-weight: 700; color: var(--red-ink); letter-spacing: .02em; }

.menu-group { margin: 18px 0; } .menu-group h2 { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 0 4px 8px; text-transform: uppercase; letter-spacing: .03em; }
.menu-group .card { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; text-decoration: none; background: none; border: 0; border-top: 1px solid var(--line-2); text-align: left; cursor: pointer; font-size: 1rem; }
.menu-item:first-child { border-top: 0; } .menu-item:hover { background: var(--surface-2); }
.mi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.mi-ic.big { width: 52px; height: 52px; } .mi-ic .ic { width: 20px; height: 20px; }
.mi-go { color: var(--muted); }
.lang-opt.on { font-weight: 700; } .lang-opt .ic { color: var(--ok); }
.me-card { display: flex; align-items: center; gap: 14px; text-decoration: none; } .me-card h1 { font-size: 1.25rem; margin: 0; } .me-card p { margin: 0 0 4px; }
.admin-entry { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 12px; text-decoration: none; background: var(--ink); color: var(--bg); }
.admin-entry > .ic:first-child { grid-row: span 2; width: 26px; height: 26px; color: var(--red); } .admin-entry > .ic:last-child { grid-row: 1 / span 2; grid-column: 3; }
.admin-entry .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.foot-note { margin-top: 24px; }
.device { display: flex; gap: 14px; align-items: flex-start; } .device .chip { margin-left: 6px; } .device p { margin: 6px 0 0; }
.hotline { display: grid; justify-items: center; gap: 8px; text-align: center; } .hotline > .ic { width: 40px; height: 40px; color: var(--red); }
.hotline-num { font-size: 1.8rem; font-family: var(--font-en); letter-spacing: .02em; }
.cert-row { display: flex; align-items: center; gap: 12px; } .cert-row > .ic { width: 28px; height: 28px; color: #c99400; } .cert-row > span { display: grid; }

.certificate { position: relative; background: #fffdf7; color: #141414; border: 2px solid #141414; outline: 6px solid #fffdf7; box-shadow: 0 0 0 8px #e5242a22, var(--shadow); border-radius: 6px; padding: 28px 20px; text-align: center; margin: 8px 0 18px; }
.certificate::before { content: ''; position: absolute; inset: 8px; border: 1px solid #d9c9a0; border-radius: 3px; pointer-events: none; }
.cert-logo { display: flex; justify-content: center; } .cert-logo .only-dark { display: none !important; } .cert-logo .only-light { display: block !important; } .cert-logo img { height: 52px; }
.cert-kicker { font-family: var(--font-en); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: #e5242a; margin: 16px 0 4px; }
.cert-small { color: #6b6b66; margin: 0; } .cert-name { font-size: 1.9rem; margin: 6px 0 10px; border-bottom: 1px solid #d9c9a0; display: inline-block; padding: 0 12px 6px; }
.cert-text { max-width: 34em; margin: 0 auto 20px; }
.cert-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: #6b6b66; }
.cert-foot span { display: grid; } .cert-foot b { color: #141414; font-size: .9rem; } .cert-seal .ic { width: 46px; height: 46px; color: #c99400; }
.cert-actions { margin-bottom: 8px; }
@media print {
  body * { visibility: hidden; } .certificate, .certificate * { visibility: visible; }
  .certificate { position: absolute; inset: 0; margin: 0; box-shadow: none; border-width: 3px; padding: 56px 40px; }
  .no-print, .topbar, .bottomnav, .demo-bar { display: none !important; }
}
@media (min-width: 720px) {
  .hscroll { grid-auto-columns: 32%; margin: 0; padding: 2px 0 8px; }
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .text-logo img { height: 44px; }
  .today b { font-size: 1rem; } .today span { font-size: .82rem; }
}
@media (max-width: 380px) { .text-logo img { height: 32px; } .top-actions { gap: 6px; } .top-actions .icon-btn { width: 36px; height: 36px; } }
.btn-danger:hover { background: var(--red-soft); } .btn-red:hover { background: var(--red-ink); }
.note.note-text { display: block; }

/* ===================== v3: Bengali typography ===================== */
:root {
  --font: 'Montserrat', 'Hind Siliguri', system-ui, sans-serif;
  --font-head: 'Montserrat', 'Hind Siliguri', system-ui, sans-serif;
  --muted: #5c5c57;
}
[data-theme=dark] { --muted: #b0b0aa; }
html { font-size: 106.25%; }                      /* 17px base: comfortable Bangla reading on phones */
body { line-height: 1.75; font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; }
h1, h2, h3, .hc-level, .plan-price b { font-family: var(--font-head); letter-spacing: 0; line-height: 1.4; font-weight: 700; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.22rem; } h3 { font-size: 1.06rem; }
.hero h1, .hello h1 { letter-spacing: 0; }
p, li { line-height: 1.8; }
.prose { font-size: 1.06rem; line-height: 1.9; } .prose h2 { margin: 1.4em 0 .5em; } .prose ul { padding-left: 1.2em; } .prose li { margin: .3em 0; }
.small { font-size: .9rem; } .chip { font-size: .82rem; padding: 4px 11px; }
.bottomnav a { font-size: .78rem; } .wd-name { font-size: .85rem; } .ll-level { font-size: .8rem; }
.bubble .who { font-size: .8rem; } .today span { font-size: .82rem; } .activity time { font-size: .82rem; }
.badge span { font-size: .82rem; } .stat span { font-size: .88rem; } .bar span { font-size: .76rem; }
.en, .ml-en, .fl-en { font-family: var(--font-en); }
.bn { line-height: 1.75; }
input, select, textarea { font-size: 1rem; }
label { font-size: .95rem; }
.muted { color: var(--muted); }

/* ===================== v3 components ===================== */
.sec-title { font-size: 1.1rem; margin: 6px 0 10px; color: var(--muted); }
.hello { display: flex; align-items: center; gap: 12px; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; } .btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-light:hover { background: #f0f0f0; }

.dash-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 20px; margin-bottom: 14px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3a1214 0%, #1a1a1a 45%, #111 100%); box-shadow: 0 14px 40px rgba(20,20,20,.22); }
.dash-hero::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: var(--red); opacity: .9; right: -46px; top: -46px; }
.dash-hero > * { position: relative; z-index: 1; }
.hc-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.hc-kicker { font-size: .85rem; opacity: .8; font-weight: 600; } .hc-stage { background: rgba(255,255,255,.14); padding: 3px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; }
.hc-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.hc-level { font-size: 3.2rem; line-height: 1; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.hc-level small { font-size: 1rem; opacity: .75; font-weight: 600; }
.dash-hero h2 { margin: 8px 0 2px; font-size: 1.2rem; } .dash-hero p { margin: 0; opacity: .78; font-size: .92rem; }
.dash-hero .ring .ring-bg { stroke: rgba(255,255,255,.15); } .dash-hero .ring text { fill: #fff; font-size: 17px; } .dash-hero .ring .ring-fg { stroke: #fff; }
.dash-hero .pbar { background: rgba(255,255,255,.16); } .dash-hero .pbar span { background: #fff; }
.hc-sub { margin: 6px 0 14px !important; } .hc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.kpi b { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.2; } .kpi b small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.kpi > span:last-child { color: var(--muted); font-size: .88rem; }
.kpi-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; }
.kpi-ic .ic { width: 20px; height: 20px; }
.k1 { background: var(--ok-soft); color: var(--ok); } .k2 { background: #e8efff; color: #2f5bd3; } .k3 { background: var(--red-soft); color: var(--red); } .k4 { background: #fff4d6; color: #a06c00; }
[data-theme=dark] .k2 { background: #18233d; color: #8fb0ff; } [data-theme=dark] .k4 { background: #3a2e0f; color: #fbbf24; }

.path-mini { list-style: none; padding: 0; margin: 6px 0 0; }
.pm { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); } .pm:first-child { border-top: 0; }
.pm .grow { display: grid; } .pm b { font-weight: 600; }
.pm-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.pm.done .pm-dot { background: var(--ok); color: #fff; } .pm.now .pm-dot { background: var(--ink); color: var(--bg); } .pm-dot .ic { width: 16px; height: 16px; }
.pm.next { opacity: .7; }
.rule-line { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); margin: 10px 0 0; background: var(--surface-2); padding: 8px 12px; border-radius: 12px; }
.score-pill { min-width: 38px; height: 28px; padding: 0 8px; border-radius: 99px; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--font-en); }
.score-pill.ok { background: var(--ok-soft); color: var(--ok); } .score-pill.no { background: var(--red-soft); color: var(--red); }

.bars.has-pass { position: relative; }
.pass-line { position: absolute; left: 0; right: 0; bottom: calc(var(--v) * 1%); border-top: 2px dashed color-mix(in srgb, var(--red) 70%, transparent); pointer-events: none; }
.pass-line em { position: absolute; right: 0; top: -20px; font-style: normal; font-size: .75rem; color: var(--red); font-weight: 700; background: var(--surface); padding: 0 4px; }

.practice-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ptile { display: grid; gap: 2px; padding: 16px; border-radius: 18px; text-decoration: none; min-height: 112px; align-content: end; position: relative; overflow: hidden; }
.ptile .ic { position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; }
.ptile b { font-family: var(--font-head); font-size: 1.02rem; } .ptile span { font-size: .85rem; opacity: .8; }
.p1 { background: #e8f6ee; color: #135f34; } .p2 { background: #e8efff; color: #1f3f99; } .p3 { background: #fdeceb; color: #9e161b; } .p4 { background: #fff4d6; color: #7a5200; }
[data-theme=dark] .p1 { background: #10301c; color: #8fe3ad; } [data-theme=dark] .p2 { background: #18233d; color: #a8c1ff; } [data-theme=dark] .p3 { background: #3a1617; color: #ff9da0; } [data-theme=dark] .p4 { background: #3a2e0f; color: #fcd679; }

.badge-row { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
.badge-row::-webkit-scrollbar { display: none; }
.ccard-cover { background: linear-gradient(135deg, #1b1b1b, #2c1213); }
.ccard-lib .ccard-cover { background: linear-gradient(135deg, #0f2a1d, #14402b); }
.cc-icon .ic { width: 44px; height: 44px; color: #fff; opacity: .9; }

/* course page */
.course-hero2 { position: relative; overflow: hidden; border-radius: 24px; padding: 18px 20px 20px; margin-bottom: 14px; color: #fff; background: radial-gradient(130% 150% at 100% 0%, #3a1214 0%, #161616 55%); }
.course-hero2::after { content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--red); right: -40px; bottom: -50px; opacity: .9; }
.course-hero2 > * { position: relative; z-index: 1; } .course-hero2 h1 { margin: 10px 0 4px; } .course-hero2 p { opacity: .8; margin: 0; }
.lib-hero { background: radial-gradient(130% 150% at 100% 0%, #14402b 0%, #111a15 60%); }
.back.light { color: rgba(255,255,255,.75); }
.ch-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.16); }
.ch-progress { margin-top: 12px; font-size: .88rem; } .ch-progress .pbar { background: rgba(255,255,255,.18); } .ch-progress .pbar span { background: #fff; }
.ch-progress span { opacity: .85; display: inline-flex; gap: 6px; align-items: center; }
.rule-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.rule-card > .ic { color: var(--red); width: 24px; height: 24px; margin-top: 4px; } .rule-card p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); }
.stage-count { font-family: var(--font-en); }
.free-tag { font-style: normal; color: var(--ok); }
.buy-section { margin: 6px 0 18px; } .buy-section > h2 { margin-bottom: 4px; }
.plans { display: grid; gap: 12px; margin-top: 12px; }
.plan { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.plan-best { border-color: var(--red); box-shadow: 0 10px 30px color-mix(in srgb, var(--red) 18%, transparent); }
.plan-flag { position: absolute; top: -12px; right: 16px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan-dur { font-weight: 700; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .plan-price b { font-size: 2.1rem; line-height: 1.1; } .plan-price span { color: var(--muted); font-size: .9rem; }
.plan-pm { font-size: .85rem; color: var(--ok); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; } .plan li { display: flex; gap: 8px; font-size: .92rem; line-height: 1.6; } .plan li .ic { color: var(--ok); margin-top: 4px; width: 18px; height: 18px; }

.filter-chips { display: flex; gap: 6px; overflow-x: auto; margin: 4px -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 14px; font-size: .88rem; cursor: pointer; }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.article-grid { display: grid; gap: 12px; }
.acard { display: grid; gap: 6px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.acard h3 { margin: 0; font-size: 1.08rem; } .acard p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.7; }
.acard-cat { font-size: .78rem; font-weight: 700; color: var(--red-ink); } .acard-foot { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); }
.lib-link { display: flex; align-items: center; gap: 12px; text-decoration: none; } .lib-link > div { display: grid; flex: 1; } .lib-link > .ic:first-child { color: var(--ok); width: 28px; height: 28px; }
.locked-box, .locked-page { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 18px 0; }
.locked-box > .ic, .locked-page > .ic { width: 44px; height: 44px; color: var(--red); }
.locked-box .plans, .locked-page .plans { width: 100%; text-align: left; }
.pass-box { display: inline-flex; align-items: center; gap: 12px; background: var(--red-soft); color: var(--red-ink); border-radius: 16px; padding: 10px 18px; margin: 6px 0 10px; text-align: left; }
.pass-box b { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; } .pass-box span { font-size: .85rem; line-height: 1.4; font-weight: 600; }
.score-line { font-size: 1.05rem; margin: 2px 0; } .score-line b { font-family: var(--font-en); }
.result-rule { display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 99px; font-weight: 600; font-size: .92rem; }
.result-rule.ok { background: var(--ok-soft); color: var(--ok); } .result-rule.no { background: var(--red-soft); color: var(--red-ink); }
.stat b small { font-size: .8rem; color: var(--muted); }

/* auth */
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-right: 48px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; }
.pw-eye.on { color: var(--red); }
.pw-meter { display: flex; align-items: center; gap: 10px; margin: -8px 0 12px; font-size: .82rem; color: var(--muted); }
.pw-meter span { flex: 1; height: 6px; border-radius: 99px; background: var(--line-2); position: relative; overflow: hidden; }
.pw-meter span::after { content: ''; position: absolute; inset: 0; width: 0; border-radius: 99px; transition: width .2s; }
.pw-meter.weak span::after { width: 25%; background: var(--red); } .pw-meter.ok span::after { width: 50%; background: #e59a24; }
.pw-meter.good span::after { width: 75%; background: #6bb04a; } .pw-meter.strong span::after { width: 100%; background: var(--ok); }
.pw-meter em { font-style: normal; min-width: 4em; text-align: right; }
.req { color: var(--red); }
.auth-tag { font-family: var(--font-en); font-weight: 600; font-style: italic; letter-spacing: .01em; color: var(--muted); font-size: .95rem; }
.auth-logo img { height: 72px; }
label.check { align-items: flex-start; } label.check a { color: var(--red); }
.steps-mini { padding-left: 1.2em; margin: 0 0 14px; font-size: .93rem; color: var(--muted); }

/* checkout & payments */
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-2); } .order-row:first-child { border-top: 0; }
.order-row b { text-align: right; } .order-row.total { font-size: 1.15rem; } .order-row.total b { font-family: var(--font-head); font-size: 1.5rem; color: var(--red-ink); }
.pay-steps h2 { display: flex; align-items: center; gap: 10px; }
.step-no { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: .9rem; flex: none; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; cursor: pointer; }
.method input { width: 20px; height: 20px; min-height: 0; accent-color: var(--red); }
.method:has(input:checked) { border-color: var(--ink); background: var(--surface-2); }
.m-logo { font-family: var(--font-en); font-weight: 800; min-width: 70px; } .m-bkash .m-logo { color: #e2136e; } .m-nagad .m-logo { color: #f6921e; } .m-rocket .m-logo { color: #8a288f; }
.m-num { color: var(--muted); font-size: .9rem; font-family: var(--font-en); }
.pay-how { padding-left: 1.3em; margin: 0 0 8px; } .pay-how li { margin: 4px 0; }
.chip-danger { background: var(--red-soft); color: var(--red-ink); border-color: transparent; }
.pay-item .row-between { gap: 8px; }

/* practice */
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.flash-wrap { display: grid; gap: 12px; }
.flash { min-height: 240px; border-radius: 24px; border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow); display: grid; align-content: center; justify-items: center; gap: 8px; padding: 22px; cursor: pointer; text-align: center; }
.fl-level { font-size: .8rem; color: var(--red-ink); font-weight: 700; } .fl-en { font-size: 2rem; } .fl-ex { color: var(--muted); font-family: var(--font-en); }
.fl-bn { font-size: 1.4rem; font-weight: 700; color: var(--ok); visibility: hidden; } .flash.flipped .fl-bn { visibility: visible; } .flash.flipped .fl-hint { visibility: hidden; }
.fl-hint { font-size: .82rem; color: var(--muted); }
.flash-actions .btn { flex: 1; }
.drill { display: grid; gap: 10px; }
.big-play { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--red); color: #fff; margin: 6px auto 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px color-mix(in srgb, var(--red) 35%, transparent); }
.big-play .ic { width: 40px; height: 40px; }
.center-row { justify-content: center; flex-wrap: wrap; }

/* forms & admin */
.form-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; } .form-sec h2 .ic { color: var(--red); }
.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 10px 0; background: linear-gradient(transparent, var(--bg) 35%); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 8px 0; font-size: .93rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.row.wrap { flex-wrap: wrap; }
.grant { margin-top: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.plan-edit { border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
a.stat { text-decoration: none; } .stat-alert { border-color: var(--red); background: var(--red-soft); }
.pay-review code { font-family: ui-monospace, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.empty .chip { margin-top: 4px; }

@media (min-width: 720px) {
  html { font-size: 106.25%; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .practice-tiles { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); } .plans.plans-one { grid-template-columns: minmax(0, 420px); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .badge-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
  .dash-hero { padding: 26px 28px; } .hc-level { font-size: 3.8rem; }
  .sticky-save { bottom: 0; }
}

/* labels: keep helper text (*, ঐচ্ছিক) on the same line as the label */
label { display: block; }
label > input, label > select, label > textarea, label > .pw-wrap, label > span.row { display: block; margin-top: 6px; }
label > span.row { display: flex; }
label.check, label.switch, label.method, label.upload-btn { display: flex; }
label.upload-btn > input { display: none; }
.auth-tag { text-wrap: balance; font-size: .9rem; line-height: 1.5; margin-top: 6px; }
.pay-review .row input { min-width: 0; flex: 1 1 160px; }
.free-note { display: inline-block; background: var(--ok-soft); color: var(--ok); font-weight: 600; padding: 6px 14px; border-radius: 99px; }

/* =====================================================================
   Vocabulary course
   ===================================================================== */
.en { font-family: var(--font-en); }
.vhero { background: radial-gradient(130% 150% at 100% 0%, #123a2a 0%, #161616 58%); }
.vh-tag { font-size: 1.05rem; opacity: .9 !important; }
.vh-scene { display: flex; gap: 6px; margin: 12px 0 4px; font-size: 1.5rem; flex-wrap: wrap; }
.vh-scene i { font-style: normal; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }
.voverview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.vo-cell { display: grid; gap: 0; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.vo-cell b { font-family: var(--font-head); font-size: 1.7rem; line-height: 1.2; } .vo-cell small { color: var(--muted); }
.vo-cell.lvl-0 { border-top: 4px solid var(--l0); } .vo-cell.lvl-1 { border-top: 4px solid var(--l1); } .vo-cell.lvl-2 { border-top: 4px solid var(--l2); }
.vo-cell.total { background: var(--ink); color: var(--bg); border-color: var(--ink); } .vo-cell.total small { color: inherit; opacity: .7; }
.vstats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 10px 0 14px; }
.vstats > div { background: var(--surface-2); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.vstats b { font-family: var(--font-head); font-size: 1.4rem; line-height: 1.25; display: flex; align-items: center; gap: 4px; } .vstats b small { font-size: .85rem; color: var(--muted); }
.vstats b .ic { color: #f97316; } .vstats span { font-size: .86rem; color: var(--muted); }
section.vstats > div { background: var(--surface); border: 1px solid var(--line); }
.stage-mini > a { display: grid; grid-template-columns: auto 9em 1fr auto; align-items: center; gap: 8px; text-decoration: none; }
.vquick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vq { position: relative; display: grid; gap: 2px; align-content: end; min-height: 118px; padding: 14px; border-radius: 18px; text-decoration: none; overflow: hidden; }
.vq .ic { position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; }
.vq b { font-family: var(--font-head); font-size: 1rem; line-height: 1.3; } .vq span { font-size: .84rem; opacity: .85; }
.vq.q1 { background: var(--ink); color: var(--bg); } .vq.q1 .ic { color: var(--red); }
.vq.q2 { background: #e8f1ff; color: #123a73; } .vq.q3 { background: #fff1db; color: #6d3d00; } .vq.q4 { background: #e7f7ee; color: #0d5530; }
.vq.q5 { background: #f3e9ff; color: #4a1f7a; } .vq.q6 { background: #fdeceb; color: #8d1418; } .vq.q7 { background: #e6f7f7; color: #0c4d4d; } .vq.q8 { background: #fff4e2; color: #7a4100; }
[data-theme=dark] .vq:not(.q1) { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.vq-3 { margin: 14px 0; }
.vlevel-card { display: grid; gap: 8px; padding: 16px; margin: 12px 0; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.vlevel-card.lvl-0 { border-left: 5px solid var(--l0); } .vlevel-card.lvl-1 { border-left: 5px solid var(--l1); } .vlevel-card.lvl-2 { border-left: 5px solid var(--l2); }
.vlc-top { display: flex; align-items: center; gap: 12px; } .vlc-top h3 { margin: 0; } .vlevel-card p { margin: 0; color: var(--muted); }
.vlevel-hero { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 22px; margin: 10px 0 14px; background: var(--surface); border: 1px solid var(--line); }
.vlevel-hero.lvl-0 { background: var(--l0-soft); } .vlevel-hero.lvl-1 { background: var(--l1-soft); } .vlevel-hero.lvl-2 { background: var(--l2-soft); }
.vlevel-hero h1 { margin: 2px 0 4px; } .vlevel-hero p { margin: 0; font-size: .92rem; }
.vlevel-actions { margin-bottom: 14px; }
.ll-paid .ll-num { background: var(--warn-soft); color: var(--warn); }
.vwod-in { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; } .vwod-w { font-size: 1.5rem; }
.cc-vocab { background: linear-gradient(135deg, #123a2a, #141414); } .cc-emoji { font-size: 2rem; letter-spacing: 6px; }
.ccard-cover .cc-draft { left: 10px; right: auto; }

/* illustrations: one consistent style — rounded pastel tile + large emoji (or an uploaded picture) */
.vill { --s: 56px; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; border-radius: 30%;
  background: radial-gradient(120% 120% at 30% 20%, hsl(var(--h) 95% 95%), hsl(var(--h) 80% 86%)); box-shadow: inset 0 -3px 0 hsl(var(--h) 60% 78%); overflow: hidden; }
.vill i { font-style: normal; font-size: calc(var(--s) * .56); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.vill img { width: 100%; height: 100%; object-fit: cover; }
[data-theme=dark] .vill { background: radial-gradient(120% 120% at 30% 20%, hsl(var(--h) 35% 28%), hsl(var(--h) 30% 18%)); box-shadow: inset 0 -3px 0 hsl(var(--h) 30% 12%); }
.vill-sm { --s: 42px; } .vill-md { --s: 64px; } .vill-lg { --s: 88px; } .vill-xl { --s: 140px; }

/* audio buttons */
.vsay-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vsay { display: inline-flex; align-items: center; gap: 4px; height: 34px; min-width: 34px; padding: 0 10px; border-radius: 99px; border: 0; background: var(--red-soft); color: var(--red-ink); font-weight: 700; font-size: .8rem; cursor: pointer; justify-content: center; }
.vsay .ic { width: 16px; height: 16px; } .vsay.sm { height: 30px; min-width: 30px; padding: 0 8px; }
.vsay.playing { background: var(--red); color: #fff; animation: pulse 1s infinite; }
.vpos { font-family: var(--font-en); font-size: .72rem; }

/* full word card */
.vcards { display: grid; gap: 14px; }
.vcard-full { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.vcf-top { display: flex; gap: 14px; align-items: flex-start; }
.vcf-word { font-family: var(--font-en); font-size: 1.55rem; font-weight: 800; margin: 0; text-decoration: none; letter-spacing: -.01em; }
.vcf-pron { margin: 2px 0; font-size: .92rem; color: var(--muted); } .vcf-pron b { color: var(--ink); }
.vcf-bn { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--red-ink); }
.vcf-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 0; }
.vcf-grid > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.vcf-grid dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; }
.vcf-grid dd { margin: 4px 0 0; } .vcf-ex p { margin: 0; } .vcf-ex .bn { color: var(--muted); font-size: .92rem; }
mark { background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }
.vpairs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.vpairs li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; } .vpairs b { font-family: var(--font-en); } .vpairs span { color: var(--muted); font-size: .9rem; }
.vpairs.col li { background: var(--surface-2); border-radius: 10px; padding: 6px 10px; }
.vacts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.vact { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; cursor: pointer; font-size: .85rem; font-weight: 600; min-height: 38px; }
.vact .ic { width: 18px; height: 18px; } .vact.on { background: #fff4d6; border-color: #f5c542; color: #8a5a00; }
.vact.warn.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.vtag { display: inline-flex; flex-direction: column; padding: 4px 10px; border-radius: 10px; margin: 2px; font-family: var(--font-en); font-weight: 600; font-size: .9rem; }
.vtag small { font-family: var(--font); font-weight: 500; font-size: .78rem; opacity: .8; }
.vtag.syn { background: var(--ok-soft); color: var(--ok); } .vtag.ant { background: var(--red-soft); color: var(--red-ink); }
.vsyn-table { width: 100%; border-collapse: collapse; } .vsyn-table th, .vsyn-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vsyn-table th { font-size: .8rem; color: var(--muted); }
.vnotes { padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; } .vnote { color: var(--warn); }

/* lesson player bits */
.vintro { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; } .vintro-scene { font-size: 3rem; width: 84px; height: 84px; flex: none; display: grid; place-items: center; border-radius: 24px; background: var(--surface-2); }
.vscene-grid, .vpic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.vscene-item { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; cursor: pointer; text-align: center; }
.vscene-item b { font-family: var(--font-en); } .vscene-item span { font-size: .85rem; color: var(--muted); }
.vpic { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border: 1.5px dashed var(--line); background: var(--surface); border-radius: 18px; cursor: pointer; min-height: 160px; align-content: center; }
.vpic .vpic-ans { display: none; text-align: center; } .vpic .vpic-ans b { display: block; font-size: 1.1rem; }
.vpic.shown { border-style: solid; border-color: var(--ok); } .vpic.shown .vpic-ans { display: block; } .vpic.shown .vpic-q { display: none; }
.vpic-q { font-size: .85rem; color: var(--muted); }
.vpron-list { display: grid; gap: 10px; } .vpron { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .vpron > .grow { display: grid; gap: 2px; }
.vpron-speak { flex-basis: 100%; } .vpron-speak .pr-msg { margin: 4px 0 0; }
.vhl { border: 0; background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; font: inherit; padding: 0 3px; border-radius: 5px; cursor: pointer; text-decoration: underline dotted; }
.bubble.b .vhl { background: rgba(255,213,74,.35); }
.vhl-pop { position: sticky; bottom: calc(140px + env(safe-area-inset-bottom)); z-index: 5; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 16px; padding: 10px 12px; margin: 10px 0; box-shadow: var(--shadow); }
.vrev-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.vrev-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.vrev-list .grow { display: grid; } .vrev-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.seg-4 { grid-template-columns: repeat(2, 1fr); }
.seg a { cursor: pointer; }

/* flashcards */
.fdeck { display: grid; gap: 12px; }
.fd-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fchips-row { display: flex; gap: 6px; } .fd-count { font-family: var(--font-en); font-weight: 700; background: var(--surface-2); border-radius: 99px; padding: 4px 12px; }
.fcard { position: relative; height: 380px; perspective: 1200px; cursor: pointer; outline: none; }
.fface { position: absolute; inset: 0; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1); display: grid; place-items: center; align-content: center; gap: 10px; padding: 18px; text-align: center; }
.fface.back { transform: rotateY(180deg); place-items: stretch; align-content: stretch; text-align: left; background: var(--surface); }
.fcard.flipped .front { transform: rotateY(-180deg); } .fcard.flipped .back { transform: rotateY(0); }
.fcard:focus-visible .fface { outline: 3px solid color-mix(in srgb, var(--red) 55%, transparent); }
.fc-word { font-family: var(--font-en); font-size: 2rem; font-weight: 800; letter-spacing: -.01em; }
.fc-audio { display: flex; gap: 8px; } .fc-hint { font-size: .82rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.fc-back-scroll { overflow-y: auto; display: grid; gap: 6px; align-content: start; }
.fc-back-scroll p { margin: 0; } .fc-pron { color: var(--muted); } .fc-bn { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--red-ink); }
.fc-def { font-size: .95rem; } .fc-ex { font-size: 1rem; } .fc-exbn { color: var(--muted); font-size: .92rem; } .fc-rel { font-size: .9rem; }
.fd-nav, .fd-marks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fd-nav .btn, .fd-marks .btn { padding: 0 8px; }
.btn-ok-soft { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.btn-warn-soft { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.btn-gold-soft { background: #fff4d6; border-color: #f5c542; color: #8a5a00; }
.grade-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grade-row .btn { flex-direction: column; gap: 0; min-height: 58px; line-height: 1.2; } .grade-row .btn small { font-weight: 500; opacity: .8; font-size: .75rem; }
.g-again { background: var(--red); border-color: var(--red); color: #fff; } .g-hard { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.g-good { background: var(--ok); border-color: var(--ok); color: #fff; } .g-easy { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
@media (prefers-reduced-motion: reduce) { .fface { transition: none; } }

/* matching */
.mgame { display: grid; gap: 10px; }
.mg-score { display: flex; justify-content: space-between; font-size: .9rem; background: var(--surface-2); padding: 8px 12px; border-radius: 12px; }
.mg-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mg-col { display: grid; gap: 8px; align-content: start; }
.mcell { min-height: 58px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font-size: .98rem; line-height: 1.35; transition: transform .1s, background .15s; }
.mcell.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--surface-2); }
.mcell.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); cursor: default; }
.mcell.no { border-color: var(--red); background: var(--red-soft); animation: shake .35s; }
.m-emoji { font-size: 2.1rem; line-height: 1; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.mg-summary { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; margin: 6px 0; }
.mg-summary b { font-family: var(--font-head); font-size: 2rem; } .mg-summary.ok { background: var(--ok-soft); color: var(--ok); } .mg-summary.no { background: var(--warn-soft); color: var(--warn); }
.mg-explain { list-style: none; padding: 0; display: grid; gap: 6px; margin: 8px 0 12px; }
.mg-explain li { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: .92rem; }
.mg-explain li.ok .ic { color: var(--ok); } .mg-explain li.no .ic { color: var(--red); }

/* quiz runner & tasks */
.qrun { display: grid; gap: 10px; }
.qr-top { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.qr-q { font-size: 1.08rem; font-weight: 600; white-space: pre-line; margin: 4px 0; } .qr-big { font-size: 4.5rem; text-align: center; line-height: 1.1; }
.qr-opts { display: grid; gap: 8px; } .qr-fb { border-radius: 14px; padding: 10px 12px; } .qr-fb p { margin: 4px 0 0; font-size: .92rem; }
.qr-fb.ok { background: var(--ok-soft); color: var(--ok); } .qr-fb.no { background: var(--red-soft); color: var(--red-ink); }
.rtask, .ttask, .stask { display: grid; gap: 10px; }
.rt-line { min-height: 54px; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1.5px dashed var(--line); border-radius: 14px; align-items: center; }
.rt-bank { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-tok { font-family: var(--font-en); border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 1rem; }
.rt-tok.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ta { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); font-family: var(--font-en); font-size: 1rem; }
.big { font-size: 1.15rem; } .vtask { margin-bottom: 12px; }
.cgap { font-family: var(--font-en); border: 1.5px solid var(--line); border-radius: 8px; padding: 2px 4px; background: var(--surface); max-width: 100%; }
.cgap.ok { border-color: var(--ok); background: var(--ok-soft); } .cgap.no { border-color: var(--red); background: var(--red-soft); }
.ctx-task .bubble { max-width: 100%; }

/* practice pages */
.scope { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.scope select { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 10px; background: var(--surface); color: var(--ink); font-size: .95rem; }
.ptabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a { flex: none; text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.ptabs a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.srs-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 14px; }
.srs-steps span { display: grid; justify-items: center; font-size: .72rem; color: var(--muted); text-align: center; }
.srs-steps b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .8rem; }
.center-row { justify-content: center; flex-wrap: wrap; }
.vsa-list { display: grid; gap: 10px; } .vsa p { margin: 6px 0 2px; }
.vword-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.vword-list a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.vword-list .grow { display: grid; } .nb-note { color: var(--ink-2); } .nb-flags { display: flex; gap: 4px; align-items: center; }
.nb-filter { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.nb-filter input, .nb-filter select { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--surface); }
.vres-topics { list-style: none; padding: 0; display: grid; gap: 6px; }
.vres-topics li { display: grid; grid-template-columns: 8.5em 1fr auto; gap: 8px; align-items: center; font-size: .9rem; } .vres-topics .pbar { margin: 0; }
.vres-reco { list-style: none; padding: 0; display: grid; gap: 8px; } .vres-reco li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vstats-3 { grid-template-columns: repeat(3, 1fr); }

@media (min-width: 640px) {
  .voverview { grid-template-columns: repeat(4, 1fr); }
  .vstats { grid-template-columns: repeat(3, 1fr); } .vstats-4 { grid-template-columns: repeat(4, 1fr); } .vstats-5 { grid-template-columns: repeat(5, 1fr); }
  .vquick { grid-template-columns: repeat(4, 1fr); }
  .vcf-grid { grid-template-columns: 1fr 1fr; } .vcf-grid .span2 { grid-column: span 2; }
  .vscene-grid, .vpic-grid { grid-template-columns: repeat(3, 1fr); }
  .grade-row { grid-template-columns: repeat(4, 1fr); } .seg-4 { grid-template-columns: repeat(4, 1fr); }
  .nb-filter { grid-template-columns: 1fr 12em auto; }
  .fcard { height: 400px; }
}

/* v5 logo: single-line ThinkOra wordmark (wider than the old two-line one) */
.text-logo img { height: 30px; max-width: 100%; }
.auth-logo img, .auth-logo .text-logo img { height: 54px !important; }
.text-logo.tiny img { height: 24px; }
.cert-logo .text-logo img { height: 46px; }
@media (min-width: 900px) { .text-logo img { height: 36px; } }
@media (max-width: 380px) { .text-logo img { height: 26px; } .auth-logo img, .auth-logo .text-logo img { height: 46px !important; } }

/* ===================== v5 dashboard polish ===================== */
.hello2 { background: linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--red) 7%, var(--surface)) 100%); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); }
.hello2 h1 { font-size: 1.35rem; margin: 0; } .hello2 p { font-size: .9rem; margin-top: 2px !important; }
.h2-kicker { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .02em; }
.h2-av { flex: none; }
.h2-streak { flex: none; display: grid; justify-items: center; gap: 0; text-decoration: none; min-width: 58px; padding: 8px 6px; border-radius: 16px; background: var(--surface-2); color: var(--muted); }
.h2-streak .ic { width: 22px; height: 22px; } .h2-streak b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; color: var(--ink); } .h2-streak span { font-size: .78rem; }
.h2-streak.on { background: linear-gradient(160deg, #ffedd5, #fed7aa); color: #c2410c; } .h2-streak.on b { color: #9a3412; }
[data-theme=dark] .h2-streak.on { background: #3b2310; }
.dash-hero { background: radial-gradient(120% 140% at 100% 0%, #4a1316 0%, #1c1c1c 48%, #111 100%); }
.dash-hero::before { content: ''; position: absolute; right: 10px; bottom: -18px; width: 150px; height: 150px; background: url(../assets/mark-dark.png) center/contain no-repeat; opacity: .07; z-index: 0; }
.dash-hero .btn-light { box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.today { margin-bottom: 14px; }
.today h2 { display: flex; align-items: center; gap: 8px; } .today h2 .ic { color: var(--red); width: 20px; height: 20px; }
.today-count { font-family: var(--font-head); font-weight: 700; background: var(--surface-2); border-radius: 99px; padding: 2px 12px; }
.today-count.ok { background: var(--ok-soft); color: var(--ok); }
.today-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.today-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); text-decoration: none; }
.today-list .grow { display: grid; min-width: 0; } .today-list small { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--ink); flex: none; } .td-ic .ic { width: 18px; height: 18px; }
.today-list li.done a { background: var(--ok-soft); } .today-list li.done .td-ic { background: var(--ok); color: #fff; } .today-list li.done b { text-decoration: line-through; opacity: .7; }
.td-ok { font-size: .8rem; font-weight: 700; color: var(--ok); }
.next-card { flex: 0 0 78%; max-width: 300px; display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.next-card.nc-vocab { background: linear-gradient(150deg, #eaf7ef, var(--surface)); } [data-theme=dark] .next-card.nc-vocab { background: var(--surface); }
.nc-go { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--red); font-size: .9rem; } .nc-go .ic { width: 16px; height: 16px; }
.kpi { transition: transform .15s; } .kpi:hover { transform: translateY(-2px); }
.p5 { background: #f3e9ff; color: #4a1f7a; } .p6 { background: #e6f7f7; color: #0c4d4d; }
[data-theme=dark] .p5, [data-theme=dark] .p6 { background: var(--surface-2); color: var(--ink); }
@media (min-width: 640px) { .practice-tiles:has(.p6) { grid-template-columns: repeat(3, 1fr); } }

/* Coming soon */
.soon-band { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 6px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .02em; }
.soon-band .ic { width: 15px; height: 15px; }
.soon-hero { background: radial-gradient(140% 140% at 100% 0%, #5b3a00 0%, #1b1b1b 55%) !important; }
.soon-ribbon { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 99px; margin: 6px 0 4px; font-size: .9rem; }
.soon-ribbon .ic { width: 16px; height: 16px; }
.soon-price { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; padding: 12px 16px; width: fit-content; }
.soon-price b { font-family: var(--font-head); font-size: 2.2rem; color: #fbbf24; line-height: 1; } .soon-price span { font-size: .88rem; opacity: .9; }
.soon-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.soon-cat { padding: 6px 12px; border-radius: 12px; font-weight: 600; font-size: .9rem; }
.soon-cat.c0 { background: #fff1db; color: #7a4100; } .soon-cat.c1 { background: #e8f1ff; color: #123a73; } .soon-cat.c2 { background: #e7f7ee; color: #0d5530; }
.soon-cat.c3 { background: #f3e9ff; color: #4a1f7a; } .soon-cat.c4 { background: #fdeceb; color: #8d1418; } .soon-cat.c5 { background: #e6f7f7; color: #0c4d4d; }
[data-theme=dark] .soon-cat { background: var(--surface-2) !important; color: var(--ink) !important; }
.acard-soon { opacity: .85; cursor: default; } .acard-soon .acard-foot { color: #b45309; }
.btn-disabled { opacity: .7; cursor: not-allowed; pointer-events: none; }

/* Start-level picker */
.start-pick { margin: 14px 0; } .start-pick h2 { display: flex; gap: 8px; align-items: center; } .start-pick h2 .ic { color: var(--red); }
.sp-grid { display: grid; gap: 10px; }
.sp-card { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 62px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); }
.sp-card.lvl-0 { border-left: 5px solid var(--l0); } .sp-card.lvl-1 { border-left: 5px solid var(--l1); } .sp-card.lvl-2 { border-left: 5px solid var(--l2); }
.sp-n { position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); }
.sp-card b { font-family: var(--font-head); font-size: 1.08rem; } .sp-card small { color: var(--muted); }
.sp-st { font-size: .82rem; color: var(--muted); } .sp-go { font-weight: 700; color: var(--red); font-size: .9rem; display: inline-flex; gap: 4px; align-items: center; } .sp-go .ic { width: 15px; height: 15px; }
.sp-run { box-shadow: 0 0 0 2px var(--ink), var(--shadow); } .sp-ok .sp-n { background: var(--ok); color: #fff; }
@media (min-width: 640px) { .sp-grid { grid-template-columns: repeat(3, 1fr); } }

/* Promo */
.promo-box summary { cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; } .promo-box summary .ic { color: var(--red); }
.promo-row { display: flex; gap: 8px; margin-top: 10px; } .promo-row input { flex: 1; text-transform: uppercase; font-family: var(--font-en); letter-spacing: .05em; min-height: 46px; }
.promo-free { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ok-soft); } .promo-free p { margin: 0 0 10px; color: var(--ok); font-weight: 600; }
.order-row.disc { color: var(--ok); } .promo-tag { font-family: var(--font-en); background: var(--ok-soft); padding: 1px 8px; border-radius: 8px; margin-left: 4px; }
.ok-text { color: var(--ok); } .no-text { color: var(--red); }

/* ===================== v5 admin ===================== */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.art-new { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.art-list { display: grid; gap: 10px; }
.art-row { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.art-thumb { flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--muted); }
.art-thumb img { width: 100%; height: 100%; object-fit: cover; } .art-thumb .ic { width: 26px; height: 26px; }
.art-main { display: grid; gap: 4px; text-decoration: none; min-width: 0; } .art-main b { font-family: var(--font-head); font-size: 1.05rem; }
.art-main .muted.small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-acts { display: flex; flex-direction: column; gap: 6px; }
.soon-cat.sm { padding: 2px 8px; font-size: .75rem; border-radius: 8px; }
.art-editor { display: grid; gap: 14px; }
.art-title input { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.lbl { display: block; font-size: .95rem; margin-bottom: 6px; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-opt { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 2px solid transparent; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; } .cat-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.cat-opt:has(input:checked)::before { content: '✓'; font-weight: 800; }
.ed-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ed-tabs button { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.ed-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); } .ed-tabs .ic { width: 16px; height: 16px; }
.ed-toolbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: var(--surface-2); }
.ed-toolbar button { border: 0; background: var(--surface); border-radius: 10px; padding: 6px 10px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font-size: .85rem; }
.ed-toolbar .ic { width: 15px; height: 15px; }
.ed-body { width: 100%; border: 1px solid var(--line); border-radius: 0 0 14px 14px; padding: 14px; font-size: 1.02rem; line-height: 1.9; background: var(--surface); min-height: 360px; resize: vertical; }
.ed-preview { border: 1px dashed var(--line); border-radius: 14px; padding: 16px; min-height: 360px; } .ed-preview .lead { color: var(--muted); font-size: 1.05rem; }
.ed-meta { margin: 8px 0 0; }
.ed-bar { position: relative; z-index: 2; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); }

.promo-form .quick-vals { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.promo-preview { display: flex; gap: 8px; align-items: center; } .promo-preview .ic { color: var(--red); }
.promo-list { display: grid; gap: 12px; margin-top: 14px; }
.promo-card { border-left: 5px solid var(--line); display: grid; gap: 6px; } .promo-card p { margin: 0; }
.promo-card.k-free_months { border-left-color: var(--ok); } .promo-card.k-percent { border-left-color: #2f5bd3; } .promo-card.k-amount { border-left-color: #f59e0b; }
.promo-code { font-size: 1.25rem; font-weight: 800; background: var(--surface-2); padding: 4px 12px; border-radius: 10px; border: 1.5px dashed var(--line); }
.promo-val { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; }
.k-free_months .promo-val { color: var(--ok); } .k-percent .promo-val { color: #2f5bd3; } .k-amount .promo-val { color: #b45309; }
.red-list { padding-left: 18px; margin: 6px 0; }
@media (min-width: 900px) { .promo-list { grid-template-columns: repeat(2, 1fr); } }

/* ===================== v10: banners, events, reviews, combos ===================== */
.bn-strip { margin: 4px 0 18px; }
.bn-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bn-track::-webkit-scrollbar { display: none; }
.bn-track > .bn-card { flex: 0 0 100%; scroll-snap-align: start; }
.bn-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.bn-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.bn-dots i.on { width: 18px; background: var(--red); }
.bn-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 124px; padding: 18px 18px 18px 20px; border-radius: 20px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.bn-card::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); z-index: -1; }
.bn-card::after { content: ""; position: absolute; inset: -50px auto auto 45%; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.08); z-index: -1; }
.bn-red { background: linear-gradient(135deg, #e5242a, #ff6a3d); } .bn-green { background: linear-gradient(135deg, #0f7a3a, #22b35e); }
.bn-blue { background: linear-gradient(135deg, #2f4ac9, #4f8cff); } .bn-amber { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #3b2300; }
.bn-purple { background: linear-gradient(135deg, #6d28d9, #a855f7); } .bn-dark { background: linear-gradient(135deg, #141414, #3a3a3a); }
.bn-txt { flex: 1; display: grid; gap: 4px; min-width: 0; }
.bn-txt b { font-size: 1.12rem; line-height: 1.3; font-family: 'Montserrat', 'Montserrat', sans-serif; }
.bn-txt small { opacity: .92; font-size: .9rem; line-height: 1.45; }
.bn-btn { justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; font-size: .85rem; background: rgba(255,255,255,.95); color: #141414; padding: 7px 14px; border-radius: 99px; }
.bn-btn svg { width: 14px; height: 14px; }
.bn-img { width: 104px; height: 104px; object-fit: cover; border-radius: 16px; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.bn-art { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.18); }
.bn-art svg { width: 30px; height: 30px; }
@media (max-width: 420px) { .bn-img { width: 84px; height: 84px; } .bn-txt b { font-size: 1.02rem; } }

.ev-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ev-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; }
.ev-row .grow { display: grid; gap: 2px; min-width: 0; }
.ev-row small { color: var(--muted); font-size: .82rem; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .ev-row small svg { width: 13px; height: 13px; }
.ev-row .ev-d { display: block; }
.ev-date { flex: none; width: 50px; height: 54px; border-radius: 12px; display: grid; place-content: center; text-align: center; background: var(--red-soft); color: var(--red-ink); line-height: 1.05; }
.ev-date b { font-size: 1.3rem; } .ev-date small { font-size: .72rem; color: inherit; justify-content: center; }
.ev-exam .ev-date { background: #e8eeff; color: #3b5bdb; } .ev-offer .ev-date { background: #e7f5ec; color: #17803d; }
.ev-holiday .ev-date { background: #fff4e2; color: #b45309; } .ev-launch .ev-date { background: #f3e8ff; color: #7e22ce; } .ev-other .ev-date { background: var(--surface-2); color: var(--ink-2); }

.stars { display: inline-flex; gap: 1px; color: #d6d3cc; font-size: .95rem; letter-spacing: 0; vertical-align: -1px; }
.stars i { font-style: normal; } .stars i.on { color: #f5a524; } .stars.lg { font-size: 1.35rem; }
.rv-sec h2 { display: flex; gap: 8px; align-items: center; }
.rv-mini { display: inline-flex; align-items: center; gap: 6px; }
.rv-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 10px; }
.rv-list li { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.rv-list p { margin: 6px 0 0; line-height: 1.55; }
.rv-ans { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: 10px; }
.rv-form { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick label { position: relative; cursor: pointer; font-size: 1.9rem; color: #d6d3cc; line-height: 1; }
.star-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.star-pick label:has(input:checked), .star-pick label:has(input:checked) ~ label { color: #f5a524; }

.plan-combo { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--red-ink); background: var(--red-soft); padding: 4px 10px; border-radius: 99px; justify-self: start; }
.plan-combo svg { width: 14px; height: 14px; }
.plan-courses { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
/* v11: reviewer name with school / workplace */
.rv-name { font-weight: 800; }
.rv-org { color: var(--muted); font-weight: 600; font-size: .88em; }
.rv-org-f { display: grid; gap: 4px; margin: 8px 0; font-size: .9rem; font-weight: 600; }

/* v12: BN | EN language switch (website header, app top bar, sign-in pages) */
.lang-pill { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font: 800 .72rem/1 var(--font-en); letter-spacing: .06em; -webkit-tap-highlight-color: transparent; }
.lang-pill span { display: grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 999px; transition: background .18s, color .18s; }
html:not([data-lang="en"]) .lang-pill .lp-bn, html[data-lang="en"] .lang-pill .lp-en { background: var(--ink); color: var(--bg); }
.lang-pill:hover { border-color: var(--ink); }
.lang-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.auth-lang { display: flex; justify-content: flex-end; max-width: 440px; margin: 0 auto 6px; }
@media (max-width: 480px) {
  .top-actions [data-action=theme] { display: none; } /* still in More → Dark Mode */
  .lang-pill span { min-width: 26px; height: 24px; padding: 0 5px; } .lang-pill { font-size: .66rem; padding: 2px; }
}

/* Vector emoji pictures (Twemoji SVG) */
img.emo { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; object-fit: contain; }
.vill i img.emo, .vintro-scene img.emo, .vh-scene i img.emo, .qr-big img.emo, .mcell img.emo, .cc-emoji img.emo { width: 1em; height: 1em; vertical-align: middle; object-fit: contain; }
.cc-emoji { display: inline-flex; gap: 8px; }
/* Status icons inside feedback messages */
.ic-ok, .ic-no, .ic-mid { width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: 4px; }
.ic-ok { color: var(--ok, #16a34a); } .ic-no { color: var(--danger, #dc2626); } .ic-mid { color: #f59e0b; }
.ic-fire { width: 1.1em; height: 1.1em; vertical-align: -.2em; color: #f97316; }
@media (max-width: 400px) {
  .hello2 .h2-av { display: none; }
  .hello2 h1 { font-size: 1.35rem; }
  .lang-pill span { height: 28px; }
  .back, a.back { min-height: 36px; display: inline-flex; align-items: center; }
}

/* ---------- v16: calmer, simpler student dashboard ---------- */
.dx-hello { display: flex; align-items: center; gap: 12px; background: none; border: 0; box-shadow: none; padding: 4px 2px 2px; margin-bottom: 10px; }
.dx-hello h1 { font-size: 1.4rem; margin: 0; }
.dx-hello p { margin: 2px 0 0 !important; font-size: .92rem; }
.dx-hello .h2-streak { min-width: 62px; }

.dx-hero { padding: 20px; margin-bottom: 16px; }
.dx-hero::after { width: 110px; height: 110px; right: -40px; top: -40px; opacity: .55; }
.dx-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dx-course { font-size: .88rem; font-weight: 600; opacity: .82; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-pct, .dx-free { flex: none; background: rgba(255,255,255,.16); border-radius: 99px; padding: 3px 12px; font-weight: 700; font-size: .85rem; }
.dx-label { display: block; margin-top: 14px; font-size: .82rem; font-weight: 600; opacity: .7; }
.dx-hero h2.dx-title { margin: 2px 0 4px; font-size: 1.3rem; line-height: 1.45; }
.dx-title .hc-level { display: inline; font-size: inherit; font-weight: 700; color: #fca5a5; }
.dx-title .ic { width: 22px; height: 22px; vertical-align: -3px; }
.dx-meta { display: flex; align-items: center; gap: 6px; font-size: .88rem !important; margin-bottom: 12px !important; }
.dx-meta .ic { width: 15px; height: 15px; }
.dx-hero .pbar { height: 8px; margin: 4px 0 0; }
.dx-sub { margin: 8px 0 14px !important; font-size: .88rem !important; }
.dx-rule { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0 !important; font-size: .82rem !important; opacity: .7 !important; }
.dx-rule .ic { width: 14px; height: 14px; }

.dx-card { margin-bottom: 16px; border-radius: 22px; }
.dx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dx-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.1rem; }
.dx-head h2 .ic { width: 20px; height: 20px; color: var(--red); }
.dx-head .link { display: inline-flex; align-items: center; gap: 2px; } .dx-head .link .ic { width: 14px; height: 14px; }
.dx-tbar { height: 6px; border-radius: 99px; background: var(--surface-2); margin: 12px 0 4px; overflow: hidden; }
.dx-tbar span { display: block; height: 100%; border-radius: inherit; background: var(--ok); transition: width .4s; }
.dx-cheer { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .9rem; }
.dx-cheer .ic { width: 18px; height: 18px; }

.dx-week-note { margin: 6px 0 2px; color: var(--muted); font-size: .88rem; }
.dx-prog .weekstrip { margin: 6px 0 12px; }
.dx-kpis { grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.dx-kpis .kpi { background: var(--surface-2); border: 0; box-shadow: none; border-radius: 16px; padding: 10px 4px; justify-items: center; text-align: center; text-decoration: none; color: inherit; }
.dx-kpis .kpi:hover { transform: none; }
.dx-kpis .kpi-ic { width: 30px; height: 30px; border-radius: 10px; margin-bottom: 4px; }
.dx-kpis .kpi-ic .ic { width: 16px; height: 16px; }
.dx-kpis .kpi b { font-size: 1.2rem; }
.dx-kpis .kpi > span:last-child { font-size: .8rem; line-height: 1.25; }
.dx-weak { margin-top: 12px; display: grid; gap: 6px; } .dx-weak > span { font-size: .88rem; font-weight: 600; }

.dx-sec { margin-bottom: 18px; }
.dx-sec h2 { font-size: 1.1rem; }
.practice-tiles.dx-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dx-tiles .ptile { min-height: 0; padding: 14px 6px 12px; align-content: start; justify-items: center; text-align: center; gap: 8px; border-radius: 18px; }
.dx-tiles .ptile b { font-size: .86rem; line-height: 1.3; }
.dx-tic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
[data-theme=dark] .dx-tic { background: rgba(255,255,255,.08); }
.dx-tiles .ptile .ic { position: static; width: 22px; height: 22px; }
.dx-tiles .p5 { background: #f3e8ff; color: #6b21a8; } .dx-tiles .p6 { background: #e0f2fe; color: #075985; }
[data-theme=dark] .dx-tiles .p5 { background: #2a1840; color: #d8b4fe; } [data-theme=dark] .dx-tiles .p6 { background: #0c2a3a; color: #7dd3fc; }

@media (min-width: 900px) {
  .practice-tiles.dx-tiles { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .dx-hero { padding: 26px 28px; } .dx-hero h2.dx-title { font-size: 1.5rem; }
  .dx-hero .btn-block { max-width: 360px; }
}
.dx-sec > .row-between { align-items: center; margin-bottom: 10px; } .dx-sec > .row-between h2 { margin: 0; }
.dx-sec > h2 { margin: 0 0 10px; }
@media (min-width: 900px) {
  .dx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .dx-rule { justify-content: flex-start; }
}

/* ===== v18: Montserrat + Hind Siliguri, no emoji, icon spacing, white logo on dark cards ===== */
body, button, input, select, textarea { font-family: var(--font); }
.chip { gap: 6px; }
:where(h1, h2, h3, h4, p, li, label, summary, small, .muted, .link) > svg.ic:not(:last-child) { margin-inline-end: .45em; }
.form-sec h2 > .ic, .today h2 > .ic, .start-pick h2 > .ic, .plan li > .ic, .promo-box summary > .ic, .mg-explain li > .ic,
.objectives li > .ic, .dx-head h2 > .ic, .cert-row > .ic, .rule-card > .ic { margin-inline-end: 0; }
.objectives li { gap: 10px; }
/* Quick Access + practice tiles: icon on its own row, clear gap above the text */
.vq, .ptile { align-content: start; gap: 4px; }
.vq .ic, .ptile .ic { position: static; display: block; margin-bottom: 14px; }
/* Word tiles: first letter instead of an emoji picture */
.vill i.vill-l { font: 800 calc(var(--s) * .44)/1 'Montserrat', sans-serif; color: hsl(var(--h) 45% 28%); filter: none; letter-spacing: -.02em; }
[data-theme=dark] .vill i.vill-l { color: hsl(var(--h) 70% 82%); }
.vh-scene i .ic { width: 22px; height: 22px; color: #fff; opacity: .92; }
.cc-emoji { display: inline-flex; gap: 14px; } .cc-emoji .ic { width: 34px; height: 34px; color: #fff; opacity: .92; }
/* White ThinkOra School logo (red dot stays red) only on dark cards */
.hero-logo { position: absolute !important; top: 16px; right: 18px; height: 24px; width: auto; z-index: 2; pointer-events: none; }
@media (max-width: 380px) { .hero-logo { height: 20px; top: 14px; right: 14px; } }

/* ===== v21: combo offers ===== */
.combo-offers { margin-top: 22px; }
.co-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .co-head h2 { margin: 0; font-size: 1.2rem; } .co-head p { margin: 2px 0 0; }
.co-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.co-grid { display: grid; gap: 14px; }
@media (min-width: 900px) { .co-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.co-card { border-radius: 22px; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.co-top { position: relative; overflow: hidden; padding: 18px 18px 16px; color: #fff; background: radial-gradient(130% 150% at 100% 0%, #3a1214 0%, #161616 60%); }
.co-1 .co-top { background: radial-gradient(130% 150% at 100% 0%, #5a1a12 0%, #1a1414 62%); }
.co-2 .co-top { background: linear-gradient(135deg, #e5242a 0%, #ff7a3d 100%); }
.co-top::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); right: -36px; top: -40px; }
.co-tag { display: inline-flex; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.16); }
.co-top h3 { margin: 10px 0 10px; font-size: 1.14rem; line-height: 1.35; }
.co-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.co-courses li { display: flex; align-items: center; gap: 8px; } .co-courses .ic { width: 16px; height: 16px; flex: none; opacity: .9; }
.co-courses .co-more { opacity: .85; font-size: .86rem; }
.co-plans { list-style: none; margin: 0; padding: 12px; display: grid; gap: 8px; }
.co-plans a { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.co-plans a:hover, .co-plans a:focus-visible { border-color: var(--red); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(229,36,42,.12); }
.co-plans .co-life a { border-color: var(--red); background: var(--red-soft); }
.co-dur { display: grid; gap: 2px; } .co-dur b { font-size: 1rem; } .co-dur em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--red); }
.co-price { display: grid; justify-items: end; gap: 1px; } .co-price b { font-size: 1.2rem; font-family: 'Montserrat', sans-serif; } .co-price small { font-size: .74rem; color: var(--muted); }
.co-go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; } .co-go .ic { width: 15px; height: 15px; }
.co-note { margin: 18px auto 8px; display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 520px; }
.combo-promo { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #e5242a 0%, #ff7a3d 100%); box-shadow: 0 12px 28px rgba(229,36,42,.22); }
.cp-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.18); flex: none; }
.cp-txt { display: grid; gap: 2px; flex: 1; } .cp-txt b { font-size: 1.05rem; } .cp-txt small { opacity: .9; }
.cp-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--red); flex: none; }

/* ===== v21: loading = the ThinkOra "t" filling up from inside, the red dot breathing ===== */
.t-load { position: relative; width: 58px; height: 58px; }
.boot .t-load { width: 84px; height: 84px; }
.tl-t { position: absolute; inset: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, transparent);
  -webkit-mask: url(/assets/t-mask.png) center / contain no-repeat; mask: url(/assets/t-mask.png) center / contain no-repeat; }
.tl-t::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 70%, var(--red)) 0%, var(--ink) 35%);
  transform: translateY(100%); animation: tl-fill 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
.tl-t::after { content: ''; position: absolute; inset: -20% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%);
  transform: translateX(-60%); animation: tl-shine 1.8s ease-in-out infinite; }
.tl-dot { position: absolute; left: 74.4%; top: 34.7%; width: 20.7%; height: 20.7%; border-radius: 50%; background: var(--red, #e5242a);
  transform: translate(-50%, -50%); animation: tl-dot 1.8s ease-in-out infinite; }
@keyframes tl-fill { 0% { transform: translateY(100%); } 55%, 70% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
@keyframes tl-shine { 0%, 45% { transform: translateX(-60%); } 75%, 100% { transform: translateX(60%); } }
@keyframes tl-dot { 0%, 100% { transform: translate(-50%, -50%) scale(.82); box-shadow: 0 0 0 0 rgba(229,36,42,.45); }
  55% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 9px rgba(229,36,42,0); } }
@media (prefers-reduced-motion: reduce) { .tl-t::before { animation: none; transform: none; } .tl-t::after, .tl-dot { animation: none; } }

/* v22: on phones, combo offers scroll sideways (swipe left/right), with dots */
.car-dots { display: none; }
@media (max-width: 760px) {
  .co-grid { position: relative; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    padding: 4px 16px 12px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .co-grid::-webkit-scrollbar { display: none; }
  .co-grid > .co-card { flex: 0 0 86%; max-width: 360px; scroll-snap-align: center; }
  .course-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    padding: 4px 16px 10px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .course-grid::-webkit-scrollbar { display: none; }
  .course-grid > .ccard { flex: 0 0 78%; max-width: 320px; min-width: 0; grid-template-columns: minmax(0, 1fr); scroll-snap-align: center; }
  .car-dots { display: flex; justify-content: center; gap: 7px; margin: 2px 0 8px; }
  .car-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .25s, background .25s; }
  .car-dots button.on { width: 22px; background: var(--red); }
}
