:root {
  --bg: #0A0B14;
  --surface: #0E1019;
  --surface-2: #12142A;
  --line: #1E2135;
  --line-2: #2A2E48;
  --text: #F1F2F6;
  --text-2: #C3C7DB;
  --muted: #A6ABC4;
  --muted-2: #8C91AB;
  --nav: #9EA3BC;
  --dim: #4A4E68;
  --ghost: #14172A;
  --accent: #4B4FE8;
  --accent-hover: #5A5EF0;
  --accent-text: #8E95FF;
  --ok: #3DD68C;
  --warn: #F5B544;
  --err: #FF6B7A;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Onest', system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: #A9AEFF; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.label {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.muted { color: var(--muted); }
.border-t { border-top: 1px solid var(--line); }
.border-b { border-bottom: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 26px; height: 30px; object-fit: contain; }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--nav); }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--bg); background: var(--text); padding: 11px 18px; border-radius: 8px; font-weight: 600; }
.nav .nav-cta:hover { color: var(--bg); background: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 26px; border-radius: 10px; border: 1px solid transparent;
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  background: none; transition: background .15s, border-color .15s, opacity .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--dim); color: var(--text); }
.btn-white { background: #fff; color: #1C1E6B; font-weight: 700; }
.btn-white:hover { color: #1C1E6B; background: #E9EAFF; }
.btn-sm { padding: 11px 16px; font-size: 15px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-danger { border-color: #4A2532; color: var(--err); }
.btn-danger:hover { border-color: var(--err); color: var(--err); }

/* ---------- Hero ---------- */
.hero { padding-top: 88px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.hero-meta .sep { color: var(--dim); }
.hero-title-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero h1 { margin: 0; flex: 1 1 720px; min-width: 0; font-size: clamp(48px, 8.4vw, 124px); line-height: .95; font-weight: 700; letter-spacing: -.05em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-logo { flex: 0 0 auto; width: clamp(140px, 17vw, 220px); height: auto; }
.hero-bottom { margin-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero-bottom p { margin: 0; flex: 0 1 460px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Spec strip ---------- */
.spec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.spec-item { padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); }
.spec-item:first-child { padding-left: 0; border-left: 0; }
.spec-item .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.spec-item .v { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Split sections (features / faq) ---------- */
.split { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px; }
.split-head { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-body { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.h2 { margin: 0; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
.feature { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 48px; }
.feature h3 { margin: 0; flex: 1 1 220px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.feature p { margin: 0; flex: 2 1 320px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Steps ---------- */
.steps-wrap { padding-bottom: 120px; }
.steps { border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: hidden; }
.step { padding: 36px; display: flex; flex-direction: column; gap: 40px; background: var(--surface); border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.step h3 { margin: 0 0 10px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- Tariffs ---------- */
.tariffs-section { border-top: 1px solid var(--line); }
.tariffs-section > .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head > div { display: flex; flex-direction: column; gap: 20px; }
.section-head p { margin: 0; flex: 0 1 380px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.h2-xl { margin: 0; font-size: clamp(34px, 4.4vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tariff { padding: 40px 36px; display: flex; flex-direction: column; gap: 32px; }
.tariff + .tariff { border-left: 1px solid var(--line); }
.tariff-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tariff-top .name { font-size: 18px; font-weight: 600; }
.tariff-top .note { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.tariff-price { display: flex; align-items: baseline; gap: 10px; }
.tariff-price .num { font-size: 88px; line-height: .9; font-weight: 700; letter-spacing: -.05em; }
.tariff-price .unit { font-size: 18px; color: var(--muted-2); }
.tariff-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.tariff-list span { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tariff .btn { margin-top: auto; padding: 16px; font-size: 16px; }
.tariff.featured { background: var(--accent); color: #fff; border-left-color: var(--accent); }
.tariff.featured + .tariff { border-left-color: var(--accent); }
.tariff.featured .note { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 5px 9px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; color: #fff; }
.tariff.featured .unit { color: #E2E3FF; }
.tariff.featured .tariff-list { border-top-color: rgba(255,255,255,.28); color: #F2F2FF; }
.tariff.featured .tariff-list span { border-bottom-color: rgba(255,255,255,.28); }
.tariff .note.accent { color: var(--accent-text); }
.tariffs-legal { margin: -32px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq-section { border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 26px 0; }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq .plus { flex: none; transition: transform .2s; }
details.faq[open] .plus { transform: rotate(45deg); }
details.faq p { margin: 14px 0 0; max-width: 600px; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer > .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer-top > div:first-child { display: flex; flex-direction: column; gap: 20px; }
.footer-top h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.footer-top .btn { align-self: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
.footer-links a { text-decoration: none; color: var(--nav); }
.footer-links a:hover { color: var(--text); }
.footer-word { font-size: clamp(80px, 19vw, 280px); line-height: .8; font-weight: 800; letter-spacing: -.06em; color: var(--ghost); white-space: nowrap; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted-2); }
.site-footer.compact > .wrap { padding-top: 32px; gap: 20px; }

/* ---------- Generic page ---------- */
.page-head { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.page-head h1 { margin: 0; font-size: clamp(36px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.page-head p { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--muted); }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 32px; }
.card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.card .sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- Login ---------- */
.login-wrap { padding-top: 72px; padding-bottom: 120px; display: flex; justify-content: center; }
.login-card { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 24px; }
.login-card h1 { margin: 0; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--dim); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.tg-widget { min-height: 48px; display: flex; justify-content: center; }
.is-locked { opacity: .4; pointer-events: none; filter: grayscale(1); }
.wait { display: none; flex-direction: column; gap: 10px; align-items: center; text-align: center; font-size: 15px; color: var(--muted); }
.wait.show { display: flex; }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.5; border: 1px solid var(--line-2); background: var(--surface-2); }
.alert-err { border-color: #4A2532; color: #FFC2C9; background: #1A0F17; }
.alert-ok { border-color: #1D4A36; color: #B8F5D6; background: #0C1A14; }
.alert-warn { border-color: #4A3B1D; color: #FBDFA8; background: #1A150C; }

/* ---------- Cabinet ---------- */
.cab { padding-top: 48px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 24px; }
#cab-body { display: flex; flex-direction: column; gap: 24px; }
.cab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cab-user { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 22px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.cab-user h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.cab-user .mono { font-size: 13px; color: var(--muted-2); }
.cab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.status-card { display: flex; flex-direction: column; gap: 28px; }
.status-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.status-big { font-size: clamp(40px, 6vw, 64px); line-height: .95; font-weight: 700; letter-spacing: -.05em; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); border-color: #1D4A36; }
.pill.err { color: var(--err); border-color: #4A2532; }
.pill.warn { color: var(--warn); border-color: #4A3B1D; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--line); }
.kv > div { padding: 16px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.kv .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.kv .v { font-size: 17px; font-weight: 600; }
.key-box { display: flex; gap: 8px; align-items: stretch; }
.key-box input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.qr img { width: 168px; height: 168px; border-radius: 12px; background: #fff; padding: 8px; }
.qr p { margin: 0; flex: 1 1 200px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.apps a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; text-decoration: none; }
.apps a:hover { border-color: var(--dim); }
.apps b { font-size: 15px; }
.apps span { font-size: 13px; color: var(--muted-2); }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.list-row .meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.empty { padding: 20px 0; color: var(--muted-2); font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { border-color: var(--dim); }
.plan:has(input:checked) { border-color: var(--accent); background: rgba(75, 79, 232, .12); }
.plan .p-name { font-weight: 600; }
.plan .p-price { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.plan .p-meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; color: var(--muted); }
.field input[type=email], .field input[type=text] { background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; font-size: 16px; }
.field input:focus { outline: none; border-color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 20px; }
.providers { display: flex; flex-wrap: wrap; gap: 8px; }
.providers label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; font-size: 15px; }
.providers label:has(input:checked) { border-color: var(--accent); }
.providers input { accent-color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.skeleton { color: transparent !important; background: var(--surface-2); border-radius: 8px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
[hidden] { display: none !important; }

/* ---------- Legal ---------- */
.legal { padding-bottom: 120px; display: flex; flex-wrap: wrap; gap: 48px; }
.legal-nav { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; align-self: flex-start; position: sticky; top: 24px; }
.legal-nav a { text-decoration: none; color: var(--nav); padding: 8px 0; font-size: 15px; }
.legal-nav a.active { color: var(--text); font-weight: 600; }
.doc { flex: 999 1 640px; min-width: 0; max-width: 820px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.doc h2 { margin: 40px 0 12px; font-size: 22px; color: var(--text); letter-spacing: -.02em; line-height: 1.3; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 24px 0 8px; font-size: 17px; color: var(--text); }
.doc p, .doc li { margin: 0 0 10px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.doc td, .doc th { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { color: var(--text); background: var(--surface); }
.doc .meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.doc .placeholder { color: var(--warn); }

/* ---------- Cookie notice ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto; z-index: 40; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; font-size: 14px; line-height: 1.5; color: var(--muted); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.cookie p { margin: 0; flex: 1; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .hero { padding-top: 48px; }
  .split, .tariffs-section > .wrap { padding-top: 72px; padding-bottom: 72px; }
  .spec-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .spec-item:first-child { border-top: 0; }
  .step, .tariff + .tariff { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .tariff.featured + .tariff { border-top-color: var(--accent); }
  .card { padding: 22px; }
  .tariff-price .num { font-size: 72px; }
  .legal-nav { position: static; }
  .key-box { flex-direction: column; }
}

/* ---------- Admin ---------- */
.adm-title { margin: 6px 0 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; line-height: 1; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; font-size: 15px; color: var(--nav); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tab-pane { display: flex; flex-direction: column; gap: 24px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tile .k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.tile .v { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.meta { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.bars { height: 180px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar-fill { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-v { font-size: 10px; color: var(--muted-2); white-space: nowrap; overflow: hidden; max-width: 100%; }
.bar-d { font-family: var(--mono); font-size: 10px; color: var(--dim); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.toolbar input { flex: 1 1 240px; }
.adm input[type=search], .adm input[type=text], .adm input[type=number], .adm select, .adm textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; font-size: 15px; color: var(--text); min-width: 0; font-family: inherit;
}
.adm textarea { width: 100%; resize: vertical; line-height: 1.5; }
.adm input:focus, .adm select:focus, .adm textarea:focus { outline: none; border-color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 500; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--surface-2); }
.tbl .mono { font-family: var(--mono); font-size: 13px; }
.tbl-edit td { padding: 6px 4px; }
.tbl-edit input[type=text], .tbl-edit input[type=number] { width: 100%; padding: 8px 10px; font-size: 14px; }
.tbl-edit input[data-f=months], .tbl-edit input[data-f=devices] { width: 64px; }
.tbl-edit input[data-f=price] { width: 90px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pager:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chips button { background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: var(--text); }
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-bg { position: absolute; inset: 0; background: rgba(5, 6, 12, .7); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--bg); border-left: 1px solid var(--line-2); padding: 28px 24px 48px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
#drawer-body { display: flex; flex-direction: column; gap: 18px; }
#drawer-body h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
#drawer-body h3 { margin: 8px 0 0; font-size: 16px; }
.drawer-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.card-inner { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card-inner h3 { margin: 0 !important; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.inline-fields input { width: 110px; }
.announce { border: 1px solid #2B2F6B; background: rgba(75, 79, 232, .12); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
