/* ================================================================ 
   BotPro — Премиальная облачная дизайн-система (Selectel Cloud Style)
   ================================================================ */
:root {
  /* Светлая палитра в стиле Selectel: белый фон, тёмно-синий текст, красный акцент */
  --bg: #ffffff;
  --bg2: #f5f7fa;
  --surface: #ffffff;
  --surface2: #f5f7fa;
  --surface3: #edf0f4;
  --surface4: #e1e6ec;
  --line: #e4e8ee;
  --line2: #cfd6df;
  --line-hover: #9aa6b5;
  --text: #1b2433;
  --text-bright: #0e1726;
  --muted: #5d6879;
  --dim: #8c95a4;
  --navy: #13243a;
  --navy2: #1f3550;
  --brand-red: #ee2f4d;
  --brand-red-hover: #d8213e;
  --brand-red-active: #c21a35;
  --brand-red-glow: rgba(238, 47, 77, 0.25);
  --brand-red-subtle: rgba(238, 47, 77, 0.08);
  --brand-red-border: rgba(238, 47, 77, 0.3);
  --grad-brand: linear-gradient(135deg, #ee2f4d 0%, #f0544f 100%);
  --grad-brand-hover: linear-gradient(135deg, #f0435f 0%, #f26660 100%);
  --acc: #ee2f4d;
  --acc-hover: #d8213e;
  --acc2: #2f6fed;
  --accInk: #ffffff;
  --grad: linear-gradient(135deg, #ee2f4d 0%, #f0544f 100%);
  --grad-glow: linear-gradient(135deg, rgba(238, 47, 77, 0.10) 0%, rgba(240, 84, 79, 0.06) 100%);
  --grad-card: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  --grad-dark: linear-gradient(120deg, #13243a 0%, #2a2f6b 55%, #6b5bd6 100%);
  --bad: #e5243b;
  --bad-bg: rgba(229, 36, 59, 0.08);
  --warn: #d98a00;
  --warn-bg: rgba(217, 138, 0, 0.10);
  --ok: #15a35a;
  --ok-bg: rgba(21, 163, 90, 0.10);
  --hp: #e5243b;
  --food: #f08a24;
  --xp: #3cb043;
  --r: 14px;
  --r2: 10px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(16, 30, 54, 0.08);
  --shadow: 0 6px 24px -8px rgba(16, 30, 54, 0.14), 0 0 0 1px rgba(16, 30, 54, 0.04);
  --shadow-lg: 0 24px 60px -16px rgba(16, 30, 54, 0.28);
  --glow-acc: 0 0 0 3px rgba(238, 47, 77, 0.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Monaco, Consolas, monospace;
  color-scheme: light;
}

/* ---------------------------------------------------------------- Базовый сброс и сетка фона */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--acc);
  text-decoration: none;
  transition: all 0.15s ease;
}
a:hover {
  color: var(--acc-hover);
}

img, svg {
  display: block;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 850;
}
h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
}
h3 {
  font-size: 18px;
  font-weight: 750;
}
h4 {
  font-size: 15.5px;
  font-weight: 650;
}

p {
  margin: 0;
  line-height: 1.6;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13.5px; line-height: 1.5; }
.tiny { font-size: 12px; line-height: 1.4; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.between { justify-content: space-between; }
.hide { display: none !important; }

.grad-text {
  background: linear-gradient(135deg, #ffffff 10%, #ff8093 50%, #ff334b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---------------------------------------------------------------- Кнопки (Selectel Cloud Buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r2);
  border: 1px solid var(--line2);
  background: var(--surface2);
  color: var(--text-bright);
  font: 650 14px var(--font);
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.15s ease,
              border-color 0.15s ease,
              box-shadow 0.15s ease,
              filter 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  position: relative;
}

.btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--surface3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.5);
}

.btn.primary {
  background: var(--grad-brand);
  border: 0;
  color: #ffffff;
  font-weight: 750;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 18px -2px rgba(255, 51, 75, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.primary:hover {
  background: var(--grad-brand-hover);
  color: #ffffff;
  box-shadow: 0 6px 24px -2px rgba(255, 51, 75, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.btn.ghost:hover {
  color: var(--text-bright);
  background: var(--surface2);
  border-color: var(--line);
}

.btn.danger {
  color: #ff6b7e;
  border-color: rgba(255, 59, 83, 0.35);
  background: rgba(255, 59, 83, 0.08);
}
.btn.danger:hover {
  border-color: rgba(255, 59, 83, 0.6);
  background: rgba(255, 59, 83, 0.18);
  color: #ff8595;
}
.btn.danger.solid {
  background: var(--bad);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 18px -4px rgba(255, 59, 83, 0.55);
}
.btn.danger.solid:hover {
  filter: brightness(1.1);
}

.btn.on {
  background: rgba(21, 163, 90, 0.18);
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 16px -4px rgba(21, 163, 90, 0.4);
}

.btn.lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15.5px;
  border-radius: 13px;
}

.btn.sm {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
  border-radius: 9px;
}

.btn.icon {
  width: 44px;
  padding: 0;
}
.btn.icon.sm {
  width: 34px;
  padding: 0;
}

.btn.block {
  width: 100%;
}

/* ---------------------------------------------------------------- Поля ввода */
label.lbl {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field {
  margin-bottom: 16px;
}

.hint {
  font-size: 12.5px;
  color: var(--dim);
  margin-top: 6px;
  line-height: 1.45;
}

input, select, textarea {
  width: 100%;
  min-height: 46px;
  background: var(--bg2);
  color: var(--text-bright);
  border: 1px solid var(--line2);
  border-radius: var(--r2);
  padding: 10px 14px;
  font: 14.5px var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.55;
  font-family: var(--mono);
  font-size: 13.5px;
}

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(21, 163, 90, 0.22), inset 0 1px 3px rgba(0, 0, 0, 0.3);
  background: #0d1526;
}

input::placeholder, textarea::placeholder {
  color: var(--dim);
}

input[type=checkbox], input[type=radio] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  accent-color: var(--acc);
  flex: none;
  box-shadow: none;
  cursor: pointer;
}

.input-wrap {
  position: relative;
}
.input-wrap .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 13px;
  pointer-events: none;
  font-weight: 600;
}

/* ---------------------------------------------------------------- Переключатель */
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.switch .tg {
  flex: none;
  width: 44px;
  height: 24px;
  border-radius: 99px;
  background: var(--surface3);
  border: 1px solid var(--line2);
  position: relative;
  transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.switch .tg::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.switch input:checked + .tg {
  background: rgba(21, 163, 90, 0.25);
  border-color: var(--acc);
}
.switch input:checked + .tg::after {
  transform: translateX(20px);
  background: var(--acc);
  box-shadow: 0 0 10px rgba(21, 163, 90, 0.7);
}
.switch input:focus-visible + .tg {
  box-shadow: 0 0 0 3px rgba(21, 163, 90, 0.35);
}
.switch .t {
  font-size: 14px;
  color: var(--text);
  font-weight: 550;
}
.switch .t small {
  display: block;
  color: var(--dim);
  font-size: 12px;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- Карточки */
.card {
  background: var(--surface);
  background-image: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card.pad-lg {
  padding: 30px;
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-h h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------- Бейджи и статусы */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface3);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.on {
  background: rgba(21, 163, 90, 0.14);
  color: var(--ok);
  border-color: rgba(21, 163, 90, 0.35);
}
.pill.on::before {
  box-shadow: 0 0 0 3px rgba(21, 163, 90, 0.28);
  animation: pulse 2s infinite;
}
.pill.wait {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warn);
  border-color: rgba(245, 158, 11, 0.35);
}
.pill.wait::before {
  animation: pulseWait 1.5s infinite;
}
.pill.off {
  color: var(--dim);
}
.pill.nodot::before {
  display: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 163, 90, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(21, 163, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 163, 90, 0); }
}

@keyframes pulseWait {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: all 0.15s ease;
}
button.chip {
  cursor: pointer;
  font-family: var(--font);
}
button.chip:hover {
  color: var(--text-bright);
  border-color: var(--line2);
  background: var(--surface3);
  transform: translateY(-1px);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag.acc {
  background: var(--grad);
  color: var(--accInk);
  box-shadow: 0 2px 10px rgba(21, 163, 90, 0.4);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.grid {
  display: grid;
  gap: 18px;
}
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* ---------------------------------------------------------------- Аватар */
.avatar {
  --h: 160;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font: 850 17px var(--font);
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 50%), hsl(calc(var(--h) + 40) 75% 38%));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.45);
  image-rendering: pixelated;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.avatar.lg {
  width: 60px;
  height: 60px;
  font-size: 21px;
  border-radius: 15px;
}

/* ---------------------------------------------------------------- Пустые состояния и скелетон */
.empty {
  text-align: center;
  padding: 50px 24px;
}
.empty .ico {
  font-size: 50px;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.empty h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: sk 1.4s ease infinite;
  border-radius: var(--r);
  min-height: 120px;
  border: 1px solid var(--line);
}
@keyframes sk {
  to { background-position: -200% 0; }
}

/* ---------------------------------------------------------------- Уведомления и алерты */
.alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid;
  margin-bottom: 16px;
  font-size: 14px;
  backdrop-filter: blur(8px);
}
.alert.warn {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 4px 20px -6px rgba(245, 158, 11, 0.2);
}
.alert.info {
  border-color: rgba(47, 111, 237, 0.4);
  background: rgba(47, 111, 237, 0.08);
  box-shadow: 0 4px 20px -6px rgba(47, 111, 237, 0.2);
}
.alert .ai {
  font-size: 22px;
  line-height: 1;
}

.err {
  color: var(--bad);
  font-size: 13px;
  min-height: 18px;
  margin-top: 6px;
  font-weight: 550;
}

.code-box {
  font: 750 24px var(--mono);
  letter-spacing: 0.16em;
  background: var(--bg2);
  border: 1px dashed var(--acc);
  border-radius: 12px;
  padding: 9px 18px;
  display: inline-block;
  color: var(--acc);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 16px rgba(21, 163, 90, 0.16);
}

/* ---------------------------------------------------------------- Вкладки (Tabs) */
.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs button {
  flex: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: 650 14px var(--font);
  cursor: pointer;
  padding: 0 16px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.tabs button:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.04);
}
.tabs button.on {
  background: var(--surface3);
  color: var(--text-bright);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.list-row:last-child {
  border-bottom: 0;
}

details.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
details.faq:hover {
  border-color: var(--line2);
}
details.faq[open] {
  border-color: var(--line2);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: "+";
  color: var(--acc);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
details.faq[open] summary::after {
  transform: rotate(45deg);
  color: var(--text-bright);
}
details.faq .a {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- Публичная шапка (Selectel Style) */
.pub-top {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 10, 18, 0.86);
  border-bottom: 1px solid var(--line);
}
.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
}
.pub-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 850 21px var(--font);
  color: var(--text-bright);
  letter-spacing: -0.035em;
  transition: transform 0.15s ease;
}
.logo:hover {
  transform: scale(1.02);
}
.logo svg, .logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(255, 51, 75, 0.35);
}
.logo-accent {
  color: var(--brand-red);
}
.logo-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 6px;
  background: rgba(255, 51, 75, 0.12);
  color: var(--brand-red);
  border: 1px solid rgba(255, 51, 75, 0.28);
  text-transform: uppercase;
  margin-left: 2px;
  line-height: 1.4;
}

.pub-nav {
  display: flex;
  gap: 6px;
  flex: 1;
}
.pub-nav a {
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.15s ease;
}
.pub-nav a:hover {
  color: var(--text-bright);
  background: var(--surface);
}

@media (max-width: 768px) {
  .pub-nav { display: none; }
}

/* ---------------------------------------------------------------- Hero в стиле Selectel */
.hero {
  position: relative;
  padding: 76px 0 54px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-top: 38px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid rgba(255, 51, 75, 0.28);
  background: rgba(255, 51, 75, 0.08);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  color: var(--text-bright);
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.eyebrow b {
  color: var(--brand-red);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(255, 51, 75, 0.35);
  animation: pulse 2s infinite;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 850;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: clamp(16px, 2.2vw, 18.5px);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* Перки в герое (Selectel style) */
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.perk-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-bright);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Статистика (Selectel SLA/Metrics) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line2);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 48px;
  box-shadow: var(--shadow);
}
.stats-strip > div {
  background: var(--surface);
  padding: 18px 20px;
  transition: background 0.15s ease;
}
.stats-strip > div:hover {
  background: var(--surface2);
}
.stats-strip b {
  display: block;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}
.stats-strip span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 650;
  margin-top: 4px;
  display: block;
}

@media (max-width: 640px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Консоль-мокап (Selectel Cloud Server Preview) */
.mock {
  background: var(--surface);
  background-image: var(--grad-card);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.85),
              0 0 0 1px rgba(255, 255, 255, 0.09) inset,
              0 0 30px rgba(21, 163, 90, 0.12);
  padding: 20px;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.mock:hover {
  transform: perspective(1400px) rotateY(-1deg) rotateX(1deg);
}
@media (max-width: 960px) {
  .mock { transform: none; }
  .mock:hover { transform: none; }
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.mock-dots .d-red { background: #ff5f56; }
.mock-dots .d-yel { background: #ffbd2e; }
.mock-dots .d-gre { background: #27c93f; }
.mock-srv-title {
  font: 12.5px var(--mono);
  color: var(--dim);
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mock-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.mock-chat {
  background: #060911;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: 12.5px/1.65 var(--mono);
  color: var(--muted);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55);
}
.mock-chat .y { color: #ffd166; font-weight: 600; }
.mock-chat .g { color: var(--acc); font-weight: 600; }
.mock-chat .b { color: #7cc8ff; font-weight: 600; }

.mock-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
.mock-btns span {
  height: 36px;
  border-radius: 9px;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
}
.mock-btns span.a {
  background: rgba(21, 163, 90, 0.16);
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 12px rgba(21, 163, 90, 0.25);
}

/* ---------------------------------------------------------------- Сравнение: ПК vs BotPro Cloud */
.cmp-card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  background: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
  gap: 30px;
  align-items: start;
}
@media (max-width: 820px) {
  .cmp-card { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .cmp-sep { display: none; }
}
.cmp-sep {
  background: var(--line);
  height: 100%;
}
.cmp-col h3 {
  margin: 10px 0 16px;
  font-size: 20px;
}
.cmp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmp-badge.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border: 1px solid rgba(255, 59, 83, 0.3);
}
.cmp-badge.good {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(21, 163, 90, 0.3);
}
.cmp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.cmp-list li {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
.cmp-col.good .cmp-list li {
  color: var(--text-bright);
}

/* ---------------------------------------------------------------- Секции каталога (Selectel Services) */
.section {
  padding: 72px 0;
}
.section-h {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}
.sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.section-h h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  font-weight: 850;
}
.section-h p {
  color: var(--muted);
  font-size: 16px;
}

.feat {
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.feat:hover {
  border-color: var(--line2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(21, 163, 90, 0.1);
}
.fi-wrap {
  margin-bottom: 16px;
}
.feat .fi {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: var(--surface2);
  border: 1px solid var(--line2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.feat h3 {
  margin-bottom: 8px;
  font-size: 18px;
}
.feat p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Шаги */
.steps {
  counter-reset: s;
}
.step {
  position: relative;
  padding: 26px 24px 26px 74px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}
.step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: var(--accInk);
  font-weight: 850;
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px -2px rgba(21, 163, 90, 0.5);
}
.step h3 {
  margin-bottom: 6px;
  font-size: 17.5px;
}
.step p {
  color: var(--muted);
  font-size: 14px;
}

/* Тарифы */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.price {
  position: relative;
  padding: 26px 18px;
  text-align: center;
  cursor: default;
  transition: all 0.2s ease;
  background: var(--surface);
  border: 1px solid var(--line);
}
.price:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}
.price .d {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price .p {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
  color: var(--text-bright);
}
.price .pd {
  font-size: 13px;
  color: var(--muted);
}
.price.best {
  border-color: var(--brand-red);
  background: linear-gradient(180deg, rgba(255, 51, 75, 0.12), var(--surface) 65%);
  box-shadow: 0 0 28px -4px rgba(255, 51, 75, 0.35);
}
.price .tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.tag.acc {
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(255, 51, 75, 0.4);
}
.price.sel {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px var(--brand-red) inset, 0 0 20px rgba(255, 51, 75, 0.3);
  background: rgba(255, 51, 75, 0.08);
}
button.price {
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  width: 100%;
}
.save {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ok);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cta-band {
  border-radius: 24px;
  padding: 50px 32px;
  text-align: center;
  background: radial-gradient(circle at 15% 0, rgba(255, 51, 75, 0.18), transparent 55%),
              radial-gradient(circle at 85% 100%, rgba(47, 111, 237, 0.14), transparent 55%),
              var(--surface);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------- Подвал (Selectel Enterprise Footer) */
.foot {
  border-top: 1px solid var(--line);
  background: #050811;
  padding: 56px 0 0;
  color: var(--dim);
  font-size: 13.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 38px;
  padding-bottom: 48px;
}
.foot-col h4 {
  color: var(--text-bright);
  font-size: 14.5px;
  font-weight: 750;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.foot-brand .logo {
  margin-bottom: 16px;
}
.foot-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 20px;
}
.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(21, 163, 90, 0.08);
  border: 1px solid rgba(21, 163, 90, 0.2);
  color: var(--ok);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 12px;
}
.status-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  display: inline-block;
  animation: livePulse 2s infinite ease-in-out;
}
.foot-meta-tech {
  color: var(--dim);
  font-size: 11.5px;
  font-family: var(--mono);
}
.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.foot-links li a {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}
.foot-links li a:hover {
  color: var(--text-bright);
  transform: translateX(2px);
}
.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  background: rgba(0, 0, 0, 0.25);
}
.foot-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dim);
  font-size: 12px;
  max-width: 720px;
}
.foot-disclaimer {
  color: rgba(148, 163, 184, 0.6);
  font-size: 11.5px;
}
.foot-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge-tech {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 750;
  font-family: var(--mono);
  background: var(--surface2);
  border: 1px solid var(--line2);
  color: var(--muted);
}

@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .foot-bottom .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ---------------------------------------------------------------- Авторизация */
.auth {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 36px 18px;
}
.auth-card {
  width: 100%;
  max-width: 450px;
  padding: 34px;
  background: var(--surface);
  background-image: var(--grad-card);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  border-radius: 20px;
}
.auth-card h1 {
  margin-bottom: 8px;
  font-size: 26px;
}
.pw-wrap {
  position: relative;
}
.pw-wrap .btn {
  position: absolute;
  right: 5px;
  top: 5px;
  min-height: 36px;
}

/* ---------------------------------------------------------------- Панель управления (App Shell) */
.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  z-index: 25;
}

.side .logo {
  padding: 4px 10px 24px;
}

.side nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.15s ease;
}
.side nav a .ni {
  width: 22px;
  text-align: center;
  font-size: 18px;
}
.side nav a:hover {
  background: var(--surface);
  color: var(--text-bright);
}
.side nav a.on {
  background: var(--surface2);
  color: var(--text-bright);
  box-shadow: inset 3px 0 0 var(--acc);
}

.side-user {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.bal {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.main {
  min-width: 0;
  padding: 32px clamp(18px, 3.5vw, 44px) 70px;
}

.page-h {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.page-h h1 {
  font-size: clamp(24px, 4vw, 32px);
}
.page-h p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 15px;
}

.mtop {
  display: none;
}
.bnav {
  display: none;
}
.scrim {
  display: none;
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 86vw);
    height: 100vh;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.7);
    background: #0c121e;
  }
  .side.open {
    transform: none;
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(4px);
    animation: fade 0.18s ease;
  }
  .mtop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 30;
    height: 62px;
    padding: 0 18px;
    background: rgba(7, 10, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .mtop .row { gap: 10px; }
  .main {
    padding: 20px 16px calc(48px + env(safe-area-inset-bottom));
  }
  .page-h { margin-bottom: 18px; }
  .card { padding: 18px; }
}

/* ---------------------------------------------------------------- Секция Приветствия (Dashboard Hello) */
.hello {
  position: relative;
  margin: -32px calc(-1 * clamp(18px, 3.5vw, 44px)) 12px;
  padding: 36px clamp(18px, 3.5vw, 44px) 50px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hello::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.8;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'%3E%3Cpath d='M0 110 C200 40 330 40 470 95 S760 150 900 70 S1100 20 1200 60 V160 H0Z' fill='%23121a2c'/%3E%3Cpath d='M0 135 C180 90 380 100 560 125 S900 150 1200 105 V160 H0Z' fill='%230c121e'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hello > * {
  position: relative;
}
.hello .hi {
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}
.hello h1 {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 850;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .hello {
    margin: -20px -16px 10px;
    padding: 24px 18px 42px;
  }
}

.mini {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.mini .chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  height: 32px;
  font-size: 13.5px;
}
.mini .chip b {
  color: var(--text-bright);
}

.sec-t {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
}

/* Поиск */
.search {
  position: relative;
  margin: 14px 0;
}
.search input {
  padding-left: 42px;
  background: var(--surface);
  border-color: var(--line);
  min-height: 44px;
  font-size: 14.5px;
  border-radius: 12px;
}
.search::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -8px;
  border: 2px solid var(--dim);
  border-radius: 50%;
  pointer-events: none;
}
.search::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 50%;
  width: 6px;
  height: 2px;
  margin-top: 6px;
  background: var(--dim);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Папки и список серверов */
.folder {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg2);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
.folder:hover {
  border-color: var(--line2);
}
.folder-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14.5px;
  user-select: none;
  width: 100%;
  background: none;
  border: 0;
  color: var(--text-bright);
  font-family: var(--font);
  text-align: left;
}
.folder-h .car {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--muted);
  width: 14px;
}
.folder.closed .car {
  transform: rotate(-90deg);
}
.folder.closed .folder-b {
  display: none;
}
.folder-h .cnt {
  font-size: 11px;
  background: var(--surface3);
  color: var(--muted);
  border-radius: 99px;
  padding: 2px 9px;
  font-weight: 800;
}
.folder-b {
  border-top: 1px solid var(--line);
  padding: 6px;
}
.folder-empty {
  padding: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
}

/* Строка сервера/бота */
.srv {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  transition: background 0.15s ease, transform 0.12s ease;
  border: 1px solid transparent;
}
.srv:hover {
  background: var(--surface);
  border-color: var(--line);
  transform: translateX(2px);
}
.srv .si {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.srv .sn {
  font-weight: 750;
  font-size: 15px;
  color: var(--text-bright);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.srv .sa {
  font: 13px var(--mono);
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.srv .sx {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.srv .sx.low {
  color: var(--warn);
  font-weight: 650;
}
@media (max-width: 580px) {
  .srv .sx { display: none; }
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bad);
  box-shadow: 0 0 0 3px rgba(255, 59, 83, 0.15);
}
.dot.on {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(21, 163, 90, 0.25);
}
.dot.wait {
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.lay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.lay-row:last-child {
  border-bottom: 0;
}
.lay-row select, .lay-row input {
  min-height: 40px;
  font-size: 14px;
}

/* ---------------------------------------------------------------- Страница бота */
.bot-head {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.bot-head .acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .bot-head .acts { width: 100%; }
  .bot-head .acts .btn { flex: 1; }
  .bot-head h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
}

.seg {
  display: none;
  margin-bottom: 14px;
}

.bot-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas: "ctl chat" "inv chat";
  align-items: start;
}
.pane[data-pane=ctl] { grid-area: ctl; }
.pane[data-pane=inv] { grid-area: inv; }
.pane[data-pane=chat] {
  grid-area: chat;
  position: sticky;
  top: 24px;
}
.pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (max-width: 1100px) {
  .seg { display: flex; position: sticky; top: 72px; z-index: 20; }
  .bot-layout { display: block; }
  .pane { display: none; }
  .pane.active { display: flex; }
  .pane[data-pane=chat] { position: static; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .seg { top: 16px; }
}

/* Полосы состояния (Здоровье / Голод / Опыт) */
.bars {
  display: grid;
  gap: 12px;
}
.bar {
  display: grid;
  grid-template-columns: 105px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.bar .bl {
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}
.bar .bt {
  height: 12px;
  border-radius: 99px;
  background: var(--surface3);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45);
  padding: 1px;
}
.bar .bt i {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
}
.bar .bv {
  text-align: right;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-bright);
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.statgrid > div {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}
.statgrid .k {
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
}
.statgrid .v {
  font-weight: 800;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-bright);
  margin-top: 2px;
}

.ctl-group {
  margin-bottom: 18px;
}
.ctl-group:last-child {
  margin-bottom: 0;
}
.ctl-group .gl {
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 750;
  margin-bottom: 10px;
}
.ctl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ctl-grid .btn {
  min-height: 48px;
  font-size: 14.5px;
}

/* Геймпад / Управление движением */
.move {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-around;
  gap: 16px 20px;
  align-items: center;
}
.move .dpad { order: 1; }
.move .look { order: 2; }
.move .mid {
  order: 3;
  grid-column: 1 / -1;
  flex-direction: row !important;
  display: flex;
  gap: 10px;
}
.move .mid .btn {
  flex: 1;
}

.dpad {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  grid-template-rows: repeat(3, 54px);
  gap: 6px;
}
.dpad .btn {
  min-height: 0;
  height: 100%;
  padding: 0;
  font-size: 18px;
  font-weight: 800;
  touch-action: none;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.dpad .btn.pressed {
  background: rgba(21, 163, 90, 0.22);
  border-color: var(--acc);
  color: var(--acc);
  box-shadow: 0 0 16px rgba(21, 163, 90, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  transform: translateY(1px);
}

.look {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 46px);
  gap: 6px;
}
.look .btn {
  min-height: 0;
  height: 100%;
  padding: 0;
  border-radius: 11px;
}

@media (max-width: 440px) {
  .dpad { grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); }
  .look { grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(3, 40px); }
  .move { gap: 10px; }
}

/* ---------------------------------------------------------------- Инвентарь Minecraft */
.inv-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inv {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
}
.inv.hot {
  padding-top: 12px;
  border-top: 1px dashed var(--line2);
}
.armor {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  max-width: calc(5 / 9 * 100%);
}

.slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #090e1a;
  border: 1px solid #1c273c;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: clamp(16px, 3.8vw, 24px);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.12s ease, transform 0.1s ease, box-shadow 0.12s ease;
}
.slot:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.slot.full {
  background: linear-gradient(180deg, #1b263b 0%, #0f1624 100%);
}
.slot .ab {
  font: 800 clamp(8px, 1.8vw, 10px) var(--font);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.slot .n {
  position: absolute;
  right: 3px;
  bottom: 1px;
  font: 850 11.5px var(--font);
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  pointer-events: none;
}
.slot .en {
  position: absolute;
  inset: 0;
  border-radius: 7px;
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.65);
  pointer-events: none;
  animation: enchGlow 2.5s infinite alternate;
}
@keyframes enchGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.slot.sel {
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc), 0 0 14px rgba(21, 163, 90, 0.5);
  background: rgba(21, 163, 90, 0.1);
}
.slot.held {
  border-color: rgba(255, 255, 255, 0.35);
}
.slot.held::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid #f1f5f9;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}
.slot.ph {
  opacity: 0.3;
}

.slot-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 54px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}
.slot-info .nm {
  font-weight: 750;
  color: var(--text-bright);
}
.slot-info .en-l {
  color: #c084fc;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- Чат сервера и кастомные команды */
.chat-card {
  display: flex;
  flex-direction: column;
  height: min(670px, calc(100vh - 170px));
}
@media (max-width: 1100px) {
  .chat-card {
    height: calc(100vh - 240px);
    min-height: 400px;
  }
}

.chat {
  flex: 1;
  overflow-y: auto;
  background: #050810;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: 13.5px/1.6 var(--mono);
  word-break: break-word;
  overscroll-behavior: contain;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
}
.chat > div {
  padding: 2px 0;
}
.chat .sys {
  color: var(--acc);
  font-weight: 650;
}
.chat .sys.warn, .chat .warn {
  color: var(--warn);
}

.chat-in {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.chat-in input {
  font-family: var(--mono);
  font-size: 14px;
}

/* Быстрые команды и кастомные кнопки */
.quick-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 8px;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.quick::-webkit-scrollbar {
  display: none;
}

.chip-custom-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid rgba(255, 51, 75, 0.35);
  border-radius: 9px;
  overflow: hidden;
}
.chip-custom-wrap .chip.chip-custom {
  background: transparent;
  border: 0;
  color: var(--acc);
  font-weight: 650;
  padding-right: 6px;
}
.chip-del-btn {
  background: transparent;
  border: 0;
  color: var(--dim);
  padding: 0 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 32px;
  transition: color 0.15s ease;
}
.chip-del-btn:hover {
  color: var(--bad);
}

.newmsg {
  position: absolute;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.score {
  background: rgba(5, 8, 15, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font: 13px/1.65 var(--mono);
  display: inline-block;
  min-width: 260px;
  box-shadow: var(--shadow);
}
.score .st {
  text-align: center;
  font-weight: 750;
  margin-bottom: 6px;
  color: #ffd166;
}

.timer {
  border: 1px solid var(--line);
  background: var(--bg2);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease;
}
.timer.on {
  border-color: rgba(21, 163, 90, 0.45);
  box-shadow: 0 0 16px rgba(21, 163, 90, 0.1);
}

.save-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  z-index: 5;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(12, 18, 30, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line2);
  box-shadow: var(--shadow);
}

.set-sec {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.set-sec:first-child {
  padding-top: 4px;
}
.set-sec:last-of-type {
  border-bottom: 0;
}
.set-sec h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.set-sec > .muted {
  font-size: 13.5px;
  margin-bottom: 12px;
}

pre.log {
  margin: 0;
  height: 380px;
  overflow: auto;
  background: #050810;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font: 13px/1.6 var(--mono);
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* ---------------------------------------------------------------- Оплата и Баланс */
.wallet {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 100% 0, rgba(47, 111, 237, 0.22), transparent 55%),
              radial-gradient(circle at 0 100%, rgba(21, 163, 90, 0.2), transparent 55%),
              var(--surface);
  border-color: var(--line2);
  box-shadow: var(--shadow-lg);
}
.wallet .big {
  font-size: clamp(38px, 6vw, 48px);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}
.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.amounts .btn {
  min-height: 44px;
  font-weight: 750;
}

.hist-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.hist-row:last-child {
  border-bottom: 0;
}
.hist-row .hi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 19px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.hist-row .amt {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 15px;
}
.amt.pos {
  color: var(--ok);
}

/* ---------------------------------------------------------------- Модальные окна */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 7, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fade 0.18s ease;
}
.modal {
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  background-image: var(--grad-card);
  border: 1px solid var(--line2);
  border-radius: 20px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
  animation: pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.sm {
  max-width: 440px;
}
.modal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 10px;
}
.modal-b {
  padding: 10px 24px 24px;
  overflow-y: auto;
}
.modal-f {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  background: var(--bg2);
  border-radius: 0 0 20px 20px;
}

@media (max-width: 600px) {
  .modal-bg {
    place-items: end stretch;
    padding: 0;
  }
  .modal {
    max-width: none;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
    animation: up 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-f {
    border-radius: 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.opt {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line2);
  border-radius: 13px;
  cursor: pointer;
  background: var(--bg2);
  margin-bottom: 10px;
  transition: all 0.15s ease;
}
.opt:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--surface2);
}
.opt input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--acc);
  flex: none;
}
.opt.sel {
  border-color: var(--acc);
  background: rgba(21, 163, 90, 0.08);
  box-shadow: 0 0 16px rgba(21, 163, 90, 0.16);
}
.opt .t b {
  display: block;
  font-size: 14.5px;
  color: var(--text-bright);
}
.opt .t span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- Тосты */
#toasts {
  position: fixed;
  z-index: 70;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 440px);
}

.toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(18, 26, 44, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line2);
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  font-weight: 600;
  animation: up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.toast.ok {
  border-color: rgba(21, 163, 90, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(21, 163, 90, 0.25);
}
.toast.bad {
  border-color: rgba(255, 59, 83, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(255, 59, 83, 0.25);
}

/* ---------------------------------------------------------------- Дополнительные компоненты */
.stat-tile {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.stat-tile .k {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stat-tile .v {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-top: 4px;
  color: var(--text-bright);
}
.stat-tile .s {
  font-size: 12.5px;
  color: var(--dim);
}
.stat-tile.acc {
  background: linear-gradient(135deg, rgba(21, 163, 90, 0.12), rgba(47, 111, 237, 0.08));
  border-color: rgba(21, 163, 90, 0.35);
}

.bot-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
.bot-card:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}
.bot-card .top {
  display: flex;
  gap: 12px;
  align-items: center;
}
.bot-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bot-card .reason {
  font-size: 12.5px;
  color: var(--warn);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 7px 10px;
}
.bot-card .acts {
  display: flex;
  gap: 8px;
}
.bot-card .acts .btn.primary {
  flex: 1;
}

.expbar {
  height: 6px;
  border-radius: 99px;
  background: var(--surface3);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.expbar i {
  display: block;
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
}
.expbar.low i {
  background: var(--warn);
}

.bnav a.plus .ni {
  width: 44px;
  height: 44px;
  margin-top: -20px;
  border-radius: 14px;
  background: var(--grad);
  color: var(--accInk);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(21, 163, 90, 0.6);
}

/* ---------------------------------------------------------------- Скроллбары */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--surface3);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--surface4);
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

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

/* ================================================================
   Selectel-стиль (светлая тема): шапка, лендинг, подвал, админка
   ================================================================ */
body { font-size: 15px; }
h1, h2, h3, h4 { color: var(--text-bright); letter-spacing: -0.02em; }
::selection { background: rgba(238, 47, 77, .18); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* кнопки: как у Selectel — белая с рамкой, тёмная заливка, белая на тёмном */
.btn { background: #fff; color: var(--text-bright); border: 1px solid var(--line2); box-shadow: none; font-weight: 600; }
.btn:hover { background: #fff; border-color: var(--navy); color: var(--text-bright); box-shadow: none; transform: none; }
.btn.primary, .btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
.btn.primary:hover, .btn.dark:hover { background: var(--navy2); border-color: var(--navy2); color: #fff; box-shadow: none; }
.btn.white { background: #fff; border-color: #fff; color: var(--navy); }
.btn.white:hover { background: #eef1f6; border-color: #eef1f6; color: var(--navy); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface3); border-color: transparent; }
.btn.danger { background: #fff; color: var(--bad); border-color: rgba(229, 36, 59, .35); }
.btn.danger:hover, .btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.lg { min-height: 54px; padding: 0 28px; border-radius: 10px; font-size: 16px; }
.ul { color: var(--text-bright); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.ul:hover { color: var(--acc); }
.ul.light { color: #fff; }

/* поля */
input, select, textarea { background: #fff; color: var(--text); border-color: var(--line2); box-shadow: none; }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19, 36, 58, .1); }
input[readonly] { background: var(--surface2); }
.code-in { font: 700 18px/1 var(--mono); letter-spacing: .12em; text-align: center; color: var(--text-bright); }
.mono { font-family: var(--mono); }

/* карточки и общие блоки на светлом */
.card { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.card:hover { border-color: var(--line); }
.tabs { background: var(--surface3); border: 0; box-shadow: none; }
.tabs button.active, .tabs button.on { background: #fff; color: var(--text-bright); box-shadow: var(--shadow-sm); }
.side { background: #fff; border-right: 1px solid var(--line); }
.side nav a { color: var(--muted); }
.side nav a:hover { background: var(--surface2); color: var(--text-bright); }
.side nav a.on { background: var(--surface3); color: var(--text-bright); box-shadow: none; }
.mtop { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.main { background: var(--bg2); }
.app-shell { background: var(--bg2); }
.modal { background: #fff; border: 1px solid var(--line); }
.modal-bg { background: rgba(14, 23, 38, .45); }
.toast { background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.chip { background: #fff; border: 1px solid var(--line2); color: var(--text); }
.hello .chip, .mini .chip { background: rgba(255, 255, 255, .85); border-color: var(--line); color: var(--text); }
details.faq summary { color: var(--text-bright); font-weight: 600; }
details.faq summary:hover { color: var(--acc); }
details.faq .a { color: var(--text); opacity: .85; }
.price { background: #fff; border: 1px solid var(--line); box-shadow: none; }
.price.best { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.price .tag.acc { background: var(--brand-red); color: #fff; }
.price .save { color: var(--ok); }
.alert.warn { background: var(--warn-bg); color: #8a5a00; border: 1px solid rgba(217, 138, 0, .3); padding: 12px 14px; border-radius: 10px; }
.alert.bad { background: var(--bad-bg); color: var(--bad); padding: 12px 14px; border-radius: 10px; }

/* ---------- шапка ---------- */
.sl-top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sl-bar { display: flex; align-items: center; gap: 36px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-bright); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.logo:hover { color: var(--text-bright); }
.logo-accent { color: var(--brand-red); }
.sl-nav { display: flex; gap: 28px; }
.sl-nav a { color: var(--text); font-weight: 500; }
.sl-nav a:hover { color: var(--acc); }
.sl-auth { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.sl-burger { display: none; width: 42px; height: 42px; border-radius: 8px; border: 0; background: var(--surface3); flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.sl-burger span { display: block; width: 18px; height: 2px; background: var(--text-bright); border-radius: 2px; }
.sl-mnav { display: none; }

/* ---------- первый экран из трёх карточек ---------- */
.sl-hero { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 16px; padding-top: 28px; padding-bottom: 12px; }
.sl-card { border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: #fff; min-height: 420px; display: flex; flex-direction: column; color: var(--text); }
.sl-main h1 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; margin-bottom: 18px; }
.sl-main p { max-width: 330px; }
.sl-btns { margin-top: auto; display: grid; gap: 10px; }
.sl-promo { background: linear-gradient(160deg, #fff 0%, #f1efff 45%, #c9c3ff 100%); position: relative; overflow: hidden; }
.sl-promo:hover { color: var(--text); border-color: #c9c3ff; }
.sl-promo h3, .sl-pop h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.sl-promo p { color: var(--muted); max-width: 300px; }
.sl-promo .ul { margin-top: auto; align-self: flex-start; color: var(--text-bright); position: relative; z-index: 1; }
.sl-art { position: relative; height: 150px; margin: 20px 0; }
.sl-art div { position: absolute; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 12px 30px -10px rgba(80, 60, 200, .35); font: 600 14px var(--font); color: var(--navy); backdrop-filter: blur(6px); white-space: nowrap; }
.sl-art .a1 { left: 4%; top: 6px; transform: rotate(-4deg); }
.sl-art .a2 { right: 2%; top: 52px; transform: rotate(3deg); }
.sl-art .a3 { left: 22%; top: 100px; }
.sl-pop h3 { margin-bottom: auto; }
.sl-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sl-links a { color: var(--text-bright); font-weight: 500; border-bottom: 1px solid var(--line2); padding-bottom: 2px; }
.sl-links a:hover { color: var(--acc); border-color: var(--acc); }

/* ---------- секции ---------- */
.sl-sec { padding-top: 72px; padding-bottom: 8px; }
.sl-narrow { max-width: 880px; }
.sl-h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.03em; text-align: center; margin-bottom: 36px; }
.sl-sub { text-align: center; margin: -22px 0 32px; }
.sl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sl-step { background: var(--surface2); border-radius: 16px; padding: 28px; }
.sl-step .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 18px; }
.sl-step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.sl-banner { margin-top: 72px; border-radius: 16px; padding: 44px 40px; background: var(--grad-dark); color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.sl-banner::after { content: ""; position: absolute; right: -60px; top: -80px; width: 380px; height: 380px; border-radius: 40px; background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); transform: rotate(18deg); pointer-events: none; }
.sl-banner h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 500; margin: 12px 0 10px; }
.sl-banner p { color: rgba(255, 255, 255, .78); max-width: 560px; }
.sl-banner .btn { position: relative; z-index: 1; flex-shrink: 0; }
.sl-banner.dark2 { background: linear-gradient(120deg, #0e1726 0%, #1b2f4a 60%, #7a2340 100%); }
.sl-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: #fff; }
.sl-tag.green { background: #16a05a; } .sl-tag.violet { background: #7a55f0; } .sl-tag.blue { background: #2f86c9; }
.sl-rows { border-top: 1px solid var(--line); }
.sl-row { display: block; padding: 26px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.sl-row:hover { color: var(--text); }
.sl-row:hover h3 { color: var(--acc); }
.sl-row h3 { font-size: 24px; font-weight: 600; margin: 12px 0 8px; transition: color .15s; }
.sl-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sl-feat { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.sl-feat:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.sl-feat .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface3); font-size: 24px; margin-bottom: 16px; }
.sl-feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.sl-feat p { font-size: 14px; }

/* ---------- подвал ---------- */
.sl-foot { margin-top: 96px; background: var(--surface2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.sl-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.sl-foot-grid h4 { font-size: 14px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.sl-foot-grid a:not(.logo) { display: block; color: var(--text); margin-bottom: 10px; }
.sl-foot-grid a:not(.logo):hover { color: var(--acc); }
.sl-foot-brand p { margin-top: 14px; max-width: 300px; }
.sl-foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

/* ---------- оплата ---------- */
.pay-steps { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 12px; color: var(--text); }
.pay-steps li::marker { font-weight: 700; color: var(--navy); }

/* ---------- админка ---------- */
.adm-tabs { margin-bottom: 18px; overflow-x: auto; }
.adm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adm-tile .v { font-size: 28px; font-weight: 600; color: var(--text-bright); letter-spacing: -.02em; margin: 4px 0 2px; }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--dim); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.pos { color: var(--ok); font-weight: 600; }
.tbl tr.banned td { opacity: .55; }
.tbl input { min-height: 36px; padding: 6px 10px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .sl-hero { grid-template-columns: 1fr 1fr; }
  .sl-main { grid-column: 1 / -1; min-height: 0; }
  .sl-btns { margin-top: 28px; grid-template-columns: 1fr 1fr; }
  .sl-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .sl-nav, .sl-auth { display: none; }
  .sl-burger { display: flex; margin-left: auto; }
  .sl-bar { height: 60px; }
  .sl-mnav.open { display: flex; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: #fff; }
  .sl-mnav a { padding: 12px 0; color: var(--text-bright); border-bottom: 1px solid var(--line); font-size: 17px; }
  .sl-hero { grid-template-columns: 1fr; padding-top: 16px; }
  .sl-card { min-height: 0; padding: 24px; }
  .sl-btns { grid-template-columns: 1fr; }
  .sl-promo .sl-art { height: 140px; }
  .sl-steps, .sl-feats { grid-template-columns: 1fr; }
  .sl-sec { padding-top: 52px; }
  .sl-h2 { margin-bottom: 24px; }
  .sl-banner { flex-direction: column; align-items: flex-start; padding: 32px 24px; margin-top: 52px; }
  .sl-row h3 { font-size: 20px; }
  .sl-foot-grid { grid-template-columns: 1fr 1fr; }
  .sl-foot-brand { grid-column: 1 / -1; }
  .adm-tiles { grid-template-columns: 1fr 1fr; }
}

/* приветствие в панели: светлая карточка с мягким градиентом */
.hello { background: linear-gradient(120deg, #ffffff 0%, #f1efff 55%, #d9d3ff 100%) !important; border: 1px solid var(--line); border-radius: 16px; color: var(--text); margin: 0 0 22px !important; padding: 26px 28px !important; }
.hello::before, .hello::after { display: none !important; }
.hello .hi { color: var(--muted); }
.hello h1 { color: var(--text-bright); font-weight: 600; }

/* ================================================================ Панель v2: меню, верхняя полоса, KPI, список ботов */
.svg-i { display: inline-block; flex-shrink: 0; }
.app-shell { grid-template-columns: 256px minmax(0, 1fr); background: var(--bg2); }
.side { background: #fff; padding: 18px 14px; overflow-y: auto; }
.side .logo { padding: 4px 10px 18px; font-size: 21px; }
.side nav { gap: 2px; }
.side .ns { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 16px 12px 6px; }
.side nav a { gap: 12px; padding: 9px 12px; border-radius: 9px; font-weight: 500; font-size: 14.5px; color: var(--text); box-shadow: none !important; }
.side nav a .svg-i { color: var(--dim); transition: color .15s; }
.side nav a:hover { background: var(--surface2); color: var(--text-bright); }
.side nav a:hover .svg-i { color: var(--text-bright); }
.side nav a.on { background: #eef1f6; color: var(--text-bright); font-weight: 600; }
.side nav a.on .svg-i { color: var(--brand-red); }
.side-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 14px 12px 4px; border-top: 1px solid var(--line); margin-top: 14px; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 clamp(18px, 3.5vw, 40px); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tb-burger { display: none; }
.tb-title { font-weight: 600; color: var(--text-bright); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-bal { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; background: var(--surface2); border: 1px solid var(--line); color: var(--text-bright); }
.tb-bal:hover { color: var(--text-bright); border-color: var(--line2); }
.tb-bal .svg-i { color: var(--muted); }
.tb-user { position: relative; }
.tb-ub { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 4px 6px; border-radius: 10px; cursor: pointer; color: var(--text-bright); font: 500 14px var(--font); }
.tb-ub:hover { background: var(--surface2); }
.tb-ub .avatar { width: 32px; height: 32px; font-size: 12px; border-radius: 50%; }
.tb-ub .car { color: var(--dim); }
.tb-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.tb-menu.open { display: block; animation: fade .12s ease; }
.tb-mh { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tb-menu a, .tb-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); background: none; border: 0; font: 500 14px var(--font); cursor: pointer; text-align: left; }
.tb-menu a:hover, .tb-menu button:hover { background: var(--surface2); color: var(--text-bright); }
.tb-menu .svg-i { color: var(--muted); }
#logout { color: var(--bad); }
#logout .svg-i { color: var(--bad); }
.main { padding: 28px clamp(18px, 3.5vw, 40px) 64px; background: transparent; max-width: 1280px; width: 100%; }
.page-h h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; letter-spacing: -.025em; }
.page-h p { font-size: 14.5px; }
.card { border-radius: 14px; }
.in-app .sl-h2 { text-align: left; font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.in-app .sl-sub, .in-app > .muted { text-align: left; margin: 0 0 22px; }

/* KPI-плитки */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; color: var(--text); min-width: 0; }
a.kpi:hover { border-color: var(--line2); color: var(--text); box-shadow: var(--shadow-sm); }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 600; color: var(--text-bright); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b small { font-size: 14px; color: var(--dim); font-weight: 500; }
.kpi .s { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s.link { color: var(--brand-red); font-weight: 600; }
.meter { height: 6px; border-radius: 6px; background: var(--surface3); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--navy); }

/* список ботов */
.list-tools { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.list-tools .search { margin: 0; }
.list-tools .search input { background: #fff; }
.srv-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.srv-list > .srv, .srv-list .folder-b > .srv { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; margin: 0; cursor: pointer; color: var(--text); box-shadow: none; transform: none; }
.srv-list .srv:last-child { border-bottom: 0; }
.srv-list .srv:hover { background: #f8f9fb; }
.srv-list .srv:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.srv .si { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface3); color: var(--muted); flex-shrink: 0; font-size: 0; border: 0; }
.srv .si.on { background: var(--ok-bg); color: var(--ok); }
.srv .si.wait { background: var(--warn-bg); color: var(--warn); }
.srv .sn { font-weight: 600; color: var(--text-bright); font-size: 15px; }
.srv .sa { font-size: 13px; color: var(--muted); font-family: var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srv .sx { font-size: 13px; color: var(--muted); width: 110px; text-align: right; white-space: nowrap; }
.srv .sx.low { color: var(--warn); font-weight: 600; }
.srv-st { width: 120px; display: flex; justify-content: flex-start; }
.srv-act { min-width: 108px; }
.srv-list .folder { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; background: #fff; }
.srv-list .folder-h { padding: 12px 18px; background: var(--surface2); border: 0; width: 100%; }
.srv-list .folder-b { border: 0; padding: 0; }
.srv-list .folder-b > .srv { padding-left: 34px; }
.pill { font-weight: 600; font-size: 12px; }
.empty-big { text-align: center; padding: 56px 24px !important; }
.empty-big .eb-art { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(135deg, #f1efff, #d9d3ff); color: #5b47d6; margin-bottom: 18px; }
.empty-big h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.empty-big p { max-width: 440px; margin: 0 auto 22px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .srv-st { display: none; } }
@media (max-width: 900px) {
  .side { background: #fff; box-shadow: 24px 0 60px rgba(14, 23, 38, .2); }
  .scrim { background: rgba(14, 23, 38, .4); }
  .tb-burger { display: inline-flex; margin-left: -8px; }
  .tb-un, .tb-ub .car, .tb-top { display: none; }
  .topbar { height: 58px; padding: 0 14px; gap: 8px; }
  .main { padding: 20px 14px calc(48px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .kpi { padding: 14px; } .kpi b { font-size: 20px; }
  .srv-list > .srv, .srv-list .folder-b > .srv { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .srv .grow { flex: 1 1 calc(100% - 60px); }
  .srv .sx { width: auto; text-align: left; flex: 1; padding-left: 52px; }
  .srv-act { min-width: 0; }
  .page-h .btn { width: 100%; }
  .list-tools #lay { padding: 0 12px; }
}
.bot-head h1 { font-weight: 600; letter-spacing: -.025em; }
.bot-head .avatar { border-radius: 14px; }
.card h3, .card-h h3 { font-weight: 600; }
.stat, .statgrid > div { background: var(--surface2); border-color: var(--line); }

/* логотип-текст и плавные переходы между страницами */
.logo-text { font-size: 23px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.side .logo .logo-text { font-size: 24px; }
#app { transition: opacity .18s ease; }
#app.pg-busy { opacity: .5; pointer-events: none; }
#app.pg-in { animation: pgIn .34s cubic-bezier(.2, .8, .2, 1); }
@keyframes pgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#pgbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--brand-red); opacity: 0; pointer-events: none; border-radius: 0 3px 3px 0; }
#pgbar.run { opacity: 1; width: 70%; transition: width 1.6s cubic-bezier(.1, .7, .2, 1); }
#pgbar.done { opacity: 0; width: 100%; transition: width .2s ease, opacity .3s ease .15s; }
a, .btn, .side nav a, .srv, .kpi, .sl-feat { transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, opacity .15s ease; }
.modal-bg { animation: fade .16s ease; }
.modal { animation: mIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes mIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { #app.pg-in, .modal, .modal-bg { animation: none; } #pgbar { display: none; } html { scroll-behavior: auto; } }
.opt.sel { background: #f3f5f9 !important; border-color: var(--navy) !important; box-shadow: 0 0 0 1px var(--navy) !important; }
.amt.rej { color: var(--dim); text-decoration: line-through; }

#price, #feats, #faq-sec { scroll-margin-top: 84px; }
.sl-nav a.on { color: var(--text-bright); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand-red); padding-bottom: 4px; }
.sl-mnav a.on { color: var(--brand-red); }
.sl-row, .sl-row:hover h3 { cursor: default; color: inherit; }
.sl-row:hover h3 { color: var(--text-bright); }

/* ---------------------------------------------------------------- страница «Новый бот» */
.cb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cb-form { display: flex; flex-direction: column; gap: 16px; }
.cb-sec { padding: 22px 24px; }
.cb-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.cb-h h3 { margin: 0 0 2px; font-size: 17px; }
.cb-h p { margin: 0; }
.cb-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.cb-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.cb-choice .opt { text-align: left; font: inherit; width: 100%; margin: 0; }
.cb-px .opt { margin-bottom: 8px; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cb-chips .chip { cursor: pointer; font: inherit; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; transition: all .15s ease; }
.cb-chips .chip:hover { border-color: var(--navy); }
.cb-chips .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cb-sum { position: sticky; top: 84px; padding: 22px; }
.cb-prev { display: flex; gap: 12px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cb-prev b { font-size: 16px; word-break: break-all; }
.cb-dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 16px 0; font-size: 14px; }
.cb-dl dt { color: var(--muted); }
.cb-dl dd { margin: 0; text-align: right; font-weight: 600; color: var(--text-bright); }
.cb-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 6px; }
.cb-tot b { font-size: 26px; color: var(--text-bright); }
.cb-sum .btn.block { width: 100%; margin-top: 14px; justify-content: center; }
@media (max-width: 1000px) { .cb-grid { grid-template-columns: 1fr; } .cb-sum { position: static; } }
@media (max-width: 560px) { .cb-choice { grid-template-columns: 1fr; } .cb-sec { padding: 18px 16px; } }
.cb-vtabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1f3f7; border-radius: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cb-vtabs button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 9px; cursor: pointer; transition: all .15s ease; }
.cb-vtabs button:hover { color: var(--text-bright); }
.cb-vtabs button.on { background: #fff; color: var(--text-bright); font-weight: 600; box-shadow: 0 1px 3px rgba(19, 36, 58, .12); }

/* головы скинов вместо цветных аватарок */
img.avatar { display: block; width: 48px; height: 48px; padding: 0; object-fit: cover; image-rendering: pixelated; background: #e9edf3; border-radius: 10px; border: 0; box-shadow: 0 0 0 1px rgba(19, 36, 58, .08), 0 2px 6px rgba(19, 36, 58, .12); }
img.avatar.lg { width: 60px; height: 60px; border-radius: 12px; }
.tb-ub img.avatar { width: 30px; height: 30px; border-radius: 7px; }
.tb-mh img.avatar { width: 40px; height: 40px; border-radius: 9px; }
.srv .si { padding: 0; overflow: hidden; background: #e9edf3; position: relative; box-shadow: 0 0 0 2px var(--line2); }
.srv .si img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.srv .si.on { box-shadow: 0 0 0 2px var(--ok); }
.srv .si.wait { box-shadow: 0 0 0 2px var(--warn); }

/* колесо фортуны */
.wh-page { max-width: 640px; margin: 0 auto; text-align: center; padding: 8px 0 30px; }
.wh-page h1 { font-size: 32px; margin: 0 0 8px; }
.wh-box { position: relative; width: min(420px, 100%); margin: 28px auto 0; aspect-ratio: 1; }
.wh { width: 100%; height: 100%; display: block; filter: drop-shadow(0 14px 30px rgba(19, 36, 58, .22)); }
.wh-t { fill: #fff; font: 800 22px var(--font); }
.wh-ptr { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--brand-red); z-index: 2; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.wh-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 5px solid #fff; background: var(--navy); color: #fff; font: 700 16px var(--font); cursor: pointer; box-shadow: 0 6px 18px rgba(19, 36, 58, .35); transition: transform .15s ease; z-index: 2; }
.wh-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.wh-hub:disabled { cursor: default; }
.wh-res { min-height: 40px; margin-top: 26px; }
.wh-win { animation: pgIn .4s ease both; }
.wh-amt { font-size: 44px; font-weight: 800; color: var(--ok); }
.wh-win p { color: var(--muted); margin: 6px 0 18px; }
@media (prefers-reduced-motion: reduce) { .wh { transition-duration: .01s !important; } }

/* уникальный ID бота */
.bid-s { margin-left: 8px; font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: #f1f3f7; border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
.bid { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: #f1f3f7; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; cursor: pointer; transition: all .15s ease; }
.bid:hover { border-color: var(--navy); color: var(--text-bright); }

/* VIP-боты */
.vip-b { margin-left: 8px; font: 800 10.5px var(--font); letter-spacing: .06em; color: #7a5200; background: linear-gradient(135deg, #ffe08a, #f5b82e); border-radius: 6px; padding: 2px 6px; vertical-align: 2px; }
.vip-b.lg { margin-left: 0; font-size: 12px; padding: 4px 9px; border-radius: 8px; vertical-align: 0; }
.vip-scr { margin-bottom: 16px; }
.vs-body { margin-top: 12px; }
.vs-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #0d1117; display: block; }
.vip-card { background: linear-gradient(135deg, #fffaf0, #fff4d6); border-color: #f3dc9a; }
