/* Pembaikan manual selepas styles.css + styles-adaptive.css (dijana). */

/* ---------- butang bahasa & tema ---------- */
.prefs{display:flex;gap:6px;align-items:center}
.pref-btn{min-width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:800;font-size:13px;display:grid;place-items:center;padding:0 10px}
.pref-btn:hover{border-color:#c9d2e3}
body.theme-creator #langBtn{display:none} /* Creator Studio belum diterjemah */
.auth-top{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:14px}
.auth-top .auth-mobile-brand{margin:0;margin-right:auto}
.topnav .prefs{margin-left:auto}
.topnav .portal-switch + .prefs{margin-left:0}

/* ---------- pilihan Paparan (Akaun) ---------- */
.pref-group{display:grid;gap:8px;margin:6px 0 16px}
.pref-group b{font-size:13px}
.pref-group small{font-size:12px}
.seg{display:flex;flex-wrap:wrap;gap:6px;background:#f1f3f8;border-radius:12px;padding:4px}
.seg button{flex:1 1 auto;min-height:42px;border-radius:9px;padding:8px 12px;font-weight:700;font-size:13px;color:#56647b;white-space:nowrap}
.seg button[aria-pressed="true"]{background:#fff;color:var(--accent-ink);box-shadow:0 2px 8px #1b2b4e14}

/* ---------- telefon: tulisan asas lebih besar ---------- */
@media (max-width:640px){
  :root{--fs:15.5px}
  .bottomnav button{font-size:12px}
  .bottomnav button span{font-size:21px}
  .welcome-row h1,.kid-hello h1{font-size:26px}
  .surface-title h3{font-size:16.5px}
  .tonight-row b{font-size:16px}
  .tn-ok,.tn-mid,.tn-no{font-size:14.5px}
  .tonight-row small{font-size:13.5px}
  .kid-chip{font-size:14.5px}.kid-chip b{font-size:17px}
  .qcard h2{font-size:21px}
  .opt{font-size:17px;min-height:56px}
  .feedback{font-size:15px}
  .adventure h2{font-size:24px}
  .adventure p{font-size:15px}
  .tip p{font-size:14.5px}
  .mk-card h3{font-size:16.5px}
  .mk-hook,.mk-meta{font-size:14px}
  .reward b{font-size:15px}
  .reward small{font-size:13px}
  .modal{font-size:15px}
  .modalhead h3{font-size:18px}
  .topnav .prefs{gap:6px}
  .pref-btn{min-width:38px;height:38px}
  .authcard{min-width:0;width:100%}
  .auth-mobile-brand .brandname small{display:none}
  .tabs button{padding:10px 2px}
}

/* ---------- tema gelap: pembaikan manual ---------- */
html[data-theme="dark"]{
  --ink:#e6ebf5;--muted:#9aa6bd;--line:#2a3550;--canvas:#0d1424;--white:#151f33;
  --good:#5fd1a6;--good-bg:#12352b;--warn:#f0c46a;--warn-bg:#3a2c10;--bad:#f2939d;--bad-bg:#3d1b22;
  --shadow:0 12px 36px rgba(0,0,0,.35);
}
html[data-theme="dark"] body{background:#0d1424;color:#e6ebf5}
html[data-theme="dark"]{--accent:#ff8a5c;--accent-soft:#3a2216;--accent-ink:#ffb38f}
html[data-theme="dark"] body.theme-parent{--accent:#2fd3a8;--accent-soft:#103a30;--accent-ink:#7ff0cf;background:#0b1715}
html[data-theme="dark"] body.theme-student{--accent:#9a82ff;--accent-soft:#2a2156;--accent-ink:#cbbcff;background:#130f24;color:#ece8ff}
html[data-theme="dark"] body.theme-creator{--accent:#6f93ff;--accent-soft:#1d2750;--accent-ink:#a9c0ff}
html[data-theme="dark"] .topnav{background:rgba(13,20,36,.92);border-color:#212b42}
html[data-theme="dark"] body.theme-parent .topnav{background:rgba(12,23,22,.92)}
html[data-theme="dark"] body.theme-student .topnav{background:rgba(15,16,34,.92)}
html[data-theme="dark"] .bottomnav{background:#121a2c;border-color:#232d45}
html[data-theme="dark"] body.theme-parent .bottomnav{background:#0f1f1d;border-color:#1e3431}
html[data-theme="dark"] body.theme-student .bottomnav{background:#15162e;border-color:#262850}
html[data-theme="dark"] .bottomnav button{color:#8d98b0}
html[data-theme="dark"] .surface,html[data-theme="dark"] .authcard,html[data-theme="dark"] .modal,html[data-theme="dark"] .mk-card,html[data-theme="dark"] .qcard,html[data-theme="dark"] .kid-chip,html[data-theme="dark"] .pref-btn{background:#151f33;border-color:#27324b;color:inherit}
html[data-theme="dark"] body.theme-parent .surface{background:#122220;border-color:#21403b}
html[data-theme="dark"] body.theme-student .surface,html[data-theme="dark"] body.theme-student .qcard,html[data-theme="dark"] body.theme-student .kid-chip{background:#181a36;border-color:#2b2d58}
html[data-theme="dark"] .kid-chip b,html[data-theme="dark"] .tonight-row b{color:#fff}
html[data-theme="dark"] .kid-chip{color:#c9c6ef}
html[data-theme="dark"] .tonight-row,html[data-theme="dark"] .settings-fold{border-color:#24423d}
html[data-theme="dark"] .tn-ok{color:#5fd1a6}html[data-theme="dark"] .tn-mid{color:#f0c46a}html[data-theme="dark"] .tn-no{color:#9aa6bd}
html[data-theme="dark"] .tonight-row small,html[data-theme="dark"] .device-foot{color:#9aa6bd}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .field{background:#0f1729;border-color:#2c3854;color:#e6ebf5}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#6f7b93}
html[data-theme="dark"] .tabs,html[data-theme="dark"] .seg{background:#0f1729}
html[data-theme="dark"] .tabs button.sel,html[data-theme="dark"] .seg button[aria-pressed="true"]{background:#23304d;color:#fff;box-shadow:none}
html[data-theme="dark"] .seg button,html[data-theme="dark"] .tabs button{color:#aab4c8}
html[data-theme="dark"] .authside{background:#0d1424}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .outline{background:transparent;border-color:#33405e;color:#dbe2f0}
html[data-theme="dark"] .btn.soft{background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] .linkish{color:var(--accent-ink)}
html[data-theme="dark"] .opt{background:#1d2042;border-color:#34376a;color:#ecebff}
html[data-theme="dark"] .opt .k{background:#2c2f5e;color:#cfcaff}
html[data-theme="dark"] .opt.right{background:#123a2e;border-color:#2f8f6f}
html[data-theme="dark"] .opt.wrong{background:#3d1b22;border-color:#8c3a46;opacity:.85}
html[data-theme="dark"] .feedback.good{background:#123a2e;color:#bdf0db}
html[data-theme="dark"] .feedback.try{background:#3a2c10;color:#f8dfa6}
html[data-theme="dark"] .feedback.learn{background:#1d2750;color:#cdd6ff}
html[data-theme="dark"] .adv-btn{background:#fff;color:#4a40a8}
html[data-theme="dark"] .notice{background:#16233e;border-color:#25365a;color:#c3d3f0}
html[data-theme="dark"] .notice.warn{background:#3a2c10;border-color:#5a4417;color:#f8dfa6}
html[data-theme="dark"] .notice.ok{background:#123a2e;border-color:#1f5a46;color:#bdf0db}
html[data-theme="dark"] .pair-code{background:#05080f;border:1px solid #2a3550}
html[data-theme="dark"] .device-row{background:#0f1a2c;border-color:#26324c}
html[data-theme="dark"] .table td,html[data-theme="dark"] .table th{border-color:#26324c}
html[data-theme="dark"] .toast{background:#e6ebf5;color:#0d1424}
html[data-theme="dark"] .modalback{background:rgba(3,6,14,.7)}
html[data-theme="dark"] .muted,html[data-theme="dark"] small{color:#9aa6bd}
html[data-theme="dark"] .child-avatar{background:#2a2414}
html[data-theme="dark"] .brandname{color:#e6ebf5}
html[data-theme="dark"] .mk-art{background:#1b2740!important}
html[data-theme="dark"] .progress,html[data-theme="dark"] .bar{background:#26324c}

/* v4.0 gelap: komponen baharu */
html[data-theme="dark"] .tipcard{background:linear-gradient(150deg,#3a2c10,#3a1830);border-color:#5a4220}
html[data-theme="dark"] .tipcard .tip-q{color:#fff1dc}
html[data-theme="dark"] .tipcard .tip-q i{color:#ffb36b}
html[data-theme="dark"] .tipcard .tip-meta,html[data-theme="dark"] .tipcard .tip-mis{color:#e8c58f}
html[data-theme="dark"] .tipcard details summary{background:#1e1608;color:#ffb36b}
html[data-theme="dark"] .tipcard details p{color:#f3e2c8}
html[data-theme="dark"] .celebrate-row{background:linear-gradient(120deg,#3a3210,#103a2a);color:#d9f7c8}
html[data-theme="dark"] .weekdots i{border-color:#2d4a43}
html[data-theme="dark"] .avatar-grid label{background:#1b2236}
html[data-theme="dark"] body.theme-parent .avatar-grid label{background:#13302b}
html[data-theme="dark"] .stepper button{background:#0f1729;color:var(--accent-ink)}
html[data-theme="dark"] .chip-set button{background:#0f1729;border-color:#2c3854;color:#dbe2f0}
html[data-theme="dark"] .settings-list,html[data-theme="dark"] .lib-row{background:#151f33;border-color:#27324b}
html[data-theme="dark"] body.theme-parent .settings-list,html[data-theme="dark"] body.theme-parent .lib-row{background:#122220;border-color:#21403b}
html[data-theme="dark"] .settings-list button{border-color:#27324b;color:#e6ebf5}
html[data-theme="dark"] .settings-list .ico{background:rgba(255,255,255,.08)!important}
html[data-theme="dark"] .ring::before{background:#151f33}
html[data-theme="dark"] .ring{background:conic-gradient(var(--subj,var(--accent)) calc(var(--p)*1%),#2a3550 0)}
html[data-theme="dark"] .subj-ic{background:color-mix(in srgb,var(--subj,#ff7a45) 24%,#151f33)!important}
html[data-theme="dark"] .mk-art.subj-ic{background:linear-gradient(135deg,color-mix(in srgb,var(--subj) 30%,#151f33),color-mix(in srgb,var(--subj) 12%,#151f33))!important}
html[data-theme="dark"] .sheet-handle{background:#3a4560}
html[data-theme="dark"] .modal{background:#151f33}
html[data-theme="dark"] .mk-search{background:#0f1729;border-color:#27324b}
html[data-theme="dark"] .chips{background:var(--canvas)!important}
html[data-theme="dark"] body.theme-parent .chips{background:#0b1715!important}
html[data-theme="dark"] .wordmark span{filter:brightness(1.15)}
html[data-theme="dark"] body{background:var(--canvas)}
html[data-theme="dark"] .chip.sel{background:var(--subj,var(--accent));border-color:var(--subj,var(--accent));color:#0b1220}
html[data-theme="dark"] .chip.sel b{background:#0000002e;color:#0b1220}
html[data-theme="dark"] .authside{background:var(--canvas)}

/* v4.1 gelap */
html[data-theme="dark"] .tour-card,html[data-theme="dark"] .choice,html[data-theme="dark"] .kid-reward,html[data-theme="dark"] .kid-challenge,html[data-theme="dark"] .ch-opt{background:#151f33;border-color:#2c3854;color:#e6ebf5}
html[data-theme="dark"] body.theme-student .kid-reward,html[data-theme="dark"] body.theme-student .kid-challenge{background:#181a36;border-color:#4a3a70}
html[data-theme="dark"] .kid-reward.reached,html[data-theme="dark"] .reward-ready,html[data-theme="dark"] .levelup,html[data-theme="dark"] .report-card{background:linear-gradient(120deg,#3a3210,#3a1830);color:#fff1dc}
html[data-theme="dark"] .challenge-card{background:linear-gradient(120deg,#241c4a,#0f2c40)}
html[data-theme="dark"] .plan-hero{background:linear-gradient(120deg,#103a30,#3a2c10)}
html[data-theme="dark"] .plan-ring::before,html[data-theme="dark"] .plan-avatar{background:#151f33}
html[data-theme="dark"] .plan-ring{background:conic-gradient(var(--accent) calc(var(--p)*1%),#2a3550 0)}
html[data-theme="dark"] .kid-map::before{border-color:#3a3560}
html[data-theme="dark"] .map-island .ring{background:conic-gradient(var(--subj) calc(var(--p)*1%),#2a2d52 0)}
html[data-theme="dark"] .map-island .ring::before{background:color-mix(in srgb,var(--subj) 22%,#181a36)}
html[data-theme="dark"] .kid-avatar,html[data-theme="dark"] .child-avatar{background:#2a2414}
html[data-theme="dark"] .switch>span{background:#2c3854}
html[data-theme="dark"] .reward-mini i,html[data-theme="dark"] .kr-bar{background:#2a2a3e}
html[data-theme="dark"] .ch-res{background:#3d1b22}html[data-theme="dark"] .ch-res.ok{background:#123a2e}
html[data-theme="dark"] .check-row .tick{border-color:#3a4560}
html[data-theme="dark"] .map-label{background:#181a36}
html[data-theme="dark"] .tour.no-spot{background:rgba(0,0,0,.7)}

/* v4.2 gelap */
html[data-theme="dark"] .teaser,html[data-theme="dark"] .opp-card{background:#151f33;border-color:#27324b;color:#e6ebf5}
html[data-theme="dark"] .teaser.earn,html[data-theme="dark"] .plus-nudge,html[data-theme="dark"] .ref-banner{background:linear-gradient(120deg,#3a3210,#103a2a)}
html[data-theme="dark"] .teaser.opp{background:linear-gradient(120deg,color-mix(in srgb,var(--subj) 22%,#151f33),#151f33)}
html[data-theme="dark"] .opp-demand{color:#ffb36b}
/* v4.3 gelap */
html[data-theme="dark"] .book-card,html[data-theme="dark"] .tutor-card,html[data-theme="dark"] .tick span{background:#151f33;border-color:#27324b;color:#e6ebf5}
html[data-theme="dark"] .teaser.kelas,html[data-theme="dark"] .teaser.kelas.hot{background:linear-gradient(120deg,#1d2a4a,#151f33)}
html[data-theme="dark"] .book-prog code{background:#0f172a}
html[data-theme="dark"] .book-pill.requested{background:#3a3210;color:#ffd666}
html[data-theme="dark"] .book-pill.confirmed{background:#103a2a;color:#86efac}
html[data-theme="dark"] .book-pill.done{background:#1e1b4b;color:#c7d2fe}
/* v4.4 gelap */
html[data-theme="dark"] .plan-card.best{background:linear-gradient(120deg,#3a3210,#151f33)}
html[data-theme="dark"] .taster-tag{background:#3a3210;color:#ffd666}
html[data-theme="dark"] .cov-cell.c-thin{background:#854d0e;color:#fef3c7}
html[data-theme="dark"] .cov-cell.c-multi{background:#312e81;color:#e0e7ff}
html[data-theme="dark"] .cov-cell.c-empty{background:#7f1d1d;color:#fecaca}
html[data-theme="dark"] .cov-cell.c-full{background:#15803d}
/* v4.5 gelap */
html[data-theme="dark"] .lesson-note{background:linear-gradient(120deg,#1d2a4a,#2a1f4a)}
html[data-theme="dark"] .passage{background:#2a2414;border-color:#5a4a20}
html[data-theme="dark"] .flash .back,html[data-theme="dark"] .mitem{background:#151f33;color:#e6ebf5;border-color:#27324b}
html[data-theme="dark"] .mitem.paired{color:#0f172a}
html[data-theme="dark"] .adv-path{background:linear-gradient(120deg,#0e3a44,#113a2a)}
html[data-theme="dark"] .adv-path .st{background:#151f33}
html[data-theme="dark"] .last-exam,html[data-theme="dark"] .exam-timer{background:#1e1b4b;color:#c7d2fe}
html[data-theme="dark"] .short-in.wrong{background:#3a1d0a}


/* v4.6.1: parent child-settings controls — clear hover/focus in dark mode */
html[data-theme="dark"] body.theme-parent .chip-set button,
html[data-theme="dark"] body.theme-parent .stepper button,
html[data-theme="dark"] body.theme-parent .actions .btn,
html[data-theme="dark"] body.theme-parent .settings-fold summary{
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
html[data-theme="dark"] body.theme-parent .chip-set button:hover:not([aria-pressed="true"]),
html[data-theme="dark"] body.theme-parent .stepper button:hover,
html[data-theme="dark"] body.theme-parent .actions .btn.ghost:hover,
html[data-theme="dark"] body.theme-parent .actions .btn.soft:hover{
  background:#16483d;
  border-color:#2fd3a8;
  color:#b8ffeb;
  box-shadow:0 0 0 2px rgba(47,211,168,.16);
}
html[data-theme="dark"] body.theme-parent .chip-set button[aria-pressed="true"],
html[data-theme="dark"] body.theme-parent .chip-set button[aria-pressed="true"]:hover{
  background:#145b4b;
  border-color:#2fd3a8;
  color:#ffffff;
  box-shadow:0 0 0 2px rgba(47,211,168,.18);
}
html[data-theme="dark"] body.theme-parent .actions .btn:not(.ghost):not(.soft):hover{
  filter:brightness(1.12);
  box-shadow:0 0 0 3px rgba(47,211,168,.2),0 8px 18px rgba(0,0,0,.22);
  transform:translateY(-1px);
}
html[data-theme="dark"] body.theme-parent .settings-fold summary:hover{
  color:#b8ffeb;
  background:rgba(47,211,168,.08);
  border-radius:10px;
}
html[data-theme="dark"] body.theme-parent .chip-set button:focus-visible,
html[data-theme="dark"] body.theme-parent .stepper button:focus-visible,
html[data-theme="dark"] body.theme-parent .actions .btn:focus-visible,
html[data-theme="dark"] body.theme-parent .settings-fold summary:focus-visible{
  outline:3px solid #2fd3a8;
  outline-offset:3px;
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="dark"] body.theme-parent .chip-set button,
  html[data-theme="dark"] body.theme-parent .stepper button,
  html[data-theme="dark"] body.theme-parent .actions .btn,
  html[data-theme="dark"] body.theme-parent .settings-fold summary{transition:none}
}

/* Parent billing contrast tokens — accessible in light and dark themes */
.billing-provider-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);margin:14px 0}
.billing-provider-logo{width:46px;height:42px;display:grid;place-items:center;border-radius:11px;background:#f1eaff;color:#5d36a8;font:800 14px Manrope,sans-serif;letter-spacing:-.5px}
.billing-provider-card .grow{display:grid;gap:3px}
.billing-provider-card .grow b{font-size:13px;color:var(--ink)}
.billing-provider-card .grow small{font-size:11px;color:var(--muted);line-height:1.45}
.billing-section{background:var(--white);color:var(--ink);border:1px solid var(--line)}
.billing-section h3,.billing-section b,.billing-tx-title>b{color:var(--ink)}
.billing-eyebrow{color:var(--muted)}
.billing-price-tag,.billing-secure{background:var(--accent-soft);color:var(--accent-ink)}
.billing-addon,.billing-bank,.billing-payment-steps>div,.checkout-bank,.checkout-summary{background:var(--canvas);border-color:var(--line);color:var(--ink)}
.billing-addon-icon{background:var(--accent-soft);color:var(--accent-ink)}
.billing-addon .grow b,.billing-tx-meta b,.billing-bank b,.checkout-bank b{color:var(--ink)}
.billing-addon .grow small,.billing-tx-meta,.billing-tx-main>small,.billing-bank small,.checkout-bank small{color:var(--muted)}
.billing-tx-amount,.billing-core-price,.checkout-summary strong{color:var(--ink)}
.billing-payment-steps span,.checkout-instructions{color:var(--muted)}
.billing-pending{background:var(--warn-bg);border-color:color-mix(in srgb,var(--warn) 35%,var(--line));}
.billing-pending h3,.billing-pending p,.billing-pending small{color:var(--ink)}
.billing-status.pending{background:var(--warn-bg);color:var(--warn)}
.billing-status.review{background:var(--accent-soft);color:var(--accent-ink)}
.billing-status.success{background:var(--good-bg);color:var(--good)}
.billing-status.danger{background:var(--bad-bg);color:var(--bad)}
.billing-status.muted{background:var(--canvas);color:var(--muted)}
.billing-empty{color:var(--ink)}
.billing-active-note{background:var(--good-bg);color:var(--ink)}
.billing-active-note b{color:var(--good)}
.billing-creator-note{display:none!important}
html[data-theme="dark"] .billing-section{background:#122220;border-color:#29453f;color:#e6f2ef}
html[data-theme="dark"] .billing-section h3,html[data-theme="dark"] .billing-section b,html[data-theme="dark"] .billing-tx-title>b,html[data-theme="dark"] .billing-tx-amount,html[data-theme="dark"] .billing-core-price,html[data-theme="dark"] .checkout-summary strong{color:#e6f2ef}
html[data-theme="dark"] .billing-provider-card,html[data-theme="dark"] .billing-addon,html[data-theme="dark"] .billing-bank,html[data-theme="dark"] .billing-payment-steps>div,html[data-theme="dark"] .checkout-bank,html[data-theme="dark"] .checkout-summary{background:#0e1b19;border-color:#29453f;color:#e6f2ef}
html[data-theme="dark"] .billing-provider-card .grow b,html[data-theme="dark"] .billing-addon .grow b,html[data-theme="dark"] .billing-tx-meta b,html[data-theme="dark"] .billing-bank b,html[data-theme="dark"] .checkout-bank b{color:#e6f2ef}
html[data-theme="dark"] .billing-provider-card .grow small,html[data-theme="dark"] .billing-addon .grow small,html[data-theme="dark"] .billing-tx-meta,html[data-theme="dark"] .billing-tx-main>small,html[data-theme="dark"] .billing-bank small,html[data-theme="dark"] .checkout-bank small,html[data-theme="dark"] .billing-payment-steps span{color:#a9c4bc}
html[data-theme="dark"] .billing-price-tag,html[data-theme="dark"] .billing-secure{background:#17372f;color:#9ce8d2}
html[data-theme="dark"] .billing-addon-icon{background:#17372f;color:#9ce8d2}
html[data-theme="dark"] .billing-pending{background:#342b17;border-color:#65502b}
html[data-theme="dark"] .billing-pending h3,html[data-theme="dark"] .billing-pending p,html[data-theme="dark"] .billing-pending small{color:#f4dfb4}
html[data-theme="dark"] .billing-status.pending{background:#453517;color:#ffda8b}
html[data-theme="dark"] .billing-status.review{background:#20314c;color:#b8ccff}
html[data-theme="dark"] .billing-status.success{background:#173d30;color:#9ce8c8}
html[data-theme="dark"] .billing-status.danger{background:#48242b;color:#ffb3bd}
html[data-theme="dark"] .billing-status.muted{background:#26332f;color:#b3c5be}
html[data-theme="dark"] .billing-active-note{background:#173d30}
html[data-theme="dark"] .billing-active-note b{color:#9ce8c8}
html[data-theme="dark"] .checkout-reference{background:#102b24;border-color:#397b68}
html[data-theme="dark"] .checkout-reference b{color:#9ce8d2}
html[data-theme="dark"] .checkout-instructions{color:#b8c9c3}


/* ---------- CELIK subscription page: refreshed information hierarchy ---------- */
.subscr-page{display:grid;gap:22px;max-width:1120px;margin:0 auto 36px}
.subscr-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px;padding:clamp(22px,4vw,38px);border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line));border-radius:24px;background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 13%,var(--white)),var(--white) 68%);color:var(--ink);box-shadow:var(--shadow)}
.subscr-hero:after{content:"";position:absolute;width:260px;height:260px;right:70px;top:-155px;border-radius:50%;background:color-mix(in srgb,var(--accent) 12%,transparent);pointer-events:none}
.subscr-kicker{display:block;color:var(--accent-ink);font-size:10px;font-weight:900;letter-spacing:.13em;line-height:1.5}
.subscr-hero h2{margin:10px 0 8px;font-size:clamp(25px,4vw,38px);line-height:1.12;letter-spacing:-.035em;color:var(--ink)}
.subscr-hero h2 em{font-style:normal;color:var(--accent-ink)}
.subscr-hero-copy p{max-width:620px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.subscr-hero-mark{align-self:center;justify-self:center;display:grid;place-items:center;width:112px;height:112px;border-radius:30px;background:linear-gradient(145deg,var(--accent),color-mix(in srgb,var(--accent) 55%,#7b61ff));color:white;box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 22%,transparent);transform:rotate(5deg)}
.subscr-hero-mark span{font-size:48px;line-height:1}.subscr-hero-mark small{font-size:10px;font-weight:900;letter-spacing:.18em}
.subscr-metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.subscr-metrics>div{display:grid;gap:5px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--white) 88%,transparent)}
.subscr-metrics small{font-size:11px;color:var(--muted)}.subscr-metrics b{font-size:16px;color:var(--ink)}
.subscr-section{display:grid;gap:14px}
.subscr-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.subscr-section-heading h3{margin:4px 0;font-size:21px;letter-spacing:-.02em;color:var(--ink)}
.subscr-section-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.55;max-width:650px}
.subscr-tag{flex:none;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--white);color:var(--muted);font-size:11px;font-weight:800}
.subscr-lifetime-card{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(260px,.95fr);gap:0;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:var(--white);box-shadow:var(--shadow)}
.subscr-lifetime-main{padding:clamp(20px,3vw,30px);background:linear-gradient(145deg,color-mix(in srgb,var(--accent) 11%,var(--white)),var(--white))}
.subscr-price{margin:8px 0 2px;font-size:clamp(32px,5vw,44px);font-weight:950;letter-spacing:-.045em;color:var(--ink)}
.subscr-lifetime-main>p{margin:0 0 16px;color:var(--muted);font-size:13px}
.subscr-lifetime-main .btn{max-width:420px}
.subscr-includes{padding:24px;display:grid;align-content:center;gap:12px;border-left:1px solid var(--line)}
.subscr-includes>b{font-size:13px;color:var(--ink)}
.subscr-includes .checks{margin:0;padding-left:19px;display:grid;gap:9px;font-size:12px;color:var(--muted)}
.subscr-footnote{margin:-5px 0 0;color:var(--muted);font-size:11px}
.subscr-addon-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.subscr-addon-grid .billing-addon{min-width:0;padding:17px;border:1px solid var(--line);border-radius:17px;background:var(--white);display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px 12px;align-items:start}
.subscr-addon-grid .billing-addon-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--accent-soft);font-size:22px}
.subscr-addon-grid .billing-addon .grow{display:grid;gap:5px}
.subscr-addon-grid .billing-addon .grow b{font-size:14px;color:var(--ink)}
.subscr-addon-grid .billing-addon .grow small{font-size:12px;line-height:1.5;color:var(--muted)}
.subscr-addon-grid .billing-addon-action{grid-column:2;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.subscr-addon-grid .billing-addon-action>b{font-size:15px;color:var(--ink)}
.subscr-gateway{display:flex;align-items:center;gap:14px;padding:17px;border:1px solid var(--line);border-radius:17px;background:var(--white)}
.subscr-gateway-brand{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:14px;background:#6554c0;color:#fff;font-weight:950;font-size:16px;letter-spacing:-.04em}
.subscr-gateway-copy{min-width:0;display:grid;gap:4px;flex:1}
.subscr-gateway-copy b{font-size:15px;color:var(--ink)}.subscr-gateway-copy small{font-size:12px;line-height:1.5;color:var(--muted)}
.subscr-gateway-status{flex:none;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:850}
.subscr-gateway-status.is-success,.subscr-gateway-note.is-success{background:var(--good-bg);color:var(--good)}
.subscr-gateway-status.is-info,.subscr-gateway-note.is-info{background:var(--accent-soft);color:var(--accent-ink)}
.subscr-gateway-status.is-warning,.subscr-gateway-note.is-warning{background:var(--warn-bg);color:var(--warn)}
.subscr-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.subscr-flow>div{display:flex;align-items:flex-start;gap:9px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.subscr-flow>div>b{width:25px;height:25px;flex:none;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px}
.subscr-flow>div>span{font-size:11px;line-height:1.5;color:var(--muted)}
.subscr-gateway-note{display:grid;gap:4px;padding:14px 16px;border-radius:14px;font-size:12px;line-height:1.55}
.subscr-gateway-note b{font-size:13px}.subscr-gateway-note span{opacity:.9}
.subscr-history{display:grid;gap:9px}
.subscr-history .billing-tx{padding:15px 17px;border:1px solid var(--line);border-radius:15px;background:var(--white)}
.subscr-empty{display:grid;justify-items:center;gap:6px;padding:30px 16px;border:1px dashed var(--line);border-radius:17px;text-align:center;color:var(--muted)}
.subscr-empty>span{font-size:25px}.subscr-empty b{color:var(--ink);font-size:14px}.subscr-empty small{font-size:12px}
.subscr-pending-wrap{display:grid;gap:10px}.subscr-pending-wrap .billing-pending{margin:0}
html[data-theme="dark"] .subscr-hero{background:linear-gradient(125deg,#16312d,#122220 68%);border-color:#285048}
html[data-theme="dark"] .subscr-hero:after{background:#1e5144}
html[data-theme="dark"] .subscr-hero-mark{color:#fff}
html[data-theme="dark"] .subscr-lifetime-main{background:linear-gradient(145deg,#183a33,#122220)}
html[data-theme="dark"] .subscr-addon-grid .billing-addon,html[data-theme="dark"] .subscr-gateway,html[data-theme="dark"] .subscr-flow>div,html[data-theme="dark"] .subscr-history .billing-tx{background:#122220;border-color:#285048}
html[data-theme="dark"] .subscr-gateway-status.is-info,html[data-theme="dark"] .subscr-gateway-note.is-info{background:#173b34;color:#8ce5cb}
@media(max-width:720px){
 .subscr-page{gap:19px}.subscr-hero{grid-template-columns:minmax(0,1fr) 76px;padding:20px;border-radius:19px;gap:10px}
 .subscr-hero-mark{width:70px;height:70px;border-radius:20px}.subscr-hero-mark span{font-size:32px}.subscr-hero-mark small{font-size:8px}
 .subscr-metrics{gap:7px}.subscr-metrics>div{padding:10px}.subscr-metrics small{font-size:10px}.subscr-metrics b{font-size:13px}
 .subscr-lifetime-card{grid-template-columns:1fr}.subscr-includes{border-left:0;border-top:1px solid var(--line);padding:19px 22px}
 .subscr-addon-grid{grid-template-columns:1fr}.subscr-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
 .subscr-section-heading{align-items:flex-start}.subscr-section-heading h3{font-size:19px}
}
@media(max-width:420px){.subscr-hero{grid-template-columns:1fr}.subscr-hero-mark{display:none}.subscr-metrics{grid-template-columns:1fr}.subscr-gateway{align-items:flex-start;flex-wrap:wrap}.subscr-gateway-status{margin-left:62px}.subscr-flow{grid-template-columns:1fr}}

/* CELIK annual billing clarity and disabled action states */
.subscr-lifetime-main .notice{max-width:520px;line-height:1.55}
.subscr-addon-grid button:disabled,.subscr-lifetime-main button:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.55)}
.subscr-addon-grid .billing-addon-action{min-height:34px}
.subscr-section-heading p{max-width:720px}


/* CELIK Portal polish — consistent professional shell with a playful learning character */
.nav-cart-icon{display:inline-block;width:1.12em;height:1.12em;vertical-align:-.19em;flex:none}
#navTop [data-page="billing"] .nav-cart-icon,#navBottom [data-page="billing"] .nav-cart-icon{color:currentColor}
#navTop button,#navBottom button,.side-links button{transition:background .18s ease,color .18s ease,transform .18s ease}
#navTop button:hover,#navBottom button:hover,.side-links button:hover{transform:translateY(-1px)}
#navTop button:focus-visible,#navBottom button:focus-visible,.side-links button:focus-visible,
.btn:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
 outline:3px solid color-mix(in srgb,var(--accent) 42%,transparent);outline-offset:2px
}
.surface,.billing-section,.plan-product-card,.parent-next-card,.template-card,.opp-card,.product-card{
 border-radius:18px
}
.surface{box-shadow:0 5px 20px rgba(22,35,54,.035)}
.surface-title{gap:12px}
.surface-title h3{letter-spacing:-.018em}
.page>header,.page>.welcome-row{margin-bottom:18px}
.page p{line-height:1.58}
.btn,.primary,.outline{font-weight:750;letter-spacing:.005em;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.btn:not(:disabled):hover,.primary:not(:disabled):hover,.outline:not(:disabled):hover{transform:translateY(-1px)}
.btn:disabled,.primary:disabled,.outline:disabled{cursor:not-allowed;opacity:.56}
.field,input,select,textarea{border-radius:11px}
.tablewrap,.table-scroll{border-radius:14px;overflow:auto}
.data-table th,.table th{font-size:10px;letter-spacing:.045em;text-transform:uppercase}
.creator-hero,.template-hero{border-radius:22px;overflow:hidden}
.creator-flow .flow-step{border-radius:15px}
.template-grid{gap:14px}
.template-card{transition:transform .18s ease,box-shadow .18s ease}
.template-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(28,42,70,.09)}
.opp-card{border:1px solid var(--line);background:var(--surface)}
.plan-product-card{box-shadow:0 3px 12px rgba(22,35,54,.025);transition:border-color .18s ease,transform .18s ease}
.plan-product-card:hover{border-color:color-mix(in srgb,var(--accent) 42%,var(--line));transform:translateY(-1px)}
.plan-product-icon{border-radius:14px;background:color-mix(in srgb,var(--subj,#8b9bb2) 12%,var(--surface))}
.parent-next-card:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));box-shadow:0 8px 22px rgba(22,35,54,.06)}
/* Student World stays visibly playful; adult portals stay calm and confident. */
.theme-student .surface,.theme-student .quest-feature,.theme-student .kid-reward{border-radius:22px}
.theme-student .adv-btn,.theme-student .map-stop,.theme-student .kid-chip{transition:transform .16s ease,filter .16s ease}
.theme-student .adv-btn:hover,.theme-student .map-stop:hover,.theme-student .kid-chip:hover{transform:translateY(-2px);filter:saturate(1.08)}
.theme-student .adventure{border-radius:26px}
.theme-student .kid-hello h1{letter-spacing:-.035em}
.theme-creator .side-bottom{border-radius:18px}
.theme-parent .parent-welcome{box-shadow:0 8px 24px rgba(27,58,43,.045)}
html[data-theme="dark"] .surface{box-shadow:none}
html[data-theme="dark"] .plan-product-card,html[data-theme="dark"] .parent-next-card{box-shadow:none}
@media(max-width:640px){
 .surface{border-radius:16px}
 .surface-title{align-items:flex-start}
 .tablewrap,.table-scroll{margin-inline:-2px}
 #navBottom button{min-width:0}
 .nav-cart-icon{width:1.18em;height:1.18em}
}
@media(prefers-reduced-motion:reduce){
 #navTop button,#navBottom button,.side-links button,.btn,.primary,.outline,.template-card,.plan-product-card,.parent-next-card{transition:none}
 #navTop button:hover,#navBottom button:hover,.side-links button:hover,.btn:hover,.primary:hover,.outline:hover,.template-card:hover,.plan-product-card:hover,.parent-next-card:hover{transform:none}
}


/* =========================================================
   CELIK DESIGN SYSTEM 2026 — unified light/dark tokens
   Applied last so legacy component rules cannot create
   competing backgrounds, stacked accents or unreadable text.
   ========================================================= */
:root{
  color-scheme:light;
  --canvas:#f6f8fc;
  --white:#ffffff;
  --surface:#ffffff;
  --surface-2:#f1f4f9;
  --surface-3:#e9eef6;
  --ink:#17243b;
  --muted:#64728a;
  --line:#e1e7f0;
  --accent:#536fe0;
  --accent-soft:#edf1ff;
  --accent-ink:#405cc7;
  --good:#167a59;--good-bg:#e8f6ef;
  --warn:#8b5b0a;--warn-bg:#fff5df;
  --bad:#b33c4a;--bad-bg:#fff0f1;
  --shadow:0 8px 26px rgba(27,43,70,.055);
  --focus:color-mix(in srgb,var(--accent) 48%,white);
}
body.theme-creator{
  --accent:#496fe0;--accent-soft:#edf2ff;--accent-ink:#3458c4;
  --portal-tint:#eef3ff;--portal-line:#dce6ff;
}
body.theme-parent{
  --accent:#12866d;--accent-soft:#e8f6f0;--accent-ink:#08745c;
  --portal-tint:#edf8f3;--portal-line:#d9eee4;
}
body.theme-student{
  --accent:#7054d8;--accent-soft:#f0edff;--accent-ink:#5a43bc;
  --portal-tint:#f4f0ff;--portal-line:#e5ddff;
}
body{background:var(--canvas);color:var(--ink)}
.page,.shell{color:var(--ink)}
.surface,.authcard,.modal,.mk-card,.qcard,.billing-section,.plan-product-card,
.parent-next-card,.settings-list,.lib-row,.device-row,.child-card,.discover,
.quest-feature,.reward,.bdg,.template-card,.template-summary>div,.opp-card,
.book-card,.tutor-card,.tick span,.tour-card,.choice,.kid-reward,.kid-challenge,
.ch-opt,.wb-bank-year,.wb-bank-word,.wb-modes>div,.wb-play,.wb-tile,
.parent-cart,.billing-provider-card{
  background:var(--surface);color:var(--ink);border-color:var(--line);
}
.surface,.mk-card,.qcard,.billing-section,.template-card,.parent-next-card{
  box-shadow:var(--shadow);
}
.surface-title h2,.surface-title h3,.surface h1,.surface h2,.surface h3,
.mk-card h3,.plan-product-main>b,.billing-section h3,.billing-addon .grow b,
.settings-list button,.data-table,.table{color:var(--ink)}
p,.muted,.small,.tiny,.mk-meta,.mk-hook,.plan-product-main>small,
.billing-addon .grow small,.billing-tx-meta,.billing-tx-main>small,
.template-category,.template-level,.help-center-list article>p{color:var(--muted)}
input,select,textarea,.field,.mk-search,.template-filters input,.template-filters select{
  background:var(--surface);color:var(--ink);border-color:var(--line);
}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:.78}
button{color:inherit}
.btn.ghost,.outline{background:var(--surface);color:var(--accent-ink);border-color:var(--line)}
.btn.soft{background:var(--accent-soft);color:var(--accent-ink);border-color:transparent}
.primary,.btn:not(.ghost):not(.soft):not(.danger){border-color:transparent}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.topnav,.subnav,.bottomnav,.creator-side{
  background:var(--surface);border-color:var(--line);color:var(--ink)
}
.portal-switch,.tabs,.seg,.chips{background:var(--surface-2);border-color:var(--line)}
.portal-switch button,.tabs button,.seg button,.chip{color:var(--muted)}
.portal-switch button.sel,.tabs button.sel,.seg button[aria-pressed="true"]{
  background:var(--surface);color:var(--accent-ink);box-shadow:0 2px 8px rgba(20,35,60,.08)
}
#navTop button,#navBottom button,.side-links button{color:var(--muted)}
#navTop button[aria-current="page"],#navBottom button[aria-current="page"],
.side-links button[aria-current="page"],#navTop button.active,
#navBottom button.active,.side-links button.active{color:var(--accent-ink)}
.chip{background:var(--surface);border-color:var(--line)}
.chip.sel{background:var(--accent);border-color:var(--accent);color:#fff}
.chip.sel b{background:rgba(255,255,255,.2);color:#fff}
.mk-art,.plan-product-icon,.billing-addon-icon,.billing-provider-logo,
.product-thumb,.template-art,.template-modal-art,.template-upload-icon{
  background:var(--accent-soft);color:var(--accent-ink)
}
.mk-card .mk-foot,.billing-tx,.parent-cart-row,.product-row,.note-row,
.settings-list button,.data-table td,.data-table th,.table td,.table th{
  border-color:var(--line)
}
.notice{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.notice.ok,.billing-active-note,.billing-status.success{background:var(--good-bg);color:var(--good)}
.notice.warn,.billing-status.pending{background:var(--warn-bg);color:var(--warn)}
.notice.danger,.billing-status.danger{background:var(--bad-bg);color:var(--bad)}
.billing-status.review{background:var(--accent-soft);color:var(--accent-ink)}
.billing-status.muted{background:var(--surface-2);color:var(--muted)}
.progress,.bar,.reward-mini i,.kr-bar,.weekdots i{background:var(--surface-3)}
.progress i,.bar i{background:var(--accent)}
.parent-welcome,.parent-hero,.family-hero,.plan-hero{
  background:linear-gradient(120deg,var(--portal-tint),var(--surface));border-color:var(--portal-line);color:var(--ink)
}
.creator-hero,.earn-hero,.template-hero{border:1px solid var(--portal-line)}
.parent-welcome h2,.parent-welcome p,.parent-welcome-mark{color:var(--ink)}
.parent-insight{background:var(--accent-soft);color:var(--ink)}
.parent-insight b,.parent-next-card>strong{color:var(--accent-ink)}
.plan-product-card:hover,.parent-next-card:hover,.template-card:hover{
  border-color:color-mix(in srgb,var(--accent) 38%,var(--line))
}
.settings-list .ico{background:var(--accent-soft)!important;color:var(--accent-ink)}
.billing-overview,.subscr-hero{color:#fff}
.billing-overview h2,.subscr-hero h2,.billing-overview p,.subscr-hero p{color:inherit}
.billing-section,.billing-provider-card,.billing-addon,.billing-bank,
.billing-payment-steps>div,.checkout-bank,.checkout-summary,.subscr-history .billing-tx{
  background:var(--surface);color:var(--ink);border-color:var(--line)
}
.billing-addon-icon{background:var(--accent-soft);color:var(--accent-ink)}
.billing-pending{background:var(--warn-bg);border-color:color-mix(in srgb,var(--warn) 30%,var(--line))}
.billing-pending h3,.billing-pending p,.billing-pending small{color:var(--ink)}
.parent-cart{box-shadow:0 8px 24px rgba(20,35,60,.10)}
.kid-chip,.kid-reward,.kid-challenge,.quest-feature,.map-label,.reward,.bdg{
  border-color:var(--line)
}
.adventure{border:1px solid rgba(255,255,255,.14)}
.adventure .overline,.adventure h2,.adventure p{color:#fff}
.adv-btn{background:#fff;color:#4f3da8}
.opt{background:var(--surface);color:var(--ink);border-color:var(--line)}
.opt.right,.feedback.good{background:var(--good-bg);color:var(--good);border-color:var(--good)}
.opt.wrong,.feedback.try{background:var(--bad-bg);color:var(--bad);border-color:var(--bad)}
.feedback.learn{background:var(--accent-soft);color:var(--accent-ink)}
.flash .front{background:linear-gradient(135deg,var(--accent),var(--accent-ink));color:#fff}
.flash .back,.mitem{background:var(--surface);color:var(--ink);border-color:var(--line)}
.modalback{background:rgba(10,18,32,.52)}
.toast{background:var(--ink);color:#fff}
.table-scroll,.tablewrap{border-color:var(--line)}
.data-table th,.table th{background:var(--surface-2);color:var(--muted)}
.pair-code{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
.child-avatar,.kid-avatar,.plan-avatar{background:var(--accent-soft)}
.subj-ic{background:color-mix(in srgb,var(--subj,var(--accent)) 12%,var(--surface))}
/* Light mode: prevent old fixed-color layers from competing with portal accents. */
html:not([data-theme="dark"]) body.theme-creator .creator-hero{background:linear-gradient(120deg,#eaf0ff,#f7f9ff 65%,#f0edff);color:#1d2d50}
html:not([data-theme="dark"]) body.theme-parent .parent-welcome{background:linear-gradient(120deg,#e9f7f0,#f6fbf8 62%,#edf7f4);color:#183b31}
html:not([data-theme="dark"]) body.theme-student .adventure{background:linear-gradient(120deg,#5142bd,#7661db 58%,#b15eac);color:#fff}
/* Dark mode: one neutral surface hierarchy; portal accents remain accents, not extra backgrounds. */
html[data-theme="dark"]{
  color-scheme:dark;
  --canvas:#101722;--white:#182231;--surface:#182231;--surface-2:#202c3c;--surface-3:#2b394b;
  --ink:#edf2fa;--muted:#a9b6c9;--line:#344256;
  --good:#73ddb1;--good-bg:#17372e;--warn:#f5cf7b;--warn-bg:#3b301c;
  --bad:#ff9aa4;--bad-bg:#3d242b;--shadow:0 10px 28px rgba(0,0,0,.22);
  --focus:#91a8ff;
}
html[data-theme="dark"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="dark"] body.theme-creator{--accent:#91aaff;--accent-soft:#263653;--accent-ink:#b6c9ff;--portal-tint:#202d43;--portal-line:#354966}
html[data-theme="dark"] body.theme-parent{--accent:#65d9b7;--accent-soft:#1d4038;--accent-ink:#9cebd3;--portal-tint:#1b332e;--portal-line:#31544a}
html[data-theme="dark"] body.theme-student{--accent:#b5a2ff;--accent-soft:#30294d;--accent-ink:#d0c4ff;--portal-tint:#292441;--portal-line:#443a68}
html[data-theme="dark"] .topnav,html[data-theme="dark"] .subnav,html[data-theme="dark"] .bottomnav,
html[data-theme="dark"] .creator-side{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .surface,html[data-theme="dark"] .authcard,html[data-theme="dark"] .modal,
html[data-theme="dark"] .mk-card,html[data-theme="dark"] .qcard,html[data-theme="dark"] .billing-section,
html[data-theme="dark"] .plan-product-card,html[data-theme="dark"] .parent-next-card,
html[data-theme="dark"] .settings-list,html[data-theme="dark"] .settings-list button,
html[data-theme="dark"] .lib-row,html[data-theme="dark"] .device-row,html[data-theme="dark"] .child-card,
html[data-theme="dark"] .discover,html[data-theme="dark"] .quest-feature,html[data-theme="dark"] .reward,
html[data-theme="dark"] .bdg,html[data-theme="dark"] .template-card,html[data-theme="dark"] .opp-card,
html[data-theme="dark"] .book-card,html[data-theme="dark"] .tutor-card,html[data-theme="dark"] .tick span,
html[data-theme="dark"] .tour-card,html[data-theme="dark"] .choice,html[data-theme="dark"] .kid-reward,
html[data-theme="dark"] .kid-challenge,html[data-theme="dark"] .ch-opt,html[data-theme="dark"] .wb-bank-year,
html[data-theme="dark"] .wb-bank-word,html[data-theme="dark"] .wb-modes>div,html[data-theme="dark"] .wb-play,
html[data-theme="dark"] .wb-tile,html[data-theme="dark"] .parent-cart,
html[data-theme="dark"] .billing-provider-card,html[data-theme="dark"] .billing-addon,
html[data-theme="dark"] .billing-bank,html[data-theme="dark"] .billing-payment-steps>div,
html[data-theme="dark"] .checkout-bank,html[data-theme="dark"] .checkout-summary,
html[data-theme="dark"] .subscr-history .billing-tx{
  background:var(--surface);color:var(--ink);border-color:var(--line)
}
html[data-theme="dark"] .portal-switch,html[data-theme="dark"] .tabs,html[data-theme="dark"] .seg,
html[data-theme="dark"] .chips,html[data-theme="dark"] .data-table th,html[data-theme="dark"] .table th{
  background:var(--surface-2);color:var(--muted)
}
html[data-theme="dark"] .portal-switch button.sel,html[data-theme="dark"] .tabs button.sel,
html[data-theme="dark"] .seg button[aria-pressed="true"]{background:var(--surface-3);color:var(--accent-ink);box-shadow:none}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,
html[data-theme="dark"] .field,html[data-theme="dark"] .mk-search,
html[data-theme="dark"] .template-filters input,html[data-theme="dark"] .template-filters select{
  background:#111b29;color:var(--ink);border-color:var(--line)
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8998ad}
html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] .outline{background:transparent;color:var(--accent-ink);border-color:var(--line)}
html[data-theme="dark"] .btn.soft{background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] .notice{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .notice.ok,html[data-theme="dark"] .billing-active-note{background:var(--good-bg);color:var(--good)}
html[data-theme="dark"] .notice.warn,html[data-theme="dark"] .billing-pending{background:var(--warn-bg);color:var(--warn)}
html[data-theme="dark"] .notice.danger{background:var(--bad-bg);color:var(--bad)}
html[data-theme="dark"] .billing-status.success{background:var(--good-bg);color:var(--good)}
html[data-theme="dark"] .billing-status.pending{background:var(--warn-bg);color:var(--warn)}
html[data-theme="dark"] .billing-status.danger{background:var(--bad-bg);color:var(--bad)}
html[data-theme="dark"] .billing-status.review{background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] .billing-status.muted{background:var(--surface-2);color:var(--muted)}
html[data-theme="dark"] .parent-welcome,html[data-theme="dark"] .parent-hero,
html[data-theme="dark"] .family-hero,html[data-theme="dark"] .plan-hero{
  background:linear-gradient(120deg,var(--portal-tint),var(--surface));border-color:var(--portal-line);color:var(--ink)
}
html[data-theme="dark"] .parent-welcome h2,html[data-theme="dark"] .parent-welcome p,
html[data-theme="dark"] .parent-welcome-mark{color:var(--ink)}
html[data-theme="dark"] .parent-insight{background:var(--accent-soft);color:var(--ink)}
html[data-theme="dark"] .parent-insight b,html[data-theme="dark"] .parent-next-card>strong{color:var(--accent-ink)}
html[data-theme="dark"] .adventure{background:linear-gradient(120deg,#382d83,#51429a 58%,#753e78);color:#fff}
html[data-theme="dark"] .adventure .overline,html[data-theme="dark"] .adventure h2,
html[data-theme="dark"] .adventure p{color:#fff}
html[data-theme="dark"] .adv-btn{background:#fff;color:#43358f}
html[data-theme="dark"] .opt{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .opt.right,html[data-theme="dark"] .feedback.good{background:var(--good-bg);color:var(--good);border-color:var(--good)}
html[data-theme="dark"] .opt.wrong,html[data-theme="dark"] .feedback.try{background:var(--bad-bg);color:var(--bad);border-color:var(--bad)}
html[data-theme="dark"] .feedback.learn{background:var(--accent-soft);color:var(--accent-ink)}
html[data-theme="dark"] .flash .back,html[data-theme="dark"] .mitem{background:var(--surface-2);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .progress,html[data-theme="dark"] .bar,
html[data-theme="dark"] .reward-mini i,html[data-theme="dark"] .kr-bar{background:var(--surface-3)}
html[data-theme="dark"] .progress i,html[data-theme="dark"] .bar i{background:var(--accent)}
html[data-theme="dark"] .subj-ic{background:color-mix(in srgb,var(--subj,var(--accent)) 22%,var(--surface))!important}
html[data-theme="dark"] .toast{background:#f1f5fb;color:#17243b}
html[data-theme="dark"] .modalback{background:rgba(3,8,16,.72)}
html[data-theme="dark"] .billing-section h3,html[data-theme="dark"] .billing-section b,
html[data-theme="dark"] .billing-tx-title>b,html[data-theme="dark"] .billing-tx-amount,
html[data-theme="dark"] .billing-core-price,html[data-theme="dark"] .checkout-summary strong{color:var(--ink)}
html[data-theme="dark"] .billing-pending h3,html[data-theme="dark"] .billing-pending p,
html[data-theme="dark"] .billing-pending small{color:var(--ink)}
html[data-theme="dark"] .mk-review{color:var(--good);background:var(--good-bg)}
html[data-theme="dark"] .template-status.ready{color:var(--good);background:var(--good-bg)}
html[data-theme="dark"] .template-status.soon{color:var(--warn);background:var(--warn-bg)}
html[data-theme="dark"] .billing-addon-icon,html[data-theme="dark"] .billing-provider-logo,
html[data-theme="dark"] .product-thumb,html[data-theme="dark"] .template-art,
html[data-theme="dark"] .template-modal-art,html[data-theme="dark"] .template-upload-icon{
  background:var(--accent-soft);color:var(--accent-ink)
}
@media(max-width:720px){
  .subscr-lifetime-card{grid-template-columns:1fr}
}
@media(max-width:640px){
  .page{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
  .bottomnav{padding-bottom:env(safe-area-inset-bottom)}
  .surface,.mk-card,.template-card,.billing-section{border-radius:16px}
  .surface-title{align-items:flex-start}
  .parent-cart{bottom:calc(74px + env(safe-area-inset-bottom))}
  .billing-addon-list,.subscr-addon-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* Dark-mode filled buttons use dark ink on the brighter portal accents.
   White text on the softened dark-theme accents did not meet readable contrast. */
html[data-theme="dark"] .primary,
html[data-theme="dark"] .btn:not(.ghost):not(.soft):not(.danger){
  color:#101722;
}
html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] .primary:disabled{color:#101722;opacity:.48}


/* Creator navigation: retain its intentional dark rail after the global
   surface tokens; keep labels and active/hover states readable in both themes. */
body.theme-creator .creator-side{
  background:#17243b;
  color:#d5deed;
  border-right:1px solid #2b3a52;
}
body.theme-creator .creator-side .side-brand{color:#fff}
body.theme-creator .creator-side .side-caption{color:#91a2bd}
body.theme-creator .creator-side .side-links button{
  color:#c0cce0;
  background:transparent;
}
body.theme-creator .creator-side .side-links button:hover{
  background:rgba(255,255,255,.09);
  color:#fff;
}
body.theme-creator .creator-side .side-links button.sel,
body.theme-creator .creator-side .side-links button[aria-current="page"],
body.theme-creator .creator-side .side-links button.active{
  background:rgba(255,255,255,.12);
  color:#fff;
  box-shadow:inset 3px 0 #75d8c1;
}
html[data-theme="dark"] body.theme-creator .creator-side{
  background:#0d1624;
  border-right-color:#26364d;
}


/* Parent Plan — deliberately calm and single-purpose */
.plan-overview{align-items:center;gap:22px}
.plan-overview .grow{min-width:0}
.plan-overview h3{margin:7px 0 8px}
.plan-mode-pill{display:inline-flex;align-items:center;margin-top:12px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}
.plan-mode-pill.is-on{background:var(--good-bg);color:var(--good)}
.plan-mode-pill.is-manual{background:var(--surface-2);color:var(--muted)}
.plan-subject-section{padding:20px}
.plan-subject-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.plan-subject-list .plan-row{margin:0;min-width:0;border:1px solid var(--line);border-radius:13px;padding:13px;background:var(--surface)}
.plan-subject-list .plan-row .grow{min-width:0}
.plan-subject-list .plan-row small{display:block;line-height:1.45}
.plan-settings-hint{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:var(--surface-2)}
.plan-settings-hint>div{display:grid;gap:4px;min-width:0}
.plan-settings-hint b{font-size:12px;color:var(--ink)}
.plan-settings-hint small{font-size:11px;color:var(--muted);line-height:1.5}
html[data-theme="dark"] .plan-subject-list .plan-row{background:var(--surface)}
@media(max-width:640px){
 .plan-overview{align-items:flex-start}
 .plan-subject-list{grid-template-columns:1fr}
 .plan-settings-hint{align-items:flex-start;flex-direction:column}
 .plan-settings-hint .btn{width:100%}
}


/* CELIK Family Store — cart-first checkout */
.shop-page{display:grid;gap:24px;max-width:1180px;margin:0 auto 38px;color:var(--ink)}
.shop-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:18px;padding:clamp(22px,4vw,36px);border:1px solid color-mix(in srgb,var(--accent) 22%,var(--line));border-radius:24px;background:linear-gradient(125deg,color-mix(in srgb,var(--accent) 12%,var(--white)),var(--white) 70%)}
.shop-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;right:55px;top:-160px;background:color-mix(in srgb,var(--accent) 12%,transparent)}
.shop-kicker{display:block;color:var(--accent-ink);font-size:10px;font-weight:900;letter-spacing:.14em;line-height:1.5}
.shop-hero h2{margin:9px 0 8px;font-size:clamp(26px,4vw,39px);line-height:1.12;letter-spacing:-.04em;color:var(--ink)}
.shop-hero h2 em{font-style:normal;color:var(--accent-ink)}
.shop-hero p,.shop-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.6;max-width:620px}
.shop-hero-mark{z-index:1;align-self:center;justify-self:center;display:grid;place-items:center;width:88px;height:88px;border-radius:25px;background:linear-gradient(145deg,var(--accent),color-mix(in srgb,var(--accent) 65%,#172b38));font-size:38px;box-shadow:0 14px 34px color-mix(in srgb,var(--accent) 20%,transparent)}
.shop-hero-meta{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:4px}
.shop-hero-meta>span{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--white) 90%,transparent)}
.shop-hero-meta b{font-size:13px;color:var(--ink)}.shop-hero-meta small{font-size:10px;color:var(--muted)}
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:start}
.shop-catalog{min-width:0;display:grid;gap:15px}
.shop-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.shop-heading h3,.shop-cart h3{margin:4px 0;font-size:21px;letter-spacing:-.025em;color:var(--ink)}
.shop-count{flex:none;padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:10px;font-weight:800}
.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.shop-product{display:flex;flex-direction:column;min-height:220px;padding:17px;border:1px solid var(--line);border-radius:19px;background:var(--white);box-shadow:0 5px 18px rgba(20,35,30,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.shop-product:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 35%,var(--line));box-shadow:0 12px 28px rgba(20,35,30,.07)}
.shop-product-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.shop-product-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--accent-soft);font-size:22px}
.shop-product-tag{padding:6px 8px;border-radius:999px;background:var(--canvas);color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em}
.shop-product-copy{padding:15px 0 12px;flex:1}
.shop-product-copy h4{margin:0 0 6px;font-size:14px;line-height:1.35;color:var(--ink)}
.shop-product-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.shop-product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.shop-product-foot>b{font-size:17px;letter-spacing:-.03em;color:var(--ink)}
.shop-product-foot .btn{white-space:nowrap}
.shop-cart{position:sticky;top:18px;display:grid;gap:13px;padding:19px;border:1px solid color-mix(in srgb,var(--accent) 25%,var(--line));border-radius:20px;background:var(--white);box-shadow:0 12px 34px rgba(20,35,30,.06)}
.shop-cart-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.shop-cart h3{display:flex;align-items:center;gap:8px}
.shop-cart h3>span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink);font-size:11px}
.shop-clear,.shop-remove{border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}
.shop-clear:disabled{opacity:.35;cursor:not-allowed}
.shop-cart-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.shop-cart-icon{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:11px;background:var(--canvas);font-size:18px}
.shop-cart-row .grow{min-width:0;display:grid;gap:3px}
.shop-cart-row b{font-size:11px;line-height:1.35;color:var(--ink)}
.shop-cart-row small{font-size:10px;color:var(--muted)}
.shop-remove{width:28px;height:28px;border-radius:8px;font-size:19px}
.shop-remove:hover{background:var(--bad-bg);color:var(--bad)}
.shop-cart-empty{display:grid;justify-items:center;gap:6px;padding:23px 8px;text-align:center;color:var(--muted)}
.shop-cart-empty>span{font-size:28px}.shop-cart-empty b{font-size:12px;color:var(--ink)}.shop-cart-empty small{font-size:10px;line-height:1.5}
.shop-cart-total{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:8px;color:var(--muted);font-size:12px}
.shop-cart-total b{font-size:21px;color:var(--ink);letter-spacing:-.035em}
.shop-checkout{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 15px}
.shop-checkout:disabled{opacity:.45;cursor:not-allowed}
.shop-cart-note{font-size:10px;line-height:1.55;color:var(--muted)}
.shop-gateway-mini{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--white)}
.shop-gateway-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#eeeaff;color:#5d36a8;font-size:12px;font-weight:950}
.shop-gateway-mini>span:nth-child(2){display:grid;gap:3px;flex:1}.shop-gateway-mini b{font-size:12px;color:var(--ink)}.shop-gateway-mini small{font-size:10px;color:var(--muted)}
.shop-secure{font-size:9px;font-weight:800;color:var(--good)}
.shop-gateway-note,.shop-pending{display:grid;gap:5px;padding:14px 16px;border-radius:15px;background:var(--warn-bg);color:var(--ink);font-size:12px;line-height:1.5}
.shop-gateway-note span{color:var(--muted)}
.shop-pending{grid-template-columns:minmax(0,1fr) auto;align-items:center;border:1px solid color-mix(in srgb,var(--warn) 30%,var(--line))}
.shop-pending h3{margin:5px 0;font-size:17px}.shop-pending p{margin:0 0 6px;color:var(--muted)}
.shop-pending small{font-size:10px;color:var(--muted)}
.shop-history{display:grid;gap:13px}
.checkout-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.checkout-line b{white-space:nowrap;color:var(--ink)}
html[data-theme="dark"] .shop-hero{background:linear-gradient(125deg,#173a32,#122220 72%);border-color:#285048}
html[data-theme="dark"] .shop-hero:after{background:#1e5144}
html[data-theme="dark"] .shop-product,html[data-theme="dark"] .shop-cart,html[data-theme="dark"] .shop-gateway-mini{background:#122220;border-color:#29453f}
html[data-theme="dark"] .shop-product:hover{border-color:#4b8d79}
html[data-theme="dark"] .shop-product-tag,html[data-theme="dark"] .shop-cart-icon{background:#263b35;color:#c5ddd3}
html[data-theme="dark"] .shop-gateway-logo{background:#302650;color:#d6c8ff}
html[data-theme="dark"] .shop-pending{background:#342b17;border-color:#65502b}
html[data-theme="dark"] .checkout-line{border-color:#29453f}
@media(max-width:900px){.shop-layout{grid-template-columns:minmax(0,1fr) 285px}.shop-product-foot{align-items:flex-start;flex-direction:column}.shop-product-foot .btn{width:100%}}
@media(max-width:700px){.shop-layout{grid-template-columns:1fr}.shop-cart{position:static;order:-1}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-pending{grid-template-columns:1fr}.shop-hero{grid-template-columns:minmax(0,1fr) 72px}.shop-hero-mark{width:64px;height:64px;border-radius:18px;font-size:29px}}
@media(max-width:430px){.shop-grid{grid-template-columns:1fr}.shop-hero{grid-template-columns:1fr}.shop-hero-mark{display:none}.shop-hero-meta{gap:6px}.shop-hero-meta>span{padding:10px}.shop-hero-meta b{font-size:11px}.shop-heading{align-items:flex-start;flex-direction:column}.shop-pending .actions{display:flex;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.shop-product{transition:none}.shop-product:hover{transform:none}}

.shop-founding{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid color-mix(in srgb,var(--good) 30%,var(--line));border-radius:17px;background:var(--good-bg);color:var(--ink)}
.shop-founding>b,.shop-founding div>b{display:block;margin-top:4px;font-size:14px;color:var(--ink)}
.shop-founding p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.shop-founding .btn{flex:none}
html[data-theme="dark"] .shop-founding{background:#173d30;border-color:#285c49}
@media(max-width:560px){.shop-founding{align-items:flex-start;flex-direction:column}.shop-founding .btn{width:100%}}

/* Pautan Ujian Saringan pada halaman log masuk */
.saringan-link{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:11px 13px;border-radius:12px;background:#e4f3ed;color:#1f5f52;text-decoration:none;font-size:13px;line-height:1.35}
.saringan-link b{color:#174c41}
.saringan-link:hover{filter:brightness(.98)}
html[data-theme="dark"] .saringan-link{background:#20312a;color:#a0dfd2}
html[data-theme="dark"] .saringan-link b{color:#c9efe6}

/* Persetujuan privasi: checkbox kecil di sebelah teks (gaya input umum menjadikannya kotak lebar 100%). */
.authcard .consent-line,.fg .consent-line{display:flex;align-items:flex-start;gap:10px;font-weight:500;font-size:13px;line-height:1.45;color:var(--ink);cursor:pointer;text-align:left}
.authcard .consent-line input[type=checkbox],.fg .consent-line input[type=checkbox]{flex:0 0 auto;width:20px;height:20px;min-height:0;min-width:0;margin:1px 0 0;padding:0;border-radius:5px;accent-color:var(--accent);box-shadow:none;appearance:auto;-webkit-appearance:checkbox;background:none}

/* Kilang: pek kandungan draf */
.pack-card{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.pack-card:last-of-type{border-bottom:0}
.pack-card .grow{flex:1;min-width:220px}
.pack-card small{display:block;color:var(--muted);margin-top:3px}
.pack-stats{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.pack-stats span{font-size:11.5px;font-weight:700;background:var(--accent-soft);color:var(--accent-ink);padding:3px 8px;border-radius:999px}
.pack-steps{margin:12px 0 0;padding-left:20px;font-size:13px;color:var(--muted)}
.pack-steps li{margin:4px 0}

/* Kata laluan sementara (jemput Creator / reset oleh Owner) */
.temp-pw{font:800 22px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;text-align:center;padding:14px;border:2px dashed var(--line);border-radius:12px;margin:10px 0;user-select:all;word-break:break-all}
.invite-form{grid-template-columns:1fr 1fr}
@media (max-width:640px){.invite-form{grid-template-columns:1fr}}
/* Ledger Creator: borang rekod bayaran dalam jadual */
.payout-form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.payout-form input[name="reference"]{min-width:150px;flex:1;padding:6px 10px;border-radius:10px;border:1px solid var(--portal-line,#d9dce5);font:inherit;font-size:13px}
.earn-split .pill-s{font-size:12px}
.data-table td > b + small{display:block;font-weight:500;color:var(--muted,#6b7280);margin-top:2px}
.data-table td > b:only-child{white-space:nowrap}
/* Ruang Keluarga: satu langkah seterusnya + senarai minggu pertama */
.next-step{border-radius:22px;padding:18px;margin:4px 0 14px;color:#fff;background:linear-gradient(125deg,#0f7a5f,#12866a 55%,#2f9e7e);box-shadow:0 10px 28px rgba(15,122,95,.22)}
.next-step.done{background:linear-gradient(125deg,#4f46b8,#6b5ce7)}
.next-step .ns-kicker{font-size:11px;font-weight:800;letter-spacing:.14em;opacity:.85}
.next-step h2{margin:6px 0 6px;font-size:22px;line-height:1.2;color:#fff}
.next-step p,.parent-section .next-step p,main .next-step p{margin:0 0 12px;color:#fff!important;opacity:.95;line-height:1.5}
.next-step small{display:block;opacity:.85;font-size:12.5px;line-height:1.45}
.ns-actions{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.ns-actions .btn{width:100%;justify-content:center;background:#fff;color:#0f6b54;border-color:#fff;font-weight:800}
.ns-actions .btn.ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.7)}
@media (min-width:720px){.ns-actions{flex-direction:row}.ns-actions .btn{width:auto}}
.start-list ol{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
.start-list li{display:flex;gap:10px;align-items:flex-start}
.start-list li>span{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--portal-line,#cfd6e4);display:grid;place-items:center;font-size:12px;font-weight:900;color:#fff}
.start-list li.ok>span{background:#12866a;border-color:#12866a}
.start-list li.ok b{color:var(--muted,#6b7280);text-decoration:line-through;font-weight:600}
.start-list li small{display:block;color:var(--muted,#6b7280);font-size:12.5px;line-height:1.45;margin-top:2px}
.sl-bar{height:6px;border-radius:6px;background:var(--portal-line,#e6e9f0);overflow:hidden}
.sl-bar i{display:block;height:100%;width:calc(var(--p)*1%);background:#12866a;border-radius:6px}
.tonight-list{display:grid;gap:4px}
.tonight-week{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:2px 0 12px;border-bottom:1px solid var(--portal-line,#eef0f5);margin-bottom:8px}
.tonight-list>.tonight-week:last-child{border-bottom:0;margin-bottom:0}
.how-steps{margin:0;padding-left:18px;display:grid;gap:12px}
.how-steps p{margin:4px 0 0;line-height:1.5}
html[data-theme="dark"] .ns-actions .btn:not(.ghost){background:#fff;color:#0f6b54}
/* Penerangan ringkas di skrin log masuk (telefon sahaja; desktop ada panel kiri) */
.auth-pitch{border-radius:16px;padding:12px 14px;margin:0 0 10px;background:var(--portal-soft,#eef2ff);color:inherit}
.auth-pitch b{display:block;font-size:15.5px;line-height:1.3}
.auth-pitch ul{margin:6px 0;padding-left:18px;font-size:13.5px;line-height:1.55}
.auth-pitch span{font-size:12.5px;opacity:.85}
.auth-pitch a{font-weight:800}
html[data-theme="dark"] .auth-pitch{background:#1b2133}
@media (min-width:641px){.auth-pitch{display:none}}
/* Peringatan tabiat */
.remind-card{display:flex;gap:12px;align-items:flex-start}
.remind-card .rc-ic{font-size:26px;line-height:1}
.remind-card b{display:block}
.remind-card small{display:block;color:var(--muted,#6b7280);line-height:1.45;margin-top:2px}
.remind-card .actions{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.remind-card .rc-ios{margin-top:8px}
.reminder-form{margin:8px 0 12px}
/* Saringan → profil anak */
.screen-carry{display:flex;gap:10px;align-items:flex-start;border-radius:14px;padding:10px 12px;margin:0 0 12px;background:#e7f6ef;color:#0f5d47;font-size:14px;line-height:1.45}
html[data-theme="dark"] .screen-carry{background:#143429;color:#bdeedb}
.screen-carry-card b{display:block}.screen-carry-card small{display:block;color:var(--muted,#6b7280);margin:2px 0 10px}
.screen-carry-card .actions{display:flex;gap:8px;flex-wrap:wrap}
.sf-tips{margin:6px 0;padding-left:18px;line-height:1.5;font-size:14px}
.sf-tips li{margin-bottom:6px}
.sg-save-note{font-size:13px;opacity:.8;margin:8px 0 0}
/* Saluran Cikgu */
.class-row{display:flex;align-items:center;gap:10px;padding:10px 0 4px;border-top:1px solid var(--portal-line,#eef0f5);margin-top:10px}
.class-row small{color:var(--muted,#6b7280)}
.class-list{display:grid;gap:10px;margin-bottom:14px}
.class-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px;border-radius:18px;border:1px solid var(--portal-line,#e6e9f0);background:var(--surface,#fff);color:inherit;font:inherit;cursor:pointer}
.class-card .cc-ic{font-size:26px}
.class-card b{display:block}.class-card small{color:var(--muted,#6b7280)}
.cc-stats{text-align:center;min-width:52px}.cc-stats b{font-size:18px}
.class-code-card{border-radius:22px;padding:18px;margin:4px 0 14px;text-align:center;background:var(--portal-soft,#eef2ff)}
.class-code-card .pair-code{margin:6px auto 12px}
.class-code-card .actions{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}
html[data-theme="dark"] .class-code-card,html[data-theme="dark"] .class-card{background:#1b2133}
.cls-skill{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--portal-line,#eef0f5)}
.cls-skill small{display:block;color:var(--muted,#6b7280)}
.cls-bar{width:90px;height:8px;border-radius:8px;background:var(--portal-line,#e6e9f0);overflow:hidden}
.cls-bar i{display:block;height:100%;width:calc(var(--p)*1%);background:#e8833a;border-radius:8px}
