/* CCC Target Point — exam-hall look: ballpoint-ink blue, marigold highlighter, OMR-sheet bubbles.
   Layout: sticky top bar + centered 1180px container; bottom tab bar on phones. */
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --text: #121a33;
  --muted: #5d6886;
  --border: #dde2ef;
  --brand: #1f3fa8;          /* ink blue */
  --brand-ink: #13286e;
  --brand-soft: #e6ecff;
  --on-brand: #ffffff;
  --accent: #f2a007;         /* marigold */
  --accent-soft: #fff3d6;
  --target: #e0453a;         /* bullseye red */
  --ok: #138a52; --ok-soft: #dcf5e8;
  --bad: #d23a3a; --bad-soft: #fde4e4;
  --warn: #b86e00; --warn-soft: #fff1d6;
  --lv-basic: #138a52; --lv-adv: #1f3fa8; --lv-world: #c2410c;
  --shadow: 0 1px 2px rgba(18, 26, 51, .05), 0 10px 30px rgba(18, 26, 51, .07);
  --radius: 14px;
  --f-display: 'Baloo 2', 'Hind', system-ui, sans-serif;
  --f-body: 'Hind', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1122; --surface: #141b33; --surface-2: #1b2442; --text: #e8ecf8; --muted: #9aa5c6; --border: #28335a;
    --brand: #7f9cff; --brand-ink: #b8c8ff; --brand-soft: #1d2a57; --on-brand: #0c1122;
    --accent: #ffb932; --accent-soft: #3a2c0c; --target: #ff6b5e;
    --ok: #3ccf8a; --ok-soft: #10301f; --bad: #ff6b6b; --bad-soft: #3a1717; --warn: #ffb547; --warn-soft: #3a2a0d;
    --lv-basic: #3ccf8a; --lv-adv: #7f9cff; --lv-world: #ff8a4c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1122; --surface: #141b33; --surface-2: #1b2442; --text: #e8ecf8; --muted: #9aa5c6; --border: #28335a;
  --brand: #7f9cff; --brand-ink: #b8c8ff; --brand-soft: #1d2a57; --on-brand: #0c1122;
  --accent: #ffb932; --accent-soft: #3a2c0c; --target: #ff6b5e;
  --ok: #3ccf8a; --ok-soft: #10301f; --bad: #ff6b6b; --bad-soft: #3a1717; --warn: #ffb547; --warn-soft: #3a2a0d;
  --lv-basic: #3ccf8a; --lv-adv: #7f9cff; --lv-world: #ff8a4c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--text); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.ic.xl { width: 2.6rem; height: 2.6rem; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--f-mono); font-size: .78rem; }
.pre { white-space: pre-wrap; word-break: break-word; }
.center { text-align: center; }
.center-block { display: block; margin: 8px auto; }
.mt { margin-top: 18px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.gap { gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.span-all { grid-column: 1 / -1; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page { padding-block: 24px 110px; display: grid; gap: 22px; align-content: start; }
.page > * { min-width: 0; }
.narrow { max-width: 760px; }
.narrow2 { max-width: 880px; }
.page-head { display: grid; gap: 4px; }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
#demobar { background: var(--accent-soft); color: var(--text); font-size: .85rem; border-bottom: 1px solid var(--border); }
.demobar-in { display: flex; gap: 8px; align-items: center; padding-block: 7px; flex-wrap: wrap; }
.demobar-in .ic { color: var(--warn); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--f-display); font-size: 1.15rem; white-space: nowrap; }
.brand b { color: var(--brand); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--target); color: #fff; box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--target); }
.brand-mark .ic { width: 22px; height: 22px; }
.brand-mark.big { width: 58px; height: 58px; margin: 6px auto 12px; }
.brand-mark.big .ic { width: 34px; height: 34px; }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.topnav a:hover { color: var(--text); background: var(--surface-2); }
.topnav a.active { color: var(--brand); background: var(--brand-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.sm { min-width: 30px; height: 30px; padding: 0 6px; font-size: .85rem; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: .9rem; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: .75rem; }
.avatar.lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar.xl { width: 76px; height: 76px; font-size: 1.6rem; }

/* bottom nav (phones) */
.bottomnav { display: none; }
@media (max-width: 860px) {
  .topnav { display: none; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--border); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .bottomnav a { display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: .7rem; padding: 4px 0; border-radius: 10px; }
  .bottomnav a .ic { width: 22px; height: 22px; }
  .bottomnav a.active { color: var(--brand); }
  .bottomnav a.active .ic { background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; width: 42px; box-sizing: content-box; }
  body.playing .bottomnav { display: none; }
  .brand-text { font-size: 1.02rem; }
}
@media (max-width: 1180px) and (min-width: 861px) { .topnav a { padding: 8px 8px; font-size: .93rem; } }
@media (max-width: 860px) { .brand-text { font-size: 1.08rem; letter-spacing: -.01em; } .brand-text b { color: #e85d04; } }
@media (max-width: 400px) { .brand { gap: 7px; } .brand-mark { width: 32px; height: 32px; } .brand-mark .ic { width: 19px; height: 19px; } .brand-text { font-size: .98rem; } .top-actions { gap: 6px; } .top-actions .icon-btn { min-width: 34px; height: 34px; } .top-actions .btn-sm { padding: 6px 10px; } }
@media (max-width: 340px) { .brand-text { font-size: .9rem; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.2; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-success { background: var(--ok); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-white { background: #fff; color: #13286e; }
.btn-outline-white { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { padding: 6px 11px; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 1.04rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; width: fit-content; }

/* ---------- cards & badges ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pad { padding: 20px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; letter-spacing: .02em; }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.lv-basic { background: color-mix(in srgb, var(--lv-basic) 14%, transparent); color: var(--lv-basic); }
.lv-advanced { background: color-mix(in srgb, var(--lv-adv) 14%, transparent); color: var(--lv-adv); }
.lv-world { background: color-mix(in srgb, var(--lv-world) 14%, transparent); color: var(--lv-world); }
.st-live { background: var(--bad-soft); color: var(--bad); }
.st-upcoming { background: var(--accent-soft); color: var(--warn); }
.st-ended { background: var(--surface-2); color: var(--muted); }
.s-published { background: var(--ok-soft); color: var(--ok); }
.s-pending { background: var(--warn-soft); color: var(--warn); }
.s-rejected { background: var(--bad-soft); color: var(--bad); }
.s-draft { background: var(--surface-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.price { margin-left: auto; font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }
.price.free { color: var(--ok); }
.price.paid { color: var(--text); }
.price .ic { color: var(--warn); width: .95em; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
@media (max-width: 620px) { .hscroll { grid-auto-columns: 82%; } }

.qcard-sm { display: grid; gap: 8px; padding: 18px; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; align-content: start; }
.qcard-sm:hover, .course-card:hover, .comp-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.qcard-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qcard-sm h3 { font-size: 1.05rem; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; align-items: center; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.neg { color: var(--bad); font-weight: 600; }

.course-card { overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; display: grid; }
.course-thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255, 255, 255, .85); max-width: 100%; }
.price-chip { position: absolute; right: 10px; top: 10px; background: rgba(0, 0, 0, .55); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.course-body { padding: 14px 16px 16px; display: grid; gap: 4px; }

.comp-card { display: grid; gap: 10px; padding: 18px; color: var(--text); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.comp-card.st-bg-live { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.prize { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--warn); font-size: .92rem; }
.prize.big { font-size: 1rem; background: var(--accent-soft); padding: 10px 14px; border-radius: 10px; }
.countdown { font-size: .88rem; border-top: 1px dashed var(--border); padding-top: 9px; font-variant-numeric: tabular-nums; }
.countdown b { color: var(--target); }

/* ---------- hero ---------- */
.hero { background: #13286e; color: #fff; position: relative; overflow: hidden; }
.hero::before { /* OMR answer-sheet bubbles */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, transparent 5px, rgba(255, 255, 255, .9) 5.5px, rgba(255, 255, 255, .9) 6.5px, transparent 7px);
  background-size: 26px 26px; mask-image: linear-gradient(100deg, transparent 35%, #000 85%); -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; border-radius: 50%; border: 46px solid rgba(242, 160, 7, .18); box-shadow: 0 0 0 46px rgba(224, 69, 58, .12); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr .9fr; gap: 34px; align-items: center; padding-block: 44px 48px; }
.hero-copy { display: grid; gap: 16px; min-width: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: #fff; }
.hero h1::after { content: ""; display: block; width: 110px; height: 8px; margin-top: 10px; background: #f2a007; border-radius: 4px; transform: skewX(-12deg); }
.hero p { color: #cfd8ff; font-size: 1.06rem; max-width: 56ch; }
.pill { display: inline-flex; gap: 6px; align-items: center; width: fit-content; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; font-size: .85rem; }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.1; color: #ffd36a; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .82rem; color: #b9c5f5; }
.hero-card .comp-card { box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-block: 30px 34px; } }

.home { gap: 34px; }
.home section { display: grid; gap: 14px; min-width: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sec-head h2 { display: flex; gap: 8px; align-items: center; }
.sec-head h2 .ic { color: var(--target); }
.sec-head a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: .9rem; white-space: nowrap; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -2px; }
.level-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); color: var(--text); position: relative; transition: transform .15s, box-shadow .15s; }
.level-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.level-card div { display: grid; min-width: 0; }
.level-card b { font-family: var(--f-display); font-size: 1.1rem; }
.level-card span { font-size: .85rem; color: var(--muted); }
.level-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none; }
.level-ic .ic { width: 24px; height: 24px; }
.lvc-basic .level-ic { background: color-mix(in srgb, var(--lv-basic) 15%, transparent); color: var(--lv-basic); }
.lvc-advanced .level-ic { background: color-mix(in srgb, var(--lv-adv) 15%, transparent); color: var(--lv-adv); }
.lvc-world .level-ic { background: color-mix(in srgb, var(--lv-world) 15%, transparent); color: var(--lv-world); }
.level-n { margin-left: auto; font-family: var(--f-display); font-size: 1.5rem !important; font-weight: 700; color: var(--text) !important; opacity: .25; }
@media (max-width: 760px) { .levels { grid-template-columns: 1fr; } }

.split { grid-template-columns: 1.3fr 1fr; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.cta-card { display: grid; gap: 12px; justify-items: start; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.cta-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); color: #2a1a00; }
.cta-ic .ic { width: 24px; height: 24px; }
.features { grid-template-columns: repeat(4, 1fr) !important; gap: 14px !important; }
.feature { display: grid; gap: 4px; padding: 4px 2px; }
.feature .ic { width: 26px; height: 26px; color: var(--brand); margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr) !important; } }

/* leaderboard */
.lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lb li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.lb li:nth-child(odd) { background: var(--surface-2); }
.lb li.me { outline: 2px solid var(--brand); }
.rank { width: 26px; text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rank.r1 { color: #c88a00; } .rank.r2 { color: #8a94a8; } .rank.r3 { color: #b8642c; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb-score { font-variant-numeric: tabular-nums; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.pod { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.pod b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pod-bar { width: 100%; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 12px 12px 0 0; color: #fff; margin-top: 6px; }
.pod-bar span { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.p1 .pod-bar { height: 130px; background: #d99a0b; } .p2 .pod-bar { height: 100px; background: #7d8aa8; } .p3 .pod-bar { height: 80px; background: #b8642c; }

/* filters */
.filters { padding: 14px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 11px; padding: 0 12px; border: 1px solid var(--border); margin-bottom: 4px; }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 11px 0; outline: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button, .seg button, .seg a { border: 1px solid var(--border); background: var(--surface); padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg { display: inline-flex; background: var(--surface-2); padding: 4px; border-radius: 12px; gap: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.seg button, .seg a { border: 0; background: none; border-radius: 9px; }
.seg .on { background: var(--surface); box-shadow: var(--shadow); color: var(--brand); font-weight: 600; }
.seg.big a { padding: 9px 16px; }
.cnt { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: .78rem; }
select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }

/* detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }
.detail-main { display: grid; gap: 16px; min-width: 0; }
.detail aside { display: grid; gap: 12px; position: sticky; top: 80px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.facts div { display: grid; justify-items: center; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 12px 6px; text-align: center; }
.facts .ic { color: var(--brand); }
.facts b { font-family: var(--f-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.facts span { font-size: .78rem; color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.rules { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; }
.rules ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: .92rem; }
.action-box { display: grid; gap: 10px; }
.comp-info { display: grid; gap: 10px; }
.note { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; background: var(--brand-soft); color: var(--text); font-size: .9rem; }
.note .ic { color: var(--brand); margin-top: 3px; }
.note.ok { background: var(--ok-soft); }
.note.ok .ic { color: var(--ok); }

/* ---------- play ---------- */
.play-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); }
.play-head-in { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.play-title { flex: 1; min-width: 0; display: grid; gap: 6px; }
.play-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .3s; }
.timer { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: 1.05rem; padding: 7px 12px; border-radius: 10px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.timer.warn { background: var(--bad-soft); color: var(--bad); animation: pulse 1s infinite; }
.play-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; padding-block: 20px 40px; align-items: start; }
@media (max-width: 860px) { .play-body { grid-template-columns: 1fr; } }
.qbox { display: grid; gap: 18px; min-width: 0; }
.qno { font-weight: 700; color: var(--brand); font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; }
.qtext { font-size: 1.18rem; font-weight: 500; line-height: 1.5; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .12s, background .12s; }
button.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.opt-k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--muted); font-weight: 700; font-size: .85rem; flex: none; color: var(--muted); }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.sel .opt-k { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } /* filled OMR bubble */
.opts.sm .opt { padding: 9px 12px; cursor: default; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .opt-k { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrongsel { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrongsel .opt-k { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt > .ic { margin-left: auto; }
.qnav { gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; }
.chip-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-size: .85rem; display: inline-flex; gap: 6px; align-items: center; }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--warn); }
.palette { display: grid; gap: 12px; position: sticky; top: 90px; }
.pal { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 7px; }
.pal button { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .85rem; font-variant-numeric: tabular-nums; max-width: 100%; }
.pal button.a { background: var(--ok); border-color: var(--ok); color: #fff; }
.pal button.m { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.pal button.cur { outline: 3px solid var(--brand); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.lg { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid var(--border); }
.lg.a { background: var(--ok); border-color: var(--ok); } .lg.m { border-color: var(--accent); }

/* ---------- result ---------- */
.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: 26px; align-items: center; }
@media (max-width: 680px) { .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .result-hero .row { justify-content: center; } }
.ring { --p: 0; width: 160px; height: 160px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring > div { width: 124px; height: 124px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; align-content: center; }
.ring b { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; }
.ring span { font-size: .8rem; color: var(--muted); }
.result-info { display: grid; gap: 12px; min-width: 0; }
.stats4 { display: flex; flex-wrap: wrap; gap: 10px; }
.stats4 div { display: grid; padding: 8px 14px; border-radius: 11px; background: var(--surface-2); min-width: 74px; }
.stats4 b { font-family: var(--f-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.stats4 span { font-size: .76rem; color: var(--muted); }
.s-score { background: var(--brand-soft) !important; } .s-score b { color: var(--brand); }
.s-ok b { color: var(--ok); } .s-bad b { color: var(--bad); } .s-rank b { color: var(--warn); }
.review { display: grid; gap: 12px; }
.rv { display: grid; gap: 12px; border-left: 4px solid var(--border); }
.rv-ok { border-left-color: var(--ok); } .rv-bad { border-left-color: var(--bad); }
.rvb-ok { background: var(--ok-soft); color: var(--ok); } .rvb-bad { background: var(--bad-soft); color: var(--bad); }
.expl { display: flex; gap: 8px; background: var(--accent-soft); padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.expl .ic { color: var(--warn); margin-top: 3px; }

/* ---------- course ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; max-width: 100%; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.placeholder { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); background: var(--surface-2); }
.lesson-view { display: grid; gap: 14px; }
.notes { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.course-hero { aspect-ratio: 16 / 6; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .85); max-width: 100%; }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.lessons li > a, .lessons li > span { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.lessons li > a:hover { background: var(--surface-2); }
.lessons li.on > a { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.ln { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex: none; color: var(--muted); }
.ln .ic { width: 14px; height: 14px; }

/* ---------- auth & forms ---------- */
.auth { justify-items: center; }
.auth-card { width: 100%; max-width: 430px; display: grid; gap: 16px; padding: 28px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; min-width: 0; }
.form input:not([type=radio]):not([type=checkbox]):not([type=file]), .form textarea, .form select, .qedit input, .qedit textarea { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-weight: 400; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--brand); outline: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); }
textarea { resize: vertical; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.form .card { display: grid; gap: 14px; }
.admin-box { display: grid; gap: 12px; background: var(--brand-soft); border-radius: 12px; padding: 14px; }
.file-btn { cursor: pointer; }
.qedit-list { display: grid; gap: 12px; }
.qedit { display: grid; gap: 10px; }
.opt-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 620px) { .opt-edit { grid-template-columns: 1fr; } }
.oe { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; border: 1.5px solid var(--border); border-radius: 10px; padding: 4px 4px 4px 10px; }
.oe input[type=text], .oe input:not([type]) { border: 0 !important; padding: 7px 4px !important; background: none !important; outline: none !important; min-width: 0; }
.oe.right { border-color: var(--ok); background: var(--ok-soft); }
.oe.right .opt-k { background: var(--ok); color: #fff; border-color: var(--ok); }
.oe input[type=radio] { accent-color: var(--ok); width: 18px; height: 18px; flex: none; }
.oe .opt-k { width: 26px; height: 26px; font-size: .8rem; }
.sticky-save { position: sticky; bottom: 12px; z-index: 5; }
@media (max-width: 860px) { .sticky-save { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-opt input { position: absolute; opacity: 0; }
.thumb-opt span { display: block; width: 56px; height: 36px; border-radius: 8px; cursor: pointer; border: 3px solid transparent; }
.thumb-opt input:checked + span { border-color: var(--text); }

/* ---------- dashboard & admin ---------- */
.profile { display: flex; gap: 18px; align-items: center; padding: 22px; flex-wrap: wrap; }
.profile-info { display: grid; gap: 4px; flex: 1; min-width: 200px; justify-items: start; }
.profile-info h1 { display: flex; gap: 8px; align-items: center; font-size: 1.6rem; }
.pstats { display: flex; gap: 10px; flex-wrap: wrap; }
.pstats div { display: grid; text-align: center; padding: 10px 16px; background: var(--surface-2); border-radius: 12px; min-width: 84px; }
.pstats b { font-family: var(--f-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.pstats span { font-size: .76rem; color: var(--muted); }
.list { display: grid; gap: 6px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); flex-wrap: wrap; }
.list-item > div:nth-child(2) { flex: 1; min-width: 160px; }
.li-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.admin-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.admin-nav a.on { background: var(--surface); border-color: var(--border); color: var(--brand); box-shadow: var(--shadow); }
.admin-body { display: grid; gap: 4px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.kpi .ic { color: var(--brand); width: 22px; height: 22px; }
.kpi b { font-family: var(--f-display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.kpi.accent .ic { color: var(--warn); }
.kpi.inline { display: flex; align-items: center; gap: 8px; padding: 8px 14px; }
.kpi.inline b { font-size: 1.2rem; }

/* ---------- misc ---------- */
.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 16px; color: var(--muted); text-align: center; }
.empty .ic { width: 34px; height: 34px; opacity: .6; }
.empty.big { padding: 70px 16px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.skel { height: 150px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s; text-align: center; }
.toast.show { opacity: 1; transform: none; }
.toast-err { background: var(--bad); color: #fff; }
.toast-warn { background: var(--accent); color: #2a1a00; }

#modal { position: fixed; inset: 0; z-index: 90; display: none; }
#modal.open { display: grid; place-items: center; padding: 16px; }
.modal-back { position: absolute; inset: 0; background: rgba(8, 12, 28, .55); }
.modal-box { position: relative; background: var(--surface); border-radius: 18px; padding: 22px; width: min(100%, 420px); display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); max-height: 90vh; overflow: auto; }
.modal-box.wide { width: min(100%, 680px); }
.modal-msg { font-size: 1.05rem; }
.umenu { display: grid; gap: 4px; }
.umenu-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.umenu-head > div { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.umenu a, .umenu button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; font-weight: 500; }
.umenu a:hover, .umenu button:hover { background: var(--surface-2); }

footer.site-foot { border-top: 1px solid var(--border); padding-block: 26px 120px; color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#splash { display: grid; place-items: center; min-height: 60vh; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- home quick tiles ---------- */
.hero-in { padding-block-end: 76px; }
.tiles-wrap { position: relative; z-index: 2; margin-top: -48px; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 18px 8px 16px; min-height: 120px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.25; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--target); }
.tile-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #13286e; color: #fff; }
.tile:nth-child(2n) .tile-ic { background: var(--target); }
.tile-ic .ic { width: 26px; height: 26px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; } .tile { min-height: 104px; font-size: .86rem; padding: 14px 6px; } .tile-ic { width: 44px; height: 44px; } }

/* ---------- FAQ ---------- */
.faq-sec h2 { font-size: 1.8rem; }
.faq { padding: 6px 20px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 16px 0; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; flex: none; margin-top: 7px; border: 6px solid transparent; border-left-color: var(--muted); border-right: 0; transition: transform .2s; }
.faq details[open] summary { color: var(--accent-ink, var(--warn)); }
.faq details[open] summary::before { transform: rotate(90deg); border-left-color: var(--warn); }
.faq details p { padding: 0 0 16px 18px; color: var(--text); max-width: 75ch; }

/* ---------- shortcut keys ---------- */
.keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 420px) { .keys-grid { grid-template-columns: 1fr; } }
.keys-card { display: grid; gap: 10px; min-width: 0; }
.keys { width: 100%; border-collapse: collapse; font-size: .92rem; }
.keys td { padding: 8px 6px; border-bottom: 1px dashed var(--border); vertical-align: top; }
.keys tr:last-child td { border-bottom: 0; }
.keys td:first-child { white-space: nowrap; width: 1%; }
kbd { display: inline-block; font-family: var(--f-mono); font-size: .78rem; padding: 2px 7px; margin: 0 2px; border-radius: 6px; border: 1px solid var(--border); border-bottom-width: 3px; background: var(--surface-2); color: var(--text); }

/* ---------- study material ---------- */
.mat-card { overflow: hidden; color: var(--text); display: grid; transition: transform .15s, box-shadow .15s; }
.mat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mat-thumb { aspect-ratio: 16 / 7; display: grid; place-items: center; background: var(--surface-2); color: var(--target); max-width: 100%; }
.mini-thumb { display: inline-block; width: 52px; height: 30px; border-radius: 6px; background: var(--surface-2); vertical-align: middle; }
.mini-thumb.lg { width: 120px; height: 64px; }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ---------- admin shell (left sidebar) ---------- */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 62px); }
.admin-side { position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); align-self: start; height: calc(100vh - 62px); overflow-y: auto; background: #101b45; color: #c9d3f5; padding: 18px 12px; display: flex; flex-direction: column; gap: 14px; padding-left: max(12px, env(safe-area-inset-left, 0px)); }
.side-head { display: flex; align-items: center; gap: 10px; padding: 4px 10px 12px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-family: var(--f-display); font-size: 1.15rem; }
.side-head .ic { color: #f2a007; }
.side-nav { display: grid; gap: 14px; }
.side-group { display: grid; gap: 2px; }
.side-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #7f8dbf; padding: 6px 12px 4px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #c9d3f5; font-weight: 500; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.on { background: #f2a007; color: #1d1300; font-weight: 700; }
.side-cta { margin-top: auto; }
.admin-main { padding: 24px max(16px, env(safe-area-inset-right, 0px)) 110px 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.6rem; }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 8px max(10px, env(safe-area-inset-left, 0px)); overflow-x: auto; overflow-y: hidden; }
  .side-head, .side-label, .side-cta { display: none; }
  .side-nav, .side-group { display: flex; gap: 4px; }
  .side-nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 110px max(16px, env(safe-area-inset-left, 0px)); }
}
.kpis.k6 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi small { font-size: .9rem; color: var(--muted); font-family: var(--f-body); }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .split2 { grid-template-columns: 1fr; } }
.split2 > .card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; font-size: .9rem; }
.hlist li > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlist li i { grid-column: 1 / -1; grid-row: 2; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--w), var(--surface-2) var(--w)); }
.hlist li b { font-variant-numeric: tabular-nums; }

/* 14-day bar chart */
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; margin-top: 12px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; gap: 4px; text-align: center; min-width: 0; }
.bar-val { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.bar-track { position: relative; border-radius: 6px 6px 2px 2px; background: var(--surface-2); overflow: hidden; }
.bar-track i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; }
.bar-v { background: var(--brand); }
.bar-u { background: var(--accent); left: 30% !important; right: 30% !important; }
.bar-lbl { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-sq.v { background: var(--brand); } .lg-sq.u { background: var(--accent); }

/* ---------- colorful tiles v2 ---------- */
.tile { border: 0; color: #fff; position: relative; overflow: hidden; box-shadow: 0 10px 24px -10px var(--tc, rgba(0,0,0,.4)); }
.tile::after { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: rgba(255,255,255,.14); pointer-events: none; }
.tile::before { content: ""; position: absolute; width: 70px; height: 70px; left: -24px; bottom: -30px; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }
.tile:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 30px -12px var(--tc, rgba(0,0,0,.5)); }
.tile .tile-ic { background: rgba(255,255,255,.22) !important; color: #fff; width: 56px; height: 56px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); position: relative; z-index: 1; }
.tile .tile-ic .ic { width: 28px; height: 28px; }
.tile-t { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tile.t1 { background: linear-gradient(135deg, #ff6a3d, #e0245e); --tc: rgba(224,36,94,.55); }
.tile.t2 { background: linear-gradient(135deg, #2563eb, #1e3a8a); --tc: rgba(37,99,235,.55); }
.tile.t3 { background: linear-gradient(135deg, #10b981, #047857); --tc: rgba(16,185,129,.55); }
.tile.t4 { background: linear-gradient(135deg, #8b5cf6, #5b21b6); --tc: rgba(139,92,246,.55); }
.tile.t5 { background: linear-gradient(135deg, #f59e0b, #d9480f); --tc: rgba(245,158,11,.55); }
.tile.t6 { background: linear-gradient(135deg, #06b6d4, #0e7490); --tc: rgba(6,182,212,.55); }

/* ---------- colorful footer ---------- */
footer.site-foot { padding: 0; margin-top: 30px; background: linear-gradient(160deg, #0f1d52 0%, #13286e 45%, #3b1c6e 100%); color: #cfd8ff; border: 0; position: relative; }
.foot-band { height: 6px; background: linear-gradient(90deg, #ff6a3d, #f2a007, #10b981, #06b6d4, #8b5cf6, #e0245e); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px; padding-block: 40px 28px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.foot-col h4 { color: #fff; font-size: 1.05rem; position: relative; padding-bottom: 8px; }
.foot-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: #f2a007; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: #cfd8ff; }
.foot-col a:hover { color: #ffd36a; }
.foot-brand { color: #fff; }
.foot-brand b { color: #ffd36a; }
.foot-about p { color: #b9c5f5; font-size: .93rem; max-width: 46ch; }
.foot-social { display: flex; gap: 10px; flex-wrap: wrap; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff !important; transition: transform .15s; }
.soc:hover { transform: translateY(-2px); }
.soc .ic { width: 20px; height: 20px; }
.soc-youtube { background: #ff0033; } .soc-whatsapp { background: #22c55e; } .soc-telegram { background: #229ed9; } .soc-instagram { background: linear-gradient(45deg, #f59e0b, #e0245e, #8b5cf6); } .soc-facebook { background: #1877f2; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { color: #ffd36a; margin-top: 3px; }
.muted-l { color: #8f9cd0; }
.foot-bottom { background: rgba(0,0,0,.22); }
.foot-bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 14px calc(14px + 70px); font-size: .86rem; }
@media (min-width: 861px) { .foot-bottom-in { padding-block: 14px; } }
.foot-bottom a { color: #cfd8ff; display: inline-flex; gap: 6px; align-items: center; }
.admin-shell + * { }
.video.placeholder { aspect-ratio: 16 / 4; min-height: 110px; }
.table td.actions { display: table-cell; text-align: right; white-space: nowrap; } .table td.actions > * { margin: 2px 0 2px 6px; } .role-sel { padding: 7px 10px; }
.ver { opacity: .6; margin-left: 6px; }

/* ================= PROFESSIONAL COURSES ================= */
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptag { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ptag b { font-family: var(--f-display); font-size: 1.15rem; color: var(--text); }
.ptag b.free { color: var(--ok); }
.ptag s { color: var(--muted); font-size: .9rem; }
.ptag em { font-style: normal; font-weight: 700; font-size: .8rem; color: var(--ok); background: var(--ok-soft); padding: 1px 7px; border-radius: 6px; }
.ptag.big b { font-size: 2rem; }
.ptag.big s { font-size: 1.05rem; }
.course-card .course-body { gap: 6px; }
.enrolled-chip { position: absolute; left: 10px; top: 10px; background: var(--ok); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.continue-strip { display: flex; align-items: center; gap: 14px; color: var(--text); background: var(--brand-soft); border-color: transparent; }
.continue-strip > div { display: grid; flex: 1; }
.continue-strip > .ic { color: var(--brand); width: 24px; height: 24px; }
.btn-buy { background: linear-gradient(135deg, #e0245e, #ff6a3d); color: #fff; box-shadow: 0 8px 20px -8px rgba(224,36,94,.7); }
.btn-buy:hover { filter: brightness(1.06); }

.c-hero { background: #101b45; color: #e8ecff; }
.c-hero-in { padding-block: 34px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
.c-hero-text { display: grid; gap: 12px; min-width: 0; }
.c-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.c-sub { font-size: 1.1rem; color: #cfd8ff; max-width: 60ch; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: #b9c5f5; }
.crumbs a { color: #ffd36a; font-weight: 600; }
.c-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #cfd8ff; align-items: center; }
.c-meta span { display: inline-flex; gap: 6px; align-items: center; }
.c-best { background: #f2a007 !important; color: #2a1a00 !important; }
.c-by { font-size: .92rem; color: #cfd8ff; }
.c-by b { color: #ffd36a; }
.c-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; padding-block: 26px 120px; align-items: start; }
.c-main { display: grid; gap: 24px; min-width: 0; grid-column: 1; grid-row: 1; }
.c-buy { grid-column: 2; grid-row: 1; margin-top: -230px; position: sticky; top: 84px; overflow: hidden; box-shadow: var(--shadow); z-index: 3; }
.c-buy-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: rgba(255,255,255,.9); max-width: 100%; }
.c-buy-thumb .video { width: 100%; border-radius: 0; }
.c-buy-in { padding: 18px; display: grid; gap: 12px; }
.c-buy h4 { margin-top: 6px; font-family: var(--f-display); }
.inc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.inc li { display: flex; gap: 10px; align-items: center; }
.inc .ic { color: var(--brand); }
.secure { display: flex; gap: 6px; align-items: flex-start; }
.secure .ic { color: var(--ok); margin-top: 2px; }
.mini-prog { display: grid; gap: 4px; }
.learn h2, .c-sec h2, .curr-head h2 { font-size: 1.35rem; }
.learn ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.learn li { display: flex; gap: 10px; font-size: .95rem; }
.learn li .ic { color: var(--ok); flex: none; margin-top: 3px; }
@media (max-width: 680px) { .learn ul { grid-template-columns: 1fr; } }
.curr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: -10px; }
.curr { overflow: hidden; }
.curr details { border-bottom: 1px solid var(--border); }
.curr details:last-child { border-bottom: 0; }
.curr summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; padding: 15px 18px; background: var(--surface-2); font-weight: 700; }
.curr summary::-webkit-details-marker { display: none; }
.curr summary span:first-child::before { content: "▸"; display: inline-block; margin-right: 10px; transition: transform .2s; color: var(--muted); }
.curr details[open] summary span:first-child::before { transform: rotate(90deg); }
.curr ul { list-style: none; margin: 0; padding: 6px 0; }
.curr li > a, .curr li > .lk { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text); font-size: .94rem; }
.curr li > a:hover { background: var(--brand-soft); }
.curr li .lt { flex: 1; min-width: 0; }
.curr li > .lk { color: var(--muted); }
.curr .ic { color: var(--muted); }
.pv { font-style: normal; color: var(--brand); font-weight: 700; text-decoration: underline; font-size: .85rem; }
.lockic { opacity: .7; }
.c-sec { display: grid; gap: 10px; }
.dots { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.instr { display: flex; gap: 16px; align-items: flex-start; }
.buy-bar { display: none; }
@media (max-width: 980px) {
  .c-hero-in, .c-body { grid-template-columns: 1fr; }
  .c-buy { grid-column: 1; grid-row: 1; margin-top: 0; position: static; }
  .c-main { grid-row: 2; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 45; background: var(--surface); border-top: 1px solid var(--border); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 -8px 20px rgba(0,0,0,.08); }
}
@media (min-width: 861px) and (max-width: 980px) { .buy-bar { bottom: 0; } }

/* ---- player ---- */
body.learning #sitefoot, body.learning .bottomnav { display: none; }
.learn-shell { display: grid; }
.learn-top { background: #101b45; color: #fff; position: sticky; top: calc(62px + env(safe-area-inset-top, 0px)); z-index: 30; }
.learn-top-in { display: flex; align-items: center; gap: 14px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
.back.light { color: #fff; }
.lt-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-prog { display: flex; align-items: center; gap: 8px; }
.ring-sm { --p: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#f2a007 calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring-sm span { width: 30px; height: 30px; border-radius: 50%; background: #101b45; display: grid; place-items: center; font-size: .66rem; font-weight: 700; }
.learn-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; min-height: calc(100vh - 120px); }
.learn-main { min-width: 0; }
.learn-main > .video { border-radius: 0; }
.learn-info { padding: 20px max(16px, env(safe-area-inset-left, 0px)) 120px; display: grid; gap: 16px; max-width: 920px; }
.learn-info h2 { font-size: 1.3rem; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); }
.tabs span { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; font-weight: 700; border-bottom: 3px solid transparent; }
.tabs .on { border-color: var(--brand); color: var(--brand); }
.lockbox { display: grid; place-items: center; align-content: center; gap: 10px; background: #101b45; color: #fff; text-align: center; padding: 20px; }
.lockbox span { color: #b9c5f5; }
.learn-side { border-left: 1px solid var(--border); background: var(--surface); position: sticky; top: calc(120px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 120px); overflow-y: auto; }
.ls-head { padding: 14px 16px; display: grid; gap: 8px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ls-sec-t { padding: 12px 16px 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
.ls-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 11px 16px; cursor: pointer; font-size: .92rem; color: var(--text); }
.ls-item:hover { background: var(--surface-2); }
.ls-item.cur { background: var(--brand-soft); font-weight: 600; }
.ls-ck { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); display: grid; place-items: center; flex: none; margin-top: 1px; color: var(--muted); }
.ls-ck .ic { width: 13px; height: 13px; }
.ls-item.done .ls-ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.ls-t { flex: 1; min-width: 0; }
@media (max-width: 980px) {
  .learn-body { grid-template-columns: 1fr; }
  .learn-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--border); }
  .learn-info { padding-bottom: 24px; }
  .lt-prog .small { display: none; }
}

/* ---- my courses ---- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 400px) { .grid2 { grid-template-columns: 1fr; } }
.my-course { display: grid; grid-template-columns: 120px minmax(0, 1fr); overflow: hidden; }
.mc-thumb { display: grid; place-items: center; color: rgba(255,255,255,.9); min-height: 100%; }
.mc-body { padding: 14px; display: grid; gap: 8px; }
.chk { display: flex !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---- certificate ---- */
.cert { background: #fffdf6; color: #1d2340; border-radius: 10px; padding: 14px; box-shadow: var(--shadow); max-width: 980px; margin: 0 auto; width: 100%; }
.cert-in { border: 3px double #c8961e; border-radius: 6px; padding: clamp(18px, 5vw, 50px); display: grid; gap: 12px; justify-items: center; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(242,160,7,.08), transparent 60%); }
.cert-top { display: flex; gap: 12px; align-items: center; text-align: left; }
.cert-top div { display: grid; }
.cert-top b { font-family: var(--f-display); font-size: 1.3rem; color: #13286e; }
.cert-top span { font-size: .85rem; color: #6b7190; }
.cert-title { font-family: var(--f-display); font-size: clamp(1.6rem, 5vw, 2.8rem); letter-spacing: .12em; color: #13286e; font-weight: 800; display: grid; }
.cert-title small { font-size: .38em; letter-spacing: .4em; color: #c8961e; }
.cert-p { color: #555b78; }
.cert-name { font-family: var(--f-display); font-size: clamp(1.8rem, 6vw, 3rem); color: #c8961e; border-bottom: 2px solid #e8d7a8; padding: 0 30px 4px; }
.cert-course { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; color: #13286e; }
.cert-foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: end; width: 100%; margin-top: 18px; }
.cert-foot > div { display: grid; gap: 2px; }
.cert-foot b { border-top: 1px solid #b9b0a0; padding-top: 6px; }
.cert-foot span { font-size: .8rem; color: #6b7190; }
.cert-seal { width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle, #f2c14e, #c8961e); color: #fff; display: grid !important; place-items: center; box-shadow: 0 0 0 4px #fff3cf, 0 0 0 6px #c8961e; }
.cert-seal .ic { width: 34px; height: 34px; }
.cert-no { font-size: .78rem; color: #8a8fa8; font-family: var(--f-mono); }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .topbar, #sitefoot, .bottomnav, .no-print, #demobar, #toasts { display: none !important; }
  body { background: #fff; }
  .page { padding: 0 !important; }
  .cert { box-shadow: none; max-width: none; }
}
.learn-top-in { flex-wrap: wrap; row-gap: 8px; } .lt-title { flex: 1 1 140px; }

/* ---- Syllabus chapter-wise + previous paper sets (v11) ---- */
.syl{display:block}
.syl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-top:10px}
.syl-ch{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;color:#1f2937;text-decoration:none;border:1px solid rgba(0,0,0,.06);transition:transform .15s}
.syl-ch:hover{transform:translateY(-2px)}
.syl-ch b{flex:0 0 32px;height:32px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:14px}
.syl-ch span{font-size:13.5px;font-weight:600;line-height:1.3}
.syl-ch.c0{background:#eef2ff}.syl-ch.c0 b{background:#4f46e5}
.syl-ch.c1{background:#fff7ed}.syl-ch.c1 b{background:#ea580c}
.syl-ch.c2{background:#ecfdf5}.syl-ch.c2 b{background:#059669}
.syl-ch.c3{background:#fdf2f8}.syl-ch.c3 b{background:#db2777}
.syl-ch.c4{background:#eff6ff}.syl-ch.c4 b{background:#2563eb}
.syl-ch.c5{background:#fefce8}.syl-ch.c5 b{background:#ca8a04}
.pp-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.pp-set{display:flex;flex-direction:column;align-items:center;min-width:86px;padding:10px 14px;border-radius:12px;background:linear-gradient(135deg,#f97316,#ec4899);color:#fff;font-weight:700;text-decoration:none}
.pp-set small{font-weight:500;opacity:.9}
.pp-set:hover{filter:brightness(1.07)}

/* ---- v12: 8 tiles, Full Forms, 200 Practice Tests ---- */
.tiles { grid-template-columns: repeat(8, 1fr); }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; } .tile { font-size: .8rem; min-height: 96px; padding: 12px 4px; } }
.tile.t7 { background: linear-gradient(135deg, #ec4899, #9d174d); --tc: rgba(236,72,153,.55); }
.tile.t8 { background: linear-gradient(135deg, #22c55e, #15803d); --tc: rgba(34,197,94,.55); }
.tests-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; color: #fff; text-decoration: none; background: linear-gradient(120deg, #1e3a8a, #4f46e5 55%, #db2777); box-shadow: 0 10px 24px -12px rgba(79,70,229,.7); }
.tests-banner:hover { filter: brightness(1.06); }
.tests-banner .tb-n { flex: 0 0 auto; font-size: 1.6rem; font-weight: 800; background: rgba(255,255,255,.18); border-radius: 12px; padding: 6px 12px; }
.tests-banner span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.tests-banner small { opacity: .9; }
.tests-top { display: grid; gap: 10px; margin-bottom: 16px; }
.tests-big { font-size: 1.6rem; color: var(--primary, #1e3a8a); }
.tests-block { margin: 18px 0; }
.tests-block h3 { margin: 0 0 10px; font-size: 1rem; }
.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.tnum { display: grid; place-items: center; gap: 0; padding: 10px 4px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s; }
.tnum:hover { transform: translateY(-2px); border-color: #4f46e5; }
.tnum b { font-size: 1.05rem; }
.tnum small { font-size: .7rem; color: var(--muted, #64748b); }
.tnum.good { background: #dcfce7; border-color: #22c55e; } .tnum.good small { color: #15803d; font-weight: 700; }
.tnum.ok { background: #fef9c3; border-color: #eab308; } .tnum.ok small { color: #a16207; font-weight: 700; }
.tnum.low { background: #fee2e2; border-color: #ef4444; } .tnum.low small { color: #b91c1c; font-weight: 700; }
.ff-tabs { margin-bottom: 12px; }
.ff-card { margin-top: 14px; }
.ff-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.ff-chn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #4f46e5; color: #fff; font-size: .85rem; }
.ff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.ff-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2, #f8fafc); }
.ff-s { flex: 0 0 auto; min-width: 64px; padding: 4px 8px; border-radius: 8px; background: linear-gradient(135deg, #f97316, #ec4899); color: #fff; text-align: center; font-size: .85rem; }
.ff-f { font-weight: 600; }
.ff-facts { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }

/* ---- v13: E-Book store (A4 covers) ---- */
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .eb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.eb-card { padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; }
.eb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.eb-card.hl { box-shadow: 0 0 0 3px var(--target, #f59e0b); }
.eb-cover { aspect-ratio: 1 / 1.414; width: 100%; border-radius: 8px; background: #e2e8f0 center / cover no-repeat; box-shadow: 0 8px 18px -8px rgba(15,23,42,.45), inset 0 0 0 1px rgba(0,0,0,.06); position: relative; overflow: hidden; }
.eb-cover::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); }
.eb-gen { background: linear-gradient(160deg, #1e3a8a, #13286e 60%, #0b1640); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14px; gap: 10px; }
.eb-gen b { font-size: 1.05rem; line-height: 1.25; }
.eb-gen .eb-brand { position: absolute; top: 10px; left: 0; right: 0; font-size: .68rem; letter-spacing: 1px; color: #ffc107; font-weight: 700; }
.eb-gen .eb-ic { color: #ffc107; }
.eb-gen .eb-ed { position: absolute; bottom: 10px; right: 10px; font-size: .65rem; font-weight: 700; background: #ffc107; color: #13286e; padding: 2px 8px; border-radius: 99px; }
.eb-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.eb-body h3 { margin: 0; font-size: .98rem; line-height: 1.3; }
.eb-desc { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.eb-price b { font-size: 1.15rem; } .eb-price s { color: var(--muted, #64748b); font-size: .85rem; }
.eb-off { color: #16a34a; font-weight: 700; font-size: .8rem; } .eb-free { color: #16a34a; }
.eb-mini { display: inline-block; width: 34px; height: 48px; border-radius: 4px; background: linear-gradient(160deg, #1e3a8a, #0b1640) center / cover; }
.eb-form-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; }
@media (max-width: 640px) { .eb-form-grid { grid-template-columns: 1fr; } .eb-form-left { max-width: 220px; } }
.eb-form-left { display: grid; gap: 8px; align-content: start; }
.eb-src { display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--border); border-radius: 10px; }
#msrc { margin: 4px 0; }

/* ---- v13: Practice test thumbnails ---- */
.tests-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
@media (max-width: 560px) { .tests-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.tnum2 { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); overflow: hidden; color: var(--text); text-decoration: none; position: relative; transition: transform .12s, box-shadow .12s; }
.tnum2:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tthumb { aspect-ratio: 1 / 1; position: relative; display: grid; place-items: center; background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 38%, #38bdf8 100%); overflow: hidden; }
.tthumb.timg { background: #fff center / cover no-repeat; }
.tthumb .tlab { position: absolute; top: 9%; left: 0; right: 0; text-align: center; font-size: .62rem; font-weight: 800; letter-spacing: 1.5px; color: #1e3a8a; }
.tthumb .tccc { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 900; color: #f97316; letter-spacing: 1px; -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 3px 0 #c2410c, 0 6px 12px rgba(0,0,0,.25); margin-top: 10%; }
.tthumb .tno { position: absolute; right: 6px; bottom: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; background: #1e3a8a; color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.tcap { padding: 7px 8px 8px; text-align: center; display: grid; gap: 1px; }
.tcap b { font-size: .86rem; } .tcap small { font-size: .7rem; color: var(--muted, #64748b); }
.tscore { position: absolute; top: 6px; left: 6px; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; color: #fff; background: #64748b; }
.tnum2.good { border-color: #22c55e; } .tnum2.good .tscore { background: #16a34a; }
.tnum2.ok { border-color: #eab308; } .tnum2.ok .tscore { background: #ca8a04; }
.tnum2.low { border-color: #ef4444; } .tnum2.low .tscore { background: #dc2626; }
.tt-set { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: start; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }

/* v14: test thumbnails — sirf admin ki image, number nahi, zyada spacing */
.tests-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
@media (max-width: 560px) { .tests-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.tthumb.timg { background: #fff center / cover no-repeat; }
.tthumb.tplain { background: var(--surface-2, #f1f5f9); color: #94a3b8; }
.tnum2 { border-radius: 14px; }
.tcap { padding: 9px 8px 10px; }

/* ---- v14: Computer Knowledge blog ---- */
.bl-hero { border-radius: 18px; padding: 26px 22px; margin-bottom: 14px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, #3b4fd8 0%, #13286e 55%, #0b1640 100%); display: grid; gap: 10px; }
.bl-hero h1 { color: #fff; margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.bl-hero p { margin: 0; opacity: .9; max-width: 720px; }
.bl-hero .pill { justify-self: start; background: rgba(255,255,255,.14); color: #fff; }
.bl-hero .search { background: #fff; max-width: 560px; }
.bl-chips { margin: 4px 0 18px; }
.bl-chips small { opacity: .7; margin-left: 2px; }
.bl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.bl-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border-top: 4px solid var(--bc); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bl-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.bl-card p { margin: 0; flex: 1; }
.bl-cat { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .3px; padding: 3px 9px; border-radius: 99px; color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, #fff); }
.bl-read { color: var(--muted, #64748b); display: inline-flex; gap: 4px; align-items: center; }
.bl-art { max-width: 860px; }
.bl-body { padding: clamp(18px, 4vw, 34px); border-top: 5px solid var(--bc); }
.bl-body h1 { font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.3; margin: 10px 0 6px; }
.bl-meta { display: flex; gap: 6px; align-items: center; }
.bl-lead { font-size: 1.05rem; color: #334155; border-left: 4px solid var(--bc); padding: 4px 0 4px 12px; margin: 16px 0; }
.bl-content { font-size: 1.02rem; line-height: 1.85; color: #1e293b; }
.bl-content h2 { font-size: 1.2rem; margin: 26px 0 8px; color: #13286e; display: flex; gap: 8px; align-items: center; }
.bl-content h2::before { content: ''; width: 6px; height: 20px; border-radius: 3px; background: var(--bc); }
.bl-content p { margin: 0 0 12px; }
.bl-content ul, .bl-content ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 4px; }
.bl-content b { color: #0f172a; }
.bl-tip { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; font-weight: 500; }
.bl-tip .ic { color: #ea580c; flex: 0 0 auto; margin-top: 3px; }
.bl-cta { margin-top: 24px; padding: 16px; border-radius: 14px; background: #eef2ff; display: grid; gap: 10px; }
.bl-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.bl-nav a { padding: 12px 14px; display: grid; gap: 2px; color: var(--text); text-decoration: none; }
.bl-nav .bl-next { text-align: right; }
@media (max-width: 560px) { .bl-nav { grid-template-columns: 1fr; } .bl-nav .bl-next { text-align: left; } }

/* ---- v15: colorful quiz facts ---- */
.facts-c div { border: 0; color: #fff; position: relative; overflow: hidden; padding: 14px 6px; }
.facts-c div::after { content: ''; position: absolute; width: 70px; height: 70px; right: -22px; top: -26px; border-radius: 50%; background: rgba(255,255,255,.16); }
.facts-c div:nth-child(1) { background: linear-gradient(135deg, #6366f1, #4338ca); }
.facts-c div:nth-child(2) { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.facts-c div:nth-child(3) { background: linear-gradient(135deg, #ec4899, #be185d); }
.facts-c div:nth-child(4) { background: linear-gradient(135deg, #10b981, #047857); }
.facts-c .ic, .facts-c span { color: rgba(255,255,255,.92); }
.facts-c b { color: #fff; }
@media (max-width: 560px) { .facts-c { grid-template-columns: repeat(2, 1fr); } }
.detail-main .rules { background: linear-gradient(135deg, #eef2ff, #fdf2f8); border-left: 4px solid #6366f1; }

/* ---- v15: Udemy-style course card ---- */
.cc2 { padding: 10px; border-radius: 16px; gap: 0; }
.cc2-thumb { border-radius: 12px; overflow: hidden; }
.cc2-thumb .course-thumb { border-radius: 12px; background-size: cover !important; background-position: center !important; }
.cc2 .course-body { padding: 12px 4px 4px; display: grid; gap: 6px; }
.cc2 h3 { font-size: 1.06rem; line-height: 1.3; }
.cc2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc2-chips span { font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; }
.cc2-chips .ic { width: 13px; height: 13px; }
.cc2-badge { background: #cffafe; color: #155e75; }
.cc2-free { background: #dcfce7; color: #166534; }
.cc2-off { background: #fef3c7; color: #92400e; }
.cc2-chip { background: var(--surface-2, #f1f5f9); color: #334155; border: 1px solid var(--border); }
.cc2-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cc2-btn { flex: 0 0 auto; padding: 7px 14px; border-radius: 10px; border: 1.5px solid #7c3aed; color: #6d28d9; font-weight: 700; font-size: .86rem; transition: background .15s, color .15s; }
.cc2:hover .cc2-btn { background: #7c3aed; color: #fff; }
.hscroll .cc2 { min-width: 290px; }

/* ---- v15: certificate ---- */
.cert-box { margin-top: 18px; padding: 16px; background: linear-gradient(135deg, #fffbeb, #eef2ff); border: 1px solid #fde68a; }
.cert-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cert-head h2 { margin: 0 0 2px; }
.cert-head p { margin: 0; max-width: 560px; }
.cert-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -14px rgba(15,23,42,.45); }
.cert-wrap canvas { display: block; width: 100%; height: auto; }
.cc2 { display: flex; flex-direction: column; }
.cc2 .course-body { flex: 1; align-content: start; grid-template-rows: auto; display: flex; flex-direction: column; }
.cc2-foot { margin-top: auto; padding-top: 6px; }
.cc2 .ptag em { display: none; }

/* ---- v18: flat colorful tiles (no shadow, no lift) ---- */
.tiles { gap: 12px; }
.tile.tile3 { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 16px 8px 12px; min-height: 196px; border: 0; border-radius: 18px; box-shadow: none !important; transform: none !important; color: #fff; background: var(--tb) !important; transition: filter .15s; }
.tile.tile3::before, .tile.tile3::after { display: none; }
.tile.tile3:hover { filter: brightness(1.06); transform: none !important; box-shadow: none !important; }
.tile.tile3 .tile-ic { width: 66px; height: 66px; border-radius: 50% !important; background: #fff !important; color: var(--td); box-shadow: none !important; margin-bottom: 4px; }
.tile.tile3 .tile-ic .ic { width: 32px; height: 32px; stroke-width: 2.2; }
.tile.tile3 .tile-t { font-family: var(--f-display); font-weight: 800; font-size: 1.12rem; line-height: 1.15; text-align: center; }
.tile.tile3 .tile-s { font-size: .78rem; font-weight: 500; opacity: .95; text-align: center; line-height: 1.3; }
.tile.tile3 .tile-go { margin-top: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.28); color: #fff; }
.tile.tile3 .tile-go .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.tile.tile3.t1 { --tb: #f0442c; --td: #d93a20; }
.tile.tile3.t2 { --tb: #2563eb; --td: #1d4ed8; }
.tile.tile3.t3 { --tb: #14955a; --td: #0f7a49; }
.tile.tile3.t4 { --tb: #7c3aed; --td: #6d28d9; }
.tile.tile3.t7 { --tb: #e11d74; --td: #be185d; }
.tile.tile3.t8 { --tb: #22a447; --td: #15803d; }
.tile.tile3.t5 { --tb: #f08c00; --td: #c2410c; }
.tile.tile3.t6 { --tb: #0ba5c9; --td: #0e7490; }
@media (max-width: 860px) {
  .tile.tile3 { min-height: 150px; padding: 10px 4px 9px; gap: 4px; border-radius: 14px; }
  .tile.tile3 .tile-ic { width: 44px; height: 44px; }
  .tile.tile3 .tile-ic .ic { width: 22px; height: 22px; }
  .tile.tile3 .tile-t { font-size: .8rem; }
  .tile.tile3 .tile-s { font-size: .62rem; }
  .tile.tile3 .tile-go { width: 22px; height: 22px; } .tile.tile3 .tile-go .ic { width: 12px; height: 12px; }
}
/* v19: chhote tiles — sirf icon + naam */
.tile.tile3 { min-height: 128px; padding: 14px 8px; justify-content: center; gap: 8px; }
.tile.tile3 .tile-ic { width: 56px; height: 56px; margin-bottom: 0; }
.tile.tile3 .tile-ic .ic { width: 28px; height: 28px; }
@media (max-width: 860px) { .tile.tile3 { min-height: 104px; padding: 10px 4px; gap: 6px; } .tile.tile3 .tile-ic { width: 42px; height: 42px; } .tile.tile3 .tile-ic .ic { width: 21px; height: 21px; } }

/* ---- v20: new hero ---- */
.hero.hero2 { background: linear-gradient(120deg, #0b1640 0%, #13286e 45%, #2a3fb8 100%); padding-bottom: 70px; }
.hero.hero2::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.4px); background-size: 22px 22px; border: 0; width: auto; height: auto; box-shadow: none; transform: none; opacity: 1; mask-image: none; -webkit-mask-image: none; }
.hero.hero2::after { width: 620px; height: 620px; right: -140px; top: -240px; bottom: auto; border: 0; box-shadow: none; background: radial-gradient(circle, rgba(255,193,7,.22), transparent 65%); }
.h2-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center; padding-block: 40px 20px; }
.h2-copy { min-width: 0; display: grid; gap: 0; justify-items: start; }
.h2-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .82rem; padding: 6px 14px; border-radius: 99px; }
.h2-pill b { background: #ffc107; color: #13286e; border-radius: 99px; padding: 1px 8px; font-size: .7rem; }
.hero.hero2 h1 { margin-top: 16px; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; }
.hero.hero2 h1::after { display: none; }
.hero.hero2 h1 span { display: block; color: #ffc107; font-size: 1.18em; position: relative; width: max-content; max-width: 100%; }
.hero.hero2 h1 span::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px; border-radius: 4px; background: rgba(255,193,7,.32); }
.h2-en { color: #c7d2fe; font-size: 1.08rem; margin-top: 12px; font-weight: 500; }
.hero .h2-sub { color: #e0e7ff; font-size: .98rem; margin-top: 10px; line-height: 1.6; max-width: 560px; }
.h2-search { margin-top: 18px; display: flex; align-items: center; background: #fff; border-radius: 16px; padding: 6px; width: 100%; max-width: 560px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.h2-search > span { color: #94a3b8; display: grid; place-items: center; padding: 0 6px 0 10px; }
.h2-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .95rem; padding: 10px 6px; background: transparent; color: #0f172a; }
.h2-search button { border: 0; background: #f97316; color: #fff; font-weight: 700; font: inherit; font-weight: 700; border-radius: 12px; padding: 10px 20px; cursor: pointer; }
.h2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.h2-b1, .h2-b2 { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 12px 20px; border-radius: 12px; font-size: .98rem; }
.h2-b1 { background: #ffc107; color: #13286e; } .h2-b1:hover { background: #ffcd38; }
.h2-b2 { border: 1.5px solid rgba(255,255,255,.4); color: #fff; } .h2-b2:hover { background: rgba(255,255,255,.08); }
.h2-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.h2-trust span { display: inline-flex; align-items: center; gap: 6px; color: #c7d2fe; font-size: .84rem; } .h2-trust .ic { color: #4ade80; width: 17px; height: 17px; }
.h2-cards { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: start; }
.h2c { background: #fff; border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.28); padding: 16px; color: #0f172a; display: block; }
.h2-live { grid-column: 1; grid-row: 1; }
.h2-score { grid-column: 2; grid-row: 1; text-align: center; display: grid; justify-items: center; gap: 2px; }
.h2-lb { grid-column: 1; grid-row: 2; }
.h2-cert { grid-column: 2; grid-row: 2; text-align: center; background: linear-gradient(135deg, #fffbeb, #fff); border: 2px solid #fbbf24; }
.h2-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.h2-tag.tl { background: #fee2e2; color: #dc2626; } .h2-tag.tl i { width: 7px; height: 7px; border-radius: 50%; background: #dc2626; animation: blink 1.2s infinite; }
.h2-tag.tf { background: #dcfce7; color: #15803d; }
@keyframes blink { 50% { opacity: .3; } }
.h2-live h3 { font-size: 1.05rem; margin-top: 10px; }
.h2-prize { color: #b45309; font-weight: 600; font-size: .84rem; margin-top: 4px; }
.h2-meta { display: flex; gap: 12px; color: #64748b; font-size: .78rem; margin-top: 8px; }
.h2-cnt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.h2-cnt div { background: #eef2ff; border-radius: 10px; text-align: center; padding: 6px 0; } .h2-cnt b { display: block; font-size: 1.15rem; color: #1e3a8a; line-height: 1.2; } .h2-cnt span { font-size: .68rem; color: #64748b; }
.h2-join { display: block; margin-top: 12px; background: #1e3a8a; color: #fff; text-align: center; font-weight: 700; border-radius: 10px; padding: 9px; font-size: .88rem; }
.h2-join:hover { background: #1e40af; }
.h2-score small { color: #64748b; font-size: .74rem; } .h2-score b { font-size: .9rem; line-height: 1.25; }
.h2-ring { width: 92px; height: 92px; margin: 6px auto 6px; border-radius: 50%; background: conic-gradient(#22c55e calc(var(--p) * 1%), #e5e7eb 0); display: grid; place-items: center; }
.h2-ring div { width: 70px; height: 70px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #15803d; font-family: var(--f-display); }
.h2-lb h4 { font-size: .9rem; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; } .h2-lb h4 .ic { color: #f59e0b; width: 18px; height: 18px; }
.h2-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .86rem; }
.h2-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; background: #64748b; flex: none; }
.h2-n.n1 { background: #f59e0b; } .h2-n.n2 { background: #94a3b8; } .h2-n.n3 { background: #c2410c; }
.h2-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .h2-row b { color: #1e3a8a; }
.h2-lbl { display: inline-flex; align-items: center; gap: 2px; margin-top: 10px; font-size: .78rem; font-weight: 600; color: #1e3a8a; }
.h2-cert div { font-size: .68rem; font-weight: 800; letter-spacing: 2px; color: #13286e; } .h2-cert p { font-size: .74rem; color: #64748b; margin: 2px 0 0; line-height: 1.35; }
.h2-seal { width: 44px; height: 44px; border-radius: 50%; background: #13286e; border: 3px solid #d4a017; margin: 6px auto 0; display: grid; place-items: center; color: #ffd36a; font-weight: 800; }
.h2-cert .h2-free { font-weight: 700; color: #13286e; margin-top: 6px; }
.h2-stats { position: relative; z-index: 3; margin-top: -48px; background: #fff; border-radius: 20px; box-shadow: 0 14px 34px rgba(15,23,42,.10); display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 6px; }
.h2-stats > div { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-right: 1px solid #eef2f7; min-width: 0; } .h2-stats > div:last-child { border: 0; }
.h2-stats .si { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.h2-stats p { margin: 0; } .h2-stats b { display: block; font-size: 1.35rem; line-height: 1.15; font-family: var(--f-display); } .h2-stats p span { font-size: .8rem; color: #64748b; }
.hero2 + .h2-stats + .tiles-wrap { margin-top: 18px; }
@media (max-width: 980px) {
  .h2-in { grid-template-columns: 1fr; }
  .h2-cards { max-width: 560px; }
}
@media (max-width: 640px) {
  .hero.hero2 { padding-bottom: 60px; }
  .h2-in { padding-block: 26px 10px; gap: 24px; }
  .h2-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .h2-live { grid-column: 1 / -1; } .h2-score { grid-column: 1; grid-row: 2; } .h2-cert { grid-column: 2; grid-row: 2; } .h2-lb { grid-column: 1 / -1; grid-row: 3; }
  .h2-stats { grid-template-columns: repeat(2, 1fr); gap: 12px 0; padding: 14px 4px; }
  .h2-stats > div { padding: 0 10px; gap: 8px; } .h2-stats > div:nth-child(2) { border: 0; }
  .h2-stats b { font-size: 1.08rem; } .h2-stats .si { width: 36px; height: 36px; }
  .h2-search button { padding: 10px 14px; }
}

/* ---- v21: Our Digital Family ---- */
.fam { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 24px 30px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3730a3 0%, #1e2a78 40%, #0b1640 100%); }
.fam::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.3px, transparent 1.3px); background-size: 22px 22px; pointer-events: none; }
.fam > * { position: relative; }
.fam-k { font-family: var(--f-mono, monospace); font-size: .76rem; letter-spacing: 3px; color: #93c5fd; }
.fam h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 6px 0 4px; }
.fam-sub { color: #c7d2fe; margin: 0; font-size: .95rem; }
.fam-total { margin-top: 16px; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; }
.fam-total b { background: linear-gradient(90deg, #fff 30%, #93c5fd 70%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fam-total i { font-style: normal; color: #c4b5fd; font-size: .7em; vertical-align: top; }
.fam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 22px; max-width: 1100px; margin-inline: auto; }
.fam-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px 18px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px); }
.fam-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.08); margin-bottom: 6px; }
.fam-ic .ic { width: 28px; height: 28px; }
.fam-card b { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; }
.fam-l { color: #c7d2fe; font-size: .88rem; }
.fam-btn { margin-top: auto; padding-top: 0; display: inline-block; background: #fff; color: #13286e; font-weight: 700; font-size: .84rem; padding: 7px 16px; border-radius: 99px; margin-top: 10px; }
.fam-btn:hover { background: #ffd36a; }
@media (max-width: 560px) { .fam-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .fam-card:last-child:nth-child(odd) { grid-column: 1 / -1; } .fam-card b { font-size: 1.35rem; } .fam-ic { width: 48px; height: 48px; } }

/* contact strip + page */
.cstrip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; background: linear-gradient(135deg, #fff7ed, #eef2ff); border: 1px solid #fde2c4; }
.cstrip h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; } .cstrip p { margin: 4px 0 0; }
.cs-r { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cs-c { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 14px 8px 8px; color: var(--text); }
.cs-c small { display: block; color: var(--muted); font-size: .72rem; } .cs-c b { font-size: .92rem; }
.cs-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.ci-phone { background: #2563eb; } .ci-whatsapp { background: #25d366; } .ci-mail { background: #ea580c; } .ci-pin { background: #db2777; }
.ci-youtube { background: #ff0000; } .ci-facebook { background: #1877f2; } .ci-instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); } .ci-telegram { background: #229ed9; }
.ct-hero { border-radius: 20px; padding: 28px 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #3b4fd8 0%, #13286e 55%, #0b1640 100%); display: grid; gap: 8px; margin-bottom: 18px; }
.ct-hero h1 { color: #fff; margin: 0; } .ct-hero p { margin: 0; color: #c7d2fe; max-width: 720px; } .ct-hero .pill { justify-self: start; background: rgba(255,255,255,.14); color: #fff; }
.ct-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-info { display: grid; gap: 12px; }
.ct-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--text); }
.ct-card small { display: block; color: var(--muted); font-size: .76rem; } .ct-card b { font-size: 1rem; }
.ct-card .cs-i { width: 48px; height: 48px; }
.ct-sb { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ct-form { display: grid; gap: 12px; } .ct-form h3 { display: flex; gap: 8px; align-items: center; }
.btn-wa { background: #25d366; color: #fff; border: 0; } .btn-wa:hover { background: #1ebe5a; }

/* ---- v22: simple center hero ---- */
.hero.hero3 { background: linear-gradient(120deg, #0b1640 0%, #13286e 50%, #2a3fb8 100%); text-align: center; }
.hero.hero3::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 22px 22px; opacity: 1; mask-image: none; -webkit-mask-image: none; }
.hero.hero3::after { width: 560px; height: 560px; right: -160px; top: -240px; bottom: auto; border: 0; box-shadow: none; background: radial-gradient(circle, rgba(255,193,7,.18), transparent 65%); }
.h3-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 44px 96px; max-width: 860px; }
.hero.hero3 h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.15; margin-top: 4px; }
.hero.hero3 h1::after { display: none; }
.hero.hero3 h1 span { display: block; color: #ffc107; }
.hero3 .h2-en { margin-top: 0; }
.hero3 .h2-search { margin-top: 6px; max-width: 640px; }
.hero3 .h2-cta, .hero3 .h2-trust { justify-content: center; margin-top: 2px; }
.h3-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 4px; }
.h3-stats span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #c7d2fe; font-size: .84rem; padding: 5px 14px; border-radius: 99px; }
.h3-stats b { color: #fff; font-family: var(--f-display); font-size: 1rem; margin-right: 2px; }
.hero3 + .tiles-wrap { margin-top: -56px; }
@media (max-width: 640px) { .h3-in { padding-block: 28px 80px; gap: 12px; } .hero3 .h2-cta a { padding: 11px 16px; font-size: .92rem; } }
/* admin social rows */
.soc-rows { display: grid; gap: 10px; margin-bottom: 8px; }
.soc-row { display: grid; grid-template-columns: 40px 150px 1fr 170px; gap: 12px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2, #f8fafc); }
.soc-row > b { align-self: center; }
.soc-row label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.soc-row .cs-i { align-self: center; }
@media (max-width: 720px) { .soc-row { grid-template-columns: 40px 1fr; } .soc-row label { grid-column: 1 / -1; } }

/* ---- v23: hero Option B (desktop: text + laptop illustration) ---- */
.hb-grid { position: relative; z-index: 1; }
.hb-art { display: none; }
@media (min-width: 1000px) {
  .hero.hero-b { text-align: left; }
  .hb-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
  .hero-b .h3-in { align-items: flex-start; max-width: none; margin: 0; padding-block: 44px 100px; }
  .hero-b .h2-cta, .hero-b .h2-trust, .hero-b .h3-stats { justify-content: flex-start; }
  .hero-b h1 { font-size: clamp(2.2rem, 3.3vw, 2.9rem); }
  .hero-b .h2-search { max-width: 580px; }
  .hb-art { display: block; position: relative; height: 380px; margin-bottom: 40px; }
  .hb-lap { position: absolute; left: 4%; right: 4%; top: 40px; }
  .hb-scr { background: #0f172a; border: 3px solid #334155; border-radius: 16px 16px 0 0; padding: 12px; }
  .hb-app { background: #fff; border-radius: 8px; padding: 14px; color: #0f172a; }
  .hb-qh { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; font-weight: 700; color: #1e3a8a; letter-spacing: .3px; }
  .hb-qh b { background: #eef2ff; padding: 2px 8px; border-radius: 6px; }
  .hb-q { font-size: .92rem; font-weight: 700; margin: 10px 0 8px; line-height: 1.35; }
  .hb-op { display: flex; align-items: center; gap: 8px; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; font-size: .8rem; margin-top: 6px; }
  .hb-op i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #94a3b8; font-style: normal; font-size: .62rem; font-weight: 700; display: grid; place-items: center; color: #64748b; flex: none; }
  .hb-op.ok { border-color: #22c55e; background: #f0fdf4; } .hb-op.ok i { background: #22c55e; border-color: #22c55e; color: #fff; }
  .hb-base { height: 16px; margin: 0 -26px; border-radius: 0 0 18px 18px; background: linear-gradient(#cbd5e1, #94a3b8); }
  .hb-bd { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: #0f172a; border-radius: 14px; padding: 9px 14px 9px 9px; box-shadow: 0 16px 34px rgba(0,0,0,.3); }
  .hb-bd small { display: block; color: #64748b; font-size: .7rem; } .hb-bd b { font-size: .9rem; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; display: block; }
  .hb-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; } .hb-ic .ic { width: 20px; height: 20px; }
  .bd1 { right: 0; top: 0; } .bd2 { left: 0; bottom: 6px; } .bd3 { right: 0; bottom: -20px; }
  a.hb-bd:hover { transform: translateY(-2px); }
}

/* ---- v24: tiles Design A — safed card + rangeen border ---- */
.hero3 + .tiles-wrap, .tiles-wrap { margin-top: 22px; }
.tile.tile3 { background: #fff !important; color: #0f172a; border: 2px solid var(--tb) !important; }
.tile.tile3:hover { filter: none; background: color-mix(in srgb, var(--tb) 7%, #fff) !important; }
.tile.tile3 .tile-ic { background: var(--tb) !important; color: #fff; }
.tile.tile3 .tile-t { color: #0f172a; font-weight: 700; }
.h3-in { padding-block: 44px 48px; }
@media (min-width: 1000px) { .hero-b .h3-in { padding-block: 44px 52px; } .hb-art { margin-bottom: 30px; } }
@media (max-width: 640px) { .h3-in { padding-block: 28px 34px; } }
/* v25: tiles bina border — sirf safed card */
.tile.tile3 { border: 0 !important; }

/* ---- v26: chapter tests page + home test preview ---- */
.home-tests { margin-top: 12px; grid-template-columns: repeat(7, 1fr); gap: 16px; }
@media (max-width: 900px) { .home-tests { grid-template-columns: repeat(3, 1fr); } .home-tests > :nth-child(n+7) { display: none; } }
@media (max-width: 560px) { .home-tests { grid-template-columns: repeat(2, 1fr); gap: 12px; } .home-tests > :nth-child(n+5) { display: none; } }
.more-btn { padding: 10px 26px; border-radius: 99px; }
.syl-hr { border: 0; border-top: 1px dashed var(--border); margin: 22px 0 18px; }
.syl-ch.on { outline: 2px solid currentColor; }
.ch-hero { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; margin: 10px 0 20px; color: #fff; }
.ch-hero.c0 { background: linear-gradient(120deg, #4f46e5, #312e81); } .ch-hero.c1 { background: linear-gradient(120deg, #ea580c, #9a3412); } .ch-hero.c2 { background: linear-gradient(120deg, #059669, #065f46); }
.ch-hero.c3 { background: linear-gradient(120deg, #db2777, #9d174d); } .ch-hero.c4 { background: linear-gradient(120deg, #2563eb, #1e3a8a); } .ch-hero.c5 { background: linear-gradient(120deg, #ca8a04, #854d0e); }
.ch-no { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #13286e; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; }
.ch-hero small { opacity: .85; letter-spacing: 1.5px; font-size: .74rem; font-weight: 600; }
.ch-hero h1 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.9rem); margin: 2px 0 4px; }
.ch-hero p { margin: 0; opacity: .9; font-size: .92rem; max-width: 640px; }
.ch-done { margin-left: auto; text-align: center; background: rgba(255,255,255,.15); border-radius: 14px; padding: 10px 16px; flex: none; }
.ch-done b { display: block; font-size: 1.4rem; font-family: var(--f-display); } .ch-done span { font-size: .74rem; }
.ch-tests { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (max-width: 560px) { .ch-hero { flex-wrap: wrap; } .ch-done { margin-left: 0; } .ch-tests { grid-template-columns: repeat(2, 1fr); } }

/* ---- v27: brand logo + wordmark ---- */
.brand { gap: 10px; }
.brand-logo { display: inline-block; flex: none; width: 60px; height: 40px; border-radius: 10px; overflow: hidden; background: #fff200; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-logo.big { width: 96px; height: 64px; border-radius: 14px; margin: 6px auto 12px; display: block; }
.wm { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.wm-t { font-family: 'Baloo 2', var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; white-space: nowrap; }
.wm-t b { font-weight: 800; }
.wm-c { color: #1e3fae; } .wm-o { color: #f26a1b; }
.wm-s { display: flex; align-items: center; gap: 5px; margin-top: 2px; width: 100%; }
.wm-s i { flex: 1; height: 2px; background: #f26a1b; border-radius: 2px; }
.wm-s em { font-style: normal; font-size: .5rem; font-weight: 700; letter-spacing: .12em; color: #fff; background: #1e3a8a; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.foot-brand .wm-c { color: #fff; } .foot-brand .wm-s em { background: #f26a1b; } .foot-brand .wm-s i { background: rgba(255,255,255,.5); }
@media (max-width: 860px) { .brand-logo { width: 51px; height: 34px; border-radius: 8px; } .wm-t { font-size: 1.28rem; } }
@media (max-width: 400px) { .brand { gap: 7px; } .brand-logo { width: 45px; height: 30px; } .wm-t { font-size: 1.12rem; } .wm-s em { font-size: .44rem; padding: 2px 6px; } }
@media (max-width: 340px) { .wm-t { font-size: 1rem; } }

/* ---- v27: progressive View More + chapter/pp thumbnails ---- */
.home-tests > :nth-child(n) { display: flex; }
.home-tests > [hidden] { display: none !important; }
@media (max-width: 900px) { .home-tests { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .home-tests { grid-template-columns: repeat(2, 1fr); } }
.thumb-grid { margin-top: 12px; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 900px) { .thumb-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.th-card .tcap small { min-height: 2.6em; line-height: 1.3; }
.th-plain { color: #fff; }
.th-card.c0 .th-plain { background: linear-gradient(135deg, #6366f1, #4338ca); } .th-card.c1 .th-plain { background: linear-gradient(135deg, #fb923c, #ea580c); }
.th-card.c2 .th-plain { background: linear-gradient(135deg, #34d399, #059669); } .th-card.c3 .th-plain { background: linear-gradient(135deg, #f472b6, #db2777); }
.th-card.c4 .th-plain { background: linear-gradient(135deg, #60a5fa, #2563eb); } .th-card.c5 .th-plain { background: linear-gradient(135deg, #facc15, #ca8a04); }
.th-card.pp .th-plain { background: linear-gradient(135deg, #f97316, #ec4899); }
.thumb-sets { display: grid; gap: 12px; margin-bottom: 10px; }
/* v28: wordmark colors exactly as given image + white rounded logo border */
.wm-c { color: #013ea3; } .wm-o { color: #fc5905; }
.wm-s i { background: #fc5905; } .wm-s em { background: #013ea3; }
.brand-logo { border: 3px solid #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 2px 6px rgba(15,23,42,.12); border-radius: 12px; box-sizing: content-box; }
.brand-logo.big { border-width: 4px; border-radius: 16px; }
.foot-brand { background: #fff; padding: 8px 14px 8px 8px; border-radius: 16px; display: inline-flex; }
.foot-brand .wm-c { color: #013ea3; } .foot-brand .wm-s em { background: #013ea3; } .foot-brand .wm-s i { background: #fc5905; }
.foot-brand .brand-logo { box-shadow: 0 0 0 1px #e2e8f0; }
.brand .wm-t b.wm-c, .foot-brand .wm-t b.wm-c { color: #013ea3 !important; }
.brand .wm-t b.wm-o, .foot-brand .wm-t b.wm-o { color: #fc5905 !important; }
.wm-t { word-spacing: .05em; }

/* v31: chapter list (wapas, behtar) */
.syl2 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.syl-ch.s2 { position: relative; align-items: flex-start; gap: 12px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid rgba(0,0,0,.05); transition: background .15s, border-color .15s; }
.syl-ch.s2:hover { transform: none; border-color: currentColor; }
.syl-ch.s2 > b { flex: 0 0 40px; height: 40px; font-size: 1rem; font-weight: 800; font-family: var(--f-display); margin-top: 2px; }
.s2-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.s2-t small { font-size: .66rem; font-weight: 700; letter-spacing: 1.2px; opacity: .65; }
.s2-t > span { font-size: .92rem; font-weight: 700; line-height: 1.3; color: #1e293b; }
.s2-t em { font-style: normal; font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }
.s2-t em .ic { width: 14px; height: 14px; }
.syl-ch.s2.c0 .s2-t small, .syl-ch.s2.c0 em { color: #4f46e5; } .syl-ch.s2.c1 .s2-t small, .syl-ch.s2.c1 em { color: #ea580c; }
.syl-ch.s2.c2 .s2-t small, .syl-ch.s2.c2 em { color: #059669; } .syl-ch.s2.c3 .s2-t small, .syl-ch.s2.c3 em { color: #db2777; }
.syl-ch.s2.c4 .s2-t small, .syl-ch.s2.c4 em { color: #2563eb; } .syl-ch.s2.c5 .s2-t small, .syl-ch.s2.c5 em { color: #ca8a04; }
.syl-ch.s2.c0:hover { border-color: #4f46e5; } .syl-ch.s2.c1:hover { border-color: #ea580c; } .syl-ch.s2.c2:hover { border-color: #059669; }
.syl-ch.s2.c3:hover { border-color: #db2777; } .syl-ch.s2.c4:hover { border-color: #2563eb; } .syl-ch.s2.c5:hover { border-color: #ca8a04; }
@media (max-width: 560px) { .syl2 { grid-template-columns: 1fr 1fr; gap: 8px; } .syl-ch.s2 { padding: 10px; gap: 8px; flex-direction: column; } .syl-ch.s2 > b { flex: none; width: 34px; height: 34px; } .s2-t > span { font-size: .82rem; } }
@media (min-width: 1100px) { .syl2 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 700px) and (max-width: 1099px) { .syl2 { grid-template-columns: repeat(3, 1fr); } }
