/* Mirza Web — design system (RTL, dark, glass). */
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Light.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Medium.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Vazir; src: url(../fonts/Vazir-Bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #070912;
  --bg-2: #0d1022;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-solid: #12162b;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0fb;
  --muted: #9aa0c3;
  --faint: #6b7199;
  --a1: #8b5cf6;
  --a2: #22d3ee;
  --a1-soft: rgba(139, 92, 246, .16);
  --glow: rgba(139, 92, 246, .45);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .14);
  --bad: #f43f5e;
  --bad-soft: rgba(244, 63, 94, .14);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .14);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .65);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-theme="blue"] { --a1: #3b82f6; --a2: #22d3ee; --a1-soft: rgba(59,130,246,.16); --glow: rgba(59,130,246,.45); }
[data-theme="emerald"] { --a1: #10b981; --a2: #a3e635; --a1-soft: rgba(16,185,129,.16); --glow: rgba(16,185,129,.42); }
[data-theme="rose"] { --a1: #f43f5e; --a2: #fb923c; --a1-soft: rgba(244,63,94,.16); --glow: rgba(244,63,94,.42); }
[data-theme="amber"] { --a1: #f59e0b; --a2: #f43f5e; --a1-soft: rgba(245,158,11,.16); --glow: rgba(245,158,11,.4); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: Vazir, Tahoma, sans-serif; font-size: 15px; line-height: 1.75;
  color: var(--text); background: var(--bg); direction: rtl; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
svg { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--a1); color: #fff; }

/* ---- background aurora ---- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background:
  radial-gradient(1200px 600px at 100% -10%, rgba(139,92,246,.08), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(34,211,238,.06), transparent 60%), var(--bg); }
.aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .32; animation: float 22s ease-in-out infinite; }
.aurora span:nth-child(1) { background: var(--a1); top: -18vmax; right: -12vmax; }
.aurora span:nth-child(2) { background: var(--a2); bottom: -22vmax; left: -14vmax; animation-delay: -7s; opacity: .22; }
.aurora span:nth-child(3) { background: #ec4899; top: 40%; left: 40%; width: 26vmax; height: 26vmax; animation-delay: -13s; opacity: .12; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 70%); }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-4vmax, 3vmax) scale(1.08); } 66% { transform: translate(3vmax,-2vmax) scale(.95); } }

/* ---- layout ---- */
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); background: rgba(7, 9, 18, .62); border-bottom: 1px solid var(--border); }
.topbar .container { display: flex; align-items: center; gap: 14px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 24px -6px var(--glow); }
.brand-mark svg { width: 21px; height: 21px; color: #fff; }
.nav { display: flex; gap: 4px; margin-inline-start: 18px; }
.nav a { padding: 8px 14px; border-radius: 12px; color: var(--muted); font-weight: 500; transition: .2s var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.topbar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.balance-pill { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; transition: .2s var(--ease); }
.balance-pill:hover { border-color: var(--border-strong); }
.balance-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border); }
main.page { padding: 28px 0 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

/* bottom nav (mobile) */
.bottom-nav { display: none; position: fixed; z-index: 50; bottom: 12px; inset-inline: 12px; padding: 8px; border-radius: 22px; background: rgba(13, 16, 34, .78); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border: 1px solid var(--border); box-shadow: var(--shadow); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 15px; color: var(--faint); font-size: 11px; font-weight: 600; transition: .25s var(--ease); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: #fff; background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 55%, var(--a2))); box-shadow: 0 8px 22px -8px var(--glow); }
.bottom-nav a.buy { color: var(--text); }

/* ---- cards ---- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.card.tight { padding: 16px; }
.card h2, .card h3 { margin: 0 0 6px; font-weight: 800; letter-spacing: -.2px; }
.card h2 { font-size: 19px; }
.card h3 { font-size: 16px; }
.card .sub { color: var(--muted); margin: 0; font-size: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-glow { overflow: hidden; }
.card-glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, var(--a1), transparent 40%, transparent 60%, var(--a2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; direction: ltr; unicode-bidi: embed; }
.ltr { direction: ltr; unicode-bidi: embed; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
hr.sep { border: 0; height: 1px; background: var(--border); margin: 18px 0; }

/* hero balance card */
.hero-card { padding: 26px; background: radial-gradient(600px 220px at 90% -40%, color-mix(in srgb, var(--a1) 45%, transparent), transparent 70%), radial-gradient(500px 220px at 0% 140%, color-mix(in srgb, var(--a2) 30%, transparent), transparent 70%), var(--surface); }
.hero-card .label { color: var(--muted); font-weight: 500; }
.hero-card .amount { font-size: clamp(30px, 6vw, 42px); font-weight: 900; letter-spacing: -1px; line-height: 1.2; margin: 6px 0 18px; }
.hero-card .amount small { font-size: 16px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: 14px; transition: .25s var(--ease); }
.quick:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.quick i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--a1-soft); color: var(--a1); }
.quick i svg { width: 23px; height: 23px; }
.quick.q2 i { background: rgba(34,211,238,.14); color: var(--a2); }
.quick.q3 i { background: var(--ok-soft); color: var(--ok); }

/* stats */
.stat { display: flex; align-items: center; gap: 14px; }
.stat .ico { width: 48px; height: 48px; flex: none; border-radius: 15px; display: grid; place-items: center; background: var(--a1-soft); color: var(--a1); }
.stat .ico svg { width: 24px; height: 24px; }
.stat .v { font-size: 22px; font-weight: 800; line-height: 1.3; }
.stat .k { color: var(--muted); font-size: 13px; }

/* ---- buttons ---- */
.btn { --b: var(--surface-2); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--b); font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s, opacity .2s; white-space: nowrap; user-select: none; }
.btn:hover { border-color: var(--border-strong); }
.btn:active { transform: scale(.97); }
.btn svg { width: 19px; height: 19px; }
.btn-primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 45%, var(--a2))); box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-success { border: 0; color: #fff; background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 10px 28px -12px rgba(34,197,94,.6); }
.btn-danger { color: var(--bad); background: var(--bad-soft); border-color: rgba(244,63,94,.28); }
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 26px; border-radius: 16px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- forms ---- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label, .label-sm { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--faint); font-size: 12.5px; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--border); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.8; }
.input:focus { border-color: color-mix(in srgb, var(--a1) 70%, transparent); box-shadow: 0 0 0 4px var(--a1-soft); background: rgba(0,0,0,.35); }
.input::placeholder { color: var(--faint); }
.input.ltr { text-align: left; }
.input.input-lg { text-align: center; }
.input-lg { min-height: 60px; font-size: 22px; font-weight: 800; text-align: center; letter-spacing: 3px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa0c3' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 40px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 48px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: .25s var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .25s var(--ease); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.switch input:checked + .track { background: linear-gradient(135deg, var(--a1), var(--a2)); }
.switch input:checked + .track::after { transform: translateX(-20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--a1-soft); }

/* OTP / code boxes */
.otp { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp input { width: 56px; height: 64px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--border); outline: none; transition: .2s; caret-color: var(--a1); }
.otp input:focus { border-color: var(--a1); box-shadow: 0 0 0 4px var(--a1-soft); transform: translateY(-2px); }
.otp.eight input { width: 42px; height: 56px; font-size: 22px; border-radius: 13px; }
.otp .gap { width: 10px; }

/* selectable tiles (panels, plans) */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: .25s var(--ease); overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--a1) 55%, transparent); box-shadow: 0 18px 40px -22px var(--glow); }
.tile.selected { border-color: var(--a1); box-shadow: 0 0 0 3px var(--a1-soft); }
.tile .t-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); margin-bottom: 4px; }
.tile .t-title { font-weight: 800; font-size: 16px; }
.tile .t-sub { color: var(--muted); font-size: 13px; }
.tile .arrow { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); transition: .25s var(--ease); }
.tile:hover .arrow { color: var(--a1); transform: translate(-4px, -50%); }

.plan { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: .25s var(--ease); overflow: hidden; }
.plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 55%, transparent); box-shadow: 0 24px 50px -26px var(--glow); }
.plan .p-name { font-weight: 800; font-size: 16px; min-height: 26px; }
.plan .p-price { font-size: 26px; font-weight: 900; margin: 10px 0 2px; letter-spacing: -.5px; }
.plan .p-price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }
.plan .p-feats { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.plan .p-feats li { display: flex; align-items: center; gap: 8px; }
.plan .p-feats svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.plan .btn { margin-top: auto; }
.plan::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: var(--a1); filter: blur(70px); opacity: 0; top: -80px; left: -60px; transition: .4s; pointer-events: none; }
.plan:hover::after { opacity: .18; }

/* stepper */
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: 8px; color: var(--faint); font-weight: 600; font-size: 13px; white-space: nowrap; }
.step .n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.step.done { color: var(--muted); }
.step.done .n { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.step.active { color: var(--text); }
.step.active .n { background: linear-gradient(135deg, var(--a1), var(--a2)); border: 0; color: #fff; box-shadow: 0 6px 18px -6px var(--glow); }
.step-line { flex: 1; min-width: 18px; height: 2px; background: var(--border); border-radius: 2px; }

/* badges & chips */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.plain::before { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; cursor: pointer; transition: .2s var(--ease); }
.chip:hover { border-color: var(--border-strong); }
.chip.on { border-color: var(--a1); background: var(--a1-soft); color: #fff; }

/* service cards */
.svc { display: flex; flex-direction: column; gap: 14px; }
.svc-top { display: flex; align-items: center; gap: 12px; }
.svc-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--a1-soft); color: var(--a1); flex: none; }
.svc-ico svg { width: 24px; height: 24px; }
.svc-name { font-weight: 800; font-size: 16px; direction: ltr; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--a2), var(--a1)); box-shadow: 0 0 16px var(--glow); transition: width 1s var(--ease); }
.meter.warn > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: none; }
.meter.bad > i { background: linear-gradient(90deg, #fb7185, #f43f5e); box-shadow: none; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv > div { padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.18); border: 1px solid var(--border); }
.kv .k { color: var(--faint); font-size: 12px; }
.kv .v { font-weight: 800; font-size: 15px; }

/* ring */
.ring { --p: 50; --c: var(--a1); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--bg-2); }
.ring > * { position: relative; text-align: center; line-height: 1.3; }
.ring b { font-size: 24px; font-weight: 900; display: block; }

/* copy box */
.copy { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px dashed var(--border-strong); }
.copy .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; }
.copy.big .val { font-size: clamp(16px, 5.2vw, 22px); font-weight: 800; letter-spacing: 1px; text-align: center; white-space: nowrap; }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--info-soft); border: 1px solid rgba(56,189,248,.25); color: #d6f1ff; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.alert > div { min-width: 0; flex: 1; }
.alert.ok { background: var(--ok-soft); border-color: rgba(34,197,94,.28); color: #d7fbe4; }
.alert.warn { background: var(--warn-soft); border-color: rgba(245,158,11,.3); color: #fff1d6; }
.alert.bad { background: var(--bad-soft); border-color: rgba(244,63,94,.3); color: #ffe0e6; }
.alert b { color: #fff; }
.flashes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: right; font-weight: 700; color: var(--muted); font-size: 12.5px; padding: 12px 14px; background: rgba(255,255,255,.03); white-space: nowrap; }
.table td { padding: 13px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.025); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* empty state */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); }
.empty .e-ico { width: 74px; height: 74px; border-radius: 22px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); }
.empty .e-ico svg { width: 36px; height: 36px; }
.empty h3 { color: var(--text); margin: 0 0 6px; }

/* toast */
.toasts { position: fixed; z-index: 100; top: 80px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, 92vw); pointer-events: none; }
.toast { pointer-events: auto; padding: 13px 16px; border-radius: 15px; background: rgba(18,22,43,.95); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: toastIn .35s var(--ease); }
.toast.ok { border-color: rgba(34,197,94,.45); }
.toast.bad { border-color: rgba(244,63,94,.45); }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(3,4,10,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(460px, 100%); background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal .row { justify-content: flex-start; margin-top: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* entrance animation */
.reveal { animation: up .55s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .05s; } .reveal:nth-child(3) { animation-delay: .1s; } .reveal:nth-child(4) { animation-delay: .15s; } .reveal:nth-child(5) { animation-delay: .2s; } .reveal:nth-child(6) { animation-delay: .25s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* auth pages */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 32px 16px 60px; }
.auth-card { width: min(470px, 100%); padding: 32px 28px; }
.auth-card .auth-ico { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 16px; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 16px 40px -14px var(--glow); color: #fff; }
.auth-card .auth-ico svg { width: 32px; height: 32px; }
.auth-card h1 { text-align: center; margin: 0 0 6px; font-size: 23px; font-weight: 900; }
.auth-card .lead { text-align: center; color: var(--muted); margin: 0 0 24px; }
.howto { counter-reset: s; display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.howto li::before { content: counter(s, persian); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--a1-soft); color: var(--a1); font-weight: 800; font-size: 13px; }

/* landing */
.hero { padding: 70px 0 40px; text-align: center; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 13px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.hero h1 { font-size: clamp(32px, 7vw, 60px); line-height: 1.25; font-weight: 900; letter-spacing: -1.2px; margin: 18px 0 14px; }
.grad { background: linear-gradient(120deg, var(--a1), var(--a2) 60%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.feature { padding: 22px; }
.feature .f-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--a1-soft); color: var(--a1); margin-bottom: 12px; }
.feature .f-ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 30px 18px 0; color: var(--muted); font-size: 14px; }
.timeline li::before { content: ""; position: absolute; right: 7px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.timeline li::after { content: ""; position: absolute; right: 11px; top: 22px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline li.ok::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.timeline li.now::before { background: var(--a1); box-shadow: 0 0 0 5px var(--a1-soft); }
.timeline b { color: var(--text); }

/* pay page */
.pay-amount { text-align: center; padding: 8px 0 4px; }
.pay-amount .n { font-size: clamp(34px, 8vw, 48px); font-weight: 900; letter-spacing: -1px; line-height: 1.2; }
.pay-amount .u { color: var(--muted); font-weight: 600; }
.bank-card { position: relative; padding: 22px; border-radius: 22px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #1e1b4b, #312e81 45%, #0e7490); box-shadow: 0 24px 60px -24px rgba(49,46,129,.9); min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.bank-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); top: -120px; left: -60px; }
.bank-card::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(34,211,238,.18); bottom: -110px; right: -40px; filter: blur(4px); }
.bank-card > * { position: relative; z-index: 1; }
.bank-card .chip-ic { width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #f59e0b); opacity: .9; }
.bank-card .num { font-size: clamp(20px, 5.4vw, 27px); font-weight: 800; letter-spacing: 2.5px; direction: ltr; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; margin: 14px 0; }
.bank-card .holder { font-weight: 700; opacity: .92; }
.countdown { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown.low { background: var(--bad-soft); color: var(--bad); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border-radius: 18px; border: 2px dashed var(--border-strong); background: rgba(0,0,0,.18); cursor: pointer; text-align: center; transition: .2s var(--ease); }
.drop:hover, .drop.over { border-color: var(--a1); background: var(--a1-soft); }
.drop svg { width: 34px; height: 34px; color: var(--a1); }
.drop img { max-height: 180px; border-radius: 12px; }
.status-hero { text-align: center; padding: 10px 0; }
.status-hero .s-ico { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; }
.status-hero .s-ico svg { width: 42px; height: 42px; }
.status-hero.ok .s-ico { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 10px rgba(34,197,94,.06); }
.status-hero.wait .s-ico { background: var(--info-soft); color: var(--info); }
.status-hero.bad .s-ico { background: var(--bad-soft); color: var(--bad); }
.status-hero.warn .s-ico { background: var(--warn-soft); color: var(--warn); }
.status-hero h2 { margin: 0 0 6px; font-size: 21px; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .8; } }
.check-anim path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* footer */
.footer { padding: 26px 0 110px; color: var(--faint); font-size: 13px; text-align: center; }

/* responsive */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .bottom-nav { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4, .grid.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keep-2 .stat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .keep-2 .stat .ico { width: 40px; height: 40px; border-radius: 12px; }
  .keep-2 .stat .v { font-size: 17px; }
  main.page { padding-top: 20px; }
  .page-head h1 { font-size: 22px; }
  .card { padding: 18px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: 1fr 1fr; }
  .otp input { width: 50px; height: 58px; }
  .otp { gap: 6px; }
  .otp.eight input { width: 32px; height: 46px; font-size: 18px; border-radius: 10px; }
  .otp .gap { width: 4px; }
  .balance-pill .lbl { display: none; }
  .footer { padding-bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= admin ================= */
.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; border-inline-end: 1px solid var(--border); background: rgba(7, 9, 18, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 4px; z-index: 60; }
.side .brand { padding: 4px 8px 18px; }
.side .grp { color: var(--faint); font-size: 11.5px; font-weight: 700; padding: 14px 12px 6px; letter-spacing: .3px; }
.side a.item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14px; transition: .2s var(--ease); }
.side a.item svg { width: 19px; height: 19px; }
.side a.item:hover { background: var(--surface); color: var(--text); }
.side a.item.active { background: var(--a1-soft); color: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a1) 40%, transparent); }
.side a.item.active svg { color: var(--a1); }
.side .count { margin-inline-start: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; }
.side .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.admin-main { min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 24px; border-bottom: 1px solid var(--border); background: rgba(7, 9, 18, .6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.admin-top h1 { margin: 0; font-size: 18px; font-weight: 800; }
.admin-top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.admin-content { padding: 24px; max-width: 1280px; }
.side-toggle { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.filters .input, .filters select.input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; width: auto; min-width: 150px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.tabs button, .tabs a { height: 38px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button.on, .tabs a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.setting-row:first-child { border-top: 0; }
.setting-row .t { font-weight: 700; }
.setting-row .d { color: var(--faint); font-size: 13px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 13px; }
.pager span.on { background: var(--a1-soft); border-color: var(--a1); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 34px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--a2), var(--a1)); opacity: .9; transition: .2s; }
.bars .b:hover i { opacity: 1; box-shadow: 0 0 18px var(--glow); }
.bars .b span { font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.kvt { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.kvt dt { color: var(--muted); }
.kvt dd { margin: 0; font-weight: 600; word-break: break-word; }
pre.json { margin: 0; padding: 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--border); font-size: 12.5px; overflow: auto; max-height: 360px; direction: ltr; text-align: left; }
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; right: 0; width: 270px; transform: translateX(100%); transition: transform .3s var(--ease); background: #0b0e1d; }
  body.side-open .side { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.6); }
  body.side-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .side-toggle { display: inline-flex; }
  .admin-top { padding: 0 14px; }
  .admin-content { padding: 16px 14px 60px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kvt { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kvt dd { margin-bottom: 10px; }
}
