:root {
  --bg: #0B0912;
  --bg2: #0E0B16;
  --surface: #14101E;
  --surface2: #1A1526;
  --line: #221C33;
  --line2: #2A2340;
  --line3: #2E2645;
  --text: #EEEAF6;
  --text2: #C9C3DA;
  --muted: #A39DB5;
  --faint: #8C85A3;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent2: #8B5CF6;
  --accent-text: #C4B5FD;
  --accent-soft: #221A3A;
  --selected: #1E1733;
  --ok-bg: #0F2A22; --ok: #6EE7B7; --ok-dot: #34D399;
  --warn-bg: #2A2210; --warn: #FCD34D; --warn-dot: #FBBF24;
  --bad-bg: #2A1216; --bad: #FCA5A5; --bad-dot: #F87171; --bad-line: #4A1E26;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--accent-text); }
a:hover { color: #DDD6FE; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.display { font-family: var(--display); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flag { border-radius: 4px; flex-shrink: 0; display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface); border-color: var(--line3); color: var(--text); }
.btn-secondary:hover { background: var(--surface2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; border-color: #7F2A36; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.btn-sm { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); color: var(--accent-text); cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { border-color: var(--accent2); }
.icon-btn.is-done { color: var(--ok); border-color: var(--ok-dot); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: var(--text2); }
.input { height: 52px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-family: inherit; font-size: 15px; outline: none; transition: border-color .15s; }
.input:focus { border-color: var(--accent2); }
.input::placeholder { color: #6B6580; }
.input-dark { background: var(--bg2); }
textarea.input { height: auto; padding: 14px 16px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent2); flex-shrink: 0; }
.hint { font-size: 13px; color: var(--faint); }

.alert { padding: 14px 18px; border-radius: 14px; font-size: 14px; line-height: 1.5; border: 1px solid; }
.alert-error { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.alert-ok { background: var(--ok-bg); border-color: #1D4D3C; color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: #5C4A17; color: var(--warn); }

/* ---------- cards / misc ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.card-title { font-size: 18px; font-weight: 700; }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warn { background: var(--warn-bg); color: var(--warn); }
.status-bad { background: var(--bad-bg); color: var(--bad); }
.status-off { background: var(--surface2); color: var(--text2); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.badge-soft { background: var(--accent-soft); color: var(--accent-text); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A78BFA; }
.h-section { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }

.seg { display: inline-flex; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.seg > * { height: 40px; padding: 0 18px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.seg > .is-active { background: var(--accent); color: #fff; }
.seg > *:not(.is-active):hover { color: var(--text); }

.pill-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-tabs a { height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--line2); color: var(--text); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.pill-tabs a.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill-tabs a:not(.is-active):hover { border-color: var(--line3); background: var(--surface); }

.kv-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 6px 8px 6px 22px; border-radius: 16px; border: 1px solid var(--line2); background: var(--surface); }
.kv-row > .k { color: var(--muted); }
.kv-row > .v { font-weight: 700; padding-right: 14px; text-align: right; word-break: break-all; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 56px 24px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.empty h2 { font-size: 20px; font-weight: 700; }

/* accordion (native details) */
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.acc + .acc { margin-top: 12px; }
.acc[open] { border-color: var(--line3); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font-size: 16px; font-weight: 700; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { color: var(--faint); transition: transform .2s; flex-shrink: 0; }
.acc[open] summary svg { transform: rotate(180deg); color: var(--accent-text); }
.acc .acc-body { padding: 0 26px 22px; color: var(--muted); line-height: 1.6; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }

/* ---------- public site ---------- */
.container { max-width: 1312px; margin: 0 auto; padding: 0 24px; }
.site-header { height: 84px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(11, 9, 18, .92); backdrop-filter: blur(10px); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: #B9B3CB; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.hero { padding: 56px 0 64px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #3B2F5E; background: #17122A; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1.12; letter-spacing: -0.02em; }
.hero h1 span { color: #A78BFA; }
.hero-lead { max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--muted); }
.hero-checks span { display: inline-flex; align-items: center; gap: 8px; }
.hero-checks svg { color: #A78BFA; }
.dots { background-image: radial-gradient(var(--line2) 1px, transparent 1px); background-size: 22px 22px; }
.hero-visual { border-radius: 28px; border: 1px solid var(--line); padding: 40px 48px; display: flex; justify-content: center; }
.demo-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line2); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec { background: var(--surface2); border-radius: 12px; padding: 14px; }
.spec small { display: block; font-size: 12px; color: var(--faint); }
.spec b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; margin-top: 6px; }
.copy-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 18px; }
.copy-row small { display: block; font-size: 12px; color: var(--faint); }
.copy-row .mono { display: block; font-size: 15px; margin-top: 4px; word-break: break-all; }

.section { padding: 64px 0; border-top: 1px solid var(--surface2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.feature b { font-size: 18px; }
.feature p { color: var(--muted); line-height: 1.55; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.loc-card h3 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.loc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-big { font-family: var(--display); font-size: 24px; font-weight: 600; }
.price-big small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--faint); }
.period-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.period-card .pct { font-family: var(--display); font-size: 32px; font-weight: 600; color: var(--accent-text); }
.period-card.is-best { background: #1B1430; border: 1.5px solid var(--accent); }
.faq-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 64px; }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-main { padding: 40px 64px; display: flex; flex-direction: column; }
.auth-form { margin: auto 0; width: 100%; max-width: 420px; align-self: center; display: flex; flex-direction: column; gap: 20px; padding: 40px 0; }
.auth-form h1 { font-family: var(--display); font-size: 30px; font-weight: 600; }
.auth-side { margin: 20px; border-radius: 28px; border: 1px solid var(--line); background-color: var(--bg2); padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-side h2 { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 480px; }
.auth-side .bullets { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--text2); }
.auth-side .bullets span { display: flex; align-items: center; gap: 10px; }
.auth-side .bullets svg { color: #A78BFA; }
.auth-tabs { display: flex; padding: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; }
.auth-tabs a { flex: 1; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); text-decoration: none; }
.auth-tabs a.is-active { background: var(--accent); color: #fff; }

/* ---------- cabinet ---------- */
.cab { min-height: 100vh; display: flex; }
.sidebar { width: 264px; flex-shrink: 0; padding: 28px 20px; border-right: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; gap: 32px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding-left: 8px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-weight: 500; text-decoration: none; }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a.is-active { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.side-balance { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.side-balance b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.side-balance a { font-size: 14px; font-weight: 600; text-decoration: none; }
.cab-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cab-top { height: 80px; flex-shrink: 0; padding: 0 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cab-top h1 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.cab-user { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px 0 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; max-width: 280px; }
.cab-user span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.cab-content { padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.narrow { max-width: 640px; }
.mid { max-width: 820px; }

.list { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.list-head, .list-row { display: grid; gap: 16px; align-items: center; padding: 16px 24px; }
.list-head { font-size: 13px; font-weight: 700; color: var(--faint); background: #110D1A; }
.list-row { border-top: 1px solid var(--line); font-size: 14px; }
.list-ref { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.session { display: flex; align-items: center; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--line); }
.session-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--surface2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.session.is-current .session-icon { background: var(--accent-soft); color: var(--accent-text); }

.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.stat.is-accent { background: #1B1430; border-color: #3B2F5E; }

.balance-hero { background: #1B1430; border: 1px solid #3B2F5E; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.balance-hero b { font-family: var(--display); font-size: 40px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero .container, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .hero-visual { padding: 24px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 24px; }
  .cab { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: static; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-right: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar .brand-name, .side-balance, .sidebar .btn { display: none; }
  .side-nav { flex-direction: row; }
  .side-nav a { height: 40px; padding: 0 12px; white-space: nowrap; }
  .cab-top { padding: 0 16px; height: 64px; }
  .cab-top h1 { font-size: 20px; }
  .cab-user span:last-child { display: none; }
  .cab-content { padding: 20px 16px 40px; }
  .list-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .header-actions .btn-secondary { display: none; }
  .h-section { font-size: 26px; }
  .card { padding: 20px; }
}

/* ---------- balance / payments ---------- */
.pay-option { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--bg2); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--accent2); background: var(--selected); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--accent2); flex-shrink: 0; }
.pay-option.is-disabled { opacity: .5; cursor: not-allowed; }
.pay-option-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.pay-option-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pay-option-text b { font-size: 15px; }
.pay-option-text small { font-size: 13px; color: var(--faint); }
.amount-input { font-family: var(--display); font-size: 20px; height: 56px; }
.tx { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: none; }
.tx-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.tx-icon.is-plus { background: var(--ok-bg); color: var(--ok); }
.tx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx-main b { font-weight: 600; }
.tx-main small { font-size: 13px; color: var(--faint); }
.tx-amt { font-weight: 700; white-space: nowrap; }
.tx-amt.is-plus { color: var(--ok); }
.pending-pay { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); border: 1px solid #5C4A17; color: var(--warn); font-size: 14px; }

/* auth v2 */
.auth2 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px 20px; background-color: var(--bg); }
.auth2-top { margin-top: auto; }
.auth2-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 80px rgba(5, 3, 10, .55); }
.auth2-card .input { background: var(--bg2); }
.auth2-head h1 { font-family: var(--display); font-size: 26px; font-weight: 600; }
.auth2-head p { margin-top: 6px; font-size: 14px; }
.auth2-foot { margin-bottom: auto; font-size: 13px; color: var(--faint); }
.auth2-foot a { color: var(--faint); text-decoration: none; }
.auth2-foot a:hover { color: var(--text2); }
.pw { position: relative; }
.pw .input { padding-right: 54px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: none; border-radius: 10px; background: transparent; color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--text); background: var(--surface2); }
.pw-toggle span { display: inline-flex; }
.pw-toggle .i-off, .pw-toggle.is-on .i-on { display: none; }
.pw-toggle.is-on .i-off { display: inline-flex; }
.check-sm { font-size: 13px; line-height: 1.45; align-items: center; }
.check-sm input { margin-top: 0; }
.check-sm a { text-underline-offset: 2px; }
@media (max-width: 560px) { .auth2-card { padding: 24px 20px; } .auth2 { gap: 20px; padding: 20px 14px; } }

/* support v2 */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.support-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.quick-links { display: flex; flex-direction: column; gap: 2px; }
.quick-links a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.quick-links a:hover { background: var(--surface2); color: var(--text); }
.ql-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1100px) { .support-grid { grid-template-columns: 1fr; } .support-aside { position: static; } }

/* order v1 */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.order-summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; border-color: var(--line2); }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { font-size: 20px; font-weight: 700; }
.step-num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; flex-shrink: 0; }
.opt { position: relative; display: flex; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--surface); padding: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line3); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent2); background: var(--selected); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent2); outline-offset: 2px; }
.opt:has(input:disabled) { border-style: dashed; opacity: .45; cursor: not-allowed; background: var(--bg2); }
.opt-row { align-items: center; gap: 14px; }
.opt-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.opt-text b { font-size: 15px; }
.opt-text small { font-size: 13px; color: var(--muted); }
.tariff-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tariff-group[hidden] { display: none; }
.tariff { flex-direction: column; gap: 14px; }
.spec-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
.spec-list span { display: flex; justify-content: space-between; gap: 8px; }
.spec-list i { font-style: normal; color: var(--faint); }
.tariff-price { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.tariff-price b { font-size: 17px; }
.tariff-price s, .tariff-price small { font-size: 13px; color: var(--faint); }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.os-opt { align-items: center; gap: 10px; padding: 12px; }
.os-badge { position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; background: var(--osbg); color: var(--osfg); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.os-badge b { font-family: var(--display); font-size: 14px; font-weight: 700; }
.os-badge img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; }
.ver-group { display: flex; flex-wrap: wrap; gap: 8px; }
.ver-group[hidden] { display: none; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line2); background: var(--surface); font-family: var(--mono); font-size: 14px; }
.chip input:checked + span { border-color: var(--accent2); background: var(--selected); }
.chip input:focus-visible + span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.period-opt { flex-direction: column; gap: 6px; }
.period-opt b { font-size: 16px; }
.period-opt small { font-size: 14px; color: var(--accent-text); font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.sum-row span { color: var(--faint); }
.sum-row b { font-weight: 600; text-align: right; }
.modal { width: min(480px, calc(100vw - 32px)); padding: 28px; border-radius: 24px; border: 1px solid #3B2F5E; background: var(--surface); color: var(--text); box-shadow: 0 32px 64px rgba(5, 3, 10, .6); }
.modal::backdrop { background: rgba(8, 6, 14, .74); }
.pay-option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.list-srv { grid-template-columns: 1.2fr 1.1fr 1.7fr 1.3fr 1.3fr 1fr 110px; }
.spinner { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent2); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
@media (max-width: 1100px) { .order-grid { grid-template-columns: 1fr; } .order-summary { position: static; } .list-srv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .os-grid, .tariff-group, .loc-grid { grid-template-columns: 1fr 1fr; } }
.cab { background: linear-gradient(to right, var(--bg2) 0 263px, var(--line) 263px 264px, var(--bg) 264px); }
@media (max-width: 900px) { .cab { background: var(--bg); } }
.os-badge.has-img { background: var(--surface2); }
.os-badge.has-img b { display: none; }

/* mobile v1 */
.mob-bar, .mob-only, .nav-backdrop { display: none; }
.burger { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
@media (max-width: 900px) {
  .desk-only { display: none !important; }
  .mob-only { display: inline-flex; }
  .cab { flex-direction: column; background: var(--bg); }
  .mob-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; padding: 0 14px; position: sticky; top: 0; z-index: 40; background: rgba(11, 9, 18, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mob-bar .brand-name { display: inline; }
  .mob-balance { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid #3B2F5E; background: #17122A; color: var(--text); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100dvh; width: min(300px, 86vw); z-index: 60; flex-direction: column; align-items: stretch; gap: 24px; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-right: 1px solid var(--line2); border-bottom: none; background: var(--bg2); overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .cab.nav-open .sidebar { transform: none; }
  .sidebar .brand-name { display: inline; }
  .sidebar .btn { display: flex; }
  .side-balance { display: flex; margin-top: auto; }
  .side-nav { flex-direction: column; }
  .side-nav a { height: 50px; padding: 0 14px; white-space: normal; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(8, 6, 14, .6); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nav-backdrop[hidden] { display: block; }
  .cab.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .side-user { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
  .side-user-email { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text2); }
  .cab-top { height: auto; min-height: 60px; padding: 14px 16px; border-bottom: none; flex-wrap: wrap; }
  .cab-top h1 { font-size: 22px; }
  .cab-top .seg { width: 100%; }
  .cab-top .seg > * { flex: 1; justify-content: center; padding: 0 10px; }
  .cab-top > .row { flex-wrap: wrap; }
  .cab-content { padding: 4px 16px 40px; }
  body.nav-lock { overflow: hidden; }
  .list-head.list-srv { display: none; }
  .list-row.list-srv { grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 18px; }
  .list-row.list-srv > :last-child { grid-column: 1 / -1; }
  .pill-tabs a { height: 42px; padding: 0 16px; font-size: 14px; }
  .kv-row { flex-wrap: wrap; padding: 12px 16px; }
  .kv-row > .v { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .sidebar, .nav-backdrop { transition: none; } }
@media (max-width: 900px) {
  .cab-top > .row:has(.seg) { width: 100%; }
  .seg > * { white-space: nowrap; }
}

/* manage v1 */
.srv-power form { margin: 0; }
.ip-box { position: relative; }
.ip-toggle { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); color: var(--accent-text); font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.ip-toggle svg { transition: transform .2s; }
.ip-toggle.is-open { border-color: var(--accent2); background: var(--selected); color: var(--text); }
.ip-toggle.is-open svg { transform: rotate(180deg); }
.ip-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 20; background: #17122A; border: 1px solid #3B2F5E; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 24px 48px rgba(5, 3, 10, .6); }
.ip-menu[hidden] { display: none; }
.ip-menu-title { padding: 6px 10px 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--bg2); }
.ip-row .mono { font-size: 14px; word-break: break-all; }
.ip-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; padding: 12px 6px 4px 10px; border-top: 1px solid var(--line2); }
.ip-buy small { font-size: 13px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 12px; background: var(--bg2); }
.stepper button { width: 38px; height: 40px; border: none; background: transparent; color: var(--accent-text); font-size: 18px; cursor: pointer; font-family: inherit; }
.stepper input { width: 34px; height: 40px; border: none; background: transparent; color: var(--text); text-align: center; font-weight: 700; font-family: inherit; font-size: 15px; outline: none; }
.pw-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pw-row .pw { min-width: 220px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.toggle-row small { font-size: 13px; color: var(--faint); }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; border-radius: 999px; border: none; background: var(--line3); cursor: pointer; padding: 0; transition: background .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.is-on { background: var(--accent); }
.switch.is-on span { transform: translateX(20px); }
.renew-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.renew-grid .chip span { width: 100%; justify-content: center; font-family: var(--font); font-weight: 600; }
.re-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.re-fam { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--bg2); color: var(--text); font-family: inherit; font-size: 12px; font-weight: 600; text-align: center; cursor: pointer; }
.re-fam:hover { border-color: var(--accent2); }
.danger-card { border-color: var(--bad-line); background: transparent; }
.modal .re-group[hidden] { display: none; }
@media (max-width: 560px) { .renew-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-row .btn { flex: 1; } }

/* mobile v2 */
.spec-compact, .mob-paybar, .show-sm { display: none; }
.cab-main { min-width: 0; overflow-x: clip; }
.order-grid > * { min-width: 0; }
.period-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) {
  .mob-paybar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(20, 16, 30, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line2); }
  .mob-paybar small { display: block; font-size: 12px; color: var(--faint); }
  .mob-paybar b { font-family: var(--display); font-size: 22px; font-weight: 600; white-space: nowrap; }
  .mob-paybar .btn { height: 50px; padding: 0 26px; font-size: 16px; font-weight: 700; }
  .has-paybar .cab-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .header-actions { gap: 8px; }
  .header-actions .btn, .header-actions .btn-secondary { display: inline-flex; height: 40px; padding: 0 14px; font-size: 14px; }
  .hero-visual { padding: 16px; }
  .spec b { font-size: 16px; }
  .card { padding: 18px; }
  .step-head h2 { font-size: 18px; }
  .loc-grid, .tariff-group { grid-template-columns: 1fr; gap: 10px; }
  .opt { padding: 14px 16px; border-radius: 16px; }
  .opt-row .opt-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; }
  .opt-row .opt-text b { width: 100%; }
  .tariff { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; }
  .tariff > .row { grid-column: 1; justify-content: flex-start; gap: 10px; }
  .tariff .spec-list { display: none; }
  .tariff .spec-compact { display: block; grid-column: 1; font-size: 13px; color: var(--muted); }
  .tariff .tariff-price { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; gap: 0; padding: 0; border: none; text-align: right; }
  .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-opt { padding: 10px; }
  .os-opt .opt-text b { font-size: 14px; }
  .period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pill-tabs { gap: 8px; flex-wrap: nowrap; overflow-x: auto; }
  .pill-tabs a { padding: 0 14px; white-space: nowrap; flex-shrink: 0; }
  .stat { min-width: 0 !important; flex: 1 1 140px; }
  .balance-hero b { font-size: 32px; }
}
@media (max-width: 560px) { .step-head > .faint { display: none; } }

/* tickets + lang v1 */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line2); background: var(--bg2); margin: 0; }
.lang-switch button { height: 34px; min-width: 40px; padding: 0 10px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.lang-switch button.is-active { background: var(--accent); color: #fff; }
.lang-switch button:not(.is-active):hover { color: var(--text); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.seg .nav-badge { margin-left: 6px; }
.burger { position: relative; }
.burger-dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 2px var(--surface); }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ticket-row:first-child { border-top: none; }
.ticket-row:hover { background: var(--surface2); color: var(--text); }
.ticket-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ticket-main b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.ticket-main small { font-size: 13px; color: var(--faint); }
.ticket-row.is-unread b { color: #fff; }
.dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--accent2); display: inline-block; }
.ticket-wrap { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 6px; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.msg-support { align-self: flex-start; }
.msg-meta { font-size: 12px; color: var(--faint); padding: 0 6px; }
.msg-body { padding: 14px 18px; border-radius: 18px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg-user .msg-body { background: var(--selected); border: 1px solid #3B2F5E; border-bottom-right-radius: 6px; }
.msg-support .msg-body { background: var(--surface); border: 1px solid var(--line2); border-bottom-left-radius: 6px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
@media (max-width: 560px) { .msg { max-width: 92%; } .ticket-row { padding: 16px; } }

/* filters v1 */
.srv-toolbar { display: flex; flex-direction: column; gap: 12px; }
.srv-search { position: relative; max-width: 420px; }
.srv-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.srv-search .input { height: 48px; padding-left: 46px; background: var(--surface); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text2); font-family: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.fchip b { font-weight: 700; color: var(--faint); font-size: 13px; }
.fchip:hover { border-color: var(--line3); color: var(--text); }
.fchip.is-active { border-color: var(--accent2); background: var(--selected); color: var(--text); }
.fchip.is-active b { color: var(--accent-text); }
.fchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.fchip-running i { background: var(--ok-dot); }
.fchip-pending i, .fchip-soon i { background: var(--warn-dot); }
.fchip-expired i, .fchip-closed i { background: var(--bad-dot); }
.th-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: none; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.th-sort:hover { color: var(--text); }
.th-sort span { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0; transition: transform .15s; }
.th-sort:hover span { opacity: .4; }
.th-sort.is-sorted { color: var(--accent-text); }
.th-sort.is-sorted span { opacity: 1; }
.th-sort.is-desc span { transform: rotate(180deg); }
.list-row[hidden] { display: none; }
.srv-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 20px; border-top: 1px solid var(--line); }
.srv-empty[hidden] { display: none; }
@media (max-width: 900px) {
  .srv-search { max-width: none; }
  .chip-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  .chip-row::-webkit-scrollbar { display: none; }
  .srv-empty { border-top: none; }
}
.mob-sort { display: none; }
@media (max-width: 900px) { .mob-sort { display: block; } .mob-sort select { height: 44px; background-color: var(--surface); } }
.srv-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .srv-name { white-space: normal; overflow-wrap: anywhere; } }

/* admin v1 */
.adm-tag { margin-left: 6px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi > span { font-size: 13px; color: var(--faint); }
.kpi > b { font-family: var(--display); font-size: 26px; font-weight: 600; overflow-wrap: anywhere; }
.kpi > b a { color: var(--text); text-decoration: none; }
.kpi > small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.kpi.is-accent { background: #1B1430; border-color: #3B2F5E; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; align-items: end; height: 160px; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { width: 100%; max-width: 40px; border-radius: 8px 8px 3px 3px; background: var(--accent2); display: block; min-height: 2px; }
.bar span { font-size: 11px; color: var(--faint); }
.atable { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 10px 16px; background: #110D1A; white-space: nowrap; }
.atable td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.atable td small { color: var(--faint); font-size: 12px; }
.atable a { text-decoration: none; }
.atable tr.is-muted td { opacity: .55; }
.atable td:first-child, .atable th:first-child { padding-left: 24px; }
.atoolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.atoolbar .input { height: 44px; max-width: 320px; background-color: var(--surface); }
.atoolbar select.input { max-width: 220px; }
.json { margin: 0; max-height: 420px; overflow: auto; padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--text2); white-space: pre; }
.seg-radio { position: relative; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio span { height: 38px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg-radio input:checked + span { background: var(--accent); color: #fff; }
.adm .seg { padding: 3px; }
.adm .seg > .seg-radio { height: auto; padding: 0; background: none; }
@media (max-width: 900px) { .bars { gap: 4px; height: 120px; } .atable td:first-child, .atable th:first-child { padding-left: 16px; } }

/* usd v1 */
.rub-preview { display: inline-flex; align-self: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.rub-preview[hidden] { display: none; }
#pay-rub { margin: -8px 0 0; color: var(--accent-text); }
