:root{
  --bg:#07101d;--card:#101c2e;--card2:#13243a;--line:#213149;--line2:#2a405e;
  --text:#f5f8ff;--muted:#8e9db2;--cyan:#42e8d2;--blue:#6d83ff;--danger:#ff647c;
  --warn:#ffca68;--ok:#59e6a5;--sheet:#0b1524
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;background:var(--tg-theme-bg-color,var(--bg));color:var(--tg-theme-text-color,var(--text));font-family:Tahoma,"Segoe UI",sans-serif;overflow-x:hidden}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
.shell{position:relative;z-index:1;max-width:680px;margin:auto;padding:calc(14px + env(safe-area-inset-top)) 16px calc(90px + env(safe-area-inset-bottom))}
.ambient{position:fixed;width:260px;height:260px;border-radius:50%;filter:blur(90px);opacity:.12;pointer-events:none}.a1{background:#00e8c7;top:-80px;right:-90px}.a2{background:#416cff;bottom:10%;left:-130px}
.header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,var(--cyan),#3c8dff);color:#06101d;font-size:25px;font-weight:900;box-shadow:0 8px 24px #42e8d22b}.brand b,.brand small{display:block}.brand b{font-size:16px}.brand small{font-size:11px;color:var(--muted);margin-top:4px}.icon-btn{border:1px solid var(--line);color:var(--text);background:#ffffff08;border-radius:13px;width:42px;height:42px;font-size:23px}
.welcome{display:flex;align-items:center;min-height:88px;margin-bottom:14px}.welcome>div:first-child{flex:1}.welcome small,.welcome p{color:var(--muted)}.welcome h1{font-size:25px;margin:5px 0}.welcome p{font-size:12px;margin:0}.avatar{width:62px;height:62px;border-radius:22px;object-fit:cover;border:2px solid #42e8d266}.fallback{display:grid;place-items:center;background:linear-gradient(135deg,#253a59,#172339);font-size:25px;font-weight:bold}
.balances{display:grid;grid-template-columns:1fr 1fr;gap:10px}.balance-card{width:100%;border:1px solid var(--line);color:var(--text);background:linear-gradient(145deg,#122036,#0d1829);border-radius:19px;padding:15px 12px;display:flex;align-items:center;gap:10px;text-align:right;position:relative}.balance-card:active{transform:scale(.99)}.balance-card .chev{margin-right:auto;color:var(--cyan);font-size:24px}.coin{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;font-weight:bold;flex:none}.toman{background:#42e8d21c;color:var(--cyan)}.nex{background:#5a7cff1f;color:#879cff}.balance-card small,.balance-card em{display:block;color:var(--muted);font-size:10px;font-style:normal}.balance-card strong{font-size:18px;display:inline-block;margin:6px 0 3px}
.self-card{margin:14px 0 22px;padding:17px;background:linear-gradient(135deg,#13243a,#101a2b);border:1px solid #29405c;border-radius:22px;box-shadow:0 15px 40px #0003}.self-top{display:flex;align-items:center;gap:11px}.self-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#42e8d218}.self-top>div:nth-child(2){flex:1}.self-top h2{font-size:16px;margin:0 0 6px}.self-top p{font-size:11px;color:var(--muted);margin:0}.switch input{display:none}.switch span{display:block;width:48px;height:28px;border-radius:20px;background:#334158;position:relative;transition:.2s}.switch span:after{content:"";position:absolute;width:22px;height:22px;border-radius:50%;background:#fff;top:3px;right:3px;transition:.2s}.switch input:checked+span{background:var(--cyan)}.switch input:checked+span:after{right:23px;background:#07101d}.switch input:disabled+span{opacity:.4}.self-meta{border-top:1px solid var(--line);margin-top:15px;padding-top:12px;display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.self-meta span:first-child{display:flex;align-items:center;gap:7px}.self-meta i{width:7px;height:7px;border-radius:50%;background:#637086}.self-meta i.on{background:var(--cyan);box-shadow:0 0 10px var(--cyan)}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:5px;background:#0d1727e8;border:1px solid var(--line);border-radius:18px;margin:0 0 22px;gap:4px;position:sticky;top:8px;z-index:8;backdrop-filter:blur(14px);box-shadow:0 10px 30px #0002}.tabs button{min-width:0;border:0;background:transparent;color:var(--muted);padding:9px 4px;border-radius:13px;font-weight:bold;font-size:9px;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;position:relative;transition:.18s}.tabs button:active{transform:scale(.98)}.tabs button.active{background:linear-gradient(145deg,#20334f,#17263d);color:var(--text);box-shadow:inset 0 0 0 1px #ffffff08}.tabs .tab-icon{font-size:15px;line-height:1;background:none;color:inherit;padding:0}.tabs .tab-badge{font-style:normal;background:#5a7cff33;color:#aab7ff;padding:2px 5px;border-radius:8px;font-size:8px;line-height:1.2}.tabs button[data-tab="support"] .tab-badge{background:#ff647c26;color:#ff9bad}
.services-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.services-heading>div{min-width:0;flex:1}.services-logo{width:58px;height:58px;object-fit:cover;border-radius:18px;border:1px solid #42e8d250;box-shadow:0 8px 24px #0005,0 0 0 3px #42e8d20d;flex:none}
.section-title h2{font-size:18px;margin:0}.section-title p{font-size:11px;color:var(--muted);margin:7px 0 16px}.split-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.mini-pill{font-size:10px;background:#42e8d217;color:var(--cyan);padding:7px 9px;border-radius:10px;white-space:nowrap}
.products{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product{border:1px solid var(--line);background:linear-gradient(145deg,#101c2e,#0b1524);border-radius:19px;padding:16px;text-align:right;color:var(--text);min-height:145px;position:relative}.product .pi{font-size:25px;width:45px;height:45px;border-radius:15px;background:#ffffff0a;display:grid;place-items:center;margin-bottom:15px}.product b{display:block;font-size:13px;margin-bottom:7px}.product small{color:var(--muted);line-height:1.8;font-size:10px}.product:after{content:"‹";position:absolute;left:13px;bottom:12px;color:var(--cyan);font-size:22px}.product.disabled{opacity:.5}.product.disabled:after{content:"به‌زودی";font-size:9px;color:var(--muted)}
.orders{display:grid;gap:10px}.order{border:1px solid var(--line);border-radius:17px;padding:14px;background:#101b2c;display:grid;grid-template-columns:1fr auto;gap:7px;color:var(--text);text-align:right}.order b{font-size:13px}.order small{color:var(--muted)}.order .amount{color:var(--cyan)}.status{font-size:10px;padding:5px 8px;border-radius:9px;background:#5a7cff20;color:#9eaeff}
.daily-summary{display:flex;gap:8px;margin-bottom:12px}.daily-summary>div{flex:1;background:#101b2c;border:1px solid var(--line);border-radius:14px;padding:10px;text-align:center}.daily-summary strong{display:block;font-size:15px}.daily-summary small{font-size:9px;color:var(--muted)}.challenges{display:grid;gap:10px}.challenge-card{border:1px solid var(--line);background:linear-gradient(145deg,#101c2e,#0b1524);border-radius:18px;padding:14px}.challenge-head{display:flex;align-items:flex-start;gap:10px}.challenge-badge{width:37px;height:37px;border-radius:12px;display:grid;place-items:center;background:#ffffff09;flex:none}.challenge-head>div:nth-child(2){flex:1}.challenge-head b{display:block;font-size:13px;line-height:1.8}.challenge-head small{color:var(--muted);font-size:10px}.reward{color:var(--cyan);font-weight:bold;font-size:11px;white-space:nowrap}.progress{height:7px;border-radius:10px;background:#223149;overflow:hidden;margin:12px 0 8px}.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));border-radius:10px}.challenge-meta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:9px}.game-progress-list{display:grid;gap:5px;margin-top:9px}.game-progress-list span{display:flex;justify-content:space-between;background:#ffffff05;border-radius:9px;padding:7px 9px;font-size:9px;color:var(--muted)}.claim-btn{width:100%;border:0;border-radius:12px;background:var(--cyan);color:#06101d;padding:10px;margin-top:10px;font-weight:bold}.claimed{color:var(--ok)}
.loading,.error{min-height:55vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted)}.loading.small{min-height:150px}.loading span{width:38px;height:38px;border:3px solid #24344c;border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite}.error b{color:var(--danger);font-size:18px}.error button,#retry{border:0;border-radius:12px;background:var(--cyan);color:#06101d;padding:11px 24px;font-weight:bold}
.empty{border:1px dashed var(--line);border-radius:16px;padding:25px;text-align:center;color:var(--muted);font-size:11px}.hidden{display:none!important}
/* bottom sheet */
.sheet-backdrop{position:fixed;inset:0;background:#0009;backdrop-filter:blur(4px);z-index:20}.sheet{position:fixed;z-index:21;left:0;right:0;bottom:0;max-height:92vh;background:var(--sheet);border-radius:24px 24px 0 0;border-top:1px solid #2d425e;box-shadow:0 -20px 50px #0008;padding-bottom:env(safe-area-inset-bottom);display:flex;flex-direction:column}.sheet-grabber{width:44px;height:4px;background:#5b6d85;border-radius:10px;margin:8px auto 4px}.sheet-head{display:flex;align-items:center;gap:10px;padding:10px 16px 12px;border-bottom:1px solid var(--line)}.sheet-head>div{flex:1}.sheet-head h2{margin:0;font-size:16px}.sheet-head p{margin:4px 0 0;font-size:10px;color:var(--muted)}.sheet-close,.sheet-back{border:0;width:34px;height:34px;border-radius:11px;background:#ffffff0b;color:var(--text);font-size:21px}.sheet-body{padding:15px 16px 24px;overflow-y:auto}.sheet-footer{padding:10px 16px;border-top:1px solid var(--line);background:#0b1524;display:flex;gap:8px}.sheet-footer button{flex:1}
.form{display:grid;gap:12px}.field{display:grid;gap:7px}.field label{font-size:10px;color:var(--muted)}.field input,.field textarea,.field select,.search-input{width:100%;border:1px solid var(--line);outline:none;background:#0f1b2d;color:var(--text);border-radius:13px;padding:12px 13px}.field textarea{min-height:78px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:#42e8d277}.hint{font-size:9px;color:var(--muted);line-height:1.8}.quick-row{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid var(--line);background:#111e31;color:var(--text);padding:8px 10px;border-radius:10px;font-size:10px}.chip.active{border-color:var(--cyan);color:var(--cyan);background:#42e8d210}.self-target{border-color:#42e8d244}.check-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#0f1b2d;border:1px solid var(--line);border-radius:13px;padding:11px 12px;font-size:10px}.check-row input{accent-color:var(--cyan);width:18px;height:18px}.primary,.secondary,.danger-btn{border:0;border-radius:13px;padding:12px 14px;font-weight:bold}.primary{background:var(--cyan);color:#06101d}.secondary{background:#1b2b43;color:var(--text);border:1px solid var(--line)}.danger-btn{background:#ff647c1f;color:#ff8b9e;border:1px solid #ff647c44}.primary:disabled,.secondary:disabled{opacity:.45}
.list{display:grid;gap:8px}.list-item{width:100%;display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:#0f1b2d;color:var(--text);border-radius:14px;padding:12px;text-align:right}.list-item .li-icon{width:39px;height:39px;border-radius:12px;background:#ffffff08;display:grid;place-items:center;font-size:20px;flex:none}.list-item>div{flex:1;min-width:0}.list-item b{display:block;font-size:11px;line-height:1.6}.list-item small{display:block;color:var(--muted);font-size:9px;margin-top:3px;line-height:1.7}.list-item .li-side{text-align:left;color:var(--cyan);font-size:10px;white-space:nowrap}.search-box{position:sticky;top:-15px;background:var(--sheet);padding:0 0 10px;z-index:2}
.quote-card{border:1px solid var(--line2);background:linear-gradient(145deg,#13243a,#0f1b2d);border-radius:18px;padding:15px}.quote-line{display:flex;justify-content:space-between;gap:10px;padding:7px 0;font-size:11px;color:var(--muted)}.quote-line b{color:var(--text)}.quote-total{border-top:1px solid var(--line);margin-top:5px;padding-top:12px;font-size:13px}.quote-total b{color:var(--cyan);font-size:16px}.notice{border-radius:13px;padding:11px 12px;font-size:10px;line-height:1.8;background:#5a7cff14;border:1px solid #5a7cff2c;color:#b8c3ff}.notice.warn{background:#ffca6812;border-color:#ffca6830;color:#ffe0a4}.notice.ok{background:#59e6a512;border-color:#59e6a530;color:#9ef2ca}.notice.danger{background:#ff647c12;border-color:#ff647c30;color:#ff9bab}
.success-box{text-align:center;padding:10px}.success-icon{width:64px;height:64px;border-radius:22px;background:#59e6a517;color:var(--ok);display:grid;place-items:center;font-size:30px;margin:0 auto 12px}.success-box h3{margin:0 0 7px}.success-box p{color:var(--muted);font-size:10px;line-height:1.9}.copy-box{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:13px;background:#0f1b2d;padding:8px 10px;direction:ltr}.copy-box code{flex:1;overflow:auto;color:var(--cyan);font-size:10px}.copy-box button{border:0;background:#1c2b43;color:var(--text);border-radius:9px;padding:7px 9px}.activation{display:grid;gap:10px}.activation .phone{font-size:20px;direction:ltr;text-align:center;color:var(--cyan);font-weight:bold}.activation .sms{background:#0f1b2d;border:1px solid var(--line);border-radius:14px;padding:12px;white-space:pre-wrap;word-break:break-word}.activation .sms strong{display:block;color:var(--ok);font-size:20px;margin-bottom:6px}.timer{font-variant-numeric:tabular-nums}
.toast{position:fixed;z-index:40;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,30px);opacity:0;background:#f5f8ff;color:#07101d;border-radius:12px;padding:11px 17px;font-size:12px;transition:.25s;pointer-events:none;white-space:nowrap;max-width:90vw;overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:420px){.products{grid-template-columns:1fr 1fr}.product{min-height:137px;padding:14px}.product small{font-size:9px}.balances{grid-template-columns:1fr 1fr}.balance-card{padding:12px 9px;gap:7px}.coin{width:32px;height:32px}.balance-card strong{font-size:15px}.balance-card em{font-size:8px}.welcome h1{font-size:22px}}
@media(max-width:345px){.products{grid-template-columns:1fr}.balances{grid-template-columns:1fr}.tabs button{font-size:10px}}
.gift-symbol{font-size:22px;line-height:1}

/* v2.2 brand assets */
.brand-logo{width:44px;height:44px;object-fit:cover;border-radius:14px;border:1px solid #42e8d24d;box-shadow:0 7px 20px #0004;flex:none}
.services-heading{display:block}
.services-logo{display:none!important}
.product .pi img.product-brand-icon{width:31px;height:31px;display:block;object-fit:contain}
.brand-li-icon{overflow:hidden;padding:0;background:transparent!important}
.brand-li-icon img{width:100%;height:100%;display:block;object-fit:contain}
.platform-emoji{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:25px;line-height:1}
.platform-list .list-item{min-height:66px}

/* V2.3 virtual-number brand logos */
.vn-brand-icon{overflow:hidden;padding:5px!important;background:#fff!important}.vn-brand-icon .vn-brand-img{width:100%;height:100%;display:block;object-fit:contain;border-radius:8px}.vn-fallback-icon{width:100%;height:100%;display:grid;place-items:center;font-size:20px}.vn-logo-fallback{display:none}


/* V2.4 UX + support */
.header{margin-bottom:18px}.welcome{margin-bottom:12px}.self-card{margin-bottom:16px}
.section-title{margin-top:2px}.tab-panel{animation:fadeUp .18s ease-out}.product{transition:transform .16s,border-color .16s,background .16s}.product:active{transform:scale(.985);border-color:#42e8d24a}.list-item:active,.order:active{transform:scale(.992)}

.challenge-title-row{display:flex;align-items:stretch;justify-content:space-between;gap:12px;margin-bottom:12px}.challenge-title-row>div:first-child{flex:1;min-width:0}.challenge-title-row p{margin-bottom:0}.reset-box{min-width:108px;border:1px solid #42e8d233;background:linear-gradient(145deg,#11283a,#0d1d2d);border-radius:15px;padding:9px 10px;text-align:center;display:flex;flex-direction:column;justify-content:center}.reset-box small,.reset-box em{font-style:normal;color:var(--muted);font-size:8px}.reset-box strong{direction:ltr;font-variant-numeric:tabular-nums;color:var(--cyan);font-size:15px;letter-spacing:.5px;margin:3px 0}
.daily-summary{gap:7px}.daily-summary>div{padding:11px 7px;background:linear-gradient(145deg,#111f33,#0d1828)}.daily-summary strong{color:#f7fbff;font-size:16px}.challenge-card{position:relative;overflow:hidden;transition:.18s}.challenge-card:before{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:#6d83ff55}.challenge-card.is-complete{border-color:#59e6a54d}.challenge-card.is-complete:before{background:var(--ok)}.challenge-card.is-claimed{opacity:.86}.challenge-card.is-claimed:before{background:#59e6a57a}.challenge-head small .ready,.ready{color:var(--warn)}.claimed{color:var(--ok)}.claim-btn{box-shadow:0 8px 22px #42e8d21f}.claim-btn:active{transform:scale(.99)}

.support-panel{display:grid;gap:10px}.support-note{border:1px solid #5a7cff2d;background:#5a7cff10;color:#b7c2ff;border-radius:14px;padding:10px 12px;font-size:9px;line-height:1.8}.support-note.admin-note{border-color:#42e8d22e;background:#42e8d20c;color:#a7f2e7}
.chat-messages{min-height:330px;max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:6px 2px 10px;scroll-behavior:smooth}.chat-row{display:flex}.chat-row.mine{justify-content:flex-start}.chat-row.theirs{justify-content:flex-end}.chat-bubble{max-width:84%;border:1px solid var(--line);border-radius:16px;padding:9px 11px;background:#111d2e;box-shadow:0 6px 18px #0002}.chat-row.mine .chat-bubble{background:linear-gradient(145deg,#173449,#123042);border-color:#42e8d239;border-bottom-left-radius:5px}.chat-row.theirs .chat-bubble{background:#18243a;border-bottom-right-radius:5px}.chat-bubble p{margin:0;color:var(--text);font-size:11px;line-height:1.9;word-break:break-word}.chat-bubble small{display:flex;margin-top:5px;color:var(--muted);font-size:8px;direction:rtl;align-items:center;gap:5px}.chat-receipt{direction:ltr;unicode-bidi:isolate;font-weight:900;letter-spacing:-2px;font-size:10px;line-height:1;color:var(--muted)}.chat-receipt.read{color:var(--cyan)}.chat-composer{display:flex;align-items:flex-end;gap:8px;padding:8px;background:#0d1828;border:1px solid var(--line);border-radius:16px;position:sticky;bottom:8px;z-index:3;box-shadow:0 -8px 30px #07101d99}.chat-composer textarea{flex:1;resize:none;max-height:110px;min-height:43px;border:0;outline:0;background:transparent;color:var(--text);padding:9px 7px;line-height:1.7}.chat-composer button{border:0;background:var(--cyan);color:#06101d;font-weight:800;border-radius:12px;min-width:58px;height:43px;padding:0 12px}.chat-composer button:disabled{opacity:.45}.chat-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:6px}.chat-empty span{font-size:31px}.chat-empty b{color:var(--text);font-size:12px}.chat-empty small{font-size:9px}
.support-inbox{display:grid;gap:8px}.support-conversation{width:100%;border:1px solid var(--line);background:linear-gradient(145deg,#101d30,#0d1727);border-radius:16px;padding:11px;display:flex;align-items:center;gap:10px;color:var(--text);text-align:right}.support-conversation:active{transform:scale(.992)}.support-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#42e8d224,#5a7cff24);color:var(--cyan);font-weight:900;flex:none}.support-conversation>div{min-width:0;flex:1}.support-conversation b{display:block;font-size:11px;margin-bottom:5px}.support-conversation small{display:block;color:var(--muted);font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.support-conversation aside{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.support-conversation time{font-size:8px;color:var(--muted);white-space:nowrap}.support-conversation aside em{font-style:normal;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--cyan);color:#06101d;display:grid;place-items:center;font-size:8px;font-weight:bold}.admin-chat-wrap{display:grid;gap:8px}.admin-chat{min-height:42vh;max-height:58vh}

@keyframes fadeUp{from{opacity:.25;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:420px){.shell{padding-left:12px;padding-right:12px}.tabs button{font-size:8px;padding:8px 2px}.tabs .tab-icon{font-size:14px}.challenge-title-row{gap:8px}.reset-box{min-width:101px;padding:8px}.reset-box strong{font-size:14px}.chat-messages{max-height:48vh}}
@media(max-width:350px){.tabs{grid-template-columns:repeat(2,1fr);position:static}.challenge-title-row{display:block}.reset-box{margin-top:10px;flex-direction:row;align-items:center;gap:7px;justify-content:flex-start}.reset-box strong{margin:0 auto}}


/* ========================================================================== */
/* V2.5 — Novin Self polished mobile UI                                        */
/* ========================================================================== */
:root{
  --bg:#06101c;--surface:#0c1828;--surface-2:#102137;--surface-3:#142a44;
  --line:#1d324d;--line-soft:#162a42;--text:#f7fbff;--muted:#8fa3bb;
  --cyan:#43e7d3;--cyan-2:#21cdbf;--blue:#7088ff;--danger:#ff6d84;
  --warn:#ffc966;--ok:#58e3a4;--sheet:#081522;
  --shadow:0 16px 44px rgba(0,0,0,.24);--shadow-soft:0 8px 26px rgba(0,0,0,.16)
}
html{background:var(--bg);color-scheme:dark}
body{background:
  radial-gradient(90% 50% at 100% -5%,rgba(67,231,211,.10),transparent 58%),
  radial-gradient(75% 45% at 0% 35%,rgba(112,136,255,.09),transparent 60%),var(--bg)!important}
.shell{max-width:720px;padding:calc(10px + env(safe-area-inset-top)) 14px calc(108px + env(safe-area-inset-bottom))}
.ambient{opacity:.075;filter:blur(110px)}

/* Top brand */
.header{position:sticky;top:0;z-index:12;margin:0 -5px 12px;padding:8px 5px;background:linear-gradient(180deg,rgba(6,16,28,.96),rgba(6,16,28,.84) 72%,transparent);backdrop-filter:blur(14px)}
.brand{gap:10px}.brand-logo{width:46px;height:46px;border-radius:15px;border:1px solid rgba(67,231,211,.28);box-shadow:0 7px 24px rgba(0,0,0,.35)}
.brand b{font-size:15px;letter-spacing:-.15px}.brand small{font-size:9px;margin-top:3px;color:#9aabc0}
.icon-btn{width:40px;height:40px;border-radius:13px;border-color:var(--line);background:rgba(255,255,255,.035);font-size:20px;transition:.16s}.icon-btn:active{transform:rotate(-25deg) scale(.94)}

/* User hero */
.welcome{position:relative;overflow:hidden;min-height:104px;margin:0 0 11px;padding:17px 18px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,rgba(20,42,68,.94),rgba(11,25,42,.96));box-shadow:var(--shadow-soft)}
.welcome:after{content:"";position:absolute;width:125px;height:125px;border-radius:50%;left:-46px;top:-58px;background:radial-gradient(circle,rgba(67,231,211,.20),transparent 68%);pointer-events:none}
.welcome small{font-size:10px}.welcome h1{font-size:22px;margin:5px 0 7px;letter-spacing:-.35px}.welcome p{font-size:10px;color:#a7b7ca}.avatar{width:58px;height:58px;border-radius:18px;border:1px solid rgba(67,231,211,.32);box-shadow:0 9px 26px rgba(0,0,0,.22)}.fallback{width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#1a3553,#14253c);color:#cbd8e8;font-size:21px}

/* Wallet cards */
.balances{gap:9px}.balance-card{min-height:91px;border-color:var(--line);border-radius:20px;padding:13px 12px;background:linear-gradient(145deg,rgba(17,35,57,.98),rgba(10,23,39,.98));box-shadow:var(--shadow-soft);transition:.15s}
.balance-card:active{transform:scale(.985);border-color:rgba(67,231,211,.35)}
.balance-card:before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,rgba(255,255,255,.035),transparent 44%);pointer-events:none}
.coin{width:38px;height:38px;border-radius:13px;font-size:13px}.toman{background:rgba(67,231,211,.12);color:var(--cyan)}.nex{background:rgba(112,136,255,.14);color:#9bacff}
.balance-card small{font-size:8.5px}.balance-card strong{font-size:17px;margin:5px 0 2px}.balance-card em{font-size:8px}.balance-card .chev{font-size:20px;opacity:.82}

/* Self status */
.self-card{position:relative;overflow:hidden;margin:10px 0 18px;padding:15px 16px;border-radius:22px;border-color:#24415f;background:linear-gradient(135deg,#11253c,#0c1b2d);box-shadow:var(--shadow)}
.self-card:before{content:"";position:absolute;width:100px;height:100px;left:-35px;bottom:-55px;border-radius:50%;background:rgba(67,231,211,.055)}
.self-icon{width:40px;height:40px;border-radius:13px;background:rgba(67,231,211,.10);font-size:18px}.self-top h2{font-size:14px;margin-bottom:5px}.self-top p{font-size:9px}.switch span{width:46px;height:27px}.switch span:after{width:21px;height:21px}.switch input:checked+span:after{right:22px}.self-meta{margin-top:13px;padding-top:11px;font-size:9px}

/* Bottom navigation: app-like instead of web tabs */
.tabs{position:fixed!important;z-index:18;top:auto!important;bottom:calc(9px + env(safe-area-inset-bottom));left:50%;right:auto;width:min(calc(100% - 22px),690px);transform:translateX(-50%);margin:0;padding:6px 7px;grid-template-columns:repeat(4,1fr);gap:3px;border:1px solid rgba(45,68,96,.92);border-radius:22px;background:rgba(8,20,34,.94);backdrop-filter:blur(20px) saturate(1.25);box-shadow:0 16px 48px rgba(0,0,0,.46)}
.tabs button{min-height:51px;padding:6px 3px;border-radius:16px;display:flex;flex-direction:column;flex-wrap:nowrap;gap:3px;font-size:8px;font-weight:700;color:#8599b1;overflow:visible}
.tabs button.active{background:linear-gradient(145deg,rgba(67,231,211,.14),rgba(70,116,167,.14));color:#eafcf9;box-shadow:inset 0 0 0 1px rgba(67,231,211,.13)}
.tabs .tab-icon{font-size:17px;line-height:20px;filter:saturate(.9)}
.tabs button.active .tab-icon{transform:translateY(-1px)}
.tabs .tab-badge{position:absolute;top:4px;left:calc(50% - 21px);min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:9px;background:#5069db;color:#fff;font-size:7px;box-shadow:0 3px 10px #0005}
.tabs button[data-tab="support"] .tab-badge{background:var(--danger);color:#fff}

/* Content headings */
.tab-panel{padding:1px 1px 10px;animation:panelIn .22s cubic-bezier(.2,.7,.2,1)}
.section-title{margin:2px 1px 14px}.section-title h2{font-size:18px;letter-spacing:-.2px;margin-top:3px}.section-title p{font-size:9.5px;line-height:1.8;margin:6px 0 0;color:#91a4ba}
.section-kicker{display:inline-flex;align-items:center;gap:5px;font-size:8px;font-weight:700;color:var(--cyan);background:rgba(67,231,211,.09);border:1px solid rgba(67,231,211,.14);padding:4px 7px;border-radius:8px}
.mini-pill{font-size:8px;border:1px solid rgba(67,231,211,.15);background:rgba(67,231,211,.08);padding:6px 8px;border-radius:9px}

/* Store */
.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.product{min-height:134px;border-color:var(--line);border-radius:20px;padding:14px;background:linear-gradient(145deg,#0f1f33,#0a1728);box-shadow:0 8px 25px rgba(0,0,0,.14);transition:.17s}
.product:hover{border-color:#294764}.product:active{transform:scale(.98);background:linear-gradient(145deg,#12263d,#0c1a2c)}
.product .pi{width:45px;height:45px;border-radius:14px;margin-bottom:13px;background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.045);font-size:23px}
.product b{font-size:12px;margin-bottom:5px}.product small{font-size:8.5px;line-height:1.75;padding-left:15px}.product:after{left:12px;bottom:11px;width:24px;height:24px;display:grid;place-items:center;border-radius:9px;background:rgba(67,231,211,.07);font-size:17px}
.product.disabled:after{width:auto;height:auto;background:none}

/* Challenges */
.challenge-title-row{gap:9px;align-items:stretch}.reset-box{min-width:112px;border-radius:17px;padding:9px 11px;border-color:rgba(67,231,211,.18);background:linear-gradient(145deg,#10263a,#0b1d2e);box-shadow:var(--shadow-soft)}
.reset-box small{font-size:7.5px}.reset-box strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;letter-spacing:.8px}.reset-box em{font-size:7px}
.daily-summary{gap:7px;margin:11px 0}.daily-summary>div{border-radius:16px;border-color:var(--line-soft);padding:12px 7px;background:linear-gradient(145deg,#102238,#0b1a2c)}.daily-summary strong{font-size:15px}.daily-summary small{font-size:7.5px;margin-top:3px;display:block}
.challenges{gap:9px}.challenge-card{border-radius:20px;padding:14px 14px 13px;background:linear-gradient(145deg,#0f2034,#0a1728);box-shadow:0 8px 25px rgba(0,0,0,.13)}.challenge-card:before{width:2px}.challenge-badge{width:39px;height:39px;border-radius:13px}.challenge-head b{font-size:11.5px;line-height:1.8}.challenge-head small{font-size:8.5px}.reward{font-size:9px;padding:5px 7px;border-radius:8px;background:rgba(67,231,211,.08)}.progress{height:6px;margin:12px 0 7px;background:#1a2c43}.challenge-meta{font-size:8px}.game-progress-list span{font-size:8px;padding:7px 8px}.claim-btn{min-height:40px;border-radius:12px;font-size:10px}

/* Orders */
.orders{gap:8px}.order{position:relative;overflow:hidden;border-radius:18px;padding:13px 14px;border-color:var(--line);background:linear-gradient(145deg,#0f1f33,#0b1829);box-shadow:0 7px 22px rgba(0,0,0,.12)}.order:after{content:"";position:absolute;right:0;top:0;bottom:0;width:2px;background:rgba(112,136,255,.55)}.order b{font-size:11.5px}.order small{font-size:8px}.order .amount{font-size:10px}.status{font-size:8px;border:1px solid rgba(112,136,255,.16)}

/* Support */
.support-panel{gap:9px}.support-note{border-radius:15px;padding:9px 11px;font-size:8px}.support-inbox{gap:7px}.support-conversation{border-radius:18px;padding:11px 12px;background:linear-gradient(145deg,#0f2034,#0b1829);box-shadow:0 7px 22px rgba(0,0,0,.12)}.support-avatar{width:43px;height:43px;border-radius:14px;font-size:13px}.support-conversation b{font-size:10.5px}.support-conversation small{font-size:8px}.support-conversation time{font-size:7px}.chat-messages{min-height:320px;padding:8px 2px 12px}.chat-bubble{border-radius:17px;padding:9px 11px;box-shadow:0 5px 16px rgba(0,0,0,.14)}.chat-bubble p{font-size:10.5px}.chat-bubble small{font-size:7px}.chat-composer{border-radius:18px;padding:7px 8px;bottom:4px;background:rgba(10,24,40,.96);backdrop-filter:blur(12px)}.chat-composer textarea{font-size:10px;min-height:42px}.chat-composer button{height:42px;border-radius:12px;font-size:10px;min-width:62px}

/* Better empty/loading states */
.empty{border-radius:20px;border-color:#213750;background:rgba(14,29,48,.62);padding:25px 18px;line-height:1.9}.empty-rich{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.empty-rich>span{font-size:29px}.empty-rich>b{font-size:11px;color:var(--text)}.empty-rich>small{max-width:260px;font-size:8.5px;color:var(--muted)}
.loading.small{min-height:180px}.loading span{width:33px;height:33px;border-width:2px}

/* Sheets and forms */
.sheet-backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}.sheet{left:50%;right:auto;width:min(100%,720px);transform:translateX(-50%);max-height:94vh;border-radius:28px 28px 0 0;border-top-color:#29425f;background:linear-gradient(180deg,#0a1929,#071421);box-shadow:0 -22px 70px rgba(0,0,0,.58)}
.sheet-grabber{width:38px;height:4px;background:#50657d;margin-top:9px}.sheet-head{padding:10px 15px 13px}.sheet-head h2{font-size:15px}.sheet-head p{font-size:8.5px}.sheet-close,.sheet-back{width:35px;height:35px;border-radius:12px;background:rgba(255,255,255,.055)}.sheet-body{padding:15px 15px 25px}.sheet-footer{padding:10px 15px calc(10px + env(safe-area-inset-bottom));background:rgba(8,21,34,.97);backdrop-filter:blur(12px)}
.form{gap:11px}.field{gap:6px}.field label{font-size:8.5px;color:#a2b2c5}.field input,.field textarea,.field select,.search-input{min-height:48px;border-radius:14px;border-color:#213851;background:#0c1c2e;padding:12px 13px;font-size:11px;transition:.16s}.field textarea{min-height:86px}.field input:focus,.field textarea:focus,.field select:focus,.search-input:focus{border-color:rgba(67,231,211,.48);box-shadow:0 0 0 3px rgba(67,231,211,.07)}
.primary,.secondary,.danger-btn{min-height:46px;border-radius:14px;font-size:10.5px}.primary{background:linear-gradient(135deg,#49ead5,#31d8c6);box-shadow:0 9px 24px rgba(67,231,211,.14)}
.list{gap:7px}.list-item{min-height:59px;border-radius:16px;padding:10px 11px;background:linear-gradient(145deg,#0e1e31,#0a1829);transition:.15s}.list-item:active{transform:scale(.987);border-color:#2b4866}.list-item .li-icon{width:40px;height:40px;border-radius:13px}.list-item b{font-size:10px}.list-item small{font-size:8px}.list-item .li-side{font-size:8.5px}
.quote-card{border-radius:19px;padding:14px;background:linear-gradient(145deg,#11243a,#0c1b2e)}.quote-line{font-size:9.5px;padding:7px 0}.quote-total b{font-size:14px}.notice{border-radius:14px;font-size:9px}.success-box h3{font-size:15px}.success-box p{font-size:9px}
.toast{bottom:calc(88px + env(safe-area-inset-bottom));border-radius:13px;font-size:10px;padding:10px 14px;box-shadow:0 10px 35px #0005}

@keyframes panelIn{from{opacity:.35;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:420px){
  .shell{padding-left:11px;padding-right:11px}.header{margin-left:-2px;margin-right:-2px}.welcome{padding:15px 14px}.welcome h1{font-size:20px}.avatar,.fallback{width:54px;height:54px}.balance-card{padding:11px 9px}.balance-card strong{font-size:15px}.balance-card em{display:none}.coin{width:34px;height:34px}.product{min-height:128px;padding:13px}.product small{font-size:8px}.challenge-title-row{gap:7px}.reset-box{min-width:105px;padding:8px}.tabs{width:calc(100% - 18px)}
}
@media(max-width:350px){
  .balances{grid-template-columns:1fr}.products{grid-template-columns:1fr 1fr}.tabs{grid-template-columns:repeat(4,1fr)!important;position:fixed!important}.tabs button{font-size:7px}.challenge-title-row{display:block}.reset-box{margin-top:9px;min-height:57px;display:grid;grid-template-columns:auto 1fr auto;align-items:center}.reset-box strong{margin:0}.split-title{align-items:center}
}


/* V2.6 payment-method and card-to-card flow */
.payment-choice{display:grid;grid-template-columns:1fr;gap:9px}.payment-method-card{width:100%;min-height:72px;display:grid;grid-template-columns:48px 1fr 18px;align-items:center;gap:11px;text-align:right;padding:11px 12px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(145deg,#102239,#0b192b);color:var(--text);transition:.16s}.payment-method-card:active{transform:scale(.987);border-color:rgba(67,231,211,.45)}.payment-method-card>div{display:flex;flex-direction:column;gap:3px}.payment-method-card b{font-size:11px}.payment-method-card small{font-size:8px;color:var(--muted)}.payment-method-card>span:last-child{color:var(--accent);font-size:20px}.payment-method-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#172d47;font-size:22px;border:1px solid #24415f}.payment-method-icon img{width:29px;height:29px;display:block;object-fit:contain}.payment-method-icon.trx-method img{width:31px;height:31px}.kyc-required{text-align:center;padding:5px 2px}.kyc-icon{width:60px;height:60px;border-radius:20px;display:grid;place-items:center;margin:0 auto 10px;background:linear-gradient(145deg,#18304b,#102238);border:1px solid #294866;font-size:28px}.kyc-required h3{margin:0 0 7px;font-size:15px}.kyc-required p{margin:0 0 13px;color:var(--muted);font-size:9.5px;line-height:2}.invoice-wait{display:grid;gap:5px;padding:12px 13px;border:1px solid #223c58;border-radius:15px;background:#0c1d30}.invoice-wait>span{font-size:8px;color:var(--muted)}.invoice-wait>b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;direction:ltr;text-align:right;color:#5cebd8}.invoice-wait>small{font-size:8px;color:#9eb0c6}.card-copy code{letter-spacing:1px;font-size:12px}.copy-box button{white-space:nowrap}
