:root{
  --bg:#0A0913;--surface:#12101D;--card:#171427;--card2:#1E1A32;--line:rgba(255,255,255,.08);
  --text:#F4F2FF;--muted:#A19CBD;--dim:#6F6A92;
  --v1:#7C3AED;--v2:#A855F7;--cy:#22D3EE;
  --grad:linear-gradient(135deg,#7C3AED 0%,#A855F7 55%,#22D3EE 100%);
  --grad2:linear-gradient(135deg,#6D28D9 0%,#9333EA 60%,#C026D3 100%);
  --ok:#22C55E;--warn:#F59E0B;--bad:#F43F5E;--tg:#2AABEE;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);overflow-x:hidden}
body{font-family:'Cairo',system-ui,sans-serif;color:var(--text);background:radial-gradient(360px 360px at 0 0,rgba(124,58,237,.34),transparent 70%),radial-gradient(320px 320px at 100% 420px,rgba(34,211,238,.10),transparent 70%),var(--bg);background-repeat:no-repeat;width:390px;min-height:844px;margin:0 auto;display:flex;flex-direction:column;position:relative;overflow-x:clip;-webkit-font-smoothing:antialiased;line-height:1.5}
main{flex:1;padding:14px 16px 24px;position:relative;z-index:1}
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:0;cursor:pointer;color:inherit;background:none}
input{font-family:inherit;color:var(--text)}
svg{flex-shrink:0}
.num{direction:ltr;unicode-bidi:isolate;display:inline-block}
.muted{color:var(--muted)} .dim{color:var(--dim)}
.gtext{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- header ---------- */
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:42px;height:42px;border-radius:14px;background:var(--grad);display:grid;place-items:center;box-shadow:0 8px 24px -6px rgba(168,85,247,.7)}
.logo svg{width:22px;height:22px}
.brand b{display:block;font-size:19px;font-weight:900;letter-spacing:.5px;line-height:1.1;direction:ltr;text-align:right}
.brand small{display:block;font-size:11px;color:var(--muted);font-weight:600}
.top-actions{display:flex;align-items:center;gap:8px}
.wchip{display:flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;border-radius:14px;background:var(--card);border:1px solid rgba(168,85,247,.35);box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.wchip .wi{width:28px;height:28px;border-radius:9px;background:var(--grad);display:grid;place-items:center}
.wchip .wi svg{width:16px;height:16px}
.wchip b{display:block;font-size:14px;font-weight:800;line-height:1.1}
.wchip small{display:block;font-size:10.5px;color:var(--muted);line-height:1.2}
.ib{width:40px;height:40px;border-radius:13px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;position:relative}
.ib svg{width:20px;height:20px}
.ib .dot{position:absolute;top:9px;left:10px;width:8px;height:8px;border-radius:50%;background:var(--bad);box-shadow:0 0 0 2px var(--card)}
.pagehead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.pagehead h1{font-size:20px;font-weight:800}
.pagehead .sp{width:40px}

/* ---------- common ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px}
.sec{display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.sec h3{font-size:16.5px;font-weight:800}
.sec a{font-size:12.5px;color:var(--v2);font-weight:700;display:flex;align-items:center;gap:2px}
.sec a svg{width:14px;height:14px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:54px;border-radius:16px;background:var(--grad);font-size:16px;font-weight:800;color:#fff;box-shadow:0 12px 30px -10px rgba(168,85,247,.8)}
.btn svg{width:20px;height:20px}
.btn.ghost{background:var(--card2);box-shadow:none;border:1px solid var(--line);font-size:14px;height:46px}
.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap}
.chip svg{width:12px;height:12px}
.chip.ok{background:rgba(34,197,94,.14);color:#4ADE80}
.chip.warn{background:rgba(245,158,11,.14);color:#FBBF24}
.chip.bad{background:rgba(244,63,94,.14);color:#FB7185}
.chip.v{background:rgba(168,85,247,.16);color:#C4B5FD}
.chip.cy{background:rgba(34,211,238,.13);color:#67E8F9}
.field{display:flex;align-items:center;gap:10px;height:50px;padding:0 14px;border-radius:15px;background:var(--surface);border:1px solid var(--line)}
.field input{flex:1;min-width:0;background:none;border:0;outline:0;font-size:14.5px}
.field input::placeholder{color:var(--dim)}
.field svg{width:19px;height:19px;color:var(--dim)}
.copy{display:inline-flex;align-items:center;gap:5px;height:34px;padding:0 12px;border-radius:11px;background:rgba(168,85,247,.16);color:#D8B4FE;font-size:12.5px;font-weight:700;white-space:nowrap}
.copy svg{width:15px;height:15px}
.label{font-size:13px;color:var(--muted);font-weight:700;margin-bottom:8px;display:block}

/* ---------- search ---------- */
.greet h2{font-size:21px;font-weight:800;line-height:1.35}
.greet p{font-size:13.5px;color:var(--muted);margin-bottom:14px}
.search{display:flex;align-items:center;gap:10px;height:52px;padding:0 8px 0 14px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.search svg{width:20px;height:20px;color:var(--dim)}
.search span{flex:1;font-size:14px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search .flt{flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:var(--card2);display:grid;place-items:center}
.search .flt svg{color:var(--text);width:18px;height:18px}

/* ---------- flash ---------- */
.flash{margin-top:16px;position:relative;overflow:hidden;border-radius:22px;padding:18px;background:linear-gradient(125deg,#5B21B6 0%,#9333EA 45%,#DB2777 100%);box-shadow:0 16px 40px -14px rgba(219,39,119,.55)}
.flash::before{content:"";position:absolute;left:-40px;bottom:-60px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.08)}
.flash::after{content:"";position:absolute;left:40px;top:-70px;width:140px;height:140px;border-radius:50%;background:rgba(34,211,238,.18)}
.flash .ftag{display:inline-flex;align-items:center;gap:4px;background:rgba(0,0,0,.25);padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;color:#FDE68A}
.flash .ftag svg{width:13px;height:13px}
.flash h3{font-size:20px;font-weight:900;margin:8px 0 2px;line-height:1.35;position:relative;z-index:1}
.flash p{font-size:12.5px;color:rgba(255,255,255,.82);position:relative;z-index:1}
.flash .frow{display:flex;align-items:flex-end;justify-content:space-between;margin-top:14px;position:relative;z-index:1}
.cd{display:flex;gap:6px;direction:ltr}
.cd div{background:rgba(10,9,19,.45);border:1px solid rgba(255,255,255,.15);border-radius:11px;width:48px;text-align:center;padding:4px 0 3px}
.cd b{display:block;font-size:19px;font-weight:900;line-height:1.1;font-variant-numeric:tabular-nums}
.cd small{display:block;font-size:10px;color:rgba(255,255,255,.7);font-family:'Cairo'}
.flash .fbtn{background:#fff;color:#5B21B6;font-weight:800;font-size:13.5px;padding:9px 16px;border-radius:12px;white-space:nowrap}
.flash .fart{position:absolute;left:18px;top:18px;width:62px;height:62px;border-radius:18px;background:linear-gradient(135deg,#10A37F,#065F46);display:grid;place-items:center;font-weight:900;font-size:18px;transform:rotate(-10deg);box-shadow:0 10px 24px rgba(0,0,0,.35);z-index:1;direction:ltr}

/* ---------- categories ---------- */
.cats{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
.cats::-webkit-scrollbar{display:none}
.cat{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:6px;width:72px}
.cat .ct{width:60px;height:60px;border-radius:19px;display:grid;place-items:center;background:var(--card);border:1px solid var(--line)}
.cat .ct svg{width:26px;height:26px}
.cat span{font-size:12px;font-weight:700;color:var(--muted);white-space:nowrap}
.cat.on .ct{background:var(--grad);border-color:transparent;box-shadow:0 10px 22px -8px rgba(168,85,247,.8)}
.cat.on span{color:#fff}

/* ---------- product grid ---------- */
.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pc{background:var(--card);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:flex;flex-direction:column}
.pimg{height:112px;position:relative;display:grid;place-items:center;background:linear-gradient(140deg,var(--c1),var(--c2))}
.pimg::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 15%,rgba(255,255,255,.22),transparent 55%)}
.glyph{width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.16);backdrop-filter:blur(4px);border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;font-weight:900;font-size:17px;letter-spacing:.3px;direction:ltr;position:relative;z-index:1}
.glyph svg{width:28px;height:28px}
.glyph .brandlogo{width:32px;height:32px;object-fit:contain;display:block}
.pimg .bdg{position:absolute;top:8px;right:8px;z-index:2}
.pimg .off{position:absolute;top:8px;left:8px;z-index:2;background:var(--bad);color:#fff;font-size:11px;font-weight:800;padding:2px 8px;border-radius:8px;direction:ltr}
.bdg{display:inline-flex;align-items:center;gap:3px;padding:2px 8px;border-radius:9px;font-size:10.5px;font-weight:800;backdrop-filter:blur(6px)}
.bdg svg{width:11px;height:11px}
.bdg.fast{background:rgba(10,9,19,.62);color:#5EEAD4}
.bdg.man{background:rgba(10,9,19,.62);color:#FCD34D}
.pbody{padding:10px 12px 12px;display:flex;flex-direction:column;gap:2px;flex:1}
.pbody h4{font-size:14.5px;font-weight:800;line-height:1.3;direction:ltr;text-align:right}
.pbody .sub{font-size:11.5px;color:var(--muted)}
.price{display:flex;align-items:baseline;gap:6px;margin-top:4px}
.price b{font-size:17px;font-weight:900}
.price s{font-size:11.5px;color:var(--dim)}
.egp{font-size:11.5px;color:var(--muted);font-weight:600;margin-top:-2px}
.stock{display:flex;align-items:center;gap:6px;margin-top:8px}
.stock .bar{flex:1;height:5px;border-radius:5px;background:rgba(255,255,255,.08);overflow:hidden}
.stock .bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#22D3EE,#22C55E)}
.stock.low .bar i{background:linear-gradient(90deg,#F43F5E,#F59E0B)}
.stock span{font-size:10.5px;color:var(--muted);font-weight:700;white-space:nowrap}
.stock.low span{color:#FB923C}
.pc .add{margin-top:10px;height:36px;border-radius:11px;background:rgba(168,85,247,.16);color:#E9D5FF;font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:5px}
.pc .add svg{width:15px;height:15px}
.pc.out{opacity:.55}
.pc.out .add{background:rgba(255,255,255,.06);color:var(--dim)}

/* ---------- bottom nav ---------- */
.nav{position:sticky;bottom:0;z-index:20;display:flex;justify-content:space-around;padding:8px 6px 20px;background:rgba(13,11,23,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line)}
.nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--dim)}
.nav .ni{width:46px;height:32px;border-radius:12px;display:grid;place-items:center}
.nav svg{width:22px;height:22px}
.nav a.on{color:#fff}
.nav a.on .ni{background:var(--grad);box-shadow:0 8px 18px -6px rgba(168,85,247,.9)}

/* ---------- product page ---------- */
.hero{height:230px;border-radius:26px;position:relative;overflow:hidden;display:grid;place-items:center;background:linear-gradient(140deg,#10A37F 0%,#065F46 60%,#0B3B31 100%);box-shadow:0 20px 40px -18px rgba(16,163,127,.6)}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 10%,rgba(255,255,255,.25),transparent 50%),radial-gradient(circle at 10% 90%,rgba(34,211,238,.25),transparent 45%)}
.hero .glyph{width:96px;height:96px;border-radius:28px;font-size:30px}
.hero .glyph svg{width:48px;height:48px}
.hero .glyph .brandlogo{width:52px;height:52px}
.hero .hb{position:absolute;top:14px;right:14px;display:flex;gap:6px;z-index:2}
.hero .hb2{position:absolute;bottom:14px;left:14px;z-index:2}
.dots{display:flex;gap:5px;justify-content:center;margin-top:10px}
.dots i{width:6px;height:6px;border-radius:6px;background:rgba(255,255,255,.2)}
.dots i.on{width:18px;background:var(--v2)}
.ptitle{margin-top:14px;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ptitle h1{font-size:22px;font-weight:900;line-height:1.3}
.ptitle h1 .en{direction:ltr;unicode-bidi:isolate}
.ptitle p{font-size:13px;color:var(--muted)}
.bigprice{display:flex;align-items:center;justify-content:space-between;margin-top:12px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(34,211,238,.08));border:1px solid rgba(168,85,247,.3)}
.bigprice .pv{display:flex;align-items:baseline;gap:8px}
.bigprice b{font-size:28px;font-weight:900;line-height:1}
.bigprice s{font-size:14px;color:var(--dim)}
.bigprice .eg{font-size:13px;color:var(--muted);font-weight:700;margin-top:4px}
.desc{font-size:13.5px;color:#CFCBE6;line-height:1.8;margin-top:14px}
.feat{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.feat div{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:#DDD9F2}
.feat svg{width:16px;height:16px;color:var(--ok)}
.deliv{display:flex;gap:12px;align-items:center;margin-top:16px}
.deliv .di{width:44px;height:44px;border-radius:14px;background:rgba(34,211,238,.13);color:#67E8F9;display:grid;place-items:center}
.deliv .di svg{width:22px;height:22px}
.deliv b{font-size:14.5px;font-weight:800;display:block}
.deliv p{font-size:12px;color:var(--muted)}
.qty{display:flex;align-items:center;justify-content:space-between}
.stepper{display:flex;align-items:center;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px}
.stepper button{width:38px;height:38px;border-radius:11px;background:var(--card2);display:grid;place-items:center}
.stepper button.plus{background:var(--grad)}
.stepper button svg{width:18px;height:18px}
.stepper b{width:36px;text-align:center;font-size:18px;font-weight:900}
.tiers{display:flex;gap:8px;margin-top:12px}
.tier{flex:1;border-radius:13px;padding:8px 6px;text-align:center;background:var(--surface);border:1px dashed rgba(255,255,255,.12)}
.tier b{display:block;font-size:13.5px;font-weight:800}
.tier small{font-size:11px;color:var(--muted)}
.tier.on{border:1px solid rgba(34,197,94,.5);background:rgba(34,197,94,.08)}
.tier.on b{color:#4ADE80}
.note{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted);margin-top:10px;line-height:1.6}
.note svg{width:16px;height:16px;margin-top:2px;color:var(--v2)}
.coupon{display:flex;gap:8px}
.coupon .field{flex:1}
.coupon .apply{height:50px;padding:0 18px;border-radius:15px;background:var(--card2);border:1px solid rgba(168,85,247,.4);font-weight:800;font-size:14px;color:#E9D5FF}
.okline{display:flex;align-items:center;gap:6px;color:#4ADE80;font-size:12.5px;font-weight:700;margin-top:8px}
.okline svg{width:15px;height:15px}
.sum .row{display:flex;justify-content:space-between;font-size:13.5px;padding:5px 0;color:#D6D2EC}
.sum .row.disc{color:#4ADE80}
.sum .row.tot{border-top:1px dashed var(--line);margin-top:6px;padding-top:12px;font-size:16px;font-weight:900;color:#fff}
.sum .row.tot small{display:block;font-size:12px;color:var(--muted);font-weight:700;text-align:left}
.warnbox{display:flex;gap:10px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.35);margin-top:14px}
.warnbox .wi{width:36px;height:36px;border-radius:11px;background:rgba(245,158,11,.18);color:#FBBF24;display:grid;place-items:center}
.warnbox .wi svg{width:19px;height:19px}
.warnbox .wt{flex:1;font-size:12.5px;color:#FDE68A;line-height:1.55}
.warnbox .wt b{color:#fff}
.warnbox a{background:#F59E0B;color:#1A1204;font-weight:800;font-size:12.5px;padding:8px 12px;border-radius:11px;white-space:nowrap}
.buybar{position:sticky;bottom:0;z-index:20;padding:12px 16px 22px;background:rgba(13,11,23,.95);backdrop-filter:blur(18px);border-top:1px solid var(--line);display:flex;gap:10px;align-items:center}
.buybar .tt{min-width:96px}
.buybar .tt small{display:block;font-size:11px;color:var(--muted)}
.buybar .tt b{font-size:19px;font-weight:900}
.buybar .btn{flex:1}

/* ---------- wallet ---------- */
.balcard{position:relative;overflow:hidden;border-radius:26px;padding:20px;background:var(--grad2);box-shadow:0 20px 40px -16px rgba(147,51,234,.7)}
.balcard::before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;left:-70px;top:-90px;background:rgba(255,255,255,.1)}
.balcard::after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;left:60px;bottom:-100px;background:rgba(34,211,238,.25)}
.balcard>*{position:relative;z-index:1}
.balcard .bl{font-size:13px;color:rgba(255,255,255,.8);font-weight:600;display:flex;justify-content:space-between;align-items:center}
.balcard .bv{font-size:40px;font-weight:900;line-height:1.15;margin-top:6px}
.balcard .be{font-size:14px;color:rgba(255,255,255,.85);font-weight:700}
.balcard .brow{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.balcard .brow small{font-size:11.5px;color:rgba(255,255,255,.75)}
.pendchip{display:inline-flex;align-items:center;gap:6px;background:rgba(10,9,19,.35);border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:700;color:#FDE68A}
.pendchip i{width:7px;height:7px;border-radius:50%;background:#FBBF24;box-shadow:0 0 0 3px rgba(251,191,36,.25)}
.step{display:flex;align-items:center;gap:8px;margin:22px 0 10px}
.step span{width:24px;height:24px;border-radius:8px;background:var(--grad);display:grid;place-items:center;font-size:13px;font-weight:900}
.step h3{font-size:15.5px;font-weight:800}
.methods{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mth{position:relative;display:flex;align-items:center;gap:10px;padding:12px;border-radius:17px;background:var(--card);border:1px solid var(--line)}
.mth .mi{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:13px;direction:ltr}
.mth .mi svg{width:21px;height:21px}
.mth b{display:block;font-size:13.5px;font-weight:800;line-height:1.3}
.mth small{display:block;font-size:10.5px;color:var(--muted);line-height:1.3}
.mth.on{border:1.5px solid var(--v2);background:linear-gradient(135deg,rgba(124,58,237,.18),rgba(23,20,39,1));box-shadow:0 0 0 4px rgba(168,85,247,.12)}
.mth .ck{position:absolute;top:-6px;left:-6px;width:22px;height:22px;border-radius:50%;background:var(--grad);display:grid;place-items:center;box-shadow:0 0 0 3px var(--bg)}
.mth .ck svg{width:13px;height:13px}
.amount{display:flex;align-items:center;gap:8px;height:64px;padding:0 16px;border-radius:18px;background:var(--surface);border:1.5px solid rgba(168,85,247,.45)}
.amount .cur{font-size:26px;font-weight:900;color:var(--v2)}
.amount .val{flex:1;font-size:30px;font-weight:900;direction:ltr;text-align:left}
.amount .u{font-size:13px;color:var(--muted);font-weight:700}
.quick{display:flex;gap:8px;margin-top:10px}
.quick span{flex:1;text-align:center;height:38px;line-height:38px;border-radius:12px;background:var(--card);border:1px solid var(--line);font-weight:800;font-size:14px;direction:ltr}
.quick span.on{background:rgba(168,85,247,.18);border-color:rgba(168,85,247,.55);color:#E9D5FF}
.topay{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:14px 16px;border-radius:16px;background:rgba(34,211,238,.08);border:1px solid rgba(34,211,238,.28)}
.topay span{font-size:13px;color:#A5F3FC;font-weight:700}
.topay b{font-size:22px;font-weight:900;color:#fff}
.topay small{display:block;font-size:11px;color:var(--muted);text-align:left}
.instr .acct{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:15px;background:var(--surface);border:1px dashed rgba(168,85,247,.45);margin:10px 0 12px}
.instr .acct small{display:block;font-size:11px;color:var(--muted)}
.instr .acct b{font-size:19px;font-weight:900;letter-spacing:1px;direction:ltr;display:block;text-align:right}
.instr ol{list-style:none;display:flex;flex-direction:column;gap:8px;counter-reset:s}
.instr li{display:flex;gap:8px;font-size:12.8px;color:#D6D2EC;line-height:1.6;counter-increment:s}
.instr li::before{content:counter(s);flex:0 0 20px;height:20px;border-radius:7px;background:rgba(168,85,247,.2);color:#D8B4FE;font-size:11.5px;font-weight:800;display:grid;place-items:center;margin-top:2px}
.upload{display:flex;align-items:center;gap:10px;height:56px;padding:0 14px;border-radius:15px;border:1.5px dashed rgba(255,255,255,.18);margin-top:10px;color:var(--muted);font-size:13px;font-weight:700}
.upload svg{width:22px;height:22px;color:var(--v2)}
.pending{border:1px solid rgba(245,158,11,.35);background:linear-gradient(135deg,rgba(245,158,11,.1),rgba(23,20,39,1))}
.pending .ph{display:flex;justify-content:space-between;align-items:center}
.pending .ph b{font-size:14.5px;font-weight:800}
.pending .ph small{display:block;font-size:11.5px;color:var(--muted)}
.track{display:flex;align-items:flex-start;margin-top:14px}
.track .t{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative;font-size:11px;font-weight:700;color:var(--dim);text-align:center}
.track .t i{width:24px;height:24px;border-radius:50%;background:var(--card2);border:2px solid rgba(255,255,255,.12);display:grid;place-items:center;position:relative;z-index:1}
.track .t i svg{width:13px;height:13px}
.track .t::before{content:"";position:absolute;top:11px;left:50%;width:100%;height:2px;background:rgba(255,255,255,.1)}
.track .t:first-child::before{display:none}
.track .t.done{color:#4ADE80}.track .t.done i{background:var(--ok);border-color:var(--ok)}
.track .t.done::before,.track .t.cur::before{background:var(--ok)}
.track .t.cur{color:#FBBF24}.track .t.cur i{background:rgba(245,158,11,.2);border-color:#F59E0B}
.track .t.cur i::after{content:"";width:8px;height:8px;border-radius:50%;background:#FBBF24}
.ledger{display:flex;flex-direction:column}
.lg{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.lg:last-child{border-bottom:0}
.lg .li{width:40px;height:40px;border-radius:13px;display:grid;place-items:center}
.lg .li svg{width:19px;height:19px}
.lg .li.in{background:rgba(34,197,94,.14);color:#4ADE80}
.lg .li.out{background:rgba(244,63,94,.12);color:#FB7185}
.lg .li.gift{background:rgba(168,85,247,.16);color:#D8B4FE}
.lg .li.pend{background:rgba(245,158,11,.14);color:#FBBF24}
.lg .lt{flex:1;min-width:0}
.lg .lt b{display:block;font-size:13.5px;font-weight:800}
.lg .lt small{display:block;font-size:11.5px;color:var(--muted)}
.lg .la{text-align:left}
.lg .la b{display:block;font-size:14.5px;font-weight:900;direction:ltr}
.lg .la small{display:block;font-size:11px;color:var(--muted)}
.plus{color:#4ADE80}.minus{color:#FB7185}.pendc{color:#FBBF24}

/* ---------- purchases ---------- */
.tabs{display:flex;gap:6px;padding:5px;border-radius:16px;background:var(--card);border:1px solid var(--line);margin-bottom:14px}
.tabs span{flex:1;text-align:center;height:38px;line-height:38px;border-radius:12px;font-size:13px;font-weight:800;color:var(--muted)}
.tabs span.on{background:var(--grad);color:#fff}
.tabs span em{font-style:normal;font-size:11px;opacity:.8}
.order{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:14px;margin-bottom:12px}
.order.open{border-color:rgba(34,197,94,.35);box-shadow:0 14px 34px -18px rgba(34,197,94,.45)}
.oh{display:flex;align-items:center;gap:12px}
.oh .oi{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;font-weight:900;font-size:14px;background:linear-gradient(140deg,var(--c1),var(--c2));direction:ltr}
.oh .oi svg{width:24px;height:24px}
.oh .oi .brandlogo{width:28px;height:28px}
.flash .fart .brandlogo{width:34px;height:34px}
.oh .ot{flex:1;min-width:0}
.oh .ot b{display:block;font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh .ot small{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oh .oa{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.oh .oa b{font-size:14.5px;font-weight:900;direction:ltr}
.creds{margin-top:14px;padding-top:14px;border-top:1px dashed var(--line)}
.creds h5{font-size:13px;font-weight:800;color:var(--muted);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.creds h5 svg{width:15px;height:15px;color:#4ADE80}
.cred{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--line);margin-bottom:8px}
.cred small{display:block;font-size:11px;color:var(--muted)}
.cred code{display:block;font-family:ui-monospace,'DejaVu Sans Mono',monospace;font-size:14px;font-weight:700;color:#fff;direction:ltr;text-align:right;letter-spacing:.3px}
.cred .acts{display:flex;gap:6px}
.cred .eye{width:34px;height:34px;border-radius:11px;background:var(--card2);display:grid;place-items:center}
.cred .eye svg{width:16px;height:16px;color:var(--muted)}
.expiry{padding:12px;border-radius:14px;background:rgba(34,197,94,.07);border:1px solid rgba(34,197,94,.22);margin-top:4px}
.expiry .er{display:flex;justify-content:space-between;align-items:center;font-size:12.5px}
.expiry .er b{font-weight:800}
.expiry .pb{height:6px;border-radius:6px;background:rgba(255,255,255,.08);margin:8px 0 4px;overflow:hidden}
.expiry .pb i{display:block;height:100%;width:94%;border-radius:6px;background:linear-gradient(90deg,#22C55E,#22D3EE);margin-right:auto}
.expiry small{font-size:11px;color:var(--muted)}
.oactions{display:flex;gap:8px;margin-top:12px}
.oactions .btn{height:42px;font-size:13px;border-radius:13px}
.pendnote{display:flex;gap:8px;align-items:center;margin-top:10px;padding:9px 12px;border-radius:12px;background:rgba(245,158,11,.08);font-size:12px;color:#FDE68A}
.pendnote svg{width:16px;height:16px;color:#FBBF24}
.chev{width:18px;height:18px;color:var(--dim)}

/* ---------- account ---------- */
.profile{display:flex;align-items:center;gap:14px}
.avatar{width:68px;height:68px;border-radius:22px;background:var(--grad);display:grid;place-items:center;font-size:24px;font-weight:900;position:relative;box-shadow:0 12px 26px -10px rgba(168,85,247,.8)}
.avatar .tgb{position:absolute;bottom:-4px;left:-4px;width:24px;height:24px;border-radius:50%;background:var(--tg);display:grid;place-items:center;box-shadow:0 0 0 3px var(--card)}
.avatar .tgb svg{width:13px;height:13px}
.profile h2{font-size:19px;font-weight:900;line-height:1.3}
.profile .un{font-size:13px;color:var(--muted);direction:ltr;display:inline-block}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px}
.stats div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:10px 6px;text-align:center}
.stats b{display:block;font-size:17px;font-weight:900;line-height:1.3}
.stats small{font-size:11px;color:var(--muted);font-weight:600}
.ref{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(124,58,237,.28),rgba(34,211,238,.1));border:1px solid rgba(168,85,247,.4)}
.ref .rh{display:flex;gap:12px;align-items:center}
.ref .rh .ri{width:46px;height:46px;border-radius:15px;background:var(--grad);display:grid;place-items:center}
.ref .rh .ri svg{width:23px;height:23px}
.ref .rh b{font-size:15.5px;font-weight:800;display:block}
.ref .rh small{font-size:12px;color:#D6D2EC}
.reflink{display:flex;align-items:center;gap:8px;padding:6px 6px 6px 6px;padding-right:12px;border-radius:14px;background:rgba(10,9,19,.55);border:1px solid var(--line);margin-top:14px}
.reflink code{flex:1;min-width:0;font-family:ui-monospace,'DejaVu Sans Mono',monospace;font-size:12.5px;direction:ltr;text-align:left;color:#E9D5FF;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.earn{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.earn div{border-radius:13px;background:rgba(10,9,19,.4);padding:8px;text-align:center}
.earn b{display:block;font-size:16px;font-weight:900}
.earn small{font-size:10.5px;color:var(--muted)}
.list{padding:4px 14px}
.it{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.it:last-child{border-bottom:0}
.it .ii{width:38px;height:38px;border-radius:12px;background:var(--card2);display:grid;place-items:center;color:#C4B5FD}
.it .ii svg{width:19px;height:19px}
.it .tx{flex:1;min-width:0}
.it .tx b{display:block;font-size:14px;font-weight:700}
.it .tx small{display:block;font-size:11.5px;color:var(--muted)}
.seg{display:flex;padding:3px;border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.seg span{padding:4px 12px;border-radius:9px;font-size:12.5px;font-weight:800;color:var(--muted)}
.seg span.on{background:var(--grad);color:#fff}
.tgl{width:46px;height:26px;border-radius:26px;background:var(--grad);position:relative}
.tgl::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff}
.it.danger .ii{background:rgba(244,63,94,.12);color:#FB7185}
.it.danger b{color:#FB7185}
.ver{text-align:center;font-size:11.5px;color:var(--dim);margin-top:16px}

/* ---------- login ---------- */
.login main{display:flex;flex-direction:column;padding:28px 22px 30px}
.lhero{text-align:center;margin-top:34px}
.lhero .biglogo{width:104px;height:104px;border-radius:32px;margin:0 auto;background:var(--grad);display:grid;place-items:center;box-shadow:0 0 0 10px rgba(168,85,247,.1),0 0 0 22px rgba(168,85,247,.05),0 24px 60px -10px rgba(168,85,247,.9)}
.lhero .biglogo svg{width:52px;height:52px}
.lhero h1{font-size:36px;font-weight:900;margin-top:30px;letter-spacing:1px;direction:ltr}
.lhero p{font-size:15px;color:var(--muted);margin-top:4px;line-height:1.7}
.floaters{position:relative;height:84px;margin:26px 0 8px}
.fl{position:absolute;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-weight:900;font-size:15px;direction:ltr;box-shadow:0 14px 30px -12px rgba(0,0,0,.6);border:1px solid rgba(255,255,255,.18)}
.fl svg{width:26px;height:26px}
.perks{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.perk{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--card);border:1px solid var(--line)}
.perk .pi{width:38px;height:38px;border-radius:12px;display:grid;place-items:center}
.perk .pi svg{width:19px;height:19px}
.perk b{display:block;font-size:14px;font-weight:800}
.perk small{display:block;font-size:12px;color:var(--muted)}
.tgbtn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:58px;border-radius:18px;background:linear-gradient(180deg,#37B6F5,#1E96D4);color:#fff;font-size:17px;font-weight:800;box-shadow:0 14px 34px -12px rgba(42,171,238,.85);margin-top:26px}
.tgbtn .tgi{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center}
.tgbtn svg{width:18px;height:18px}
.privacy{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--muted);margin-top:14px;line-height:1.7;padding:0 4px}
.privacy svg{width:16px;height:16px;color:#4ADE80;margin-top:3px}
.terms{text-align:center;font-size:11.5px;color:var(--dim);margin-top:auto;padding-top:22px}
.terms a{color:#C4B5FD;font-weight:700}

.oh .chev{margin-inline-start:2px}
