:root{
  --ink:#292164; --ink2:#5d5794; --mint:#00f3b9; --mintd:#00c495; --mintl:#dcfff4;
  --pink:#f15bb5; --pinkd:#c93f93; --sky:#4fb3ff; --skyd:#2f8fdc; --purple:#8b7cf6; --purpled:#6a58e0;
  --coral:#ff7d8e; --lav:#eeebfb; --bg:#f7f5ff; --line:#e4e0f6; --white:#fff; --bad:#c2186f;
  --top:env(safe-area-inset-top,0px); --bottom:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
button,a,.pad,.tabbar{touch-action:manipulation}
html{-webkit-text-size-adjust:100%}
[hidden]{display:none!important}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font-family:"Baloo Bhaijaan 2","Cairo",system-ui,sans-serif;font-size:17px;line-height:1.5;-webkit-user-select:none;user-select:none;overflow-x:hidden}
input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}
button{font-family:inherit;cursor:pointer;color:inherit}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--pink);outline-offset:3px}
h1,h2,h3,p{margin:0}
h1{font-size:30px;font-weight:800;line-height:1.25}
h2{font-size:21px;font-weight:800;line-height:1.3}
h3{font-size:19px;font-weight:800;line-height:1.3}
.muted{color:var(--ink2);font-size:16px}
.err{color:var(--bad);font-size:15.5px;min-height:1.4em;font-weight:700}
.view{display:none;position:fixed;inset:0;z-index:30;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--bg);flex-direction:column}
.view.on{display:flex;animation:pagein .32s cubic-bezier(.2,.9,.3,1) backwards}
@keyframes pagein{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
.tab{display:none;min-height:100vh;flex-direction:column;padding-bottom:calc(var(--bottom) + 92px)}
.tab.on{display:flex;animation:in .3s ease both}
@keyframes in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---------- chunky buttons ---------- */
.chunky{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border:0;border-radius:22px;padding:15px 18px 14px;
  font-family:inherit;font-size:21px;font-weight:800;line-height:1.2;text-decoration:none;text-align:center;
  background:var(--mint);color:var(--ink);box-shadow:0 6px 0 var(--mintd),0 12px 22px rgba(0,180,140,.22);transition:transform .08s,box-shadow .08s}
.chunky:active{transform:translateY(5px);box-shadow:0 1px 0 var(--mintd)}
.chunky.ink{background:var(--ink);color:#fff;box-shadow:0 6px 0 #17113f,0 12px 22px rgba(41,33,100,.25)}
.chunky.ink:active{box-shadow:0 1px 0 #17113f}
.chunky.white{background:#fff;color:var(--ink);box-shadow:0 6px 0 var(--line)}
.chunky.small{width:auto;font-size:16px;padding:9px 16px 8px;border-radius:16px;box-shadow:0 4px 0 #17113f}
.chunky.small:active{transform:translateY(3px);box-shadow:0 1px 0 #17113f}
.chunky[disabled]{opacity:.5;transform:none}
.chunky svg{width:26px;height:26px;flex:none}
.textbtn{border:0;background:none;color:var(--ink2);font-size:16px;font-weight:700;padding:10px;text-decoration:underline;text-underline-offset:4px}

/* ---------- sky scene ---------- */
.sky{position:relative;overflow:hidden;background:linear-gradient(180deg,#6fc0ff 0%,#b6e1ff 58%,#e2f3ff 100%);color:var(--ink)}
body.t-eve .sky{background:linear-gradient(180deg,#6f5fd6 0%,#d987b8 58%,#ffbfa6 100%);color:#fff}
body.t-night .sky{background:linear-gradient(180deg,#140d42 0%,#2b2172 58%,#47399e 100%);color:#fff}
.sky .cloud{position:absolute;opacity:.95;pointer-events:none;animation:drift linear infinite}
body.t-night .sky .cloud{opacity:.22}
.sky .c1{width:120px;top:calc(var(--top) + 70px);animation-duration:46s;animation-delay:-8s}
.sky .c2{width:86px;top:calc(var(--top) + 150px);animation-duration:60s;animation-delay:-35s}
.sky .c3{width:150px;top:calc(var(--top) + 18px);animation-duration:75s;animation-delay:-50s;opacity:.75}
@keyframes drift{from{transform:translateX(-180px)}to{transform:translateX(620px)}}
.sky .sun,.sky .moon{position:absolute;pointer-events:none;left:-8px}
.sky .sun{width:118px;top:calc(var(--top) + 54px);animation:spin 60s linear infinite}
.sky .moon{width:78px;top:calc(var(--top) + 64px);left:14px;display:none}
.sky .twinkle{position:absolute;inset:0;display:none;pointer-events:none;background:
  radial-gradient(2px 2px at 12% 22%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 30% 9%,#fff 50%,transparent 51%),
  radial-gradient(1.5px 1.5px at 55% 18%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 78% 30%,#fff 50%,transparent 51%),
  radial-gradient(1.5px 1.5px at 88% 12%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 44% 36%,#fff 50%,transparent 51%),
  radial-gradient(1.5px 1.5px at 67% 6%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 20% 44%,#fff 50%,transparent 51%);animation:tw 3s ease-in-out infinite alternate}
@keyframes tw{from{opacity:.5}to{opacity:1}}
body.t-night .sky .sun,body.t-eve .sky .sun{display:none}
body.t-night .sky .moon,body.t-eve .sky .moon{display:block}
body.t-night .sky .twinkle{display:block}
@keyframes spin{to{transform:rotate(360deg)}}
.hill{position:absolute;left:0;right:0;bottom:0;width:100%;height:120px;pointer-events:none}
.hill .h1{fill:#9be7b8}.hill .h2{fill:#6fd39a}
body.t-eve .hill .h1{fill:#a7d9a0}body.t-eve .hill .h2{fill:#7cc58f}
body.t-night .hill .h1{fill:#2f6a63}body.t-night .hill .h2{fill:#245650}
.bob{animation:bob 3.2s ease-in-out infinite;transform-origin:50% 100%}
@keyframes bob{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(-1.5deg)}}
.flutter{animation:fl 7s ease-in-out infinite}
@keyframes fl{0%,100%{transform:translate(0,0) rotate(-8deg)}25%{transform:translate(-18px,-14px) rotate(6deg)}50%{transform:translate(-4px,-26px) rotate(-4deg)}75%{transform:translate(14px,-10px) rotate(8deg)}}

/* ---------- sign-in ---------- */
.auth{background:var(--bg)}
.auth .sky{min-height:calc(var(--top) + 380px);flex:none}
.auth .logo{position:relative;z-index:2;margin:calc(var(--top) + 18px) auto 0;display:block;background:#fff;border-radius:999px;padding:8px 18px;height:54px;box-shadow:0 6px 18px rgba(41,33,100,.12)}
.auth .duo{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);display:flex;align-items:flex-end;z-index:1}
.auth .duo img{height:200px;width:auto}
.auth .duo img+img{margin-right:-26px;animation-delay:-1.6s}
.auth .bush{position:absolute;bottom:40px;right:-12px;width:110px;z-index:1}
.auth .fly{position:absolute;top:calc(var(--top) + 150px);right:34px;width:44px;z-index:1}
.panel{position:relative;z-index:3;margin-top:-30px;background:#fff;border-radius:32px 32px 0 0;flex:1;padding:26px 22px calc(var(--bottom) + 26px);display:flex;flex-direction:column;gap:14px;box-shadow:0 -10px 30px rgba(41,33,100,.06)}
.panel .muted{margin-top:-6px}
.field{width:100%;border:2px solid var(--line);border-radius:18px;padding:15px 16px;font-size:19px;font-family:inherit;font-weight:600;color:var(--ink);background:var(--bg);direction:ltr;text-align:left;transition:border-color .15s,background .15s}
.field:focus{border-color:var(--purple);background:#fff;outline:0}
.otp{position:relative;direction:ltr;display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.otp .box{height:62px;border:2px solid var(--line);border-radius:16px;background:var(--bg);display:grid;place-items:center;font-size:30px;font-weight:800;color:var(--ink);transition:all .15s}
.otp .box.f{border-color:var(--purple);background:#fff;transform:translateY(-2px)}
.otp .box.cur{border-color:var(--purple);background:#fff;box-shadow:0 0 0 4px rgba(139,124,246,.18)}
.otp input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:20px;border:0;color:transparent;background:transparent;caret-color:transparent}
.otp.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.peek{position:absolute;top:-96px;left:20px;height:120px;z-index:4;pointer-events:none}
.back{border:0;background:rgba(255,255,255,.85);color:var(--ink);font-weight:800;font-size:16px;padding:8px 14px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;box-shadow:0 3px 0 var(--line)}
.note{display:flex;gap:10px;align-items:center;background:var(--lav);border-radius:18px;padding:10px 14px;font-size:15px;color:var(--ink2);font-weight:600}
.note svg{flex:none;width:22px;height:22px}

/* ---------- home ---------- */
#tMine .sky{min-height:calc(var(--top) + 318px);padding:calc(var(--top) + 12px) 16px 0;flex:none}
.topbar{position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:8px}
.me{display:flex;align-items:center;gap:8px;border:0;background:rgba(255,255,255,.92);border-radius:999px;padding:4px 4px 4px 14px;font-weight:800;font-size:17px;color:var(--ink);box-shadow:0 4px 0 rgba(41,33,100,.12)}
.me svg{width:16px;height:16px;opacity:.6}
.av{width:44px;height:44px;border-radius:50%;overflow:hidden;background:linear-gradient(180deg,#e9e4ff,#d4ccff);flex:none;display:block;position:relative}
.av img{position:absolute;width:150%;left:-25%;top:-4%;height:auto}
.tb-r{display:flex;gap:8px;align-items:center}
.starpill{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.92);border-radius:999px;padding:5px 12px 5px 8px;font-weight:800;font-size:18px;color:var(--ink);box-shadow:0 4px 0 rgba(41,33,100,.12)}
.starpill img{width:28px;height:28px}
.lockbtn{width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;box-shadow:0 4px 0 rgba(41,33,100,.12)}
.lockbtn svg{width:22px;height:22px}
.hello{position:relative;z-index:2;margin-top:18px;max-width:62%}
.hello h1{font-size:27px}
.hello p{font-size:18px;font-weight:700;opacity:.85;margin-top:4px}
.hero-kid{position:absolute;bottom:46px;left:18px;height:178px;z-index:1}
.hero-tree{position:absolute;bottom:40px;right:4px;width:120px;height:140px;z-index:1;background:none;border:0;padding:0;display:flex;align-items:flex-end;justify-content:center}
.hero-tree img{max-width:100%;max-height:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 6px 6px rgba(41,33,100,.12))}
.hero-tree.s0 img{width:104px}.hero-tree.s1 img,.hero-tree.s2 img{max-height:90px}
.hero-fly{position:absolute;bottom:120px;left:150px;width:36px;z-index:1}
body.t-night .hero-fly{display:none}
.wrap{position:relative;z-index:3;margin-top:-34px;background:var(--bg);border-radius:32px 32px 0 0;padding:18px 16px 24px;display:flex;flex-direction:column;gap:20px;flex:1}

.next{position:relative;background:#fff;border-radius:28px;padding:18px 18px 22px;box-shadow:0 10px 30px rgba(41,33,100,.10);display:flex;flex-direction:column;gap:14px;margin-top:-58px}
.nx-top{display:flex;justify-content:space-between;align-items:center}
.tag{display:inline-flex;align-items:center;gap:6px;background:var(--lav);color:var(--purpled);font-weight:800;font-size:14.5px;border-radius:999px;padding:3px 12px}
.tag i{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}
.nx-mid{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:96px}
.nx-title{font-size:21px;font-weight:800;line-height:1.3}
.nx-when{font-size:19px;font-weight:700;color:var(--purpled);margin-top:2px}
.nx-teacher{font-size:15px;color:var(--ink2);font-weight:600;margin-top:2px}
.nx-art{height:104px;flex:none;margin:-36px 0 -6px}
.ring{position:relative;width:92px;height:92px;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:8;stroke-linecap:round}
.ring .bgc{stroke:var(--lav)}.ring .fg{stroke:var(--mint);transition:stroke-dashoffset .6s}
.ring span{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-weight:800;font-size:24px;line-height:1}
.ring span small{display:block;font-size:12.5px;font-weight:700;color:var(--ink2);margin-top:2px}
.next .chunky{font-size:23px;padding:16px 18px 15px}
.next.live{background:linear-gradient(160deg,#1fe9b4 0%,#00d4a0 100%);box-shadow:0 12px 32px rgba(0,196,149,.35)}
.next.live .tag{background:#fff;color:#00936f}
.next.live .tag i{animation:blink 1s infinite}
.next.live .nx-when,.next.live .nx-teacher{color:var(--ink)}
.next.live .chunky{background:var(--ink);color:#fff;box-shadow:0 6px 0 #17113f;animation:pulse 1.6s ease-in-out infinite}
@keyframes blink{50%{opacity:.2}}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}

.sec-h{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.sec-h small{color:var(--ink2);font-weight:700;font-size:14.5px}
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.day{background:#fff;border-radius:18px;padding:8px 0 7px;text-align:center;box-shadow:0 3px 0 var(--line);position:relative}
.day b{display:block;font-size:21px;line-height:1.1}
.day span{font-size:12px;font-weight:700;color:var(--ink2)}
.day.cls{background:var(--purple);color:#fff;box-shadow:0 4px 0 var(--purpled)}
.day.cls span{color:#fff;opacity:.9}
.day.cls::after{content:"";position:absolute;top:-7px;left:50%;width:18px;height:18px;margin-left:-9px;background:url(/assets/images/app/star_badge.webp) center/contain no-repeat}
.day.today{outline:3px solid var(--mint);outline-offset:-3px}
.week-note{font-size:15px;color:var(--ink2);font-weight:600;margin-top:8px}

.tree{display:flex;align-items:center;gap:14px;width:100%;border:0;text-align:start;border-radius:28px;padding:14px 16px;background:linear-gradient(160deg,#e6fff6 0%,#d6f5ff 100%);box-shadow:0 5px 0 #c4ebdf;color:var(--ink)}
.tree:active{transform:translateY(3px);box-shadow:0 2px 0 #c4ebdf}
.tree-art{position:relative;width:104px;height:112px;flex:none;display:flex;align-items:flex-end;justify-content:center}
.tree-art::before{content:"";position:absolute;bottom:2px;left:8px;right:8px;height:18px;border-radius:50%;background:#9fdcb7}
.tree-art img{position:relative;max-height:108px;max-width:100px;transform-origin:50% 100%}
.tree-art img.grow{animation:grow .9s cubic-bezier(.3,1.6,.5,1)}
@keyframes grow{0%{transform:scale(.6)}100%{transform:scale(1)}}
.tree-txt{flex:1;min-width:0}
.kicker{font-size:14px;font-weight:800;color:#0a8f6c}
.tree-txt p.l{font-size:15.5px;color:var(--ink2);font-weight:600;margin-top:2px}
.bar{height:12px;border-radius:999px;background:#fff;margin-top:8px;overflow:hidden}
.bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#00d4a0,#00f3b9);transition:width .8s}

.play{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ptile{position:relative;overflow:hidden;border-radius:28px;height:176px;padding:14px;display:flex;flex-direction:column;justify-content:flex-end;text-decoration:none;color:#fff;transition:transform .08s,box-shadow .08s}
.ptile:active{transform:translateY(5px)}
.ptile b{font-size:23px;font-weight:800;line-height:1.15;position:relative}
.ptile small{font-size:14.5px;font-weight:700;opacity:.92;position:relative}
.ptile img{position:absolute;pointer-events:none}
.ptile.sky2{background:linear-gradient(160deg,#6cc4ff,#3d9df0);box-shadow:0 6px 0 var(--skyd)}
.ptile.sky2:active{box-shadow:0 1px 0 var(--skyd)}
.ptile.pur{background:linear-gradient(160deg,#a596ff,#7b68f0);box-shadow:0 6px 0 var(--purpled)}
.ptile.pur:active{box-shadow:0 1px 0 var(--purpled)}
.ptile .kite{width:86px;top:6px;left:8px;transform:rotate(-8deg)}
.ptile .ball{width:58px;top:62px;right:12px}
.ptile .trophy{width:84px;top:8px;left:50%;margin-left:-42px}
.ptile .medal{width:40px;top:20px;right:14px;transform:rotate(12deg)}

.remind{display:flex;align-items:center;gap:12px;background:#fff;border-radius:24px;padding:12px 14px;box-shadow:0 4px 0 var(--line)}
.remind img{height:78px;flex:none;margin:-14px 0 -12px}
.remind div{flex:1}
.remind p{font-size:15px;color:var(--ink2);font-weight:600}
.foot{display:flex;justify-content:center;margin-top:4px}
.foot button{display:inline-flex;align-items:center;gap:8px;border:0;background:#fff;border-radius:999px;padding:9px 18px;font-weight:800;font-size:16px;color:var(--ink2);box-shadow:0 3px 0 var(--line)}
.foot svg{width:18px;height:18px}

/* ---------- pick character / pick child ---------- */
.pick{background:linear-gradient(180deg,#efeaff 0%,var(--bg) 40%);padding:calc(var(--top) + 26px) 18px calc(var(--bottom) + 26px);gap:18px}
.pick h1{text-align:center}
.pick .muted{text-align:center;margin-top:-10px}
.buddies{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.bud{position:relative;border:0;background:#fff;border-radius:26px;height:122px;overflow:hidden;box-shadow:0 5px 0 var(--line);transition:transform .15s,box-shadow .15s;padding:0}
.bud img{position:absolute;bottom:-26px;left:50%;height:150px;transform:translateX(-50%)}
.bud:nth-child(3n+1){background:#e1f3ff}.bud:nth-child(3n+2){background:#ffe6f2}.bud:nth-child(3n){background:#e3fbf1}
.bud[aria-pressed="true"]{box-shadow:0 0 0 4px var(--purple),0 5px 0 var(--purpled);transform:translateY(-3px)}
.bud[aria-pressed="true"] img{animation:hop .5s}
.bud[aria-pressed="true"]::after{content:"";position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat}
@keyframes hop{40%{transform:translate(-50%,-14px)}}
.pick .chunky{margin-top:auto}
.kidcards{display:flex;flex-direction:column;gap:14px}
.kidcard{display:flex;align-items:center;gap:14px;border:0;background:#fff;border-radius:28px;padding:14px 16px;text-align:start;box-shadow:0 5px 0 var(--line)}
.kidcard:active{transform:translateY(4px);box-shadow:0 1px 0 var(--line)}
.kidcard .av{width:74px;height:74px}
.kidcard b{display:block;font-size:24px;line-height:1.2}
.kidcard span{font-size:15px;color:var(--ink2);font-weight:600}
.kidcard svg{margin-right:auto;width:24px;height:24px;opacity:.5;flex:none}

/* ---------- sheets ---------- */
.sheet{position:fixed;inset:0;background:rgba(21,17,47,.55);display:none;align-items:flex-end;justify-content:center;z-index:40}
.sheet.on{display:flex;animation:fade .2s}
.sheet .box{background:#fff;border-radius:32px 32px 0 0;width:100%;max-width:560px;padding:12px 20px calc(var(--bottom) + 22px);display:flex;flex-direction:column;gap:14px;animation:up .3s cubic-bezier(.2,.9,.3,1.1)}
.sheet .grab{width:44px;height:5px;border-radius:9px;background:var(--line);margin:0 auto 4px}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(100%)}}
.phone{position:relative;width:92px;height:150px;margin:4px auto 0;border:5px solid var(--ink);border-radius:22px;background:linear-gradient(180deg,#e1f3ff,#efeaff)}
.phone::before{content:"";position:absolute;top:6px;left:50%;width:30px;height:8px;margin-left:-15px;border-radius:9px;background:var(--ink)}
.phone .sb{position:absolute;right:-11px;top:34px;width:6px;height:30px;border-radius:4px;background:var(--pink);animation:press 1.8s infinite}
.phone .lk{position:absolute;inset:0;display:grid;place-items:center}
.phone .lk svg{width:34px;height:34px}
.phone .tap{position:absolute;right:-46px;top:30px;font-weight:800;color:var(--pink);font-size:15px}
@keyframes press{0%,10%,20%,30%,40%,50%{transform:translateX(0)}5%,15%,25%,35%,45%{transform:translateX(-3px);box-shadow:0 0 0 6px rgba(241,91,181,.3)}}
ol.steps{margin:0;padding:0;list-style:none;counter-reset:s;display:flex;flex-direction:column;gap:10px}
ol.steps li{counter-increment:s;display:flex;gap:12px;align-items:center;font-size:17px;font-weight:600;background:var(--bg);border-radius:18px;padding:10px 12px}
ol.steps li::before{content:counter(s);flex:none;width:34px;height:34px;border-radius:50%;background:var(--purple);color:#fff;font-weight:800;display:grid;place-items:center;font-size:17px}
.sheet .row{display:flex;gap:10px}

/* ---------- parents ---------- */
.parents{background:linear-gradient(180deg,#e9e4ff 0%,var(--bg) 34%);padding:calc(var(--top) + 14px) 18px calc(var(--bottom) + 28px);gap:16px}
.ph{display:flex;align-items:center;justify-content:space-between}
.gatebox{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.gatebox img{height:150px}
.gq{font-size:38px;font-weight:800;direction:rtl;background:#fff;border-radius:22px;padding:6px 22px;box-shadow:0 4px 0 var(--line)}
.ans{display:flex;gap:8px;justify-content:center;direction:ltr}
.ans span{width:52px;height:58px;border-radius:16px;background:#fff;border:2px solid var(--line);display:grid;place-items:center;font-size:28px;font-weight:800}
.ans.shake{animation:shake .4s}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:330px;direction:ltr}
.pad button{height:62px;border:0;border-radius:20px;background:#fff;font-size:27px;font-weight:800;box-shadow:0 4px 0 var(--line)}
.pad button:active{transform:translateY(3px);box-shadow:0 1px 0 var(--line)}
.pad .ok{background:var(--ink);color:#fff;box-shadow:0 4px 0 #17113f}
.pad svg{width:26px;height:26px}
.pcard{background:#fff;border-radius:26px;padding:16px;box-shadow:0 4px 0 var(--line);display:flex;flex-direction:column;gap:12px}
.pcard .who{display:flex;align-items:center;gap:12px}
.pcard .who .av{width:56px;height:56px}
.pill{display:inline-block;border-radius:999px;padding:1px 12px;font-size:14px;font-weight:700;background:var(--lav);color:var(--purpled)}
.lbl{font-size:14px;font-weight:800;color:var(--ink2);margin-bottom:4px}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips span{background:var(--bg);border-radius:12px;padding:4px 10px;font-size:15px;font-weight:700}
.att{display:flex;gap:6px;flex-wrap:wrap}
.att span{min-width:50px;border-radius:12px;padding:3px 6px;text-align:center;font-size:13.5px;font-weight:800}
.att .y{background:#d9fbef;color:#00865f}
.att .n{background:#fde4ef;color:var(--bad)}
.stat{display:flex;gap:10px}
.stat div{flex:1;background:var(--bg);border-radius:16px;padding:8px 10px;text-align:center}
.stat b{display:block;font-size:24px;line-height:1.2}
.stat span{font-size:13px;font-weight:700;color:var(--ink2)}
.acts{background:#fff;border-radius:26px;box-shadow:0 4px 0 var(--line);overflow:hidden}
.act{display:flex;align-items:center;gap:12px;width:100%;border:0;background:none;padding:14px 16px;font-size:17px;font-weight:700;text-align:start;text-decoration:none;color:var(--ink)}
.act+.act{border-top:1.5px solid var(--bg)}
.act .ic{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;flex:none}
.act .ic svg{width:22px;height:22px}
.act .chev{margin-inline-start:auto;width:18px;height:18px;opacity:.4}
.act small{display:block;font-size:13.5px;color:var(--ink2);font-weight:600}
.signed{text-align:center;font-size:14.5px;color:var(--ink2);font-weight:600}

/* ---------- loading / empty ---------- */
#vLoad .sky{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:calc(var(--top) + 20px) 24px calc(var(--bottom) + 140px);text-align:center}
.loadlogo{position:relative;z-index:2;width:96px;height:96px;border-radius:30px;background:#fff;display:grid;place-items:center;box-shadow:0 8px 0 rgba(41,33,100,.1);animation:bob 1.6s ease-in-out infinite}
.loadlogo img{width:62px}
.dots{position:relative;z-index:2;display:flex;gap:8px}
.dots i{width:12px;height:12px;border-radius:50%;background:#fff;animation:dot 1s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{50%{transform:translateY(-8px);opacity:.6}}
#tMine .signcard{position:relative;z-index:2;background:#fff;border-radius:28px;padding:20px;display:flex;flex-direction:column;gap:12px;color:var(--ink);box-shadow:0 10px 30px rgba(41,33,100,.1)}
#tMine img.k{position:relative;z-index:2;height:170px}

/* ---------- confetti ---------- */
.confetti{position:fixed;inset:0;pointer-events:none;z-index:50;overflow:hidden}
.confetti i{position:absolute;top:-30px;width:12px;height:16px;border-radius:4px;animation:fall linear forwards}
.confetti i.s{width:22px;height:22px;border-radius:0;background:url(/assets/images/app/star_badge.webp) center/contain no-repeat!important}
@keyframes fall{to{transform:translate(var(--dx),110vh) rotate(var(--r))}}
.toast{position:fixed;left:50%;bottom:calc(var(--bottom) + 24px);transform:translateX(-50%);background:var(--ink);color:#fff;font-weight:800;border-radius:999px;padding:10px 20px;z-index:60;box-shadow:0 8px 24px rgba(0,0,0,.2);animation:in .3s;white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .sky .cloud{animation:none}
}
@media (min-width:600px){.wrap,.panel,.pick,.parents{max-width:560px;margin-left:auto;margin-right:auto;width:100%}}

/* ================= v2: tabs, free home, lessons, shop, join (22 Nov 2026) ================= */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:25;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-radius:26px 26px 0 0;box-shadow:0 -6px 26px rgba(41,33,100,.10);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding:8px 4px calc(var(--bottom) + 8px)}
.tabbar button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12.5px;font-weight:800;color:#8d88b5;padding:2px 0}
.tabbar .ti{width:44px;height:34px;border-radius:14px;display:grid;place-items:center;transition:background .2s,transform .2s}
.tabbar svg{width:24px;height:24px}
.tabbar button[aria-selected="true"]{color:var(--ink)}
.tabbar button[aria-selected="true"] .ti{background:var(--mint);animation:tabpop .35s}
@keyframes tabpop{40%{transform:scale(1.15) translateY(-2px)}}
.tabbar .av{width:30px;height:30px}

.thead{position:relative;overflow:hidden;padding:calc(var(--top) + 18px) 18px 26px;border-radius:0 0 34px 34px;color:#fff}
.thead h1{font-size:30px;position:relative;z-index:2}
.thead p{position:relative;z-index:2;font-weight:700;opacity:.92;font-size:16.5px;max-width:70%}
.thead img.art{position:absolute;bottom:-8px;left:10px;height:132px;z-index:1}
.thead.blue{background:linear-gradient(160deg,#5fb8ff,#3b8ee6)}
.thead.pur{background:linear-gradient(160deg,#a596ff,#6d5ae6)}
.thead.mint{background:linear-gradient(160deg,#2ff0bf,#00b98c);color:var(--ink)}
.thead.ink{background:linear-gradient(160deg,#3e33a0,#1d1650)}
.tbody{padding:18px 16px 10px;display:flex;flex-direction:column;gap:22px}

/* free home */
#tHome .sky{min-height:calc(var(--top) + 300px);padding:calc(var(--top) + 14px) 18px 0;flex:none}
#tHome .logo{position:relative;z-index:2;display:block;background:#fff;border-radius:999px;padding:7px 16px;height:48px;box-shadow:0 5px 0 rgba(41,33,100,.1)}
#tHome .hi{position:relative;z-index:2;margin-top:16px;max-width:60%}
#tHome .hi h1{font-size:28px}
#tHome .hi p{font-weight:700;font-size:16.5px;opacity:.85;margin-top:2px}
#tHome .duo{position:absolute;bottom:40px;left:6px;display:flex;align-items:flex-end;z-index:1}
#tHome .duo img{height:168px}
#tHome .duo img+img{margin-right:-24px;animation-delay:-1.6s}
#tHome .bush{position:absolute;bottom:40px;right:-14px;width:90px;z-index:1}
.minicls{display:flex;align-items:center;gap:12px;border:0;width:100%;text-align:start;background:#fff;border-radius:24px;padding:12px 14px;box-shadow:0 5px 0 var(--line);margin-top:-52px;position:relative;z-index:4}
.minicls .av{width:54px;height:54px}
.minicls b{display:block;font-size:18px}
.minicls span{font-size:14.5px;color:var(--purpled);font-weight:700}
.minicls .go{margin-right:auto;background:var(--mint);border-radius:14px;padding:6px 12px;font-weight:800;box-shadow:0 3px 0 var(--mintd);font-size:15px;flex:none}
.minicls.live .go{background:var(--ink);color:#fff;box-shadow:0 3px 0 #17113f;animation:pulse 1.6s infinite}
.rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:4px 16px 10px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.vcard{flex:none;width:168px;scroll-snap-align:start;border:0;padding:0;background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 4px 0 var(--line);text-align:start}
.vcard:active{transform:translateY(3px)}
.vthumb{position:relative;aspect-ratio:4/3;display:grid;place-items:center;overflow:hidden}
.vthumb img{height:92%;width:auto;filter:drop-shadow(0 6px 10px rgba(41,33,100,.18));transform:rotate(-4deg)}
.vthumb .pl{position:absolute;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.95);display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.15);bottom:8px;right:8px}
.vthumb .pl svg{width:18px;height:18px;margin-right:-3px}
.vthumb .lock{position:absolute;top:8px;right:8px;background:var(--ink);color:#fff;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:800}
.vthumb .mins{position:absolute;bottom:10px;left:10px;background:rgba(41,33,100,.75);color:#fff;border-radius:8px;padding:0 7px;font-size:12px;font-weight:700}
.vcard p{padding:8px 12px 10px;font-weight:800;font-size:15.5px;line-height:1.3}
.tint0{background:#e1f3ff}.tint1{background:#ffe6f2}.tint2{background:#e3fbf1}.tint3{background:#efeaff}.tint4{background:#ffece6}
.banner{position:relative;overflow:hidden;border:0;width:100%;text-align:start;border-radius:28px;padding:20px 18px;min-height:150px;color:#fff;
  background:linear-gradient(160deg,#3e33a0,#1d1650);box-shadow:0 6px 0 #120d38}
.banner:active{transform:translateY(4px);box-shadow:0 2px 0 #120d38}
.banner b{display:block;font-size:24px;position:relative;z-index:2}
.banner span{display:block;font-size:15.5px;font-weight:600;opacity:.9;max-width:60%;position:relative;z-index:2}
.banner i{display:inline-block;margin-top:12px;background:var(--mint);color:var(--ink);font-style:normal;font-weight:800;border-radius:14px;padding:5px 14px;position:relative;z-index:2}
.banner img{position:absolute;left:8px;bottom:-10px;height:150px}
.banner .st{position:absolute;inset:0;opacity:.5;background:radial-gradient(2px 2px at 20% 30%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 40% 70%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 70% 20%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 85% 60%,#fff 50%,transparent 51%)}
.more{border:0;background:none;color:var(--purpled);font-weight:800;font-size:15px}

/* lessons */
.chips2{display:flex;gap:8px;overflow-x:auto;margin:0 -16px;padding:2px 16px 6px;scrollbar-width:none}
.chips2::-webkit-scrollbar{display:none}
.chips2 button{flex:none;border:0;background:#fff;border-radius:999px;padding:7px 16px;font-weight:800;font-size:15.5px;box-shadow:0 3px 0 var(--line);color:var(--ink)}
.chips2 button[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:0 3px 0 #17113f}
.vgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.vgrid .vcard{width:auto}
.lockcard{display:flex;align-items:center;gap:12px;border:0;width:100%;text-align:start;background:#fff;border-radius:24px;padding:14px;box-shadow:0 4px 0 var(--line)}
.lockcard img{height:80px;flex:none;margin:-10px 0}
.lockcard b{display:block;font-size:17px}
.lockcard span{color:var(--ink2);font-size:14.5px;font-weight:600}

/* shop */
.packs{display:flex;flex-direction:column;gap:14px}
.pack{position:relative;overflow:hidden;border:0;width:100%;text-align:start;border-radius:28px;padding:16px;background:#fff;box-shadow:0 5px 0 var(--line);display:flex;align-items:center;gap:12px}
.pack:active{transform:translateY(4px)}
.pack.best{background:linear-gradient(160deg,#3e33a0,#1d1650);color:#fff;box-shadow:0 6px 0 #120d38}
.pack .ribbon{position:absolute;top:12px;left:-30px;transform:rotate(-38deg);background:var(--mint);color:var(--ink);font-weight:800;font-size:12.5px;padding:2px 34px}
.fan{position:relative;width:118px;height:104px;flex:none}
.fan img{position:absolute;bottom:0;width:62px;border-radius:6px;box-shadow:0 6px 14px rgba(0,0,0,.22)}
.fan img:nth-child(1){left:2px;transform:rotate(-14deg)}
.fan img:nth-child(2){left:28px;transform:rotate(-4deg);z-index:2}
.fan img:nth-child(3){left:52px;transform:rotate(8deg);z-index:3}
.pack .txt{flex:1;min-width:0}
.pack b{display:block;font-size:20px;line-height:1.25}
.pack small{display:block;font-size:14px;font-weight:600;opacity:.8}
.price{display:inline-flex;align-items:center;gap:4px;margin-top:8px;background:var(--mint);color:var(--ink);font-weight:800;border-radius:14px;padding:3px 12px;font-size:17px;box-shadow:0 3px 0 var(--mintd)}
.price.own{background:var(--lav);color:var(--purpled);box-shadow:none}
.bgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bk{border:0;padding:12px 12px 14px;background:#fff;border-radius:24px;box-shadow:0 4px 0 var(--line);text-align:start;display:flex;flex-direction:column;gap:6px}
.bk:active{transform:translateY(3px)}
.bk .cov{aspect-ratio:3/4;border-radius:14px;display:grid;place-items:center;overflow:hidden}
.bk .cov img{width:76%;border-radius:6px;box-shadow:0 8px 16px rgba(41,33,100,.22);transform:rotate(-3deg)}
.bk b{font-size:16.5px;line-height:1.25}
.bk .price{align-self:flex-start;margin-top:2px}
.pp-hero{position:relative;padding:calc(var(--top) + 64px) 20px 26px;display:flex;justify-content:center;border-radius:0 0 34px 34px}
.pp-hero img{width:52%;max-width:240px;border-radius:10px;box-shadow:0 18px 36px rgba(41,33,100,.28);transform:rotate(-3deg)}
.pp-hero .fan{width:210px;height:180px}
.pp-hero .fan img{width:108px}
.pp-hero .fan img:nth-child(2){left:48px}.pp-hero .fan img:nth-child(3){left:94px}
.pp-body{padding:18px 18px calc(var(--bottom) + 120px);display:flex;flex-direction:column;gap:14px}
.pages{display:flex;gap:10px;overflow-x:auto;margin:0 -18px;padding:2px 18px 8px;scrollbar-width:none}
.pages img{height:170px;border-radius:12px;box-shadow:0 4px 0 var(--line);flex:none;background:#fff}
.incl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.incl span{display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:9px 10px;font-weight:700;font-size:14.5px;box-shadow:0 3px 0 var(--line)}
.incl i{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;font-style:normal}
.incl svg{width:18px;height:18px}
.buybar{position:fixed;left:0;right:0;bottom:0;z-index:5;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:12px 18px calc(var(--bottom) + 14px);box-shadow:0 -6px 24px rgba(41,33,100,.1);display:flex;align-items:center;gap:14px}
.buybar .pr{flex:none;text-align:center}
.buybar .pr b{display:block;font-size:26px;line-height:1.1}
.buybar .pr small{color:var(--ink2);font-weight:700;font-size:12.5px}
.buybar .chunky{flex:1}
.closeb{position:absolute;top:calc(var(--top) + 12px);right:14px;z-index:5;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;box-shadow:0 3px 0 rgba(41,33,100,.15)}
.closeb svg{width:20px;height:20px}
.files{display:flex;flex-direction:column;gap:10px}
.file{display:flex;align-items:center;gap:12px;border:0;width:100%;text-align:start;background:#fff;border-radius:20px;padding:12px 14px;box-shadow:0 4px 0 var(--line);font-weight:800;font-size:16.5px;color:var(--ink)}
.file:active{transform:translateY(3px)}
.file i{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none}
.file svg{width:22px;height:22px}
.file .chev{margin-inline-start:auto;width:18px;height:18px;opacity:.4}

/* join */
.prog{position:relative;overflow:hidden;border:0;width:100%;text-align:start;border-radius:30px;padding:20px 18px 18px;min-height:200px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end}
.prog:active{transform:translateY(4px)}
.prog.mint{background:linear-gradient(160deg,#2ff0bf,#00a77e);box-shadow:0 6px 0 #008a68;color:var(--ink)}
.prog.ink{background:linear-gradient(160deg,#4a3fb8,#1d1650);box-shadow:0 6px 0 #120d38}
.prog img{position:absolute;left:6px;bottom:-12px;height:190px}
.prog .ages{position:absolute;top:16px;right:16px;background:rgba(255,255,255,.9);color:var(--ink);border-radius:999px;padding:1px 12px;font-weight:800;font-size:14px}
.prog b{font-size:30px;line-height:1.1;position:relative;z-index:2}
.prog span{font-size:15.5px;font-weight:700;opacity:.92;max-width:58%;position:relative;z-index:2}
.prog .price{position:relative;z-index:2;align-self:flex-start;background:#fff}
.points{display:flex;flex-direction:column;gap:9px;margin:0;padding:0;list-style:none}
.points li{display:flex;gap:10px;align-items:flex-start;font-weight:700;font-size:16.5px;background:#fff;border-radius:18px;padding:10px 12px;box-shadow:0 3px 0 var(--line)}
.points li::before{content:"";flex:none;width:26px;height:26px;border-radius:50%;background:var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23292164' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.form{display:flex;flex-direction:column;gap:10px;background:#fff;border-radius:24px;padding:16px;box-shadow:0 4px 0 var(--line)}
.form .field{direction:rtl;text-align:start}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.seg button{border:2px solid var(--line);background:var(--bg);border-radius:16px;padding:10px 6px;font-weight:800;font-size:15px;color:var(--ink)}
.seg button[aria-pressed="true"]{border-color:var(--purple);background:#fff;box-shadow:0 0 0 3px rgba(139,124,246,.18)}
.seg button small{display:block;font-weight:700;color:var(--ink2);font-size:13px}

/* player */
#pPlayer{background:#0d0a26;color:#fff;justify-content:center}
#pPlayer video{width:100%;max-height:78vh;background:#000}
#pPlayer h2{padding:0 20px 14px;text-align:center}
#pPlayer .closeb{background:rgba(255,255,255,.18);color:#fff}

/* done */
.done{align-items:center;justify-content:center;text-align:center;gap:14px;padding:calc(var(--top) + 30px) 24px calc(var(--bottom) + 30px);background:linear-gradient(180deg,#dcfff4,var(--bg) 60%)}
.done img{height:220px}
.done .chunky{max-width:420px}

/* mine extras */
.recs{display:flex;flex-direction:column;gap:10px}
.rec{display:flex;align-items:center;gap:12px;border:0;width:100%;text-align:start;background:#fff;border-radius:20px;padding:10px 12px;box-shadow:0 4px 0 var(--line)}
.rec:active{transform:translateY(3px)}
.rec .pl{width:52px;height:52px;border-radius:16px;background:linear-gradient(160deg,#a596ff,#7b68f0);display:grid;place-items:center;flex:none;box-shadow:0 3px 0 var(--purpled)}
.rec .pl svg{width:22px;height:22px;margin-right:-3px}
.rec b{display:block;font-size:16.5px}
.rec span{font-size:14px;color:var(--ink2);font-weight:600}
.mybk{display:flex;gap:12px;overflow-x:auto;margin:0 -16px;padding:4px 16px 10px;scrollbar-width:none}
.mybk button{flex:none;width:118px;border:0;background:none;padding:0;text-align:center;font-weight:800;font-size:14px;color:var(--ink)}
.mybk img{width:100%;border-radius:10px;box-shadow:0 8px 16px rgba(41,33,100,.2);margin-bottom:6px}
.empty-note{background:#fff;border-radius:20px;padding:14px 16px;color:var(--ink2);font-weight:600;font-size:15.5px;box-shadow:0 3px 0 var(--line)}
#tMine .signhero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:16px;padding:calc(var(--top) + 30px) 22px 0;text-align:center;min-height:calc(var(--top) + 360px)}
.xbtn{position:absolute;top:calc(var(--top) + 12px);left:14px;z-index:5;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.9);display:grid;place-items:center;box-shadow:0 3px 0 rgba(41,33,100,.12)}
.xbtn svg{width:20px;height:20px}

/* lesson thumbnails (real frames) + course header */
.vthumb.ph{aspect-ratio:16/10;background:#dfe9ff}
.vthumb.ph img{width:100%;height:100%;object-fit:cover;transform:none;filter:none}
.vthumb .freeb,.vthumb .seen{position:absolute;top:8px;left:8px;border-radius:10px;padding:1px 8px;font-size:12px;font-weight:800}
.vthumb .freeb{background:var(--mint);color:var(--ink)}
.vthumb .seen{background:#fff;color:#00865f}
.vcard p small{display:block;font-size:12.5px;color:var(--purpled);font-weight:800}
.course{display:flex;align-items:center;gap:10px;background:linear-gradient(160deg,#e1f3ff,#efeaff);border-radius:26px;padding:16px;box-shadow:0 4px 0 #d6e4f7}
.course>div{flex:1;min-width:0}
.course h2{font-size:22px}
.course p{color:var(--ink2);font-weight:600;font-size:14.5px}
.course small{display:block;margin-top:6px;font-weight:800;color:var(--purpled);font-size:13.5px}
.course img{height:110px;flex:none;margin:-10px 0 -16px}
#ppPreview{font-size:18px}
#ppPreview svg{width:20px;height:20px}

.rec .chev{margin-inline-start:auto;width:18px;height:18px;opacity:.4;flex:none}
.rec div{flex:1;min-width:0}

/* ---- QA pass 22 Nov ---- */
.av img{position:static;width:100%;height:100%;object-fit:cover;left:auto;top:auto;display:block}
.av.letter{display:grid;place-items:center;background:linear-gradient(160deg,#a596ff,#6d5ae6);color:#fff;font-weight:800;font-size:22px}
.kidcard .av.letter{font-size:32px}
.vthumb.bookt{aspect-ratio:1}
.vthumb.bookt img{width:56%;height:auto;max-height:none}
.thead{min-height:calc(var(--top) + 150px)}
.thead img.art{height:118px;bottom:-4px}
#tMine .auth .panel{margin-top:-30px}
#mineOut{min-height:100vh;display:flex;flex-direction:column}
#mineOut .panel{flex:1;padding-bottom:calc(var(--bottom) + 110px)}
/* keyboard open: shrink the sign-in pictures so the field + button stay above the keyboard */
body.kb .auth .sky{min-height:calc(var(--top) + 64px)!important;height:calc(var(--top) + 64px);transition:min-height .2s,height .2s}
body.kb .auth .sky .duo,body.kb .auth .sky .bush,body.kb .auth .sky .fly,body.kb .auth .logo,body.kb .auth .peek,body.kb .auth .sky .sun,body.kb .auth .sky .moon,body.kb .auth .sky .hill{display:none}
body.kb .auth .panel{margin-top:4px;gap:10px;padding-top:18px}
body.kb .auth .panel .muted,body.kb .auth .note{font-size:14.5px}
/* play button: centred on the picture, see-through (owner 22 Nov) */
.vthumb .pl{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:52px;height:52px;background:rgba(255,255,255,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:0 4px 14px rgba(0,0,0,.18)}
.vthumb .pl svg{width:22px;height:22px;margin-right:-3px;opacity:.9}
.vcard:active .vthumb .pl{background:rgba(255,255,255,.8)}

/* status bar: a soft band appears behind the time once the page scrolls */
body::before{content:"";position:fixed;top:0;left:0;right:0;height:var(--top);z-index:24;background:rgba(247,245,255,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .2s;pointer-events:none}
body.scrolled::before{opacity:1}
/* lesson / booklet cards line up whatever the title length */
.vcard p{min-height:78px}
.rail .vcard{display:flex;flex-direction:column}

ol.steps li::before{content:counter(s,arabic-indic)}
.loadlogo img{width:76px}

.kidcard.cur{box-shadow:0 0 0 3px var(--mint),0 5px 0 var(--mintd)}
.kidcard.cur::after{content:"الآن";background:var(--mint);color:var(--ink);font-weight:800;font-size:13px;border-radius:999px;padding:1px 10px;margin-right:auto}
.kidcard.cur svg{display:none}
#vBuddy .closeb{top:calc(var(--top) + 12px)}
#vBuddy h1{margin-top:28px}

/* ================= family setup (one question per screen) ================= */
.su{background:#fff;padding:calc(var(--top) + 14px) 18px calc(var(--bottom) + 18px);gap:6px}
.su-top{display:flex;align-items:center;gap:12px}
.su-back{border:0;background:none;color:#b8b3d9;width:36px;height:36px;display:grid;place-items:center;padding:0}
.su-back svg{width:24px;height:24px}
.su-back[disabled]{visibility:hidden}
.su-prog{flex:1;height:14px;border-radius:99px;background:var(--lav);overflow:hidden}
.su-prog i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,#00f3b9,#2fe0c0);transition:width .4s cubic-bezier(.3,1.3,.5,1);box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
.su-talk{display:flex;align-items:flex-end;gap:10px;margin-top:14px}
.su-talk img{height:120px;flex:none;animation:bob 3s ease-in-out infinite}
.su-bub{position:relative;flex:1;border:2px solid var(--line);border-radius:20px;padding:12px 14px;font-size:20px;font-weight:800;line-height:1.35;margin-bottom:18px}
.su-bub::after{content:"";position:absolute;right:-11px;bottom:18px;width:18px;height:18px;background:#fff;border-right:2px solid var(--line);border-bottom:2px solid var(--line);transform:rotate(-45deg)}
.su-body{flex:1;display:flex;flex-direction:column;gap:10px;padding-top:6px;animation:in .3s ease both}
.su-opt{display:flex;align-items:center;gap:12px;width:100%;border:2px solid var(--line);background:#fff;border-radius:18px;padding:12px 14px;font:800 18px "Baloo Bhaijaan 2",sans-serif;color:var(--ink);text-align:start;box-shadow:0 4px 0 var(--line);transition:transform .08s}
.su-opt:active{transform:translateY(3px);box-shadow:0 1px 0 var(--line)}
.su-opt[aria-pressed="true"]{border-color:#4fb3ff;background:#e6f4ff;color:#1a7cc2;box-shadow:0 4px 0 #9fd3ff}
.su-opt .ic{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none;background:var(--lav);overflow:hidden}
.su-opt .ic img{width:100%;height:100%;object-fit:cover}
.su-opt small{display:block;font-size:14px;font-weight:700;color:var(--ink2)}
.su-opt.done{border-color:var(--mint);background:#e9fff8;box-shadow:0 4px 0 #a8f0dc}
.su-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.su-num{height:58px;border:2px solid var(--line);background:#fff;border-radius:16px;box-shadow:0 4px 0 var(--line);font:800 24px/1 Outfit,system-ui,sans-serif;color:var(--ink);display:grid;place-items:center;padding:0;font-variant-numeric:tabular-nums}
.su-num[aria-pressed="true"]{border-color:#4fb3ff;background:#e6f4ff;color:#1a7cc2;box-shadow:0 4px 0 #9fd3ff}
.su-num.wide{grid-column:span 2;font-size:19px}
.su-in{width:100%;border:2px solid var(--line);border-radius:16px;padding:14px;font:700 20px "Baloo Bhaijaan 2",sans-serif;color:var(--ink);background:var(--bg);text-align:start}
.su-in:focus{outline:0;border-color:var(--purple);background:#fff}
.su-lbl{font-weight:800;color:var(--ink2);font-size:15px;margin-top:4px}
.su-faces{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.su-face{aspect-ratio:1;border-radius:50%;border:4px solid #fff;background:linear-gradient(180deg,#e9e4ff,#d4ccff);padding:0;overflow:hidden;box-shadow:0 4px 0 var(--line)}
.su-face img{width:100%;height:100%;object-fit:cover}
.su-face[aria-pressed="true"]{border-color:var(--purple);box-shadow:0 0 0 3px rgba(139,124,246,.3),0 4px 0 var(--purpled);transform:translateY(-2px)}
.su-foot{padding-top:10px}
.su-foot .chunky[disabled]{background:var(--lav);color:#b8b3d9;box-shadow:0 5px 0 var(--line)}
.su-done{text-align:center;align-items:center;justify-content:center}
.su-done img.big{height:150px}
.su-done h2{font-size:30px}
.su-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.su-row .av{width:70px;height:70px;border:4px solid #fff;box-shadow:0 4px 0 var(--line)}

/* ================= teen look (11-16) ================= */
body.teen #tMine .sky{background:linear-gradient(180deg,#1d1650,#3e33a0)!important;color:#fff}
body.teen #tMine .sky .cloud,body.teen #tMine .sky .sun,body.teen #tMine .sky .moon,body.teen #tMine .hero-tree,body.teen #tMine .hero-fly{display:none!important}
body.teen #tMine .sky .twinkle{display:block!important;opacity:.6}
body.teen #tMine .hill .h1{fill:#2d2580}body.teen #tMine .hill .h2{fill:#241d6b}
body.teen #tMine .hero-kid{height:150px;opacity:.95}
body.teen #tMine .hello h1{font-size:26px}
body.teen #tMine .wrap{background:#14103a;color:#fff}
body.teen #tMine .next,body.teen #tMine .remind,body.teen #tMine .rec,body.teen #tMine .empty-note{background:#1f1a52;color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
body.teen #tMine .next .nx-when{color:#a596ff}body.teen #tMine .next .nx-teacher,body.teen #tMine .rec span,body.teen #tMine .sec-h small,body.teen #tMine .week-note{color:#b9b3e8}
body.teen #tMine .tag{background:rgba(255,255,255,.1);color:#cfc8ff}
body.teen #tMine .nx-art{display:none}
body.teen #tMine .day{background:#1f1a52;color:#fff;box-shadow:none}
body.teen #tMine .day span{color:#b9b3e8}
body.teen #tMine .day.cls{background:var(--purple)}
body.teen #tMine .tree{background:#1f1a52;color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
body.teen #tMine .tree .kicker{color:var(--mint)}body.teen #tMine .tree p.l{color:#b9b3e8}
body.teen #tMine .tree-art::before{background:#2d2580}
body.teen #tMine .foot button{background:#1f1a52;color:#cfc8ff;box-shadow:none}
body.teen #tMine .chunky.white{background:#2d2580;color:#fff;box-shadow:0 5px 0 #120d38}
body.teen .tabbar{background:rgba(20,16,58,.96)}
body.teen .tabbar button{color:#8d88c5}body.teen .tabbar button[aria-selected="true"]{color:#fff}
body.teen #tMine .me,body.teen #tMine .starpill,body.teen #tMine .lockbtn{background:rgba(255,255,255,.12);color:#fff;box-shadow:none}
body.teen #tMine .lockbtn svg rect{fill:#fff}body.teen #tMine .lockbtn svg path{fill:none;stroke:#fff}

/* ================= points: prayers, tree journey, stage-up, leaderboard (22 Nov) ================= */
.starpill{cursor:pointer;border:0;font-family:inherit;line-height:1.2}
.praybox{background:#fff;border-radius:26px;padding:14px;box-shadow:0 5px 0 var(--line)}
.praybox .sec-h{margin-bottom:8px}
.praybox .sec-h small{background:var(--lav);color:var(--purpled);border-radius:999px;padding:1px 10px;font-weight:800}
.prayrow{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}
.pb{border:0;border-radius:18px;padding:12px 2px 8px;color:#fff;font-family:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 5px 0 rgba(41,33,100,.18);position:relative;transition:transform .1s}
.pb:active{transform:translateY(4px);box-shadow:0 1px 0 rgba(41,33,100,.18)}
.pb b{font-size:15px;white-space:nowrap}.pb small{font-size:13px;font-weight:800;opacity:.95}
.pb.p1{background:linear-gradient(180deg,#8f7cf0,#f6a6c4)}.pb.p2{background:linear-gradient(180deg,#3aa6f5,#8fd0ff)}.pb.p3{background:linear-gradient(180deg,#ff9d2e,#ffcf6e);color:#3b2a00}.pb.p4{background:linear-gradient(180deg,#ff6b7f,#ffaa8f)}.pb.p5{background:linear-gradient(180deg,#292164,#5047a8)}
.pb.on{filter:saturate(1.1);box-shadow:0 0 0 3px var(--mint),0 5px 0 var(--mintd)}
/* prayer times (23 Nov): before its time = soft + its time; time passed without a tick = faded */
.pb.soon{filter:saturate(.55) brightness(1.04);opacity:.78}.pb.soon:active,.pb.miss:active{transform:none}
.pb.miss{filter:grayscale(.85);opacity:.5}
.pb.open{animation:pbglow 2.4s ease-in-out infinite}
@keyframes pbglow{50%{box-shadow:0 0 0 4px rgba(255,255,255,.85),0 5px 0 rgba(41,33,100,.18)}}
@media (prefers-reduced-motion:reduce){.pb.open{animation:none}}
.pb.on::after{content:"✓";position:absolute;top:-8px;left:-6px;width:22px;height:22px;border-radius:50%;background:var(--mint);color:var(--ink);font-size:13px;line-height:22px;text-align:center;font-weight:800}
.praymsg{font-weight:800;margin-top:10px;font-size:16px}
.praynote{color:var(--ink2);font-size:13.5px;font-weight:600}
.plus{position:fixed;z-index:70;transform:translateX(-50%);font-weight:800;font-size:24px;color:#e8a900;text-shadow:0 2px 0 #fff;pointer-events:none;animation:plusup .9s ease-out forwards;font-family:Outfit,system-ui}
@keyframes plusup{to{transform:translate(-50%,-70px);opacity:0}}
.boardc{display:flex;align-items:center;gap:12px;width:100%;border:0;text-align:start;border-radius:26px;padding:12px 14px;background:linear-gradient(160deg,#f3f0ff,#e2dbff);box-shadow:0 5px 0 #c9bdf5;color:var(--ink)}
.boardc img{height:62px}.boardc div{flex:1}.boardc b{display:block;font-size:19px}.boardc small{color:#5b4bc4;font-weight:700}
.boardc .go{background:var(--ink);color:#fff;border-radius:14px;padding:5px 14px;font-weight:800}
.stagep{align-items:center;justify-content:center;text-align:center;gap:8px;padding:calc(var(--top) + 30px) 24px calc(var(--bottom) + 30px);background:radial-gradient(70% 50% at 50% 40%,#fff6c9,#dcfff4 60%,#f7f5ff)}

.stagep h2{font-size:28px;color:#0a8f6c}.st-k{font-weight:800;color:var(--purpled)}
.stagep .chunky{max-width:380px;margin-top:10px}
.treep{padding:calc(var(--top) + 64px) 18px calc(var(--bottom) + 30px);gap:12px;background:linear-gradient(180deg,#dcfff4,var(--bg) 40%)}
.tp-head{text-align:center}.tp-head p{font-weight:800;color:var(--purpled);font-size:20px}
.tp-list{display:flex;flex-direction:column;gap:10px}
.tp{display:flex;align-items:center;gap:12px;background:#fff;border-radius:22px;padding:10px 14px;box-shadow:0 4px 0 var(--line)}
.tp img{height:64px;width:64px;object-fit:contain}.tp b{display:block;font-size:18px}.tp small{color:var(--ink2);font-weight:700}
.tp.tp-next{background:#f6f5fb}.tp.tp-next b,.tp.tp-next small{color:#a29ec0}.tp.tp-next img{filter:grayscale(.8);opacity:.6}
.tp.tp-now{box-shadow:0 0 0 3px var(--mint),0 5px 0 var(--mintd)}
.tp.tp-past small{color:#00865f}
.boardp{padding:calc(var(--top) + 64px) 16px calc(var(--bottom) + 30px);gap:12px;background:linear-gradient(180deg,#ece7ff,var(--bg) 35%)}
.lb-head{text-align:center}.lb-head img{height:90px}
.lbtabs{margin:0}
.lg{display:flex;align-items:center;gap:12px;background:#fff;border-radius:22px;padding:12px 14px;box-shadow:0 4px 0 var(--line);border-right:6px solid var(--g)}
.lg .gem{width:44px;height:44px;flex:none;background:var(--g);transform:rotate(45deg);border-radius:10px;box-shadow:inset -6px -6px 0 rgba(0,0,0,.15),inset 5px 5px 0 rgba(255,255,255,.35)}
.lg b{display:block;font-size:19px}.lg small{color:var(--ink2);font-weight:700}
ol.lb{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
ol.lb li{display:flex;align-items:center;gap:10px;background:#fff;border-radius:18px;padding:7px 12px;box-shadow:0 3px 0 var(--line)}
ol.lb li .rk{width:28px;text-align:center;font-weight:800;font-size:17px}
ol.lb li .av{width:40px;height:40px}
ol.lb li b{flex:1;font-size:16.5px}
ol.lb li .tr img{height:30px}
ol.lb li i{font-style:normal;font-weight:800;color:var(--purpled);font-family:Outfit,system-ui}
ol.lb li.me{background:var(--mint)}
ol.lb li.up{border-right:4px solid #00c495}ol.lb li.down{border-right:4px solid #ff7d8e}
body.teen #tMine .praybox,body.teen #tMine .boardc{background:#1f1a52;color:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.1)}
body.teen #tMine .praynote,body.teen #tMine .boardc small{color:#b9b3e8}

.pb small{direction:ltr;unicode-bidi:isolate}
.plus{direction:ltr}

.boardp>*,.treep>*,.stagep>*{flex:none}
.lbtabs{padding-bottom:8px}

/* ---- tree leaves follow the last 7 days of prayers ---- */
.lf0{filter:none}
.lf1{filter:sepia(.3) saturate(1.15) hue-rotate(-14deg)}
.lf2{filter:sepia(.6) saturate(1.5) hue-rotate(-28deg) brightness(1.02)}
.lf3{filter:sepia(.85) saturate(1.7) hue-rotate(-42deg) brightness(.93)}
.lf4{filter:grayscale(.9) sepia(.45) brightness(.78) contrast(1.15)}
.tree-art,.tt-art{position:relative}
.falls{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.falls i{position:absolute;top:18%;width:9px;height:6px;border-radius:9px 0;opacity:0;animation:leaffall 4.5s ease-in infinite}
@keyframes leaffall{0%{opacity:0;transform:translate(0,0) rotate(0)}10%{opacity:1}100%{opacity:0;transform:translate(-18px,90px) rotate(260deg)}}
.leafpill{display:inline-block;margin-top:4px;border-radius:999px;padding:0 10px;font-size:13px;font-weight:800;filter:none!important}
.leafpill.lf0{background:#dcfff4;color:#00865f}.leafpill.lf1{background:#fff6d6;color:#9a7400}.leafpill.lf2{background:#ffecd2;color:#b5650d}.leafpill.lf3{background:#ffe0dc;color:#c2412d}.leafpill.lf4{background:#ece9e4;color:#6b6257}
.tt-art{width:200px;height:200px;display:flex;align-items:flex-end;justify-content:center}
.tt-art img{max-height:190px;max-width:190px;object-fit:contain}
.tt-say{font-size:20px;font-weight:800;line-height:1.45;background:var(--lav);border-radius:20px;padding:12px 16px;position:relative}
.tt-say::before{content:"";position:absolute;top:-10px;left:50%;margin-left:-10px;border:10px solid transparent;border-bottom-color:var(--lav);border-top:0}
.tt-water{display:flex;align-items:center;gap:8px;width:100%}
.tt-water .bar{flex:1;margin:0;height:14px}
.tt-water .bar i{filter:none!important;background:linear-gradient(90deg,#4fb3ff,#00f3b9)}
.tt-water .bar i.lf1,.tt-water .bar i.lf2{background:linear-gradient(90deg,#ffb347,#ffd23f)}
.tt-water .bar i.lf3,.tt-water .bar i.lf4{background:linear-gradient(90deg,#ff7a59,#ffb199)}
.tt-water b{font-family:Outfit,system-ui;min-width:44px}
.exc{display:flex;flex-direction:column;align-items:flex-start;gap:0;border:2px solid var(--line);background:var(--bg);border-radius:16px;padding:8px 12px;font:800 15px "Baloo Bhaijaan 2",sans-serif;color:var(--ink);text-align:start}
.exc small{font-weight:600;color:var(--ink2);font-size:12.5px}
.exc[aria-pressed="true"]{border-color:var(--purple);background:#efeaff}

/* ---- tree stage-up: old tree → new tree with rays, sparkles, award ---- */
.stagep{overflow:hidden}
.su-stage{position:relative;width:260px;height:260px;display:flex;align-items:flex-end;justify-content:center;margin-top:6px}
.su-stage img{position:absolute;bottom:0;left:50%;width:240px;height:230px;object-fit:contain;object-position:50% 100%;transform:translateX(-50%);transform-origin:50% 100%}
.su-stage .t-new{opacity:0;transform:translateX(-50%) scale(.4)}
.stagep.go .t-old{animation:oldout 1.1s ease-in .3s forwards}
.stagep.go .t-new{animation:newin 1.1s cubic-bezier(.3,1.6,.5,1) 1.2s forwards}
@keyframes oldout{0%{filter:brightness(1)}50%{filter:brightness(2.2) drop-shadow(0 0 30px #fff6c9)}100%{opacity:0;transform:translateX(-50%) scale(.6);filter:brightness(3)}}
@keyframes newin{0%{opacity:0;transform:translateX(-50%) scale(.4)}60%{opacity:1}100%{opacity:1;transform:translateX(-50%) scale(1)}}
.rays{position:absolute;left:50%;top:50%;width:520px;height:520px;margin:-260px 0 0 -260px;border-radius:50%;opacity:0;
  background:repeating-conic-gradient(rgba(255,210,63,.35) 0 10deg,transparent 10deg 24deg);-webkit-mask:radial-gradient(circle,#000 30%,transparent 68%);mask:radial-gradient(circle,#000 30%,transparent 68%)}
.stagep.go .rays{animation:rays 1s ease 1.1s forwards,spin 14s linear 1.1s infinite}
@keyframes rays{to{opacity:1}}
.sparks i{position:absolute;left:50%;top:55%;width:18px;height:18px;opacity:0;background:url(/assets/images/app/star_badge.webp) center/contain no-repeat}
.stagep.go .sparks i{animation:spark 1.3s ease-out 1.15s forwards}
.sparks i:nth-child(1){--x:-120px;--y:-110px}.sparks i:nth-child(2){--x:120px;--y:-100px}.sparks i:nth-child(3){--x:-150px;--y:10px}.sparks i:nth-child(4){--x:150px;--y:20px}
.sparks i:nth-child(5){--x:-70px;--y:-160px}.sparks i:nth-child(6){--x:80px;--y:-170px}.sparks i:nth-child(7){--x:-110px;--y:90px}.sparks i:nth-child(8){--x:110px;--y:90px}
@keyframes spark{0%{opacity:1;transform:translate(0,0) scale(.3)}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1.4) rotate(180deg)}}
.su-h,.stagep h2,.award,.su-kid,#suOk{opacity:0}
.stagep.go .su-h{animation:pop .5s ease 2s forwards}
.stagep.go h2{animation:pop .5s ease 2.2s forwards}
.stagep.go .award{animation:pop .6s cubic-bezier(.3,1.6,.5,1) 2.6s forwards}
.stagep.go .su-kid{animation:pop .5s ease 2.4s forwards}
.stagep.go #suOk{animation:pop .4s ease 3s forwards}
@keyframes pop{0%{opacity:0;transform:translateY(14px) scale(.9)}100%{opacity:1;transform:none}}
.award{display:flex;align-items:center;gap:12px;background:#fff;border-radius:22px;padding:10px 16px;box-shadow:0 0 0 3px #ffd23f,0 6px 0 #e8a900;text-align:start}
.award img{height:54px}.award small{display:block;font-weight:800;color:#b07800;font-size:13px}.award b{font-size:18px}
.su-kid{position:absolute;left:4px;top:calc(var(--top) + 200px);height:100px;z-index:2}
@media (prefers-reduced-motion:reduce){.su-stage .t-old{display:none}.su-stage .t-new{opacity:1;transform:translateX(-50%)}.su-h,.stagep h2,.award,.su-kid,#suOk{opacity:1;transform:none}}

/* ---------- chats (v4, 22 Nov 2026): premium WhatsApp feel in Thabet colours ---------- */
.tabbar .ti{position:relative}
.tbadge{position:absolute;top:-2px;left:4px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#ff4d6d;color:#fff;font-size:11.5px;font-weight:800;font-style:normal;display:grid;place-items:center;line-height:1;box-shadow:0 0 0 2px #fff}
.chead{padding:calc(var(--top) + 20px) 20px 18px;background:linear-gradient(160deg,#3e33a0,#1d1650);color:#fff;border-radius:0 0 30px 30px}
.chead h1{font-size:30px}.chead p{opacity:.85;font-weight:700;font-size:15.5px}
.clist{padding:14px 14px 0;display:flex;flex-direction:column;gap:10px}
.cgrp{font-size:14px;font-weight:800;color:var(--ink2);margin:10px 6px 0;display:flex;align-items:center;gap:8px}
.cgrp .av{width:26px;height:26px}
.crow-i{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:#fff;border:0;border-radius:20px;padding:12px 14px;box-shadow:0 2px 0 var(--line),0 8px 20px rgba(41,33,100,.05);color:var(--ink);font:inherit}
.crow-i:active{transform:scale(.985)}
.crow-i .ic{flex:none;width:52px;height:52px;border-radius:17px;display:grid;place-items:center;overflow:hidden;position:relative}
.crow-i .ic img{width:100%;height:100%;object-fit:cover}
.crow-i .ic.comm{background:linear-gradient(150deg,#e9e5ff,#cfc6ff)}.crow-i .ic.comm img{width:30px;height:30px;object-fit:contain}
.crow-i .ic.help{background:linear-gradient(150deg,#d9fff3,#9ff5da)}.crow-i .ic.help svg{width:28px;height:28px;color:#00936f}
.crow-i .ic.cls{background:linear-gradient(150deg,#e1f3ff,#bfe2ff)}
.crow-i .ic .lk{position:absolute;bottom:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;display:grid;place-items:center}
.crow-i .ic .lk svg{width:11px;height:11px;color:var(--ink2)}
.crow-i .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.crow-i .t1{display:flex;align-items:baseline;gap:8px}
.crow-i .t1 b{flex:1;font-size:16.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow-i .t1 time{font-size:12.5px;color:#9a95c4;font-weight:700;flex:none}
.crow-i .t2{font-size:13.5px;font-weight:700;color:#7a74ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow-i .t3{display:flex;align-items:center;gap:8px}
.crow-i .t3 span{flex:1;font-size:14.5px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crow-i .t3 em{flex:none;font-style:normal;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--mint);color:var(--ink);font-size:12.5px;font-weight:800;display:grid;place-items:center}
.crow-i.unread .t1 time{color:#00a07a}
.crow-i.closed{opacity:.72;box-shadow:0 2px 0 var(--line)}
.cchips{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:none}
.cchips button{flex:none;border:0;border-radius:999px;padding:7px 14px;font:inherit;font-size:14.5px;font-weight:800;background:#fff;color:var(--ink2);box-shadow:0 2px 0 var(--line);display:flex;align-items:center;gap:6px}
.cchips button .av{width:22px;height:22px}
.cchips button[aria-pressed="true"]{background:var(--ink);color:#fff;box-shadow:none}
.cfold{border:0;background:none;font:inherit;font-weight:800;color:var(--ink2);font-size:14.5px;padding:10px 6px;display:flex;align-items:center;gap:6px}
.cfold svg{width:16px;height:16px;transition:transform .2s}.cfold[aria-expanded="true"] svg{transform:rotate(180deg)}
.cempty{background:#fff;border-radius:20px;padding:18px;text-align:center;color:var(--ink2);font-weight:700;font-size:15px}
.clock{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:30px 24px}
.clock img{height:130px}.clock b{font-size:21px}.clock span{color:var(--ink2);font-weight:700;margin-bottom:10px}

.view.chat{background:#f5f3fb;overflow:hidden}
.cbar{flex:none;display:flex;align-items:center;gap:10px;padding:calc(var(--top) + 8px) 10px 10px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 1px 0 rgba(41,33,100,.08);z-index:2}
.cback{border:0;background:none;color:var(--ink);width:44px;height:44px;display:grid;place-items:center;border-radius:50%}
.cback svg{width:20px;height:20px}
.cav{flex:none;width:42px;height:42px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(150deg,#e1f3ff,#bfe2ff)}
.cav img{width:100%;height:100%;object-fit:cover}.cav.logo{background:linear-gradient(150deg,#e9e5ff,#cfc6ff)}.cav.logo img{width:26px;height:26px;object-fit:contain}
.cav.help{background:linear-gradient(150deg,#d9fff3,#9ff5da)}.cav.help svg{width:24px;height:24px;color:#00936f}
.ctit{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.ctit b{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ctit span{font-size:13px;font-weight:700;color:#8a84b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmsgs{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 10px 8px;
  background-color:#f5f3fb;background-image:radial-gradient(rgba(108,92,230,.07) 1.2px,transparent 1.3px);background-size:22px 22px}
.cday{align-self:center;margin:10px auto 6px;display:table;background:rgba(255,255,255,.92);color:#7a74ad;font-size:12.5px;font-weight:800;padding:3px 12px;border-radius:999px;box-shadow:0 1px 0 rgba(41,33,100,.06)}
.cm{display:flex;margin:2px 0;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.cm.mine{justify-content:flex-end}
.cm .bb{position:relative;max-width:80%;background:#fff;border-radius:18px 18px 18px 6px;padding:7px 11px 6px;box-shadow:0 1px 1px rgba(41,33,100,.08);font-size:16px;line-height:1.45;color:#1f1a4d;word-wrap:break-word;white-space:pre-wrap;min-width:72px}
.cm.mine .bb{background:linear-gradient(160deg,#e8fff6,#d3faea);border-radius:18px 18px 6px 18px}
.cm.cont .bb{margin-top:-1px}
.cm .nm{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#6a58e0;margin-bottom:1px}
.cm .nm i{font-style:normal;font-size:11px;background:#efeaff;color:#6a58e0;padding:0 7px;border-radius:999px}
.cm.staff .nm{color:#00936f}.cm.staff .nm i{background:#dcfff4;color:#00936f}
.cm .tm{float:left;margin:6px 8px -4px 0;font-size:11.5px;color:#9a95c4;font-weight:700}
.cm .tm.pend{color:#c2bde3}
.cm .md{display:block;margin:-3px -7px 4px;border-radius:14px;overflow:hidden;background:#e9e6f6;position:relative;max-width:260px}
.cm .md img,.cm .md video{display:block;width:100%;max-height:320px;object-fit:cover}
.cm .md .play{position:absolute;inset:0;display:grid;place-items:center}
.cm .md .play span{width:54px;height:54px;border-radius:50%;background:rgba(20,16,58,.45);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:grid;place-items:center}
.cm .md .play svg{width:24px;height:24px;color:#fff;margin-right:-3px}
.cm .md .prog{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.35);font-weight:800;color:var(--ink)}
.cm .au{display:flex;align-items:center;gap:10px;min-width:190px;padding:2px 0}
.cm .au button{flex:none;width:38px;height:38px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center}
.cm .au button svg{width:16px;height:16px}
.cm .au .bar{flex:1;height:4px;border-radius:4px;background:#d9d4f2;position:relative;overflow:hidden}
.cm .au .bar i{position:absolute;inset:0 auto 0 0;width:0;background:#6a58e0}
.cm .au small{font-weight:800;color:#7a74ad;font-size:12.5px;direction:ltr}
.cm .rq{display:block;border-right:3px solid #8b7cf6;background:rgba(108,92,230,.07);border-radius:8px;padding:3px 8px;margin:1px -3px 5px;font-size:13.5px;color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm .rq b{display:block;font-size:12.5px;color:#6a58e0}
.cm.flash .bb{animation:flash 1.2s}
@keyframes flash{0%,100%{box-shadow:0 1px 1px rgba(41,33,100,.08)}30%{box-shadow:0 0 0 4px rgba(0,243,185,.6)}}
.cmore{display:block;margin:4px auto 10px;border:0;background:#fff;border-radius:999px;padding:6px 16px;font:inherit;font-weight:800;color:var(--ink2);font-size:14px}
.cnote{flex:none;text-align:center;padding:14px 16px calc(var(--bottom) + 14px);background:#fff;color:var(--ink2);font-weight:800;font-size:14.5px;box-shadow:0 -1px 0 rgba(41,33,100,.08)}
.cbox{flex:none;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:8px 8px calc(var(--bottom) + 8px);box-shadow:0 -1px 0 rgba(41,33,100,.08)}
body.kb .cbox{padding-bottom:8px}
.crow{display:flex;align-items:flex-end;gap:6px}
.crow textarea{flex:1;resize:none;border:0;background:#f1eff9;border-radius:22px;padding:9px 14px;font:inherit;font-size:16.5px;line-height:1.4;color:var(--ink);max-height:132px;min-height:42px;-webkit-user-select:text;user-select:text;outline:none}
.cic{flex:none;width:44px;height:44px;border:0;background:none;color:#6d67a3;display:grid;place-items:center}
.cic svg{width:25px;height:25px}
.csend{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--ink);color:#fff;display:grid;place-items:center;transition:transform .12s}
.csend svg{width:21px;height:21px}.csend .i-send{display:none;transform:scaleX(-1)}
.csend.go{background:linear-gradient(150deg,#14d9a6,#00b98c)}.csend.go .i-send{display:block}.csend.go .i-mic{display:none}
.csend.rec{background:#ff4d6d;transform:scale(1.12)}.csend.rec .i-mic{display:none}.csend.rec .i-send{display:block}
.creply{display:flex;align-items:center;gap:8px;background:#f1eff9;border-radius:14px;padding:6px 10px;margin-bottom:6px;border-right:3px solid #8b7cf6}
.creply div{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13.5px}
.creply b{color:#6a58e0;font-size:13px}.creply span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink2)}
.creply button{border:0;background:none;font-size:22px;color:var(--ink2);width:44px;height:44px;margin:-8px -8px -8px 0}
.crec{display:flex;align-items:center;gap:10px;padding:4px 6px 8px;font-weight:800}
.crec .dot{width:10px;height:10px;border-radius:50%;background:#ff4d6d;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.25}}
.crec .crhint{color:var(--ink2);font-size:13.5px;flex:1}
.crec .crx{border:0;background:none;color:#ff4d6d;width:34px;height:34px}.crec .crx svg{width:22px;height:22px}
.cpost{background:#fff;border-radius:20px;padding:12px 14px;margin:2px 2px 12px;box-shadow:0 2px 0 var(--line)}
.feed{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px 12px calc(var(--bottom) + 20px);display:flex;flex-direction:column;gap:12px}
.pcard{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 2px 0 var(--line),0 10px 24px rgba(41,33,100,.06)}
.pcard .ph1{display:flex;align-items:center;gap:10px;padding:12px 14px 6px}
.pcard .ph1 .cav{width:36px;height:36px;border-radius:12px}
.pcard .ph1 b{font-size:15.5px;display:block;line-height:1.2}.pcard .ph1 small{color:#9a95c4;font-weight:700;font-size:12.5px}
.pcard .pt{padding:2px 14px 10px;white-space:pre-wrap;font-size:16px;line-height:1.55}
.pcard .pm img,.pcard .pm video{display:block;width:100%;max-height:420px;object-fit:cover;background:#eee}
.pcard .pc{display:flex;align-items:center;gap:8px;width:100%;border:0;border-top:1px solid #f0eef8;background:none;font:inherit;font-weight:800;color:var(--ink2);padding:11px 14px;font-size:14.5px}
.pcard .pc svg{width:20px;height:20px}
.pcard.pin{box-shadow:0 0 0 2px #cfc6ff,0 10px 24px rgba(41,33,100,.06)}
.pview{background:#000;align-items:center;justify-content:center}
.pview img{max-width:100%;max-height:100%;object-fit:contain}
.pview .xbtn{position:absolute;top:calc(var(--top) + 12px);right:14px;background:rgba(255,255,255,.15);border:0;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;z-index:2}
.pview .xbtn svg{width:20px;height:20px}
.mquote{background:#f5f3fb;border-radius:14px;padding:8px 12px;font-size:14.5px;color:var(--ink2);max-height:84px;overflow:hidden;margin-bottom:8px}
.mopts{display:flex;flex-direction:column;gap:4px;width:100%}
.mopts button{display:flex;align-items:center;gap:12px;border:0;background:none;font:inherit;font-size:17px;font-weight:800;color:var(--ink);padding:12px 6px;border-radius:14px;text-align:start}
.mopts button:active{background:#f5f3fb}
.mopts button svg{width:22px;height:22px;color:var(--ink2)}
.mopts button.red,.mopts button.red svg{color:#e0445f}
.rules{display:flex;flex-direction:column;gap:10px;padding:0 4px 0 0;margin:4px 18px 8px 0;font-weight:700;color:var(--ink2);font-size:15.5px}
.agree{display:flex;align-items:center;gap:10px;font-weight:800;padding:10px 4px;font-size:16px}
.agree input{width:22px;height:22px;accent-color:#00b98c}
body.teen .chead{background:linear-gradient(160deg,#2a2370,#120e38)}

/* child photo (22 Nov 2026) */
.av.photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.phprev{width:132px;height:132px;border-radius:50%;overflow:hidden;background:#f1eff9;display:grid;place-items:center;box-shadow:0 0 0 5px #fff,0 0 0 7px var(--mint);margin:6px 0 8px}
.phprev img{width:100%;height:100%;object-fit:cover}
.phprev .av{width:100%;height:100%}
.phbtns{display:flex;gap:10px;width:100%}.phbtns .chunky{flex:1;font-size:16px;padding:10px 8px}
.consent{align-items:flex-start;text-align:start;background:#f5f3fb;border-radius:16px;padding:12px;font-size:14.5px;line-height:1.55;margin:6px 0}
.consent input{flex:none;margin-top:3px}
.kphoto{display:flex;align-items:center;gap:8px;border:0;background:#f5f3fb;border-radius:14px;padding:8px 12px;font:inherit;font-weight:800;color:var(--ink);font-size:15px}
.kphoto svg{width:20px;height:20px;color:#6a58e0}

/* winners announcement (22 Nov 2026) */
.winp{align-items:center;text-align:center;gap:6px;padding:calc(var(--top) + 26px) 20px calc(var(--bottom) + 26px);background:radial-gradient(70% 45% at 50% 28%,#fff1b8,#efeaff 62%,#f7f5ff);overflow-x:hidden}
.winp .rays{top:230px;opacity:1;animation:spin 16s linear infinite}
.wn-me{position:relative;width:230px;height:230px;margin-top:4px;display:grid;place-items:center}
.wn-me .cup{position:absolute;bottom:-6px;left:50%;width:96px;transform:translateX(-50%);filter:drop-shadow(0 8px 12px rgba(160,110,0,.25));animation:pop .6s cubic-bezier(.3,1.6,.5,1) .5s both}
.wn-me .face{width:190px;height:190px;border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 6px #ffd23f,0 16px 40px rgba(255,170,0,.35);animation:pop .7s cubic-bezier(.3,1.6,.5,1) both}
.wn-me .face img{width:100%;height:100%;object-fit:cover}
.wn-me.small{width:150px;height:150px}.wn-me.small .face{width:120px;height:120px}.wn-me.small .cup{width:70px}
.wn-h{font-size:32px;line-height:1.2;animation:pop .5s ease .8s both}
.wn-sub{font-weight:700;color:var(--ink2);max-width:340px;animation:pop .5s ease 1s both}
.wn-others{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:8px 0 4px;max-width:420px;animation:pop .5s ease 1.3s both}
.wn-others .w{width:118px;background:#fff;border-radius:20px;padding:10px 6px 8px;box-shadow:0 2px 0 var(--line),0 8px 18px rgba(41,33,100,.06);display:flex;flex-direction:column;align-items:center;gap:2px}
.wn-others .w img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:#f5f3fb}
.wn-others .w b{font-size:15px;line-height:1.2}.wn-others .w small{font-size:11.5px;color:var(--ink2);font-weight:700;line-height:1.3}
.wn-others h3{width:100%;font-size:16px;color:var(--ink2);margin-top:6px}
.winp .chunky{max-width:380px;margin-top:8px;animation:pop .5s ease 1.6s both}
.feed .pcard.win{background:linear-gradient(160deg,#fffaf0,#fff);box-shadow:0 0 0 2px #ffe08a,0 10px 24px rgba(41,33,100,.06)}
.pcard .wrow{display:flex;flex-wrap:wrap;gap:8px;padding:0 14px 12px}
.pcard .wrow span{display:flex;align-items:center;gap:6px;background:#fff3cc;border-radius:999px;padding:3px 10px 3px 4px;font-weight:800;font-size:14px}
.pcard .wrow img{width:28px;height:28px;border-radius:50%;background:#fff}
/* parents' area: prayer-times city (23 Nov) */
.cityrow{display:flex;gap:8px;align-items:center;margin-top:10px}.cityrow .su-in{flex:1;margin:0}
/* Star of the Month certificate (24 Nov) */
.certp{align-items:center;text-align:center;gap:14px;padding:calc(var(--top) + 64px) 16px calc(var(--bottom) + 24px);background:radial-gradient(70% 45% at 50% 30%,#fff1b8,#efeaff 62%,#f7f5ff)}
.certp h1{margin:0;font-size:28px}
.cert-wrap{width:100%;max-width:720px;border-radius:14px;overflow:hidden;box-shadow:0 18px 40px rgba(80,50,0,.22);background:#fffaf0;aspect-ratio:1800/1195}
.cert-wrap img{display:block;width:100%;height:100%;object-fit:contain;-webkit-user-select:auto;user-select:auto;-webkit-touch-callout:default}
.certp .chunky{max-width:380px}
.chunky.gold{background:linear-gradient(180deg,#ffd76a,#f2b632);color:#4a3000;box-shadow:0 6px 0 #b97a06}
.certs{display:flex;flex-wrap:wrap;gap:8px}.certs button{border:0;border-radius:999px;padding:8px 14px;font-weight:800;background:#fff3c4;color:#6a4c00;box-shadow:0 3px 0 #e9c766}
/* kids send each other a star from the leaderboard (24 Nov) */
.lb li .cheer{border:0;background:#fff3c4;border-radius:50%;width:40px;height:40px;font-size:19px;line-height:1;flex:none;box-shadow:0 3px 0 #e9c766;margin-inline-start:6px;filter:grayscale(.6);opacity:.85}
.lb li .cheer:active{transform:translateY(2px);box-shadow:0 1px 0 #e9c766}
.lb li .cheer.on{filter:none;opacity:1;background:#ffe28a;animation:pop .4s ease}
.cheer-big{width:150px;height:150px;object-fit:contain;position:relative;animation:pop .6s ease both}
/* sticker album (24 Nov) */
.albumc .stk-peek{display:flex;width:84px;height:56px;position:relative;flex:none}
.albumc .stk-peek img{width:52px;height:52px;object-fit:contain;margin-inline-start:-22px;filter:drop-shadow(0 2px 3px rgba(41,33,100,.2))}
.albumc .stk-peek img:first-child{margin-inline-start:0}.albumc .stk-peek img.lock{filter:grayscale(1) brightness(1.6);opacity:.5}
.albump{gap:14px;padding:calc(var(--top) + 64px) 14px calc(var(--bottom) + 24px);background:linear-gradient(180deg,#efeaff,#f7f5ff)}
.al-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stk{position:relative;aspect-ratio:1;background:#fff;border-radius:18px;box-shadow:0 4px 0 var(--line);display:grid;place-items:center;padding:6px}
.stk img{width:100%;height:100%;object-fit:contain}
.stk.off{background:#ece9f7;box-shadow:none}.stk.off img{filter:brightness(0) opacity(.12)}
.stk.off small{position:absolute;bottom:4px;inset-inline:0;text-align:center;font-size:12px;font-weight:800;color:#8a82b8}
.new-stk{width:200px;height:200px;object-fit:contain;position:relative;animation:pop .7s cubic-bezier(.3,1.6,.5,1) both;filter:drop-shadow(0 10px 18px rgba(80,50,0,.25))}
/* daily missions (24 Nov) */
.missions{background:#fff;border-radius:24px;padding:14px 14px 16px;box-shadow:0 5px 0 var(--line);display:flex;flex-direction:column;gap:10px}
.missions .sec-h{margin:0}
.mrows{display:flex;flex-direction:column;gap:8px}
.mrow{display:grid;grid-template-columns:34px minmax(0,1fr) 70px 38px;align-items:center;gap:8px;background:#f5f3ff;border-radius:16px;padding:8px 10px}
.mrow .mi{font-size:22px;text-align:center}.mrow b{font-size:15px;line-height:1.25}
.mrow .mbar{height:10px;border-radius:9px;background:#e4e0fb;overflow:hidden}.mrow .mbar i{display:block;height:100%;background:linear-gradient(90deg,#8b7cf6,#5ee7c0);border-radius:9px}
.mrow small{font-weight:800;text-align:center;color:#6a58e0}
.mrow.ok{background:#dcfbef}.mrow.ok small{color:#00936f}
.missions .chunky{margin-top:2px}

/* Thabet Island tile (24 Nov 2026): full width, sea colours, the masjid art */
.ptile.island{grid-column:1/-1;background:linear-gradient(160deg,#7fd3dd,#4fa8c4);height:190px}
.ptile.island .isl{width:62%;left:-4%;bottom:-8%}

/* ===== «الأهل» services (24 Nov 2026): calm navy + cream, no stickers ===== */
.thead.navy{background:linear-gradient(160deg,#3a3192,#1d1650)}
.ptile.navy{background:linear-gradient(160deg,#4a40b0,#262070);box-shadow:0 6px 0 #17113f;border:0;font:inherit;text-align:start}
.ptile.navy:active{box-shadow:0 1px 0 #17113f}
.ptile .par{height:128px;top:6px;left:4px}
.callcard{display:flex;align-items:center;gap:14px;width:100%;border:0;text-align:start;font:inherit;color:#fff;background:linear-gradient(135deg,#00c495,#00a07a);border-radius:26px;padding:14px 16px;box-shadow:0 6px 0 #007f61;margin-top:-6px}
.callcard:active{transform:translateY(5px);box-shadow:0 1px 0 #007f61}
.callcard img{height:84px;flex:none;margin:-14px 0 -14px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.18))}
.callcard b{display:block;font-size:19px;line-height:1.25}
.callcard small{display:block;font-size:14.5px;font-weight:700;opacity:.92;margin-top:2px}
.svgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.svt{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:0;font:inherit;text-align:start;color:var(--ink);background:#fffdf7;border-radius:22px;padding:14px;box-shadow:0 4px 0 #ece4cf;min-height:112px}
.svt:active{transform:translateY(4px);box-shadow:0 1px 0 #ece4cf}
.svt .ic{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#eeebfb;color:#3a3192}
.svt .ic svg{width:24px;height:24px}
.svt b{font-size:16.5px;line-height:1.25}
/* «قريباً» badge: spans only (a prayer tile that hasn't opened yet is also .soon; 25 Nov fix) */
.svt .soon,span.soon{position:absolute;top:10px;left:10px;background:#efeaff;color:#6a58e0;font-size:12.5px;font-weight:800;border-radius:999px;padding:2px 9px}
.sheet .soon{position:static;align-self:flex-start;margin-top:-6px}
.onecard{display:flex;align-items:center;gap:12px;width:100%;border:0;font:inherit;text-align:start;color:#fff;background:linear-gradient(135deg,#3a3192,#262070);border-radius:26px;padding:12px 14px;box-shadow:0 6px 0 #17113f}
.onecard:active{transform:translateY(5px);box-shadow:0 1px 0 #17113f}
.onecard img{height:86px;flex:none;margin:-16px 0 -12px}
.onecard b{display:block;font-size:18.5px}.onecard small{display:block;font-size:14px;font-weight:700;opacity:.88}
.onecard i{margin-right:auto;font-style:normal;font-weight:800;font-size:15px;background:var(--mint);color:var(--ink);border-radius:999px;padding:6px 12px;white-space:nowrap}
/* form pages */
.formp{padding:calc(var(--top) + 14px) 18px calc(var(--bottom) + 28px);gap:14px;background:linear-gradient(180deg,#ece9fb 0%,var(--bg) 30%)}
.fbody{display:flex;flex-direction:column;gap:16px}
.fq{display:flex;flex-direction:column;gap:8px}
.fq>label,.fq>p{font-weight:800;font-size:16.5px;margin:0}
.fq .opt{font-weight:600;color:var(--ink2);font-size:14px}
.fin{width:100%;border:2px solid var(--line);border-radius:16px;padding:12px 14px;font:inherit;font-size:17px;background:#fff;color:var(--ink)}
.fin:focus{outline:none;border-color:var(--purple)}
textarea.fin{min-height:84px;resize:vertical}
.fpick{display:flex;flex-wrap:wrap;gap:8px}
.fpick button{border:2px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font:inherit;font-size:15.5px;font-weight:700;color:var(--ink)}
.fpick button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.ferr{color:var(--bad);font-weight:700;min-height:1.2em;margin:0}
.fnote{font-size:14px;color:var(--ink2);font-weight:600;margin:0}
/* teachers */
.tch{display:flex;align-items:center;gap:12px;width:100%;border:0;font:inherit;text-align:start;color:var(--ink);background:#fff;border-radius:22px;padding:14px;box-shadow:0 4px 0 var(--line)}
.tav{width:54px;height:54px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:24px;font-weight:800;color:#fff;background:linear-gradient(160deg,#8b7cf6,#6a58e0)}
.tav.m{background:linear-gradient(160deg,#4fb3ff,#2f8fdc)}
.tav.big{width:84px;height:84px;font-size:36px}
.tch b{display:block;font-size:17.5px}.tch small{display:block;font-size:14px;color:var(--ink2);font-weight:600}
.tprof{background:#fff;border-radius:26px;padding:18px;box-shadow:0 4px 0 var(--line);display:flex;flex-direction:column;gap:14px}
.tprof .top{display:flex;align-items:center;gap:14px}
.tprof h3{margin:0;font-size:21px}
.tprof ul{margin:0;padding-inline-start:20px;display:flex;flex-direction:column;gap:4px;font-weight:600}
.tprof .lbl{font-weight:800;margin:0 0 4px}
.slotdays{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:none}
.slotdays button{flex:none;border:2px solid var(--line);background:#fff;border-radius:18px;padding:8px 12px;font:inherit;font-weight:800;color:var(--ink);text-align:center;min-width:72px}
.slotdays button small{display:block;font-weight:700;font-size:13px;color:var(--ink2)}
.slotdays button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}.slotdays button[aria-pressed="true"] small{color:#d9d4ff}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.slots button{border:2px solid var(--line);background:#fff;border-radius:14px;padding:10px 4px;font:inherit;font-weight:800;font-size:16px;color:var(--ink)}
.slots button[aria-pressed="true"]{background:var(--mint);border-color:var(--mintd)}
.bsum{background:#fff;border-radius:18px;padding:12px 14px;box-shadow:0 3px 0 var(--line);font-weight:800}
.svgrid .svt:last-child:nth-child(odd){grid-column:1/-1;min-height:0;flex-direction:row;align-items:center}
/* approved art in place (25 Nov): prayer tiles, missions, gems, medals, padlock, services (Canva cut-outs). */
.pb{overflow:hidden;padding:0 0 8px}
.pb .pimg{display:block;width:100%;aspect-ratio:1;object-fit:cover;margin-bottom:5px;border-bottom:2px solid rgba(255,255,255,.6)}
.mrow .mi img{width:32px;height:32px;object-fit:contain;display:block;margin:auto}
.lg .gemimg{width:52px;height:52px;flex:none;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,0,0,.18))}
ol.lb li .rk .medal{width:30px;height:30px;object-fit:contain;display:block;margin:auto}
.padimg{height:130px;filter:drop-shadow(0 6px 8px rgba(0,0,0,.18))}
img.tav{object-fit:cover;background:#cdeee3;padding:0}
.svhero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:24px;box-shadow:0 4px 0 var(--line)}
.svhero.top{margin-top:-30px;position:relative;z-index:3;box-shadow:0 8px 20px rgba(29,22,80,.18)}
.callcard img{height:96px;margin:-18px 0 -14px}
.callcard img{height:104px;width:auto;margin:-22px 0 -16px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.2))}
.tch>span{flex:1;min-width:0}.tch .chev{width:18px;height:18px;flex:none;opacity:.4}
/* «الأهل» tiles with the approved 3D icons (SV02/03/12, SV10 avatars) + the Parent Education banner (SV13), 25 Nov */
.svt .svimg{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(41,33,100,.15))}
.svt .svav{display:flex;height:56px;align-items:center}.svt .svav img{width:46px;height:46px;border-radius:50%;border:3px solid #fffdf7;background:#cdeee3}
.svt .svav img+img{margin-right:-14px}
.svedu{position:relative;display:flex;flex-direction:column;width:100%;border:0;padding:0;font:inherit;text-align:start;color:var(--ink);background:#fffdf7;border-radius:22px;overflow:hidden;box-shadow:0 4px 0 #ece4cf}
.svedu:active{transform:translateY(4px);box-shadow:0 1px 0 #ece4cf}
.svedu img{width:100%;aspect-ratio:16/8;object-fit:cover}
.svedu>span:not(.soon){padding:12px 14px 14px}.svedu b{display:block;font-size:17px}.svedu small{font-size:14px;color:var(--ink2);font-weight:700}
.svedu .soon{top:10px;left:10px}
.emptyart{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 0}.emptyart img{width:150px;height:auto;filter:drop-shadow(0 6px 8px rgba(41,33,100,.15))}
/* K01 course cover, K04–K06 Ghars level badges (25 Nov) */
.course.withcover{flex-wrap:wrap;padding-top:0;overflow:hidden}
.course .ccover{order:-1;flex:1 0 100%;height:auto;width:calc(100% + 32px);margin:0 -16px 6px;aspect-ratio:16/8;object-fit:cover}
.lvlb{width:30px;height:30px;vertical-align:-8px;margin-inline-end:6px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}
/* buy bar (25 Nov, owner: "the number beside register is weird… fidgety"): price inside the button, the bar sits at the bottom
   of the page's own scroll (sticky, not fixed, so the iPhone keyboard can't leave it floating mid-screen), hidden while typing */
.buybar{position:sticky;margin-top:auto;left:auto;right:auto}
.buybar .chunky{justify-content:space-between;padding-inline:22px}
.buybar .bprice{font-size:21px;font-weight:800;background:rgba(41,33,100,.1);border-radius:12px;padding:3px 10px 1px}
.buybar .bprice:empty{display:none}
.view.typing .buybar{display:none}
/* portrait booklet preview: the video is the whole screen; title hidden, close button on top */
#pPlayer.port{padding:0;justify-content:center;background:#2a2550}
#pPlayer.port h2{display:none}
#pPlayer.port video{width:100%;height:100%;max-height:none;object-fit:contain;background:#2a2550}
#pPlayer.port .closeb{z-index:3}
/* WhatsApp number: country picker + number (25 Nov) */
.phonebox{display:flex;gap:8px;direction:ltr}
.phonebox .fin{flex:1;min-width:0}
.ccpick{position:relative;flex:none;display:flex;align-items:center;gap:4px;border:2px solid var(--line);border-radius:16px;background:#fff;padding:0 10px;font-weight:800;font-size:16px;color:var(--ink);white-space:nowrap}
.ccpick svg{width:16px;height:16px;opacity:.55}
.ccpick select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px}
.gq.word{font-size:26px;padding:10px 22px}
#eGate.info{color:var(--ink2)}
/* review fixes 25 Nov: player clear of the notch + home bar; less empty space above the in-page buy bar; owned item button centred; keyboard hides the bar */
#pPlayer.port{padding:var(--top) 0 var(--bottom)}
#pPlayer.port video{height:auto;flex:1;min-height:0}
#pProgram .pp-body,#pProduct .pp-body{padding-bottom:18px}
.buybar .chunky:has(.bprice:empty){justify-content:center}
body.kb .view .buybar{display:none}
.ans.six span{width:40px;height:50px;font-size:24px}
.netbar{position:fixed;top:calc(var(--top) + 8px);left:12px;right:12px;z-index:80;border:0;border-radius:16px;padding:12px 14px;font:inherit;font-weight:800;font-size:15px;color:#fff;background:#c2186f;box-shadow:0 6px 18px rgba(0,0,0,.25)}

/* sheets taller than a small phone (forms, photo) scroll inside (review 25 Nov) */
.sheet .box{max-height:calc(100vh - var(--top) - 12px);max-height:calc(100dvh - var(--top) - 12px);overflow-y:auto;-webkit-overflow-scrolling:touch}
/* Sign in with Apple / Google */
.social{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.social .or{display:flex;align-items:center;gap:10px;color:var(--ink2);font-weight:700;margin:2px 0}.social .or::before,.social .or::after{content:"";flex:1;height:1.5px;background:var(--line)}
.sbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;border-radius:18px;padding:14px;font:inherit;font-size:17px;font-weight:800;border:2px solid var(--line)}
.sbtn svg{width:22px;height:22px}
.sbtn.apple{background:#000;color:#fff;border-color:#000}
.sbtn.google{background:#fff;color:#1f1f1f}
.sbtn[disabled]{opacity:.55}
.social .small{font-size:13.5px;text-align:center}

/* Face ID button under the parents' PIN pad (25 Nov 2026) */
.biobtn{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;min-height:48px;padding:0 22px;border:2px solid #e3defa;border-radius:999px;background:#fff;color:var(--navy,#292164);font:inherit;font-weight:800;font-size:16px;cursor:pointer}
.biobtn svg{width:24px;height:24px}
.chunky.danger{background:#e0356a;color:#fff;box-shadow:0 5px 0 #a3154f}
.chunky.danger:disabled{opacity:.45}

/* save a lesson for watching offline (25 Nov 2026) */
.offbtn{align-self:center;margin-top:14px;min-height:44px;padding:0 20px;border-radius:999px;border:1.5px solid rgba(255,255,255,.35);background:transparent;color:#fff;font:inherit;font-weight:700;font-size:15.5px}
.offbtn.done{background:#00f3b9;color:#292164;border-color:#00f3b9}
#pPlayer.port .offbtn{display:none}

/* English (left-to-right, 25 Nov 2026): the header pictures stay on the left, so the greeting moves to the right side */
[dir=ltr] .hello,[dir=ltr] #tHome .hi{margin-left:auto;text-align:right}
[dir=ltr] .hello h1{font-size:26px}

/* ---------- iPad and computer (29 Nov 2026, Bayan's iPad review): the app fills the whole screen ----------
   Before this it was a 760px phone column with empty sides, and the back button sat outside the column (invisible on iPad).
   Now: header bands run edge to edge; tab content is centred up to 1040px with more columns in the grids;
   full pages (sign-up, booklet, forms) keep a 760px reading column on a full-width page, back button inside it. */
@media (min-width:760px){
  :root{--gut:max(24px,calc((100vw - 1040px) / 2));--col:max(0px,calc((100vw - 760px) / 2))}
  .tab .wrap,.tab .tbody{padding-left:var(--gut);padding-right:var(--gut);max-width:none}
  .course .ccover{aspect-ratio:16/5}
  .course.withcover>div{flex:1 1 60%}
  .tab .rail{margin-left:calc(var(--gut) * -1);margin-right:calc(var(--gut) * -1);padding-left:var(--gut);padding-right:var(--gut)}
  .vgrid,.bgrid,.svgrid,.play{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
  .svgrid .svt:last-child:nth-child(odd){grid-column:auto;flex-direction:column;align-items:stretch}
  .thead{padding-left:var(--gut);padding-right:var(--gut)}
  .tabbar{padding-left:max(4px,calc((100vw - 720px) / 2));padding-right:max(4px,calc((100vw - 720px) / 2));border-radius:0}
  /* full pages: a centred reading column on a full-width page */
  .view:not(#pPlayer):not(.pview):not(#vLoad):not(.chat){padding-left:var(--col);padding-right:var(--col)}
  .view>.closeb{right:calc(var(--col) + 14px)}
  .view.pick,.view .panel{max-width:none}
  .view.chat{left:0;right:0;max-width:760px;margin-left:auto;margin-right:auto;box-shadow:0 0 0 1px var(--line),0 30px 80px rgba(41,33,100,.16)}
  .netbar{left:0;right:0;max-width:736px;margin-left:auto;margin-right:auto}
}
/* landscape iPad and computer: the child's home page in two columns, read top to bottom */
@media (min-width:1000px){
  #vHome .wrap{display:block;columns:2;column-gap:22px}
  #vHome .wrap>*{break-inside:avoid;margin-bottom:22px}
  #vHome .wrap>[hidden]{display:none}
  #vHome .wrap .rail{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
}
/* English (left-to-right) layout, review polish 26 Nov 2026: pictures move to the other side so titles never sit on them; arrows point forward */
[dir=ltr] .chev{transform:scaleX(-1)}
[dir=ltr] .thead img.art{left:auto;right:10px}
[dir=ltr] .prog img{left:auto;right:6px}
[dir=ltr] .prog .ages{right:auto;left:16px}
[dir=ltr] .ptile b{font-size:20px}[dir=ltr] .ptile .par{height:102px;top:4px}
[dir=ltr] .prog{padding-top:54px}[dir=ltr] .prog b{font-size:26px}
[dir=ltr] .ptile .kite{left:auto;right:8px}
/* chat like WhatsApp (owner 26 Nov 2026): own messages on the right, others on the left, in both languages; the bar keeps
   the microphone/send and camera on the left and + on the right in both languages; each message reads in its own direction */
.cmsgs{direction:ltr}
.cm .tm{float:inline-end}
.crow{direction:rtl}
.crow textarea{text-align:start}
.cemo{display:grid;grid-template-columns:repeat(8,1fr);gap:2px;max-height:190px;overflow-y:auto;padding:6px 2px 8px;direction:ltr}
.cemo button{border:0;background:none;font-size:27px;line-height:1;height:42px;border-radius:10px}
.cemo button:active{background:#f1eff9}
/* typing English in any box goes left to right, Arabic right to left (owner 26 Nov 2026) */
textarea,input:not([type]),input[type=text],input[type=search]{unicode-bidi:plaintext}
/* the back button on every full page stays on screen while the page scrolls (owner 26 Nov 2026) */
.view>.closeb{position:fixed}
/* smoother app (owner 26 Nov 2026: "only keep moving and floating clouds in the home page"): the decorative movement runs on
   the Home tab only, and stops while a page is open; bars are plain white instead of see-through blur (cheaper to draw) */
body:not(.athome) .sky .cloud,body:not(.athome) .sky .sun,body:not(.athome) .bob,body:not(.athome) .flutter,body:not(.athome) .falls i,
body.paged .sky .cloud,body.paged .sky .sun,body.paged .bob,body.paged .flutter,body.paged .falls i{animation:none}
.tabbar,.buybar,.cbar,.cbox{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
body::before{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(247,245,255,.98)}
/* loading screen art S01 (approved 26 Nov 2026): boy + girl by a young tree; logo and dots sit in the sky part */
#vLoad .sky{background:#8ccdff url(/assets/images/app/v1/load_s01.webp) center bottom/cover no-repeat;justify-content:flex-start;padding-top:calc(var(--top) + 16vh)}
#vLoad .sky .cloud,#vLoad .sky .sun,#vLoad .sky .hill{display:none}
/* milestone celebrations (26 Nov 2026): the approved backdrop fills the screen, the title sits in its open sky, the child's
   character stands on the podium, the button at the bottom */
.celep{padding:0;background:#fff8e8;overflow:hidden}
.ce-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ce-txt{position:relative;z-index:2;margin:calc(var(--top) + 27vh) 28px 0;text-align:center}
.ce-txt h1{font-size:31px;line-height:1.2;color:#292164;text-shadow:0 2px 0 rgba(255,255,255,.8)}
.ce-txt p{margin-top:8px;font-size:18px;font-weight:700;color:#3e3796;text-shadow:0 1px 0 rgba(255,255,255,.8)}
.ce-kid{position:absolute;z-index:2;left:0;right:0;margin:0 auto;bottom:calc(var(--bottom) + 118px);height:38vh;max-height:330px}
.celep .chunky{position:absolute;z-index:3;left:24px;right:24px;width:auto;bottom:calc(var(--bottom) + 26px)}
.celep .ce-txt,.celep .ce-kid{opacity:0}
.celep.go .ce-txt{animation:pop .5s ease .25s both}
.celep.go .ce-kid{animation:pop .6s cubic-bezier(.3,1.6,.5,1) .5s both}
/* home tiles as full scenes (owner 26 Nov 2026): picture fills the tile, a soft navy shade at the bottom carries the title */
.ptile.scene{background:#2a2266;box-shadow:0 6px 0 #17113f;border:0;font:inherit;color:#fff}
.ptile.scene:active{box-shadow:0 1px 0 #17113f}
.ptile.scene .bgimg{inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.ptile.scene .bgimg.stars{object-position:50% 45%}
.ptile.scene::after{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;background:linear-gradient(180deg,rgba(29,22,80,0),rgba(29,22,80,.9));pointer-events:none}
.ptile.scene b,.ptile.scene small{z-index:2;text-shadow:0 1px 3px rgba(0,0,0,.3)}
.play+.ptile.wide{display:flex;margin-top:12px;height:150px}
/* missions are buttons now (tap = go do it) */
button.mrow{width:100%;border:0;font:inherit;color:inherit;text-align:start;cursor:pointer}
button.mrow:active{transform:translateY(2px)}
/* 5-tab layout (owner 26 Nov 2026): games tab link, chats row in «الأهل» */
.tabbar a.tbgames{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12.5px;font-weight:800;color:#8d88b5;padding:2px 0;text-decoration:none}
.tabbar a.tbgames[hidden]{display:none}
.chatrow{display:flex;align-items:center;gap:12px;width:100%;border:0;font:inherit;text-align:start;color:var(--ink);background:#fff;border-radius:22px;padding:14px;box-shadow:0 4px 0 var(--line);margin-top:12px}
.chatrow[hidden]{display:none}
.chatrow .ci{width:46px;height:46px;border-radius:16px;background:#efeaff;color:#6a58e0;display:grid;place-items:center;flex:none}.chatrow .ci svg{width:26px;height:26px}
.chatrow .ct{flex:1;min-width:0}.chatrow b{display:block;font-size:18px}.chatrow small{color:var(--ink2);font-weight:700;font-size:14px}
.chatrow em{font-style:normal;background:#ff4d6d;color:#fff;font-weight:800;font-size:14px;min-width:26px;height:26px;border-radius:13px;display:grid;place-items:center;padding:0 7px}
/* ---------- family profiles v2 (owner 26 Nov 2026) ---------- */
/* «مين يستخدم ثابت؟»: Thabet's sky, the logo, big round faces (the character each child chose) and the parents behind a lock */
.prof{background:linear-gradient(180deg,#8ccdff 0%,#cdeaff 40%,#f6f4ff 78%);align-items:center;justify-content:center;gap:22px;text-align:center;
  padding:calc(var(--top) + 26px) 22px calc(var(--bottom) + 34px);overflow:hidden}
.prof-sky{position:absolute;inset:0;pointer-events:none}
.prof-sky img{position:absolute;opacity:.95}
.prof-sky .c1{top:calc(var(--top) + 36px);left:-34px;width:150px}
.prof-sky .c2{top:calc(var(--top) + 120px);right:-26px;width:118px}
.prof-logo{position:relative;background:#fff;border-radius:26px;padding:12px 20px;box-shadow:0 6px 0 rgba(41,33,100,.08)}
.prof-logo img{width:92px;display:block}
.prof h1{position:relative;font-size:31px;line-height:1.2;color:#292164;margin:4px 0 2px}
.profs{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,142px));gap:24px 30px;justify-content:center}
.pf{position:relative;border:0;background:none;font:inherit;color:#292164;display:flex;flex-direction:column;align-items:center;gap:10px;padding:0}
.pf .ph{width:124px;height:124px;border-radius:50%;background:#fff;overflow:hidden;display:grid;place-items:center;
  box-shadow:0 0 0 5px #fff,0 12px 26px rgba(41,33,100,.2);transition:transform .15s}
.pf .ph img{width:100%;height:100%;object-fit:cover}
.pf .lt{font-size:52px;font-weight:800;color:#6a58e0}
.pf b{font-size:22px;line-height:1.1}
.pf:active .ph{transform:scale(.95)}
.pf.par .ph{box-shadow:0 0 0 5px #292164,0 12px 26px rgba(41,33,100,.28)}
.pf.par .ph img{object-position:50% 40%}
.pf .lk{position:absolute;top:92px;inset-inline-end:8px;width:36px;height:36px;border-radius:50%;background:#292164;color:#fff;display:grid;place-items:center;box-shadow:0 0 0 3px #fff}
.pf .lk svg{width:19px;height:19px}
/* the parents' world: a switch back to the picker in its header */
.whobtn{display:none;position:absolute;z-index:3;top:calc(var(--top) + 16px);left:16px;border:0;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;
  font:inherit;font-weight:800;font-size:15px;padding:7px 14px;align-items:center;gap:6px}
.whobtn svg{width:20px;height:20px}
body.pmode .whobtn{display:flex}
/* the child's world: no shop rail on their page (asking parents comes in step 2) */
body.pmode #parChats{display:none} /* parents have a chats tab; no repeat card on their home */
/* «أشيائي» */
.stuffb{display:flex;flex-direction:column;gap:14px}

/* parents' home v2: the children first, overlapping the header like the hero did */
.parkids{display:flex;flex-direction:column;gap:14px;margin-top:-30px;position:relative;z-index:3}
.parkids:empty{display:none}
.parkids .pk-h{color:#fff;font-size:20px;margin:0 4px -4px}
body.pmode #tParents .svhero{display:none}
#tParents .thead.navy{background:linear-gradient(180deg,rgba(41,33,100,.55),rgba(41,33,100,.92) 85%),url(/assets/images/app/v1/sv_parents.webp) center 35%/cover}

/* step 2 (27 Nov 2026): children ask, parents see requests */
body.kmode #mineBooksSec .more{display:none} /* no way into the shop from a child's world */
.price.ask{background:#ffe6f2;color:#c2186f}
#ppBuy.asked{background:#e3fbf1;color:#00936f;box-shadow:0 5px 0 #b5ecd8}
.rqcard h3{margin:0 0 4px}
.rqrow{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.rqrow:first-of-type{border-top:0}
.rqimg{width:58px;height:76px;border-radius:10px;object-fit:cover;flex:0 0 auto;box-shadow:0 3px 8px rgba(41,33,100,.15);display:grid;place-items:center;overflow:hidden}
.rqt{flex:1;min-width:0}
.rqt b{display:block;font-size:16px;line-height:1.4}
.rqb{display:flex;gap:10px;align-items:center;margin-top:8px}
.rqb .chunky.small{padding:8px 22px}

/* parents' dashboard (steps 3–4, 27 Nov 2026) */
.stat.four{flex-wrap:wrap}
.stat.four>div{flex:1 1 calc(50% - 5px)}
.att span.late{background:#efeaff;color:#6a58e0}
.wkgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px}
.wkgrid>div{background:var(--bg,#f4f2fa);border-radius:16px;padding:10px 6px;text-align:center}
.wkgrid b{display:block;font-size:20px;line-height:1.2;color:var(--ink,#292164)}
.wkgrid b small{font-size:12px;font-weight:700;opacity:.7}
.wkgrid span{display:block;font-size:12px;color:#6b6496;margin-top:2px}
.limchips{display:flex;gap:6px}
.limchips button{flex:1;white-space:nowrap;border:2px solid #e4defc;background:#fff;border-radius:14px;padding:8px 2px;font:inherit;font-size:14px;font-weight:700;color:#292164}
.limchips button[aria-pressed="true"]{background:#292164;border-color:#292164;color:#fff}
/* tree page ⓘ + how-points sheet (27 Nov 2026) */
.tp-info{position:absolute;top:calc(var(--top) + 12px);left:14px;z-index:5;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);box-shadow:0 3px 0 rgba(41,33,100,.15);font:800 22px/1 Georgia,serif;font-style:italic;color:var(--purpled)}
.ptsl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ptsl li{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:2px;background:#f6f5fb;border-radius:16px;padding:10px 6px;font-weight:700;font-size:14px;line-height:1.3}
.ptsl b{color:var(--purpled);font-size:20px;direction:ltr;order:-1}
.ptsl li:last-child{grid-column:1/-1}

/* ---------- «مسجدي» (29 Nov 2026): a calm Quran corner. Cream paper, mint and navy, Amiri Quran for the words of Allah.
   No coins, timers or game sounds on these pages. ---------- */
.masjidc{background:linear-gradient(160deg,#e9fff7,#c9f5e6);box-shadow:0 5px 0 #9fe3cb}
.masjidc small{color:#0f7a5c}
.masjidp,.surahp{background:#fbf8f1}
.mq-head{position:relative;text-align:center;padding:calc(var(--top) + 20px) 20px 8px}
.mq-head img{height:120px;filter:drop-shadow(0 8px 12px rgba(41,33,100,.15))}
.mq-head h1{font-size:30px;margin-top:4px}
.mq-head p{margin:2px 0 0;color:#0f7a5c;font-weight:800;min-height:1.4em}
.mq-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;padding:12px 16px 20px}
.mq-s{display:flex;align-items:center;gap:10px;border:0;border-radius:18px;background:#fff;box-shadow:0 3px 0 #ece6d6;padding:12px;text-align:start;color:var(--ink);min-height:64px}
.mq-s .no{flex:none;width:36px;height:36px;border-radius:12px;background:#f1ece0;display:grid;place-items:center;font-weight:800;font-size:14px}
.mq-s b{display:block;font-family:"Amiri Quran","Baloo Bhaijaan 2",serif;font-size:20px;font-weight:400;line-height:1.5}
.mq-s small{color:var(--ink2);font-weight:700;font-size:12.5px}
.mq-s.today{box-shadow:0 3px 0 #9fe3cb;background:#effff9}
.mq-s.today .no{background:#00f3b9;color:#292164}
.mq-src{color:#8a8070;font-size:12.5px;text-align:center;padding:0 22px 30px;margin:0}
.sq-head{text-align:center;padding:calc(var(--top) + 18px) 64px 10px}
.sq-head h1{font-family:"Amiri Quran",serif;font-weight:400;font-size:32px;line-height:1.6}
.sq-head small{color:var(--ink2);font-weight:700}
.sq-prog{height:6px;border-radius:9px;background:#efe9db;margin:8px auto 0;max-width:260px;overflow:hidden}
.sq-prog i{display:block;height:100%;width:0;background:#00c896;border-radius:9px;transition:width .3s}
.sq-body{flex:1;padding:10px 20px 20px;font-family:"Amiri Quran",serif;font-size:28px;line-height:2.35;text-align:justify;text-align-last:center;color:#1d1846}
.sq-body .bsm{display:block;text-align:center;font-size:26px;margin:2px 0 10px;color:#292164}
.sq-body .ay{border-radius:12px;padding:2px 3px;cursor:pointer;transition:background .2s;-webkit-tap-highlight-color:transparent}
.sq-body .ay.on{background:#d9fbef;box-shadow:0 0 0 2px #9fe3cb}
.sq-body .ay .end{color:#0f7a5c}
.sq-bar{position:sticky;bottom:0;margin-top:auto;background:rgba(251,248,241,.97);padding:10px 16px calc(var(--bottom) + 12px);box-shadow:0 -6px 20px rgba(41,33,100,.08);display:flex;flex-direction:column;gap:10px}
.sq-row{display:flex;gap:10px;align-items:center}
.sq-reps{display:flex;gap:6px;flex:1}
.sq-reps button,.sq-loop{min-height:44px;min-width:52px;border-radius:14px;border:1.5px solid #e4dcc8;background:#fff;color:var(--ink);font:inherit;font-weight:800;font-size:16px}
.sq-reps button[aria-pressed=true],.sq-loop[aria-pressed=true]{background:#292164;border-color:#292164;color:#fff}
.sq-loop{display:grid;place-items:center}.sq-loop svg{width:22px;height:22px}
.sq-play{flex:1;min-height:56px;border:0;border-radius:18px;background:#292164;color:#fff;font:inherit;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;gap:8px}
.sq-play svg{width:24px;height:24px}
.sq-done{flex:1;margin:0}
.sq-done:disabled{opacity:.45}
@media (min-width:760px){.sq-body{font-size:34px;line-height:2.3;padding:16px 28px 28px}.mq-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
/* «مسجدي» memorise mode + the Hifz Garden (29 Nov 2026) */
.sq-mode{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:12px}
.sq-mode button{min-height:40px;border-radius:999px;border:1.5px solid #e4dcc8;background:#fff;color:var(--ink);font:inherit;font-weight:800;font-size:14.5px;padding:0 14px}
.sq-mode button[aria-pressed=true]{background:#0f7a5c;border-color:#0f7a5c;color:#fff}
.sq-body .w{transition:filter .25s,opacity .25s}
.sq-body.hint .ay:not(.qshow) .w:not(:first-child),.sq-body.hide .ay:not(.qshow) .w{filter:blur(9px);opacity:.55}
.sq-body.hint .ay:not(.qshow),.sq-body.hide .ay:not(.qshow){background:#f3efe4}
.sq-body .ay.qshow{background:#fff7d9}
.mq-garden,.mq-due{margin:6px 16px 4px;background:#fff;border-radius:22px;padding:12px 14px;box-shadow:0 3px 0 #ece6d6}
.mq-garden h2,.mq-due h2{font-size:18px;margin:0 0 8px}
.mq-trees{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.mq-trees::-webkit-scrollbar{display:none}
.mq-tree{flex:none;width:78px;text-align:center;border:0;background:none;color:var(--ink);padding:0}
.mq-tree img{height:70px;display:block;margin:0 auto;filter:drop-shadow(0 4px 4px rgba(41,33,100,.12))}
.mq-tree span{display:block;font-family:"Amiri Quran",serif;font-size:15px;line-height:1.6}
.mq-tree.wait img{opacity:.55}
.mq-chips{display:flex;gap:8px;flex-wrap:wrap}
.mq-chips button{min-height:44px;border-radius:14px;border:0;background:#fff3d6;color:#7a4b00;font-family:"Amiri Quran",serif;font-size:18px;padding:0 14px}
.mq-s .tag{display:inline-block;margin-top:2px;font-size:11.5px;font-weight:800;border-radius:999px;padding:1px 8px}
.mq-s .tag.ok{background:#dcfff4;color:#0f7a5c}.mq-s .tag.ask{background:#ece8ff;color:#5b4bc4}.mq-s .tag.due{background:#fff3d6;color:#7a4b00}
.hifzp{display:flex;flex-direction:column;gap:8px}
.hifzrow{display:flex;align-items:center;gap:8px;background:#f5f3ff;border-radius:14px;padding:8px 10px}
.hifzrow b{flex:1;font-family:"Amiri Quran",serif;font-weight:400;font-size:19px}
.hifzrow button{min-height:40px;border-radius:12px;border:0;font:inherit;font-weight:800;font-size:14px;padding:0 12px}
.hifzrow .yes{background:#00f3b9;color:#292164}.hifzrow .no{background:#fff;color:var(--ink2)}
.sq-body .ay{scroll-margin-top:90px;scroll-margin-bottom:200px}
/* «مسجدي»: record my recitation and send it to my teacher (29 Nov 2026) */
.sq-rec{min-height:44px;border-radius:14px;border:1.5px solid #e4dcc8;background:#fff;color:#c2186f;font:inherit;font-weight:800;font-size:15px;display:flex;align-items:center;gap:4px;padding:0 12px}
.sq-rec svg{width:20px;height:20px}
.sq-rec.on{background:#c2186f;border-color:#c2186f;color:#fff;animation:recpulse 1.2s infinite}
@keyframes recpulse{50%{opacity:.75}}
@media (prefers-reduced-motion:reduce){.sq-rec.on{animation:none}}
.sq-mine{display:flex;flex-direction:column;gap:8px;background:#fff;border-radius:16px;padding:10px}
.sq-mine audio{width:100%}
.sq-send{flex:1;margin:0}
.sq-drop{min-height:44px;border-radius:14px;border:0;background:#f3efe4;color:var(--ink2);font:inherit;font-weight:800;padding:0 14px}
/* «أصدقاء الجزيرة» in the parents' area (29 Nov 2026) */
.frcode{font-family:Outfit,system-ui,sans-serif;font-weight:800;font-size:30px;letter-spacing:6px;text-align:center;background:#f5f3ff;border-radius:16px;padding:8px;direction:ltr;user-select:all}
.frrow{display:flex;gap:8px;margin:10px 0}
.frrow .field{flex:1;text-transform:uppercase;letter-spacing:3px;text-align:center;direction:ltr}
.frrow .chunky{flex:none;width:auto;min-width:0;margin:0;padding-inline:22px}
#frCard .hifzrow b{font-family:inherit;font-size:16px;font-weight:800}
/* «تعلّم الوضوء / الصلاة» (29 Nov 2026) */
.mq-learn{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 16px 4px}
.mq-lt{display:flex;align-items:center;gap:8px;border:0;border-radius:20px;background:linear-gradient(160deg,#e9fff7,#d2f7ea);box-shadow:0 4px 0 #a9e6d1;padding:8px 12px;color:var(--ink);min-height:70px;text-align:start}
.mq-lt img{height:58px}.mq-lt b{font-size:16.5px;line-height:1.2}
.learnp{background:#fbf8f1}
.ln-head{text-align:center;padding:calc(var(--top) + 20px) 64px 6px}
.ln-head h1{font-size:28px}.ln-head small{color:var(--ink2);font-weight:700}
.ln-dots{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-top:10px}
.ln-dots .ld{display:block;width:9px;height:9px;border-radius:50%;background:#e4dcc8}.ln-dots .ld.ldon{background:#0f7a5c;transform:scale(1.25)}.ln-dots .ld.ldok{background:#9fe3cb}
.ln-card{flex:1;margin:12px 16px;background:#fff;border-radius:28px;box-shadow:0 5px 0 #ece6d6;padding:22px 20px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;animation:pagein .3s}
.ln-card .no{width:54px;height:54px;border-radius:18px;background:#0f7a5c;color:#fff;display:grid;place-items:center;font-weight:800;font-size:24px}
.ln-card h2{font-size:26px;margin:0}
.ln-card p{font-size:19px;line-height:1.9;margin:0;color:#1d1846}
.ln-card .go{min-height:44px;border:0;border-radius:14px;background:#ece8ff;color:var(--ink);font:inherit;font-weight:800;padding:0 16px}
.ln-bar{position:sticky;bottom:0;display:flex;gap:10px;padding:10px 16px calc(var(--bottom) + 12px);background:rgba(251,248,241,.97)}
.ln-prev{min-height:56px;border:0;border-radius:18px;background:#fff;color:var(--ink);font:inherit;font-weight:800;font-size:17px;padding:0 20px;box-shadow:0 3px 0 #ece6d6}
.ln-next{flex:1;margin:0}
@media (min-width:760px){.ln-card p{font-size:22px}}
.ln-card .ln-img{width:100%;max-width:300px;aspect-ratio:1;object-fit:contain;margin:-6px auto -4px;filter:drop-shadow(0 8px 10px rgba(41,33,100,.12))}
@media (min-width:760px){.ln-card .ln-img{max-width:380px}}
/* «تعلّم القراءة» (Qaida, 29 Nov 2026) */
.mq-learn{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.mq-lt .qa-ic{flex:none;width:58px;height:58px;border-radius:16px;background:#fff;display:grid;place-items:center;font-family:"Amiri Quran",serif;font-size:22px;color:#0f7a5c}
.qa-tabs{flex:none;display:flex;gap:8px;overflow-x:auto;padding:10px 16px;scrollbar-width:none}
.qa-tabs::-webkit-scrollbar{display:none}
.qa-tabs button{flex:none;min-height:42px;border-radius:999px;border:1.5px solid #e4dcc8;background:#fff;color:var(--ink);font:inherit;font-weight:800;padding:0 16px}
.qa-tabs button[aria-selected=true]{background:#0f7a5c;border-color:#0f7a5c;color:#fff}
.qa-body{padding:4px 16px 30px}
.qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:10px}
.qa-l{aspect-ratio:1;border:0;border-radius:20px;background:#fff;box-shadow:0 4px 0 #ece6d6;font-family:"Amiri Quran",serif;font-size:40px;color:#1d1846;line-height:1}
.qa-l.on{background:#d9fbef;box-shadow:0 4px 0 #9fe3cb}
.qa-big{margin:14px 0;background:#fff;border-radius:24px;box-shadow:0 4px 0 #ece6d6;padding:16px;text-align:center}
.qa-big .c{font-family:"Amiri Quran",serif;font-size:84px;line-height:1.3;color:#0f7a5c}
.qa-big b{display:block;font-size:22px;margin-bottom:8px}
.qa-forms{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;direction:rtl}
.qa-forms div{background:#f5f2ea;border-radius:14px;padding:8px 2px}
.qa-forms span{display:block;font-family:"Amiri Quran",serif;font-size:40px;line-height:1.5}
.qa-forms small{color:var(--ink2);font-weight:700;font-size:12px}
.qa-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}
.qa-row button{min-height:76px;border:0;border-radius:18px;background:#fff;box-shadow:0 3px 0 #ece6d6;font-family:"Amiri Quran",serif;font-size:38px;color:#1d1846}
.qa-row button.on{background:#d9fbef}

/* «ختمة الصف» (29 Nov 2026): 30 parts of the Quran, one tile each */
.mq-khatma{margin:6px 16px 4px;background:#fff;border-radius:22px;padding:12px 14px;box-shadow:0 3px 0 #ece6d6}
.mq-khatma h2{font-size:18px;margin:0 0 2px}
.mk-sub{margin:0 0 8px;color:var(--ink2);font-weight:700;font-size:13px}
.mk-bar{height:8px;border-radius:99px;background:#f1ece0;overflow:hidden;margin-bottom:10px}
.mk-bar i{display:block;height:100%;width:0;background:var(--mint);border-radius:99px;transition:width .4s}
.mk-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.mk-p{position:relative;aspect-ratio:1;border:0;border-radius:12px;background:#f7f3ea;color:var(--ink);display:grid;place-items:center;padding:0;box-shadow:0 2px 0 #ece6d6}
.mk-p b{font-size:15px;font-weight:800;line-height:1}
.mk-p img{position:absolute;bottom:-3px;inset-inline-end:-3px;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #fff}
.mk-p.taken,.mk-p.asked{background:var(--lav);box-shadow:0 2px 0 #d9d3f3}
.mk-p.done{background:var(--mintl);box-shadow:0 2px 0 #9fe3cb}
.mk-p .ok{position:absolute;bottom:1px;inset-inline-end:4px;font-size:11px;font-weight:900;color:#0f7a5c}
.mk-p.mine{outline:3px solid var(--purple);outline-offset:-3px}
.mk-p.sel{outline:3px solid var(--sky);outline-offset:-3px}
.mk-me{margin-top:10px;text-align:center}
.mk-me p{margin:4px 0;font-weight:700}
.mk-me .muted{color:var(--ink2);font-size:13px}
.mk-me .chunky{margin-top:6px}
.mk-drop{display:block;margin:8px auto 0;border:0;background:none;color:var(--ink2);font-weight:700;font-size:13px;text-decoration:underline}

/* «أصدقائي» (29 Nov 2026): friends, online dots, quiz challenges */
.frk{background:#fff;border-radius:22px;padding:12px 14px;box-shadow:0 3px 0 #ece6d6}
.frk h2{font-size:18px;margin:0 0 8px}
.frk-d{display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:6px;border-radius:16px;background:#f6f4ff}
.frk-d.todo{background:#eafff8;box-shadow:inset 0 0 0 2px #9fe3cb}
.frk-d img{width:36px;height:36px;border-radius:50%;background:#fff}
.frk-d span{flex:1;font-weight:700;font-size:14px}
.frk-d button,.frk-f button{border:0;border-radius:999px;padding:7px 14px;font-weight:800;font-size:13.5px;background:var(--mint);color:#06342a;box-shadow:0 3px 0 var(--mintd)}
.frk-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:8px}
.frk-f{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:18px;background:#f7f3ea}
.frk-f .av{position:relative;width:52px;height:52px}
.frk-f .av img{width:100%;height:100%;border-radius:50%;background:#fff}
.frk-f .av .on{position:absolute;bottom:1px;inset-inline-end:1px;width:14px;height:14px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.frk-f b{font-size:14px}
.frk-f button{padding:5px 12px;font-size:12.5px;background:var(--purple);color:#fff;box-shadow:0 3px 0 var(--purpled)}
.frk-f button:disabled,.frk-d button:disabled{opacity:.5}
.frk-f small{font-size:11px;font-weight:700;color:var(--ink2);margin-top:-4px}
