:root {
  --bg: #06080d;
  --bg2: #0c1018;
  --panel: #121826;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #eef3ff;
  --soft: #a8b3c9;
  --muted: #6f7b93;
  --accent: #3d8bfd;
  --accent2: #6aa8ff;
  --good: #3ecf8e;
  --warn: #f0b429;
  --bad: #f07178;
  --radius: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1140px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, .mono { font-family: var(--mono); }

.fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(61, 139, 253, 0.16), transparent 55%),
    radial-gradient(700px 360px at 92% 0%, rgba(62, 207, 142, 0.07), transparent 50%),
    linear-gradient(180deg, #0a0e16, var(--bg) 40%, #04060a);
}
.top, main, .foot { position: relative; z-index: 1; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Top */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, 0.84);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.logo img { border-radius: 9px; }
.logo em { font-style: normal; color: var(--accent2); font-weight: 700; }
.nav { display: flex; gap: 14px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav a { color: var(--soft); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.badge {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--soft); background: rgba(255,255,255,0.03);
}
.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 11px;
  border: 1px solid transparent; background: var(--panel); color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.accent { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #041018; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 0.88rem; }
.btn.lg { min-height: 48px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.linkish { border: 0; background: none; color: var(--accent2); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Panels / sections */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.sec { padding: 72px 0; }
.sec.dim { background: rgba(255,255,255,0.015); border-block: 1px solid var(--line); }
.sec-h { max-width: 40rem; margin-bottom: 26px; }
.sec-h h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.sec-h p { margin: 0; color: var(--soft); }
.eyebrow { margin: 0 0 8px; color: var(--accent2); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line); color: var(--soft); }
.pill.ok { color: var(--good); border-color: rgba(62,207,142,.35); background: rgba(62,207,142,.1); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: stretch; }
.hero h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 3.9rem); letter-spacing: -0.035em; line-height: 1.05; }
.lede { color: var(--soft); font-size: 1.08rem; max-width: 38rem; }
.hero-points { margin: 18px 0 22px; padding: 0; list-style: none; color: var(--soft); }
.hero-points li { margin: 0 0 8px; padding-left: 14px; border-left: 2px solid rgba(61,139,253,.45); }
.live-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.live-metrics span { display: block; color: var(--muted); font-size: .78rem; }
.live-metrics strong { font-size: 1.35rem; }
.live-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin: 14px 0 10px; }
.live-bar.tall { height: 10px; }
.live-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--good)); transition: width .35s ease; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 rgba(62,207,142,.4); }
.dot.on { background: var(--good); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(62,207,142,.45)} 70%{box-shadow:0 0 0 10px transparent} 100%{box-shadow:0 0 0 0 transparent} }

/* Pricing */
.pricing { display: grid; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg2); color: var(--soft);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; cursor: pointer;
}
.chip.on { background: rgba(61,139,253,.18); border-color: rgba(61,139,253,.45); color: var(--ink); }
.calc { display: grid; gap: 12px; }
#seat-range { width: 100%; accent-color: var(--accent); }
.calc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.calc-grid > div, .tile {
  padding: 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line);
}
.calc-grid span, .tile span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.sum { color: var(--good); font-size: 1.25rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: .78rem; font-weight: 600; }

/* Downloads */
.switch { display: inline-flex; gap: 6px; padding: 4px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 16px; }
.tab { border: 0; background: transparent; color: var(--soft); font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 10px; cursor: pointer; }
.tab.on { background: rgba(61,139,253,.2); color: var(--ink); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dl {
  display: grid; gap: 6px; padding: 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.dl:hover { transform: translateY(-2px); border-color: rgba(61,139,253,.4); text-decoration: none; }
.dl .os { color: var(--accent2); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.dl span:last-child { color: var(--muted); font-size: .9rem; }
.link { display: inline-block; margin-top: 14px; font-weight: 700; }

/* Status */
.status-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.stat-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.stat-top h3 { margin: 4px 0 0; font-size: 2rem; letter-spacing: -0.03em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.steps { margin: 0 0 14px; padding-left: 18px; color: var(--soft); }
.steps li { margin-bottom: 8px; }
.copy {
  display: inline; border: 0; background: rgba(61,139,253,.14); color: var(--accent2);
  font: inherit; font-weight: 700; font-family: var(--mono); border-radius: 8px; padding: 2px 8px; cursor: pointer;
}
.toast { color: var(--good); font-weight: 600; }
.toast[hidden], .form-msg[hidden], [hidden] { display: none !important; }
.online-box { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.online-h { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.online-list, .ban-list, .links, .lic-list { list-style: none; margin: 0; padding: 0; }
.online-list { max-height: 180px; overflow: auto; }
.online-list li, .ban-list li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--soft); font-size: .92rem;
}
.links li { margin-bottom: 8px; }
.links a { font-weight: 700; color: var(--soft); }

/* Guide */
.guide-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.steps-col { display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 42px 1fr; gap: 14px;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.step > b {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(61,139,253,.16); color: var(--accent2);
}
.step h3 { margin: 0 0 8px; }
.code {
  margin: 0; padding: 12px 14px; border-radius: 12px; background: #05070c;
  border: 1px solid var(--line); overflow-x: auto; color: #d7e0f5;
  font-family: var(--mono); font-size: .8rem; line-height: 1.45; white-space: pre-wrap;
}
.sticky { position: sticky; top: 84px; height: fit-content; }

/* Cabinet */
.empty { text-align: center; padding: 36px 20px; border-style: dashed; }
.cab-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.cab-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.lic-list { display: grid; gap: 10px; }
.lic-item {
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0,0,0,.2); display: grid; gap: 8px;
}
.lic-item code { font-family: var(--mono); font-size: .85rem; word-break: break-all; color: #dce7ff; }
.lic-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .85rem; }
.lic-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Ops */
.row-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.ops-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 14px 0; }
.ops-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form { display: grid; gap: 12px; }
.form.compact { margin-bottom: 12px; }
.form label { display: grid; gap: 6px; color: var(--soft); font-size: .9rem; font-weight: 600; }
.form input {
  min-height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: #0a0e16; color: var(--ink); padding: 0 12px; font: inherit;
}
.form input:focus { outline: 2px solid rgba(61,139,253,.45); border-color: transparent; }
.form-msg { margin: 10px 0 0; font-size: .9rem; font-weight: 600; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--good); }
.switch-line { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 20px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.foot h4 { margin: 0 0 10px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; color: var(--soft); margin-bottom: 6px; font-weight: 600; }
.foot-logo { margin-bottom: 10px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 22px;
  padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}

/* Modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(100%, 420px); padding: 22px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow);
}
.modal-card h2 { margin: 0 0 14px; }
.x {
  position: absolute; top: 10px; right: 12px; border: 0; background: transparent;
  color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1;
}
body.modal-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav { display: none; }
  .top.is-open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 64px;
    background: rgba(10,14,22,.98); border-bottom: 1px solid var(--line); padding: 12px 16px 16px; gap: 12px;
  }
  .burger { display: inline-grid; place-items: center; }
  .hero-grid, .status-grid, .guide-grid, .cab-grid, .ops-grid, .dl-grid, .calc-grid, .foot-grid, .ops-metrics, .row-form {
    grid-template-columns: 1fr;
  }
  .sticky { position: static; }
}
