:root {
  --bg: #000;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(12, 12, 14, 0.75);
  --glass-inset: rgba(0, 0, 0, 0.35);
  --blur: blur(28px) saturate(150%);
  --blur-sm: blur(16px) saturate(140%);
  --shine: inset 0 1px 0 rgba(255, 255, 255, 0.11), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #ededed;
  --muted: #8a8a8a;
  --dim: #555;
  --blue: #3b82f6;
  --blue-soft: #60a5fa;
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1100px;
  --max-admin: 1280px;
  --gutter: 1.25rem;
  --nav-h: 64px;
  --btn-h: 2.5rem;
  --btn-h-sm: 2rem;
  --btn-h-lg: 2.875rem;
  --input-h: 2.75rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
body.page-ready { opacity: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { background: none; border: none; color: inherit; }

/* ── Background ── */
.bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-aurora {
  background:
    radial-gradient(ellipse 55% 45% at 50% -15%, rgba(59, 130, 246, 0.06), transparent 65%),
    radial-gradient(ellipse 40% 30% at 100% 50%, rgba(255, 255, 255, 0.02), transparent 55%),
    linear-gradient(180deg, #000 0%, #040404 50%, #000 100%);
}
.bg-glow {
  background: radial-gradient(circle 600px at 30% 40%, rgba(255, 255, 255, 0.02), transparent 70%);
}
.bg-noise {
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}
.cursor-glow { display: none; }

.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.layout, .container {
  width: min(var(--max), 92vw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container { flex: 1; padding-bottom: 4rem; }

/* ── Liquid glass base ── */
.glass-surface {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  box-shadow: var(--shine), var(--shadow);
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shine);
}
.nav.nav-scrolled { background: rgba(255, 255, 255, 0.05); }

.nav-bar {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { width: 32px; height: 32px; display: block; }
.brand-name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.02em; }
.brand-sub { display: block; font-size: 0.65rem; color: var(--dim); }

.nav-links {
  display: flex; align-items: center; gap: 0.2rem;
  flex: 1; justify-content: center;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav-link .icon { width: 15px; height: 15px; opacity: 0.5; }
.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-link.active {
  color: var(--text);
  background: var(--glass-hover);
  box-shadow: var(--shine);
}
.nav-link.active .icon { opacity: 1; color: var(--blue-soft); }

.nav-actions { display: flex; align-items: center; gap: 0.45rem; flex-shrink: 0; max-width: 42%; }
.nav-actions .btn-sm { max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 800px) {
  .nav-links .nav-link.hide-sm { display: none; }
  .brand-sub { display: none; }
  .nav-links { justify-content: flex-start; overflow-x: auto; }
  .nav-actions { max-width: 55%; }
}

/* ── Buttons ── */
.btn, a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  min-height: var(--btn-h);
  border-radius: var(--radius);
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  color: #fff;
  background: var(--glass-hover);
  border-color: rgba(59, 130, 246, 0.35);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine), 0 0 20px rgba(59, 130, 246, 0.08);
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
}

.btn-outline, .btn-ghost:hover, .btn-hero {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine);
}
.btn-outline:hover, .btn-hero:hover {
  background: var(--glass-hover);
  border-color: var(--border-hover);
}

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

.btn-ms {
  background: var(--glass);
  border: 1px solid var(--border);
  color: #fff;
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine);
}
.btn-ms:hover { border-color: var(--border-hover); background: var(--glass-hover); }

.btn-danger {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  backdrop-filter: var(--blur-sm);
}

.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8125rem; min-height: var(--btn-h-sm); }
.btn-lg { padding: 0.8rem 1.45rem; font-size: 0.9375rem; min-height: var(--btn-h-lg); }
.btn-xs { padding: 0.35rem 0.6rem; font-size: 0.7rem; min-height: 1.85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-arrow { display: none; }

.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: scale(0);
  animation: ripple 0.45s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.5); opacity: 0; } }

/* ── Type ── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h3 { font-size: 1rem; }

.text-grad {
  background: linear-gradient(135deg, #eee 25%, var(--blue-soft) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1rem; max-width: 34rem; line-height: 1.7; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.75rem; font-weight: 600; color: var(--dim);
  margin-bottom: 0.75rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}

.label {
  display: block; font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--dim); margin-bottom: 0.4rem;
}
.text-sm { font-size: 0.875rem; }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.font-bold { font-weight: 700; }
.mono { font-family: var(--mono); word-break: break-all; }
.accent { color: var(--blue-soft); }

.cmd-chip {
  font-family: var(--mono); font-size: 0.78rem;
  padding: 0.12rem 0.45rem;
  background: var(--glass-inset);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  box-shadow: var(--shine);
}

/* ── Icons ── */
.icon { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine);
}
.icon-box svg { width: 20px; height: 20px; }
.icon-box-sm { width: 40px; height: 40px; }
.icon-box-sm svg { width: 18px; height: 18px; }
.icon-top { margin-bottom: 1rem; }

/* ── Badges ── */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.7rem; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  color: var(--muted);
  box-shadow: var(--shine);
}
.badge-live { color: var(--success); border-color: rgba(52,211,153,0.28); }
.badge-live .badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.badge-blue { color: var(--blue-soft); border-color: rgba(59,130,246,0.28); }

/* ── Cards (liquid glass) ── */
.card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shine), var(--shadow);
  transition: border-color 0.2s, background 0.2s;
}
.card::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.card { position: relative; }
.card > * { position: relative; z-index: 1; }

.card-hover:hover {
  border-color: var(--border-hover);
  background: var(--glass-hover);
}
.card-glow { border-color: rgba(59,130,246,0.22); }
.card-flush { padding: 0; overflow: hidden; }
.card-body { padding: 1.35rem; }
.card-compact { padding: 1.1rem; }
.card-loading { padding: 3rem 1.5rem; text-align: center; }

.card-head {
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--dim);
  background: rgba(255,255,255,0.025);
  backdrop-filter: var(--blur-sm);
}

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: center;
  padding: 2.5rem 0 3rem;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
  .hero-panel { order: -1; }
}
.hero-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
.hero-desc { color: var(--muted); margin-bottom: 1.5rem; max-width: 32rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-card { text-align: center; }
.hero-card img { width: 64px; height: 64px; margin-bottom: 1.25rem; }
.hero-module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; text-align: left; }
.hero-module-cell {
  padding: 0.65rem 0.75rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  color: var(--muted);
  background: var(--glass-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine);
}

/* ── Page head ── */
.page-head { padding: 2.5rem 0 1.75rem; }
.page-head h1 { margin-top: 0.35rem; }
.page-head .lead { margin-top: 0.65rem; }
.page-head-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1rem;
}
.page-head-row > div:first-child { flex: 1; min-width: 0; }
.page-head-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
@media (max-width: 640px) {
  .page-head-row { flex-direction: column; align-items: stretch; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; min-width: 0; }
}

/* ── Sections ── */
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head .lead { margin: 0.5rem auto 0; }

.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar { display: flex; flex-direction: column; min-height: 100%; }
.pillar .icon-box { margin-bottom: 1rem; }
.pillar h3 { margin-bottom: 0.45rem; }
.pillar p { flex: 1; }

.steps-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
@media (max-width: 768px) { .steps-strip { grid-template-columns: 1fr; } }
.step-strip-item h3 { margin-bottom: 0.4rem; font-size: 0.95rem; }

.cta-banner {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur);
  box-shadow: var(--shine), var(--shadow);
}
.cta-banner h2 { margin-bottom: 0.5rem; }
.cta-banner p { color: var(--muted); margin-bottom: 1.25rem; }

/* ── Forms ── */
.field { margin-bottom: 1rem; }
.field-tight { margin-bottom: 0.75rem; }
.field-flush { margin-bottom: 0; }

.input, select.input {
  width: 100%; padding: 0.7rem 0.95rem;
  min-height: var(--input-h);
  line-height: 1.35;
  background: var(--glass-inset);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font); font-size: 0.9375rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), var(--shine);
  transition: border-color 0.15s;
  appearance: none;
}
.input:focus, select.input:focus {
  outline: none;
  border-color: rgba(59,130,246,0.4);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.25), 0 0 0 2px rgba(59,130,246,0.1);
}
.input::placeholder { color: var(--dim); }
.input-code { text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--mono); }
.form-error { color: var(--danger); font-size: 0.8125rem; margin-top: 0.35rem; min-height: 1.1rem; }
.link-accent { color: var(--blue-soft); font-weight: 600; }
.link-accent:hover { color: var(--blue); }
.w-narrow { max-width: 280px; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.feature-card { display: flex; flex-direction: column; height: 100%; }
.feature-card .icon-box { margin-bottom: 0.85rem; }
.feature-card .label { margin-bottom: 0.35rem; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { flex: 1; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.feature-tag {
  font-family: var(--mono); font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: var(--glass-inset);
  border: 1px solid var(--border);
  border-radius: 4px; color: var(--dim);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.module-item {
  padding: 1rem;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shine);
}
.module-item-head {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.module-item-head h4 { font-size: 0.875rem; margin: 0; }
.icon-box-xs {
  width: 32px; height: 32px;
  border-radius: 8px;
}
.icon-box-xs svg { width: 16px; height: 16px; }
.module-item h4 { font-size: 0.875rem; margin-bottom: 0.3rem; }
.module-item p { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.4rem; }
.module-cmd {
  display: block;
  font-family: var(--mono); font-size: 0.62rem; color: var(--dim);
  line-height: 1.55;
  word-break: break-word;
  padding: 0.35rem 0.5rem;
  margin-top: 0.15rem;
  background: var(--glass-inset);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

/* ── Servers ── */
#server-grid { display: grid; gap: 1rem; }
.server-card { cursor: pointer; width: 100%; text-align: left; color: inherit; font: inherit; }
.server-card.locked { opacity: 0.4; cursor: not-allowed; }
.server-card.locked:hover { border-color: var(--border); background: var(--glass); }
.server-card.selected {
  border-color: rgba(59,130,246,0.4);
  box-shadow: var(--shine), 0 0 24px rgba(59,130,246,0.08);
}
.server-card.featured { grid-column: 1 / -1; }
@media (min-width: 769px) {
  .server-card.featured { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
}
.server-icon-wrap {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur-sm);
  box-shadow: var(--shine);
  color: var(--muted);
}
.server-icon-wrap svg { width: 26px; height: 26px; }
.server-card:not(.featured) .server-icon-wrap { margin-bottom: 0.85rem; }
.server-badge {
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.65rem; font-weight: 600;
  padding: 0.22rem 0.5rem; border-radius: 5px;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
}
.server-badge.badge-live { color: var(--success); border: 1px solid rgba(52,211,153,0.28); }
.badge-soon { color: var(--dim); border: 1px solid var(--border); }
.server-features { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.75rem; }
.server-desc { margin-top: 0.5rem; }
.server-host { margin-top: 0.85rem; color: var(--dim); }

/* ── Dashboard ── */
.stepper {
  display: flex; justify-content: space-between;
  margin-bottom: 1.75rem; padding: 1rem 1.25rem;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shine);
}
.step-item { flex: 1; text-align: center; min-width: 0; }
.step-dot {
  width: 32px; height: 32px;
  margin: 0 auto 0.4rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  background: var(--glass-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--dim);
  box-shadow: var(--shine);
}
.step-item.active .step-dot {
  border-color: rgba(59,130,246,0.4);
  color: var(--text);
  background: var(--glass-hover);
}
.step-item.done .step-dot { border-color: var(--success); color: var(--success); }
.step-label { font-size: 0.65rem; font-weight: 600; color: var(--dim); text-transform: uppercase; }
.step-item.active .step-label { color: var(--text); }
.step-item.done .step-label { color: var(--success); }
@media (max-width: 520px) {
  .stepper { padding: 0.85rem 0.65rem; gap: 0.15rem; }
  .step-dot { width: 28px; height: 28px; font-size: 0.68rem; }
  .step-label { font-size: 0.58rem; letter-spacing: 0.01em; }
}

.panel-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.panel-head-main { display: flex; gap: 1rem; align-items: flex-start; flex: 1; min-width: 0; }
.panel-head-main .icon-box { margin: 0; flex-shrink: 0; }
.panel-head-text h2 { margin-bottom: 0.35rem; }
.panel-head-text p { margin: 0; }

.instruction-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.instruction-list-flush { margin: 0; }
.instruction-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  font-size: 0.875rem; color: var(--muted);
  padding: 0.65rem 0.85rem;
  background: var(--glass-inset);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shine);
}
.instruction-num {
  flex-shrink: 0; width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: var(--dim);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.code-box {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
  letter-spacing: 0.1em; text-align: center;
  padding: 1.1rem; margin: 0.75rem 0;
  background: var(--glass-inset);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), var(--shine);
  user-select: all;
}
.code-box-sm { font-size: 1.25rem; letter-spacing: 0.08em; }
.code-box-md { font-size: 1rem; letter-spacing: 0.03em; }

.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem; font-weight: 600;
  border-radius: 6px;
  backdrop-filter: var(--blur-sm);
}
.status-pill.ok { color: var(--success); background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.22); }
.status-pill.pending { color: var(--warn); background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.18); }

.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 1rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Terminal card ── */
.terminal-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding-bottom: 0.75rem; margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem; color: var(--dim);
}
.tdot { width: 8px; height: 8px; border-radius: 50%; }
.tdot-r { background: #ef4444; }
.tdot-y { background: #eab308; }
.tdot-g { background: #22c55e; }

/* ── Auth ── */
.auth-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 2rem);
  padding: 2rem 0;
}
@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; min-height: auto; }
  .auth-side { display: none; }
}
.auth-perks { list-style: none; margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.auth-perk {
  display: flex; gap: 0.75rem; align-items: center;
  font-size: 0.875rem; color: var(--muted);
  padding: 0.65rem 0.85rem;
  background: var(--glass);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shine);
}
.auth-perk .icon-box { flex-shrink: 0; }
.auth-card { padding: 0; overflow: hidden; }
.auth-card-inner { padding: 1.5rem; }
.auth-card-inner .btn-block { width: 100%; }
.auth-logo {
  width: 52px; height: 52px; margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}
.auth-title { font-size: 1.55rem; }
.auth-subtitle { margin-top: 0.45rem; }

/* ── Footer ── */
.footer {
  padding: 1.75rem 0; margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  backdrop-filter: var(--blur-sm);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.8125rem; color: var(--dim);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.25rem; }

/* ── Toast ── */
.toast {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 300;
  padding: 0.75rem 1.1rem;
  background: var(--glass-strong);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: var(--shine), var(--shadow);
  font-size: 0.875rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.reveal-stagger > *.is-visible { opacity: 1; transform: none; }
.reveal-stagger > *:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.13s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.23s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.28s; }
.reveal-delay-1 { transition-delay: 0.06s !important; }
.reveal-delay-2 { transition-delay: 0.12s !important; }
.reveal-delay-3 { transition-delay: 0.18s !important; }

/* ── Utilities ── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-section { margin-bottom: 2rem; }
.mt-section { margin-top: 2rem; }
.gap-1 { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.gap-center { justify-content: center; }
.stack { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.panel-actions { margin-top: 1rem; }
.container > .card + .card { margin-top: 1rem; }
#panel-ms .btn-ms { width: 100%; max-width: 22rem; }
#ms-code-panel .btn { margin-top: 0.75rem; width: 100%; max-width: 20rem; margin-left: auto; margin-right: auto; }

.gap-1 .btn { min-width: 7.5rem; }

.complete-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem;
  max-width: 540px; margin: 0 auto 1.25rem; text-align: left;
}
@media (max-width: 640px) { .complete-grid { grid-template-columns: 1fr; } }
.panel-done-actions {
  display: flex; flex-wrap: wrap; gap: 0.65rem;
  justify-content: center; align-items: stretch;
  max-width: 28rem; margin: 0 auto;
}
.panel-done-actions .btn {
  flex: 1 1 10.5rem;
  min-height: var(--btn-h);
  justify-content: center;
}

.polling-hint { font-size: 0.8125rem; color: var(--dim); margin-top: 0.75rem; text-align: center; }
.done-icon { width: 56px; height: 56px; margin: 0 auto 0.85rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 768px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.pricing-card-head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  backdrop-filter: var(--blur-sm);
}
.pricing-card-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.pricing-card-body .btn { margin-top: auto; min-height: var(--btn-h-lg); }
.pricing-featured { border-color: rgba(59,130,246,0.28); }
.pricing-featured .pricing-card-head { background: rgba(59,130,246,0.05); }
.pricing-badge { font-size: 0.68rem; font-weight: 600; color: var(--dim); margin-bottom: 0.35rem; display: block; }
.pricing-badge.featured { color: var(--success); }
.pricing-price { margin: 0.5rem 0 0.75rem; }
.pricing-amount { font-size: 2.25rem; font-weight: 700; }
.pricing-period { color: var(--muted); }
.pricing-features { list-style: none; margin: 1rem 0; flex: 1; }
.pricing-features li {
  padding: 0.4rem 0; font-size: 0.875rem; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.btn-disabled { pointer-events: none; opacity: 0.4; }

/* ── Admin ── */
.admin-page.container {
  width: min(var(--max-admin), 94vw);
  max-width: var(--max-admin);
}
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; margin-bottom: 1.25rem;
}
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }
.admin-stat {
  text-align: center;
  padding: 1rem 0.85rem;
}
.admin-stat-val { font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 700; line-height: 1.1; }
.admin-stat-label { font-size: 0.68rem; color: var(--muted); margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }

.admin-section { margin-bottom: 1.25rem; }
.admin-toolbar {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem;
}
.admin-toolbar h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.admin-search {
  width: min(100%, 300px); margin: 0;
  flex: 1 1 220px;
}
@media (max-width: 560px) {
  .admin-toolbar { align-items: stretch; }
  .admin-search { width: 100%; flex: 1 1 100%; }
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--glass-inset);
  backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shine);
}
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.8125rem; }
.admin-table th, .admin-table td {
  padding: 0.7rem 0.85rem; text-align: left; vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table th {
  color: var(--muted); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.admin-th-actions { text-align: right; width: 9.5rem; }
.admin-empty { text-align: center; color: var(--muted); padding: 2rem 1rem !important; }
.admin-user-cell { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.admin-user-cell strong { font-size: 0.84rem; }
.admin-user-email { font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.admin-gamertag { font-size: 0.75rem; max-width: 10rem; display: inline-block; }
.admin-row-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 0.35rem; flex-wrap: wrap;
}
.admin-row-actions .btn { min-width: 0; flex: 0 1 auto; }
.admin-row-actions .btn-outline {
  border-color: var(--border);
  background: var(--glass);
}
.admin-row-actions .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.admin-row-actions .btn-ghost:hover {
  color: var(--text);
  background: var(--glass);
  border-color: var(--border);
}
@media (max-width: 720px) {
  .admin-row-actions { flex-direction: column; align-items: stretch; }
  .admin-row-actions .btn { width: 100%; justify-content: center; }
}

.admin-pill {
  display: inline-block; padding: 0.2rem 0.5rem;
  font-size: 0.65rem; font-weight: 600; border-radius: 5px;
  white-space: nowrap;
}
.admin-pill-life { color: var(--success); background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.22); }
.admin-pill-month { color: var(--blue-soft); background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); }
.admin-pill-muted { color: var(--dim); background: var(--glass); border: 1px solid var(--border); }

.admin-tools {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 1.25rem;
}
@media (max-width: 1100px) { .admin-tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .admin-tools { grid-template-columns: 1fr; } }
.admin-tool-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 100%; }
.admin-tool-head {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.admin-tool-head h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.admin-tool-head p { font-size: 0.8125rem; }
.admin-tool-body { padding: 1.15rem; flex: 1; }
.admin-tool-body .field { margin-bottom: 0.8rem; }
.admin-tool-foot { padding: 0 1.15rem 1.15rem; }
.admin-tool-foot .btn { width: 100%; min-height: var(--btn-h); }
.admin-ban-section { margin: 0 1.15rem 1.15rem; padding-top: 0.85rem; border-top: 1px solid var(--border); }
.admin-ban-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; max-height: 180px; overflow-y: auto; }
.admin-ban-item {
  display: flex; justify-content: space-between; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.7rem; min-height: 2.5rem;
  background: var(--glass-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.admin-ban-item .mono { font-size: 0.78rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.admin-ban-item .btn { flex-shrink: 0; }
.admin-ban-empty { font-size: 0.8125rem; color: var(--muted); padding: 0.5rem 0; }
.admin-denied { text-align: center; padding: 2.5rem 1.5rem; max-width: 400px; margin: 2rem auto; }

.stack .btn-hero, #btn-continue {
  min-width: min(100%, 18rem);
  padding-left: 1.5rem; padding-right: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  body, .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}