/* ==========================================================================
   NiceVPN Mini App — لایهٔ طراحی «آرام» (هم‌خانوادهٔ پنل مدیریت)
   بعد از استایل اصلی بارگذاری می‌شود و فقط توکن‌ها و چند جزء را بازتعریف می‌کند.
   فونت: IRANSansX   |   رنگ برند: آبی   |   بدون گرادیان و هالهٔ رنگی
   ========================================================================== */
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Thin.woff2') format('woff2');font-weight:100;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-UltraLight.woff2') format('woff2');font-weight:200;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Light.woff2') format('woff2');font-weight:300;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Medium.woff2') format('woff2');font-weight:500;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-DemiBold.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-ExtraBold.woff2') format('woff2');font-weight:800;font-display:swap}
@font-face{font-family:IRANSansX;src:url('fonts/IRANSansX-Black.woff2') format('woff2');font-weight:900;font-display:swap}

:root{
  --font:IRANSansX,Tahoma,system-ui,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* تیره: سرمه‌ای آرام */
  --bg:#0d1224; --bg-2:#0d1224;
  --glass:#141b33; --glass-2:#182040; --glass-3:#1d2748; --glass-solid:#141b33;
  --stroke:rgba(255,255,255,.08); --stroke-2:rgba(255,255,255,.14); --stroke-glow:rgba(110,124,255,.35);
  --inner-hi:none;
  --text:#eef1fb; --text-2:#c3cae3; --muted:#8e97b8; --muted-2:#6c7597;
  --brand:#7d8bff; --brand-2:#7d8bff; --brand-ink:#fff;
  --brand-soft:rgba(125,139,255,.13); --brand-line:rgba(125,139,255,.32);
  --grad:linear-gradient(180deg,#4656f0,#3342e6); --grad-2:#3342e6; --grad-3:linear-gradient(180deg,#17a37d,#128a69);
  --grad-text:none;
  --green:#34d3a0; --green-soft:rgba(52,211,160,.13);
  --red:#ff6f86; --red-soft:rgba(255,111,134,.13);
  --amber:#f2b94b; --amber-soft:rgba(242,185,75,.13);
  --r-xs:8px; --r-sm:10px; --r-md:14px; --r-lg:18px; --r-xl:22px;
  --sh-sm:0 1px 2px rgba(0,0,0,.25); --sh-md:0 8px 24px -14px rgba(0,0,0,.6); --sh-lg:0 18px 44px -22px rgba(0,0,0,.7);
  --sh-brand:0 6px 16px -8px rgba(51,66,230,.7);
  --blur:none;
}
body.light{
  --bg:#f6f7fa; --bg-2:#f6f7fa;
  --glass:#ffffff; --glass-2:#ffffff; --glass-3:#f2f4fe; --glass-solid:#ffffff;
  --stroke:#e6e8f0; --stroke-2:#d3d7e6; --stroke-glow:rgba(38,53,217,.25);
  --text:#101a3e; --text-2:#3b4566; --muted:#6c7592; --muted-2:#9aa2ba;
  --brand:#2635d9; --brand-2:#2635d9;
  --brand-soft:#f2f4fe; --brand-line:#c7cdf8;
  --grad:linear-gradient(180deg,#3140e0,#2635d9); --grad-2:#2635d9; --grad-3:linear-gradient(180deg,#17a37d,#128a69);
  --green:#138a67; --green-soft:#e7f5f0;
  --red:#d42a48; --red-soft:#fdeef1;
  --amber:#b58600; --amber-soft:#fbf6e2;
  --sh-sm:0 1px 2px rgba(16,26,62,.05); --sh-md:0 8px 24px -16px rgba(16,26,62,.22); --sh-lg:0 18px 44px -24px rgba(16,26,62,.28);
  --sh-brand:0 6px 16px -8px rgba(38,53,217,.5);
}
body{font-family:var(--font);font-weight:400;font-size:14px;line-height:1.9}
body::before,body::after{display:none !important}
h1,h2,h3{font-weight:800;letter-spacing:0}
.hero h1{background:none !important;-webkit-text-fill-color:currentColor !important;color:var(--text) !important;font-size:22px;font-weight:800}
.mono,code,.link-preview{font-family:var(--mono)}

/* ایقاع عمودی: بخش‌ها دیگر به هم نمی‌چسبند */
.screen>*+*,.stage>*+*{margin-top:18px}
.stage>.section-head{margin-top:6px}
.invoice>*+*,.quote-box>*+*{margin-top:2px}
.sheet,.invoice,.quote-box,.plan-card,.service-card,.profile-card,.wallet-hero,.done-card,.upload-box,.bank-card{box-shadow:var(--sh-sm);border:1px solid var(--stroke);backdrop-filter:none;-webkit-backdrop-filter:none}

/* دکمه‌ها: ساده، بدون هاله */
.btn{border-radius:12px;font-weight:600;min-height:46px;box-shadow:none}
.btn.brand{background:var(--grad);color:#fff;box-shadow:var(--sh-brand)}
.btn.green{background:var(--grad-3);color:#fff;box-shadow:none}
.btn.ghost{background:transparent;border:1px solid var(--stroke-2);color:var(--text-2)}
.btn.soft{background:var(--brand-soft);border:1px solid var(--brand-line);color:var(--brand)}

/* هدر و نوار پایین */
.tabs{background:var(--glass);border-top:1px solid var(--stroke);backdrop-filter:none}
.tabs button.active{background:var(--brand-soft);color:var(--brand)}
.tabs button.active::before{display:none}
.steps .step{height:3px;background:var(--stroke-2)}
.steps .step.active{background:var(--brand)}

/* کارت پلن */
.plan-card{border-radius:var(--r-lg);padding:18px}
.plan-card.selected,.plan-card.active{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.plan-card::before,.plan-card::after{display:none !important}
.plan-card.selected .plan-price strong,.plan-card.active .plan-price strong{background:none;-webkit-text-fill-color:currentColor;color:var(--brand)}

/* ───── شیت پرداخت کارت‌به‌کارت ───── */
.modal-sheet{border-radius:22px 22px 0 0;background:var(--glass-solid);box-shadow:var(--sh-lg);border:1px solid var(--stroke)}
.modal-sheet::before{display:none}
.sms-sheet{display:flex;flex-direction:column;gap:16px;padding-bottom:calc(20px + var(--safe-b))}
.sms-sheet .modal-head{margin-bottom:0}
.sms-warn{background:var(--amber-soft);border:1px solid transparent;color:var(--text);border-radius:14px;padding:12px 14px;font-weight:600;font-size:12.5px}
.sms-warn i{color:var(--amber)}
.sms-amount{background:var(--glass);border:1px solid var(--brand-line);border-radius:16px;padding:20px 18px;gap:12px;box-shadow:none}
.sms-amount>span{color:var(--muted);font-size:12.5px;font-weight:500}
.sms-amount strong{font-size:34px;font-weight:300;letter-spacing:0;color:var(--text);line-height:1.4;font-feature-settings:"tnum"}
.sms-toman{padding-top:10px;border-top:1px dashed var(--stroke-2);font-size:12.5px}
.sms-toman b{font-weight:700;color:var(--text)}
.sms-toman button{background:var(--brand-soft);border:0;border-radius:9px;color:var(--brand);padding:6px 12px}
.sms-card{background:var(--glass);border:1px solid var(--stroke);border-radius:16px;padding:14px 16px}
.sms-card b{font-weight:600;font-size:17px;letter-spacing:.5px;direction:ltr;text-align:right}
.sms-card small{font-weight:300}
.sms-status{background:var(--brand-soft);border-radius:12px;font-weight:600}
.sms-sheet .modal-actions{display:grid;gap:10px;margin-top:2px}

#smsPayView,#smsDoneView{display:flex;flex-direction:column;gap:16px}
.sms-warn{background:var(--amber-soft)}
body:not(.light) .sms-warn{background:rgba(242,185,75,.12)}

/* اسپلش آرام */
#splashScreen{background:var(--bg) !important}
#splashScreen::before{display:none !important}
.splash-logo{background:var(--brand) !important;border-radius:20px !important;box-shadow:none !important;color:#fff}
.splash-logo::after{display:none !important}
.splash-title{background:none !important;-webkit-text-fill-color:currentColor !important;color:var(--text) !important;font-weight:700}

/* هدر */
.brand-mark,.app-logo,.logo{background:var(--brand) !important;box-shadow:none !important}
.chip,.balance-chip{box-shadow:none}

/* ───── وزن و فاصلهٔ حروف/ارقام (استاندارد و خوانا) ───── */
*{letter-spacing:0 !important;font-variant-numeric:normal !important}
small,.muted,p,.hint,label small{font-weight:400}
.balance-pill,.plan-price strong,.plan-price .old,.pay-total b,.row b,.wallet-hero strong,.mini-cards b,.wallet-meta b,.sms-toman b,.sms-card b,.traffic-stat b,.detail-item b,.profile-card b,.expire-card b{font-weight:700 !important}
.sms-amount strong{font-weight:800 !important}
.balance-pill{font-size:13px}
.wallet-hero strong{font-weight:800 !important;font-size:30px}

/* دکمهٔ «ادامه و مشاهده فاکتور»: شناور، یک‌رنگ و تمیز (قبلاً نوار تیره می‌شد) */
.btn.full.brand.sticky-next,.sticky-next{
  inset-inline:16px;width:auto;max-width:520px;margin-inline:auto;padding:0 20px;min-height:52px;
  background:var(--grad) !important;color:#fff !important;border:0;border-radius:14px;
  box-shadow:0 12px 26px -12px rgba(38,53,217,.65);
  inset-block-end:calc(var(--tabs-h) + var(--safe-b) + 16px);
  display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;font-size:14.5px;
}
.btn.full.brand.sticky-next i{font-size:13px}
body:has(.sticky-next.show) .screen{padding-bottom:96px}
.receipt-submit-sticky{border-radius:14px}

/* ───── هدر: مات و بدون شفافیت (محتوا زیرش دیده نشود) ───── */
.app-header{background:var(--bg) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;border-bottom:1px solid var(--stroke)}

/* ───── دکمهٔ ادامه: ساده، یک‌رنگ، بدون نوار/محو ───── */
.sticky-next,.btn.full.brand.sticky-next{
  background:#2f3fe6 !important;background-image:none !important;color:#fff !important;border:0 !important;
  backdrop-filter:none !important;-webkit-backdrop-filter:none !important;opacity:1;
  height:50px;min-height:50px;border-radius:14px;box-shadow:0 8px 20px -10px rgba(47,63,230,.7) !important;
  font-size:14px;font-weight:600}
.sticky-next:not(.show){opacity:0}
.sticky-next::before,.sticky-next::after{display:none !important}
body.light .sticky-next,body.light .btn.full.brand.sticky-next{background:#2635d9 !important}

/* ───── وزن‌ها: عنوان‌ها ۷۰۰، برچسب‌ها ۵۰۰، متن ۴۰۰ ───── */
h1,h2,h3{font-weight:700}
.service-title-wrap h3,.plan-title-row h3{font-weight:600}
.row span,.detail-item span,label,.field span{font-weight:400}
.row b{font-weight:600 !important}
.sms-warn,.sms-warn b{font-weight:500}
.notice,.notice b{font-weight:400}

/* ───── کارت شمارهٔ بانکی ───── */
.bank-card2{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:22px;
  min-height:178px;padding:18px 20px 16px;border-radius:18px;color:#fff;
  background:linear-gradient(135deg,#1b2a8f 0%,#2b3be0 55%,#4658ff 100%);
  box-shadow:0 16px 30px -18px rgba(38,53,217,.8)}
.bank-card2::before{content:"";position:absolute;width:240px;height:240px;border-radius:50%;inset-block-start:-120px;inset-inline-start:-70px;background:rgba(255,255,255,.08)}
.bank-card2::after{content:"";position:absolute;width:200px;height:200px;border-radius:50%;inset-block-end:-130px;inset-inline-end:-50px;background:rgba(255,255,255,.06)}
.bank-card2>*{position:relative;z-index:1}
.bc-top{display:flex;align-items:center;justify-content:space-between}
.bc-chip{position:relative;display:block;width:44px;height:33px;border-radius:7px;overflow:hidden;
  background:linear-gradient(135deg,#f3d98f 0%,#d9a93f 55%,#f0cd7a 100%);box-shadow:inset 0 0 0 1px rgba(0,0,0,.18)}
.bc-chip::before,.bc-chip::after{content:"";position:absolute;background:rgba(80,50,0,.35)}
.bc-chip::before{inset-block:0;inset-inline-start:33%;width:1px;box-shadow:13px 0 0 rgba(80,50,0,.35)}
.bc-chip::after{inset-inline:0;inset-block-start:33%;height:1px;box-shadow:0 11px 0 rgba(80,50,0,.35)}
.bc-chip i{position:absolute;inset:9px 11px;border-radius:4px;border:1px solid rgba(80,50,0,.4);background:rgba(255,255,255,.18)}
.bc-wave{width:26px;height:26px;color:rgba(255,255,255,.8);transform:scaleX(-1)}
.bc-number{direction:ltr;text-align:center;font-size:20px;font-weight:500;word-spacing:8px;line-height:1.4;text-shadow:0 1px 0 rgba(0,0,0,.18)}
.bc-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.bc-bottom small{display:block;font-size:10.5px;font-weight:400;opacity:.7;line-height:1.5}
.bc-bottom b{display:block;font-size:13.5px;font-weight:600}
.bc-copy{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:12px;font-weight:500}
.bc-copy:active{background:rgba(255,255,255,.26)}

/* ───── وضعیت سرویس‌ها: گِرد، سبز برای فعال ───── */
.status{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 11px;border-radius:999px;border:0;font-size:11.5px;font-weight:600;white-space:nowrap;line-height:1}
.status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:none;animation:none}
.status.approved,.status.online,.status.green{color:var(--green);background:var(--green-soft)}
.status.pending{color:var(--amber);background:var(--amber-soft)}
.status.expired,.status.old,.status.red,.status.rejected{color:var(--red);background:var(--red-soft)}
.status.cancelled{color:var(--muted);background:var(--stroke)}
.service-summary{gap:10px;align-items:center}
.service-title-wrap h3{font-size:13.5px;line-height:1.7;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.service-title-wrap small{font-size:11.5px;font-weight:400;line-height:1.7;display:block;margin-top:2px}
.service-summary-side{gap:8px;flex:none}
.service-card.active-service{border-color:var(--stroke)}
.service-card.active-service::before{background:var(--green);height:3px}
.plan-title-row h3{font-size:14px;line-height:1.7}
.status{max-width:none;overflow:visible;position:relative;width:auto;flex:none;padding-inline:12px}
.status::before{position:static !important;inset:auto !important;flex:none;margin:0;width:6px;height:6px}
