@font-face{font-family:Mukta;font-weight:400;font-display:swap;src:url(assets/fonts/mukta-devanagari-400-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:Mukta;font-weight:500;font-display:swap;src:url(assets/fonts/mukta-devanagari-500-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:Mukta;font-weight:600;font-display:swap;src:url(assets/fonts/mukta-devanagari-600-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:Mukta;font-weight:700;font-display:swap;src:url(assets/fonts/mukta-devanagari-700-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:Mukta;font-weight:800;font-display:swap;src:url(assets/fonts/mukta-devanagari-800-normal.woff2) format('woff2');unicode-range:U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+20A8,U+20B9,U+25CC,U+A830-A839,U+A8E0-A8FF}
@font-face{font-family:Mukta;font-weight:400;font-display:swap;src:url(assets/fonts/mukta-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:Mukta;font-weight:600;font-display:swap;src:url(assets/fonts/mukta-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:Mukta;font-weight:700;font-display:swap;src:url(assets/fonts/mukta-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:Mukta;font-weight:800;font-display:swap;src:url(assets/fonts/mukta-latin-800-normal.woff2) format('woff2')}

:root{
  --bg:#F6F4FC; --card:#FFFFFF; --line:#E4DFF4; --ink:#1E1B3A; --ink2:#46435F; --muted:#625F78;
  --brand:#5B3FD6; --brand-d:#4A31B8; --brand-t:#EEEAFD;
  --money:#1B7F45; --money-t:#E5F5EB; --phone:#1D63C4; --phone-t:#E6EFFC;
  --safety:#B4500A; --safety-t:#FFF0E2; --danger:#C62828; --danger-t:#FDECEC;
  --shadow:0 1px 2px rgba(30,27,58,.04),0 2px 8px rgba(30,27,58,.04);
}
html{font-size:18.4px}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);font-family:Mukta,'Noto Sans Devanagari',system-ui,sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent;overscroll-behavior:none}
button{font-family:inherit;color:inherit;font-size:inherit}
button:focus-visible,[role=button]:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
h1,h2,p{margin:0}
@keyframes mdPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.18);opacity:.7}}
@keyframes shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@keyframes rise{from{transform:translateY(100%)}to{transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes scanline{0%{top:8%}50%{top:88%}100%{top:8%}}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(91,63,214,.45)}100%{box-shadow:0 0 0 28px rgba(91,63,214,0)}}
@keyframes pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

/* ---------- frame ---------- */
html,body{height:100%}
#stage{height:100%;overflow:hidden;display:flex;align-items:center;justify-content:center}
#frame{position:relative;width:100vw;height:100%;background:var(--bg);overflow:hidden;display:flex;flex-direction:column;flex:none}
#statusbar{display:none}
.framed #frame{width:390px;height:844px;border-radius:44px;box-shadow:0 0 0 10px #1E1B3A,0 30px 80px rgba(30,27,58,.25);transform-origin:center}
.framed #statusbar{height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 28px;font-size:15px;font-weight:600}
.sb-right{display:flex;align-items:flex-end;gap:2px;height:11px}
.sb-right i{width:3px;background:var(--ink);border-radius:1px;display:block}
.sb-right b{width:24px;height:11px;border-radius:3px;background:var(--ink);margin-left:5px;display:block}
#scroll{flex:1;overflow-y:auto;scrollbar-width:none;padding:8px 20px 104px;padding-top:max(8px,env(safe-area-inset-top))}
#scroll::-webkit-scrollbar{display:none}
#scroll.no-nav{padding-bottom:24px}
.screen{display:flex;flex-direction:column;animation:fade .18s ease}

/* ---------- shared ---------- */
.ico{width:44px;height:44px;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center}
.t-money{--fg:var(--money);--tb:var(--money-t)} .t-phone{--fg:var(--phone);--tb:var(--phone-t)}
.t-safety{--fg:var(--safety);--tb:var(--safety-t)} .t-learn{--fg:var(--brand);--tb:var(--brand-t)}
.t-danger{--fg:var(--danger);--tb:var(--danger-t)}
.tint{background:var(--tb);color:var(--fg)}
.spk{width:56px;height:56px;flex:none;padding:0;background:none;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.spk>span{width:40px;height:40px;border-radius:999px;background:var(--tb,var(--brand-t));color:var(--fg,var(--brand));display:flex;align-items:center;justify-content:center}
.is-speaking m-icon[name="volume-2"]{animation:mdPulse .9s ease-in-out infinite}
.pill{display:flex;align-items:center;gap:6px;height:40px;padding:0 16px;border-radius:999px;background:var(--brand-t);color:var(--brand);font-size:1rem;font-weight:600;white-space:nowrap}
.pill-btn{flex:none;height:56px;padding:0;background:none;border:0;cursor:pointer;display:flex;align-items:center}
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}

.top{display:flex;align-items:center;justify-content:space-between;min-height:56px}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:40px;height:40px;border-radius:10px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;line-height:1;padding-top:2px}
.brand-name{font-size:1.375rem;font-weight:800;line-height:1}
.lang-btn{display:flex;align-items:center;gap:6px;height:40px;padding:0 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:.875rem;font-weight:600;cursor:pointer}
.lang-btn:active{background:var(--brand-t)}
.hello{margin-top:12px;font-size:1.875rem;font-weight:800;line-height:1.2;text-wrap:pretty}
.subrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.sub{font-size:1.0625rem;color:var(--muted);line-height:1.45;text-wrap:pretty}

.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.tile{min-height:140px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:14px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;cursor:pointer;transition:transform .1s}
.tile:active{transform:scale(.98)}
.tile .head{display:flex;align-items:flex-start;justify-content:space-between}
.tile .big{width:60px;height:60px;border-radius:16px;display:flex;align-items:center;justify-content:center}
.tile .spk{margin:-8px -8px 0 0}
.tile-title{font-size:1.5rem;font-weight:800;line-height:1.1}
.h2{margin:20px 0 10px;font-size:1.1875rem;font-weight:700}

.list{display:flex;flex-direction:column;gap:12px}
.row{min-height:64px;display:flex;align-items:center;gap:14px;padding:8px 8px 8px 10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);cursor:pointer;transition:transform .1s}
.row:active{transform:scale(.99)}
.row-title{flex:1;min-width:0;font-size:1.0625rem;font-weight:600;line-height:1.3}
.row-sub{display:block;font-size:.875rem;font-weight:500;color:var(--muted)}
.chev{color:var(--muted);margin-right:4px}
.done-badge{width:28px;height:28px;flex:none;margin-right:2px;border-radius:999px;background:var(--money);color:#fff;display:flex;align-items:center;justify-content:center}

.hdr{display:flex;align-items:center;gap:6px;min-height:56px}
.back{width:56px;height:56px;flex:none;margin-left:-8px;padding:0;background:none;border:0;cursor:pointer;display:flex;align-items:center;justify-content:center}
.back>span{width:40px;height:40px;border-radius:999px;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center}
.hdr h1{flex:1;min-width:0;font-size:1.75rem;font-weight:800;line-height:1.15;text-wrap:pretty}
.hdr-sub{margin:2px 0 16px;font-size:1.0625rem;line-height:1.45;color:var(--muted);text-wrap:pretty}

.progress{background:var(--brand-t);border-radius:20px;padding:16px 16px 18px;display:flex;flex-direction:column;gap:12px}
.progress b{font-size:1.0625rem}
.bar{height:8px;border-radius:999px;background:#fff;overflow:hidden}
.bar>i{display:block;height:100%;background:var(--brand);border-radius:999px;transition:width .4s ease}

.btn{min-height:56px;border-radius:16px;border:0;padding:0 20px;font-size:1.125rem;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;width:100%;transition:transform .1s,background .15s}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--brand);color:#fff}.btn-primary:hover{background:var(--brand-d)}
.btn-green{background:var(--money);color:#fff}
.btn-danger{background:var(--danger);color:#fff}
.btn-outline{background:#fff;color:var(--brand);border:2px solid var(--brand)}
.btn-ghost{background:var(--brand-t);color:var(--brand)}
.btn[disabled]{opacity:.45;pointer-events:none}
.btns{display:flex;gap:10px;margin-top:16px}
.stack{display:flex;flex-direction:column;gap:10px;margin-top:16px}

/* ---------- FAB / nav ---------- */
.fab{position:absolute;right:16px;bottom:88px;height:56px;padding:0 24px 0 20px;border:0;border-radius:999px;background:var(--brand);color:#fff;box-shadow:0 6px 18px rgba(91,63,214,.35);display:flex;align-items:center;gap:8px;font-size:1.1875rem;font-weight:700;cursor:pointer;z-index:5}
.fab:hover{background:var(--brand-d)}.fab:active{transform:scale(.97)}
#nav{flex:none;height:72px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);z-index:4;padding-bottom:env(safe-area-inset-bottom);box-sizing:content-box}
#nav.hidden{display:none}
#nav button{border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--ink2)}
#nav button span:first-child{width:56px;height:32px;border-radius:999px;display:flex;align-items:center;justify-content:center}
#nav button span:last-child{font-size:.875rem;font-weight:500;line-height:1.2}
#nav button[aria-current=page]{color:var(--brand)}
#nav button[aria-current=page] span:first-child{background:var(--brand-t)}
#nav button[aria-current=page] span:last-child{font-weight:700}

/* ---------- lesson ---------- */
.steprow{display:flex;align-items:center;justify-content:space-between;margin:8px 0 10px}
.steprow b{font-size:1rem;color:var(--muted);font-weight:600}
.dots{display:flex;gap:6px}
.dots i{width:8px;height:8px;border-radius:999px;background:var(--line)}
.dots i.on{background:var(--fg);width:22px}
.dots i.past{background:var(--fg);opacity:.45}
.stagecard{position:relative;height:210px;border-radius:20px;background:var(--tb);overflow:hidden;display:flex;align-items:center;justify-content:center}
.mini-phone{width:112px;height:180px;border-radius:20px;background:#fff;border:5px solid var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--fg);box-shadow:0 10px 24px rgba(30,27,58,.15);animation:pop .35s ease}
.mini-phone .num{font-size:2rem;font-weight:800;line-height:1}
.stagecard.has-video{height:auto;padding:14px 0 50px}
.vphone{width:160px;aspect-ratio:360/772;border-radius:22px;border:5px solid var(--ink);overflow:hidden;background:#000;box-shadow:0 10px 24px rgba(30,27,58,.18);animation:pop .35s ease}
.vphone video{display:block;width:100%;height:100%;object-fit:cover}
.stage-tag{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.85);font-size:.8rem;font-weight:600;color:var(--ink2)}
.stepcard{margin-top:14px;padding:18px;display:flex;gap:10px;align-items:flex-start}
.stepcard p{flex:1;font-size:1.375rem;font-weight:700;line-height:1.35;text-wrap:pretty}
.stepcard .spk{margin:-8px -8px -8px 0}

/* ---------- practice / simulators ---------- */
.banner{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:var(--money-t);color:var(--money);font-weight:700;font-size:.95rem;margin-bottom:12px}
.coach{display:flex;align-items:center;gap:8px;padding:12px 8px 12px 16px;margin-bottom:12px;border-radius:16px;background:var(--brand-t)}
.coach p{flex:1;font-size:1.125rem;font-weight:700;line-height:1.35}
.coach.err{background:var(--danger-t);color:var(--danger);animation:shake .4s}
.coach.ok{background:var(--money-t);color:var(--money)}
.fakeapp{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}
.fakeapp-bar{height:48px;background:#2B2A4C;color:#fff;display:flex;align-items:center;gap:8px;padding:0 16px;font-weight:700;font-size:1rem}
.fakeapp-bar small{margin-left:auto;font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.18)}
.fakeapp-body{padding:14px}
.contact{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;border:1px solid var(--line);margin-bottom:10px;cursor:pointer;background:#fff;width:100%;text-align:left}
.contact:active{background:var(--brand-t)}
.avatar{width:44px;height:44px;border-radius:999px;background:var(--brand-t);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.2rem;flex:none}
.contact b{display:block;font-size:1.0625rem}
.contact small{color:var(--muted);font-size:.85rem}
.amount{display:flex;align-items:baseline;justify-content:center;gap:4px;padding:10px 0 14px;font-size:2.6rem;font-weight:800}
.amount small{font-size:1.4rem;color:var(--muted)}
.amount.empty{color:#B9B5CC}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.keypad button{height:58px;border-radius:14px;border:0;background:var(--bg);font-size:1.5rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center}
.keypad button:active{background:var(--brand-t)}
.keypad .ok{background:var(--brand);color:#fff}
.pin-dots{display:flex;justify-content:center;gap:16px;padding:12px 0 18px}
.pin-dots i{width:18px;height:18px;border-radius:999px;border:2px solid var(--ink2)}
.pin-dots i.on{background:var(--ink);border-color:var(--ink)}
.pin-dots.err{animation:shake .4s}
.summary{display:flex;flex-direction:column;gap:10px;padding:6px 2px 4px}
.summary div{display:flex;justify-content:space-between;gap:12px;font-size:1.0625rem}
.summary span{color:var(--muted)}
.summary b{text-align:right}
.success{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:18px 6px}
.success .tick{width:88px;height:88px;border-radius:999px;background:var(--money);color:#fff;display:flex;align-items:center;justify-content:center;animation:pop .45s ease}
.success b{font-size:1.5rem;line-height:1.3}
.success p{color:var(--muted)}
.bigbal{font-size:2.4rem;font-weight:800;color:var(--money)}
.viewfinder{position:relative;width:220px;height:220px;margin:6px auto 12px;border-radius:18px;background:#16152B;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden}
.viewfinder svg{width:150px;height:150px;background:#fff;padding:8px;border-radius:6px}
.viewfinder .corner{position:absolute;width:34px;height:34px;border:4px solid #fff}
.viewfinder .c1{top:14px;left:14px;border-right:0;border-bottom:0;border-radius:10px 0 0 0}
.viewfinder .c2{top:14px;right:14px;border-left:0;border-bottom:0;border-radius:0 10px 0 0}
.viewfinder .c3{bottom:14px;left:14px;border-right:0;border-top:0;border-radius:0 0 0 10px}
.viewfinder .c4{bottom:14px;right:14px;border-left:0;border-top:0;border-radius:0 0 10px 0}
.viewfinder .line{position:absolute;left:10%;right:10%;height:3px;background:#5BE38A;box-shadow:0 0 12px #5BE38A;animation:scanline 2.2s ease-in-out infinite}
.center-note{text-align:center;color:var(--muted);font-weight:600}
.msg{border-radius:16px;border:1px solid var(--line);background:#fff;overflow:hidden}
.msg-from{display:flex;align-items:center;gap:8px;padding:12px 14px;background:var(--bg);font-weight:700}
.msg-text{padding:16px 14px;font-size:1.1875rem;line-height:1.45}
.verdict{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.qcount{font-weight:600;color:var(--muted);margin-bottom:8px}

/* ---------- sheets ---------- */
.scrim{position:absolute;inset:0;background:rgba(30,27,58,.45);z-index:20;display:flex;align-items:flex-end;animation:fade .15s}
.sheet{width:100%;max-height:92%;overflow-y:auto;background:#fff;border-radius:28px 28px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom));animation:rise .22s ease}
.grab{width:44px;height:5px;border-radius:999px;background:var(--line);margin:0 auto 12px}
.sheet-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.sheet-hd h2{font-size:1.375rem;font-weight:800}
.x{width:48px;height:48px;border:0;border-radius:999px;background:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer}
.langopt{width:100%;display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;border:2px solid var(--line);background:#fff;margin-bottom:10px;cursor:pointer;text-align:left}
.langopt .glyph{width:52px;height:52px;border-radius:14px;background:var(--brand-t);color:var(--brand);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.4rem;flex:none}
.langopt b{display:block;font-size:1.3rem;line-height:1.2}
.langopt small{color:var(--muted);font-size:.9rem}
.langopt .tickc{margin-left:auto;width:30px;height:30px;border-radius:999px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center}
.langopt.on{border-color:var(--brand);background:#FBFAFF}
.mic{width:112px;height:112px;margin:10px auto 14px;border-radius:999px;border:0;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mic.live{animation:ring 1.2s ease-out infinite}
.voice-status{text-align:center;font-size:1.25rem;font-weight:700;min-height:2.2em;text-wrap:pretty}
.voice-heard{text-align:center;color:var(--muted);margin-top:4px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.chip{border:1px solid var(--line);background:var(--bg);border-radius:999px;padding:10px 14px;font-size:1rem;font-weight:600;cursor:pointer}
.chip:active{background:var(--brand-t)}
.minitiles{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}
.minitile{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;border:1px solid var(--line);background:#fff;font-weight:700;font-size:1.0625rem;cursor:pointer}
.label{font-size:.95rem;font-weight:700;color:var(--muted);margin:18px 0 8px}

/* ---------- profile / history ---------- */
.me{display:flex;align-items:center;gap:14px;padding:16px;margin-top:8px}
.me .avatar{width:60px;height:60px;font-size:1.6rem}
.me b{font-size:1.3rem;display:block}
.me small{color:var(--muted);font-size:1rem}
.setting{padding:14px 16px;margin-top:12px}
.setting>b{display:block;font-size:1.0625rem;margin-bottom:10px}
.seg{display:flex;gap:6px;background:var(--bg);padding:4px;border-radius:14px}
.seg button{flex:1;min-height:48px;border:0;border-radius:11px;background:none;font-weight:600;font-size:1rem;cursor:pointer;padding:0 6px}
.seg button[aria-pressed=true]{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(30,27,58,.12);font-weight:800}
.toggle-row{display:flex;align-items:center;gap:12px;cursor:pointer}
.toggle-row>b{flex:1;font-size:1.0625rem;margin:0}
.switch{width:56px;height:32px;border-radius:999px;background:#CFCBE0;position:relative;flex:none;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:999px;background:#fff;transition:left .15s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.switch.on{background:var(--brand)}.switch.on::after{left:27px}
.helpline{display:flex;align-items:center;gap:12px;padding:14px;margin-top:12px;background:var(--danger-t);border-color:#F6C9C9}
.helpline b{flex:1;color:var(--danger);font-size:1.0625rem;line-height:1.3}
.helpline .btn{width:auto;min-height:48px}
.day{font-size:.95rem;font-weight:700;color:var(--muted);margin:16px 0 8px}
.empty{margin-top:24px;padding:32px 20px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.empty p{font-size:1.1875rem;line-height:1.45;color:var(--ink2)}

#toast{position:absolute;left:16px;right:16px;bottom:96px;z-index:30;padding:14px 16px;border-radius:14px;background:var(--ink);color:#fff;font-weight:600;opacity:0;transform:translateY(10px);transition:all .2s;pointer-events:none}
#toast.show{opacity:1;transform:none}
