
:root{
  --primary:#5b4bff;--primary-2:#7c3aed;--primary-d:#4133d8;--cyan:#16c7d9;--green:#22c55e;--orange:#f59e0b;--red:#ef4444;
  --bg:#f4f5fb;--card:#fff;--card-soft:#f8f8fc;--text:#151625;--muted:#74788c;--hint:#a4a7b6;--border:#e8e9f1;
  --shadow:0 14px 40px rgba(37,31,96,.09);--shadow-sm:0 8px 24px rgba(37,31,96,.07);--shadow-brand:0 18px 44px rgba(91,75,255,.28);
  --radius:24px;--nav-h:74px;--safe-b:env(safe-area-inset-bottom,0px);--selection-h:84px;
}
body.dark{
  --bg:#0d1020;--card:#171a2e;--card-soft:#20243b;--text:#f6f7ff;--muted:#a5aac0;--hint:#6f748b;--border:#292e47;
  --shadow:0 14px 40px rgba(0,0,0,.34);--shadow-sm:0 8px 24px rgba(0,0,0,.28);--shadow-brand:0 18px 44px rgba(91,75,255,.34);
}
::-webkit-scrollbar{width:7px;height:7px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:rgba(91,75,255,.3);border-radius:99px}
::-webkit-scrollbar-thumb:hover{background:rgba(91,75,255,.75)}
body.dark ::-webkit-scrollbar-thumb{background:rgba(147,133,255,.35)}
body.dark ::-webkit-scrollbar-thumb:hover{background:rgba(147,133,255,.8)}

*{box-sizing:border-radius;box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
body{min-height:100vh;overflow-x:hidden;background:var(--bg);color:var(--text);font-family:"Vazirmatn","Inter",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-weight:400;padding-bottom:calc(var(--nav-h) + var(--safe-b) + 20px);-webkit-overflow-scrolling:touch;touch-action:pan-y}
.ambient{position:fixed;border-radius:50%;opacity:.18;pointer-events:none;z-index:-1;transform:translateZ(0);backface-visibility:hidden}
.ambient-one{width:320px;height:320px;background:radial-gradient(circle,rgba(112,87,255,.3) 0%,rgba(112,87,255,0) 70%);top:-110px;right:-110px}
.ambient-two{width:300px;height:300px;background:radial-gradient(circle,rgba(23,201,214,.25) 0%,rgba(23,201,214,0) 70%);bottom:40px;left:-140px}
body.has-selection{padding-bottom:calc(var(--nav-h) + var(--selection-h) + var(--safe-b) + 26px)}
button,input,textarea{font:inherit}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;appearance:textfield}.modal-open{overflow:hidden}button{cursor:pointer}.page{display:none;padding:16px;max-width:760px;margin:auto}.page.active{display:block;animation:pageIn .28s cubic-bezier(.22,1,.36,1);will-change:transform,opacity}
@keyframes pageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes cardIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-9px) rotate(2deg)}}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(91,75,255,.35)}50%{box-shadow:0 0 0 10px rgba(91,75,255,0)}}
@keyframes shimmer{from{background-position:200% 0}to{background-position:-200% 0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes slideUp{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:none}}
@keyframes toastIn{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:none}}
@keyframes toastOut{to{opacity:0;transform:translateY(18px) scale(.97)}}
.ambient{position:fixed;border-radius:50%;filter:blur(80px);opacity:.17;pointer-events:none;z-index:-1}.ambient-one{width:280px;height:280px;background:#7057ff;top:-100px;right:-110px}.ambient-two{width:260px;height:260px;background:#17c9d6;bottom:70px;left:-150px}
.topbar,.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.brand-mini{display:flex;align-items:center;gap:11px}.brand-mini span:last-child{display:flex;flex-direction:column}.brand-mini b{font-size:15px;font-weight:800}.brand-mini small{font-size:10px;color:var(--muted);margin-top:2px}.brand-logo{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#6c5cff,#3f35c9);display:grid;place-items:center;box-shadow:0 9px 20px rgba(91,75,255,.24)}.brand-logo img{width:26px;height:26px;object-fit:contain}.icon-button{width:42px;height:42px;border:1px solid var(--border);background:var(--card);color:var(--text);border-radius:14px;display:grid;place-items:center;box-shadow:var(--shadow-sm)}.icon-button svg{width:20px;height:20px}
.promo-slider{position:relative;min-height:244px;border-radius:30px;overflow:hidden;box-shadow:var(--shadow-brand);isolation:isolate}.promo-slide{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(100px,.75fr);align-items:center;padding:26px 24px;color:#fff;opacity:0;visibility:hidden;transform:translateX(-18px);transition:opacity .45s,transform .45s,visibility .45s}.promo-slide.active{opacity:1;visibility:visible;transform:none}.promo-indigo{background:linear-gradient(135deg,#4b3fd0 0%,#7156ff 58%,#8f6cff 100%)}.promo-violet{background:linear-gradient(135deg,#341b66,#7b36d9 60%,#a85cf1)}.promo-cyan{background:linear-gradient(135deg,#075985,#0891b2 58%,#16c7d9)}.promo-slide::before,.promo-slide::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.1);z-index:-1}.promo-slide::before{width:210px;height:210px;left:-85px;top:-80px}.promo-slide::after{width:160px;height:160px;right:-65px;bottom:-75px}.promo-copy{position:relative;z-index:2}.promo-kicker{display:inline-flex;padding:6px 11px;border-radius:99px;background:rgba(255,255,255,.16);backdrop-filter:blur(8px);font-size:10px;font-weight:700;margin-bottom:12px}.promo-copy h1,.promo-copy h2{font-size:24px;line-height:1.45;font-weight:900;max-width:360px}.promo-copy p{font-size:12px;line-height:1.9;opacity:.86;margin:8px 0 16px;max-width:360px}.promo-cta{border:0;background:#fff;color:#3f35c9;padding:10px 17px;border-radius:13px;font-size:12px;font-weight:800;box-shadow:0 8px 20px rgba(0,0,0,.13)}.promo-art{position:relative;height:150px;display:grid;place-items:center}.glass-tile{position:absolute;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.14);backdrop-filter:blur(10px);box-shadow:0 18px 30px rgba(22,13,70,.24);display:grid;place-items:center;font-weight:900;letter-spacing:1px}.tile-main{width:112px;height:76px;border-radius:22px;transform:rotate(-8deg);font-size:13px;animation:float 5s ease-in-out infinite}.tile-small{width:45px;height:45px;border-radius:15px;right:1px;bottom:18px;animation:float 4s .4s ease-in-out infinite}.order-art .tile-main{width:128px}.promo-cyan .tile-main{margin-top:-14px}.promo-cyan .tile-small{right:-14px;bottom:-10px}.orbit-dot{position:absolute;border-radius:50%;background:#fff;box-shadow:0 0 0 8px rgba(255,255,255,.1)}.dot-a{width:12px;height:12px;top:18px;right:25px}.dot-b{width:8px;height:8px;bottom:22px;left:20px}.slider-dots{position:absolute;bottom:14px;right:24px;display:flex;gap:6px;z-index:5}.slider-dots button{width:7px;height:7px;border-radius:99px;border:0;background:rgba(255,255,255,.35);transition:.3s}.slider-dots button.active{width:24px;background:#fff}
.trust-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.trust-strip>div{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:12px 9px;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:8px;box-shadow:var(--shadow-sm)}.trust-icon{grid-row:1/3;width:34px;height:34px;border-radius:11px;background:rgba(91,75,255,.1);color:var(--primary);display:grid;place-items:center}.trust-icon svg{width:18px}.trust-strip b{font-size:11px;font-weight:800;white-space:nowrap}.trust-strip small{font-size:8px;color:var(--muted);white-space:nowrap}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:28px 3px 14px}.section-head.compact{margin-top:24px}.eyebrow{display:block;font-size:10px;color:var(--primary);font-weight:800;margin-bottom:3px}.section-head h2,.selected-product-head h2{font-size:18px;font-weight:900}.section-note{font-size:10px;color:var(--muted)}.page-header h1{font-size:24px;font-weight:900}.page-header .eyebrow{margin-bottom:4px}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-card{position:relative;min-height:194px;border:1px solid var(--border);background:var(--card);border-radius:24px;padding:15px;overflow:hidden;text-align:right;color:var(--text);box-shadow:var(--shadow-sm);animation:cardIn .42s backwards;transition:transform .22s,border-color .22s,box-shadow .22s}.product-card::before{content:"";position:absolute;width:130px;height:130px;border-radius:50%;background:var(--product-glow);filter:blur(32px);opacity:.2;top:-70px;left:-55px}.product-card:active{transform:scale(.98)}.product-card.selected{border-color:var(--product-color);box-shadow:0 14px 34px var(--product-shadow)}.product-card.selected::after{content:"✓";position:absolute;left:12px;top:12px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--product-color);color:#fff;font-weight:900;font-size:12px}.product-top{display:flex;justify-content:space-between;align-items:flex-start;position:relative}.product-logo{width:54px;height:54px;border-radius:17px;background:var(--card-soft);display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);font-size:25px}.product-logo img{width:39px;height:39px;object-fit:contain}.product-badge{padding:5px 8px;border-radius:99px;background:rgba(91,75,255,.1);color:var(--primary);font-size:8px;font-weight:800}.product-card h3{font-size:15px;font-weight:900;margin:13px 0 5px}.product-card p{font-size:9px;line-height:1.7;color:var(--muted);min-height:31px}.product-meta{display:flex;justify-content:space-between;align-items:flex-end;margin-top:13px}.product-price small,.product-count small{display:block;color:var(--hint);font-size:8px;margin-bottom:2px}.product-price b{font-size:13px;color:var(--product-color);font-weight:900}.product-count b{font-size:11px;font-weight:800}.product-arrow{position:absolute;left:13px;bottom:15px;color:var(--muted)}.product-arrow svg{width:17px}
.product-detail{margin-top:22px;scroll-margin-top:10px}.selected-product-head{display:flex;align-items:center;gap:13px;background:var(--card);padding:15px;border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-sm)}.selected-product-icon{width:55px;height:55px;border-radius:17px;background:var(--card-soft);display:grid;place-items:center;overflow:hidden;font-size:26px;flex:0 0 auto}.selected-product-icon img{width:40px;height:40px;object-fit:contain}.selected-product-head p{font-size:10px;color:var(--muted);margin-top:3px}.benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}.benefits div{background:var(--card);border:1px solid var(--border);border-radius:15px;padding:10px 11px;font-size:10px;color:var(--muted);display:flex;align-items:center;gap:8px}.benefits div::before{content:"";width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(34,197,94,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 11px 11px;flex:0 0 auto}
.plans-grid{display:grid;gap:12px;contain:paint}.plan-card{position:relative;background:var(--card);border:1.5px solid var(--border);border-radius:24px;padding:17px;box-shadow:var(--shadow-sm);animation:cardIn .42s backwards;transition:.22s;overflow:hidden;content-visibility:auto;contain-intrinsic-size:210px;transform:translateZ(0);-webkit-transform:translateZ(0);backface-visibility:hidden}.plan-card:active{transform:scale(.99)}.plan-card.selected{border-color:var(--primary);box-shadow:0 12px 30px rgba(91,75,255,.16)}.plan-card.recommended{padding-top:34px}.recommend-ribbon{position:absolute;top:0;right:0;left:0;height:22px;background:linear-gradient(90deg,var(--primary),var(--primary-2));color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;font-size:9px;font-weight:800;line-height:1}.plan-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.plan-name{min-width:0;flex:1;text-align:right}.plan-name h3{font-size:14px;font-weight:900;line-height:1.35;word-break:break-word}.plan-name small{display:block;margin-top:3px;font-size:9px;color:var(--muted)}.plan-price{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap;text-align:left;margin-top:2px;flex:0 0 auto}.plan-price b{display:inline;color:var(--primary);font-size:15px;font-weight:900;line-height:1}.plan-price small{display:inline;font-size:9px;color:var(--muted);font-weight:700}.plan-price .free-price{color:var(--green)}.plan-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:15px 0}.plan-feature{border-radius:13px;background:var(--card-soft);padding:9px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.plan-feature svg{width:16px;color:var(--primary);margin-bottom:4px}.plan-feature b{display:block;font-size:9px;font-weight:800;text-align:center}.plan-feature small{font-size:7px;color:var(--muted);text-align:center}.plan-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.select-plan-btn{border:0;border-radius:13px;padding:10px 18px;background:var(--card-soft);color:var(--primary);font-size:11px;font-weight:900;flex:1;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px;line-height:1}.select-plan-btn svg{display:inline-block!important;width:14px!important;height:14px!important;margin:0!important;flex-shrink:0}.plan-card.selected .select-plan-btn{background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;box-shadow:0 4px 14px rgba(91,75,255,.28)}
.selection-bar{position:fixed;right:10px;left:10px;bottom:calc(var(--nav-h) + var(--safe-b) + 8px);z-index:60;max-width:740px;margin:auto;border:1px solid rgba(255,255,255,.2);background:rgba(24,22,50,.97);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);color:#fff;border-radius:22px;padding:11px 12px;display:flex;align-items:center;gap:12px;box-shadow:0 18px 45px rgba(20,16,64,.32);animation:slideUp .35s cubic-bezier(.22,1,.36,1);transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);backface-visibility:hidden;-webkit-backface-visibility:hidden;will-change:transform}.selection-bar[hidden]{display:none}.selection-bar>div{min-width:0;flex:1}.selection-bar small{display:block;font-size:8px;opacity:.64}.selection-bar b{display:block;font-size:12px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selection-bar span{font-size:10px;color:#bdb7ff}.selection-bar button{border:0;background:#fff;color:#4035d0;border-radius:14px;padding:12px 18px;font-size:11px;font-weight:900;white-space:nowrap}
.wallet-card{position:relative;overflow:hidden;border-radius:30px;padding:24px;color:#fff;background:linear-gradient(135deg,#232044 0%,#5143db 58%,#7d63ff 100%);box-shadow:var(--shadow-brand)}.wallet-glow{position:absolute;width:230px;height:230px;border-radius:50%;background:rgba(255,255,255,.15);filter:blur(8px);left:-100px;top:-125px}.wallet-top{display:flex;justify-content:space-between;align-items:flex-start;position:relative}.wallet-top span:first-child small{display:block;font-size:10px;opacity:.68}.wallet-top b{display:block;font-size:29px;font-weight:900;margin-top:5px}.wallet-chip{display:grid;grid-template-columns:repeat(3,6px);gap:3px;padding:10px;border-radius:10px;background:linear-gradient(145deg,#ffe39a,#c79028);box-shadow:inset 0 0 0 1px rgba(72,48,0,.15)}.wallet-chip i{height:5px;border-radius:2px;background:rgba(105,73,0,.4)}.wallet-chart{display:block;width:100%;height:88px;margin:8px 0 3px;overflow:visible}.wallet-chart .chart-area{fill:url(#walletArea)}.wallet-chart .chart-line{fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.wallet-chart .chart-dot{fill:#fff;stroke:rgba(255,255,255,.3);stroke-width:5}.wallet-foot{display:flex;justify-content:space-between;align-items:center;opacity:.7}.wallet-foot span{font-size:9px;letter-spacing:1.8px}.wallet-foot small{font-size:8px}.wallet-deposit{width:100%;border:0;margin-top:16px;background:rgba(255,255,255,.16);color:#fff;border-radius:15px;padding:12px;font-size:11px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(255,255,255,.2)}.wallet-deposit svg{width:16px}.wallet-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.wallet-stats>div{background:var(--card);border:1px solid var(--border);border-radius:20px;padding:13px;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:9px;box-shadow:var(--shadow-sm)}.stat-icon{grid-row:1/3;width:38px;height:38px;border-radius:13px;display:grid;place-items:center}.stat-icon svg{width:18px}.stat-icon.incoming{background:rgba(34,197,94,.1);color:var(--green)}.stat-icon.outgoing{background:rgba(239,68,68,.09);color:var(--red)}.wallet-stats small{font-size:8px;color:var(--muted)}.wallet-stats b{font-size:11px;font-weight:900;margin-top:2px}
.transaction-list,.orders-list{display:grid;gap:10px;contain:paint}.transaction-item{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border:1px solid var(--border);border-radius:20px;padding:12px 14px;box-shadow:var(--shadow-sm);animation:cardIn .4s backwards;min-width:0}.tx-left{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.tx-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;flex:0 0 42px}.tx-icon svg{width:19px;height:19px}.tx-icon.deposit{background:rgba(34,197,94,.12);color:var(--green)}.tx-icon.purchase{background:rgba(91,75,255,.12);color:var(--primary)}.tx-icon.referral{background:rgba(114,46,209,.13);color:#722ed1}.tx-info{display:flex;flex-direction:column;gap:3px;min-width:0;text-align:right}.tx-info b{display:block;font-size:12px;font-weight:800;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.tx-info small{display:block;color:var(--muted);font-size:8.5px;line-height:1.3;direction:ltr;text-align:right}html[dir="ltr"] .tx-info{text-align:left}html[dir="ltr"] .tx-info small{text-align:left}.tx-right{display:flex;flex-direction:column;align-items:flex-end;text-align:left;gap:4px;flex:0 0 auto}.tx-amount{display:block;font-size:12.5px;font-weight:900;line-height:1.3;white-space:nowrap;direction:ltr}.tx-amount.positive{color:var(--green)}.tx-amount.negative{color:var(--text)}.tx-status{display:inline-flex;align-items:center;justify-content:center;font-size:7.5px;font-weight:700;padding:2px 7px;border-radius:99px;white-space:nowrap;line-height:1.3}.tx-status.approved{background:rgba(34,197,94,.12);color:var(--green)}.tx-status.pending{background:rgba(245,158,11,.13);color:var(--orange)}.tx-status.rejected{background:rgba(239,68,68,.12);color:var(--red)}
.order-filter{display:flex;gap:6px;background:var(--card);padding:5px;border:1px solid var(--border);border-radius:16px;margin-bottom:14px;box-shadow:var(--shadow-sm)}.order-filter button{flex:1;border:0;border-radius:12px;padding:9px;background:transparent;color:var(--muted);font-size:10px;font-weight:700}.order-filter button.active{background:var(--card-soft);color:var(--primary);font-weight:900}.order-card{background:var(--card);border:1px solid var(--border);border-radius:24px;padding:15px;box-shadow:var(--shadow-sm);animation:cardIn .42s backwards}.order-card-head{display:flex;align-items:center;gap:10px}.order-logo{width:48px;height:48px;border-radius:15px;background:var(--card-soft);display:grid;place-items:center;overflow:hidden;font-size:23px;flex:0 0 auto}.order-logo img{width:35px;height:35px;object-fit:contain}.order-title{min-width:0;flex:1}.order-title b{font-size:13px;font-weight:900;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-title small{font-size:8px;color:var(--muted)}.order-badge{padding:6px 9px;border-radius:99px;font-size:8px;font-weight:800;white-space:nowrap}.order-badge.pending{background:rgba(245,158,11,.12);color:var(--orange)}.order-badge.processing{background:rgba(91,75,255,.1);color:var(--primary)}.order-badge.completed{background:rgba(34,197,94,.1);color:var(--green)}.order-badge.cancelled{background:rgba(239,68,68,.1);color:var(--red)}.order-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin:13px 0}.order-info-grid div{padding:9px;border-radius:13px;background:var(--card-soft);min-width:0}.order-info-grid small{display:block;font-size:7px;color:var(--muted);margin-bottom:3px}.order-info-grid b{display:block;font-size:9px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timeline{display:flex;position:relative;justify-content:space-between;margin:14px 0 11px;padding:0 8px}.timeline::before{content:"";position:absolute;top:12px;right:12%;left:12%;height:3px;background:var(--border);border-radius:99px}.timeline::after{content:"";position:absolute;top:12px;right:12%;height:3px;width:var(--progress,0%);background:linear-gradient(90deg,var(--primary),var(--green));border-radius:99px;transition:width .7s}.tl-step{position:relative;z-index:2;text-align:center;flex:1}.tl-dot{width:27px;height:27px;margin:auto;border-radius:50%;background:var(--card-soft);border:2px solid var(--border);display:grid;place-items:center;color:var(--hint);font-size:9px;font-weight:900}.tl-step.done .tl-dot{background:var(--green);border-color:var(--green);color:#fff}.tl-step.active .tl-dot{background:var(--primary);border-color:var(--primary);color:#fff;animation:pulse 2s infinite}.tl-step.cancelled .tl-dot{background:var(--red);border-color:var(--red);color:#fff}.tl-label{font-size:7px;color:var(--muted);margin-top:5px}.order-card-foot{display:flex;justify-content:space-between;align-items:center;padding-top:10px;border-top:1px solid var(--border)}.order-card-foot small{font-size:8px;color:var(--muted)}.order-support{border:0;background:rgba(91,75,255,.1);color:var(--primary);border-radius:11px;padding:8px 11px;font-size:8px;font-weight:900}
.profile-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#282247,#5b4bff 60%,#8168ff);color:#fff;border-radius:30px;padding:28px 20px 24px;text-align:center;box-shadow:var(--shadow-brand)}.profile-orb{position:absolute;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.12);top:-110px;left:-55px}.avatar{position:relative;width:82px;height:82px;border-radius:50%;margin:0 auto 12px;display:grid;place-items:center;background:rgba(255,255,255,.2);border:3px solid rgba(255,255,255,.5);font-size:29px;font-weight:900;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile-hero h1{font-size:20px;font-weight:900}.profile-username{font-size:10px;opacity:.76;margin-top:3px}.profile-id{display:inline-flex;margin-top:9px;background:rgba(255,255,255,.13);padding:5px 10px;border-radius:99px;font-size:8px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--card);border:1px solid var(--border);border-radius:21px;margin:12px 0;padding:12px;box-shadow:var(--shadow-sm)}.profile-stats div{text-align:center;border-left:1px solid var(--border)}.profile-stats div:last-child{border:0}.profile-stats b{display:block;font-size:13px;font-weight:900}.profile-stats small{font-size:8px;color:var(--muted)}.invite-card{display:grid;grid-template-columns:46px 1fr;gap:10px;background:linear-gradient(135deg,rgba(91,75,255,.1),rgba(22,199,217,.08));border:1px solid rgba(91,75,255,.16);border-radius:22px;padding:14px;margin-bottom:12px}.invite-icon{width:46px;height:46px;border-radius:15px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;display:grid;place-items:center}.invite-icon svg{width:22px}.invite-copy b{display:block;font-size:12px;font-weight:900}.invite-copy small{display:block;font-size:8px;color:var(--muted);line-height:1.7;margin:2px 0 7px}.invite-copy code{direction:ltr;display:inline-flex;background:var(--card);border:1px dashed var(--primary);color:var(--primary);padding:4px 8px;border-radius:8px;font-size:9px}.invite-actions{grid-column:1/-1;display:flex;gap:7px}.invite-actions button{flex:1;border:0;border-radius:12px;padding:9px;font-size:9px;font-weight:900}.invite-actions button:first-child{background:var(--card);color:var(--primary)}.invite-actions button:last-child{background:var(--primary);color:#fff}.settings-card,.profile-menu{background:var(--card);border:1px solid var(--border);border-radius:22px;padding:13px;margin-bottom:12px;box-shadow:var(--shadow-sm)}.settings-title{font-size:10px;font-weight:900;margin-bottom:9px}.theme-control{display:flex;background:var(--card-soft);border-radius:14px;padding:4px}.theme-control button{flex:1;border:0;background:transparent;color:var(--muted);padding:8px;border-radius:10px;font-size:9px;font-weight:800}.theme-control button.active{background:var(--card);color:var(--primary);box-shadow:0 4px 12px rgba(20,20,60,.08)}.profile-menu{padding:5px 13px}.profile-menu>button{width:100%;border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:40px 1fr 24px;align-items:center;gap:9px;text-align:right;padding:11px 0;border-bottom:1px solid var(--border)}.profile-menu>button:last-child{border:0}.menu-icon{width:40px;height:40px;border-radius:13px;background:var(--card-soft);color:var(--primary);display:grid;place-items:center}.menu-icon svg{width:19px}.profile-menu button>span:nth-child(2) b{display:block;font-size:11px;font-weight:800}.profile-menu button>span:nth-child(2) small{display:block;font-size:8px;color:var(--muted);margin-top:2px}.profile-menu i{font-style:normal;color:var(--hint);display:grid;place-items:center}.profile-menu i svg{width:17px}.menu-value{font-size:8px!important;color:var(--primary)!important}.app-version{text-align:center;color:var(--hint);font-size:8px;margin:16px 0 4px}
.nav{position:fixed;right:0;left:0;bottom:0;z-index:70;height:calc(var(--nav-h) + var(--safe-b));padding:7px 10px calc(7px + var(--safe-b));display:flex;background:rgba(255,255,255,.9);backdrop-filter:blur(20px);border-top:1px solid rgba(220,221,232,.75);box-shadow:0 -8px 30px rgba(28,26,70,.08)}body.dark .nav{background:rgba(23,26,46,.9);border-color:rgba(57,61,88,.8)}.nav button{position:relative;flex:1;border:0;background:transparent;color:var(--hint);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:16px}.nav button::before{content:"";position:absolute;top:1px;width:28px;height:3px;border-radius:99px;background:var(--primary);opacity:0;transform:scaleX(.2);transition:.3s}.nav button span{width:27px;height:27px;display:grid;place-items:center;transition:.28s}.nav button svg{width:22px}.nav button small{font-size:8px;font-weight:700}.nav button.active{color:var(--primary)}.nav button.active::before{opacity:1;transform:scaleX(1)}.nav button.active span{transform:translateY(-2px) scale(1.08)}
.skeleton{background:linear-gradient(100deg,var(--card-soft) 30%,rgba(255,255,255,.65) 50%,var(--card-soft) 70%);background-size:200% 100%;animation:shimmer 1.25s infinite;border-radius:22px}body.dark .skeleton{background:linear-gradient(100deg,var(--card-soft) 30%,rgba(255,255,255,.05) 50%,var(--card-soft) 70%);background-size:200% 100%}.sk-product{height:194px}.sk-row{height:74px}.sk-plan{height:176px}
.empty{text-align:center;background:var(--card);border:1px solid var(--border);border-radius:24px;padding:34px 18px;color:var(--muted);grid-column:1/-1}.empty-icon{width:68px;height:68px;border-radius:22px;background:var(--card-soft);display:grid;place-items:center;margin:0 auto 12px;color:var(--primary)}.empty-icon svg{width:30px}.empty h4{color:var(--text);font-size:13px;font-weight:900}.empty p{font-size:9px;line-height:1.8;margin-top:5px}.empty button{border:0;border-radius:12px;background:var(--primary);color:#fff;padding:9px 14px;margin-top:12px;font-size:9px;font-weight:900}
.modal-bg{position:fixed;inset:0;z-index:100;background:rgba(12,12,30,.58);backdrop-filter:blur(7px);display:none;align-items:flex-end;justify-content:center}.modal-bg.show{display:flex}.modal{width:100%;max-width:520px;max-height:91vh;overflow:auto;background:var(--card);color:var(--text);border-radius:28px 28px 0 0;padding:22px;box-shadow:0 -18px 55px rgba(0,0,0,.3);animation:slideUp .35s cubic-bezier(.22,1,.36,1)}.modal-handle{width:40px;height:4px;border-radius:99px;background:var(--border);margin:-8px auto 18px}.modal h3{font-size:17px;font-weight:900;margin-bottom:14px}.modal-copy{font-size:10px;color:var(--muted);line-height:1.9;margin-bottom:14px}.modal-summary{background:var(--card-soft);border-radius:17px;padding:11px;margin-bottom:14px}.modal-row{display:flex;justify-content:space-between;gap:12px;font-size:10px;padding:6px 0}.modal-row span{color:var(--muted)}.modal-row b{font-weight:900;text-align:left}.form-group{margin-bottom:13px}.form-group label{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-bottom:6px}.form-control{width:100%;border:1.5px solid var(--border);background:var(--card-soft);color:var(--text);padding:12px 13px;border-radius:14px;font-size:11px;outline:none;transition:.2s}.form-control:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(91,75,255,.1);background:var(--card)}.form-control.invalid{border-color:var(--red)}textarea.form-control{min-height:105px;resize:none;line-height:1.8}.btn{position:relative;width:100%;border:0;border-radius:14px;padding:13px;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-size:11px;font-weight:900;box-shadow:0 9px 20px rgba(91,75,255,.22);overflow:hidden}.btn+.btn{margin-top:8px}.btn.gray{background:var(--card-soft);color:var(--muted);box-shadow:none}.btn.green{background:linear-gradient(135deg,#16a34a,#22c55e)}.btn:disabled{opacity:.58}.btn-spin{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-3px;margin-right:6px}.result-icon{width:72px;height:72px;border-radius:24px;margin:0 auto 12px;display:grid;place-items:center;font-size:30px}.result-icon.ok{background:rgba(34,197,94,.11);color:var(--green)}.result-icon.no{background:rgba(239,68,68,.1);color:var(--red)}.pay-card{background:linear-gradient(135deg,#29234e,#5b4bff);color:#fff;border-radius:20px;padding:18px;text-align:center;margin-bottom:14px}.pc-num{font-size:17px;font-weight:900;direction:ltr;letter-spacing:1px}.pc-holder{font-size:9px;opacity:.7;margin-top:3px}.pc-copy{border:0;background:rgba(255,255,255,.14);color:#fff;padding:7px 11px;border-radius:99px;font-size:8px;font-weight:800;margin-top:10px}.faq-list{display:grid;gap:8px}.faq-item{border:1px solid var(--border);background:var(--card-soft);border-radius:15px;overflow:hidden}.faq-item button{width:100%;border:0;background:transparent;color:var(--text);padding:11px;display:flex;justify-content:space-between;text-align:right;font-size:10px;font-weight:800}.faq-answer{display:none;padding:0 11px 11px;font-size:9px;color:var(--muted);line-height:1.9}.faq-item.open .faq-answer{display:block}.terms-list{display:grid;gap:8px}.terms-list div{display:flex;gap:8px;align-items:flex-start;background:var(--card-soft);border-radius:13px;padding:10px;font-size:9px;color:var(--muted);line-height:1.8}.terms-list span{width:21px;height:21px;border-radius:7px;background:rgba(91,75,255,.1);color:var(--primary);display:grid;place-items:center;flex:0 0 auto;font-weight:900}
.toast-wrap{position:fixed;right:12px;left:12px;bottom:calc(var(--nav-h) + var(--safe-b) + 18px);z-index:200;display:grid;gap:8px;pointer-events:none;max-width:500px;margin:auto}.toast{background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:17px;padding:11px 12px;display:flex;align-items:center;gap:9px;box-shadow:0 14px 35px rgba(10,10,30,.2);font-size:10px;font-weight:800;animation:toastIn .35s}.toast.hide{animation:toastOut .3s forwards}.toast-icon{width:28px;height:28px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;box-shadow:0 4px 10px rgba(0,0,0,.15)}.toast-icon svg{width:14px!important;height:14px!important;stroke-width:2.8!important;display:block;margin:0!important}.toast.success .toast-icon{background:linear-gradient(135deg,#16a34a,#22c55e);box-shadow:0 4px 12px rgba(34,197,94,.3)}.toast.error .toast-icon{background:linear-gradient(135deg,#dc2626,#ef4444);box-shadow:0 4px 12px rgba(239,68,68,.3)}.toast.warning .toast-icon{background:linear-gradient(135deg,#d97706,#f59e0b);box-shadow:0 4px 12px rgba(245,158,11,.3)}.toast.info .toast-icon{background:linear-gradient(135deg,#4f46e5,#6366f1);box-shadow:0 4px 12px rgba(99,102,241,.3)}
.ptr{position:fixed;top:0;right:0;left:0;z-index:80;display:flex;justify-content:center;padding-top:12px;transform:translateY(-60px);pointer-events:none;transition:.2s}.ptr-spin{width:31px;height:31px;border-radius:50%;border:3px solid var(--border);border-top-color:var(--primary);background:var(--card)}.ptr.spin .ptr-spin{animation:spin .75s linear infinite}
#splash{position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at 30% 20%,#846dff,#4d3ed6 45%,#211a62 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;transition:opacity .45s,visibility .45s}#splash.hide{opacity:0;visibility:hidden}.splash-orbit{width:92px;height:92px;border-radius:29px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;box-shadow:0 20px 50px rgba(8,4,46,.3);animation:float 4s ease-in-out infinite}.splash-orbit img{width:57px;height:57px;object-fit:contain}.splash-title{font-size:22px;font-weight:900;margin-top:17px}.splash-sub{font-size:10px;opacity:.74;margin-top:4px}.splash-loader{width:36px;height:36px;border-radius:50%;border:3px solid rgba(255,255,255,.22);border-top-color:#fff;animation:spin .75s linear infinite;margin-top:25px}.splash-dots{font-size:9px;opacity:.72;margin-top:10px}
svg{display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}:focus-visible{outline:3px solid rgba(91,75,255,.3);outline-offset:2px}
@media(min-width:620px){.page{padding:22px}.product-grid{grid-template-columns:repeat(3,1fr)}.promo-slider{min-height:270px}.promo-copy h1,.promo-copy h2{font-size:29px}.plans-grid{grid-template-columns:repeat(2,1fr)}.modal-bg{align-items:center}.modal{border-radius:28px;animation:pageIn .3s}.selection-bar{right:calc(50% - 370px);left:calc(50% - 370px)}}
@media(max-width:380px){.promo-slide{padding:21px 17px;grid-template-columns:1.3fr .7fr}.promo-copy h1,.promo-copy h2{font-size:20px}.promo-copy p{font-size:10px}.promo-art{transform:scale(.8)}.trust-strip{gap:6px}.trust-strip>div{padding:9px 6px;grid-template-columns:30px 1fr}.trust-icon{width:30px;height:30px}.product-card{min-height:184px;padding:13px}.product-logo{width:49px;height:49px}.wallet-top b{font-size:25px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* v4: bilingual layout + currency controls */
.locale-card{display:grid;gap:10px}.preference-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--border)}.preference-row:first-of-type{border-top:0;padding-top:2px}.preference-row>div:first-child{min-width:0}.preference-row b{display:block;font-size:10px;font-weight:900}.preference-row small{display:block;margin-top:2px;color:var(--muted);font-size:8px;line-height:1.6}.compact-control{display:flex;align-items:center;gap:3px;padding:3px;background:var(--card-soft);border:1px solid var(--border);border-radius:12px;flex:0 0 auto}.compact-control button{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:7px 10px;font-size:8px;font-weight:900;white-space:nowrap}.compact-control button.active{background:var(--card);color:var(--primary);box-shadow:0 4px 12px rgba(20,20,60,.09)}.settings-hint{color:var(--hint);font-size:8px;line-height:1.7;padding-top:2px}.wallet-mode-row{align-items:center}.wallet-mode-badge{display:inline-flex;align-items:center;justify-content:center;min-width:92px;padding:9px 12px;border-radius:12px;background:linear-gradient(135deg,var(--primary),#16b7d4);color:#fff;font-size:9px;font-weight:900;box-shadow:0 8px 20px rgba(91,75,255,.2)}.currency-display-note,.conversion-note{margin:12px 0;background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.2);color:#b56c00;border-radius:14px;padding:10px 12px;font-size:9px;line-height:1.8}.dark .currency-display-note,.dark .conversion-note{color:#f8c96f}.locale-modal{display:grid;gap:9px;background:var(--card-soft);border-radius:17px;padding:13px;margin-bottom:14px}.locale-modal label{font-size:9px;color:var(--muted);font-weight:800}.locale-modal .compact-control{width:100%}.locale-modal .compact-control button{flex:1}.locale-modal p{font-size:8px;color:var(--hint);line-height:1.7}.modal-center{text-align:center}.brand-result{color:var(--primary)!important;background:rgba(91,75,255,.1)!important}.brand-result img{width:44px;height:44px;object-fit:contain}.ltr-input{direction:ltr!important;text-align:left!important}

html[dir="ltr"] .product-card,html[dir="ltr"] .profile-menu>button,html[dir="ltr"] .faq-item button,html[dir="ltr"] .plan-card,html[dir="ltr"] .plan-name,html[dir="ltr"] .plan-head,html[dir="ltr"] .benefits div{text-align:left}
html[dir="ltr"] .product-arrow{left:auto;right:13px;transform:rotate(180deg)}
html[dir="ltr"] .product-card.selected::after{left:auto;right:12px}
html[dir="ltr"] .slider-dots{right:auto;left:24px}
html[dir="ltr"] .plan-head{justify-content:space-between;align-items:flex-start}
html[dir="ltr"] .plan-price{text-align:right;margin-left:auto;margin-right:0}
html[dir="ltr"] .plan-ref-info{justify-content:flex-start}
html[dir="ltr"] .modal-row b{text-align:right}
html[dir="ltr"] .profile-menu i[data-icon="chevron"] svg,html[dir="ltr"] .profile-menu i:not(.menu-value) svg{transform:rotate(180deg)}
html[dir="ltr"] .btn-spin{margin-right:0;margin-left:6px}
html[dir="ltr"] .ambient-one{right:auto;left:-110px}html[dir="ltr"] .ambient-two{left:auto;right:-150px}
html[dir="ltr"] .promo-slide{transform:translateX(18px)}html[dir="ltr"] .promo-slide.active{transform:none}
html[dir="ltr"] .promo-slide::before{left:auto;right:-85px}html[dir="ltr"] .promo-slide::after{right:auto;left:-65px}
html[dir="ltr"] .tile-small{right:auto;left:1px}html[dir="ltr"] .promo-cyan .tile-small{right:auto;left:-14px}html[dir="ltr"] .dot-a{right:auto;left:25px}html[dir="ltr"] .dot-b{left:auto;right:20px}
html[dir="ltr"] .product-card::before{left:auto;right:-55px}
html[dir="ltr"] .recommend-ribbon{direction:ltr}
html[dir="ltr"] .terms-list div{direction:ltr}
html[dir="ltr"] .invite-copy code{direction:ltr}

@media(max-width:380px){.preference-row{align-items:flex-start;flex-direction:column}.compact-control{width:100%}.compact-control button{flex:1}}

/* ===== Dual referral links (IRT / USD) ===== */
.invite-card{display:block;background:linear-gradient(135deg,rgba(91,75,255,.1),rgba(22,199,217,.08));padding:14px}
.invite-head{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center;margin-bottom:12px}
.invite-copy code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.referral-option{background:var(--card);border:1px solid var(--border);border-radius:17px;padding:11px;margin-top:9px;box-shadow:0 5px 16px rgba(20,20,60,.04)}
.referral-option-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.referral-option-head>div b{display:block;font-size:10px;font-weight:900;color:var(--text)}
.referral-option-head>div small{display:block;font-size:8px;color:var(--muted);margin-top:2px}
.referral-option-head>span{direction:ltr;display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900}
.toman-referral .referral-option-head>span{background:rgba(82,196,26,.13);color:#389e0d}
.usd-referral .referral-option-head>span{background:rgba(22,119,255,.12);color:#1677ff}
.referral-option>code{direction:ltr;display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--card-soft);border:1px dashed var(--border);color:var(--text);padding:8px 9px;border-radius:10px;font-size:7.5px;text-align:left}
.referral-option .invite-actions{display:flex;gap:7px;margin-top:8px}
.referral-option .invite-actions button{flex:1;border:0;border-radius:11px;padding:8px;font-size:8.5px;font-weight:900}
.referral-option .invite-actions button:first-child{background:var(--card-soft);color:var(--primary)}
.referral-option .invite-actions button:last-child{background:var(--primary);color:#fff}
.usd-referral .invite-actions button:last-child{background:#1677ff}
.referral-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.referral-summary>span{min-width:0;background:var(--card);border:1px solid var(--border);border-radius:11px;padding:7px 5px;text-align:center}
.referral-summary b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;font-weight:900;color:var(--text)}
.referral-summary small{font-size:6.8px;color:var(--muted)}
html[dir="ltr"] .invite-head{grid-template-columns:46px 1fr}
html[dir="ltr"] .referral-option>code{text-align:left}
.tx-icon.referral{background:rgba(114,46,209,.13);color:#722ed1}

.referral-option-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin:10px 0 8px;color:var(--muted)}
.referral-option-meta small{font-size:11px;line-height:1.8}
.referral-option-meta b{color:var(--text);font-weight:800}
[dir="ltr"] .referral-option-meta{justify-content:flex-start}


/* ===== v7.3 typography, home layout and language shortcut ===== */
html[lang="fa"] body,
html[lang="fa"] button,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select{font-family:"Vazirmatn","Inter",system-ui,-apple-system,sans-serif}
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select{font-family:"Inter","Vazirmatn",system-ui,-apple-system,sans-serif}
body{font-weight:400;line-height:1.55;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,input,textarea,select{font-family:inherit}
h1,h2,h3,.splash-title,.brand-mini b,.product-price b,.plan-price b,.wallet-top b,.profile-stats b{font-weight:800}
.eyebrow,.promo-kicker,.product-badge,.section-note,.muted,.settings-hint{font-weight:600}
.btn,.promo-cta,.select-plan-btn,.wallet-deposit,.invite-actions button,.nav button small{font-weight:700}

.topbar{position:relative;gap:12px;min-width:0}
.brand-mini{min-width:0;flex:1}
.brand-mini>span:last-child{min-width:0}
.brand-mini b,.brand-mini small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.language-icon-button{position:relative;display:flex;align-items:center;justify-content:center;gap:2px;padding:0}
.language-icon-button>span{display:grid;place-items:center}
.language-icon-button small{position:absolute;inset-inline-end:-4px;bottom:-4px;min-width:22px;height:18px;padding:0 4px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--cyan));color:#fff;border:2px solid var(--bg);display:grid;place-items:center;font-size:8px;font-weight:900;line-height:1;direction:ltr;box-shadow:0 5px 12px rgba(91,75,255,.25)}

/* Prevent home cards from colliding on narrow screens and in English. */
#page-home>*{min-width:0}
.promo-slider{min-height:278px}
.promo-slide{grid-template-columns:minmax(0,1fr) minmax(88px,112px);gap:12px;padding:25px 22px 42px}
.promo-copy{min-width:0}
.promo-copy h1,.promo-copy h2,.promo-copy p{overflow-wrap:anywhere}
.promo-art{min-width:0}
.trust-strip{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.trust-strip>div{min-width:0;grid-template-columns:32px minmax(0,1fr);padding:11px 8px;overflow:hidden}
.trust-strip b,.trust-strip small{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.trust-strip b{font-size:10px}
.trust-strip small{font-size:7.5px}
.section-head{min-width:0;gap:12px;flex-wrap:wrap}
.section-head>div{min-width:0;flex:1 1 180px}
.section-note{max-width:42%;text-align:end;line-height:1.55;overflow-wrap:anywhere}
.product-grid{align-items:stretch}
.product-grid>.empty{grid-column:1/-1}
.product-card{display:flex;flex-direction:column;min-width:0;min-height:218px;padding:15px 15px 13px}
.product-top{min-width:0;gap:8px}
.product-logo{flex:0 0 auto}
.product-badge{max-width:54%;white-space:normal;text-align:center;line-height:1.4;overflow-wrap:anywhere}
.product-card h3{overflow-wrap:anywhere;line-height:1.55}
.product-card p{min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.product-meta{margin-top:auto;padding-top:13px;gap:8px;min-width:0;align-items:flex-end}
.product-price,.product-count{min-width:0}
.product-price b,.product-count b{display:block;overflow-wrap:anywhere}
.product-arrow{position:static;align-self:flex-end;margin-top:7px;margin-inline-start:auto;height:18px}
html[dir="ltr"] .product-arrow{transform:rotate(180deg)}
.selected-product-head{min-width:0}
.selected-product-head>div:last-child{min-width:0}
.selected-product-head h2,.selected-product-head p{overflow-wrap:anywhere}
.benefits>div{min-width:0;overflow-wrap:anywhere}

/* Both referral links are always visible; language only changes their labels. */
.referral-links-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:10px}
.referral-option{min-width:0;margin-top:0;padding:13px;border-radius:19px}
.referral-option-head{align-items:flex-start;margin-bottom:10px}
.referral-option-head>div{min-width:0}
.referral-option-head>div b{font-size:11px;line-height:1.6}
.referral-option-head>div small{font-size:8.5px;line-height:1.65;overflow-wrap:anywhere}
.referral-wallet-icon{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center}
.referral-wallet-icon svg{width:18px;height:18px}
.toman-referral .referral-wallet-icon{background:rgba(34,197,94,.13);color:#16a34a}
.usd-referral .referral-wallet-icon{background:rgba(22,119,255,.12);color:#1677ff}
.referral-option>code{font-family:"Inter",monospace;font-size:8px;padding:10px;min-height:34px}
.referral-option-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.referral-option-meta small{min-width:0;background:var(--card-soft);border-radius:10px;padding:7px 8px;font-size:8.5px;line-height:1.55;overflow-wrap:anywhere}
.referral-option-meta b{display:block;margin-top:2px;font-size:10px}
.referral-summary>span{min-height:54px;display:flex;flex-direction:column;justify-content:center}
.referral-summary b{font-size:9px}
.referral-summary small{font-size:7px;line-height:1.4}

@media(min-width:620px){
  .referral-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .promo-slider{min-height:292px}
}
@media(max-width:480px){
  .promo-slider{min-height:292px}
  .promo-slide{grid-template-columns:minmax(0,1fr) 72px;padding:23px 18px 43px;gap:6px}
  .promo-copy h1,.promo-copy h2{font-size:21px;line-height:1.5}
  .promo-copy p{font-size:10px;line-height:1.75}
  .promo-art{height:120px;transform:scale(.72);transform-origin:center}
  .section-note{max-width:100%;text-align:start}
}
@media(max-width:370px){
  .page{padding:13px}
  .brand-mini small{display:none}
  .topbar-actions{gap:6px}
  .icon-button{width:39px;height:39px;border-radius:13px}
  .promo-slider{min-height:306px}
  .promo-slide{grid-template-columns:1fr;padding:22px 17px 45px}
  .promo-copy{padding-inline-end:0}
  .promo-art{display:none}
  .trust-strip{gap:6px}
  .trust-strip>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:9px 5px}
  .trust-icon{width:30px;height:30px;flex:0 0 auto}
  .trust-strip b{font-size:8.5px}
  .trust-strip small{font-size:6.7px}
  .product-grid{gap:9px}
  .product-card{padding:12px;min-height:208px;border-radius:20px}
  .product-logo{width:47px;height:47px}
  .product-badge{font-size:7px;padding:4px 6px}
  .product-card h3{font-size:13px}
  .product-card p{font-size:8px}
  .product-price b{font-size:11px}
  .referral-option-meta{grid-template-columns:1fr}
}

/* Language-scoped referral UI */
.referral-option[hidden],.referral-summary>span[hidden]{display:none!important}
.referral-summary{grid-template-columns:repeat(2,minmax(0,1fr))}

/* v7.3.2: place the selected-product marker on the product logo. */
.product-card.selected::after{
  content:none;
}
.product-logo{
  position:relative;
  overflow:visible;
  isolation:isolate;
}
.product-logo img{
  position:relative;
  z-index:1;
}
.product-card.selected .product-logo::after{
  content:"";
  position:absolute;
  top:-7px;
  right:-7px;
  left:auto;
  z-index:4;
  width:26px;
  height:26px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--product-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
  box-shadow:0 4px 12px var(--product-shadow),0 0 0 2.5px var(--card);
  pointer-events:none;
  animation:badgePop .22s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes badgePop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
html[dir="rtl"] .product-card.selected .product-logo::after{
  right:-7px;
  left:auto;
}
html[dir="ltr"] .product-card.selected .product-logo::after{
  left:-7px;
  right:auto;
}


/* v7.3.4: keep the PREMIUM check tile away from its label. */
.premium-art .tile-small{
  inset-inline-start:auto;
  inset-inline-end:-10px;
  bottom:-8px;
}


/* ===== v7.3.7: stable bottom navigation and centered order layout ===== */
/* Page changes must be immediate. The old opacity/translate animation made the
   Orders page look frozen for a fraction of a second inside Telegram WebView. */
.page.active{
  animation:none;
}

/* Keep the bottom navigation on its own compositor layer so Android/Telegram
   does not visually push it down while a new page is being painted. */
.nav{
  width:100%;
  max-width:100vw;
  transform:translate3d(0,0,0);
  -webkit-transform:translate3d(0,0,0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  touch-action:manipulation;
}
.nav button{
  min-width:0;
  transform:none!important;
  touch-action:manipulation;
}
.nav button span,
.nav button.active span{
  transform:none;
  transition:color .18s ease,opacity .18s ease;
}

/* Every order-related rectangle uses the same centered content width. */
#page-orders{
  width:100%;
  max-width:760px;
  margin-inline:auto;
  padding-inline:16px;
}
#page-orders .page-header,
#page-orders .order-filter,
#page-orders .orders-list{
  width:100%;
  max-width:100%;
  margin-inline:auto;
}
.orders-list{
  justify-items:stretch;
  align-items:start;
}
.order-card{
  width:100%;
  max-width:100%;
  min-width:0;
  margin-inline:auto;
  justify-self:stretch;
}
.order-card-head,
.order-info-grid,
.timeline,
.order-card-foot{
  width:100%;
  min-width:0;
}
.order-info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.order-info-grid>div{
  width:100%;
  min-width:0;
}

@media(max-width:380px){
  #page-orders{padding-inline:13px}
}

/* ===== v7.3.8: persistent promo decorations and slider indicators ===== */
/* A transformed slide creates a stacking context while moving. In the previous
   version the decorative circles used z-index:-1, so they were visible during
   the transition and could fall behind the card as soon as transform became
   none. Keep every slide in its own stable stacking context instead. */
.promo-slider{
  isolation:isolate;
  transform:translateZ(0);
  -webkit-transform:translateZ(0);
}
.promo-slide{
  z-index:0;
  isolation:isolate;
  transform:translate3d(-18px,0,0);
  -webkit-transform:translate3d(-18px,0,0);
  will-change:opacity,transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
html[dir="ltr"] .promo-slide{
  transform:translate3d(18px,0,0);
  -webkit-transform:translate3d(18px,0,0);
}
.promo-slide.active,
html[dir="ltr"] .promo-slide.active{
  z-index:2;
  transform:translate3d(0,0,0);
  -webkit-transform:translate3d(0,0,0);
}
.promo-slide::before,
.promo-slide::after{
  z-index:0;
  opacity:1;
  pointer-events:none;
}
.promo-copy,
.promo-art{
  position:relative;
  z-index:1;
}
.slider-dots{
  z-index:20;
  opacity:1!important;
  visibility:visible!important;
  transform:translateZ(0);
  -webkit-transform:translateZ(0);
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
.slider-dots button{
  display:block;
  flex:0 0 7px;
  width:7px;
  min-width:7px;
  height:7px;
  padding:0;
  opacity:1;
  appearance:none;
  -webkit-appearance:none;
  transition:flex-basis .3s ease,width .3s ease,background-color .3s ease;
}
.slider-dots button.active{
  flex-basis:24px;
  width:24px;
}

/* Referral Badges & Stock Management */
.product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(91,75,255,.1);
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.product-ref-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px dashed rgba(34, 197, 94, 0.45);
  color: #10b981;
  padding: 2.5px 7.5px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  margin: 6px 0 2px auto;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.06);
  transition: border-color 0.2s, background 0.2s;
}
body.ltr .product-ref-tag {
  margin: 6px auto 2px 0;
}
body.dark .product-ref-tag {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  color: #34d399;
}
.plan-ref-info {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5px;
}
.plan-ref-info .ref-badge.green-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 5px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px dashed rgba(34, 197, 94, 0.45);
  color: #10b981;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
body.dark .plan-ref-info .ref-badge.green-ref {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.55);
  color: #34d399;
}
.plan-ref-info .ref-badge.gray-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  line-height: 1;
}
.plan-ref-info .ref-badge.gray-ref svg {
  width: 11px;
  height: 11px;
}
.plan-card.sold-out {
  opacity: 0.65;
  filter: grayscale(0.4);
}
.plan-card.sold-out .select-plan-btn {
  background: var(--card-soft);
  color: var(--muted);
  cursor: not-allowed;
}

/* ===== Product Card Sold-out State ===== */
.product-card.sold-out,
.product-card:disabled {
  opacity: 0.62;
  filter: grayscale(0.35);
  border-color: rgba(239, 68, 68, 0.22);
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  user-select: none;
}
.product-card.sold-out:active,
.product-card:disabled:active {
  transform: none !important;
  box-shadow: none !important;
}
body.dark .product-card.sold-out,
body.dark .product-card:disabled {
  opacity: 0.52;
  filter: grayscale(0.45);
  border-color: rgba(239, 68, 68, 0.25);
}
.product-badge.sold-out {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.26) !important;
  color: #ef4444 !important;
  font-weight: 800;
}
body.dark .product-badge.sold-out {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.38) !important;
  color: #f87171 !important;
}
.product-price.sold-out b {
  color: #ef4444 !important;
  font-size: 11.5px !important;
  font-weight: 900;
}
body.dark .product-price.sold-out b {
  color: #f87171 !important;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 7.5px;
  border-radius: 99px;
  padding: 2.5px 7px;
  background: rgba(34, 197, 94, 0.08);
  color: var(--green);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1;
}
.stock-pill.sold-out {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  font-weight: 800;
  font-size: 7.5px;
  padding: 2.5px 7px;
}
.stock-pill.in-stock {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  font-weight: 700;
  font-size: 7.5px;
  padding: 2.5px 7px;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ===== Wallet Balance Breakdown (Direct & Referral Sub-balances) ===== */
.wallet-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 13px 0 11px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  padding: 8px 12px;
  direction: rtl;
}
html[dir="ltr"] .wallet-breakdown {
  direction: ltr;
}
.wallet-breakdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: right;
}
html[dir="ltr"] .wallet-breakdown-item {
  text-align: left;
}
.wallet-breakdown-item:first-child {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
  padding-inline-end: 10px;
}
.wallet-breakdown-item:last-child {
  padding-inline-start: 10px;
}
.wallet-breakdown-item small {
  font-size: 8px !important;
  opacity: 0.82;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  line-height: 1.35;
}
.wallet-breakdown-item b {
  font-size: 10.5px !important;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  margin-top: 1px;
}

/* ===== Centered Checkmarks & Performance Helpers ===== */
.result-icon.ok {
  background: rgba(34, 197, 94, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 36px 36px;
  color: transparent !important;
  font-size: 0 !important;
}
.tl-step.done .tl-dot {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / 13px 13px !important;
  border-color: var(--green) !important;
  color: transparent !important;
  font-size: 0 !important;
}
.glass-tile.tile-small {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
}

