/* ProsDeserve client app — one look for every client page.
   Dark by default, a stronger light theme, brand blue with gently moving colour gradients. */
:root{
  /* Elevate-style charcoal with the ProsDeserve colours */
  --bg:#0A1024; --fg:#F5F7FB; --muted:#A9B3C9; --dim:#8590AB; --chip:#1A2240; --chip-hi:#232D52; --line:#26304F; --line2:#333F66; --card:#141B33; --card2:#1A223E;
  --brand:#22C2FC; --brand-d:#0E8CC4; --violet:#8B5CF6; --indigo:#5B86EF; --teal:#2DD4BF; --amber:#FBBF24; --pink:#F472B6; --rose:#E0457B;
  --input:#23252C; --hover:#30333C; --soft:#1F2A3C; --soft-line:#2E4766; --soft-fg:#c9d4f2; --toast:#2D2F37;
  --sky1:#0B78B8; --sky2:#22C2FC; --sky3:#D6F4FF; --ok:#4ade80; --bad:#fca5a5; --warn:#f59e0b;
  --bw:1px; --shadow:0 10px 30px rgba(0,0,0,.30);
  --grad:linear-gradient(120deg,#0B78B8,#22C2FC,#5B86EF,#8B5CF6,#2DD4BF,#0B78B8);
  --font:'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font2:'Barlow', 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --navH:72px;
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0; background:var(--bg); color:var(--fg); font-family:var(--font); -webkit-tap-highlight-color:transparent; font-size:16px}
body{min-height:100vh; min-height:100dvh}
body.noScroll{overflow:hidden}
a{color:var(--sky2); text-decoration:none}
button,input,select,textarea{font:inherit; color:inherit}
.page{max-width:560px; margin:0 auto; padding:calc(18px + env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) calc(40px + env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px))}
.topbar{display:flex; align-items:center; gap:10px; min-height:52px}
.brand{font-weight:700; font-size:16px; display:flex; align-items:center; gap:10px; color:var(--fg)}
.miniOrb{width:26px; height:26px; border-radius:50%; background:linear-gradient(180deg,var(--sky1) 0%,#5b86ef 30%,var(--sky3) 58%,var(--sky2) 100%); box-shadow:0 0 14px rgba(120,160,255,.45); flex:none}
.grow{flex:1}
.ghost{border:var(--bw) solid var(--line); background:var(--chip); color:var(--fg); height:42px; padding:0 16px; border-radius:999px; cursor:pointer; font-size:15px; font-weight:600; display:inline-flex; align-items:center; gap:6px}
.ghost:hover{background:var(--chip-hi)}
.btn{display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:56px; border-radius:18px; border:0; font-size:17px; font-weight:700; cursor:pointer; transition:transform .12s, filter .2s}
.btn:active{transform:scale(.98)}
.btn.pri{background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.25); box-shadow:0 8px 22px rgba(34,194,252,.28)}
.btn.sec{background:var(--chip); color:var(--fg); border:var(--bw) solid var(--line)}
.btn[disabled]{opacity:.5; animation:none}
@keyframes flow{0%,100%{background-position:0% 50%} 50%{background-position:100% 50%}}
h1{font-size:32px; font-weight:800; margin:22px 0 6px; letter-spacing:-.02em; line-height:1.15; text-wrap:balance}
.lead{color:var(--muted); margin:0 0 22px; font-size:16.5px; line-height:1.5}
.field{display:block; margin:0 0 12px}
.field span{display:block; font-size:14px; color:var(--muted); margin:0 0 6px 4px; font-weight:600}
.field input{width:100%; height:56px; border-radius:16px; border:var(--bw) solid var(--line); background:var(--input); padding:0 16px; font-size:17px; outline:none}
.field input:focus{border-color:var(--brand); box-shadow:0 0 0 3px rgba(34,194,252,.22)}
.msg{min-height:22px; font-size:15px; color:var(--muted); margin:12px 4px 0; line-height:1.45}
.msg.err{color:var(--bad)} .msg.ok{color:var(--ok)}
.link{background:none; border:0; color:var(--sky2); cursor:pointer; padding:6px 0; font-size:15px; font-weight:600}
.seg{display:flex; background:var(--chip); border-radius:999px; padding:4px; margin:0 0 18px; border:var(--bw) solid var(--line)}
.seg button{flex:1; height:44px; border:0; border-radius:999px; background:transparent; color:var(--muted); font-weight:700; cursor:pointer}
.seg button.on{background:var(--brand); color:#04121F}
.hide{display:none!important}
.small{font-size:13.5px; color:var(--muted)}
mark{background:rgba(34,194,252,.22); color:inherit; border-radius:5px; padding:0 2px}

/* section titles: centred with a line under them */
.sect{font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--dim); margin:28px 4px 10px; font-weight:700}
.sectHead{text-align:center; margin:30px 0 14px}
.sectHead h2{font-size:24px; font-weight:800; margin:0; letter-spacing:-.01em}
.sectHead p{margin:4px 0 0; color:var(--muted); font-size:15px}

/* cards */
.card,.lesson,.tile,.empty,.wcard{border-width:var(--bw)}
.lesson{display:flex; align-items:center; gap:14px; padding:16px; border-radius:22px; background:var(--card); border:var(--bw) solid var(--line); margin-bottom:10px; color:var(--fg); text-decoration:none; transition:background .15s, transform .12s, border-color .2s}
a.lesson:hover{background:var(--hover); border-color:var(--line2)} a.lesson:active{transform:scale(.99)}
.lesson .ic{width:48px; height:48px; border-radius:16px; flex:none; display:grid; place-items:center; font-size:20px}
.lesson.open .ic{background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; box-shadow:0 0 18px rgba(120,160,255,.35)}
.lesson.locked .ic{background:var(--chip); color:var(--dim)}
.lesson .tx{min-width:0; flex:1}
.lesson b{display:block; font-weight:700; font-size:16.5px; line-height:1.3}
.lesson small{color:var(--muted); font-size:14px; margin-top:3px; line-height:1.4; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical}
.lesson.locked b{color:var(--muted)}
.lesson .go{color:var(--muted); font-size:22px; flex:none}
.lesson .score{font-size:13px; color:var(--ok); margin-top:5px; display:block; font-weight:600}
.empty{padding:26px 18px; text-align:center; color:var(--muted); border:var(--bw) dashed var(--line2); border-radius:22px; line-height:1.5}
.install{display:flex; gap:12px; align-items:center; padding:14px 16px; border-radius:20px; background:var(--soft); border:var(--bw) solid var(--soft-line); margin-top:18px; font-size:14.5px; line-height:1.45; color:var(--soft-fg)}
.install b{color:var(--fg)}
.install .x{margin-left:auto; border:0; background:transparent; color:var(--muted); font-size:20px; cursor:pointer; flex:none}
.spin{width:26px; height:26px; border-radius:50%; border:3px solid var(--chip-hi); border-top-color:var(--sky2); animation:spin .8s linear infinite; margin:60px auto}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed; left:50%; top:calc(20px + env(safe-area-inset-top,0px)); transform:translateX(-50%); background:var(--toast); color:var(--fg); padding:10px 16px; border-radius:999px; font-size:14px; z-index:60; max-width:88vw; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,.5)}
.brandLogo{height:30px; width:auto; display:block}
.heroLogo{width:min(320px,80vw); height:auto; display:block; margin:0 auto}
.pill-brand{color:var(--brand)}

/* ---------- light theme: stronger borders, darker text ---------- */
:root[data-theme="light"]{
  --bg:#EEF1F6; --fg:#14171F; --muted:#4A5163; --dim:#626A7E; --chip:#E1E6EE; --chip-hi:#D4DAE5; --line:#CDD4DF; --line2:#B3BCCB; --card:#FFFFFF; --card2:#F6F8FB;
  --brand:#0796D6; --brand-d:#0B7AB0; --input:#FFFFFF; --hover:#F2F5F9; --soft:#E0F1FC; --soft-line:#A9D6F2; --soft-fg:#17324F; --toast:#FFFFFF;
  --ok:#15803d; --bad:#c2410c; --bw:1.5px; --shadow:0 8px 24px rgba(15,35,80,.10); color-scheme:light;
}
.on-light{display:none!important}
:root[data-theme="light"] .on-dark{display:none!important}
:root[data-theme="light"] .on-light{display:block!important}

/* ---------- top icons, search box, word card ---------- */
.iconBtn{width:44px; height:44px; border-radius:50%; border:var(--bw) solid var(--line); background:var(--chip); color:var(--fg); display:grid; place-items:center; cursor:pointer; font-size:18px; flex:none; text-decoration:none}
.iconBtn:hover{background:var(--chip-hi)}
.avatar{font-weight:800; font-size:16px; background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; color:#fff; border:0}
.ask{display:flex; align-items:flex-end; gap:8px; margin-top:18px; padding:8px 8px 8px 18px; border-radius:28px; border:var(--bw) solid var(--line); background:var(--input); box-shadow:var(--shadow)}
.ask:focus-within{border-color:var(--brand); box-shadow:0 0 0 3px rgba(34,194,252,.2)}
.ask textarea{flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--fg); font:inherit; font-size:17px; line-height:1.4; resize:none; padding:10px 0; max-height:120px}
.ask textarea::placeholder{color:var(--muted)}
.ask button{flex:none; width:44px; height:44px; border-radius:50%; border:0; background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; color:#fff; display:grid; place-items:center; cursor:pointer}
.ask button:disabled{opacity:.4; animation:none}
.ask button svg{width:20px; height:20px}
.wcard{background:var(--card); border:var(--bw) solid var(--line); border-radius:22px; padding:18px; margin-top:12px; box-shadow:var(--shadow)}
.wcard .term{display:flex; align-items:center; gap:10px; font-size:24px; font-weight:800}
.say{flex:none; border:0; background:var(--chip); color:var(--fg); border-radius:999px; width:38px; height:38px; cursor:pointer; font-size:16px}
.wcard .mean{margin-top:10px; font-size:17px; line-height:1.45; font-weight:600}
.wcard .tr{color:var(--muted); font-size:15.5px; line-height:1.45; margin-top:3px}
.wcard .ex{margin-top:14px; padding-top:12px; border-top:var(--bw) solid var(--line); display:flex; gap:10px; align-items:flex-start}
.wcard .ex > div{flex:1; font-size:16px; line-height:1.45}
.wcard .exen{font-style:italic}

/* ---------- tiles: list (old) and 2×2 grid (front page) ---------- */
.tiles{display:grid; gap:12px; margin-top:22px}
.tile{display:flex; align-items:center; gap:16px; padding:18px; border-radius:22px; background:var(--card); border:var(--bw) solid var(--line); color:var(--fg); text-decoration:none; transition:background .15s, transform .12s, border-color .2s}
.tile:hover{background:var(--hover); border-color:var(--line2)} .tile:active{transform:scale(.98)}
.tile .ic{width:50px; height:50px; border-radius:16px; display:grid; place-items:center; font-size:22px; flex:none; background:rgba(34,194,252,.14); color:var(--brand)}
.tile b{display:block; font-size:17px; font-weight:700}
.tile small{display:block; color:var(--muted); font-size:14px; margin-top:3px; line-height:1.4}
.tile .go{margin-left:auto; color:var(--muted); font-size:22px}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px}
.grid2 .tile{flex-direction:column; align-items:flex-start; gap:12px; padding:16px; min-height:150px}
.grid2 .tile .go{display:none}
.grid2 .tile b{font-size:17px; line-height:1.25}
.grid2 .tile small{font-size:13.5px}
.tile.c1 .ic{background:rgba(34,194,252,.16); color:#22C2FC}
.tile.c2 .ic{background:rgba(139,92,246,.18); color:#A78BFA}
.tile.c3 .ic{background:rgba(45,212,191,.18); color:#2DD4BF}
.tile.c4 .ic{background:rgba(251,191,36,.18); color:#F59E0B}

/* ---------- the coloured header block (front page) ---------- */
.hero{position:relative; overflow:hidden; border-radius:28px; padding:20px 20px 18px; margin-top:10px; color:#fff;
  background:var(--grad); background-size:400% 400%; animation:flow 14s ease-in-out infinite; box-shadow:0 14px 40px rgba(34,120,252,.3)}
.hero::before,.hero::after{content:""; position:absolute; border-radius:50%; filter:blur(30px); opacity:.55; pointer-events:none}
.hero::before{width:220px; height:220px; background:#8B5CF6; top:-90px; right:-60px; animation:blob1 11s ease-in-out infinite alternate}
.hero::after{width:180px; height:180px; background:#2DD4BF; bottom:-90px; left:-40px; animation:blob2 13s ease-in-out infinite alternate}
@keyframes blob1{to{transform:translate(-60px,40px) scale(1.2)}}
@keyframes blob2{to{transform:translate(70px,-30px) scale(1.15)}}
.hero > *{position:relative; z-index:1}
.hero h1{margin:0; font-size:30px; color:#fff}
.hero .welcome{color:rgba(255,255,255,.92); margin-top:4px}
.hero .planLine{background:rgba(255,255,255,.2); color:#fff; backdrop-filter:blur(6px)}
.hero .planLine.warn{background:rgba(251,191,36,.95); color:#3a2500}
.hero .planLine.warn::before{background:#7c2d12}
.heroStat{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-top:16px}
.heroStat .lbl{font-size:17px; font-weight:700; line-height:1.2}
.heroStat .num{font-size:52px; font-weight:800; line-height:1; letter-spacing:-.03em; font-variant-numeric:tabular-nums}
.tribar{display:flex; height:10px; border-radius:99px; overflow:hidden; background:rgba(255,255,255,.25); margin-top:12px}
.tribar i{display:block; height:100%; transition:width .8s cubic-bezier(.2,.8,.2,1)}
.tribar .k{background:#4ade80} .tribar .l{background:#FBBF24} .tribar .n{background:rgba(255,255,255,.35)}
.legend{display:flex; justify-content:space-between; gap:8px; margin-top:8px; font-size:13.5px; font-weight:600}
.legend span::before{content:""; display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:6px; vertical-align:1px}
.legend .k::before{background:#4ade80} .legend .l::before{background:#FBBF24} .legend .n::before{background:rgba(255,255,255,.6)}

/* ---------- Today's review card ---------- */
.today{margin-top:14px; padding:20px; border-radius:26px; background:var(--card); border:var(--bw) solid var(--line); box-shadow:var(--shadow); text-align:center}
.today h2{margin:0; font-size:22px; font-weight:800}
.today p{margin:4px 0 0; color:var(--muted); font-size:15px}
.today .big{display:flex; align-items:center; justify-content:center; gap:14px; margin:14px 0 14px}
.today .big b{font-size:56px; font-weight:800; line-height:1; background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; -webkit-background-clip:text; background-clip:text; color:transparent}
.today .chipsRow{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-start; text-align:left; max-width:60%}
.today .chipsRow span{font-size:12.5px; padding:4px 9px; border-radius:999px; background:var(--chip); color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%}
.streak{display:inline-flex; align-items:center; gap:6px; margin-top:12px; padding:6px 12px; border-radius:999px; background:rgba(251,191,36,.16); color:#d97706; font-weight:700; font-size:14px}
.today.done .big b{font-size:40px}

/* ---------- plan / day counter ---------- */
.planLine{display:inline-flex; align-items:center; gap:8px; margin-top:10px; padding:6px 12px; border-radius:999px; background:var(--chip); color:var(--muted); font-size:13.5px; font-weight:600; line-height:1.35}
.planLine::before{content:""; width:8px; height:8px; border-radius:50%; background:var(--ok); flex:none}
.planLine.warn{background:rgba(245,158,11,.15); color:#d97706}
.planLine.warn::before{background:#f59e0b}
.planEnd{margin-top:16px; padding:16px 18px; border-radius:20px; background:rgba(239,68,68,.12); border:var(--bw) solid rgba(239,68,68,.4); color:var(--fg); line-height:1.5; font-size:15.5px}
.planEnd b{color:#ef4444}
.hero .planEnd{background:rgba(0,0,0,.25); border-color:rgba(255,255,255,.35); color:#fff}
.hero .planEnd b{color:#fff}
.welcome{margin:2px 0 0; color:var(--muted); font-size:16.5px; line-height:1.45; cursor:pointer}
.welcome .spk{font-size:13px; opacity:.8}

/* ---------- status pills, answer cards, tabs ---------- */
.stPill{display:inline-block; font-size:12.5px; font-weight:800; letter-spacing:.03em; padding:4px 10px; border-radius:999px}
.stPill.known{background:rgba(74,222,128,.18); color:#16a34a}
.stPill.learning{background:rgba(251,191,36,.2); color:#d97706}
.stPill.new{background:var(--chip); color:var(--muted)}
.optCard{position:relative; display:flex; align-items:center; gap:14px; width:100%; min-height:72px; text-align:left; padding:14px 16px 14px 14px; border-radius:20px; border:var(--bw) solid var(--line); background:var(--card2); color:var(--fg); font:inherit; font-size:17px; font-weight:600; line-height:1.35; cursor:pointer; transition:transform .12s, background .2s, border-color .2s}
.optCard:active{transform:scale(.98)}
.optCard .L{flex:none; width:34px; height:34px; border-radius:11px; display:grid; place-items:center; font-weight:800; font-size:15px; background:rgba(34,194,252,.16); color:var(--brand)}
.optCard.ok{border-color:#22c55e; background:rgba(74,222,128,.16)} .optCard.ok .L{background:#22c55e; color:#fff}
.optCard.no{border-color:#f87171; background:rgba(248,113,113,.12); animation:shake .35s} .optCard.no .L{background:#f87171; color:#fff}
.optCard[disabled]{cursor:default}
@keyframes shake{20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)}}
.tabs{display:flex; gap:6px; overflow-x:auto; padding:2px; margin:6px 0 10px; scrollbar-width:none}
.tabs button{flex:none; height:40px; padding:0 16px; border-radius:999px; border:var(--bw) solid var(--line); background:var(--chip); color:var(--muted); font-weight:700; cursor:pointer}
.tabs button.on{background:var(--brand); border-color:var(--brand); color:#04121F}
.tabs button i{font-style:normal; opacity:.7; margin-left:4px}

/* ---------- phrase card (bottom sheet) ---------- */
#pdSheet[hidden]{display:none}
.pdScrim{position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:40; animation:fade .2s}
.pdSheet{position:fixed; left:0; right:0; bottom:0; z-index:41; max-width:560px; margin:0 auto; background:var(--card); border-top:var(--bw) solid var(--line); border-radius:28px 28px 0 0; padding:10px 20px 0; max-height:86dvh; overflow:auto; animation:up .28s cubic-bezier(.2,.8,.2,1); box-shadow:0 -10px 40px rgba(0,0,0,.4)}
@keyframes up{from{transform:translateY(40px); opacity:0}} @keyframes fade{from{opacity:0}}
.grab{width:42px; height:5px; border-radius:3px; background:var(--line2); margin:0 auto 12px}
.pdCardTop{display:flex; align-items:center; gap:10px}
.pdCardTop .small{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.pdClose{width:38px; height:38px; font-size:15px}
.pdTerm{font-size:30px; font-weight:800; line-height:1.2; margin:14px 0 8px; letter-spacing:-.01em}
.pdMean{font-size:19px; font-weight:600; line-height:1.45}
.pdTr{color:var(--muted); font-size:16px; line-height:1.45; margin-top:6px}
.pdEx{margin-top:16px; padding:14px 16px; border-radius:18px; background:var(--chip); font-size:16.5px; line-height:1.5; font-style:italic}
.pdEx b{font-style:normal}
.pdNext{margin:12px 2px 4px}
.stickyBar{position:sticky; bottom:0; display:flex; align-items:center; gap:12px; margin:14px -20px 0; padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px)); background:var(--card2); border-top:var(--bw) solid var(--line)}
.stickyBar .times{flex:1}
.stickyBar .times b{font-size:16px}
.segs{display:flex; gap:3px; margin-top:6px}
.segs i{width:22px; height:7px; border-radius:3px; background:var(--line)}
.segs i.on{background:var(--brand)}
.revSel{display:flex; align-items:center; gap:0; height:50px; border-radius:16px; overflow:hidden; background:var(--grad); background-size:300% 100%; animation:flow 9s ease-in-out infinite; color:#fff; font-weight:700}
.revSel span{padding:0 4px 0 16px}
.revSel select{height:100%; border:0; background:transparent; color:#fff; font-weight:700; font-size:16px; padding:0 12px 0 4px; outline:none; cursor:pointer}
.revSel option{color:#000}

/* ---------- confetti + opening screen ---------- */
.pdConfetti{position:fixed; inset:0; width:100vw; height:100vh; pointer-events:none; z-index:70}
.splash{position:fixed; inset:0; z-index:80; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px; background:#050913; transition:opacity .45s}
.splash[hidden]{display:none}
.splash.out{opacity:0; pointer-events:none}
.splash::before{content:""; position:absolute; inset:-30%; background:conic-gradient(from 0deg,#0B78B8,#22C2FC,#5B86EF,#8B5CF6,#2DD4BF,#0B78B8); filter:blur(80px); opacity:.35; animation:spin 12s linear infinite}
.splash img{position:relative; width:min(280px,72vw)}
.splash p{position:relative; margin:0; color:#cfd8ee; font-size:16px}
.splash .bars{position:relative; display:flex; gap:5px}
.splash .bars i{width:16px; height:16px; border-radius:4px; background:rgba(255,255,255,.18); transition:background .2s}
.splash .bars i.on{background:#22C2FC}
.splash .bars i.on:nth-child(3n){background:#8B5CF6} .splash .bars i.on:nth-child(3n+2){background:#2DD4BF}

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

/* ---------- Pro (AI-assisted) ---------- */
.proBadge{display:inline-flex; align-items:center; gap:3px; font-size:11.5px; font-weight:800; letter-spacing:.04em; padding:3px 8px; border-radius:999px; color:#fff; background:linear-gradient(120deg,#8B5CF6,#22C2FC,#F472B6); background-size:300% 100%; animation:flow 6s ease-in-out infinite; vertical-align:2px; white-space:nowrap}
.proBadge.big{font-size:14px; padding:6px 14px}
#proSheet[hidden]{display:none}
.proSheet .proHead{text-align:center; padding:6px 4px 4px}
.proSheet h2{font-size:23px; font-weight:800; margin:14px 0 6px; line-height:1.25}
.proSheet .proHead p{margin:0; color:var(--muted); line-height:1.45}
.proList{display:grid; gap:10px; margin:18px 0 6px}
.proList > div{display:flex; gap:14px; align-items:flex-start; padding:12px 14px; border-radius:18px; background:var(--chip)}
.proList span{font-size:24px; line-height:1}
.proList b{display:block; font-size:16px}
.proList small{display:block; color:var(--muted); font-size:14px; margin-top:2px; line-height:1.4}
.locked{position:relative}
.planLine.free{cursor:pointer}
.planLine.free::before{background:#94a3b8}
.spk{border:0; background:var(--chip); color:var(--fg); border-radius:999px; width:36px; height:36px; display:inline-grid; place-items:center; cursor:pointer; font-size:15px; flex:none; vertical-align:middle}
.spk.on{background:var(--brand); color:#04121F}
.btn.ai{background:linear-gradient(120deg,#8B5CF6,#5B86EF,#22C2FC); background-size:300% 100%; animation:flow 8s ease-in-out infinite; color:#fff; box-shadow:0 8px 22px rgba(139,92,246,.3)}
.saveDone{opacity:1!important; background:#22c55e!important; color:#fff!important; text-shadow:none!important; animation:saveBounce .6s cubic-bezier(.2,1.6,.4,1)!important; box-shadow:0 0 0 6px rgba(34,197,94,.25), 0 10px 26px rgba(34,197,94,.45)!important; font-size:18px}
.saveTick{display:inline-grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#fff; color:#16a34a; font-weight:900; margin-right:6px; animation:popIn .5s cubic-bezier(.2,1.6,.4,1)}
.saveSettled{opacity:1!important; background:rgba(34,197,94,.16)!important; color:#16a34a!important; border:1.5px solid rgba(34,197,94,.5)!important; box-shadow:none!important; animation:none!important; text-shadow:none!important}
@keyframes saveBounce{0%{transform:scale(.9)} 40%{transform:scale(1.08)} 70%{transform:scale(.97)} 100%{transform:scale(1)}}
@keyframes popIn{from{transform:scale(.7)} to{transform:scale(1)}}
/* daily words */
.daily{margin-top:14px; padding:18px; border-radius:26px; background:var(--card); border:var(--bw) solid var(--line); box-shadow:var(--shadow)}
.daily .dh{display:flex; align-items:center; gap:10px}
.daily .dh h2{flex:1; margin:0; font-size:20px; font-weight:800}
.daily .dh p{margin:2px 0 0; color:var(--muted); font-size:14px}
.dw{margin-top:12px; padding:14px; border-radius:18px; background:var(--chip)}
.dw .t{display:flex; align-items:center; gap:10px}
.dw .t b{flex:1; font-size:18px; font-weight:800}
.dw .m{margin-top:6px; font-weight:600; line-height:1.4}
.dw .r{color:var(--muted); font-size:14.5px; margin-top:3px}
.dw .e{margin-top:8px; font-style:italic; line-height:1.45; font-size:15px}
.dw .sv{margin-top:10px; height:40px; padding:0 14px; border-radius:12px; border:0; background:var(--brand); color:#04121F; font-weight:700; cursor:pointer}
.dw .sv[disabled]{opacity:1}
.lockedCard{opacity:.92; cursor:pointer}
.lockedCard .blur{filter:blur(4px); pointer-events:none; user-select:none}

/* pop-up messages */
#toast{position:fixed; left:50%; top:calc(16px + env(safe-area-inset-top,0px)); transform:translate(-50%,-20px); z-index:90; max-width:min(92vw,520px); padding:12px 18px; border-radius:16px;
  background:var(--toast); color:var(--fg); border:var(--bw) solid var(--line); box-shadow:0 12px 36px rgba(0,0,0,.35); font-size:15px; line-height:1.45; text-align:center; opacity:0; pointer-events:none; transition:opacity .25s, transform .25s}
#toast.show{opacity:1; transform:translate(-50%,0)}
#toast.err{border-color:rgba(248,113,113,.6)}

/* =====================================================================
   Version 13 — Elevate-style frame (stats bar, bottom icons, big cards)
   ===================================================================== */
body.hasNav .page{padding-bottom:calc(var(--navH) + 28px + env(safe-area-inset-bottom,0px))}
.sect{font-family:var(--font2); font-size:15px; letter-spacing:.06em; color:var(--muted); font-weight:600; margin:30px 2px 12px}
h1,.hTitle{font-family:var(--font2)}

/* top stats bar: 🔥 streak · ⭐ points · Pro */
.statBar{display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; margin:0 -16px; padding:6px 0 10px; border-bottom:1px solid var(--line)}
.statBar .sb{display:flex; align-items:center; justify-content:center; gap:8px; height:46px; color:var(--fg); background:none; border:0; font:inherit; cursor:pointer; text-decoration:none}
.statBar .sb + .sb{border-left:1px solid var(--line)}
.statBar .sb b{font-family:var(--font2); font-size:22px; font-weight:600; font-variant-numeric:tabular-nums}
.statBar .sb:not(.lit):first-child{color:var(--dim)}
.statBar .sb .pts{color:#FBBF24}
.statBar .pro b{background:linear-gradient(120deg,#A78BFA,#8B5CF6,#22C2FC); -webkit-background-clip:text; background-clip:text; color:transparent; font-size:21px}
.statBar .pro.free b{font-size:19px}
.proOrb{width:24px; height:24px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff 0 12%,#C4B5FD 13% 30%,#8B5CF6 31% 60%,#4C1D95 100%); box-shadow:0 0 12px rgba(139,92,246,.6); flex:none}

/* bottom icon bar */
.bottomNav{position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; justify-content:center; gap:4px; padding:8px max(10px,env(safe-area-inset-left,0px)) calc(8px + env(safe-area-inset-bottom,0px)); background:var(--bg); border-top:1px solid var(--line)}
.bottomNav a{flex:1; min-width:0; max-width:120px; display:flex; flex-direction:column; align-items:center; gap:3px; padding:6px 0 5px; border-radius:18px; color:var(--muted); font-family:var(--font2); font-size:13.5px; font-weight:600; letter-spacing:.02em; text-decoration:none; border:2px solid transparent; transition:background .2s}
.bottomNav a svg{transition:transform .2s}
.bottomNav a.on{color:var(--fg); background:var(--card); border-color:var(--line2)}
.bottomNav a.on svg{transform:translateY(-1px) scale(1.06)}
.bottomNav a:active svg{transform:scale(.9)}

/* page title like Elevate ("Games") */
.bigTitle{display:flex; align-items:center; gap:10px; margin:22px 2px 6px}
.bigTitle h1{margin:0; font-size:38px; font-weight:600; letter-spacing:-.01em; flex:1}
.bigTitle .iconBtn{background:transparent; border:0; font-size:22px}

/* profile box on the front page */
.meBox{display:flex; align-items:center; gap:16px; margin-top:18px; padding:16px; border-radius:24px; background:var(--card); color:var(--fg); text-decoration:none}
.meBox .av{width:64px; height:64px; border-radius:50%; flex:none; display:grid; place-items:center; font-family:var(--font2); font-size:30px; font-weight:600; color:#fff; background:#D6336C; box-shadow:0 6px 18px rgba(214,51,108,.35)}
.meBox .tx{flex:1; min-width:0}
.meBox .nm{font-family:var(--font2); font-size:26px; font-weight:600; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.meBox .planLine{margin-top:8px}
.meBox .go{color:var(--dim); font-size:24px}
.miniStats{display:flex; gap:14px; margin-top:8px; font-size:13.5px; color:var(--muted); font-weight:600; flex-wrap:wrap}
.miniStats b{color:var(--fg)}

/* three square boxes */
.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px}
.sq{position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:10px; min-height:132px; padding:14px 12px 12px; border-radius:22px; color:#fff; text-decoration:none; overflow:hidden; transition:transform .12s}
.sq:active{transform:scale(.97)}
.sq .ic{width:42px; height:42px; display:grid; place-items:center}
.sq b{font-family:var(--font2); font-size:17px; font-weight:600; line-height:1.15; position:relative}
.sq small{display:block; font-size:12px; opacity:.85; margin-top:3px; font-weight:600}
.sq::after{content:""; position:absolute; width:110px; height:110px; border-radius:50%; right:-40px; top:-40px; background:rgba(255,255,255,.12)}
.sq.c1{background:linear-gradient(160deg,#2E8BF0,#1565C0)}
.sq.c2{background:linear-gradient(160deg,#14B8A6,#0F766E)}
.sq.c3{background:linear-gradient(160deg,#7C5CF0,#4C3BB8)}

/* big feature card (Business gym, Today's workout style) */
.feature{position:relative; display:block; margin-top:14px; padding:22px 20px 20px; border-radius:26px; background:#3F8FEA; color:#fff; text-align:center; overflow:hidden; text-decoration:none}
.feature h2{font-family:var(--font2); font-size:34px; font-weight:600; margin:0; letter-spacing:-.01em; position:relative}
.feature p{margin:4px 0 0; font-size:17px; opacity:.95; position:relative}
.feature .art{position:relative; height:150px; margin:10px auto 6px}
.feature .wbtn{position:relative; display:flex; align-items:center; justify-content:center; height:56px; border-radius:14px; background:#fff; color:#2563B8; font-family:var(--font2); font-size:22px; font-weight:600; box-shadow:0 4px 0 rgba(0,0,0,.12)}
.feature .bgLetters{position:absolute; inset:0; opacity:.13; pointer-events:none}
.areaChips{display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin:4px 0 14px; position:relative}
.areaChips span{font-size:12.5px; font-weight:700; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.18)}

/* sliding rows of cards */
.rowScroll{display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; margin:0 -16px; padding:0 16px 6px; scrollbar-width:none; scroll-padding-inline:16px}
.rowScroll::-webkit-scrollbar{display:none}
.rowScroll > *{scroll-snap-align:start; flex:none}

/* puzzle cards */
.puz{position:relative; width:min(78vw,330px); min-height:150px; padding:20px; border-radius:22px; color:#fff; text-decoration:none; overflow:hidden; display:flex; flex-direction:column; justify-content:center}
.puz b{font-family:var(--font2); font-size:28px; font-weight:600; line-height:1.15; max-width:62%; position:relative}
.puz small{font-family:var(--font2); font-size:18px; opacity:.85; margin-top:6px; position:relative}
.puz .pic{position:absolute; right:16px; top:50%; transform:translateY(-50%) rotate(-8deg)}
.puz.cw{background:linear-gradient(135deg,#1FB5D8,#1593B8)}
.puz.wb{background:linear-gradient(135deg,#343B7A,#262B5E)}
.puz .doneTag{position:absolute; left:20px; top:14px; font-size:12px; font-weight:800; letter-spacing:.06em; padding:3px 8px; border-radius:6px; background:#4ade80; color:#063}

/* game cards */
.gCard{position:relative; width:168px; height:186px; border-radius:20px; color:#fff; text-decoration:none; overflow:hidden; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding:0 10px 16px; text-align:center}
.gCard .gIc{position:absolute; top:22px; left:50%; transform:translateX(-50%); width:70px; height:70px; display:grid; place-items:center}
.gCard b{font-family:var(--font2); font-size:22px; font-weight:600; line-height:1.1; position:relative; text-shadow:0 1px 6px rgba(0,0,0,.18)}
.gCard small{font-family:var(--font2); font-size:13px; letter-spacing:.12em; text-transform:uppercase; opacity:.85; margin-top:6px; font-weight:600; position:relative}
.gCard .pro{position:absolute; top:10px; right:10px}
.gCard .best{position:absolute; top:10px; left:10px; font-size:11.5px; font-weight:800; background:rgba(0,0,0,.22); padding:3px 8px; border-radius:999px}
.gCard::before,.gCard::after{content:""; position:absolute; border-radius:50%; opacity:.28}
.gCard::before{width:150px; height:150px; left:-50px; bottom:-60px; background:rgba(255,255,255,.35)}
.gCard::after{width:120px; height:120px; right:-46px; top:-40px; background:rgba(0,0,0,.25)}
.gGrid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.gGrid .gCard{width:auto}

/* filter chips (ALL · GRAMMAR …) */
.fChips{display:flex; gap:10px; overflow-x:auto; margin:14px -16px 4px; padding:2px 16px; scrollbar-width:none}
.fChips::-webkit-scrollbar{display:none}
.fChips button{flex:none; height:48px; padding:0 20px; border-radius:999px; border:2px solid var(--line2); background:transparent; color:var(--fg); font-family:var(--font2); font-size:17px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; cursor:pointer}
.fChips button.on{background:var(--fg); color:var(--bg); border-color:var(--fg)}

/* hexagon icon */
.hex{width:76px; height:86px; clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); display:grid; place-items:center; color:#fff}

/* skill bars (Elevate "EPQ") */
.skill{margin:0 0 22px}
.skill .top{display:flex; align-items:baseline; gap:10px; font-family:var(--font2); letter-spacing:.1em; text-transform:uppercase}
.skill .top b{font-size:19px; font-weight:600; color:var(--muted)}
.skill .top i{font-style:normal; font-size:21px; font-weight:600; color:var(--fg); letter-spacing:.04em}
.skill .top span{margin-left:auto; font-size:15px; color:var(--muted)}
.segBar{display:flex; gap:3px; height:12px; margin-top:12px}
.segBar i{flex:1; background:var(--chip-hi); border-radius:2px; overflow:hidden; position:relative}
.segBar i:first-child{border-radius:99px 2px 2px 99px} .segBar i:last-child{border-radius:2px 99px 99px 2px}
.segBar i b{position:absolute; inset:0; width:0; transition:width 1s cubic-bezier(.2,.8,.2,1)}

/* streak calendar */
.cal{background:var(--card); border-radius:24px; padding:16px 10px 10px}
.cal .ch{display:flex; align-items:center; justify-content:space-between; padding:0 8px 12px; font-family:var(--font2); font-size:22px; font-weight:600; letter-spacing:.04em}
.cal .ch button{border:0; background:none; color:var(--brand); font-size:28px; cursor:pointer; width:40px; height:40px}
.cal .ch button[disabled]{opacity:.25}
.cal .grid{display:grid; grid-template-columns:repeat(7,1fr); text-align:center; row-gap:6px}
.cal .dow{font-family:var(--font2); font-size:16px; font-weight:600; color:var(--muted); padding:6px 0 10px; border-bottom:1px solid var(--line)}
.cal .d{display:flex; flex-direction:column; align-items:center; gap:6px; padding:8px 0 6px; font-size:15px; color:var(--muted); border-bottom:1px solid var(--line)}
.cal .hx{width:38px; height:42px; clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); background:var(--line2); position:relative; display:grid; place-items:center; color:var(--dim); font-size:14px}
.cal .hx::before{content:""; position:absolute; inset:2px; clip-path:inherit; background:var(--card)}
.cal .hx span{position:relative}
.cal .d.on .hx{background:linear-gradient(160deg,#FBBF24,#F97316)}
.cal .d.on .hx::before{background:linear-gradient(160deg,#FBBF24,#F97316)}
.cal .d.on .hx span{color:#fff; font-weight:800}
.cal .d.isToday .hx{background:#F97316}
.cal .d.isToday:not(.on) .hx::before{inset:3px}
.cal .d.isToday{color:var(--fg); font-weight:800}
.cal .d.future{opacity:.45}

/* the purple Pro page */
.proFull{position:fixed; inset:0; z-index:85; overflow:auto; background:linear-gradient(180deg,#6D28D9 0%,#4C1D95 45%,#1E1B4B 100%); color:#fff; animation:fade .25s}
.proFull .in{max-width:560px; margin:0 auto; padding:calc(18px + env(safe-area-inset-top,0px)) 22px calc(30px + env(safe-area-inset-bottom,0px)); position:relative}
.proFull .rings{position:absolute; left:50%; top:-60px; transform:translateX(-50%); width:520px; height:520px; pointer-events:none; opacity:.35}
.proFull .x{position:relative; border:0; background:none; color:#fff; font-size:34px; width:48px; height:48px; cursor:pointer; line-height:1}
.proFull .logo{position:relative; display:grid; place-items:center; margin:6px auto 0; width:150px; height:150px}
.proFull h2{position:relative; text-align:center; font-family:var(--font2); font-size:38px; font-weight:600; margin:10px 0 6px}
.proFull .why{position:relative; text-align:center; color:#DDD6FE; font-size:16px; line-height:1.45; margin:0 0 18px}
.proFull .ben{display:flex; gap:18px; align-items:flex-start; padding:20px 0; border-top:1px solid rgba(255,255,255,.14)}
.proFull .ben .bi{width:64px; height:64px; border-radius:16px; flex:none; display:grid; place-items:center; font-size:34px; background:rgba(255,255,255,.08)}
.proFull .ben b{display:block; font-family:var(--font2); font-size:22px; font-weight:600}
.proFull .ben small{display:block; color:#C4B5FD; font-size:16px; line-height:1.4; margin-top:4px}
.proFull .ask{all:unset; box-sizing:border-box; display:flex; align-items:center; justify-content:center; width:100%; height:58px; margin-top:20px; border-radius:16px; background:#fff; color:#5B21B6; font-family:var(--font2); font-size:21px; font-weight:600; cursor:pointer}
.proFull .later{display:block; margin:14px auto 0; background:none; border:0; color:#DDD6FE; font:inherit; font-size:16px; cursor:pointer}

/* light theme tweaks */
:root[data-theme="light"] .statBar .sb:not(.lit):first-child{color:#9AA1B2}
:root[data-theme="light"] .bottomNav{background:#fff}
:root[data-theme="light"] .bottomNav a.on{background:var(--bg)}
:root[data-theme="light"] .meBox, :root[data-theme="light"] .cal{box-shadow:var(--shadow)}

/* Version 15: lesson lists as colourful cards */
.lCard{position:relative; display:flex; gap:14px; align-items:flex-start; padding:18px 16px; border-radius:22px; margin-bottom:12px; color:#fff; text-decoration:none; overflow:hidden; transition:transform .12s}
.lCard:active{transform:scale(.98)}
.lCard::before{content:""; position:absolute; width:180px; height:180px; border-radius:50%; right:-60px; top:-70px; background:rgba(255,255,255,.12); pointer-events:none}
.lCard .lHex{width:56px; height:64px; flex:none; background:rgba(255,255,255,.22); font-family:var(--font2); font-size:26px; font-weight:700}
.lCard .tx{flex:1; min-width:0; position:relative}
.lCard .sn{display:block; font-family:var(--font2); font-size:12.5px; letter-spacing:.12em; font-weight:600; opacity:.8}
.lCard b{display:block; font-family:var(--font2); font-size:21px; font-weight:600; line-height:1.2; margin-top:3px}
.lCard small:not(.sn){display:block; font-size:14.5px; line-height:1.4; opacity:.88; margin-top:5px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical}
.lProg{display:flex; align-items:center; gap:10px; margin-top:12px}
.lProg .bar{flex:1; height:8px; border-radius:99px; background:rgba(255,255,255,.25); overflow:hidden}
.lProg .bar i{display:block; height:100%; background:#fff; border-radius:99px}
.lProg span{font-size:13px; font-weight:700; flex:none}
.lCard.locked{background:var(--card); color:var(--muted)}
.lCard.locked .lHex{background:var(--chip-hi); font-size:22px}

/* Version 16: the "Ask AI" search box with a Gemini-style glowing border */
.aiWrap{position:relative; margin-top:18px; padding:2px; border-radius:30px; background:linear-gradient(90deg,#4F8CFF,#9B72F2,#E5577F,#F6B73C,#34C77B,#4F8CFF); background-size:300% 100%; animation:aiFlow 6s linear infinite}
.aiWrap::before{content:""; position:absolute; inset:-3px; border-radius:34px; background:inherit; background-size:300% 100%; animation:aiFlow 6s linear infinite; filter:blur(14px); opacity:.75; z-index:-1}
.aiWrap.hide{display:none}
@keyframes aiFlow{to{background-position:300% 0}}
.ask.ai{margin-top:0; border:0; border-radius:28px; background:var(--bg); box-shadow:none; align-items:center; padding:6px 6px 6px 20px}
.ask.ai:focus-within{box-shadow:none}
.ask.ai textarea{font-size:18px}
.ask.ai textarea::placeholder{color:var(--fg); opacity:.85}
.ask .micIn{background:transparent!important; animation:none!important; color:var(--fg); width:44px; height:44px}
.ask .micIn.on{background:#ef4444!important; color:#fff; animation:pulse 1.2s infinite!important}
.ask .micIn svg{width:22px; height:22px}
@media (prefers-reduced-motion: reduce){ .aiWrap,.aiWrap::before{animation:none} }
@keyframes pulse{50%{box-shadow:0 0 0 8px rgba(239,68,68,.25)}}
.meBox[hidden]{display:none}

/* v19: lesson list as colourful tiles, 2 per row (like the game tiles) */
.lTile{position:relative; min-height:208px; border-radius:20px; color:#fff; text-decoration:none; overflow:hidden; display:flex; flex-direction:column; align-items:center; padding:20px 12px 14px; text-align:center; transition:transform .12s}
.lTile:active{transform:scale(.97)}
.lTile::before,.lTile::after{content:""; position:absolute; border-radius:50%; opacity:.28; pointer-events:none}
.lTile::before{width:150px; height:150px; left:-50px; bottom:-60px; background:rgba(255,255,255,.35)}
.lTile::after{width:120px; height:120px; right:-46px; top:-40px; background:rgba(0,0,0,.25)}
.lTile .lHex{width:52px; height:58px; flex:none; background:rgba(255,255,255,.24); font-family:var(--font2); font-size:24px; font-weight:700; position:relative}
.lTile b{font-family:var(--font2); font-size:17.5px; font-weight:600; line-height:1.18; margin-top:12px; position:relative; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; text-shadow:0 1px 6px rgba(0,0,0,.18)}
.lTile .sn{font-family:var(--font2); font-size:11.5px; letter-spacing:.12em; font-weight:600; opacity:.8; margin-top:auto; padding-top:8px; position:relative}
.lTile .lProg{width:100%; margin-top:8px; gap:8px; position:relative}
.lTile .lProg .bar{height:6px}
.lTile .lProg span{font-size:12px}
.lTile .lSt{position:absolute; top:10px; right:10px; font-size:15px; background:rgba(0,0,0,.22); border-radius:999px; padding:3px 7px; z-index:1}
.lTile.locked{background:var(--card); color:var(--muted)}
.lTile.locked .lHex{background:var(--chip-hi)}
.lTile.locked::before,.lTile.locked::after{display:none}

/* v20: "lamp off" tiles — not ready yet (not enough words) or Pro ended */
.gCard.off{filter:grayscale(1) brightness(.62); box-shadow:none}
.gCard.off .gIc{opacity:.6}
.gCard .offT{text-transform:none; letter-spacing:0; font-family:var(--font1, inherit); font-size:12.5px; line-height:1.3; opacity:1; background:rgba(0,0,0,.28); padding:4px 10px; border-radius:10px}
.gCard.off .pro{filter:none}

/* v21: front page — 4 equal tiles, 2 per row */
.grid4{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px}
.grid4 .sq{min-height:168px; padding:18px 16px 16px; border-radius:24px; box-shadow:0 10px 26px rgba(0,0,0,.22)}
.grid4 .sq .ic{width:54px; height:54px; border-radius:16px; background:rgba(255,255,255,.2)}
.grid4 .sq b{font-size:20px}
.grid4 .sq small{font-size:13px}
.grid4 .sq::before{content:""; position:absolute; width:130px; height:130px; border-radius:50%; left:-50px; bottom:-70px; background:rgba(0,0,0,.14); pointer-events:none}
.sq.c4{background:linear-gradient(160deg,#F97316,#BE185D)}
/* General business: Defne Aydın banner */
.gbBanner{position:relative; overflow:hidden; border-radius:26px; padding:22px 20px 20px; color:#fff; margin:4px 0 16px; background:linear-gradient(150deg,#7C3AED 0%,#5B86EF 55%,#22C2FC 100%); box-shadow:0 14px 40px rgba(91,134,239,.35)}
.gbBanner::before{content:""; position:absolute; width:220px; height:220px; border-radius:50%; right:-70px; top:-80px; background:rgba(255,255,255,.14)}
.gbBanner::after{content:""; position:absolute; width:160px; height:160px; border-radius:50%; left:-60px; bottom:-80px; background:rgba(0,0,0,.14)}
.gbBanner .soon{position:relative; display:inline-flex; align-items:center; gap:6px; font-family:var(--font2); font-weight:700; font-size:13px; letter-spacing:.1em; background:#fff; color:#5B2BB5; padding:6px 12px; border-radius:999px}
.gbBanner .who{position:relative; display:flex; align-items:center; gap:14px; margin:0 0 10px}
.gbBanner .av{flex:none; width:68px; height:68px; border-radius:50%; background:linear-gradient(160deg,#FDE68A,#F472B6); display:grid; place-items:center; font-family:var(--font2); font-size:28px; font-weight:700; color:#5B2BB5; border:3px solid rgba(255,255,255,.7)}
.gbBanner h2{font-family:var(--font2); font-size:26px; font-weight:600; margin:0; line-height:1.15}
.gbBanner .role{font-size:14px; opacity:.9; margin-top:3px}
.gbBanner p{position:relative; font-size:16px; line-height:1.5; margin:0 0 12px}
.gbBanner .tags{position:relative; display:flex; flex-wrap:wrap; gap:8px}
.gbBanner .tags span{background:rgba(255,255,255,.2); border-radius:999px; padding:5px 11px; font-size:13.5px; font-weight:600}

/* v22: energetic brand background (dark mode, every page): deep navy with cyan and violet glows */
:root:not([data-theme="light"]) body::before{content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(ellipse 80% 55% at 0% 0%, rgba(34,194,252,.34), transparent 62%),
             radial-gradient(ellipse 75% 55% at 100% 100%, rgba(139,92,246,.40), transparent 62%),
             radial-gradient(ellipse 60% 40% at 100% 20%, rgba(91,134,239,.20), transparent 60%), var(--bg)}
:root:not([data-theme="light"]) .bottomNav{background:rgba(10,16,36,.86); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px)}
:root:not([data-theme="light"]) .statBar{border-bottom-color:rgba(255,255,255,.08)}
/* streak as text, Pro with days left */
.statBar .stk{gap:6px}
.statBar .stk .dl{font-family:var(--font2); font-size:17px; font-weight:600}
.statBar .stk.lit b,.statBar .stk.lit .dl{color:#FB923C}
.statBar .pro .pt{display:flex; flex-direction:column; align-items:flex-start; line-height:1.05}
.statBar .pro .pt small{font-size:12.5px; font-weight:700; color:var(--muted); margin-top:2px}
.statBar .pro.last .pt small{color:#FBBF24}
/* Home: tiles fill the screen, Ask AI at the bottom */
body.home .page{display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; box-sizing:border-box}
body.home .grid4{flex:1; grid-auto-rows:minmax(170px,1fr); margin-top:16px}
body.home .grid4 .sq{min-height:0}
body.home .aiWrap{margin-top:16px}
:root:not([data-theme="light"]) body{background:transparent}

/* v23: paused account screen */
.pausedCard{position:relative; overflow:hidden; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:4px; margin-top:22px; padding:34px 24px; border-radius:28px; color:#fff;
  background:linear-gradient(155deg,rgba(91,134,239,.32),rgba(139,92,246,.30) 55%,rgba(34,194,252,.18)); border:1px solid rgba(255,255,255,.12); box-shadow:0 18px 50px rgba(0,0,0,.3)}
.pausedCard::before{content:""; position:absolute; width:240px; height:240px; border-radius:50%; right:-90px; top:-90px; background:rgba(255,255,255,.08)}
.pausedCard .pIc{position:relative; width:96px; height:96px; border-radius:50%; display:grid; place-items:center; font-size:44px; background:rgba(255,255,255,.14); box-shadow:0 0 0 10px rgba(255,255,255,.06), 0 0 40px rgba(139,92,246,.45); margin-bottom:14px}
.pausedCard h2{position:relative; font-family:var(--font2); font-size:28px; font-weight:600; margin:0 0 8px}
.pausedCard p{position:relative; font-size:16.5px; line-height:1.55; opacity:.92; margin:0 0 18px; max-width:340px}
.pausedCard .pNote{position:relative; background:#fff; color:#3B2A8F; font-weight:700; font-size:16px; padding:13px 20px; border-radius:16px}
:root[data-theme="light"] .pausedCard{color:#1d2333; background:linear-gradient(155deg,#E0E9FF,#EDE4FF)}

/* v25: loading screen — a wave: each word of the motto grows and glows, then goes back, one after another */
.splash .spLogo{position:relative; width:min(280px,72vw)}
.splash .spLogo > img{display:block; width:100%}
.splash .spTag{position:absolute; left:20.83%; top:68.18%; width:79.17%; aspect-ratio:950/66}
.splash .spTag .tw{position:absolute; top:0; height:100%; transform-origin:50% 60%; animation:tagWave 3.6s ease-in-out infinite; animation-delay:calc(.35s + var(--i) * .45s)}
@keyframes tagWave{
  0%,22%,100%{transform:scale(1); filter:drop-shadow(0 0 0 rgba(34,194,252,0))}
  9%{transform:scale(1.2) translateY(-6%); filter:drop-shadow(0 0 5px rgba(34,194,252,.95)) drop-shadow(0 0 14px rgba(139,92,246,.6))}}
@media (prefers-reduced-motion: reduce){
  .splash .spTag .tw{animation:none; filter:drop-shadow(0 0 5px rgba(34,194,252,.6))}}

/* v32: your teacher, sessions done / left and the next class */
.classCard{display:flex; align-items:center; gap:12px; margin-top:16px; padding:12px 14px; border-radius:20px; background:linear-gradient(135deg,rgba(34,194,252,.16),rgba(139,92,246,.18)); border:1px solid rgba(148,196,255,.22); flex-wrap:wrap}
.classCard small{display:block; font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:700}
.classCard b{font-family:var(--font2); font-size:17px; font-weight:600}
.ccAv{width:42px; height:42px; border-radius:50%; display:grid; place-items:center; font-weight:800; font-size:18px; color:#fff; background:linear-gradient(140deg,#5B86EF,#8B5CF6); flex:none}
.ccTx{flex:1; min-width:110px}
.ccNum{text-align:center; padding:4px 10px; border-radius:12px; background:rgba(255,255,255,.08)}
.ccNum b{display:block; font-size:20px}
.ccNext{flex-basis:100%; display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding-top:8px; border-top:1px solid rgba(148,196,255,.15)}
.ccModal{position:fixed; inset:0; z-index:9000; display:grid; place-items:center; padding:20px; background:rgba(4,8,20,.72); backdrop-filter:blur(6px); animation:bubIn .25s ease}
.ccBox{width:min(420px,100%); border-radius:26px; padding:26px 22px 20px; text-align:center; background:linear-gradient(160deg,#1B2552,#141B33); border:1px solid rgba(148,196,255,.25); box-shadow:0 24px 60px rgba(0,0,0,.5); color:#F5F7FB}
.ccBox .ccIc{font-size:44px}
.ccBox h2{font-family:var(--font2); font-size:24px; margin:8px 0}
.ccBox p{font-size:16.5px; line-height:1.5; margin:0 0 18px; opacity:.92}
.ccBtns{display:grid; grid-template-columns:1fr 1.4fr; gap:10px}
.ccBtns .btn{height:54px; font-size:16.5px}
.ccBox small{display:block; margin-top:12px; opacity:.65; font-size:13px}
@keyframes bubIn{from{opacity:0}}
.ccBtns .btn:not(.pri){background:rgba(255,255,255,.1); color:#fff}

/* Version 36: show that a row has more tiles — a third of the next tile peeks in, a count button, a one-time nudge */
.rowScroll > .gCard{width:clamp(136px, calc((100vw - 40px) / 2.35), 168px)}
@media (max-width:420px){ .rowScroll > .gCard b{font-size:19.5px} .rowScroll > .gCard small{font-size:11.5px; letter-spacing:.07em; white-space:nowrap} .rowScroll > .gCard .gIc{top:16px; transform:translateX(-50%) scale(.85)} }
.moreB{margin-left:auto; flex:none; align-self:center; border:0; cursor:pointer; font:inherit; font-size:13.5px; font-weight:700; color:var(--brand); background:rgba(34,194,252,.12); padding:7px 12px; border-radius:999px; white-space:nowrap; text-transform:none; letter-spacing:0; font-family:inherit}
.moreB:active{transform:scale(.96)}
.rowScroll.nudge > *{animation:rowNudge 1.1s cubic-bezier(.3,.7,.3,1)}
@keyframes rowNudge{35%{transform:translateX(-56px)} 70%{transform:translateX(6px)} 100%{transform:none}}

/* Version 37: General English levels */
.lvYou{margin:6px 2px 4px; font-size:15px; color:var(--muted)} .lvYou b{color:var(--text, #fff); font-size:17px}
.lvSec{margin-top:22px}
.lvRow{display:flex; align-items:center; gap:12px; margin:0 2px 12px}
.lvB{width:52px; height:52px; flex:none; border-radius:16px; display:grid; place-items:center; font-family:var(--font2); font-weight:700; font-size:19px; color:#fff; background:linear-gradient(150deg,#8B5CF6,#4C1D95); box-shadow:0 6px 16px rgba(124,58,237,.35)}
.lvTx{flex:1; min-width:0} .lvTx b{display:block; font-family:var(--font2); font-size:21px; font-weight:600} .lvTx small{color:var(--muted); font-size:14px}
.lvMe{flex:none; font-size:12.5px; font-weight:800; padding:5px 10px; border-radius:999px; background:rgba(250,204,21,.16); color:#FACC15; border:1px solid rgba(250,204,21,.4)}
.lvSec.off{opacity:.45; filter:grayscale(.7)} .lvSec.off .lvRow{margin-bottom:0} .lvSec.off .lvB{box-shadow:none; background:linear-gradient(150deg,#475569,#1e293b)}

@media (max-width:400px){ .bottomNav{gap:2px; padding-left:6px; padding-right:6px} .bottomNav a{font-size:12px; letter-spacing:0} .bottomNav a svg{width:27px; height:27px} }

/* Version 41: teachers using the app can jump back to the teaching dashboard */
.tSwitch{display:flex; align-items:center; justify-content:center; gap:6px; margin:10px auto 0; width:fit-content; padding:8px 16px; border-radius:999px; font-weight:800; font-size:14px; color:#E9D5FF; background:rgba(124,58,237,.22); border:1px solid rgba(167,139,250,.45); text-decoration:none}
.tSwitch span{opacity:.8}
