/* Binkav — site styles. Right-to-left first; dark by default, light on request. */

@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-arabic-800-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/fonts/vazirmatn-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/fonts/vazirmatn-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/fonts/vazirmatn-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/fonts/vazirmatn-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --bg: #0d0c0b;
  --bg-2: #121110;
  --surface: #171614;
  --surface-2: #1e1c19;
  --surface-3: #272420;
  --line: #2b2824;
  --line-soft: #211f1c;
  --line-strong: #3a3631;
  --fg: #f6f3ee;
  --fg-2: #d9d4cb;
  --muted: #a8a196;
  --subtle: #857e73;
  --brand: #f5a524;
  --brand-2: #de8b25;
  --brand-fg: #1a1206;
  --brand-soft: rgba(245, 165, 36, 0.12);
  --brand-softer: rgba(245, 165, 36, 0.06);
  --ok: #3fcf8e;
  --ok-soft: rgba(63, 207, 142, 0.12);
  --warn: #f5c451;
  --warn-soft: rgba(245, 196, 81, 0.12);
  --danger: #f2555a;
  --danger-soft: rgba(242, 85, 90, 0.12);
  --info: #8ab4ff;
  --info-soft: rgba(138, 180, 255, 0.12);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1160px;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #fbfaf7;
  --bg-2: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #f6f4ef;
  --surface-3: #eeebe4;
  --line: #e7e2d8;
  --line-soft: #efebe3;
  --line-strong: #d6d0c4;
  --fg: #1c1a17;
  --fg-2: #3b3731;
  --muted: #6b645a;
  --subtle: #8a8378;
  --brand: #e8940f;
  --brand-2: #c9760c;
  --brand-fg: #1a1206;
  --brand-soft: rgba(232, 148, 15, 0.12);
  --brand-softer: rgba(232, 148, 15, 0.06);
  --ok: #16a34a;
  --ok-soft: rgba(22, 163, 74, 0.1);
  --warn: #b7791f;
  --warn-soft: rgba(183, 121, 31, 0.1);
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --info: #2563eb;
  --info-soft: rgba(37, 99, 235, 0.08);
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 12px 32px rgba(28, 26, 23, 0.06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.8;
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: 'ss01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { width: 18px; height: 18px; flex: none; }
.pay-option > svg { width: 26px; height: 26px; color: var(--brand); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
p { margin: 0 0 12px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.92em; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.stack > * + * { margin-block-start: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 500; font-size: 14.5px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg);
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-brand { background: linear-gradient(180deg, #f8b440, var(--brand)); border-color: transparent; color: var(--brand-fg); font-weight: 700; box-shadow: 0 6px 20px rgba(245, 165, 36, .25); }
.btn-brand:hover { background: linear-gradient(180deg, #fbc25c, #f7ad33); color: var(--brand-fg); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline { background: transparent; }
.btn-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 13px 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 500; }
.btn-google:hover { background: #f8f8f8; color: #1f1f1f; }
.btn-google svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--fg); }
.logo img { width: 32px; height: 32px; border-radius: 9px; }
.logo:hover { color: var(--fg); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--fg-2); font-size: 14.5px; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a.active { color: var(--fg); background: var(--surface-2); }
.header-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 66px; flex-direction: column; background: var(--bg); padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn-outline { display: none; }
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 720px; pointer-events: none;
  background: radial-gradient(600px 360px at 50% 20%, rgba(245, 165, 36, .18), transparent 70%), radial-gradient(500px 300px at 80% 0%, rgba(222, 139, 37, .10), transparent 70%);
}
.hero-grid::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--fg-2); }
.eyebrow .pill { background: var(--brand-soft); color: var(--brand); padding: 1px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; line-height: 1.35; margin: 22px auto 16px; max-width: 900px; }
.hero h1 .accent { background: linear-gradient(90deg, #ffd27a, var(--brand) 55%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; line-height: 1.9; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: 13px; color: var(--subtle); }
.shot { margin: 56px auto 0; max-width: 1080px; border-radius: 18px; padding: 8px; background: linear-gradient(180deg, var(--line-strong), transparent 70%); box-shadow: 0 40px 120px rgba(0, 0, 0, .5); }
.shot-inner { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); direction: ltr; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot-bar span { margin-inline: auto; font-size: 12px; color: var(--subtle); }
.shot-tabs { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.shot-tabs button { font: inherit; font-size: 13.5px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.shot-tabs button[aria-selected='true'] { background: var(--surface-2); color: var(--fg); border-color: var(--line-strong); }
.shot img[hidden] { display: none; }

/* ------------------------------------------------------------ sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--brand); font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.sources { padding: 28px 0; border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.sources .wrap { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; color: var(--subtle); font-size: 14px; }
.sources b { color: var(--fg-2); font-weight: 700; font-size: 15px; direction: ltr; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px 26px 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.step::before { counter-increment: step; content: counter(step, persian); position: absolute; top: -16px; inset-inline-start: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-fg); font-weight: 800; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; margin: 0; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tier .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.tier .tag .dot { width: 10px; height: 10px; border-radius: 50%; }
.tier.flash .dot { background: #7dd3fc; } .tier.pro .dot { background: var(--brand); } .tier.ultra .dot { background: #c4b5fd; }
.tier .model { font-size: 13.5px; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; display: inline-block; margin: 10px 0 12px; direction: ltr; }
.tier p { color: var(--muted); font-size: 14.5px; margin: 0; }
.privacy-note { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--ok-soft); color: var(--fg-2); font-size: 14.5px; }
.privacy-note svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 3px; }

/* ------------------------------------------------------------ pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.plan.highlight { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 20px 60px rgba(245, 165, 36, .12); background: linear-gradient(180deg, var(--brand-softer), var(--surface) 40%); }
.plan .badge { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(50%); background: var(--brand); color: var(--brand-fg); font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 19px; font-weight: 800; }
.plan .sub { color: var(--muted); font-size: 13.5px; margin: 2px 0 18px; min-height: 24px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price b { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .credit { font-size: 13.5px; color: var(--fg-2); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; color: var(--fg-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan .installments { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }
.trial { margin: 0 auto 28px; max-width: 760px; display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.trial b { font-weight: 800; }

.referral-band { border-radius: 22px; padding: 38px; background: radial-gradient(500px 240px at 90% 0%, rgba(245, 165, 36, .18), transparent 70%), var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .referral-band { grid-template-columns: 1fr; } }
.referral-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.referral-band .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.referral-band .stat { padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.referral-band .stat b { display: block; font-size: 30px; font-weight: 800; color: var(--brand); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

.cta-band { text-align: center; padding: 56px 24px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(600px 260px at 50% 0%, rgba(245, 165, 36, .16), transparent 70%), var(--surface); }
.cta-band h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }

.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 28px; margin-top: 40px; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--fg); font-size: 14.5px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.trust-seals { display: flex; gap: 10px; margin-top: 14px; }
.trust-seals .seal { width: 92px; height: 92px; padding: 6px; border-radius: 12px; border: 1px dashed var(--line-strong); display: grid; place-items: center; font-size: 10.5px; line-height: 1.6; color: var(--subtle); text-align: center; }

/* ------------------------------------------------------------ cards, forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--fg-2); }
.input, input[type='text'], input[type='number'], input[type='search'], input[type='email'], select, textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--fg); transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input.ltr-input { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; letter-spacing: .5px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--subtle); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.inline-form { display: inline; }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.alert-ok { background: var(--ok-soft); color: var(--fg); }
.alert-ok svg { color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--fg); }
.alert-warn svg { color: var(--warn); }
.alert-error { background: var(--danger-soft); color: var(--fg); }
.alert-error svg { color: var(--danger); }
.alert-info { background: var(--info-soft); color: var(--fg); }
.alert-info svg { color: var(--info); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.chip.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.chip.bad { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.chip.brand { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.chip.info { background: var(--info-soft); border-color: transparent; color: var(--info); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { font-weight: 500; color: var(--muted); font-size: 13px; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--subtle); }

/* ------------------------------------------------------------ panel */
.panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 66px); }
.sidebar { border-inline-end: 1px solid var(--line-soft); padding: 22px 14px; background: var(--bg-2); position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; }
.sidebar .who { display: flex; gap: 10px; align-items: center; padding: 6px 10px 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex: none; }
.sidebar .who div { min-width: 0; }
.sidebar .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .who span { display: block; font-size: 12px; color: var(--subtle); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--fg-2); font-size: 14.5px; }
.side-nav a svg { width: 18px; height: 18px; color: var(--subtle); }
.side-nav a:hover { background: var(--surface-2); color: var(--fg); }
.side-nav a.active { background: var(--surface-2); color: var(--fg); font-weight: 500; }
.side-nav a.active svg { color: var(--brand); }
.side-nav .sep { height: 1px; background: var(--line-soft); margin: 10px 4px; }
.side-nav .label { font-size: 12px; color: var(--subtle); padding: 8px 12px 2px; }
.main { padding: 30px 34px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; }
.page-head p { color: var(--muted); margin: 4px 0 0; }
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-inline-end: 0; border-bottom: 1px solid var(--line-soft); padding: 12px; }
  .sidebar .who { display: none; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; }
  .side-nav a { white-space: nowrap; }
  .side-nav .sep, .side-nav .label { display: none; }
  .main { padding: 22px 16px 48px; }
}

.balance-card { position: relative; overflow: hidden; padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(420px 200px at 100% 0%, rgba(245, 165, 36, .20), transparent 70%), var(--surface); }
.balance-card .label { color: var(--muted); font-size: 14px; }
.balance-card .amount { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.balance-card .amount b { font-size: 42px; font-weight: 800; }
.balance-card .amount span { color: var(--muted); }
.balance-card .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); }
.balance-card .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: block; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.meter { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 14px 0 8px; }
.meter > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.stat-card { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stat-card .k { color: var(--muted); font-size: 13px; }
.stat-card .v { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat-card .v small { font-size: 13px; font-weight: 400; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.copy-field { display: flex; gap: 8px; align-items: stretch; }
.copy-field input { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, monospace; }
.code-big { font-size: 30px; font-weight: 800; letter-spacing: 6px; direction: ltr; font-family: ui-monospace, Menlo, monospace; color: var(--brand); }
.device { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.device:last-child { border-bottom: 0; }
.device .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); flex: none; }
.device .ic svg { width: 20px; height: 20px; }
.slots { display: flex; gap: 8px; }
.slots i { width: 34px; height: 8px; border-radius: 999px; background: var(--surface-3); display: block; }
.slots i.on { background: var(--brand); }
.pay-options { display: grid; gap: 10px; }
.pay-option { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--bg-2); }
.pay-option:has(input:checked) { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 1px var(--brand); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-option .t b { display: block; font-size: 15px; }
.pay-option .t span { font-size: 13px; color: var(--muted); }
.summary-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14.5px; }
.summary-row + .summary-row { border-top: 1px dashed var(--line); }
.summary-row.total { font-weight: 800; font-size: 17px; }
.plan-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 900px) { .plan-pick { grid-template-columns: 1fr 1fr; } }
.plan-pick label { margin: 0; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; background: var(--bg-2); display: block; }
.plan-pick label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-softer); }
.plan-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plan-pick b { display: block; font-size: 16px; }
.plan-pick span { color: var(--muted); font-size: 13.5px; }
.result { max-width: 560px; margin: 40px auto; text-align: center; }
.result .ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.result .ic svg { width: 34px; height: 34px; }
.result.ok .ic { background: var(--ok-soft); color: var(--ok); }
.result.bad .ic { background: var(--danger-soft); color: var(--danger); }
.result.wait .ic { background: var(--warn-soft); color: var(--warn); }
.result h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }

/* ------------------------------------------------------------ auth */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.auth-card img.mark { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; }
.auth-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.auth-card .legal { font-size: 12.5px; color: var(--subtle); margin-top: 18px; }

/* ------------------------------------------------------------ prose (legal) */
.prose { max-width: 780px; margin: 0 auto; padding: 56px 20px; }
.prose h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-2); }
.prose ul { padding-inline-start: 20px; }

.qr svg { width: 200px; height: 200px; background: #fff; padding: 10px; border-radius: 12px; }
.toast-live { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 90; }
.inline-ic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.stat-card .ltr { display: block; text-align: right; }
:root[data-theme='light'] .hero h1 .accent { background: linear-gradient(90deg, #f0a21c, #c9760c); -webkit-background-clip: text; background-clip: text; }
.test-banner { background: #b45309; color: #fff; text-align: center; font-size: 13.5px; padding: 6px 12px; font-weight: 500; }
