/* =========================================================
   NebulaPlay — Cloud Gaming UI
   Custom dark theme, neon accents, angular cuts
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Surfaces */
  --bg-deep:        #050510;
  --bg-base:        #0A0A18;
  --bg-surface:     #11112A;
  --bg-elevated:    #181838;
  --bg-glass:       rgba(20, 20, 50, 0.55);

  /* Accents */
  --accent-cyan:    #34D2F2;
  --accent-violet:  #8B5CF6;
  --accent-magenta: #FF3DA1;
  --accent-amber:   #FFB547;
  --play-green:     #2BD96A;

  /* Text */
  --text-primary:   #ECECF2;
  --text-secondary: #A1A4C2;
  --text-muted:     #6B6E8A;

  /* Borders */
  --border-soft:    rgba(255, 255, 255, 0.06);
  --border-mid:     rgba(255, 255, 255, 0.12);
  --border-strong:  rgba(255, 255, 255, 0.2);
  --border-cyan:    rgba(52, 210, 242, 0.45);
  --border-magenta: rgba(255, 61, 161, 0.45);

  /* Shadows */
  --shadow-soft:    0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-cyan:    0 0 32px rgba(52, 210, 242, 0.35);
  --shadow-magenta: 0 0 32px rgba(255, 61, 161, 0.35);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Layout */
  --container: 1320px;
  --container-narrow: 880px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global cosmic background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 15% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(ellipse 900px 500px at 95% 0%, rgba(52, 210, 242, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 800px at 50% 110%, rgba(255, 61, 161, 0.08), transparent 60%);
  z-index: -2;
  pointer-events: none;
}

/* Subtle grid overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* Noise texture */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* =========================================================
   Typography
   ========================================================= */
.display, h1, h2, h3, h4 {
  font-family: 'Russo One', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.7rem, 2.9vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); }

.mono { font-family: 'JetBrains Mono', monospace; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  padding: 6px 12px;
  background: rgba(52, 210, 242, 0.06);
  border: 1px solid var(--border-cyan);
  border-radius: 999px;
}

.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.text-magenta { color: var(--accent-magenta); }
.text-green { color: var(--play-green); }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   Top navigation — floating
   ========================================================= */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin: 16px auto 0;
  max-width: calc(var(--container) - 32px);
  padding: 0 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 16px 12px 20px;
  background: rgba(10, 10, 24, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Russo One', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}
.brand-logo {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet) 60%, var(--accent-magenta));
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
  position: relative;
}
.brand-logo svg { width: 18px; height: 18px; }

.brand-text .accent { color: var(--accent-cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  cursor: pointer;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--accent-cyan); }

.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-bg: rgba(255,255,255,0.06);
  --btn-color: var(--text-primary);
  --btn-border: var(--border-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--btn-bg);
  color: var(--btn-color);
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: rgba(255,255,255,0.10); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, #4DDDFB 0%, #34D2F2 40%, #6CA8FF 100%);
  --btn-color: #051528;
  --btn-border: transparent;
  box-shadow: 0 0 0 1px rgba(52, 210, 242, 0.4), 0 14px 30px -10px rgba(52, 210, 242, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(52, 210, 242, 0.7), 0 18px 36px -8px rgba(52, 210, 242, 0.6);
  background: linear-gradient(135deg, #5DE6FF 0%, #34D2F2 40%, #7AB1FF 100%);
}

.btn-play {
  --btn-bg: linear-gradient(135deg, #45FF8C 0%, #2BD96A 100%);
  --btn-color: #052612;
  --btn-border: transparent;
  box-shadow: 0 0 0 1px rgba(43, 217, 106, 0.4), 0 14px 30px -10px rgba(43, 217, 106, 0.55);
}
.btn-play:hover {
  background: linear-gradient(135deg, #58FF99 0%, #34E573 100%);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text-primary);
  --btn-border: var(--border-mid);
}

.btn-magenta {
  --btn-bg: linear-gradient(135deg, #FF6BBE, #FF3DA1);
  --btn-color: #2C0518;
  --btn-border: transparent;
  box-shadow: 0 0 0 1px rgba(255, 61, 161, 0.4), 0 14px 30px -10px rgba(255, 61, 161, 0.55);
}

.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, #34D2F2 0%, #8B5CF6 50%, #FF3DA1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 520px;
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.hero-meta .stat-num {
  font-family: 'Russo One', sans-serif;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #34D2F2, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-meta .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Hero visual — animated console mockup */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.45), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(52, 210, 242, 0.35), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 61, 161, 0.18), transparent 60%),
    #0C0C20;
  border: 1px solid var(--border-mid);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(139, 92, 246, 0.1);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0, rgba(255,255,255,0.04) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.console-frame {
  position: absolute;
  inset: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10,10,30,0.65), rgba(10,10,30,0.95));
  border: 1px solid var(--border-mid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.console-bar .light {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-magenta); box-shadow: 0 0 10px var(--accent-magenta);
}
.console-bar .light.cyan { background: var(--accent-cyan); box-shadow: 0 0 10px var(--accent-cyan); }
.console-bar .light.green { background: var(--play-green); box-shadow: 0 0 10px var(--play-green); }

.console-body {
  flex: 1;
  position: relative;
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
}

.console-stage {
  position: relative;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 40% 30%, rgba(255, 61, 161, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(52, 210, 242, 0.3), transparent 60%),
    linear-gradient(135deg, #1A0A2E, #0A1A2A 60%);
  overflow: hidden;
}
.console-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 6px);
  opacity: 0.45;
}
.console-stage svg.silhouette { position: absolute; inset: 0; width: 100%; height: 100%; }

.console-hud {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-primary);
  pointer-events: none;
}
.console-hud .hud-row {
  display: flex; justify-content: space-between; gap: 12px;
}
.hud-chip {
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border-mid);
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}
.hud-chip .acc-cyan { color: var(--accent-cyan); }
.hud-chip .acc-green { color: var(--play-green); }

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 12px;
}
.stat-tile .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-tile .value {
  font-family: 'Russo One', sans-serif;
  font-size: 1.2rem;
  margin-top: 4px;
  color: var(--accent-cyan);
}
.stat-tile.magenta .value { color: var(--accent-magenta); }
.stat-tile.green .value { color: var(--play-green); }

/* =========================================================
   Section heading
   ========================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .lead { max-width: 560px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 12px; }

/* =========================================================
   Game library cards
   ========================================================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
  isolation: isolate;
}

.game-card .cover {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: saturate(0.85) brightness(0.7) contrast(1.1);
  transition: transform 0.6s var(--ease-out), filter 0.4s var(--ease-out);
  z-index: 0;
}

.game-card .tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: color;
  opacity: 0.45;
  transition: opacity 0.4s var(--ease-out);
}

.game-card .grad {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 15, 0.9) 100%);
}

.game-card .info {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-card .tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.game-card .title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.15;
}
.game-card .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex; gap: 10px; flex-wrap: wrap;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-cyan);
}
.game-card:hover .cover {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(0.85) contrast(1.1);
}
.game-card:hover .tint { opacity: 0.6; }

.game-card .play-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(8px);
}
.game-card:hover .play-badge { opacity: 1; transform: translateY(0); }
.game-card .play-badge svg { width: 16px; height: 16px; color: var(--play-green); }

/* Tint variants */
.tint-cyan    { background: #34D2F2; }
.tint-violet  { background: #8B5CF6; }
.tint-magenta { background: #FF3DA1; }
.tint-green   { background: #2BD96A; }
.tint-amber   { background: #FFB547; }
.tint-red     { background: #FF5A5A; }

/* =========================================================
   How it works
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Russo One', sans-serif;
  font-size: 3rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(52, 210, 242, 0.6), rgba(139, 92, 246, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
}
.step .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(52, 210, 242, 0.1);
  border: 1px solid var(--border-cyan);
  margin-bottom: 16px;
}
.step .icon svg { width: 22px; height: 22px; color: var(--accent-cyan); }
.step:nth-child(2) .icon { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.45); }
.step:nth-child(2) .icon svg { color: var(--accent-violet); }
.step:nth-child(3) .icon { background: rgba(255, 61, 161, 0.1); border-color: var(--border-magenta); }
.step:nth-child(3) .icon svg { color: var(--accent-magenta); }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* =========================================================
   Pricing
   ========================================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(52, 210, 242, 0.18), transparent 60%);
  pointer-events: none;
}
.plan.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    linear-gradient(135deg, var(--accent-cyan), var(--accent-violet) 50%, var(--accent-magenta)) border-box;
  border: 2px solid transparent;
  transform: translateY(-6px);
}
.plan.featured::before {
  background: radial-gradient(circle at 50% 0%, rgba(255, 61, 161, 0.22), transparent 60%);
}
.plan-badge {
  position: absolute;
  top: -1px;
  right: 28px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-violet));
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}
.plan h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  position: relative;
}
.plan .desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  position: relative;
}
.plan .price {
  position: relative;
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 24px;
}
.plan .price-value {
  font-family: 'Russo One', sans-serif;
  font-size: 3rem;
  background: linear-gradient(135deg, #34D2F2, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan.featured .price-value {
  background: linear-gradient(135deg, #FF3DA1, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan .price-period { color: var(--text-muted); font-size: 1rem; }
.plan .price-currency { font-family: 'Russo One', sans-serif; font-size: 1.5rem; color: var(--text-secondary); }

.plan ul.features {
  list-style: none;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan ul.features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.plan ul.features li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  color: var(--play-green);
  margin-top: 2px;
}
.plan.featured ul.features li svg { color: var(--accent-cyan); }
.plan ul.features li.muted { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.plan ul.features li.muted svg { color: var(--text-muted); }

/* =========================================================
   CTA section
   ========================================================= */
.cta-band {
  position: relative;
  padding: 60px;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(52, 210, 242, 0.25), transparent 60%),
    var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent);
  pointer-events: none;
}
.cta-band h2 { margin-bottom: 16px; position: relative; }
.cta-band p { margin: 0 auto 28px; max-width: 540px; position: relative; }
.cta-band .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =========================================================
   Data center chips
   ========================================================= */
.dc-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.dc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.dc-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--play-green);
  box-shadow: 0 0 8px var(--play-green);
  animation: pulse 2s ease-in-out infinite;
}
.dc-chip .ms {
  color: var(--accent-cyan);
  font-size: 0.7rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin-top: 96px;
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  max-width: 280px;
}
.footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease-out);
}
.footer a:hover { color: var(--accent-cyan); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* =========================================================
   Auth pages
   ========================================================= */
.auth-shell {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
}

.auth-side {
  position: relative;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.4), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(255, 61, 161, 0.25), transparent 60%),
    var(--bg-base);
  border-right: 1px solid var(--border-soft);
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 30%, black, transparent 80%);
  pointer-events: none;
}
.auth-side-content { position: relative; max-width: 460px; }
.auth-side h2 { margin: 18px 0 16px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.auth-side p { font-size: 1.05rem; }

.auth-side-feats {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.auth-side-feats li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}
.auth-side-feats li svg { color: var(--accent-cyan); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

.auth-side-foot {
  position: relative;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
}
.auth-side-foot .num {
  font-family: 'Russo One', sans-serif;
  font-size: 1.4rem;
  color: var(--accent-cyan);
}
.auth-side-foot .lab {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
}
.auth-card h1 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}
.auth-card .subtitle {
  margin-bottom: 32px;
  font-size: 0.98rem;
}

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(52, 210, 242, 0.04);
  box-shadow: 0 0 0 3px rgba(52, 210, 242, 0.18);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 22px;
  font-size: 0.88rem;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  user-select: none;
}
.checkbox input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--border-mid);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.checkbox input:checked {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}
.checkbox input:checked::before {
  content: "";
  width: 5px; height: 9px;
  border: solid #04141A;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.text-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.text-link:hover { color: #6ADFFA; text-decoration: underline; }

.divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.divider::before, .divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 32px);
  height: 1px;
  background: var(--border-soft);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-google {
  width: 100%;
  background: #fff;
  color: #1F2937;
  border: 1px solid #fff;
}
.btn-google:hover { background: #F3F4F6; border-color: #F3F4F6; }
.btn-google svg { width: 18px; height: 18px; }

.auth-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* =========================================================
   Modal (suspicious activity / device check)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease-out);
  overflow: hidden;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 61, 161, 0.18), transparent 60%);
  pointer-events: none;
}
.modal-icon {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: rgba(255, 61, 161, 0.12);
  border: 1px solid var(--border-magenta);
  margin-bottom: 20px;
}
.modal-icon svg { width: 28px; height: 28px; color: var(--accent-magenta); }
.modal.success .modal-icon { background: rgba(43, 217, 106, 0.12); border-color: rgba(43, 217, 106, 0.45); }
.modal.success .modal-icon svg { color: var(--play-green); }
.modal.info .modal-icon { background: rgba(52, 210, 242, 0.12); border-color: var(--border-cyan); }
.modal.info .modal-icon svg { color: var(--accent-cyan); }

.modal h3 {
  position: relative;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.modal p {
  position: relative;
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}
.modal .modal-meta {
  position: relative;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal .modal-meta b { color: var(--text-primary); font-weight: 600; }
.modal .modal-meta .row { display: flex; justify-content: space-between; gap: 12px; }
.modal-actions {
  position: relative;
  display: flex;
  gap: 10px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}
.modal-close:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Device check progress */
.device-check {
  position: relative;
  margin-top: 4px;
}
.device-check .step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.device-check .step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out);
}
.device-check .step-item.active { color: var(--text-primary); }
.device-check .step-item.done { color: var(--play-green); }
.device-check .step-item .spinner-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  border-top-color: var(--accent-cyan);
  animation: spin 0.8s linear infinite;
  display: none;
}
.device-check .step-item.active .spinner-dot { display: inline-block; }
.device-check .step-item.done .spinner-dot {
  display: inline-block;
  animation: none;
  border: none;
  background: var(--play-green);
  position: relative;
}
.device-check .step-item.done .spinner-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052612' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8 7 12 13 4'/></svg>");
  background-size: contain;
}
.device-check .step-item .placeholder-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
}
.device-check .step-item.active .placeholder-dot,
.device-check .step-item.done .placeholder-dot { display: none; }

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet), var(--accent-magenta));
  border-radius: 999px;
  transition: width 0.5s var(--ease-out);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-inline {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(5, 21, 40, 0.25);
  border-top-color: #051528;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

/* =========================================================
   Content pages (about/legal/cookies)
   ========================================================= */
.page-hero {
  padding: 96px 0 48px;
  text-align: left;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin: 14px 0 16px;
}
.page-hero p { max-width: 640px; font-size: 1.05rem; }

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding-bottom: 64px;
}
.legal-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--bg-glass);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(10px);
}
.legal-toc h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc li {
  counter-increment: toc;
  font-size: 0.9rem;
}
.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) " ";
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-right: 8px;
  font-size: 0.78rem;
}
.legal-toc a:hover { color: var(--accent-cyan); background: rgba(52,210,242,0.05); }

.legal-content section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-soft);
}
.legal-content section:last-child { border-bottom: none; }
.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin: 24px 0 10px;
}
.legal-content p, .legal-content li {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}
.legal-content strong { color: var(--text-primary); }
.legal-content .note {
  background: rgba(52, 210, 242, 0.05);
  border: 1px solid var(--border-cyan);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.92rem;
}

/* =========================================================
   Status page
   ========================================================= */
.status-hero {
  padding: 96px 0 48px;
}
.status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background:
    radial-gradient(circle at 20% 50%, rgba(43, 217, 106, 0.22), transparent 60%),
    var(--bg-surface);
  border: 1px solid rgba(43, 217, 106, 0.4);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.status-banner .left {
  display: flex; align-items: center; gap: 18px;
}
.status-banner .pulse-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--play-green);
  box-shadow: 0 0 0 0 rgba(43, 217, 106, 0.6);
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(43, 217, 106, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(43, 217, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 217, 106, 0); }
}
.status-banner h2 { font-size: 1.5rem; }
.status-banner .right { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text-secondary); }
.status-banner .right b { color: var(--text-primary); }

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 48px;
}
.status-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 220px;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.status-row .name { font-weight: 600; }
.status-row .name .sub { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.status-row .uptime {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--play-green);
}
.status-row .bars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
  height: 30px;
}
.status-row .bars .bar {
  background: var(--play-green);
  opacity: 0.85;
  border-radius: 2px;
  transition: opacity 0.2s var(--ease-out);
}
.status-row .bars .bar:hover { opacity: 1; }
.status-row .bars .bar.warn { background: var(--accent-amber); }
.status-row .bars .bar.down { background: #FF5A5A; }

.status-section h3 {
  margin: 48px 0 16px;
  font-size: 1.15rem;
}

.history {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.history-item {
  padding: 18px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 16px;
  align-items: center;
}
.history-item .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.history-item .title { font-weight: 600; font-size: 0.95rem; }
.history-item .title .sub { display: block; font-weight: 400; color: var(--text-secondary); font-size: 0.88rem; margin-top: 4px; }
.history-item .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(43, 217, 106, 0.12);
  border: 1px solid rgba(43, 217, 106, 0.4);
  color: var(--play-green);
}
.history-item .tag.maint { background: rgba(52, 210, 242, 0.1); border-color: var(--border-cyan); color: var(--accent-cyan); }

/* =========================================================
   About page extras
   ========================================================= */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 64px;
}
.about-stat {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.about-stat .num {
  font-family: 'Russo One', sans-serif;
  font-size: 2.4rem;
  background: linear-gradient(135deg, #34D2F2, #8B5CF6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stat:nth-child(2) .num { background: linear-gradient(135deg, #8B5CF6, #FF3DA1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat:nth-child(3) .num { background: linear-gradient(135deg, #FF3DA1, #FFB547); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat:nth-child(4) .num { background: linear-gradient(135deg, #2BD96A, #34D2F2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stat .lab {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.team-card {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.team-card .avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  font-family: 'Russo One', sans-serif;
  font-size: 1.4rem;
  color: #04141A;
}
.team-card .role { color: var(--text-muted); font-size: 0.85rem; }
.team-card .name { font-weight: 600; margin: 4px 0; }
.team-card .bio { color: var(--text-secondary); font-size: 0.9rem; margin-top: 12px; }

/* =========================================================
   Cookies preferences
   ========================================================= */
.cookie-pref {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}
.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.cookie-row .desc { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
  border: 1px solid var(--border-mid);
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease-out);
}
.toggle.on { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.toggle.on::after { transform: translateX(20px); background: #04141A; }
.toggle.locked { opacity: 0.5; cursor: not-allowed; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 48px 40px; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: relative; top: 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .status-row { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    padding: 16px;
    flex-direction: column;
    gap: 4px;
  }
  .nav.open .nav-link { padding: 12px 14px; width: 100%; }

  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }

  .cta-band { padding: 40px 24px; }

  .history-item { grid-template-columns: 1fr; }
  .history-item .date { font-size: 0.78rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero { padding-top: 24px; }
  .hero-meta { gap: 18px; }
  .hero-meta .stat-num { font-size: 1.4rem; }
  .cta-band { padding: 36px 20px; border-radius: var(--radius-lg); }
  .cta-band h2 { font-size: 1.7rem; }
  .auth-side { padding: 40px 24px; }
  .auth-main { padding: 40px 20px; }
  .auth-card { padding: 0; }
  .modal { padding: 28px 22px; border-radius: var(--radius-lg); }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-top: 48px; }
}

@media (max-width: 430px) {
  .container, .container-narrow { padding: 0 18px; }
  .nav { padding: 0 8px; margin-top: 12px; }
  .nav-inner { padding: 10px 12px; }
  .brand { font-size: 1rem; }
  .btn { padding: 11px 16px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 22px; font-size: 0.95rem; }
  .game-grid { gap: 12px; }
  .game-card .title { font-size: 0.95rem; }
  .game-card .info { left: 10px; right: 10px; bottom: 10px; }
  .plan { padding: 28px 22px; }
  .plan .price-value { font-size: 2.4rem; }
  .step { padding: 22px 20px; }
  .status-banner { padding: 22px 20px; }
  .status-banner h2 { font-size: 1.2rem; }
  .cookie-row { padding: 18px 20px; }
}

/* Hide noise on small viewports for perf */
@media (max-width: 600px) {
  .noise { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
