/* ============================================================
   SPECTRUM design system
   Near-black surfaces, cyan and blue accents, thin borders, 16–24px radii.
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #050709;
  --bg-soft: #070b0d;
  --panel: #0b0f12;
  --panel-2: #0e1417;
  --panel-3: #131b20;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f1f6f7;
  --text-soft: #c4cfd2;
  --muted: #8b989c;
  --muted-2: #6d7b7f;
  --accent: #16a2c9;
  --accent-bright: #3ec2e7;
  --accent-deep: #0c738f;
  --accent-soft: rgba(22, 162, 201, 0.12);
  --accent-line: rgba(22, 162, 201, 0.34);
  --danger: #f47575;
  --danger-soft: rgba(244, 117, 117, 0.1);
  --warning: #f0b45f;
  --warning-soft: rgba(240, 180, 95, 0.1);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --glow: 0 10px 34px rgba(22, 162, 201, 0.22);
  --sidebar: 288px;
  --font: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.cabinet-page { background: #040608; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.025em; }
h1 { font-size: clamp(38px, 4.4vw, 62px); font-weight: 760; }
h2 { font-size: clamp(26px, 2.7vw, 38px); font-weight: 720; }
h3 { font-size: 17px; font-weight: 660; }
p { color: var(--muted); }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(22, 162, 201, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.icon { display: inline-block; flex: none; vertical-align: -0.18em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.accent { color: var(--accent-bright); }
.gradient-text {
  background: linear-gradient(100deg, #e9faff 0%, #3ec2e7 45%, #1392b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-success { color: var(--accent-bright) !important; }
.text-danger { color: var(--danger) !important; }
.danger-text { color: var(--danger) !important; }
.eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.fine-print { max-width: 560px; margin-top: 20px; font-size: 11.5px; line-height: 1.65; color: var(--muted-2); }
.section-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 22px; font-size: 12px; color: var(--muted); }
.page-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* ---------- Ambient background ---------- */
.ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 8%, rgba(22, 162, 201, 0.14), transparent 62%),
    radial-gradient(ellipse 45% 40% at 8% 18%, rgba(18, 81, 120, 0.1), transparent 65%);
}
.ambient-cabinet {
  position: fixed;
  height: 100vh;
  background:
    radial-gradient(ellipse 45% 35% at 88% 0%, rgba(22, 162, 201, 0.08), transparent 65%),
    radial-gradient(ellipse 40% 30% at 28% 100%, rgba(14, 61, 90, 0.06), transparent 70%);
}

/* ---------- Public header / footer ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 9, 0.82);
  backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.brand img { border-radius: 11px; }
.brand b { color: var(--accent-bright); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; font-size: 12.5px; color: var(--text-soft); }
.site-nav a { transition: color 0.15s; }
.site-nav a:hover { color: var(--accent-bright); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.site-header .nav-toggle { display: none; }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: rgba(6, 10, 12, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr; gap: 40px; padding-block: 42px; align-items: start; }
.footer-brand p { max-width: 380px; margin-top: 14px; font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent-bright); }
.footer-note { font-size: 11px; line-height: 1.7; color: var(--muted-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 640;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: linear-gradient(135deg, #20add4, #0f8caf);
  border-color: rgba(95, 220, 255, 0.35);
  color: #030d13;
  box-shadow: var(--glow);
}
.btn-primary:hover { background: linear-gradient(135deg, #37bfe5, #13a1c8); box-shadow: 0 12px 40px rgba(22, 162, 201, 0.3); }
.btn-ghost { background: rgba(255, 255, 255, 0.028); border-color: var(--line-strong); color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(22, 162, 201, 0.34); color: var(--text); }
.btn-soft { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-bright); }
.btn-danger { background: rgba(244, 117, 117, 0.12); border-color: rgba(244, 117, 117, 0.32); color: #ffb0b0; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.btn-xs { min-height: 30px; padding: 0 10px; font-size: 11px; border-radius: 8px; }
.btn-lg { min-height: 50px; font-size: 14px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  cursor: pointer;
}
.text-btn:hover { color: var(--accent-bright); }
.text-btn.danger:hover { color: var(--danger); }
.text-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.icon-btn.bordered { border-color: var(--line-strong); background: var(--panel-2); }

/* ---------- Cards, badges, chips ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(18, 25, 29, 0.72), rgba(8, 12, 14, 0.92));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}
.badge-success { color: #62d0ef; border-color: rgba(22, 162, 201, 0.34); background: var(--accent-soft); }
.badge-warning { color: #ffd08c; border-color: rgba(240, 180, 95, 0.32); background: var(--warning-soft); }
.badge-danger { color: #ffaaaa; border-color: rgba(244, 117, 117, 0.32); background: var(--danger-soft); }
.badge-neutral { color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10.5px;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip-warning { color: #ffd08c; border-color: rgba(240, 180, 95, 0.26); background: var(--warning-soft); }
.chip-danger { color: #ffaaaa; border-color: rgba(244, 117, 117, 0.26); background: var(--danger-soft); }
.chip-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
  transition: 0.15s;
}
.chip-chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip-chip.active { color: #061620; background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; font-weight: 620; color: var(--text-soft); letter-spacing: 0.01em; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(4, 7, 9, 0.55);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}
textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #5f6d71; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, 0.19); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(22, 162, 201, 0.1); background: rgba(5, 9, 12, 0.85); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }
select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b9c92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-color: rgba(4, 7, 9, 0.55);
}
select option { background: #0b1115; color: var(--text); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; }
.input-wrap input { padding-left: 40px; }
.field-hint { font-size: 11px; line-height: 1.55; color: var(--muted-2); }
.form-error { padding: 10px 12px; border: 1px solid rgba(244, 117, 117, 0.3); border-radius: 10px; background: var(--danger-soft); color: #ffb4b4; font-size: 12px; }
.form-hint { font-size: 11.5px; color: var(--muted); }
.inline-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 190px; }
.inline-mini { display: flex; gap: 6px; align-items: center; }
.inline-mini input { min-height: 34px; width: 74px; padding: 5px 8px; font-size: 12px; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; flex: 0 0 18px; accent-color: var(--accent); }
.check-row input[type="checkbox"] { margin: 2px 0 0; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-soft); }
.check-row input { width: auto; min-height: auto; }
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  margin: 18px 0;
}
.segmented button {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}
.segmented button.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }

/* ---------- Alerts and notes ---------- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.55;
}
.alert > .icon { margin-top: 2px; }
.alert > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.alert strong { color: var(--text); font-size: 12.5px; }
.alert span { color: var(--muted); }
.alert .btn { margin-left: auto; }
.alert-success { border-color: rgba(22, 162, 201, 0.28); background: rgba(22, 162, 201, 0.075); }
.alert-success > .icon { color: var(--accent-bright); }
.alert-warning { border-color: rgba(240, 180, 95, 0.26); background: var(--warning-soft); }
.alert-warning > .icon { color: var(--warning); }
.alert-danger { border-color: rgba(244, 117, 117, 0.28); background: var(--danger-soft); }
.alert-danger > .icon { color: var(--danger); }
.alert-info { border-color: rgba(120, 190, 255, 0.2); background: rgba(120, 190, 255, 0.055); }
.alert-info > .icon { color: #8fc9ff; }
.alert.compact { padding: 10px 12px; font-size: 11.5px; margin: 12px 0; }

/* ---------- Landing: hero ---------- */
.hero { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 46px; align-items: center; padding-block: 84px 58px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(62, 194, 231, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(62, 194, 231, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(62, 194, 231, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 194, 231, 0); } }
.hero h1 { margin-top: 18px; }
.hero-lead { max-width: 560px; margin-top: 20px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: var(--muted); font-size: 11.5px; }
.hero-facts span { display: inline-flex; gap: 6px; align-items: center; }
.hero-facts .icon { color: var(--accent); }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(22, 162, 201, 0.12); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 330px; height: 330px; border-style: dashed; animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-stack { position: relative; width: min(100%, 460px); height: 360px; }
.preview-card {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, #121b20, #080c0f);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(22, 162, 201, 0.06) inset;
}
.preview-main { right: 0; top: 32px; width: 340px; padding: 20px; transform: rotate(1.5deg); }
.preview-main::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(62, 194, 231, 0.34), transparent 40%, rgba(255, 255, 255, 0.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.preview-side { left: 0; bottom: 18px; width: 176px; padding: 16px; transform: rotate(-4deg); }
.preview-caption { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.preview-side strong { display: block; margin: 6px 0 12px; font-size: 24px; letter-spacing: -0.04em; }
.preview-line { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); margin: 8px 0; }
.preview-line.short { width: 62%; }
.preview-side .badge { margin-top: 12px; }
.preview-head { display: flex; align-items: center; gap: 10px; }
.preview-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-bright); border: 1px solid var(--accent-line); }
.preview-head > div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.preview-head strong { font-size: 13px; }
.preview-head span:not(.badge) { color: var(--muted); font-size: 10.5px; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.preview-metrics div { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.preview-metrics span { display: block; color: var(--muted-2); font-size: 9.5px; margin-bottom: 3px; }
.preview-metrics b { font-size: 12.5px; }
.preview-progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin: 16px 0; overflow: hidden; }
.preview-progress i { display: block; height: 100%; width: 64%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright)); }
.preview-games { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.preview-games span { padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 9.5px; }
.preview-actions { display: flex; gap: 7px; }
.preview-button { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 9px; background: var(--accent); color: #040d12; font-size: 10.5px; font-weight: 700; }
.preview-button.ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-soft); }
.preview-note { position: absolute; bottom: -2px; right: 0; font-size: 10px; color: var(--muted-2); }

/* ---------- Landing: sections ---------- */
.logo-strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.logo-strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 28px; padding-block: 18px; color: var(--muted-2); font-size: 11px; }
.section { padding-block: 76px; }
.section-head { max-width: 690px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin: 0 0 26px; text-align: left; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 13px; font-size: 13.5px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card { padding: 24px 21px; transition: border-color 0.2s, transform 0.2s; }
.feature-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); }
.feature-card h3 { margin: 18px 0 8px; }
.feature-card p { font-size: 12px; line-height: 1.65; }
.tariff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.tariff-card { display: flex; flex-direction: column; padding: 24px 21px; overflow: hidden; }
.tariff-featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(22, 162, 201, 0.1) inset, 0 22px 60px rgba(9, 77, 120, 0.13); }
.tariff-flag { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #040d13; font-size: 9px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.tariff-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tariff-badges { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tariff-top h3 { font-size: 16px; }
.tariff-description { min-height: 38px; margin-top: 6px; font-size: 11.5px; line-height: 1.55; }
.tariff-price { margin-top: 16px; font-size: 30px; font-weight: 780; letter-spacing: -0.045em; color: var(--text); }
.tariff-term { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; color: var(--accent-bright); font-size: 11.5px; font-weight: 600; }
.tariff-features { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 22px; }
.tariff-features li { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.tariff-features .icon { color: var(--accent); margin-top: 1px; }
.tariff-card .btn { margin-top: auto; }
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.step-card { position: relative; padding: 22px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); }
.step-index { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); font-size: 12px; font-weight: 700; }
.step-card h3 { margin: 15px 0 7px; font-size: 14px; }
.step-card p { font-size: 11px; line-height: 1.6; }
.faq-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 9px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, 0.018); overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 580;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); transition: 0.2s; flex: none; }
.faq-item[open] .faq-plus { transform: rotate(45deg); color: var(--accent-bright); border-color: var(--accent-line); }
.faq-item p { padding: 0 17px 16px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.faq-item[open] summary { color: var(--text); }
.reviews-empty { display: flex; align-items: center; gap: 20px; padding: 26px; flex-wrap: wrap; }
.reviews-empty > div { flex: 1; min-width: 240px; }
.reviews-empty h2 { font-size: 22px; }
.reviews-empty p { margin-top: 7px; font-size: 12px; }
.reviews-empty .btn { margin-left: auto; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 120% at 90% 10%, rgba(22, 162, 201, 0.15), transparent 65%),
    linear-gradient(135deg, #0d151a, #070d10);
  box-shadow: var(--shadow);
}
.cta-copy h2 { margin: 8px 0 8px; font-size: clamp(24px, 2.5vw, 32px); }
.cta-copy p { font-size: 12.5px; }
.legal-note { padding-block: 24px 0; }
.legal-note p { font-size: 10.5px; line-height: 1.7; color: var(--muted-2); max-width: 950px; }

/* ---------- Auth ---------- */
.auth-layout { display: grid; grid-template-columns: 1fr 430px; gap: 60px; align-items: center; padding-block: 64px 30px; min-height: calc(100vh - 260px); }
.auth-aside h1 { margin-top: 16px; font-size: clamp(34px, 3.8vw, 52px); }
.auth-aside > p { max-width: 520px; margin-top: 18px; font-size: 13.5px; line-height: 1.75; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); font-size: 12.5px; line-height: 1.6; }
.auth-points .icon { color: var(--accent); margin-top: 2px; }
.auth-card { padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.auth-tabs button.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
.auth-head { margin: 24px 0 20px; }
.auth-head h2 { font-size: 24px; }
.auth-head p { margin-top: 7px; font-size: 12px; }
#auth-form, [data-recovery-form] { display: flex; flex-direction: column; gap: 14px; }
#auth-form .btn, [data-recovery-form] .btn { margin-top: 4px; }
.auth-footnote { margin-top: 18px; font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }
.auth-alt { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }
.auth-alt a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.auth-alt span { color: var(--muted-2); }
.auth-page .ambient { height: 700px; }

/* ---------- Cabinet shell ---------- */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse 120% 30% at 0% 0%, rgba(22, 162, 201, 0.06), transparent 60%),
    #060a0c;
  overflow-y: auto;
}
.sidebar-header { padding: 2px 4px 20px; display: flex; align-items: center; }
.sidebar .brand { font-size: 21px; }
.balance-card {
  padding: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 100% 120% at 100% 0%, rgba(22, 162, 201, 0.17), transparent 65%),
    linear-gradient(145deg, rgba(17, 32, 42, 0.9), rgba(8, 14, 18, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}
.balance-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.balance-label span { display: inline-flex; gap: 6px; align-items: center; }
.balance-label .icon { color: var(--accent); }
.balance-topup { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--text-soft); }
.balance-topup:hover { color: var(--accent-bright); border-color: var(--accent-line); }
.balance-amount { margin: 8px 0 14px; font-size: 27px; font-weight: 780; letter-spacing: -0.05em; }
.balance-card .btn { min-height: 38px; font-size: 12px; }
.side-section { margin-top: 26px; }
.side-caption { display: block; padding: 0 10px; margin-bottom: 8px; color: var(--muted-2); font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 560;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.side-link .icon { color: var(--muted-2); transition: color 0.15s; }
.side-link:hover { background: rgba(255, 255, 255, 0.035); color: var(--text-soft); }
.side-link:hover .icon { color: var(--text-soft); }
.side-link.active { color: var(--text); background: linear-gradient(90deg, rgba(22, 162, 201, 0.15), rgba(22, 162, 201, 0.035)); }
.side-link.active::before { content: ""; position: absolute; left: -18px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 14px rgba(22, 162, 201, 0.6); }
.side-link.active .icon { color: var(--accent-bright); }
.side-link-danger:hover { color: #ffaaaa; }
.side-link-danger:hover .icon { color: #ffaaaa; }
.side-bottom { margin-top: auto; padding-top: 26px; }
.side-user { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 12px 10px 2px; border-top: 1px solid var(--line); min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); font-size: 12px; font-weight: 720; }
.side-user-name { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-overlay { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.cabinet-shell { grid-column: 2; min-width: 0; }
.cabinet-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 6, 8, 0.84);
  backdrop-filter: blur(18px);
}
.sidebar-toggle { display: none; }
.topbar-title { display: flex; align-items: baseline; gap: 12px; min-width: 0; flex: 1; overflow: hidden; }
.topbar-title h1 { font-size: 21px; font-weight: 720; letter-spacing: -0.03em; line-height: 1.35; }
.topbar-sub { color: var(--muted-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.cabinet-main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px 32px 64px; }

/* ---------- Dashboard ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 13px; padding: 17px 18px; }
.stat-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.stat-icon.stat-success { color: var(--accent-bright); border-color: var(--accent-line); background: var(--accent-soft); }
.stat-icon.stat-warning { color: var(--warning); border-color: rgba(240, 180, 95, 0.24); background: var(--warning-soft); }
.stat-label { display: block; color: var(--muted); font-size: 10.5px; }
.stat-card strong { display: block; margin-top: 2px; font-size: 21px; font-weight: 740; letter-spacing: -0.03em; }
.toolbar-card { padding: 12px; margin-bottom: 16px; }
.toolbar { display: flex; align-items: center; gap: 10px; }
.search-wrap { flex: 1; min-width: 200px; }
.toolbar select { width: auto; min-width: 152px; min-height: 42px; font-size: 12px; }
.toolbar-count { margin-left: auto; padding-right: 6px; color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.slot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.slot-grid--single { grid-template-columns: minmax(0, 1fr); }
.slot-card { padding: 19px; min-width: 0; container-type: inline-size; }
.slot-card--wide { grid-column: 1 / -1; }
.slot-summary, .slot-content, .slot-form { min-width: 0; }
.slot-head { display: flex; align-items: flex-start; gap: 11px; }
.slot-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.035); color: var(--text-soft); }
.slot-avatar.live { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); }
.slot-avatar.live::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid #0a0e11; }
.slot-heading { flex: 1; min-width: 0; }
.slot-heading h3 { font-size: 15px; overflow-wrap: anywhere; line-height: 1.45; }
.slot-steamid { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--muted-2); font-size: 10.5px; }
.slot-steamid:hover { color: var(--accent-bright); }
.slot-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 14px 0 12px; }
.folder-select { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.025); color: var(--muted); }
.folder-select .icon { color: var(--muted-2); }
.folder-select select { width: auto; min-height: 0; padding: 0 16px 0 0; border: 0; background: transparent; background-image: none; color: var(--muted); font-size: 10.5px; box-shadow: none; }
.folder-select select:focus { box-shadow: none; }
.slot-metrics { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.slot-metrics > div { min-width: 0; }
.slot-metrics span { display: block; color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.03em; }
.slot-metrics strong { display: block; margin-top: 3px; font-size: 14px; font-weight: 680; }
.slot-metrics strong [data-slot-hours] { display: inline; color: inherit; font: inherit; letter-spacing: inherit; }
.slot-metrics small { display: block; margin-top: 1px; color: var(--muted-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appid-chips { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; min-height: 22px; }
.slot-form { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.slot-form [data-library-panel] { display: flex; flex-direction: column; gap: 10px; }
.presence-setting { grid-column: 1 / -1; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.presence-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.presence-checkbox input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--accent, #12a1c9); }
.presence-setting p { margin: 8px 0 0; }
.connection-setting { grid-column: 1 / -1; padding: 14px; margin: 0; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.connection-setting p { margin: 10px 0 0; }
.connection-setting [data-custom-proxy] { margin-top: 12px; }
.connection-setting [data-custom-proxy] input { margin: 8px 0 12px; }
.proxy-admin-intro { padding: 22px; margin-bottom: 18px; }
.proxy-admin-intro p { margin-top: 12px; }
.proxy-node-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.proxy-node-card { padding: 22px; min-width: 0; }
.proxy-node-card > p { margin: 12px 0 20px; }
.compact-field { gap: 5px; }
.compact-field > label { font-size: 10.5px; color: var(--muted); }
.compact-field input { min-height: 38px; font-size: 12px; }
.slot-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.slot-footer { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.slot-free-note { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 11px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 11.5px; }
.slot-free-note .icon { color: var(--accent); }
.slot-hint { margin-top: 9px; font-size: 10.5px; color: var(--muted-2); }
.library-results { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); max-height: 180px; overflow-y: auto; }
.library-source { flex-basis: 100%; color: var(--muted-2); font-size: 9.5px; line-height: 1.45; }
.library-results label { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 10.5px; color: var(--muted); cursor: pointer; }
.library-results input { width: auto; min-height: auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 24px; margin-top: 8px; }
.empty-state h2, .empty-state h3 { margin-top: 14px; }
.empty-state p { max-width: 540px; margin-top: 9px; font-size: 12.5px; }
.empty-icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(150deg, rgba(22, 162, 201, 0.12), rgba(255, 255, 255, 0.02)); color: var(--accent-bright); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.empty-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 720px; margin-top: 24px; }
.empty-steps div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.018); }
.empty-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); font-size: 10px; font-weight: 700; }
.empty-steps b { font-size: 11.5px; }
.empty-steps small { color: var(--muted-2); font-size: 10px; }

/* ---------- Dialogs ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 28px));
  max-height: min(90vh, 900px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #10161a, #070b0d);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65);
  overflow-y: auto;
}
dialog.modal.modal-wide { width: min(700px, calc(100vw - 28px)); }
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(5px); }
dialog.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal-head h2 { margin-top: 4px; font-size: 22px; }
.modal-lead { overflow-wrap: anywhere; margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.modal-text { font-size: 12px; line-height: 1.6; color: var(--muted); }
.modal-status { min-height: 22px; margin-top: 10px; font-size: 12px; color: var(--text-soft); }
.modal-footnote { margin-top: 16px; font-size: 10.5px; line-height: 1.6; color: var(--muted-2); }
.modal form { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.modal .steam-connection { padding: 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255,.02); }
.steam-connection-check { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.steam-connection-check > span { flex: 1 1 150px; overflow-wrap: anywhere; }
#steam-create-qr { margin: 14px 0; }
.modal .btn-block + .btn-block { margin-top: 8px; }
.modal .text-btn { margin-top: 8px; }
.qr-box { display: grid; place-items: center; min-height: 250px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, 0.22); }
.qr-box img { border-radius: 8px; background: #fff; padding: 8px; }
.summary-box { display: flex; flex-direction: column; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.summary-box > div { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; color: var(--muted); }
.summary-box strong { color: var(--text-soft); font-size: 12px; font-weight: 600; }
.purchase-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.purchase-summary div { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.purchase-summary span { display: block; color: var(--muted-2); font-size: 9.5px; }
.purchase-summary strong { display: block; margin-top: 3px; font-size: 12px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control input { text-align: center; font-size: 15px; font-weight: 700; }
.qty-control .icon-btn { flex: none; }
.folder-list { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; max-height: 220px; overflow-y: auto; }
.folder-row > span { min-width: 0; overflow-wrap: anywhere; }
.folder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.02); font-size: 12px; color: var(--text-soft); }
.folder-row span { display: inline-flex; align-items: center; gap: 7px; }
.folder-row .icon { color: var(--muted-2); }

/* ---------- Billing ---------- */
.billing-note { display: flex; gap: 13px; align-items: flex-start; padding: 15px 17px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.billing-note-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-bright); }
.billing-note strong { font-size: 12.5px; }
.billing-note p { margin-top: 3px; font-size: 11.5px; line-height: 1.6; }
.purchase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-grid .tariff-card { padding: 22px; }
.purchase-grid .tariff-features { margin-bottom: 18px; }
.billing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 385px; gap: 16px; align-items: start; }
.billing-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.billing-card { padding: 22px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; }
.card-head h2 { font-size: 16px; }
.card-head p { margin-top: 3px; font-size: 11px; }
.card-head-spaced { margin-top: 26px; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); font-size: 11px; font-weight: 700; }
.amount-input { margin-top: 16px; }
.amount-field { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(4, 7, 9, 0.55); transition: border-color 0.15s, box-shadow 0.15s; }
.amount-field:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(22, 162, 201, 0.1); }
.amount-prefix { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-bright); }
.amount-field input { border: 0; background: transparent; min-height: 54px; padding: 0; font-size: 30px; font-weight: 760; letter-spacing: -0.04em; box-shadow: none; }
.amount-field input:focus { box-shadow: none; }
.amount-currency { font-size: 22px; color: var(--muted); font-weight: 600; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 10px; }
.quick-amount { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.025); color: var(--muted); font-size: 11.5px; transition: 0.15s; }
.quick-amount:hover { border-color: var(--line-strong); color: var(--text); }
.quick-amount.active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); font-weight: 650; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.payment-method { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); cursor: pointer; transition: 0.15s; }
.payment-method:hover { border-color: var(--line-strong); }
.payment-method:has(input:checked) { border-color: var(--accent-line); background: linear-gradient(140deg, rgba(22, 162, 201, 0.1), rgba(22, 162, 201, 0.02)); }
.payment-method.disabled { opacity: 0.5; cursor: not-allowed; }
.payment-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text-soft); }
.payment-method-text { flex: 1; min-width: 0; }
.payment-method-text strong { display: block; font-size: 12px; }
.payment-method-text small { display: block; margin-top: 1px; font-size: 10px; color: var(--muted-2); }
.radio-dot { width: 15px; height: 15px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; }
.payment-method:has(input:checked) .radio-dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 40%, transparent 46%); }
.promo-row { display: flex; gap: 8px; margin-top: 14px; }
.promo-row .input-wrap { flex: 1; }
.promo-hint { min-height: 18px; margin-top: 7px; }
.billing-side { position: sticky; top: 96px; }
.summary-card { padding: 22px; border-color: var(--accent-line); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(22, 162, 201, 0.04) inset; }
.summary-head { display: flex; align-items: center; gap: 9px; }
.summary-head .icon { color: var(--accent-bright); }
.summary-head h2 { font-size: 16px; }
.summary-lines { display: flex; flex-direction: column; gap: 11px; margin: 18px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--muted); }
.summary-lines strong { color: var(--text-soft); font-weight: 600; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.summary-total span { color: var(--muted); font-size: 12px; }
.summary-total strong { font-size: 28px; font-weight: 780; letter-spacing: -0.04em; }
.summary-note { margin-top: 12px; font-size: 10px; line-height: 1.6; color: var(--muted-2); }
.summary-card .form-error { margin-top: 12px; }
.info-list { display: flex; flex-direction: column; gap: 13px; margin-top: 16px; }
.info-list > div { display: flex; gap: 10px; align-items: flex-start; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.info-list .icon { color: var(--accent); margin-top: 1px; }
.history-card { margin-top: 16px; padding: 20px 22px; }
.table-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.table-head h2 { font-size: 16px; }
.table-head p { margin-top: 3px; font-size: 11px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.data-table th { padding: 9px 11px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 9.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.data-table td { padding: 11px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: var(--muted); vertical-align: middle; overflow-wrap: anywhere; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
.cell-main { display: block; min-width: 0; color: var(--text-soft); font-size: 11.5px; }
.cell-sub { display: block; margin-top: 1px; color: var(--muted-2); font-size: 9.5px; }
.cell-actions { white-space: normal; }
.cell-actions .text-btn { margin-right: 9px; }
.table-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px; color: var(--muted-2); font-size: 11.5px; }
.return-card { max-width: 620px; margin: 30px auto; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.return-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.return-icon.success { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-bright); }
.return-icon.danger { border-color: rgba(244, 117, 117, 0.3); background: var(--danger-soft); color: var(--danger); }
.return-card h2 { font-size: 24px; }
.return-card > p { font-size: 12.5px; }
.return-summary { width: 100%; margin: 14px 0; text-align: left; }
.return-card .btn { margin-top: 4px; }

/* ---------- FAQ ---------- */
.page-section { padding-block: 54px 20px; }
.page-heading { max-width: 760px; margin-bottom: 26px; }
.page-heading h1 { margin-top: 12px; }
.page-heading p { margin-top: 12px; font-size: 13.5px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.faq-main { min-width: 0; }
.faq-search { display: flex; gap: 8px; }
.faq-search .input-wrap { flex: 1; }
.category-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.faq-result-count { margin: 18px 0 12px; color: var(--muted-2); font-size: 11px; }
.faq-group { margin-bottom: 20px; }
.faq-group h2 { margin-bottom: 9px; font-size: 15px; color: var(--text-soft); }
.faq-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.faq-help-card { padding: 22px; }
.faq-help-card h3 { margin: 14px 0 7px; }
.faq-help-card p { font-size: 11.5px; line-height: 1.65; }
.faq-help-card .btn { margin-top: 15px; }
.faq-side-note { padding: 18px; }
.faq-side-note h3 { font-size: 13px; }
.faq-side-note ul { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.faq-side-note li { position: relative; padding-left: 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.faq-side-note li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ---------- Support / tickets ---------- */
.support-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-stat { padding: 15px 17px; text-align: left; color: var(--text-soft); cursor: default; }
button.mini-stat { cursor: pointer; }
.mini-stat:hover, .mini-stat.active { border-color: var(--accent-line); }
.mini-stat span { display: block; color: var(--muted); font-size: 10.5px; }
.mini-stat strong { display: block; margin-top: 4px; font-size: 21px; font-weight: 740; letter-spacing: -0.03em; }
.ticket-list { display: flex; flex-direction: column; gap: 8px; }
.ticket-row { display: flex; align-items: center; gap: 13px; padding: 15px 17px; transition: border-color 0.15s, background 0.15s; }
.ticket-row:hover { border-color: var(--accent-line); background: rgba(22, 162, 201, 0.03); }
.ticket-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted); }
.ticket-main { flex: 1; min-width: 0; }
.ticket-main strong { display: block; font-size: 12.5px; color: var(--text-soft); overflow-wrap: anywhere; }
.ticket-main span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.ticket-chevron { color: var(--muted-2); transform: rotate(180deg); }
.ticket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.ticket-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ticket-header > div:first-child { min-width: 0; }
.ticket-title-row h2 { font-size: 20px; overflow-wrap: anywhere; }
.ticket-header p { margin-top: 5px; font-size: 11px; overflow-wrap: anywhere; }
.ticket-id { flex: none; color: var(--muted-2); font-size: 13px; font-weight: 700; }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.ticket-message { display: flex; gap: 11px; max-width: 86%; }
.ticket-message.user { align-self: flex-end; flex-direction: row-reverse; }
.ticket-message.admin { align-self: flex-start; }
.message-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-soft); font-size: 11px; font-weight: 700; }
.ticket-message.admin .message-avatar { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-bright); }
.message-body { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.025); min-width: 0; }
.ticket-message.admin .message-body { border-color: rgba(22, 162, 201, 0.22); background: rgba(22, 162, 201, 0.055); }
.ticket-message.user .message-body { background: rgba(255, 255, 255, 0.04); }
.message-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.message-head strong { min-width: 0; overflow-wrap: anywhere; font-size: 11px; color: var(--text-soft); }
.message-head span { color: var(--muted-2); font-size: 9.5px; }
.message-body p { color: var(--text-soft); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-card { padding: 20px 22px; }
.reply-card h2 { font-size: 15px; margin-bottom: 13px; }

/* ---------- Settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.settings-card { min-width: 0; padding: 22px; }
.settings-wide { grid-column: 1 / -1; }
.settings-card form { display: flex; flex-direction: column; gap: 13px; margin-top: 17px; }
.session-list { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.session-row { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.018); }
.session-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); }
.session-main { flex: 1; min-width: 0; }
.session-main strong { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 580; color: var(--text-soft); overflow-wrap: anywhere; }
.session-main .badge { display: inline-flex; flex: none; }
.session-main span { display: block; margin-top: 1px; color: var(--muted-2); font-size: 9.5px; }
.settings-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Admin ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 15px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.2); overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { flex: none; min-height: 36px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.admin-tab:hover { color: var(--text-soft); }
.admin-tab.active { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
.admin-panel { display: flex; flex-direction: column; gap: 14px; }
.admin-panel > .card { padding: 20px 21px; }
.admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 14px; align-items: end; }
.admin-form-grid .field.wide { grid-column: span 2; }
.admin-form-grid > .btn { justify-self: start; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.18); width: min(560px, 80vw); }
.modal .compact-grid { width: 100%; margin-top: 0; padding: 0; border: 0; background: transparent; }
.compact-grid .btn { justify-self: start; }
.row-details summary { list-style: none; cursor: pointer; }
.row-details summary::-webkit-details-marker { display: none; }
.table-wide { min-width: 880px; }
.audit-list { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.audit-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.audit-row:last-child { border-bottom: 0; }
.audit-dot { width: 6px; height: 6px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(22, 162, 201, 0.5); }
.audit-main { flex: 1; min-width: 0; }
.audit-main > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.audit-main strong { font-size: 11.5px; color: var(--text-soft); }
.audit-main p { margin-top: 2px; font-size: 10.5px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.audit-meta { display: flex; flex-direction: column; gap: 1px; text-align: right; color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }
.compact-list { gap: 0; }
.compact-list .audit-row { padding: 8px 0; }
.compact-list .audit-row > div { min-width: 0; }
.compact-list .audit-row strong { display: block; margin-bottom: 1px; }
.compact-list .audit-row span { display: block; font-size: 10px; color: var(--muted-2); }
body.sidebar-open { overflow: hidden; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: 24px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  max-width: min(560px, calc(100vw - 28px));
  padding: 12px 17px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: #0d161b;
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast-message { min-width: 0; max-height: min(25dvh, 240px); overflow-y: auto; overflow-wrap: anywhere; padding-right: 4px; }
.toast-close { grid-column: 2; grid-row: 1; border: 0; background: transparent; color: var(--text-soft); font-size: 22px; cursor: pointer; padding: 2px 4px; }
.toast-sound { grid-column: 1 / -1; grid-row: 2; justify-self: end; border: 1px solid var(--accent-line); border-radius: 8px; background: transparent; color: var(--accent-bright); padding: 6px 8px; cursor: pointer; font-size: 11px; }

/* ---------- Error ---------- */
.error-page { padding-block: 80px; display: grid; place-items: center; }
.error-card { max-width: 560px; padding: 42px; text-align: center; }
.error-code { display: block; font-size: 74px; font-weight: 800; letter-spacing: -0.06em; color: var(--accent); line-height: 1; }
.error-card h1 { margin-top: 12px; font-size: 30px; }
.error-card p { margin-top: 10px; }
.error-card .hero-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tariff-grid { grid-template-columns: repeat(3, 1fr); }
  .purchase-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .slot-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }
  .purchase-grid .tariff-card { padding: 20px 17px; }
}
@media (max-width: 1024px) {
  .hero { gap: 26px; padding-block: 64px 44px; }
  .preview-main { width: 310px; }
  .auth-layout { grid-template-columns: 1fr 400px; gap: 34px; }
  .billing-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr) 290px; }
  .admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform: translateX(-104%); transition: transform 0.22s ease; box-shadow: 24px 0 60px rgba(0, 0, 0, 0.45); }
  .sidebar.open { transform: none; }
  .cabinet-shell { grid-column: 1; }
  .sidebar-toggle { display: inline-grid; }
  .cabinet-topbar { padding: 11px 18px; min-height: 70px; }
  .cabinet-main { padding: 20px 18px 54px; }
  .sidebar-overlay[hidden] { display: none !important; }
  .billing-side { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-block: 54px 30px; }
  .hero-visual { min-height: 400px; margin-top: 8px; }
  .hero-copy { max-width: 640px; }
  .faq-split { grid-template-columns: 1fr; gap: 30px; }
  .auth-layout { grid-template-columns: 1fr; gap: 30px; padding-block: 42px; min-height: 0; }
  .auth-aside { max-width: 620px; }
  .auth-card { max-width: 520px; }
  .billing-layout { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; flex-direction: row; }
  .faq-side .card { flex: 1; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-wide { grid-column: 1; }
  .purchase-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 30px); }
  .header-inner { min-height: 66px; gap: 12px; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #0a1013;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 11px; border-radius: 8px; font-size: 13px; }
  .site-nav a:hover { background: rgba(255, 255, 255, 0.04); }
  .site-header .nav-toggle { display: inline-grid; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-actions .btn { min-height: 36px; padding: 0 11px; font-size: 11px; }
  .brand { font-size: 19px; gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .hero { padding-block: 42px 24px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-lead { font-size: 13.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 11px 15px; }
  .hero-visual { min-height: 390px; }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 270px; height: 270px; }
  .preview-main { width: min(310px, 88vw); }
  .preview-side { width: 150px; }
  .preview-note { right: 10px; }
  .section { padding-block: 48px; }
  .section-head { margin-bottom: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature-card { padding: 18px 15px; }
  .feature-card h3 { font-size: 14px; }
  .tariff-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tariff-card, .purchase-grid .tariff-card { padding: 18px 14px; }
  .tariff-price { font-size: 25px; }
  .tariff-features { gap: 6px; }
  .tariff-features li { font-size: 10.5px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-empty { padding: 20px; }
  .reviews-empty .btn { width: 100%; margin-left: 0; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .site-footer { margin-top: 44px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .topbar-title { display: block; min-width: 0; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-sub { display: block; margin-top: 1px; font-size: 10px; }
  .topbar-actions .btn span { display: none; }
  .cabinet-topbar { gap: 8px; padding: 10px 14px; }
  .cabinet-main { padding: 16px 14px 46px; }
  .stats-grid { gap: 8px; }
  .stat-card { padding: 13px 12px; gap: 9px; }
  .stat-card strong { font-size: 18px; }
  .stat-icon { width: 32px; height: 32px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-wrap { min-width: 0; }
  .toolbar select { width: 100%; }
  .toolbar-count { display: none; }
  .slot-card { padding: 15px; }
  .slot-heading h3 { font-size: 14px; }
  .slot-metrics { grid-template-columns: 1.15fr 1fr 0.8fr; gap: 6px; }
  .slot-metrics strong { font-size: 12.5px; }
  .slot-metrics small { font-size: 9px; }
  .slot-footer { gap: 12px; flex-wrap: wrap; }
  .empty-state { padding: 34px 16px; }
  .empty-steps { grid-template-columns: 1fr; }
  .empty-steps div { flex-direction: row; align-items: center; text-align: left; gap: 10px; }
  .empty-steps small { margin-left: auto; text-align: right; }
  .billing-card { padding: 17px; }
  .quick-amounts { grid-template-columns: repeat(2, 1fr); }
  .payment-methods { grid-template-columns: 1fr; }
  .promo-row { flex-direction: column; }
  .summary-card { padding: 18px; }
  .amount-field input { font-size: 25px; }
  .support-summary { grid-template-columns: repeat(2, 1fr); }
  .ticket-message { max-width: 100%; }
  .ticket-row { padding: 13px; gap: 10px; }
  .ticket-icon { width: 34px; height: 34px; }
  .ticket-header { padding: 16px; }
  .settings-card { padding: 17px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-panel > .card { padding: 15px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-grid .field.wide { grid-column: 1; }
  .table-head { flex-direction: column; }
  .table-head .search-wrap { width: 100%; }
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 9px 0; border-bottom: 1px solid var(--line); }
  .data-table tr:last-child { border-bottom: 0; }
  .data-table td { display: grid; grid-template-columns: 85px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 8px 0; border: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; font-size: 11px; }
  .data-table td::before { grid-column: 1; grid-row: 1; content: attr(data-label); color: var(--muted-2); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; flex: none; }
  .data-table td.cell-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .data-table td > * { grid-column: 2; min-width: 0; max-width: 100%; }
  .data-table td[colspan] { display: block; }
  .data-table td .cell-main, .data-table td .cell-sub { text-align: right; overflow-wrap: anywhere; }
  .data-table .inline-mini { justify-content: flex-end; }
  .table-wide { min-width: 0; }
  .faq-side { flex-direction: column; }
  .faq-search { flex-direction: column; }
  .faq-search .btn { width: 100%; }
  .purchase-summary { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .modal-head h2 { font-size: 19px; }
  .auth-card { padding: 20px; }
  .auth-aside h1 { font-size: 34px; }
  .sidebar { width: min(300px, 86vw); }
  .sidebar-overlay { display: block; }
  .side-link.active::before { left: -18px; }
  .toast { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); max-width: calc(100vw - 28px); }
  .page-section { padding-block: 34px 10px; }
  .error-card { padding: 28px 20px; }
}
@media (max-width: 520px) {
  .alert { flex-wrap: wrap; }
  .alert > div { flex-basis: calc(100% - 34px); }
  .alert .btn { width: 100%; margin-left: 0; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .inline-form .field { flex: none; width: 100%; }
  .feature-grid, .tariff-grid, .purchase-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .header-actions .btn { font-size: 10px; padding: 0 9px; }
  .topbar-actions .btn-sm { min-height: 34px; padding: 0 10px; }
  .topbar-actions .btn-sm .icon { display: none; }
  .slot-actions .btn { flex: 1 1 auto; }
  .slot-footer .text-btn { flex: 1 1 auto; }
  .metric-grid, .stats-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .auth-layout { padding-block: 30px; }
  .return-card { padding: 22px 16px; }
}

@media (max-width: 600px) {
  .cabinet-topbar { flex-wrap: wrap; }
  .topbar-title { flex: 1 1 calc(100% - 50px); overflow: visible; }
  .topbar-title h1, .topbar-sub { white-space: normal; overflow-wrap: anywhere; }
  .topbar-actions { flex: 1 1 100%; justify-content: flex-end; flex-wrap: wrap; }
  .topbar-actions:empty { display: none; }
}

@media (max-width: 430px) {
  .topbar-actions .btn-sm.btn-topbar-ghost { width: 38px; min-height: 36px; padding: 0; font-size: 0; gap: 0; }
  .topbar-actions .btn-sm.btn-topbar-ghost .icon { display: inline-block; }
  .topbar-title h1 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
/* Steam library picker and the account's own profile avatar. */
.slot-avatar { overflow: hidden; flex-shrink: 0; }
.slot-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-picker { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-height: 220px; overflow-y: auto; margin: 0; }
.game-picker label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255, 255, 255,.025); border-radius: 10px; cursor: pointer; overflow-wrap: anywhere; }
.game-picker input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: #10a1c9; }
.game-picker .game-option { min-width: 0; gap: 10px; padding: 9px; transition: border-color .15s, background .15s; }
.game-option:has(input:checked) { border-color: var(--accent, #10a1c9); background: rgba(16, 161, 201,.10); }
.game-option:focus-within { outline: 2px solid var(--accent, #10a1c9); outline-offset: 2px; }
.game-artwork { position: relative; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 60px; border-radius: 7px; overflow: hidden; background: linear-gradient(145deg, #344854, #151d22); }
.game-artwork-fallback { color: #e0ebee; font-weight: 800; font-size: 11px; letter-spacing: .02em; }
.game-artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-option-info { display: flex; flex: 1 1 auto; flex-direction: column; gap: 5px; min-width: 0; }
.game-option-title { color: var(--text, #edf2f4); font-size: 12px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.game-option-meta { color: var(--muted, #919da0); font-size: 10px; line-height: 1.4; }
.manual-appids { margin: 0; }
.manual-appids summary { color: var(--muted, #919da0); cursor: pointer; font-size: 12px; }
.manual-appids .field { margin-top: 12px; }
.cabinet-main > .alert { margin-bottom: 20px; }
.faq-group .faq-item + .faq-item { margin-top: 10px; }
.faq-group { margin-bottom: 28px; }
.reply-card form { display: flex; flex-direction: column; gap: 16px; }
.reply-card .field-hint { margin-top: 14px; }
.reply-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.screenshot-selection { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.screenshot-selection:empty { display: none; }
.screenshot-selection span { min-width: 0; }
.message-screenshot { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: 10px; font-size: 11px; color: var(--accent-bright); }
.message-screenshot img { display: block; max-width: min(360px, 100%); max-height: 240px; border-radius: 10px; object-fit: contain; }
.admin-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-two-col > .card { padding: 22px; min-width: 0; }
.admin-panel .card-head { margin-bottom: 20px; }
.admin-panel .field-hint { margin-top: 12px; }
#limits-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
#limits-form > .btn { grid-column: 1 / -1; justify-self: start; }
.admin-panel .table-head { flex-wrap: wrap; gap: 16px; }
.admin-panel .table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
.admin-panel .audit-row > div { min-width: 0; overflow-wrap: anywhere; }
.admin-panel .compact-list { margin-bottom: 18px; }
@media (max-width: 1200px) { .admin-two-col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .admin-two-col > .card { padding: 16px; }
  #limits-form { grid-template-columns: minmax(0, 1fr); }
  .reply-actions .btn { width: 100%; }
  .reply-actions .btn-primary { order: -1; }
}

/* Account selector and the selected account workspace. */
.accounts-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 14px; }
.accounts-section-head h2 { font-size: 16px; }
.account-view-toggle { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.account-view-toggle .icon-btn { width: 34px; height: 32px; min-height: 32px; border: 0; }
.account-view-toggle [aria-pressed="true"] { color: var(--accent-bright); background: var(--accent-soft); }
.account-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-bottom: 20px; }
.account-picker--list { grid-template-columns: minmax(0, 1fr); }
.account-preview { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel); text-align: left; color: var(--text); cursor: pointer; transition: background .15s, border-color .15s; }
.account-preview:hover { border-color: var(--accent-line); background: #101b22; }
.account-preview[aria-pressed="true"] { border-color: var(--accent); background: linear-gradient(125deg, #152c3b, #0e1a21); }
.account-preview-avatar { flex: 0 0 38px; height: 38px; border-radius: 11px; background: #1b2830; display: grid; place-items: center; overflow: hidden; color: var(--accent-bright); }
.account-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-preview-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-preview-info strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-preview-info > span:not(.account-period-track) { font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-preview-state { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex: none; font-size: 10px; color: var(--muted); }
.account-period-track { display: block; height: 3px; border-radius: 4px; margin-top: 4px; background: #29353c; overflow: hidden; }
.account-period-track > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.account-detail-grid { display: block; }
.account-detail { padding: 26px; container-type: normal; }
.account-detail + .account-detail { margin-top: 20px; }
.account-detail-header { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.account-detail-header .slot-heading h3 { font-size: 23px; }
.account-detail-header .slot-avatar { width: 50px; height: 50px; }
.account-detail-header .slot-meta { margin: 12px 0 0 61px; }
.account-workspace { display: grid; grid-template-columns: minmax(250px,.8fr) minmax(0,1.4fr); grid-template-areas: "sidebar library" "actions actions"; align-items: start; margin: 0; gap: 18px; }
.account-left-column { grid-area: sidebar; display: flex; flex-direction: column; gap: 18px; min-width: 0; align-self: start; }
.account-metrics { grid-area: metrics; display: grid; gap: 16px; min-width: 0; }
.account-session-tile, .account-period-tile { padding: 22px; border: 1px solid var(--line-strong); border-radius: 15px; background: #0c1419; }
.account-session-tile { background: linear-gradient(130deg, #172e3c, #101d25); border-color: var(--accent-line); }
.metric-label { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.account-metrics strong { display: block; font-size: 27px; line-height: 1.4; margin: 9px 0 5px; font-variant-numeric: tabular-nums; }
.account-metrics small { display: block; font-size: 11px; color: var(--muted); }
.account-session-tile strong { color: #e4f9ff; }
.account-games-count { padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--line); }
.account-games-count strong { font-size: 20px; }
.account-games-count small { display: inline; font-size: 12px; font-weight: 400; }
.account-workspace .connection-setting { padding: 20px; margin: 0; }
.workspace-section-title { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 16px; }
.workspace-section-title .icon { color: var(--accent-bright); }
.account-library { grid-area: library; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line-strong); border-radius: 15px; background: #0c1216; }
.account-library-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-library-head .workspace-section-title { margin: 0; }
.library-bulk { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.library-bulk .check-row { cursor: pointer; }
.library-bulk button:disabled { opacity: .45; cursor: default; }
.account-library .game-picker { grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 340px; }
.account-library .presence-setting { padding: 14px 0 0; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.account-library [data-custom-panel] p { margin-top: 8px; }
.connection-details { margin-top: 12px; color: var(--muted); font-size: 11px; }
.connection-details summary { cursor: pointer; }
.connection-details p { margin-top: 10px; }
.selected-games { color: var(--muted); font-size: 11px; }
.selected-games summary { cursor: pointer; }
.selected-games p { margin-top: 10px; overflow-wrap: anywhere; line-height: 1.7; }
.account-workspace > .slot-actions { grid-area: actions; padding-top: 20px; border-top: 1px solid var(--line); margin: 0; flex-wrap: wrap; }
.account-free-panel { grid-area: library; min-width: 0; border: 1px dashed var(--accent-line); padding: 24px; border-radius: 15px; background: var(--accent-soft); }
.account-free-panel .slot-free-note { margin: 0 0 20px; border: 0; padding: 0; }
@media (max-width: 1200px) { .account-picker { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); } .account-picker--list { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1050px) { .account-workspace { grid-template-columns: minmax(220px,.85fr) minmax(0,1.3fr); gap: 14px; } .account-library .game-picker { grid-template-columns: minmax(0,1fr); } .account-detail { padding: 20px; } }
@media (max-width: 760px) {
  .account-picker { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .account-preview { padding: 13px; }
  .account-workspace { grid-template-columns: minmax(0,1fr); grid-template-areas: "metrics" "library" "connection" "actions"; }
  .account-left-column { display: contents; }
  .account-workspace .connection-setting { grid-area: connection; }
  .account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .account-session-tile, .account-period-tile { padding: 15px; }
  .account-metrics strong { font-size: 21px; }
  .account-detail-header .slot-heading h3 { font-size: 18px; }
  .account-detail-header .slot-meta { margin-left: 0; }
  .account-detail { padding: 16px; }
  .account-library, .account-workspace .connection-setting { padding: 16px; }
  .account-library .game-picker { max-height: 320px; }
  .account-free-panel { grid-column: 1; }
}

/* Landing demo: the same emerald palette as the live cabinet. */
.landing-page .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 42px; }
.hero-details { display: grid; gap: 9px; margin-top: 22px; color: var(--text-soft); font-size: 12px; }
.hero-details > span { display: flex; align-items: center; gap: 9px; }
.hero-details .icon { color: var(--accent); }
.landing-page .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-overview { position: relative; width: 100%; min-width: 0; border: 1px solid var(--accent-line); border-radius: 24px; background: linear-gradient(145deg, #121e25, #080e11 75%); box-shadow: 0 24px 80px rgba(0, 0, 0,.35); overflow: clip; }
.home-overview-body { padding: 23px; }
.home-profile-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.home-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-avatar { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 16px; overflow: hidden; background: linear-gradient(140deg, #284e65, #142733); color: var(--accent-bright); font-size: 23px; font-weight: 800; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-identity-copy { min-width: 0; }
.home-identity-copy .eyebrow { font-size: 8px; letter-spacing: .1em; }
.home-identity-copy h2 { margin: 5px 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.home-identity-copy a { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.home-balance { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 4px; flex: 0 0 auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(3, 7, 9,.4); }
.home-balance > span { color: var(--muted); font-size: 9px; }
.home-balance strong { grid-column: 1; font-variant-numeric: tabular-nums; font-size: 17px; }
.home-balance a { grid-column: 2; grid-row: 1 / 3; padding: 8px 10px; font-size: 10px; min-height: 34px; }
.home-selector { margin-top: 16px; }
.home-selector label { font-size: 10px; }
.home-activity-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 18px 0; }
.home-small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.home-personal-metrics { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 9px; }
.home-personal-metrics > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 14px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(2, 7, 10,.32); }
.home-personal-metrics > div > span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.home-personal-metrics strong { color: #dff8ff; font-size: 27px; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.home-personal-metrics strong em { font-size: 14px; font-style: normal; }
.home-personal-metrics .home-term { font-size: 20px; }
.home-personal-metrics small { color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.home-term-track { margin: 14px 0 20px; }
.home-term-track progress { display: block; width: 100%; height: 4px; border: 0; border-radius: 5px; overflow: hidden; appearance: none; background: #1d2b33; color: var(--accent); }
.home-term-track progress::-webkit-progress-bar { background: #1d2b33; }
.home-term-track progress::-webkit-progress-value { background: linear-gradient(90deg, #108cae, #44c4e7); border-radius: 5px; transition: width .6s; }
.home-term-track progress::-moz-progress-bar { background: var(--accent); }
.home-games-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 12px; }
.home-games-heading h3 { font-size: 12px; }
.home-games-heading a { display: flex; align-items: center; gap: 5px; color: var(--accent-bright); font-size: 10px; }
.home-game-covers { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 20px) / 3); gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.home-game-cover { position: relative; min-width: 0; height: 87px; border: 1px solid var(--line); overflow: hidden; border-radius: 11px; background: linear-gradient(135deg, #253946, #101c23); }
.home-game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.home-game-cover:hover img { transform: scale(1.05); }
.home-game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(1, 5, 8,.9)); pointer-events: none; }
.home-game-cover > span { position: absolute; z-index: 1; bottom: 8px; left: 9px; right: 8px; font-size: 9px; line-height: 1.3; color: #fff; overflow-wrap: anywhere; }
.home-custom-status { margin-top: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 10px; color: var(--accent-bright); overflow-wrap: anywhere; }
.home-hours-note { margin-top: 12px; color: var(--muted-2); font-size: 9px; line-height: 1.6; }
.home-totals { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.home-totals strong { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.home-overview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; margin-top: 17px; }
.home-overview-footer .text-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.home-onboarding { padding-top: 22px; }
.home-onboarding h3 { font-size: 22px; }
.home-onboarding p { margin-top: 10px; font-size: 12px; line-height: 1.75; }
.home-onboarding ol { margin: 20px 0; display: grid; gap: 12px; padding-left: 20px; font-size: 12px; color: var(--text-soft); }
.home-onboarding li::marker { color: var(--accent); }
.home-guest-profile { display: flex; gap: 17px; align-items: flex-start; margin: 5px 0 25px; }
.home-guest-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border: 1px solid var(--accent-line); border-radius: 17px; background: var(--accent-soft); color: var(--accent-bright); }
.home-guest-profile h2 { font-size: 26px; margin-top: 7px; line-height: 1.25; }
.home-guest-profile p { font-size: 11px; line-height: 1.7; margin-top: 10px; }
.home-guest-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 23px 0; }
.home-guest-options > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 12px; }
.home-guest-options .icon { color: var(--accent); }
.home-guest-options strong { font-size: 11px; }
.home-guest-options span { color: var(--muted); font-size: 9px; }
.home-guest-note { margin-top: 13px; font-size: 10px; line-height: 1.6; text-align: center; }
.landing-status-layout { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 45px; }
.landing-status-layout .section-head { margin-bottom: 0; }
.landing-status-layout .section-head > a { margin-top: 23px; }
.landing-status-card { padding: 25px; min-width: 0; }
.home-session-ended { padding: 24px 24px 10px; color: var(--muted); }
.home-overview > .btn { margin: 10px 24px 24px; }
@media (max-width: 1100px) {
  .landing-page .hero { grid-template-columns: minmax(0, 1fr); }
  .landing-page .hero-demo { width: min(680px, 100%); justify-self: center; min-height: 0; margin-block: 16px; }
}
@media (max-width: 900px) {
  .landing-page .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-status-layout { grid-template-columns: 1fr; gap: 25px; }
}
@media (max-width: 480px) {
  .landing-page .feature-grid { grid-template-columns: 1fr; }
  .home-overview-body { padding: 18px 15px; }
  .home-profile-top { flex-wrap: wrap; }
  .home-balance { width: 100%; }
  .home-personal-metrics { grid-template-columns: 1fr 1fr; }
  .home-personal-metrics > div:last-child { grid-column: 1 / -1; }
  .home-personal-metrics strong { font-size: 25px; }
  .home-game-covers { grid-auto-columns: calc((100% - 10px) / 2); }
  .home-guest-profile { gap: 12px; }
  .home-guest-profile h2 { font-size: 23px; }
  .home-guest-options { grid-template-columns: 1fr; }
  .home-guest-options > div { display: grid; grid-template-columns: 25px 1fr; align-items: center; }
  .home-guest-options span { grid-column: 2; }
  .landing-status-card { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-game-cover img, .home-term-track progress::-webkit-progress-value { transition: none; }
}
.landing-page .hero-demo { min-height: 420px; min-width: 0; align-content: center; gap: 20px; }
.demo-glow { position: absolute; inset: 8% 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(16, 161, 201,.14), transparent 68%); pointer-events: none; }
.demo-window { position: relative; width: 100%; min-width: 0; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 22px; background: linear-gradient(150deg, #101b22, #090e11 70%); box-shadow: 0 24px 80px rgba(0, 0, 0,.4), 0 0 70px rgba(16, 161, 201,.06); }
.demo-titlebar { display: flex; align-items: center; gap: 12px; padding: 15px 19px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255,.015); font-size: 10px; color: var(--text-soft); }
.demo-window-dots { display: flex; gap: 5px; }
.demo-window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #384852; }
.demo-tag { margin-left: auto; color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.demo-body { padding: 23px; }
.demo-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.demo-avatar { position: relative; width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #25516d, #15232c); box-shadow: inset 0 0 0 1px rgba(62, 194, 231,.18); font-size: 16px; font-weight: 800; color: #e4f9ff; }
.demo-avatar > span { position: absolute; width: 9px; height: 9px; bottom: -2px; right: -2px; border-radius: 50%; border: 2px solid #101a20; background: var(--accent); }
.demo-profile-name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-profile-name strong { font-size: 16px; }
.demo-profile-name > span { color: var(--muted); font-size: 10px; }
.demo-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-bright); font-size: 9px; font-weight: 700; }
.demo-library-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.demo-game-window:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-game-window { width: 100%; overflow-x: auto; border-radius: 10px; scrollbar-width: thin; }
.demo-game-track { display: flex; width: max-content; gap: 10px; }
.demo-game { position: relative; flex: 0 0 146px; width: 146px; height: 106px; overflow: hidden; border-radius: 10px; background: linear-gradient(140deg, #283e4b, #0e1920); }
.demo-game img { width: 100%; height: 100%; object-fit: cover; }
.demo-game::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 25%, rgba(3, 7, 9,.88)); pointer-events: none; }
.demo-game > span { position: absolute; z-index: 1; left: 11px; right: 9px; bottom: 10px; color: #fff; font-size: 11px; font-weight: 750; line-height: 1.25; text-shadow: 0 1px 3px #000; }
.demo-game.is-copy { display: none; }
.demo-library.is-ready .demo-game-window { overflow: hidden; }
.demo-library.is-ready .demo-game.is-copy { display: block; }
.demo-library.is-ready .demo-game-track { animation: demo-games-scroll 38s linear infinite; }
.demo-library.is-paused .demo-game-track { animation-play-state: paused; }
@keyframes demo-games-scroll { to { transform: translateX(calc(-50% - 5px)); } }
.demo-session { display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.demo-session > div { display: flex; flex-direction: column; gap: 8px; }
.demo-session > div:last-child { text-align: right; }
.demo-session > div > span { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.demo-session strong { font-family: var(--mono, monospace); font-size: 23px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.demo-session > div:last-child strong { font-family: inherit; font-size: 18px; }
.demo-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 23px; font-size: 9px; color: var(--muted); }
.demo-footer > span { display: inline-flex; align-items: center; gap: 5px; }
.demo-footer .icon { color: var(--accent-bright); }
.demo-location { border-radius: 999px; padding: 6px 9px; background: var(--accent-soft); color: var(--accent-bright); }
.demo-note { position: relative; margin: 0; color: var(--muted-2); font-size: 10px; text-align: center; }
@media (max-width: 900px) {
  .landing-page .hero { grid-template-columns: minmax(0, 1fr); }
  .landing-page .hero-demo { width: min(580px, 100%); justify-self: center; min-height: 0; margin-block: 16px; }
}
@media (max-width: 480px) {
  .demo-body { padding: 18px 15px; }
  .demo-titlebar { padding: 13px 15px; gap: 8px; }
  .demo-profile { gap: 9px; }
  .demo-profile-name strong { font-size: 14px; }
  .demo-profile-name > span { font-size: 9px; }
  .demo-status { padding: 5px 7px; font-size: 8px; }
  .demo-game { width: 128px; flex-basis: 128px; height: 100px; }
  .demo-session strong { font-size: 21px; }
  .demo-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-library .demo-game-track { animation: none !important; transform: none !important; }
  .demo-library .demo-game-window { overflow-x: auto; }
  .demo-library .demo-game.is-copy { display: none; }
}

/* Shared password reveal and contained dialog scrolling. */
.password-control { position: relative; width: 100%; min-width: 0; }
.password-control input { padding-right: 50px; }
.password-toggle { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover { color: var(--accent-bright); background: var(--accent-soft); }
.password-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
html:has(dialog[open]), body:has(dialog[open]) { overflow: hidden; }
dialog.modal.modal-contained { padding: 0; overflow: hidden; max-height: min(90dvh, 900px); }
dialog.modal.modal-contained[open] { display: flex; flex-direction: column; }
.modal-contained > .modal-head { flex: 0 0 auto; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-contained > .modal-head .icon-btn { flex-shrink: 0; }
.modal-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 24px; margin: 8px 8px 8px 0; scrollbar-width: thin; scrollbar-color: #3c4f5b transparent; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: #3c4f5b; border-radius: 6px; }
.qty-control { width: 192px; max-width: 100%; }
.qty-control input { min-width: 0; appearance: textfield; }
.qty-control input::-webkit-inner-spin-button, .qty-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.support-empty > p { margin-top: 14px; line-height: 1.7; }
@media (max-width: 600px) {
  .modal-contained > .modal-head { padding: 18px 18px 14px; }
  .modal-body { padding: 0 14px 18px 18px; margin-right: 5px; }
  .empty-actions { flex-direction: column; width: min(100%, 300px); }
}

/* SPECTRUM scrollbars on pages, game libraries, tables and popups. */
:root { color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #354d5c #080e12; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-track { background: #080e12; border-radius: 8px; }
*::-webkit-scrollbar-thumb { background: #354d5c; border-radius: 8px; border: 1px solid #080e12; }
*::-webkit-scrollbar-thumb:hover { background: #16748e; }
*::-webkit-scrollbar-corner { background: #080e12; }
.game-picker { padding-right: 7px; overscroll-behavior: contain; }
.custom-select { position: relative; width: 100%; min-width: 0; }
.custom-select > select[hidden] { display: none !important; }
.select-trigger { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(4, 7, 9,.55); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.select-caption { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; margin: -4px 3px 0 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); }
.select-trigger:hover { border-color: var(--accent-line); }
.select-trigger:focus-visible, .select-trigger[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent-line); }
.select-trigger[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 4px; }
.select-trigger:disabled { opacity: .55; cursor: not-allowed; }
.select-popup { position: fixed; inset: auto; margin: 0; padding: 6px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--accent-line); border-radius: 13px; background: #0c1419; color: var(--text); box-shadow: 0 18px 45px rgba(0, 0, 0,.55); }
.select-popup::backdrop { background: transparent; }
.select-option { position: relative; padding: 11px 32px 11px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; cursor: pointer; }
.select-option:hover:not([aria-disabled="true"]), .select-option.is-active { background: #1a2b36; }
.select-option[aria-selected="true"] { color: var(--accent-bright); background: #102735; font-weight: 650; }
.select-option[aria-selected="true"]::after { content: '✓'; position: absolute; right: 12px; top: 11px; }
.select-option[aria-disabled="true"] { color: var(--muted-2); opacity: .55; cursor: not-allowed; }
.toolbar > .custom-select { width: auto; min-width: 152px; max-width: 240px; }
.toolbar .select-trigger { min-height: 42px; font-size: 12px; }
.folder-select .custom-select { width: auto; max-width: 220px; }
.folder-select .select-trigger { min-height: 22px; padding: 2px 0; border: 0; background: transparent; color: var(--muted); font-size: 10.5px; gap: 8px; }
@media (max-width: 600px) { .toolbar > .custom-select { width: 100%; max-width: none; } }

/* Public service telemetry. Unknown history is deliberately left gray. */
.status-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.status-heading h2 { font-size: 20px; margin-top: 7px; }
.status-heading .badge { white-space: normal; text-align: center; }
.uptime-heading { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.uptime-heading strong { font: 650 28px var(--mono, monospace); color: var(--text); }
.uptime-chart { display: flex; gap: 3px; height: 46px; min-width: 0; }
.uptime-bar { flex: 1; min-width: 0; border-radius: 3px; background: #2b3439; }
.uptime-bar.up { background: var(--accent); }
.uptime-bar.down { background: #ec7777; }
.uptime-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted-2); margin-top: 8px; }
.status-coverage { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 12px; }
.status-components { display: grid; gap: 10px; padding-block: 18px; margin-top: 12px; border-block: 1px solid var(--line); }
.status-components > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.status-components strong { font-size: 11px; }
.status-components [data-state="up"] { color: var(--accent-bright); }
.status-components [data-state="down"] { color: #ec7777; }
.status-components [data-state="unknown"] { color: var(--muted); }
.status-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.status-metrics > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.status-metrics span { font-size: 10px; color: var(--muted); }
.status-metrics strong { font-size: 13px; }
.status-updated { font-size: 10px; color: var(--muted); margin: 18px 0 22px; line-height: 1.6; }
.hero-demo .demo-note { line-height: 1.6; max-width: 540px; }
@media (max-width: 480px) { .uptime-chart { gap: 2px; height: 38px; } .status-heading h2 { font-size: 17px; } .status-heading { align-items: flex-start; } .status-metrics { gap: 8px; } }

/* SPECTRUM branding: existing layouts, shared palette across landing and cabinet. */
:root {
  --bg: #07111f; --bg-soft: #0a1626; --panel: #0c1a2a;
  --panel-2: #102338; --panel-3: #17324b;
  --text: #edf5ff; --text-soft: #c4d5e7; --muted: #91a8bf; --muted-2: #7992ab;
  --accent: #27cde8; --accent-bright: #63e6f5; --accent-deep: #1284d5;
  --accent-soft: rgba(39,205,232,.12); --accent-line: rgba(39,205,232,.34);
  --glow: 0 10px 34px rgba(14,138,227,.2);
}
body.cabinet-page { background: #060e1a; }
.brand { gap: 12px; letter-spacing: -.035em; }
.brand img { width: 48px; height: 48px; border-radius: 0; flex: none; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.1; font-size: 22px; font-weight: 800; }
.brand-wordmark small { margin-top: 5px; font-size: 9px; font-weight: 650; letter-spacing: .29em; color: var(--muted); }
.btn-primary { background: linear-gradient(120deg,#148ee3,#0966c9); border-color: #38b5ed; color: #fff; }
.btn-primary:hover { background: linear-gradient(120deg,#28a7f1,#1379de); box-shadow: 0 12px 34px rgba(24,155,237,.25); }
.gradient-text { background-image: linear-gradient(100deg,#c5faff 0%,#43dbed 48%,#209ce9 100%); }
.pulse-dot { background: var(--accent); }
@media(max-width:600px) { .brand img { width:42px; height:42px; } .brand-wordmark { font-size:19px; } }

/* Live service overview and document links. */
.auth-label-compact { display:none; }
.service-strip { position:relative; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 16px; width:100%; margin-top:14px; padding:14px 18px; border:1px solid var(--line); border-radius:14px; background:#0c1c2cb3; }
.service-strip .badge { font-size:10px; white-space:normal; }
.service-strip-metric { display:flex; align-items:center; gap:8px; font-size:12px; min-width:0; }
.service-strip-metric>span { display:flex; align-items:center; gap:5px; color:var(--muted); }
.service-strip-metric>strong { font-size:14px; color:var(--text-soft); font-variant-numeric:tabular-nums; white-space:nowrap; }
.service-strip-metric .icon { color:var(--muted); }
.service-strip-updated { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(max-width:600px) { .service-strip { padding:12px 14px; gap:10px 14px; } .service-strip .badge { flex-basis:100%; width:max-content; max-width:max-content; } .service-strip-metric { font-size:11px; } }
.hero-status-card { width:100%; padding:28px; background:linear-gradient(145deg,#102238,#091421 75%); border-color:var(--accent-line); box-shadow:0 24px 70px #0003; }
.hero-status-card .status-heading { align-items:flex-start; gap:16px; margin-bottom:25px; }
.hero-status-card .status-heading h2 { font-size:22px; margin-top:8px; letter-spacing:-.03em; }
.hero-status-card .status-heading .badge { margin-top:3px; font-size:11px; }
.status-primary-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
.status-primary-item { display:flex; flex-direction:column; gap:9px; padding:18px; border:1px solid var(--line-strong); border-radius:14px; background:#142d443d; min-width:0; }
.status-primary-item>span { display:flex; align-items:center; gap:7px; color:var(--text-soft); font-size:12px; }
.status-primary-item .icon { color:var(--accent); }
.status-primary-item>strong { color:#d9f8ff; font-size:clamp(30px,3vw,43px); font-weight:720; line-height:1.15; letter-spacing:-.04em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.status-primary-item small { color:var(--muted); font-size:11px; }
.status-chart-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; font-size:11px; color:var(--muted); }
.status-chart-heading>span:first-child { color:var(--text-soft); }
.hero-status-card .uptime-chart { height:42px; }
.hero-status-card .status-coverage { font-size:11px; }
.hero-status-card .status-components { gap:11px; }
.hero-status-card .status-components>div>span { display:flex; align-items:center; gap:9px; }
.hero-status-card .status-components .icon { color:var(--muted); }
.status-secondary-metrics { display:grid; grid-template-columns:.8fr 1.2fr; gap:16px; margin-top:20px; }
.status-secondary-metrics>div { display:flex; flex-direction:column; gap:7px; }
.status-secondary-metrics span { font-size:11px; color:var(--muted); }
.status-secondary-metrics strong { font-size:15px; color:var(--text-soft); font-variant-numeric:tabular-nums; }
.hero-status-card .status-updated { padding-top:16px; margin:18px 0 0; border-top:1px solid var(--line); font-size:11px; }
.footer-legal { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px 28px; border-top:1px solid var(--line); padding-block:22px 28px; }
.footer-legal nav { display:flex; flex-wrap:wrap; gap:12px 26px; }
.footer-legal a { font-size:12px; color:var(--muted); line-height:1.6; }
.footer-legal a:hover { color:var(--accent-bright); }
.footer-legal .footer-contact { color:var(--text-soft); }
.legal-document { padding-block:54px 70px; }
.legal-document-head { max-width:850px; margin-bottom:40px; }
.legal-back { display:block; width:max-content; margin-bottom:30px; color:var(--muted); font-size:14px; }
.legal-document-head h1 { font-size:clamp(30px,4vw,48px); margin:14px 0 18px; overflow-wrap:anywhere; }
.legal-document-head>p { font-size:16px; line-height:1.8; }
.legal-date { display:block; margin-top:18px; font-size:13px; color:var(--muted-2); }
.legal-document-layout { display:grid; grid-template-columns:230px minmax(0,760px); align-items:start; gap:60px; }
.legal-contents { position:sticky; top:105px; display:flex; flex-direction:column; gap:15px; border-left:1px solid var(--line-strong); padding-left:18px; }
.legal-contents a { color:var(--muted); font-size:14px; line-height:1.6; }
.legal-contents a:hover { color:var(--accent-bright); }
.legal-document-body { min-width:0; }
.legal-document-body section { margin-bottom:36px; scroll-margin-top:110px; }
.legal-document-body h2 { font-size:23px; margin-bottom:16px; }
.legal-document-body p, .legal-document-body li { color:var(--text-soft); font-size:16px; line-height:1.85; }
.legal-document-body p+p { margin-top:14px; }
.legal-document-body ul { list-style:disc; padding-left:22px; margin-top:14px; }
.legal-document-body li+li { margin-top:12px; }
.legal-contact-card { padding:24px; border:1px solid var(--accent-line); background:var(--accent-soft); border-radius:16px; }
.legal-contact-card>strong { font-size:18px; }
.legal-contact-card>p { font-size:14px; margin-top:8px; }
.legal-contact-card>a { display:inline-block; font-size:16px; color:var(--accent-bright); margin-top:10px; overflow-wrap:anywhere; }
.legal-document-body .legal-related { display:flex; flex-wrap:wrap; gap:12px 22px; padding-top:24px; font-size:13px; }
.legal-related a { color:var(--muted); }
@media(max-width:900px) { .legal-document-layout { grid-template-columns:1fr; gap:32px; } .legal-contents { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .hero-status-card { padding:22px 18px; }
  .hero-status-card .status-heading { flex-direction:column; gap:12px; margin-bottom:20px; }
  .status-primary-item { padding:14px 12px; }
  .status-primary-item>span { font-size:11px; }
  .status-primary-item>strong { font-size:30px; }
  .status-primary-item small { font-size:10px; }
  .hero-status-card .uptime-chart { gap:2px; }
  .footer-legal, .footer-legal nav { flex-direction:column; align-items:flex-start; gap:14px; }
  .legal-document { padding-top:32px; }
  .legal-contents { grid-template-columns:1fr; }
  .legal-document-body h2 { font-size:21px; }
}
@media(max-width:380px) {
  .site-header .auth-label-full { display:none; }
  .site-header .auth-label-compact { display:inline; }
  .site-header .brand img { width:36px; height:36px; }
  .site-header .brand { gap:8px; }
  .site-header .brand-wordmark { font-size:17px; }
  .site-header .header-inner { gap:10px; }
  .site-header .header-actions .btn { max-width:90px; white-space:normal; text-align:center; line-height:1.2; }
}
