:root {
  --bg: #05060a;
  --bg2: #0a0c12;
  --surface: rgba(16, 18, 28, .72);
  --card: #12141c;
  --line: rgba(255,255,255,.08);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --lime: #c8ff3d;
  --lime-d: #9ad60a;
  --accent: #8b5cff;
  --accent2: #3dffd0;
  --accent-d: #6d3dff;
  --pink: #ff5d9a;
  --amber: #ffc857;
  --blue: #5aa9ff;
  --tg: #2aabee;
  --vk: #0077ff;
  --danger: #ff5d7a;
  --ok: #c8ff3d;
  --shadow: 0 24px 80px rgba(0,0,0,.55);
  --radius: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sidebar: 272px;
  --mx: 50%;
  --my: 18%;
}

@font-face {
  font-family: nbrb;
  src: url("../fonts/nbrb.woff2") format("woff2"),
       url("../fonts/nbrb.woff") format("woff"),
       url("../fonts/nbrb.ttf") format("truetype");
  unicode-range: U+E901, U+42, U+59, U+4E;
  font-display: swap;
}
.nbrb-icon {
  font-family: nbrb, Outfit, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  font-variant-ligatures: discretionary-ligatures;
  -webkit-font-smoothing: antialiased;
  speak: never;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
  overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .84em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

.fx-grid, .fx-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.fx-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 75%);
  opacity: .7;
}
.fx-glow {
  background:
    radial-gradient(900px 420px at var(--mx) var(--my), rgba(200,255,61,.1), transparent 55%),
    radial-gradient(700px 380px at 90% 8%, rgba(139,92,255,.16), transparent 50%),
    radial-gradient(600px 400px at 8% 90%, rgba(61,255,208,.08), transparent 50%);
}
.app-shell, .land-nav, .hero, .section, .auth-wrap, .app-main, .land-foot {
  position: relative; z-index: 1;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
}
.brand img { border-radius: 10px; }
.brand em {
  font-style: normal;
  background: linear-gradient(90deg, var(--lime), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-type { font-family: var(--display); font-weight: 800; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 11px 18px; font: 650 14px/1 var(--font);
  background: rgba(255,255,255,.06); color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--lime); color: #08100a;
  box-shadow: 0 0 0 1px rgba(200,255,61,.2), 0 10px 32px rgba(200,255,61,.22);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 12px 40px rgba(200,255,61,.32); }
.btn-ghost { background: transparent; border: 1px solid var(--line); backdrop-filter: blur(10px); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; }
.btn.danger, .danger { background: rgba(255,93,122,.14); color: #ff8aa0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; font-size: 18px;
}

.badge {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: rgba(255,255,255,.07); border: 1px solid var(--line);
}
.badge-telegram { background: rgba(42,171,238,.16); color: #7ed0ff; border-color: transparent; }
.badge-vk { background: rgba(0,119,255,.16); color: #8cbcff; border-color: transparent; }
.badge-instagram { background: rgba(225,48,108,.16); color: #ff8ec4; border-color: transparent; }
.badge-discord { background: rgba(88,101,242,.18); color: #aab4ff; border-color: transparent; }
.badge-active { background: rgba(200,255,61,.12); color: var(--lime); border-color: transparent; }
.badge-draft { color: var(--muted); }
.badge-paused { background: rgba(255,200,87,.14); color: var(--amber); border-color: transparent; }
.badge-frozen { background: rgba(255,93,122,.16); color: #ff8aa0; border-color: transparent; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 650; }
.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.form textarea, .form select, .search-inline input, .ctor-search input, .inbox-search input {
  width: 100%; padding: 13px 15px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(7,8,13,.7); color: var(--text);
  font: 500 15px/1.4 var(--font);
}
.form textarea { resize: vertical; min-height: 90px; }
.form select, .usr-select, select {
  appearance: none; -webkit-appearance: none;
  background-color: rgba(7,8,13,.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}
option, optgroup { background: #10131c; color: #f4f6fb; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0; padding: 0;
  flex: 0 0 auto;
  border: 1.5px solid rgba(255,255,255,.22);
  background: #0c0e16;
  cursor: pointer;
  vertical-align: middle;
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 99px; }
input[type="checkbox"]:checked, input[type="radio"]:checked {
  background-color: var(--lime);
  border-color: var(--lime);
}
input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2308100a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}
input[type="radio"]:checked {
  box-shadow: inset 0 0 0 4px #0c0e16;
}
input[type="datetime-local"], input[type="date"], input[type="time"], input[type="number"] {
  color-scheme: dark;
}
::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .8;
}
.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
.form textarea:focus, .form select:focus {
  outline: none; border-color: rgba(200,255,61,.45);
  box-shadow: 0 0 0 4px rgba(200,255,61,.1);
}

.alert { padding: 13px 15px; border-radius: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-bad { background: rgba(255,93,122,.12); color: #ffb0be; }
.alert-warn { background: rgba(255,200,87,.1); color: #ffd27a; margin-bottom: 16px; }
.alert-promo {
  background: rgba(200,255,61,.1); color: var(--text); border-color: rgba(200,255,61,.28);
  margin-bottom: 16px;
}
.alert-promo strong { color: var(--lime); }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; }
.hint { color: var(--muted); font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.toast, .toasts .toast {
  position: fixed; top: 16px; right: 16px; z-index: 80;
  background: #12141c; border: 1px solid var(--line);
  padding: 13px 16px; border-radius: 16px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.toast-bad { border-color: rgba(255,93,122,.45); }
.toast-ok { border-color: rgba(200,255,61,.4); }

.modal {
  position: fixed; inset: 0; z-index: 120; background: rgba(5,6,10,.76);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(10px);
}
.modal-card {
  width: min(460px, 100%); background: #10131c; border: 1px solid var(--line);
  border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-3 .seg-item { padding: 12px 6px; font-size: 13px; }
.seg-4 { grid-template-columns: repeat(4, 1fr); }
.seg-4 .seg-item { padding: 12px 4px; font-size: 12px; }
@media (max-width: 720px) {
  .seg-4 { grid-template-columns: repeat(2, 1fr); }
}
.seg-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer;
}
.seg-item:has(input:checked) {
  border-color: rgba(200,255,61,.5); background: rgba(200,255,61,.08); color: var(--lime);
}

.nav-ico { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-label {
  margin: 14px 10px 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: #66708a; font-weight: 700;
}

/* Landing */
.landing-body { overflow-x: hidden; }
.land-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6vw; position: sticky; top: 12px; z-index: 20; margin: 0 4vw;
  background: rgba(8,9,14,.55); backdrop-filter: blur(22px);
  border: 1px solid var(--line); border-radius: 999px;
}
.land-nav nav { display: flex; align-items: center; gap: 20px; }
.land-nav nav a { color: var(--text); font-weight: 650; font-size: 14px; }
.land-burger { display: none; }
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 56px 6vw 40px; max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lime); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 11px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(200,255,61,.25);
  background: rgba(200,255,61,.06);
}
.hero h1, .section h2, .auth-card h1, .page-head h1, .auth-side h2 {
  font-family: var(--display); letter-spacing: -.04em; line-height: 1.05; margin: 0 0 14px;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); max-width: 14ch; }
.hero h1 span {
  background: linear-gradient(92deg, #fff 20%, var(--lime) 55%, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: #c9d0e0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.hero-points li {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: 13px; font-weight: 600;
}

.canvas-preview {
  position: relative;
  background: linear-gradient(180deg, rgba(18,20,30,.9), rgba(10,12,18,.95));
  border: 1px solid var(--line); border-radius: 32px; padding: 28px 24px;
  min-height: 460px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.canvas-preview::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(200,255,61,.12), transparent 30%);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.mini-block {
  position: relative; z-index: 1;
  width: min(280px, 100%); border-radius: 18px; padding: 14px 16px;
  border: 1px solid var(--line); background: rgba(12,14,22,.92);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.mini-block small { display: block; color: var(--muted); font-size: 12px; }
.mini-block.mint { border-color: rgba(61,255,208,.35); }
.mini-block.violet { border-color: rgba(139,92,255,.4); }
.mini-block.amber { border-color: rgba(255,200,87,.35); }
.mini-link { width: 40px; height: 36px; position: relative; z-index: 1; }
.mini-link path { fill: none; stroke: rgba(200,255,61,.45); stroke-width: 2; }

.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: rgba(255,255,255,.02); padding: 14px 0; margin: 12px 0 8px;
}
.marquee-track {
  display: flex; gap: 36px; width: max-content;
  animation: slide 28s linear infinite;
  font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 18px;
  color: #dfe4f0;
}
.marquee-track span { opacity: .55; }
.marquee-track span::before { content: "✦"; color: var(--lime); margin-right: 36px; }
@keyframes slide { to { transform: translateX(-50%); } }

.section { padding: 80px 6vw; max-width: 1280px; margin: 0 auto; }
.section.alt { max-width: none; background: linear-gradient(180deg, transparent, rgba(139,92,255,.06), transparent); }
.section.alt .steps, .section.alt h2, .section.alt .section-lead, .section.alt .price-grid {
  max-width: 1280px; margin-left: auto; margin-right: auto;
}
.section.alt h2, .section.alt .section-lead { padding: 0 6vw; }
.section.alt .price-grid { padding: 0 6vw; }
.section h2 { font-size: clamp(28px, 3.4vw, 46px); }
.section-lead { color: var(--muted); max-width: 58ch; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
.feat {
  background: rgba(16,18,28,.65); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; min-height: 188px; backdrop-filter: blur(16px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(200,255,61,.28);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.feat-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(200,255,61,.1); color: var(--lime); margin-bottom: 14px;
}
.feat-ico .nav-ico { width: 22px; height: 22px; }
.feat h3 { margin: 0 0 8px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.price-card {
  position: relative;
  background: rgba(16,18,28,.7); border: 1px solid var(--line); border-radius: 28px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(18px);
}
.price-card.featured {
  border-color: rgba(200,255,61,.4);
  box-shadow: 0 0 0 1px rgba(200,255,61,.12), 0 20px 60px rgba(200,255,61,.08);
  transform: scale(1.02);
}
.price-card.featured::before {
  content: "Хит"; position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--lime); color: #08100a; padding: 4px 8px; border-radius: 999px;
}
.price-card.has-promo {
  border-color: rgba(200,255,61,.5);
  box-shadow: 0 0 0 1px rgba(200,255,61,.16), 0 22px 64px rgba(200,255,61,.12);
}
.price-card.has-promo.featured::before { content: none; }
.price-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--lime); color: #08100a; padding: 4px 8px; border-radius: 999px;
}
.price-old {
  display: inline-block; margin-right: 8px;
  font-size: 18px; color: var(--muted); text-decoration: line-through;
  font-family: var(--font); font-weight: 650;
}
.price-card h3 { margin: 0; font-family: var(--display); }
.price-sum { font-family: var(--display); font-size: 36px; letter-spacing: -.03em; }
.price-sum small { font-size: 14px; color: var(--muted); font-family: var(--font); font-weight: 600; margin-left: 6px; }
.price-sum-dual { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-sum-dual .price-now { display: block; width: 100%; }
.price-sum-dual .price-alt {
  display: block; width: 100%; font-size: 20px; color: var(--muted); font-weight: 700;
  letter-spacing: -.02em;
}
.price-sum-dual .price-old { width: 100%; margin: 0 0 4px; }
.price-slash { color: var(--muted); font-weight: 500; }
.rub-sign { font-style: normal; font-weight: 800; }
.ccy-switch { display: inline-flex; gap: 4px; align-items: center; }
.ccy-btn {
  display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,.03);
}
.ccy-btn:hover { color: var(--text); border-color: rgba(200,255,61,.35); }
.ccy-btn.is-on { color: #0b0d12; background: var(--lime); border-color: transparent; }
.ccy-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.land-nav nav .ccy-switch { margin-right: 6px; }
.land-nav nav a.ccy-btn { font-size: 11px; font-weight: 800; }
.land-nav nav a.ccy-btn.is-on { color: #0b0d12; }
.topbar-actions .ccy-switch { margin-right: 8px; }
.m-top-actions .ccy-switch { margin-right: 6px; }
.m-top-actions .ccy-btn { min-width: 34px; height: 26px; padding: 0 8px; }
.price-card ul { margin: 0 0 8px; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 8px; flex: 1; }
.price-card li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 99px; background: var(--lime); vertical-align: 1px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0 20px; list-style: none; counter-reset: st; }
.steps li {
  background: rgba(16,18,28,.65); border-radius: 24px; padding: 24px; border: 1px solid var(--line);
  counter-increment: st;
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 28px; color: var(--lime); margin-bottom: 10px;
}
.steps strong { display: block; margin-bottom: 8px; font-size: 18px; }
.land-foot {
  display: flex; justify-content: space-between; padding: 28px 6vw 40px; color: var(--muted);
  border-top: 1px solid var(--line);
}
/* Metrika badge: corner, delayed, never blocks UI */
.ym-informer-wrap {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 4;
  padding: 0;
  line-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  animation: ym-in .4s ease 2.8s forwards;
}
.ym-informer-wrap a { pointer-events: auto; display: block; opacity: .42; transition: opacity .2s ease; }
.ym-informer-wrap a:hover,
.ym-informer-wrap a:focus-visible { opacity: .85; }
.app-body .ym-informer-wrap,
.constructor-body .ym-informer-wrap,
.m-app .ym-informer-wrap,
.inbox-body .ym-informer-wrap {
  bottom: max(64px, calc(56px + env(safe-area-inset-bottom)));
  opacity: 0;
  animation: ym-in .4s ease 4s forwards;
}
.app-body .ym-informer-wrap a,
.constructor-body .ym-informer-wrap a,
.m-app .ym-informer-wrap a,
.inbox-body .ym-informer-wrap a { opacity: .28; }
.auth-body .ym-informer-wrap {
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 6px);
  animation: ym-in-auth .4s ease 2.8s forwards;
}
@keyframes ym-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ym-in-auth {
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 720px) {
  .ym-informer-wrap {
    left: max(6px, env(safe-area-inset-left));
    bottom: max(6px, env(safe-area-inset-bottom));
    transform: scale(.85);
    transform-origin: left bottom;
    animation: ym-in-sm .4s ease 3.5s forwards;
  }
  .constructor-body .ym-informer-wrap,
  .m-app .ym-informer-wrap {
    bottom: max(70px, calc(62px + env(safe-area-inset-bottom)));
  }
  .auth-body .ym-informer-wrap { left: 50%; transform: translateX(-50%) scale(.85); animation: ym-in-auth-sm .4s ease 3.5s forwards; }
}
@keyframes ym-in-sm {
  to { opacity: 1; transform: scale(.85); }
}
@keyframes ym-in-auth-sm {
  to { opacity: 1; transform: translateX(-50%) scale(.85); }
}
@media (prefers-reduced-motion: reduce) {
  .ym-informer-wrap { animation: none; opacity: .5; transform: none; }
}

.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 600; }
.check input { width: auto; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-bottom: 4px; }

.support-hint { max-width: 520px; padding: 12px 4px; }
.support-hint h1 { font-family: var(--display); letter-spacing: -.04em; margin: 0 0 8px; }

.chat-shell {
  display: flex; flex-direction: column; min-height: 360px; max-height: 520px;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: rgba(10,12,18,.55);
}
.chat-shell.compact { min-height: 280px; max-height: 420px; margin-top: 8px; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: rgba(8,9,14,.72);
}
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.chat-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.chat-status i {
  width: 7px; height: 7px; border-radius: 99px; background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
}
.chat-ava {
  width: 32px; height: 32px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: rgba(139,92,255,.22); color: #d7c8ff;
}
.chat-ava.lg {
  width: 42px; height: 42px; border-radius: 16px; font-size: 16px;
  background: linear-gradient(135deg, var(--lime), var(--accent2)); color: #08100a;
}
.chat-log {
  flex: 1; overflow: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(139,92,255,.08), transparent 55%),
    radial-gradient(400px 160px at 0% 100%, rgba(200,255,61,.05), transparent 50%);
}
.chat-day { display: flex; justify-content: center; margin: 4px 0 2px; }
.chat-day span {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.chat-msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.is-theirs { align-self: flex-start; }
.chat-col { display: grid; gap: 4px; min-width: 0; }
.chat-msg.is-mine .chat-col { justify-items: end; }
.chat-bubble {
  padding: 10px 13px; border-radius: 18px; font-size: 14.5px; line-height: 1.4;
  white-space: pre-wrap; word-break: break-word;
}
.chat-msg.is-theirs .chat-bubble {
  background: #1a1e2c; border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.chat-msg.is-mine .chat-bubble {
  background: linear-gradient(180deg, #d4ff63, var(--lime)); color: #08100a;
  border-bottom-right-radius: 6px;
}
.chat-col time { font-size: 11px; color: var(--muted); padding: 0 4px; }
.chat-empty {
  margin: auto; text-align: center; max-width: 28ch; color: var(--muted); padding: 28px 12px;
}
.chat-empty h2 { color: var(--text); font-family: var(--display); font-size: 20px; margin: 0 0 8px; }
.chat-empty p { margin: 0; }
.chat-empty.sm { padding: 20px 8px; }
.chat-empty-ico {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(200,255,61,.1); color: var(--lime);
}
.chat-empty-ico .nav-ico { width: 26px; height: 26px; }
.chat-composer {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px 12px; border-top: 1px solid var(--line);
  background: rgba(8,9,14,.78);
}
.chat-composer textarea {
  flex: 1; resize: none; min-height: 44px; max-height: 120px;
  padding: 11px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(7,8,13,.85); color: var(--text);
  font: 500 15px/1.4 var(--font);
}
.chat-composer textarea:focus {
  outline: none; border-color: rgba(200,255,61,.45);
  box-shadow: 0 0 0 4px rgba(200,255,61,.1);
}
.chat-send {
  width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; flex: 0 0 auto;
  background: var(--lime); color: #08100a;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(200,255,61,.25);
}
.chat-send:hover { filter: brightness(1.06); }

.sup-launch {
  position: fixed; z-index: 56;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px; border: 0; cursor: pointer;
  border-radius: 20px;
  background: var(--lime); color: #08100a;
  box-shadow: 0 10px 32px rgba(200,255,61,.32), 0 0 0 1px rgba(200,255,61,.2);
  display: grid; place-items: center;
  transition: transform .18s ease, background .18s ease, border-radius .18s ease;
}
.sup-launch:hover { transform: translateY(-2px); }
.sup-launch svg { width: 26px; height: 26px; }
.sup-launch .sup-ico-close { display: none; }
.sup-launch.is-on {
  background: #1a1e2c; color: var(--text);
  box-shadow: 0 10px 28px rgba(0,0,0,.4); border: 1px solid var(--line);
}
.sup-launch.is-on .sup-ico-chat { display: none; }
.sup-launch.is-on .sup-ico-close { display: block; }
.sup-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--pink); color: #fff;
  font: 800 11px/20px var(--font); text-align: center;
}
.sup-panel {
  position: fixed; z-index: 55;
  right: 22px; bottom: 92px;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 130px));
  display: flex; flex-direction: column;
  background: rgba(12,14,22,.96);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.sup-panel[hidden] { display: none !important; }
.sup-panel .chat-log { min-height: 0; }
.sup-close { margin-left: auto; width: 38px; height: 38px; border-radius: 12px; }

body.sup-open { overflow: hidden; }

@media (max-width: 980px) {
  .sup-launch {
    right: auto;
    left: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  .sup-panel {
    inset: 0;
    right: 0; bottom: 0; left: 0; top: 0;
    width: 100%; height: 100%;
    max-height: none;
    border-radius: 0; border: 0;
  }
  .sup-panel .chat-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .sup-panel .chat-composer { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.sup-open .dock, body.sup-open .sup-launch { display: none; }
}

/* Auth */
.auth-body { min-height: 100vh; }
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.auth-side {
  padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.auth-side h2 { font-size: clamp(32px, 4vw, 48px); max-width: 12ch; }
.auth-card {
  display: grid; align-content: center; padding: 40px clamp(20px, 6vw, 72px); gap: 12px;
  background: rgba(10,12,18,.55); border-left: 1px solid var(--line); backdrop-filter: blur(20px);
}
.install-card {
  max-width: 560px; margin: 40px auto; background: rgba(16,18,28,.85);
  border-radius: 28px; border: 1px solid var(--line); padding: 28px; backdrop-filter: blur(18px);
}
.brand-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.checks li { padding: 6px 10px; border-radius: 999px; font-size: 12px; background: var(--card); }
.checks .ok { color: var(--lime); }
.checks .bad { color: var(--danger); }

/* App */
.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(8,9,14,.82); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px; gap: 10px;
  backdrop-filter: blur(22px);
}
.side-nav { display: grid; gap: 3px; flex: 1; align-content: start; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); padding: 10px 12px; border-radius: 14px; font-weight: 650;
}
.side-nav a.is-on, .side-nav a:hover {
  background: rgba(200,255,61,.08); color: var(--text);
}
.side-nav a.is-on { box-shadow: inset 0 0 0 1px rgba(200,255,61,.22); color: var(--lime); }
.side-bot { margin-top: 8px; display: grid; gap: 2px; padding-top: 4px; }
.side-bot-name, .side-bot .nav-label { color: var(--accent2); }
.side-foot { display: grid; gap: 10px; padding: 10px 8px 6px; border-top: 1px solid var(--line); }
.who { display: flex; gap: 10px; align-items: center; color: var(--text); }
.who strong { display: block; font-size: 13px; }
.avatar {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--accent)); color: #08100a; font-weight: 800;
}
.bal-chip {
  display: inline-flex; background: rgba(200,255,61,.12); color: var(--lime);
  padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 11px;
}
.logout { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-bottom: 1px solid var(--line);
  background: rgba(5,6,10,.72); backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 15;
}
.topbar-title { font-weight: 750; flex: 1; letter-spacing: -.02em; }
.burger { display: none; }
.app-content { padding: 26px 26px 96px; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 32px; }

.bot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bot-card {
  display: block; background: rgba(16,18,28,.7); border: 1px solid var(--line);
  border-radius: 22px; padding: 18px; color: var(--text); min-height: 176px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.bot-card:hover {
  border-color: rgba(200,255,61,.35); transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.bot-card-top { display: flex; gap: 8px; margin-bottom: 16px; }
.bot-card h3 { margin: 0 0 6px; }
.bot-meta { display: flex; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 12px; }
.bot-card.is-frozen { opacity: .7; }
.empty-card {
  text-align: center; padding: 64px 20px; background: rgba(16,18,28,.55);
  border: 1px dashed rgba(200,255,61,.25); border-radius: 28px;
}
.empty-card img { margin: 0 auto 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: rgba(16,18,28,.65); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px;
}
.stat-n { font-family: var(--display); font-size: 28px; letter-spacing: -.03em; }
.stat-l { color: var(--muted); font-size: 13px; }
.partner-bars { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin: 10px 0 6px; }
.partner-bars i {
  flex: 1; min-width: 6px; display: block;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--lime), var(--accent2));
}
.partner-bars-l { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.quota { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 14px; }
.quota i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--accent2)); border-radius: 99px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel {
  background: rgba(16,18,28,.65); border: 1px solid var(--line); border-radius: 22px; padding: 20px;
  backdrop-filter: blur(12px);
}
.panel.narrow { max-width: 480px; }
.action-list { display: grid; gap: 8px; }
.action-list a {
  color: var(--text); padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); font-weight: 650;
}
.action-list a:hover { border-color: rgba(200,255,61,.3); }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.people a { display: grid; color: var(--text); }
.people span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people .promo-row-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
  white-space: normal; overflow: visible; text-overflow: unset;
}
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; }

.dock { display: none; }

.btn-grad {
  background: linear-gradient(90deg, var(--accent), var(--pink));
  color: #fff;
  box-shadow: 0 10px 28px rgba(139,92,255,.28);
}
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-row { display: flex; gap: 8px; justify-content: flex-end; }
.search-inline { margin: 12px 0; }
.brand-mini { display: none; }
.crumbs {
  display: none;
  align-items: center; gap: 8px; min-width: 0;
  color: var(--muted); font-size: 13px; font-weight: 650;
}
.crumbs a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.top-bal, .top-ava, .hide-on-pc { display: none; }
.hide-on-phone { display: revert; }
.pub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  padding: 6px 10px; border-radius: 999px; background: rgba(255,180,80,.12);
}
.pub-toggle input { width: 16px; height: 16px; accent-color: var(--lime); }
.pub-toggle .pub-on { display: none; }
.pub-toggle.is-on .pub-on { display: inline; }
.pub-toggle.is-on .pub-off { display: none; }
.ctor-ident { display: grid; line-height: 1.15; margin-right: auto; min-width: 0; }
.ctor-ident span { font-size: 11px; color: var(--muted); font-weight: 650; }
.ctor-ident strong { font-size: 17px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctor-warn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--amber); font-size: 13px; font-weight: 650; white-space: nowrap;
}
.ctor-warn::before { content: "!"; width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; background: rgba(245,158,11,.2); font-size: 11px; font-weight: 800; }
.ctor-back.hide-on-pc, .ctor-back { text-decoration: none; }
.tabs {
  display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 8px 0 16px;
}
.tabs button, .tabs a {
  background: none; border: 0; color: var(--muted); font: 700 15px var(--font);
  padding: 10px 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  text-decoration: none;
}
.tabs button.is-on, .tabs a.is-on { color: var(--lime); border-bottom-color: var(--lime); }
.promo-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.new-badge {
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.scn-folder-btn { margin-bottom: 14px; }
.scn-folder { font-size: 13px; color: var(--muted); margin: 18px 0 8px; }
.scn-card, .tpl-card {
  display: flex; gap: 10px; align-items: flex-start; justify-content: space-between;
  background: rgba(16,18,28,.7); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; margin-bottom: 10px;
}
.scn-card a, .scn-card > div { display: grid; gap: 4px; color: var(--text); flex: 1; min-width: 0; }
.scn-card small, .tpl-card p { color: var(--muted); font-size: 13px; }
.pill {
  display: inline-flex; width: fit-content;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: var(--muted);
}
.pill.ok { background: rgba(200,255,61,.12); color: var(--lime); }
.scn-empty { display: grid; gap: 10px; justify-items: center; }
.scn-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 14px;
}
.scn-toolbar .search-inline { flex: 1; min-width: 180px; margin: 0; }
.scn-toolbar-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scn-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.scn-table-head, .scn-row {
  display: grid;
  grid-template-columns: 44px minmax(140px, 1.3fr) minmax(180px, 1.4fr) minmax(160px, 1.1fr) 150px 44px;
  gap: 8px; align-items: center;
  padding: 12px 12px;
}
.scn-table-head {
  color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
}
.scn-row {
  border-bottom: 1px solid var(--line); color: var(--text); min-height: 64px;
}
.scn-row:last-child { border-bottom: 0; }
.scn-row:hover { background: rgba(255,255,255,.02); }
.scn-check { display: grid; place-items: center; min-height: 44px; }
.scn-check input { width: 18px; height: 18px; accent-color: var(--lime); }
.scn-name { display: grid; gap: 2px; color: var(--text); min-width: 0; }
.scn-name small { color: var(--muted); font-size: 12px; }
.work-dots { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.dot-line { display: flex; align-items: center; gap: 6px; }
.dot-line i {
  width: 8px; height: 8px; border-radius: 99px; background: #3dff8a; flex: 0 0 auto;
}
.dot-line.is-off i { background: rgba(255,255,255,.18); }
.scn-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex: 0 0 auto; }
.status-dot.ok { background: var(--lime); }
.scn-date { font-size: 12px; color: var(--muted); }
.page-fab { display: none; }
.tabs-scroll { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
.tabs-scroll button { white-space: nowrap; flex: 0 0 auto; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted);
  border-radius: 999px; padding: 8px 12px; font: 700 13px var(--font); cursor: pointer; min-height: 40px;
}
.chip.is-on { border-color: rgba(200,255,61,.4); color: var(--lime); background: rgba(200,255,61,.1); }
.inbox-filters { display: flex; gap: 8px; padding: 0 10px 8px; }
.inbox-tabs {
  display: flex; gap: 16px; padding: 0 14px; border-bottom: 1px solid var(--line); margin: 0;
}
.inbox-tabs button {
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 12px 0;
  color: var(--muted); font: 700 15px var(--font);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.inbox-tabs button.is-on { color: var(--lime); border-bottom-color: var(--lime); }
.inbox-tabs b { font-weight: 800; margin-left: 4px; }
.inbox-none { padding: 24px 16px; }
.thread-actions { display: flex; gap: 6px; flex-shrink: 0; }
.chan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.chan-cards-3 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.chan-card {
  display: grid; gap: 4px; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; color: var(--text); cursor: pointer; min-height: 72px;
}
.chan-card.is-on { border-color: rgba(200,255,61,.4); background: rgba(200,255,61,.08); }
.chan-card.is-off { opacity: .7; }
.chan-card span { color: var(--muted); font-size: 13px; }
.ig-manual { margin: 8px 0 0; }
.ig-manual summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 650; }
.ig-manual[open] summary { margin-bottom: 12px; }
.chan-connected {
  display: flex; gap: 12px; align-items: center; padding: 12px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.tg-chat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.tg-chat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.tg-chat-row.is-off { opacity: .55; }
.tg-chat-row strong { display: block; }
.tg-chat-picks { display: grid; gap: 6px; margin: 6px 0 10px; }
@media (max-width: 980px) {
  .tg-chat-cols { grid-template-columns: 1fr; }
}
.usr-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.usr-toolbar .search-inline { flex: 1; min-width: 160px; margin: 0; }
.usr-select {
  background-color: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 10px 38px 10px 12px; min-height: 44px;
}
.usr-cell { font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.usr-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.usr-row { grid-template-columns: 16px minmax(140px, 1.3fr) minmax(100px, .8fr) minmax(100px, .8fr) 140px auto; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud .pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 40px; }
.tag-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.tpl-list { max-height: min(60vh, 520px); overflow: auto; padding: 0 16px 16px; }
.tpl-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.modal-wide { width: min(640px, 100%); padding: 16px 0 8px; }
.modal-wide .sim-head { padding: 8px 16px 0; }
.float-btn {
  width: 44px; height: 44px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(16,18,28,.92); color: var(--text); cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 18px;
}
.ctor-search-btn { display: none; }
.ctor-zoom {
  position: absolute; right: 12px; top: 40%; z-index: 5;
  display: grid; gap: 8px;
}
.ctor-nav { position: absolute; left: 12px; bottom: 16px; z-index: 5; }
.ctor-save-chip {
  position: absolute; right: 14px; top: 14px; z-index: 5;
  font-size: 12px; background: rgba(8,9,14,.75); padding: 6px 10px; border-radius: 999px;
}
.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; color: var(--text); }

/* Constructor */
.constructor-body .app-content { padding: 0; }
.constructor-body .topbar-title,
.constructor-body .sidebar,
.constructor-body .burger,
.constructor-body .brand-mini,
.constructor-body .crumbs,
.constructor-body .sup-launch { display: none !important; }
.constructor-body .app-shell { grid-template-columns: 1fr; }
.constructor-body .topbar { padding: 8px 14px; gap: 10px; }
.constructor-body .topbar-actions {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
}
.constructor-body #ctor-back {
  width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  font-size: 28px; line-height: 1; flex: 0 0 auto;
}
.ctor {
  display: grid; grid-template-columns: 88px 1fr 320px;
  height: calc(100vh - 56px);
}
.ctor-stage { z-index: 1; min-width: 0; }
.ctor-palette {
  position: relative; overflow: visible; padding: 0; z-index: 40;
  background: rgba(8,9,14,.94); border-right: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.ctor-rail {
  display: flex; flex-direction: column; gap: 2px;
  height: 100%; padding: 10px 6px 12px; overflow: auto;
}
.ctor-rail-btn, .ctor-rail a {
  display: grid; justify-items: center; gap: 4px;
  padding: 8px 4px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 700 10px/1.1 var(--font); text-align: center;
  border-radius: 12px; text-decoration: none;
}
.ctor-rail-btn:hover, .ctor-rail a:hover, .ctor-rail-btn.is-on {
  background: rgba(200,255,61,.1); color: var(--lime);
}
.ctor-rail-ico { width: 22px; height: 22px; display: grid; place-items: center; }
.ctor-rail-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ctor-rail-sep { height: 1px; background: var(--line); margin: 8px 10px; flex: 0 0 auto; }
.ctor-rail-spacer { flex: 1; }
.ctor-flyout {
  position: fixed; left: 96px; top: 64px; z-index: 50;
  width: 280px; max-height: calc(100vh - 80px); overflow: auto;
  padding: 8px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(12,14,22,.98); box-shadow: 0 18px 48px rgba(0,0,0,.5);
}
.ctor-props {
  position: relative; z-index: 2;
  background: rgba(8,9,14,.9); border-left: 1px solid var(--line); overflow: auto; padding: 12px;
  backdrop-filter: blur(16px);
}
.palette-item {
  display: flex; gap: 8px; align-items: center; padding: 10px 11px; border-radius: 12px;
  cursor: grab; border: 1px solid transparent; margin-bottom: 4px; font-size: 13px; font-weight: 650;
  background: rgba(255,255,255,.03);
}
.palette-item:hover { border-color: rgba(200,255,61,.25); }
.palette-item i { width: 8px; height: 8px; border-radius: 99px; }
.pal-h { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 12px 4px 6px; }
.ctor-stage { position: relative; min-width: 0; display: flex; flex-direction: column; background:
  radial-gradient(circle at 1px 1px, rgba(255,255,255,.06) 1px, transparent 0) 0 0 / 22px 22px,
  #07080d;
}
.ctor-toolbar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ctor-canvas-wrap { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; min-height: 520px; }
.ctor-canvas-wrap.is-panning { cursor: grabbing; }
.ctor-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ctor-links path { fill: none; stroke: rgba(200,255,61,.45); stroke-width: 2; }
.ctor-links .link-hit {
  pointer-events: stroke;
  stroke: rgba(200,255,61,0);
  stroke-width: 28;
  fill: none;
  cursor: pointer;
}
.ctor-links .link-line { pointer-events: none; }
.ctor-links .ctor-link.is-on .link-line { stroke: var(--lime); stroke-width: 3.2; }
.ctor-link-del {
  position: absolute;
  z-index: 8;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #ff5d7a;
  color: #fff;
  font: 800 16px/1 var(--font);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,93,122,.4);
  touch-action: manipulation;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}
.ctor-link-del[hidden] { display: none !important; }
.ctor-link-del:hover { filter: brightness(1.08); }
.ctor-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; min-width: 2800px; min-height: 2000px; }
.cblock {
  position: absolute; width: 280px; min-height: 118px; background: rgba(16,18,28,.94); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.35);
  user-select: none; backdrop-filter: blur(8px);
}
.cblock.is-on { outline: 2px solid var(--lime); box-shadow: 0 0 0 6px rgba(200,255,61,.12); }
.cblock-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cblock-title { font-weight: 700; font-size: 14px; color: var(--text); }
.cblock-preview { color: var(--muted); font-size: 13px; white-space: pre-wrap; max-height: 72px; overflow: hidden; }
.cblock.mint { border-top: 3px solid var(--accent2); }
.cblock.violet { border-top: 3px solid var(--accent); }
.cblock.amber { border-top: 3px solid var(--amber); }
.cblock.blue { border-top: 3px solid var(--blue); }
.cblock.pink { border-top: 3px solid var(--pink); }
.cblock.slate { border-top: 3px solid #6b7288; }
.port {
  position: absolute; width: 16px; height: 16px; border-radius: 99px; z-index: 2;
  background: var(--lime); border: 2px solid #07080d; cursor: pointer;
  touch-action: none;
}
.port.in { left: -9px; top: 28px; }
.port.out { right: -9px; }
.port.out.is-on, .port.out:active { box-shadow: 0 0 0 6px rgba(200,255,61,.28); }
.port::after {
  content: "";
  position: absolute;
  inset: -14px;
}
.cblock.is-drop { outline: 2px solid var(--lime); box-shadow: 0 0 0 6px rgba(200,255,61,.18); }
.ctor-links #link-preview { stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 7 5; }
.edit-block { display: grid; gap: 10px; margin: 8px 0 4px; }
.edit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.edit-head .btn { min-height: 40px; flex: 0 0 auto; }
.edit-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px;
  background: rgba(255,255,255,.03); display: grid; gap: 8px;
}
.edit-card-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.edit-card-top strong { flex: 1; font-size: 13px; }
.ctor-props .form { gap: 10px; }
.ctor-props h3 { font-family: var(--display); margin: 0 0 4px; font-size: 18px; }
.props-close, #toggle-props { display: none; }
.ctor-list, .ctor-fab, .ctor-dim, .sheet-head, .m-flow-hint { display: none; }

/* Inbox */
.inbox-body .app-content { padding: 0; }
.inbox { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 65px); }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(8,9,14,.88); }
.inbox-search, .ctor-search { padding: 10px; }
.inbox-people { overflow: auto; flex: 1; }
.person {
  display: grid; gap: 2px; padding: 13px 14px; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--text);
}
.person:hover, .person.is-on { background: rgba(200,255,61,.08); }
.person small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { background: var(--lime); color: #08100a; border-radius: 99px; padding: 0 6px; font-size: 11px; margin-left: 6px; font-weight: 800; }
.thread { display: flex; flex-direction: column; height: 100%; }
.thread-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 10px; }
.inbox-back { display: none; }
.thread-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: min(520px, 86%); padding: 10px 13px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; }
.bubble.in { align-self: flex-start; background: #1a1e2c; }
.bubble.out { align-self: flex-end; background: linear-gradient(180deg, #d4ff63, var(--lime)); color: #08100a; }
.bubble.fail { background: #3a1a1a; color: #ffb4b4; box-shadow: inset 0 0 0 1px #7a3030; }
.thread-form, .sim-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.thread-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; }
.inbox-empty { padding: 48px 24px; color: var(--muted); }

.sim-drawer {
  position: fixed; right: 16px; bottom: 16px; width: min(380px, calc(100vw - 24px));
  height: min(520px, 70vh); background: rgba(12,14,22,.94); border: 1px solid var(--line);
  border-radius: 22px; display: flex; flex-direction: column; z-index: 40; box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.app-ask-grab {
  width: 42px; height: 4px; margin: 8px auto 2px;
  border-radius: 99px; background: rgba(255,255,255,.2);
}
#app-ask .modal-card { padding: 4px 0 12px; }
#app-ask .sim-head { padding: 8px 16px 6px; }
#app-ask .hint { margin: 0; padding: 0 16px 10px; }
#app-ask-form { padding: 0 16px 8px; }
.app-ask-choices { display: grid; gap: 8px; padding: 4px 16px 12px; }
.app-ask-choices[hidden] { display: none !important; }
.app-ask-choices .btn { min-height: 48px; width: 100%; border-radius: 16px; }
.app-ask-choices .app-ask-cancel { margin-top: 4px; }
#app-ask .btn:hover { transform: none; }
@media (min-width: 981px) {
  .app-ask-grab { display: none; }
}
.sim-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }

.shade {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40;
  backdrop-filter: blur(4px);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 980px) {
  .hero, .feat-grid, .steps, .auth-wrap, .split-2, .price-grid { grid-template-columns: 1fr; }
  .stat-grid, .stat-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .land-nav { margin: 8px 12px; border-radius: 20px; padding: 12px 14px; }
  .land-nav nav { display: none; }
  .land-nav nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #0c0e16; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
    z-index: 30;
  }
  .land-burger, .burger { display: inline-flex; }
  .brand-mini { display: none !important; }
  .crumbs { display: flex; flex: 1; min-width: 0; }
  .crumbs a { max-width: 92px; }
  .topbar-title { display: none; }
  .top-bal {
    display: inline; color: var(--lime); font-weight: 800; font-size: 13px; white-space: nowrap;
  }
  .top-ava { display: none !important; }
  .hide-on-pc { display: inline-flex; }
  .hide-on-phone { display: none !important; }
  .page-head.hide-on-pc { display: none !important; }
  .app-shell { grid-template-columns: 1fr; min-height: 100dvh; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); z-index: 50;
    transform: translateX(-110%); transition: transform .22s ease;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .sidebar.open { transform: none; }
  .topbar {
    padding: 10px 12px;
    padding-top: max(10px, env(safe-area-inset-top));
    gap: 8px;
  }
  .topbar-title {
    font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .topbar-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .topbar-actions .btn { padding: 8px 11px; font-size: 13px; }
  .page-head { margin-bottom: 16px; align-items: flex-start; }
  .page-head h1 { font-size: 26px; }
  .ctor { grid-template-columns: 1fr; height: calc(100dvh - 56px); }
  .inbox { grid-template-columns: 1fr; height: calc(100dvh - 56px); }
  .inbox-list { display: none; }
  .inbox.show-list .inbox-list { display: flex; }
  .inbox.show-list .inbox-thread { display: none; }
  .inbox-back { display: inline-flex; }
  .dock {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    background: rgba(10,12,18,.86); border: 1px solid var(--line);
    border-radius: 22px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
  }
  .dock a {
    display: grid; justify-items: center; gap: 4px; color: var(--muted);
    font-size: 11px; font-weight: 700; padding: 6px 0;
  }
  .dock a.is-on { color: var(--lime); }
  .dock .nav-ico { width: 20px; height: 20px; }
  .app-content { padding: 18px 16px 108px; }
  .constructor-body .app-content, .inbox-body .app-content { padding: 0; }
  .inbox-body .dock { display: grid; }
  .inbox-body:has(.inbox:not(.show-list)) .dock { display: none; }
  .inbox.show-list .inbox-people { padding-bottom: 108px; }
  .inbox-body:has(.inbox:not(.show-list)) .sup-launch { display: none; }
  .constructor-body {
    touch-action: manipulation;
    overscroll-behavior: none;
    overflow: hidden;
    height: 100dvh;
  }
  .constructor-body .app-shell,
  .constructor-body .app-main {
    height: 100dvh;
  }
  .constructor-body .burger,
  .constructor-body .brand-mini,
  .constructor-body .crumbs,
  .constructor-body .top-bal,
  .constructor-body .top-ava,
  .constructor-body .sup-launch { display: none !important; }
  .constructor-body .dock { display: none; }
  .constructor-body .topbar { padding: 8px 10px; gap: 8px; }
  .constructor-body .topbar-title { display: none; }
  .constructor-body .topbar-actions { flex: 1; min-width: 0; }
  .constructor-body .ctor-ident { flex: 1; min-width: 0; margin-right: 0; }
  .constructor-body .ctor-ident span { display: none; }
  .constructor-body .ctor-ident strong { font-size: 15px; }
  .constructor-body .pub-toggle .pub-on,
  .constructor-body .pub-toggle .pub-off { font-size: 0; }
  .constructor-body .pub-toggle .pub-on::after { content: "Вкл"; font-size: 12px; font-weight: 700; }
  .constructor-body .pub-toggle .pub-off::after { content: "Выкл"; font-size: 12px; font-weight: 700; }
  .constructor-body #btn-save { padding: 8px 12px; }
  .constructor-body .ctor-rail { display: none !important; }
  .constructor-body .ctor-flyout,
  .constructor-body .ctor-flyout[hidden] {
    display: flex !important; flex-direction: column;
    position: static; width: auto; max-height: none; flex: 1; min-height: 0;
    padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    overflow: hidden;
  }
  .constructor-body .ctor {
    height: calc(100dvh - 52px);
  }
  .constructor-body .ctor-stage {
    min-height: 0;
    overflow: hidden;
    background: #07080d;
    position: relative;
  }
  .constructor-body .ctor-canvas-wrap {
    display: block;
    flex: 1;
    min-height: 0;
  }
  .constructor-body .ctor-list,
  .constructor-body .ctor-fab,
  .constructor-body .ctor-toolbar { display: none !important; }
  .constructor-body .ctor-search-btn {
    display: grid; place-items: center;
    position: absolute; left: 12px; top: 12px; z-index: 5;
  }
  .constructor-body .cblock { touch-action: none; }
  .constructor-body .port {
    width: 22px; height: 22px;
  }
  .constructor-body .port.in { left: -12px; }
  .constructor-body .port.out { right: -12px; }
  .constructor-body .port::after {
    content: "";
    position: absolute;
    inset: -18px;
  }
  .constructor-body:has(.ctor-palette.open) .dock,
  .constructor-body:has(.ctor-props.open) .dock { display: none; }
  .ctor-dim {
    display: block;
    position: fixed; inset: 0; z-index: 40;
    background: rgba(0,0,0,.45);
  }
  .ctor-dim[hidden] { display: none !important; }
  .constructor-body .ctor-palette,
  .constructor-body .ctor-props {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    width: 100%;
    z-index: 41;
    transform: translateY(110%);
    transition: transform .22s ease;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    padding: 0 12px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(10,12,18,.98);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
  }
  .constructor-body .ctor-palette { max-height: 52vh; top: 52px; bottom: auto; border-radius: 0 0 22px 22px; border-bottom: 1px solid var(--line); transform: translateY(-120%); }
  .constructor-body .ctor-props { max-height: 72vh; }
  .constructor-body .ctor-palette.open,
  .constructor-body .ctor-props.open {
    transform: none;
    pointer-events: auto;
  }
  .constructor-body .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    flex: 0 0 auto;
    padding: 12px 4px 10px;
    background: rgba(10,12,18,.98);
  }
  .constructor-body .sheet-head .icon-btn { width: 38px; height: 38px; }
  .constructor-body .ctor-search { flex: 0 0 auto; padding: 0 0 8px; }
  .constructor-body .palette-groups {
    overflow: auto; flex: 1; min-height: 0; max-height: none;
    -webkit-overflow-scrolling: touch;
  }
  .constructor-body .props-empty,
  .constructor-body .props-form {
    overflow: auto; flex: 1; min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .constructor-body #btn-del-block { flex: 0 0 auto; margin-top: 10px; }
  .form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  .form textarea, .form select, .search-inline input, .ctor-search input, .inbox-search input,
  .chat-composer textarea, .thread-form textarea {
    font-size: 16px;
  }
  .palette-item, .person, .action-list a { min-height: 44px; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .btn { width: 100%; }
  .thread-head { flex-wrap: wrap; }
  .toast, .toasts .toast {
    left: 12px; right: 12px; top: max(12px, env(safe-area-inset-top));
  }
  .modal { padding: 12px; align-items: end; }
  .modal-card { width: 100%; border-radius: 22px 22px 12px 12px; }
  .sim-drawer {
    inset: 0; width: 100%; height: 100%; max-height: none; right: 0; bottom: 0;
    border-radius: 0; z-index: 50;
  }
  .land-foot { flex-direction: column; gap: 10px; padding: 24px 20px 32px; }
  .section { padding: 48px 20px; }
  .hero { padding: 28px 20px 24px; gap: 24px; }
  .canvas-preview { min-height: 280px; padding: 18px; }
  .install-card { margin: 16px; padding: 20px; }
  a, button, .palette-item, .person, .action-list a { touch-action: manipulation; }
}

@media (max-width: 640px) {
  .app-content { padding: 14px 12px 108px; }
  .hero { padding-top: 20px; gap: 20px; }
  .hero h1 { max-width: none; font-size: clamp(28px, 9vw, 40px); }
  .lead { font-size: 16px; }
  .bot-grid { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-card {
    border-left: 0; min-height: 100dvh; padding: 28px 18px 40px;
    padding-top: max(28px, env(safe-area-inset-top));
  }
  .page-head h1 { font-size: 22px; }
  .stat-n { font-size: 22px; }
  .panel { padding: 16px; border-radius: 18px; }
  .empty-card { padding: 40px 16px; }
  .tour { padding: 0; }
  .tour-card {
    width: 100%; height: 100%; max-height: none; border-radius: 0;
  }
  .tour-body { padding: 14px 16px 8px; }
  .tour-body h2 { font-size: 22px; }
  .tour-nav {
    flex-direction: column-reverse; align-items: stretch;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }
  .tour-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tour-nav #tour-skip { width: 100%; }
  .ctor-toolbar { flex-wrap: wrap; gap: 6px; }
  .cblock { width: 260px; min-height: 124px; }
  .table th, .table td { padding: 10px 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .app-content { overflow-x: hidden; }
  .scn-toolbar { flex-direction: column; align-items: stretch; }
  .scn-toolbar-btns { display: none !important; }
  .scn #rx-new { display: none !important; }
  .scn-table { border: 0; background: transparent; }
  .scn-row, .usr-row {
    grid-template-columns: 1fr 44px;
    border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px;
    padding: 12px; min-height: 64px; align-items: start;
  }
  .scn-row .scn-check { display: none; }
  .scn-row .scn-name,
  .scn-row .scn-status,
  .scn-row .scn-date { grid-column: 1; }
  .scn-row > .icon-btn { grid-column: 2; grid-row: 1; }
  .scn-row > span:empty { display: none; }
  .usr-row .scn-name { grid-column: 1; }
  .usr-row .usr-cell { display: none; }
  .usr-row .usr-cell.scn-date { display: block; grid-column: 1; }
  .usr-actions { grid-column: 1 / -1; justify-content: stretch; }
  .usr-actions .btn { flex: 1; min-height: 44px; }
  .usr-toolbar { flex-direction: column; align-items: stretch; }
  .usr-toolbar .usr-select { width: 100%; }
  .page-fab.hide-on-pc {
    display: grid !important; place-items: center;
    position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 28; width: 56px; height: 56px; border-radius: 99px; border: 0;
    background: var(--lime); color: #08100a; font-size: 28px; font-weight: 700;
    box-shadow: 0 10px 28px rgba(200,255,61,.28);
  }
  .chan-grid, .chan-cards { grid-template-columns: 1fr; }
  .thread-actions { flex-wrap: wrap; width: 100%; }
  .thread-actions .btn { min-height: 44px; }
  .inbox-filters { padding-bottom: 10px; }
  .chip { min-height: 44px; }
  .tabs { gap: 14px; margin-bottom: 12px; }
}

@media (hover: none) {
  .btn:hover, .bot-card:hover, .feat:hover, .price-card.featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.tour {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5,6,10,.78);
  display: grid; place-items: center; padding: 18px;
  backdrop-filter: blur(12px);
}
.tour[hidden] { display: none !important; }
.tour-card {
  width: min(640px, 100%); max-height: min(88vh, 760px);
  display: flex; flex-direction: column;
  background: rgba(12,14,22,.97);
  border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); overflow: hidden;
}
.tour-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 0 18px;
}
.tour-step { color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tour-progress { height: 4px; margin: 12px 18px 0; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.tour-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lime), var(--accent2)); transition: width .2s ease; }
.tour-body { padding: 18px 22px 8px; overflow: auto; flex: 1; }
.tour-body h2 { font-family: var(--display); letter-spacing: -.03em; margin: 0 0 12px; font-size: 26px; }
.tour-body p, .tour-body li { color: #c9d0e0; }
.tour-body ul, .tour-body ol { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.tour-body code { background: rgba(200,255,61,.1); color: var(--lime); padding: 1px 6px; border-radius: 6px; }
.tour-nav {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px 16px 16px; border-top: 1px solid var(--line);
}
.tour-actions { display: flex; gap: 8px; }
body.tour-open { overflow: hidden; }
.toast-ok { border-color: rgba(200,255,61,.4); }

.stars-ui { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; align-items: start; }
.stars-ui-col { display: grid; gap: 16px; }
.stars-pack {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.02);
  display: grid; gap: 8px;
}
.stars-pack-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars-pack .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stars-colors { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stars-colors label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stars-colors input[type=color] { width: 36px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.stars-preview {
  position: sticky; top: 16px;
  border-radius: 28px; padding: 18px 14px 22px; min-height: 420px;
  border: 1px solid var(--line);
}
.stars-preview h3 { margin: 0 0 4px; font-size: 18px; }
.stars-preview .lead { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.stars-preview-grid { display: grid; gap: 8px; }
.stars-preview-btn {
  border: 0; border-radius: 14px; padding: 12px 8px; font-weight: 700; cursor: default;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 72px; justify-content: center;
}
.stars-preview-btn small { opacity: .75; font-weight: 500; font-size: 11px; }
.stars-ph { font-size: 12px; color: var(--muted); }
.stars-ph code { color: var(--lime); }
@media (max-width: 980px) {
  .stars-ui { grid-template-columns: 1fr; }
  .stars-preview { position: static; }
}

.legal-body .legal-wrap {
  max-width: 860px; margin: 24px auto 40px; padding: 28px 28px 36px;
}
.legal-wrap h1 {
  font-family: var(--display); letter-spacing: -.04em; margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px);
}
.legal-wrap h2 { margin: 28px 0 10px; font-size: 20px; }
.legal-wrap h3 { margin: 16px 0 8px; color: var(--lime); font-size: 16px; }
.legal-wrap p, .legal-wrap li { color: #d5dbeb; }
.legal-wrap ul { padding-left: 18px; }
.legal-wrap li { margin: 6px 0; }
.legal-box {
  margin: 16px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
}
.legal-ok { background: rgba(200,255,61,.08); border-color: rgba(200,255,61,.28); }
.legal-warn { background: rgba(255,200,87,.1); border-color: rgba(255,200,87,.28); }
.legal-bad { background: rgba(255,93,122,.1); border-color: rgba(255,93,122,.3); }
.legal-accept { align-items: flex-start !important; font-weight: 550 !important; font-size: 13px; line-height: 1.45; }
.legal-accept input { margin-top: 3px; }
.legal-accept a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.land-nav a.is-on { color: var(--lime); }
.pay-methods { display: grid; gap: 10px; }
.pay-method {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,.02); min-height: 72px;
  transition: border-color .18s, background .18s, transform .18s;
}
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:hover { border-color: rgba(255,255,255,.16); }
.pay-method:has(input:checked) {
  border-color: rgba(200,255,61,.5); background: rgba(200,255,61,.08);
  box-shadow: inset 0 0 0 1px rgba(200,255,61,.12);
}
.pay-method span { display: grid; gap: 4px; min-width: 0; }
.pay-method strong { color: var(--text); font-size: 15px; }
.pay-method small { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.pay-ico-wrap {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: var(--text);
}
.pay-ico { width: 22px; height: 22px; }
.pay-stars .pay-ico-wrap { background: rgba(42,171,238,.16); color: #7ed0ff; }
.pay-platega .pay-ico-wrap { background: rgba(200,255,61,.16); color: var(--lime); }
.pay-card .pay-ico-wrap { background: rgba(200,255,61,.12); color: var(--lime); }
.pay-manual .pay-ico-wrap { background: rgba(139,92,255,.16); color: #c4b0ff; }
.coupon-box { margin: 0 0 14px; }
.topup-head { align-items: stretch; }
.topup-now {
  display: grid; align-content: center; justify-items: end; gap: 4px;
  padding: 14px 18px; border-radius: 20px;
  background: rgba(200,255,61,.08); border: 1px solid rgba(200,255,61,.22);
  min-width: min(260px, 100%);
}
.topup-now-l { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.topup-now-n { font-family: var(--display); font-size: 28px; letter-spacing: -.04em; line-height: 1.1; }
.topup-now .nbrb-icon { font-size: .72em; }
.topup-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .9fr);
  gap: 16px; align-items: start;
}
.topup-form { gap: 22px; }
.topup-step { display: grid; gap: 12px; }
.topup-step h2, .topup-reqs h2, .coupon-box h2 { margin: 0; font-size: 18px; }
.topup-step-h { display: flex; align-items: center; gap: 10px; }
.topup-step-h span {
  width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center;
  background: var(--lime); color: #08100a; font: 800 13px/1 var(--font);
}
.amt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px;
}
.form .amt-chip, .form .pay-method, .form .file-drop {
  font-size: 14px; font-weight: 650; color: var(--text);
}
.form .amt-chip { gap: 2px; }
.form .pay-method { gap: 12px; grid-template-columns: 44px 1fr; }
.form .file-drop { gap: 4px; }
.amt-chip {
  position: relative; display: grid; place-items: center; gap: 2px;
  min-height: 68px; padding: 12px 10px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer;
  text-align: center; color: var(--text);
}
.amt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amt-chip b { font-size: 16px; font-weight: 750; }
.amt-chip small { color: var(--muted); font-size: 11px; font-weight: 650; }
.amt-chip:has(input:checked) {
  border-color: rgba(200,255,61,.55); background: rgba(200,255,61,.1); color: var(--lime);
}
.amt-chip .nbrb-icon { font-size: .78em; }
.amt-input { position: relative; }
.topup-card {
  padding: 14px 16px; border-radius: 18px;
  border: 1px dashed rgba(200,255,61,.28); background: rgba(200,255,61,.05);
  display: grid; gap: 10px;
}
.topup-card-sum { margin: 0; font-weight: 700; color: var(--text); }
.topup-card-meta { margin: 0; font-size: 13px; }
.topup-copy { flex-wrap: nowrap; align-items: stretch; }
.topup-copy input {
  font-family: var(--mono); letter-spacing: .08em; font-size: 16px;
}
.topup-copy .btn { flex: 0 0 auto; white-space: nowrap; width: auto !important; }
.file-drop {
  position: relative; display: grid !important; place-items: center;
  min-height: 112px; padding: 18px 16px; border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.03);
  cursor: pointer; text-align: center; color: var(--text) !important;
}
.file-drop:hover, .file-drop.is-on {
  border-color: rgba(200,255,61,.45); background: rgba(200,255,61,.06);
}
.file-drop input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100% !important; height: 100%; padding: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
}
.file-drop-body { display: grid; gap: 4px; pointer-events: none; }
.file-drop-body small, .file-drop-body em { color: var(--muted); font-style: normal; font-weight: 550; font-size: 12.5px; }
.topup-submit {
  position: sticky; bottom: 10px; z-index: 4;
  display: grid; gap: 12px; padding-top: 8px;
  background: linear-gradient(180deg, transparent, rgba(10,12,18,.94) 18px);
}
.topup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topup-list li {
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  padding: 12px 12px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.topup-list div { display: grid; gap: 2px; min-width: 0; }
.topup-list span, .topup-list small { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.topup-st {
  flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}
.topup-st.is-ok { background: rgba(200,255,61,.14); color: var(--lime); }
.topup-st.is-wait { background: rgba(255,200,87,.14); color: var(--amber); }
.topup-st.is-bad { background: rgba(255,93,122,.16); color: #ff8aa0; }
@media (max-width: 980px) {
  .topup-grid { grid-template-columns: 1fr; }
  .topup-now { justify-items: start; width: 100%; }
}
@media (max-width: 900px) {
  .topup-submit { bottom: 78px; }
  .topup-copy { flex-wrap: wrap; }
  .topup-copy .btn { width: 100% !important; }
}
@media (max-width: 560px) {
  .amt-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-method { grid-template-columns: 40px 1fr; padding: 12px 12px; }
}
body.m-app .topup-submit { bottom: 0; background: transparent; padding-top: 0; }
.danger-zone {
  padding: 16px; border-radius: 18px;
  border: 1px solid rgba(255,93,122,.28); background: rgba(255,93,122,.07);
}
.panel.danger-zone { padding: 20px; }
.danger-zone h2, .danger-zone h3 { margin: 0 0 8px; }
.danger-zone .head-actions { margin-top: 12px; }
.land-foot a { color: var(--muted); margin-left: 8px; }
.land-foot a:hover { color: var(--lime); }
.stat-n .nbrb-icon, .price-sum .nbrb-icon, .bal-chip .nbrb-icon, .top-bal .nbrb-icon { font-size: .72em; }

.news-sec { padding-top: 72px; }
.news-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.news-head h2 { margin-bottom: 8px; }
.news-hero, .news-card {
  display: grid; gap: 8px; color: var(--text); text-decoration: none;
  border: 1px solid var(--line); background: rgba(16,18,28,.7);
  backdrop-filter: blur(16px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.news-hero {
  border-radius: 32px; padding: 32px 32px 28px; margin-bottom: 16px;
  background:
    radial-gradient(900px 280px at 90% 0%, rgba(200,255,61,.12), transparent 50%),
    rgba(16,18,28,.78);
}
.news-hero:hover, .news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,255,61,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.news-hero h3 { margin: 4px 0 0; font-family: var(--display); font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; }
.news-hero p, .news-card p { margin: 0; color: var(--muted); }
.news-kicker {
  justify-self: start;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lime);
}
.news-hero time, .news-card time { color: var(--muted); font-size: 13px; }
.news-more { color: var(--lime); font-weight: 700; font-size: 14px; margin-top: 8px; }
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.news-grid-all { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card {
  border-radius: 24px; padding: 20px; min-height: 200px; align-content: start;
}
.news-card h3 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.02em; }
.news-card.is-pin { border-color: rgba(200,255,61,.4); }
.news-article { max-width: 760px; }
.news-article h1 {
  font-family: var(--display); font-size: clamp(32px, 5vw, 52px); max-width: none;
  margin: 8px 0 22px;
}
.news-body { display: grid; gap: 12px; font-size: 17px; color: #d5dbeb; line-height: 1.6; }
.news-body p { margin: 0; }
.notice-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.site-notice {
  display: flex; gap: 16px; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px; border-radius: 22px;
  border: 1px solid rgba(200,255,61,.28);
  background: linear-gradient(120deg, rgba(200,255,61,.08), rgba(139,92,255,.08));
}
.site-notice h3 { margin: 6px 0 6px; font-size: 18px; }
.site-notice p { margin: 0; color: #d5dbeb; white-space: pre-wrap; }
.site-notice .btn { flex: 0 0 auto; }
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--lime);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.notice-feed { display: grid; gap: 12px; }
body:has(.notice-pop) { overflow: hidden; }
.notice-pop .modal-card { width: min(460px, 100%); }
.notice-pop h2 { margin: 6px 0 12px; font-size: 1.35rem; }
.notice-pop-body { margin: 0 0 18px; color: #d5dbeb; white-space: pre-wrap; line-height: 1.5; }
.site-notice.is-new { border-color: rgba(200,255,61,.5); }
@media (max-width: 980px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-hero { padding: 22px; }
  .site-notice { flex-direction: column; }
}
.otp-input {
  text-align: center; font-size: 28px !important; letter-spacing: .28em;
  font-family: var(--mono); font-weight: 700;
}

.qr-login { margin-top: 18px; text-align: center; }
.qr-login h2 { font-size: 18px; margin: 8px 0 6px; }
.qr-login-or {
  display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em; margin: 8px 0 4px;
}
.qr-login-or::before, .qr-login-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.oauth-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 8px 0 4px; }
.btn-vk {
  background: #0077ff !important; color: #fff !important; border: 0;
}
.btn-vk:hover { filter: brightness(1.08); }
.btn-google {
  background: #fff !important; color: #1f1f1f !important; border: 1px solid #dadce0 !important;
}
.btn-google:hover { filter: brightness(0.97); }
.btn-discord {
  background: #5865f2 !important; color: #fff !important; border: 0;
}
.btn-discord:hover { filter: brightness(1.08); }

.dc-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  counter-reset: dc;
}
.dc-steps li {
  counter-increment: dc;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.dc-steps li::before {
  content: counter(dc);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(88,101,242,.2);
  color: #aab4ff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.dc-steps .muted { margin: 4px 0 0; }
.dc-got { display: grid; gap: 0; margin-top: 12px; }
.dc-got div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.download-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
  padding: 36px 28px 48px;
  max-width: 1120px;
  margin: 0 auto;
}
.download-copy h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.04em;
  line-height: 1.05;
  max-width: 14ch;
}
.download-copy h1 em { color: var(--lime); font-style: normal; }
.download-ver {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.download-card { padding: 22px; }
.download-card h2 { margin: 0 0 12px; font-size: 22px; }
.download-steps { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); line-height: 1.45; }
.download-steps li::marker { color: var(--lime); }
@media (max-width: 860px) {
  .download-hero { grid-template-columns: 1fr; padding: 24px 20px 36px; }
  .download-copy h1 { max-width: none; }
  .download-actions { flex-direction: column; }
  .download-actions .btn { width: 100%; }
}
.oauth-tg { min-height: 40px; display: grid; place-items: center; }
.oauth-row.is-locked .oauth-tg { pointer-events: none; opacity: .45; }
.qr-preview {
  margin: 12px auto 8px; width: min(240px, 70vw); aspect-ratio: 1;
  background: #07080d; border: 1px solid var(--line); border-radius: 20px;
  padding: 10px; display: grid; place-items: center;
}
.qr-preview canvas,
.qr-preview img { width: 100%; height: auto; border-radius: 12px; image-rendering: pixelated; display: block; }
.mono { font-family: var(--mono); font-size: 12px; color: var(--mint); word-break: break-all; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.err-page { min-height: 100vh; }
.err-nav { position: relative; z-index: 2; }

/* Admin user modal + richer toasts */
.modal-card.modal-wide { width: min(920px, 100%); max-height: min(90vh, 920px); overflow: auto; padding: 18px 18px 22px; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.modal-top h2 { margin: 0; font-size: 1.25rem; }
.admin-user-modal .panel.soft { background: transparent; border: 0; box-shadow: none; padding: 0; }
.admin-user-grid { margin-top: 4px; }
tr.is-clickable:hover td, tr.is-click:hover td { background: rgba(200,255,61,.05); }
.toasts .toast, .toast {
  display: flex; align-items: flex-start; gap: 12px;
  min-width: min(300px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(160deg, #171b27, #10131c);
  animation: toast-in .28s ease;
}
.toast-ico {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  flex: 0 0 auto; font-weight: 800;
  background: rgba(200,255,61,.12); color: var(--lime);
}
.toast-bad .toast-ico { background: rgba(255,93,122,.14); color: #ff7b96; }
.toast-body { display: grid; gap: 2px; }
.toast-title { font-weight: 800; font-size: 14px; }
.toast-text { color: var(--muted); font-size: 13px; line-height: 1.35; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }

.lang-switch {
  display: inline-flex; gap: 4px; align-items: center; margin-right: 8px;
}
.lang-btn {
  display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,.03);
}
.lang-btn:hover { color: var(--text); border-color: rgba(200,255,61,.35); }
.lang-btn.is-on { color: #0b0d12; background: var(--lime); border-color: transparent; }
body.has-modal { overflow: hidden; }
.modal.admin-user-modal.is-open,
.modal.admin-user-modal { display: grid; }
.modal-card.modal-wide,
.modal-wide { width: min(920px, 100%); }
@media (max-width: 860px) {
  .modal.admin-user-modal { align-items: end; }
  .modal.admin-user-modal .modal-card,
  .modal.admin-user-modal .modal-wide {
    width: 100%; max-height: min(92vh, 920px);
    border-radius: 22px 22px 0 0;
  }
}

/* Reviews + Learn */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 28px; }
.review-card {
  background: rgba(16,19,28,.85); border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; padding: 16px 16px 14px;
}
.review-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; align-items: center; }
.review-stars { color: var(--lime); letter-spacing: 1px; font-size: 14px; }
.review-form {
  max-width: 720px; margin: 8px auto 0; padding: 18px;
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  background: linear-gradient(160deg, rgba(24,28,40,.9), rgba(12,14,20,.92));
}
.review-form h3 { margin: 0 0 6px; }
.learn-hero, .learn-tabs { margin-bottom: 18px; }
.learn-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.learn-list { display: grid; gap: 14px; }
.learn-card {
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  background: rgba(14,16,24,.9); overflow: hidden;
}
.learn-card-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-bottom: 1px solid transparent;
}
.learn-card.is-open .learn-card-head { border-bottom-color: rgba(255,255,255,.06); }
.learn-card-head h2 { margin: 6px 0 4px; font-size: 1.2rem; }
.learn-card-body { padding: 8px 18px 18px; }
.learn-video { position: relative; width: 100%; aspect-ratio: 16/9; margin: 8px 0 14px; border-radius: 14px; overflow: hidden; background: #000; }
.learn-video iframe, .learn-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.learn-text { color: var(--text); line-height: 1.55; }
.learn-text h3 { margin: 14px 0 8px; font-size: 1.05rem; }
.learn-text ul { margin: 0 0 10px; padding-left: 18px; color: var(--muted); }
@media (max-width: 860px) {
  .learn-card-head { flex-direction: column; }
  .learn-card-head .btn { align-self: stretch; text-align: center; }
  .learn-video { border-radius: 12px; }
}
.btn.sm { padding: 8px 12px; font-size: 13px; }

.inline-form { display: inline-flex; margin: 0; }
.inline-form .btn { margin: 0; }
.head-actions .inline-form { display: inline-flex; }

.sim-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.funnel-n {
  position: absolute; top: 6px; right: 8px; font-size: 11px; font-weight: 700;
  background: var(--lime); color: #08100A; border-radius: 999px; padding: 2px 7px;
}
.var-ac {
  position: fixed; z-index: 9999; background: #12141c; border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 6px; display: grid; gap: 4px; min-width: 160px;
}
.var-ac button { text-align: left; background: transparent; border: 0; color: var(--text); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.var-ac button:hover { background: rgba(255,255,255,.06); }
.ctor-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.ctor-chips .hint { margin: 0; width: 100%; }
.props-actions { display: grid; gap: 8px; padding: 0 0 12px; }
.props-actions .btn-block { width: 100%; }
.media-grid { display: grid; gap: 12px; margin-top: 12px; }
.media-card { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 6px; }
.log-tail { max-height: 320px; overflow: auto; background: #0a0b10; padding: 12px; border-radius: 12px; font-size: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; }
.wiz-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.15); display: block; }
.wiz-dots i.is-on { background: var(--lime); }

/* Bot wizard — premium */
.wiz-modal { align-items: center; }
.wiz-card {
  width: min(560px, 94vw) !important;
  max-width: 560px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  max-height: min(90dvh, 920px);
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(24,28,40,.98), rgba(12,14,20,.98)),
    #0e1118;
  border: 1px solid rgba(200,255,61,.18);
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
}
.wiz-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 8px;
}
.wiz-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime);
}
.wiz-top h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -.03em;
}
.wiz-sub { margin: 0; font-size: 14px; }
.wiz-progress {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 22px 18px;
}
.wiz-progress i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: block;
  flex: 0 0 auto;
  transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.wiz-progress i.is-on { background: var(--lime); }
.wiz-progress i.is-current {
  box-shadow: 0 0 0 4px rgba(200,255,61,.18);
  transform: scale(1.15);
}
.wiz-progress > span {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.08);
  margin: 0 6px;
}
.wiz-panel {
  padding: 0 22px 0;
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  animation: wiz-in .35s cubic-bezier(.16,1,.3,1);
}
.wiz-panel.is-active {
  display: flex;
}
.wiz-panel > .btn {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-bottom: 4px;
}
@keyframes wiz-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.wiz-goals {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.wiz-goal {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.22);
  cursor: pointer;
  position: relative;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wiz-goal:hover {
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}
.wiz-goal.is-on {
  border-color: rgba(200,255,61,.55);
  background: rgba(200,255,61,.08);
  box-shadow: 0 0 0 1px rgba(200,255,61,.2), 0 12px 28px rgba(0,0,0,.25);
}
.wiz-goal input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-goal-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--lime);
  background: rgba(200,255,61,.1);
  border: 1px solid rgba(200,255,61,.2);
}
.wiz-goal-body { display: grid; gap: 2px; min-width: 0; }
.wiz-goal-body strong { font-size: 15px; }
.wiz-goal-body span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.wiz-list {
  margin-bottom: 10px;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.wiz-row {
  display: grid;
  gap: 10px;
  margin: 0;
  align-items: end;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.wiz-row-pair {
  grid-template-columns: 1fr 1fr auto;
}
.wiz-row-stack {
  grid-template-columns: 1fr;
}
.wiz-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: -2px;
}
.wiz-row-num {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  background: rgba(200,255,61,.1);
  border: 1px solid rgba(200,255,61,.22);
}
.wiz-field {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: auto;
}
.wiz-field > span { letter-spacing: .02em; }
.wiz-row input,
.wiz-row textarea,
.wiz-row select,
.wiz-field input,
.wiz-field textarea,
.wiz-field select {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(7,8,13,.85);
  color: var(--text);
  font: 500 15px/1.4 var(--font);
  pointer-events: auto;
  -webkit-user-select: text;
  user-select: text;
  position: relative;
  z-index: 2;
}
.wiz-row textarea,
.wiz-field textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
}
.wiz-row select,
.wiz-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%239aa3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}
.wiz-row input:focus,
.wiz-row textarea:focus,
.wiz-row select:focus,
.wiz-field input:focus,
.wiz-field textarea:focus,
.wiz-field select:focus {
  outline: none;
  border-color: rgba(200,255,61,.45);
  box-shadow: 0 0 0 4px rgba(200,255,61,.1);
}
.wiz-del {
  min-width: 40px;
  align-self: end;
  flex: 0 0 auto;
}
.wiz-empty, .wiz-loading {
  margin: 0;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.1);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.wiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, transparent, rgba(12,14,20,.98) 10px);
  position: relative;
  z-index: 6;
}
.wiz-actions .btn {
  min-height: 48px;
  touch-action: manipulation;
}
.wiz-actions .btn-primary {
  flex: 1 1 auto;
  min-width: 44%;
}
.wiz-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.wiz-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.wiz-form .wiz-actions {
  position: sticky;
  bottom: 0;
  margin-top: auto;
}
.wiz-form label { margin-bottom: 12px; }
@media (max-width: 640px) {
  .wiz-modal { align-items: stretch; place-items: stretch; padding: 0; }
  .wiz-card {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0 !important;
    overflow: hidden;
  }
  .wiz-row-pair { grid-template-columns: 1fr; }
  .wiz-row-pair .wiz-del { justify-self: end; }
  .wiz-goal { grid-template-columns: 40px 1fr; padding: 12px; }
  .wiz-top { padding: 18px 16px 6px; padding-top: max(18px, env(safe-area-inset-top)); }
  .wiz-panel { padding: 0 16px 0; }
  .wiz-progress { padding: 6px 16px 14px; }
  .wiz-actions {
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

.crm-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.crm-head h2 { margin: 0 0 4px; }
.crm-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.crm-col {
  background: linear-gradient(180deg, rgba(200,255,61,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  min-height: 180px;
}
.crm-col header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.crm-col header b {
  min-width: 22px; text-align: center; border-radius: 99px;
  background: rgba(200,255,61,.14); color: var(--lime); font-size: 12px; padding: 2px 6px;
}
.crm-card {
  background: rgba(8,10,16,.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px 10px 8px;
  margin-bottom: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.crm-card strong { display: block; font-size: 14px; }
.crm-card p { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.crm-card-ops { display: flex; gap: 6px; align-items: center; }
.crm-card-ops select { flex: 1; min-width: 0; }
.crm-ext { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.crm-ext summary { cursor: pointer; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.utm-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.utm-chip {
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(61,255,208,.08); border: 1px solid rgba(61,255,208,.28);
  color: var(--text); font-size: 13px;
}
.utm-chip b { color: var(--accent2); font-weight: 700; }

.panel, .modal-card, .scn-row, .action-list a {
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.page-head h1, .topbar-title {
  letter-spacing: -.04em;
}
.btn, .side-nav a, .panel, .crm-card {
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.sidebar {
  background:
    radial-gradient(420px 180px at 0 0, rgba(200,255,61,.08), transparent 60%),
    linear-gradient(180deg, rgba(12,14,22,.96), rgba(8,10,16,.92));
}

/* AI выключен в админке — прячем остаточные элементы */
body[data-ai="0"] #btn-ai,
body[data-ai="0"] #scn-ai,
body[data-ai="0"] #modal-ai,
body[data-ai="0"] .ai-only {
  display: none !important;
}

.mini-builder {
  display: grid;
  grid-template-columns: 260px minmax(280px, 1fr) 320px;
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - 128px);
}
.mini-col {
  background: linear-gradient(180deg, rgba(200,255,61,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.mini-col label { display: grid; gap: 6px; margin: 10px 0; font-size: 13px; color: var(--muted); }
.mini-col input, .mini-col textarea, .mini-col select {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  background: #0a0c12; color: var(--text); padding: 10px 12px; font: inherit;
}
.mini-screens { display: grid; gap: 8px; margin-top: 10px; }
#mini-screens { display: grid; gap: 8px; margin: 12px 0; }
.mini-scr {
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 8px;
  text-align: left; border-radius: 14px; padding: 10px 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--text); font: inherit;
}
.mini-scr small { color: var(--muted); font-size: 11px; }
.mini-scr.is-on { border-color: rgba(200,255,61,.55); background: rgba(200,255,61,.08); }
.mini-add-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.mini-phone-wrap { display: flex; justify-content: center; padding: 8px 0 24px; }
.mini-phone {
  width: 360px; max-width: 100%;
  background: #05060a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 36px;
  padding: 10px 10px 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 0 0 1px rgba(200,255,61,.08);
}
.mini-phone-bar {
  width: 118px; height: 8px; border-radius: 99px;
  background: #1b1e28; margin: 8px auto 12px;
}
.mini-phone-screen {
  min-height: 560px; max-height: calc(100vh - 180px); overflow: auto;
  border-radius: 24px; background: #07080d;
}
.mini-props .form { display: grid; gap: 8px; }
@media (max-width: 1180px) {
  .mini-builder { grid-template-columns: 1fr; }
  .mini-phone { width: min(360px, 100%); }
}

.pay-result-body { min-height: 100vh; }
.pay-result {
  position: relative; z-index: 1;
  min-height: 100vh; display: grid; place-content: center; justify-items: center;
  gap: 22px; padding: 32px 18px 48px;
}
.pay-result-brand { color: var(--text); }
.pay-result-card {
  width: min(440px, 100%);
  display: grid; justify-items: center; text-align: center; gap: 10px;
  padding: 36px 28px 28px;
  border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,20,30,.92), rgba(10,12,18,.88));
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.pay-result-card h1 { margin: 8px 0 0; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.04em; }
.pay-result-lead { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; max-width: 34ch; }
.pay-result-lead strong { color: var(--text); }
.pay-result-bal { margin: 4px 0 0; color: var(--lime); font-weight: 700; }
.pay-result-app { margin: 4px 0 0; }
.pay-result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.pay-result-mark {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
}
.pay-result-svg { width: 72px; height: 72px; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.pay-result-ok .pay-result-mark {
  background: rgba(200,255,61,.12);
  box-shadow: 0 0 0 8px rgba(200,255,61,.06), 0 18px 40px rgba(200,255,61,.12);
}
.pay-result-ok .pay-result-svg { stroke: var(--lime); }
.pay-result-ok .pay-result-svg circle { stroke-dasharray: 210; stroke-dashoffset: 210; animation: pay-draw .55s ease forwards; }
.pay-result-ok .pay-result-svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: pay-draw .45s ease .35s forwards; }
.pay-result-fail .pay-result-mark {
  background: rgba(255,93,122,.12);
  box-shadow: 0 0 0 8px rgba(255,93,122,.06);
}
.pay-result-fail .pay-result-svg { stroke: var(--danger); }
.pay-result-wait .pay-result-mark,
.pay-result-wait_long .pay-result-mark {
  background: rgba(90,169,255,.12);
}
.pay-result-wait .pay-result-svg,
.pay-result-wait_long .pay-result-svg { stroke: var(--blue); }
.pay-result-track { opacity: .22; }
.pay-result-spin { transform-origin: 36px 36px; animation: pay-spin 1s linear infinite; }
@keyframes pay-draw { to { stroke-dashoffset: 0; } }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) {
  .pay-result-card { padding: 28px 18px 22px; }
  .pay-result-actions .btn { width: 100%; }
}

body.is-phone-web .qr-login { display: none !important; }
body.is-phone-web.auth-body .auth-side { display: none; }
body.is-phone-web.auth-body .auth-wrap {
  grid-template-columns: 1fr;
  min-height: 100dvh;
}
body.is-phone-web.auth-body .auth-card {
  border-left: 0;
  min-height: 100dvh;
  padding: 28px 18px 40px;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

