/* ===== App-level additions on top of the approved mockup CSS (styles.css is copied verbatim) ===== */
body{width:100%;max-width:480px;min-height:100vh;min-height:100dvh}
#app{display:contents}
main{padding-bottom:28px}
input,textarea{font-family:inherit}
button:disabled{opacity:.55;cursor:not-allowed}
a,button,.pc,.cat,.mth,.quick span,.tabs span,.seg span,.order .oh{cursor:pointer;-webkit-tap-highlight-color:transparent}
.nav{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
.buybar{padding-bottom:calc(16px + env(safe-area-inset-bottom))}

/* demo banner */
.demo-banner{position:sticky;top:0;z-index:40;text-align:center;font-size:11.5px;font-weight:800;color:#1A1204;background:repeating-linear-gradient(135deg,#FBBF24 0 14px,#F59E0B 14px 28px);padding:3px 8px;letter-spacing:.2px}

/* boot / loading */
.boot{display:grid;place-items:center;min-height:60vh}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid rgba(168,85,247,.25);border-top-color:var(--v2);animation:sp .8s linear infinite}
.btn .spin{width:20px;height:20px;border-width:2.5px;border-color:rgba(255,255,255,.35);border-top-color:#fff}
@keyframes sp{to{transform:rotate(360deg)}}

/* search input */
.search input{flex:1;min-width:0;background:none;border:0;outline:0;font-size:14px;color:var(--text)}
.search input::placeholder{color:var(--dim)}
.search .clr{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:var(--muted)}
.search .clr svg{width:16px;height:16px}
.search .flt.on{background:var(--grad)}
.filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.filters .chip{cursor:pointer;border:1px solid transparent}
.cat{background:none}
.empty{text-align:center;padding:34px 16px;color:var(--muted);font-size:13.5px}
.empty .ei{width:60px;height:60px;border-radius:19px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;margin:0 auto 12px;color:var(--v2)}
.empty .ei svg{width:26px;height:26px}
.empty b{display:block;color:var(--text);font-size:15px;margin-bottom:4px}
.empty .btn{margin-top:16px}
.resinfo{font-size:12px;color:var(--muted);margin:-4px 0 10px}

/* product page extras */
.hero{background:linear-gradient(140deg,var(--c1) 0%,var(--c2) 70%,#0A0913 130%)}
.coupon .field input{direction:ltr;text-align:right;font-weight:800;letter-spacing:1px;text-transform:uppercase}
.coupon .field input::placeholder{text-transform:none;letter-spacing:0;font-weight:500}
.errline{display:flex;align-items:center;gap:6px;color:#FB7185;font-size:12.5px;font-weight:700;margin-top:8px}
.errline svg{width:15px;height:15px}
.rmc{margin-inline-start:auto;font-size:12px;color:var(--muted);text-decoration:underline}
.outbox{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(244,63,94,.08);border:1px solid rgba(244,63,94,.3);margin-top:14px;font-size:12.5px;color:#FDA4AF}
.btn.gray{background:var(--card2);box-shadow:none;color:var(--muted)}
.pflash{display:flex;align-items:center;gap:8px;margin-top:10px;padding:8px 12px;border-radius:13px;background:linear-gradient(125deg,rgba(91,33,182,.45),rgba(219,39,119,.35));font-size:12.5px;font-weight:700}
.pflash svg{width:15px;height:15px;color:#FDE68A}
.pflash .num{font-variant-numeric:tabular-nums;font-weight:900;margin-inline-start:auto}

/* wallet extras */
.mth{text-align:right;width:100%}
.amount input{flex:1;min-width:0;background:none;border:0;outline:0;font-size:30px;font-weight:900;direction:ltr;text-align:left;color:var(--text)}
.quick span{user-select:none}
.upload{cursor:pointer}
.upload input{display:none}
.returnbox{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.28);margin-bottom:14px;font-size:12.5px;color:#A5F3FC}
.returnbox b{color:#fff}
.returnbox>svg{width:20px;height:20px;flex-shrink:0}
.returnbox span{flex:1;min-width:0}
.returnbox a{margin-inline-start:auto;background:var(--grad);color:#fff;font-weight:800;padding:8px 12px;border-radius:11px;white-space:nowrap}
.demoapprove{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px dashed rgba(245,158,11,.35)}
.demoapprove small{flex:1;font-size:11px;color:var(--muted);line-height:1.5}
.demobtn{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 12px;border-radius:11px;background:rgba(245,158,11,.18);border:1px dashed rgba(245,158,11,.6);color:#FDE68A;font-size:12.5px;font-weight:800;white-space:nowrap}
.demobtn svg{width:15px;height:15px}
.pending.ok{border-color:rgba(34,197,94,.35);background:linear-gradient(135deg,rgba(34,197,94,.1),rgba(23,20,39,1))}
.morebtn{display:block;width:100%;text-align:center;padding:10px 0 6px;font-size:12.5px;font-weight:800;color:var(--v2)}

/* orders */
.tabs span{cursor:pointer}
.order .creds{animation:fade .2s ease}
.order .chev{transition:transform .2s}
.order.open .chev{transform:rotate(180deg)}
.cred code{word-break:break-all}
.cred>div:first-child{min-width:0}
@keyframes fade{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* account */
.seg span{cursor:pointer}
.tgl.off{background:var(--card2)}
.tgl.off::after{left:auto;right:3px;background:var(--muted)}
.it{cursor:default}
.it.link{cursor:pointer}

/* login */
.login main{min-height:calc(100dvh - 22px)}
.tgbtn.soon{opacity:.6;margin-top:12px;height:50px;font-size:15px}
.tgbtn .soonb{font-size:11px;background:rgba(0,0,0,.25);padding:2px 8px;border-radius:999px}
.demo-login{margin-top:22px;height:58px;font-size:17px;border-radius:18px}

/* toasts */
#toasts{position:fixed;left:0;right:0;top:32px;z-index:80;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none;padding:0 16px}
.toast{max-width:440px;display:flex;align-items:center;gap:8px;padding:11px 16px;border-radius:14px;background:rgba(30,26,50,.97);border:1px solid rgba(168,85,247,.45);box-shadow:0 14px 34px -10px rgba(0,0,0,.7);font-size:13.5px;font-weight:700;animation:tin .22s ease;backdrop-filter:blur(10px)}
.toast svg{width:18px;height:18px;flex-shrink:0}
.toast.ok{border-color:rgba(34,197,94,.5)} .toast.ok svg{color:#4ADE80}
.toast.err{border-color:rgba(244,63,94,.55)} .toast.err svg{color:#FB7185}
.toast.info svg{color:#C4B5FD}
.toast.out{opacity:0;transform:translateY(-8px);transition:.25s}
@keyframes tin{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* bottom sheet */
.backdrop{position:fixed;inset:0;z-index:60;background:rgba(5,4,10,.66);backdrop-filter:blur(3px);animation:fade .18s ease;display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:480px;max-height:88vh;overflow:auto;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:26px 26px 0 0;padding:10px 18px calc(20px + env(safe-area-inset-bottom));animation:sup .25s cubic-bezier(.2,.9,.3,1)}
.sheet .grab{width:44px;height:5px;border-radius:5px;background:rgba(255,255,255,.18);margin:0 auto 12px}
.sheet h3{font-size:18px;font-weight:900;margin-bottom:4px}
.sheet .sub{font-size:13px;color:var(--muted);margin-bottom:14px}
.sheet .row2{display:flex;gap:10px;margin-top:16px}
.sheet .bigok{width:72px;height:72px;border-radius:24px;margin:6px auto 12px;display:grid;place-items:center;background:rgba(34,197,94,.14);color:#4ADE80}
.sheet .bigok svg{width:38px;height:38px}
.sheet .bigok.warn{background:rgba(245,158,11,.14);color:#FBBF24}
.sheet .center{text-align:center}
.opt{display:flex;align-items:center;justify-content:space-between;padding:12px 4px;border-bottom:1px solid var(--line);font-size:14px;font-weight:700;width:100%;text-align:right}
.opt:last-child{border-bottom:0}
.opt .rd{width:20px;height:20px;border-radius:50%;border:2px solid var(--dim)}
.opt.on .rd{border:6px solid var(--v2)}
@keyframes sup{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.loginbox{margin-top:18px}
.loginbox h3{font-size:20px}
.loginbox .sub{margin:6px 0 14px}
.loginsteps{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0 0 16px}
.loginsteps li{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--muted)}
.loginsteps b{width:26px;height:26px;border-radius:9px;display:grid;place-items:center;background:rgba(168,85,247,.16);color:#D8B4FE;font-size:13px;flex:none}
.loginbox .tgbtn{margin-top:0;text-decoration:none}
.codelabel{display:block;margin:16px 0 8px;font-size:13px;font-weight:800;color:var(--muted)}
.loginbox input{width:100%;height:56px;border-radius:16px;border:1px solid #2A2740;background:#120F22;color:#fff;font-size:24px;text-align:center;letter-spacing:8px}
.loginbox .btn{margin-top:12px}
