/* ==========================================================================
   SPY SMP — Luminous Light Purple & White Gradient Glassmorphic Design System
   Generated: 2026-09-27
   Aesthetic:
     · Frosted glass cards, translucent hairlines, and lush backdrop blur
     · Multi-stop ambient mesh gradient in light lavender, lilac & pure white
     · Deep obsidian royal purple typography for high-contrast readability
     · Sleek purple/magenta radiant accents and soft violet ambient glows
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & Design Constants
   -------------------------------------------------------------------------- */
:root {
  /* Surface & Canvas Tints */
  --bg-void: #f7f2ff;
  --bg-canvas: transparent;
  --bg-surface: rgba(255, 255, 255, 0.74);
  --bg-surface-elevated: rgba(255, 255, 255, 0.88);
  --bg-elev: rgba(255, 255, 255, 0.88);
  --bg-inset: rgba(245, 238, 255, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.86);

  /* High-Contrast Accessible Typography */
  --text-primary: #180d2e;
  --text-secondary: #4a3b68;
  --text-muted: #796894;
  --text-inverse: #ffffff;
  --text-link: #6d28d9;

  /* Translucent Violet Hairlines & Borders */
  --border-base: rgba(147, 51, 234, 0.16);
  --border-subtle: rgba(147, 51, 234, 0.09);
  --border-strong: rgba(147, 51, 234, 0.32);
  --border-glass: rgba(255, 255, 255, 0.9);
  --border-muted: rgba(147, 51, 234, 0.08);

  /* Accents & Gradients */
  --accent-brand: #7c3aed;
  --accent-brand-hover: #6d28d9;
  --accent-brand-subtle: rgba(124, 58, 237, 0.1);
  --accent-brand-border: rgba(124, 58, 237, 0.35);
  --accent-purple-gradient: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #c026d3 100%);
  --accent-purple-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(192, 132, 252, 0.16));
  --accent-gold: #d97706;
  --accent-amber: #d97706;
  --accent-cyan: #0891b2;
  --accent-crimson: #e11d48;
  --accent-rose: #e11d48;
  --accent-green: #16a34a;
  --accent-indigo: #4f46e5;
  --accent-dim: rgba(124, 58, 237, 0.09);

  /* Semantic Aliases */
  --color-bg: var(--bg-canvas);
  --color-surface: var(--bg-surface);
  --color-surface-hover: var(--bg-surface-elevated);
  --color-surface-2: var(--bg-surface-elevated);
  --color-surface-3: rgba(237, 228, 255, 0.9);
  --color-border: var(--border-base);
  --color-border-light: var(--border-strong);
  --color-border-accent: var(--accent-brand-border);
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);
  --color-accent: var(--accent-brand);
  --color-accent-dim: var(--accent-dim);
  --color-accent-hover: var(--accent-brand-hover);
  --color-cyan: var(--accent-cyan);
  --color-danger: var(--accent-crimson);
  --color-warning: var(--accent-amber);
  --color-info: #0284c7;
  --color-gold: var(--accent-gold);

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Corner Radii */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Glassmorphism & Shadows */
  --glass-blur: blur(16px);
  --glass-blur-heavy: blur(24px);
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 8px 24px -2px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 20px 48px -4px rgba(124, 58, 237, 0.16);
  --shadow-glass: 0 10px 30px -4px rgba(124, 58, 237, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-glass-hover: 0 18px 40px -4px rgba(124, 58, 237, 0.18), 0 0 22px rgba(192, 132, 252, 0.22), inset 0 1px 1px 0 #ffffff;

  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Environment
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 16%, rgba(192, 132, 252, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(216, 180, 254, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 55%, rgba(233, 213, 255, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 18% 86%, rgba(192, 132, 252, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 82% 84%, rgba(221, 214, 254, 0.35) 0%, transparent 45%),
    linear-gradient(180deg, #fbf9ff 0%, #f6f0ff 45%, #f1e7fe 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.62;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
body.page-loading * { animation: none !important; transition: none !important; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

code, pre, kbd { font-family: var(--font-mono); font-size: 0.92em; }
code {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  color: #6d28d9;
  font-weight: 600;
}
pre {
  background: #180d2e;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  overflow-x: auto;
  color: #f3ebff;
  box-shadow: 0 8px 24px rgba(24, 13, 46, 0.15);
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: 400;
}

::selection {
  background: rgba(147, 51, 234, 0.28);
  color: #180d2e;
}
:focus-visible {
  outline: 2px solid var(--accent-brand);
  outline-offset: 2px;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(243, 232, 255, 0.5); }
::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.4);
  border: 2px solid rgba(243, 232, 255, 0.5);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(147, 51, 234, 0.65); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #140a28;
}
strong, b { font-weight: 700; color: #140a28; }
p { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-brand);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: #140a28;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 660px;
  line-height: 1.65;
}
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   4. Layout & Utilities
   -------------------------------------------------------------------------- */
.container { max-width: 1200px; padding: 0 24px; margin: 0 auto; width: 100%; }
.container-wide { max-width: 1400px; padding: 0 24px; margin: 0 auto; width: 100%; }
.section { padding: 76px 0; }
.section-pad { padding: 76px 0; }
.pt-120 { padding-top: 120px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2col-responsive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-form-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-16 { gap: 16px; }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }

/* --------------------------------------------------------------------------
   5. Navbar & Header Navigation
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(221, 214, 254, 0.75);
  box-shadow: 0 4px 20px -2px rgba(124, 58, 237, 0.06);
  transition: background 0.25s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 8px 28px -4px rgba(124, 58, 237, 0.12);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--nav-h); gap: 20px;
}

.nav-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: transparent;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.45));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.nav-brand:hover .brand-mark {
  transform: scale(1.1) translateY(-1px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 750; font-size: 16px; letter-spacing: -0.015em; color: var(--text-primary); }
.brand-sub {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-brand); font-weight: 600; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.18s, background 0.18s, transform 0.18s;
}
.nav-link:hover {
  color: var(--accent-brand);
  background: rgba(124, 58, 237, 0.08);
}
.nav-link.active {
  color: var(--accent-brand);
  background: rgba(124, 58, 237, 0.12);
  font-weight: 700;
}

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

.latency-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.22);
  border-radius: var(--radius-full);
}
.latency-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; flex: 0 0 auto; }
.latency-dot.medium { background: var(--accent-amber); }
.latency-dot.slow { background: var(--accent-crimson); }

.nav-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 5px 11px; border-radius: var(--radius-full);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; position: relative; flex: 0 0 auto; }
.status-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid rgba(22, 163, 74, 0.45); animation: pulseDot 2.2s ease-out infinite;
}
.status-dot.offline { background: var(--accent-crimson); }
.status-dot.offline::after { border-color: rgba(225, 29, 72, 0.45); }
.live-player-count { font-family: var(--font-mono); font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.nav-status-label { font-size: 12px; color: var(--text-muted); }

.audio-toggle-btn {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.22);
  padding: 6px 10px; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.audio-toggle-btn:hover {
  color: var(--accent-brand);
  border-color: var(--accent-brand);
  background: #ffffff;
}
#audioIcon { display: inline-block; min-width: 20px; text-align: center; }

.hamburger {
  display: none; align-items: center; gap: 9px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
}
.hamburger-bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.hamburger-bars span {
  display: block; height: 1.5px; background: var(--text-primary);
  border-radius: 1px; transition: transform 0.25s var(--ease-spring), opacity 0.2s;
}
.hamburger.active .hamburger-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.active .hamburger-bars span:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.hamburger-text { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   6. Sidebar Drawer (Frosted Glass Mobile Navigation)
   -------------------------------------------------------------------------- */
.sidebar-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(24, 13, 46, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1200;
  width: min(380px, 90vw);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(221, 214, 254, 0.85);
  box-shadow: -10px 0 40px rgba(124, 58, 237, 0.16);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.3s var(--ease-spring);
  overflow-y: auto;
}
.sidebar-drawer.open { transform: translateX(0); }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border-base);
}
.sidebar-close-btn {
  font-size: 26px; line-height: 1; color: var(--text-muted);
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.sidebar-close-btn:hover { color: var(--accent-brand); background: rgba(124, 58, 237, 0.08); }

.sidebar-status-box {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border-subtle);
  background: rgba(245, 238, 255, 0.5);
}
.sidebar-tps-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: #16a34a; background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.3);
  padding: 3px 9px; border-radius: var(--radius-full);
}

.sidebar-nav { padding: 16px 14px; flex: 1; }
.sidebar-group-title {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-brand);
  padding: 14px 12px 8px;
}
.sidebar-link {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600; color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}
.sidebar-link:hover { color: var(--accent-brand); background: rgba(124, 58, 237, 0.08); }
.sidebar-link.active {
  color: var(--accent-brand);
  background: rgba(124, 58, 237, 0.12);
}
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--accent-purple-gradient); border-radius: 2px;
}
.sidebar-icon { display: none; }

.sidebar-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border-base);
  background: rgba(248, 243, 255, 0.6);
  display: flex; flex-direction: column; gap: 14px;
}
.sidebar-ips { display: flex; flex-direction: column; gap: 8px; }
.sidebar-actions { display: flex; flex-direction: column; gap: 8px; }

/* --------------------------------------------------------------------------
   7. Buttons (Luminous Gradient & Frosted Glass)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 14px; letter-spacing: -0.01em;
  padding: 11px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.18s var(--ease-spring);
  white-space: nowrap; text-align: center; cursor: pointer;
  position: relative;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-purple-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #7e22ce 50%, #a21caf 100%);
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.06);
}
.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--accent-brand);
  color: var(--accent-brand);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.16);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  border: 1px solid rgba(168, 85, 247, 0.22);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-brand);
  border: 1px solid var(--accent-brand-border);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent-brand);
  color: var(--accent-brand-hover);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #b45309, #d97706);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.btn-action {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-base);
  font-size: 13px; padding: 8px 14px;
}
.btn-action:hover { border-color: var(--accent-brand); color: var(--accent-brand); }

.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

.btn-login, .btn-return {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--border-base);
}
.btn-login:hover, .btn-return:hover {
  color: var(--text-primary);
  border-color: var(--accent-brand);
  background: #ffffff;
}
.btn-logout {
  background: rgba(225, 29, 72, 0.08);
  color: var(--accent-crimson);
  border: 1px solid rgba(225, 29, 72, 0.28);
}
.btn-logout:hover { background: rgba(225, 29, 72, 0.16); }
.btn-select-rank { width: 100%; }

.btn-tbl, .btn-tbl-primary, .btn-tbl-danger {
  font-size: 12px; font-weight: 600; padding: 5px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.btn-tbl:hover { color: var(--text-primary); border-color: var(--accent-brand); background: #ffffff; }
.btn-tbl-primary { color: var(--accent-brand); border-color: var(--accent-brand-border); }
.btn-tbl-primary:hover { background: var(--accent-dim); }
.btn-tbl-danger { color: var(--accent-crimson); border-color: rgba(225, 29, 72, 0.35); }
.btn-tbl-danger:hover { background: rgba(225, 29, 72, 0.1); }

/* --------------------------------------------------------------------------
   8. Badges, Pills & Status Chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-brand);
  border: 1px solid rgba(168, 85, 247, 0.25);
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.05);
}
.badge-accent, .badge-brand {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.3);
}
.badge-gold {
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}
.badge-cyan {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490;
  border-color: rgba(8, 145, 178, 0.3);
}
.badge-rose {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  border-color: rgba(225, 29, 72, 0.3);
}
.badge-rank {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(168, 85, 247, 0.28);
  color: var(--text-primary);
}
.badge-locked { opacity: 0.6; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-base);
  padding: 5px 12px; border-radius: var(--radius-full);
}
.pill, .ws-badge, .trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: var(--radius-full);
  border: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
}
.pill-green {
  color: #15803d;
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(22, 163, 74, 0.35);
}

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; display: inline-block; }
.live-indicator {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: 0.12em; color: #15803d;
}

.filter-btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  font-size: 13px; font-weight: 600; padding: 7px 16px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.65);
  transition: all 0.18s;
}
.filter-btn:hover {
  color: var(--accent-brand);
  border-color: var(--accent-brand);
  background: #ffffff;
}
.filter-btn.active, .filter-btn.active:hover {
  background: var(--accent-purple-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.28);
}

/* --------------------------------------------------------------------------
   9. Cards (Frosted Glassmorphic Architecture)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-glass);
  transition: border-color 0.25s var(--ease-spring),
              background 0.25s var(--ease-spring),
              transform 0.25s var(--ease-spring),
              box-shadow 0.25s var(--ease-spring);
}
a.card:hover, .card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-glass-hover);
  transform: translateY(-3px);
}
.card.card-selected {
  border-color: var(--accent-brand);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.2);
}
.card.card-supreme {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(192, 132, 252, 0.7);
}
.card.text-center { text-align: center; }

.card-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--accent-brand);
  background: rgba(245, 238, 255, 0.8);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.08);
}
.card.text-center .card-icon { margin-left: auto; margin-right: auto; }
.card-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 8px; color: var(--text-primary);
}
.card-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.62; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card .btn { margin-top: 16px; }

.glass-card, .glass-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-glass);
}
.glass-panel { padding: 22px 24px; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  padding: 30px 28px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s var(--ease-spring);
}
.pillar-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-glass-hover);
}
.pillar-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }

.kit-card { padding: 24px; }
.kit-item-row {
  display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px;
  padding: 8px 0; border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}
.kit-item-row:last-child { border-bottom: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-glass);
}
.metric-icon-box {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 12px; color: var(--accent-brand);
  background: rgba(245, 238, 255, 0.8);
  font-family: var(--font-mono); font-size: 12px;
}
.metric-lbl {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); margin-bottom: 6px;
}
.metric-num {
  font-size: 28px; font-weight: 750; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  padding: 26px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: transform 0.22s var(--ease-spring), border-color 0.22s ease, box-shadow 0.22s var(--ease-spring);
}
.news-card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-glass-hover);
}
.news-meta {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-brand); margin-bottom: 10px; font-weight: 600;
}
.news-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.news-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.event-card {
  padding: 24px;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.event-meta-line {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--text-muted); letter-spacing: 0.04em;
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px;
}
.event-details { font-size: 14px; color: var(--text-secondary); flex: 1; min-width: 260px; }

.report-card { padding: 26px; }
.report-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.report-pipeline {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
}
.report-violator { font-family: var(--font-mono); font-size: 13.5px; font-weight: 650; color: var(--text-primary); }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.contact-info-card { padding: 28px; }
.contact-channel-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}
.contact-channel-item:last-child { border-bottom: 0; }
.contact-channel-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent-brand); background: rgba(245, 238, 255, 0.8);
  flex: 0 0 auto;
}

.form-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-glass);
}
.login-card { max-width: 460px; margin: 0 auto; }
.player-input-card { padding: 26px; }
.defense-card { padding: 26px; }

.error-banner {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #be123c; border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 14px; font-weight: 500;
}
.security-notice {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-sm);
  padding: 16px 20px; font-size: 14px;
  color: var(--text-secondary);
}
.shield-icon { color: var(--accent-brand); }

.highlight-item {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-glass);
}
.hl-label {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); margin-bottom: 6px;
}
.hl-val {
  font-size: 22px; font-weight: 750; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}

.mode-features {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px; font-size: 13.5px; color: var(--text-secondary);
}
.mode-features li { list-style: none; padding-left: 18px; position: relative; }
.mode-features li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 2px; background: var(--accent-brand); border-radius: 1px;
}

.perk-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(147, 51, 234, 0.1);
  font-size: 14px;
}
.perk-row:last-child { border-bottom: 0; }
.perk-check { color: var(--accent-brand); font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 76px;
  border-bottom: 1px solid rgba(221, 214, 254, 0.85);
  background: transparent;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 32%, rgba(192, 132, 252, 0.35), transparent 58%),
    linear-gradient(90deg, rgba(251, 249, 255, 0.96) 0%, rgba(246, 240, 255, 0.88) 52%, rgba(241, 231, 254, 0.48) 100%),
    url('/assets/hero-banner.webp') right center / cover no-repeat;
  opacity: 0.96;
  pointer-events: none;
  z-index: 0;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hero-content { position: relative; max-width: 840px; z-index: 2; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-title {
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 780; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--text-primary);
}
.hero-title .muted-line {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 50%, #c026d3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 18.5px);
  color: var(--text-secondary);
  max-width: 600px; margin-top: 20px; line-height: 1.65;
}
.hero-sub .type-target { color: var(--text-primary); font-family: var(--font-mono); font-weight: 700; }
#hero-typewriter::after { content: '▌'; color: var(--accent-brand); animation: blink 1s step-end infinite; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 28px;
  border-top: 1px solid rgba(147, 51, 234, 0.16);
}
.hero-stat {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.hero-stat-divider { width: 1px; height: 16px; background: rgba(147, 51, 234, 0.25); }

.hero-ip-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-scroll-indicator {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: var(--accent-brand); opacity: 0.75; animation: floatDown 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   11. Stats Row
   -------------------------------------------------------------------------- */
.section-stats { padding: 0; background: rgba(255, 255, 255, 0.4); }
.section-stats .grid-4 {
  gap: 0;
  border-bottom: 1px solid rgba(221, 214, 254, 0.85);
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.stat-card {
  padding: 34px 28px;
  border-right: 1px solid rgba(147, 51, 234, 0.12);
  background: transparent;
  transition: background 0.2s;
}
.stat-card:hover { background: rgba(255, 255, 255, 0.8); }
.stat-card:last-child { border-right: 0; }
.stat-icon { display: none; }
.stat-number {
  font-size: clamp(32px, 3.6vw, 44px); font-weight: 780; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #180d2e 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted); margin-top: 8px;
}

.stat-box {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-glass);
}
.stat-box .label {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-muted); margin-bottom: 8px;
}
.stat-box .value {
  font-size: 26px; font-weight: 750; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   12. IP Copy Badge (Frosted Glass Interactive Pill)
   -------------------------------------------------------------------------- */
.ip-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  color: #2e1065;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  cursor: pointer; user-select: none;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08), inset 0 1px 1px #ffffff;
  transition: all 0.2s var(--ease-spring);
}
.ip-badge:hover {
  border-color: var(--accent-brand);
  background: #ffffff;
  color: #6d28d9;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.2), inset 0 1px 1px #ffffff;
  transform: translateY(-2px);
}
.ip-badge.copied {
  border-color: var(--accent-brand);
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.25);
}
.ip-copy-hint {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-brand); font-weight: 700;
  border-left: 1px solid rgba(168, 85, 247, 0.3); padding-left: 10px;
}
.ip-badge.copied .ip-copy-hint { color: var(--accent-brand); border-left-color: var(--accent-brand); }

/* --------------------------------------------------------------------------
   13. Forms & Inputs (Translucent Glass Controls)
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.form-label, .form-lbl {
  display: block; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted);
  margin-bottom: 8px; font-weight: 600;
}
.form-input, .form-ctrl, .form-textarea, .form-select, select.form-input, textarea.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14.5px; font-family: var(--font-sans);
  padding: 12px 16px;
  box-shadow: inset 0 1px 3px rgba(124, 58, 237, 0.04);
  transition: all 0.18s;
  appearance: none;
}
.form-input::placeholder, .form-ctrl::placeholder { color: #9d8db3; }
.form-input:focus, .form-ctrl:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16), 0 4px 12px rgba(124, 58, 237, 0.1);
}
.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237c3aed' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 7px; }
.search-input { max-width: 360px; }
.search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.pin-input {
  font-family: var(--font-mono); font-size: 24px; letter-spacing: 0.4em; text-align: center;
  padding: 14px;
}

/* --------------------------------------------------------------------------
   14. Tables (Frosted Glass Data Grids)
   -------------------------------------------------------------------------- */
.table-container, .table-wrapper {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}
.table-responsive { overflow-x: auto; }
.sortable-table, .data-table, .lb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sortable-table th, .data-table th, .lb-table th {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: #5b21b6;
  text-align: left; padding: 16px 20px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.18);
  background: rgba(243, 232, 255, 0.7);
  white-space: nowrap;
}
.sortable-table th[data-sort] { cursor: pointer; user-select: none; }
.sortable-table th[data-sort]:hover { color: var(--accent-brand); background: rgba(237, 222, 255, 0.85); }
.sortable-table th.asc::after { content: ' ↑'; color: var(--accent-brand); }
.sortable-table th.desc::after { content: ' ↓'; color: var(--accent-brand); }
.sortable-table td, .data-table td, .lb-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.08);
  color: var(--text-secondary);
}
.sortable-table tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: 0; }
.sortable-table tbody tr:hover td, .data-table tbody tr:hover td {
  background: rgba(124, 58, 237, 0.04);
}
td strong, td .player-cell { color: var(--text-primary); }
.player-cell { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.player-avatar { width: 28px; height: 28px; border-radius: var(--radius-xs); image-rendering: pixelated; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.avatar { width: 36px; height: 36px; border-radius: var(--radius-sm); image-rendering: pixelated; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* --------------------------------------------------------------------------
   15. Page Header & FAQ & Legal
   -------------------------------------------------------------------------- */
.page-header {
  padding: calc(var(--nav-h) + 54px) 0 42px;
  border-bottom: 1px solid rgba(221, 214, 254, 0.8);
  background: transparent;
}
.page-header .section-title { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.035em; margin-bottom: 12px; }

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  transition: all 0.2s;
}
.faq-item-header, .faq-item .faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer;
  font-weight: 700; font-size: 15.5px; color: var(--text-primary);
  list-style: none;
}
.faq-item-header::-webkit-details-marker { display: none; }
.faq-icon { color: var(--accent-brand); font-size: 14px; transition: transform 0.2s; flex: 0 0 auto; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent-crimson); }
.faq-item-body, .faq-item .faq-answer {
  padding: 0 22px 20px; font-size: 14.5px; color: var(--text-secondary); line-height: 1.7;
}

.legal-container { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.legal-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }
.legal-nav {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-glass);
}
.legal-nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-nav-link {
  display: block; padding: 9px 14px; font-size: 14px; font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm); border-left: 2px solid transparent;
  transition: all 0.15s;
}
.legal-nav-link:hover { color: var(--accent-brand); background: rgba(124, 58, 237, 0.06); }
.legal-nav-link.active {
  color: var(--accent-brand);
  border-left-color: var(--accent-brand);
  background: rgba(124, 58, 237, 0.1);
}
.legal-article { max-width: 780px; }
.legal-content { font-size: 15.5px; color: var(--text-secondary); line-height: 1.75; }
.legal-content h2 { font-size: 24px; margin: 36px 0 16px; color: var(--text-primary); }
.legal-content h3 { font-size: 18px; margin: 28px 0 12px; color: var(--text-primary); }
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-callout {
  border: 1px solid var(--accent-brand-border);
  background: rgba(124, 58, 237, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px; font-size: 14.5px;
  color: var(--text-secondary); margin: 20px 0;
}

/* --------------------------------------------------------------------------
   16. Tabs & Interactive Selectors
   -------------------------------------------------------------------------- */
.tool-tab-bar, .element-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tool-tab-btn, .element-tab-btn {
  font-size: 13.5px; font-weight: 650;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-base);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-secondary);
  transition: all 0.18s;
  cursor: pointer;
}
.tool-tab-btn:hover, .element-tab-btn:hover {
  color: var(--accent-brand);
  border-color: var(--accent-brand);
  background: #ffffff;
  transform: translateY(-1px);
}
.tool-tab-btn.active, .element-tab-btn.active {
  background: var(--accent-purple-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}
.tab-content { margin-top: 24px; }

/* --------------------------------------------------------------------------
   17. Call to Action (CTA)
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 96px 0;
  border-top: 1px solid rgba(221, 214, 254, 0.8);
}
.cta-card {
  text-align: center; max-width: 760px; margin: 0 auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  padding: 64px 44px;
  box-shadow: var(--shadow-glass-hover);
}
.cta-card h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; margin-bottom: 12px; }
.cta-card p { font-size: 16px; margin-bottom: 28px; }
.cta-ips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid rgba(221, 214, 254, 0.85);
  background: rgba(246, 240, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 68px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px; padding-bottom: 52px;
}
.footer-tagline {
  font-size: 14px; color: var(--text-secondary);
  margin-top: 16px; max-width: 300px; line-height: 1.65;
}
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-brand); border-bottom: 1px solid var(--accent-brand-border);
  padding-bottom: 2px;
  transition: all 0.15s;
}
.footer-social a:hover { color: var(--accent-brand-hover); border-bottom-color: var(--accent-brand); }
.footer-server-ips { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: #5b21b6;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; font-weight: 550; color: var(--text-secondary); transition: color 0.15s; }
.footer-col a:hover { color: var(--accent-brand); }
.footer-bottom {
  border-top: 1px solid rgba(147, 51, 234, 0.14);
  padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-bottom code { font-size: 12.5px; }

/* --------------------------------------------------------------------------
   19. Toasts & Modals
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.18);
  animation: toastUp 0.25s var(--ease-spring);
}
.toast.error { border-color: rgba(225, 29, 72, 0.5); color: #be123c; }

@keyframes toastUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalScale { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes pulseDot { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(2.0); opacity: 0; } }
@keyframes floatDown { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay, .checkout-modal-overlay, .cmd-palette-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(24, 13, 46, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn 0.2s ease;
}
.modal-card, .checkout-modal-card, .cmd-palette-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.22);
  width: min(540px, 100%); max-height: 88vh; overflow-y: auto;
  animation: modalScale 0.22s var(--ease-spring);
}
.modal-head, .cmd-palette-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px 26px; border-bottom: 1px solid var(--border-base);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.modal-close, .modal-close-btn {
  color: var(--text-muted); font-size: 24px; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius-sm);
}
.modal-close:hover, .modal-close-btn:hover { color: var(--accent-brand); background: rgba(124, 58, 237, 0.08); }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 20px 26px; border-top: 1px solid var(--border-base);
}

.cmd-palette-input {
  width: 100%; background: transparent; border: 0; outline: none;
  font-size: 15.5px; color: var(--text-primary); padding: 4px 0;
}
.cmd-palette-results { max-height: 340px; overflow-y: auto; padding: 10px; }
.cmd-palette-cat {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-brand);
  padding: 10px 12px 6px;
}
.cmd-palette-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 550; color: var(--text-secondary);
}
.cmd-palette-item:hover, .cmd-palette-item.active {
  background: rgba(124, 58, 237, 0.08); color: var(--accent-brand);
}
.cmd-palette-key {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted);
  border: 1px solid var(--border-base); border-radius: var(--radius-xs);
  padding: 2px 7px; background: rgba(255, 255, 255, 0.8);
}

/* --------------------------------------------------------------------------
   20. Store & Ranks Grid
   -------------------------------------------------------------------------- */
.rank-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rank-badge-ribbon {
  background: var(--accent-purple-gradient); color: #ffffff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  padding: 4px 12px; border-radius: var(--radius-xs);
}
.rank-title { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; color: var(--text-primary); }
.rank-subtitle {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-brand); margin-top: 4px;
}
.rank-desc { font-size: 14px; color: var(--text-secondary); }
.rank-price-box { display: flex; align-items: baseline; gap: 6px; margin: 18px 0; }
.price-val { font-size: 34px; font-weight: 780; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.price-period { font-size: 13px; color: var(--text-muted); }
.rank-perks-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.rank-perks-list li { font-size: 14px; color: var(--text-secondary); padding-left: 20px; position: relative; }
.rank-perks-list li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent-brand);
  font-weight: 700; font-size: 13px;
}
.rank-highlights { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rank-badge-icon { font-family: var(--font-mono); }
.ranks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.shop-rank-card { overflow: hidden; }
.shop-hero {
  padding: calc(var(--nav-h) + 64px) 0 48px;
  border-bottom: 1px solid rgba(221, 214, 254, 0.8);
  background: transparent;
}

/* --------------------------------------------------------------------------
   21. Chat & Spy Tools
   -------------------------------------------------------------------------- */
.chat-spy-container {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}
.chat-spy-feed { max-height: 380px; overflow-y: auto; }
.chat-spy-row {
  display: flex; gap: 12px; padding: 10px 18px;
  border-bottom: 1px solid rgba(147, 51, 234, 0.08); font-size: 13.5px;
}
.chat-spy-row:last-child { border-bottom: 0; }
.chat-spy-sender { font-weight: 700; color: var(--accent-brand); min-width: 90px; }
.chat-spy-text { color: var(--text-secondary); flex: 1; }
.chat-spy-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.chat-spy-actions { display: flex; gap: 6px; }

.chat-preview-box {
  background: #180d2e; border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-sm); padding: 16px;
  font-family: var(--font-mono); font-size: 14px; min-height: 60px; color: #f3ebff;
}
.chat-dispatch-bar { display: flex; gap: 10px; }
.chat-dispatch-input { flex: 1; }

.editorial-body { font-size: 16px; line-height: 1.8; color: var(--text-secondary); max-width: 780px; }
.editorial-body h2 { color: var(--text-primary); margin: 34px 0 14px; font-size: 24px; }
.editorial-body h3 { color: var(--text-primary); margin: 26px 0 10px; font-size: 19px; }
.editorial-body p { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   22. Motion & Scroll Reveals
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

/* Nexa Chat conversation layout: familiar compact messenger ergonomics,
   with Nexa branding and no copied third-party assets. */
.social-hub-wrapper { background: #0b141a !important; }
.social-hub-wrapper .card, .social-hub-wrapper .social-header { background: #202c33 !important; border-color: #2a3942 !important; box-shadow: none !important; }
.social-hub-wrapper .social-chat-main { background: #111b21 !important; }
.social-hub-wrapper #chatRoomHeader, .social-hub-wrapper form { background: #202c33 !important; border-color: #2a3942 !important; }
.social-hub-wrapper #messagesStream { background: #0b141a; }
.social-hub-wrapper #btnSendMessage { background: #25d366 !important; border-color: #25d366 !important; color: #071b10 !important; }
.social-hub-wrapper .channel-tab-pill.active { background: #128c7e !important; }
@media (max-width: 900px) {
  .social-hub-wrapper .social-layout-grid { grid-template-columns: 1fr !important; }
  .social-hub-wrapper .social-chat-main { order: -1; height: min(72vh, 680px) !important; }
  .social-hub-wrapper .social-sidebar-left, .social-hub-wrapper .social-sidebar-right { display: contents !important; }
}

/* Deep Nexa Chat messenger skin */
.social-hub-wrapper { padding: 0 !important; min-height: calc(100vh - 70px) !important; }
.social-hub-wrapper > .container { max-width: 1540px !important; padding: 0 !important; }
.social-hub-wrapper .social-header { border-radius: 0 !important; margin: 0 !important; padding: 12px 22px !important; min-height: 64px; }
.social-hub-wrapper .social-header h1 { font-size: 1.05rem !important; letter-spacing: 0 !important; }
.social-hub-wrapper .social-header p { font-size: .72rem !important; }
.social-hub-wrapper .social-layout-grid { grid-template-columns: 360px minmax(420px, 1fr) 310px !important; gap: 1px !important; min-height: calc(100vh - 164px); background: #2a3942; }
.social-hub-wrapper .social-sidebar-left, .social-hub-wrapper .social-sidebar-right { gap: 1px !important; background: #2a3942; }
.social-hub-wrapper .social-sidebar-left > .card, .social-hub-wrapper .social-sidebar-right > .card, .social-hub-wrapper .social-chat-main { border-radius: 0 !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; }
.social-hub-wrapper .social-sidebar-left > .card:first-child { min-height: 72px; }
.social-hub-wrapper .social-sidebar-left .card:nth-child(2) { padding: 12px !important; }
.social-hub-wrapper .social-sidebar-left .card:nth-child(2)::before { content: '🔎  Search conversations'; display: block; background: #2a3942; color: #8696a0; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 12px; }
.social-hub-wrapper #channelListContainer { max-height: none !important; gap: 0 !important; }
.social-hub-wrapper #channelListContainer > div { border-bottom: 1px solid rgba(134,150,160,.14); padding: 11px 7px !important; min-height: 60px; }
.social-hub-wrapper .social-chat-main { min-width: 0; background: #0b141a !important; }
.social-hub-wrapper #chatRoomHeader { min-height: 72px; padding: 12px 18px !important; }
.social-hub-wrapper #messagesStream { position: relative; padding: 22px 6.5% !important; background-color: #0b141a !important; background-image: radial-gradient(rgba(134,150,160,.08) 1px, transparent 1px); background-size: 18px 18px; }
.social-hub-wrapper #messagesStream > div { position: relative; z-index: 1; }
.social-hub-wrapper #messagesStream [style*="border-radius: 12px"] { border-radius: 7px !important; box-shadow: 0 1px 1px rgba(0,0,0,.22); }
.social-hub-wrapper #messagesStream [style*="linear-gradient(135deg, #7c3aed"] { background: #005c4b !important; }
.social-hub-wrapper #messagesStream [style*="rgba(255, 255, 255, 0.07)"] { background: #202c33 !important; }
.social-hub-wrapper #chatForm input { background: #2a3942 !important; border: 0 !important; border-radius: 9px !important; padding: 11px 14px !important; }
.social-hub-wrapper #btnSendMessage { width: 44px; height: 42px; padding: 0 !important; font-size: 0; border-radius: 50% !important; }
.social-hub-wrapper #btnSendMessage span:last-child { font-size: 18px; }
.social-hub-wrapper .social-sidebar-right { background: #111b21; }
.social-hub-wrapper .social-sidebar-right .card { padding: 16px !important; }
.social-hub-wrapper .social-sidebar-right .card:first-child { border-left: 3px solid #25d366 !important; }
@media (max-width: 1100px) {
  .social-hub-wrapper .social-layout-grid { grid-template-columns: 300px minmax(0, 1fr) !important; }
  .social-hub-wrapper .social-sidebar-right { display: flex !important; grid-column: 1 / -1; flex-direction: row !important; min-width: 0; }
  .social-hub-wrapper .social-sidebar-right > .card:first-child { flex: 1 1 420px; }
  .social-hub-wrapper .social-sidebar-right > .card:nth-child(2) { flex: 1 1 320px; }
}
@media (max-width: 760px) {
  .social-hub-wrapper .social-header { padding: 10px 12px !important; }
  .social-hub-wrapper .social-header p, .social-hub-wrapper .social-header .badge { display: none; }
  .social-hub-wrapper .social-layout-grid { display: block !important; min-height: calc(100vh - 120px); }
  .social-hub-wrapper .social-sidebar-left { display: block !important; }
  .social-hub-wrapper .social-chat-main { display: none; height: calc(100vh - 120px) !important; }
  .social-hub-wrapper .social-sidebar-right { display: flex !important; flex-direction: column !important; grid-column: auto; }
  .social-hub-wrapper .social-sidebar-right > .card:nth-child(2) { display: none; }
  .social-hub-wrapper.mobile-chat-open .social-sidebar-left { display: none !important; }
  .social-hub-wrapper.mobile-chat-open .social-chat-main { display: flex !important; }
  .social-hub-wrapper #messagesStream { padding: 16px 12px !important; }
  .social-hub-wrapper #chatRoomHeader { min-height: 60px; }
  .social-hub-wrapper #mobileChatBack { display: inline-block !important; }
}

/* --------------------------------------------------------------------------
   23. Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1 !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .section-stats .grid-4 { gap: 0; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid rgba(147, 51, 234, 0.12); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .latency-badge, .nav-status { display: none; }
  .hamburger { display: inline-flex; }
  .grid-3, .news-grid, .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-container { grid-template-columns: 1fr; }
  .legal-sidebar { position: static; }
  .grid-form-split, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .section, .section-pad { padding: 54px 0; }
  .grid-2, .grid-3, .grid-4, .news-grid, .pillar-grid, .metric-grid, .grid-2col-responsive { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 54px); }
  .hero-stats { gap: 14px; }
  .hero-stat-divider { display: none; }
  .stat-card { border-right: 0; border-bottom: 1px solid rgba(147, 51, 234, 0.12); }
  .stat-card:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cta-card { padding: 42px 24px; }
  .btn-lg { padding: 13px 24px; }
}

/* Nexa Chat call surface: replaces browser dialogs with a responsive,
   keyboard-accessible call sheet. */
.voice-incoming-modal[hidden] { display: none; }
.voice-incoming-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 20px; background: rgba(3, 10, 13, .78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.voice-incoming-card { width: min(410px, 100%); padding: 30px 26px 24px; text-align: center; color: #e9edef; background: linear-gradient(160deg, #202c33, #111b21); border: 1px solid rgba(37,211,102,.34); border-radius: 24px; box-shadow: 0 26px 100px rgba(0,0,0,.58), 0 0 70px rgba(37,211,102,.12); animation: nexa-call-pop .24s cubic-bezier(.2,.85,.3,1.2); }
.voice-incoming-orb { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: #071b10; background: #25d366; font-size: 32px; box-shadow: 0 0 0 10px rgba(37,211,102,.10), 0 0 36px rgba(37,211,102,.32); animation: nexa-call-pulse 1.5s ease-in-out infinite; }
.voice-incoming-kicker { color: #8696a0; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.voice-incoming-card h2 { margin: 9px 0 6px; color: #e9edef; font-size: 22px; }
.voice-incoming-card p { margin: 0 0 22px; color: #aebac1; font-size: 12px; }
.voice-incoming-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voice-incoming-actions button { min-height: 46px; border: 0; border-radius: 999px; color: #fff; font-weight: 800; cursor: pointer; }
.voice-decline { background: #b4233b; }
.voice-accept { background: #25d366; color: #071b10 !important; }
@keyframes nexa-call-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nexa-call-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(37,211,102,.04), 0 0 48px rgba(37,211,102,.42); } }
@media (prefers-reduced-motion: reduce) { .voice-incoming-card, .voice-incoming-orb { animation: none; } }

@media (max-width: 480px) {
  .container, .container-wide { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hamburger-text { display: none; }
  .hero-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   24. Auth Pages (Frosted Split Login / Register)
   -------------------------------------------------------------------------- */
.auth-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  border-bottom: 1px solid rgba(221, 214, 254, 0.8);
}
.auth-panel {
  background: rgba(246, 240, 255, 0.6);
  border-right: 1px solid rgba(221, 214, 254, 0.8);
  padding: calc(var(--nav-h) + 56px) 56px 56px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-headline {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 780; letter-spacing: -0.035em; line-height: 1.06;
  margin: 18px 0 14px; color: var(--text-primary);
}
.auth-headline .accent {
  background: var(--accent-purple-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-lede { font-size: 16px; color: var(--text-secondary); max-width: 480px; line-height: 1.65; }

.squad { display: flex; align-items: flex-end; gap: 6px; margin: 34px 0 8px; height: 150px; }
.squad img {
  height: 100%; width: auto;
  image-rendering: pixelated;
  transition: transform 0.25s var(--ease-spring);
}
.squad img:nth-child(odd) { height: 88%; }
.squad img:nth-child(3) { height: 108%; position: relative; z-index: 2; }
.squad:hover img { transform: translateY(-4px); }
.squad img:hover { transform: translateY(-8px); }
.squad-cap {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--text-muted); margin-bottom: 26px;
}

.manifest { border-top: 1px solid rgba(147, 51, 234, 0.16); margin-top: 10px; }
.manifest-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(147, 51, 234, 0.08);
}
.manifest-key {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted);
}
.manifest-val {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--accent-brand); font-variant-numeric: tabular-nums; text-align: right;
}
.manifest-val.plain { color: var(--text-primary); }

.auth-form {
  padding: calc(var(--nav-h) + 56px) 56px 56px;
  display: flex; flex-direction: column; justify-content: center;
  background: transparent;
}
.auth-form-inner { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-kicker {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-brand);
  margin-bottom: 12px;
}
.auth-title { font-size: 32px; font-weight: 780; letter-spacing: -0.025em; margin-bottom: 8px; color: var(--text-primary); }
.auth-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 26px; }
.auth-sub a { color: var(--accent-brand); font-weight: 650; }
.auth-sub a:hover { text-decoration: underline; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border-base); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 24px;
}
.auth-tab {
  font-size: 13.5px; font-weight: 650; padding: 11px 8px;
  color: var(--text-secondary); background: rgba(255, 255, 255, 0.65);
  transition: all 0.15s; text-align: center;
}
.auth-tab + .auth-tab { border-left: 1px solid var(--border-base); }
.auth-tab:hover { color: var(--accent-brand); background: #ffffff; }
.auth-tab.active { background: var(--accent-purple-gradient); color: #ffffff; }

.alert {
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px;
  font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.alert-error {
  background: rgba(225, 29, 72, 0.08); border: 1px solid rgba(225, 29, 72, 0.35); color: #be123c;
}
.alert-ok {
  background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.35); color: #15803d;
}

@media (max-width: 980px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; }
  .auth-panel { border-right: 0; border-bottom: 1px solid var(--border-base); padding: calc(var(--nav-h) + 40px) 28px 40px; }
  .auth-form { padding: 40px 24px 56px; }
  .squad { height: 120px; }
}

/* --------------------------------------------------------------------------
   25. Game Mode Cards & Artwork Banners
   -------------------------------------------------------------------------- */
.mode-card {
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: all 0.28s var(--ease-spring);
}
.mode-card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: var(--shadow-glass-hover);
}

.mode-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(243, 235, 255, 0.8);
  border-bottom: 1px solid rgba(147, 51, 234, 0.14);
  overflow: hidden;
}
.mode-media img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.mode-card:hover .mode-media img { transform: scale(1.06); }

.mode-media-tags {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
}
.badge-media {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--accent-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.mode-body .card-title { margin-bottom: 6px; font-size: 18.5px; }
.mode-body .card-desc { flex: 0; font-size: 14px; }

.mode-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.mode-sub {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  transition: all 0.15s;
}
.mode-card:hover .mode-sub {
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.35);
}
.mode-play { align-self: flex-start; margin-top: auto; }

/* --------------------------------------------------------------------------
   26. Guides & Field Manual Cards
   -------------------------------------------------------------------------- */
.guide-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-glass);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: all 0.25s var(--ease-spring);
}
.guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-glass-hover);
  background: var(--bg-surface-elevated);
}
.guide-card .card-title a { color: var(--text-primary); transition: color 0.15s; }
.guide-card:hover .card-title a { color: var(--accent-brand); }

/* --------------------------------------------------------------------------
   27. Social & Friends Hub Layout (Mobile Responsive)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .social-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .social-chat-main {
    height: 520px !important;
  }
}

/* SPY SMP UI refresh 2026-09-28: stronger glass hierarchy and touch-safe layout. */
:root {
  --bg-void: #090513;
  --bg-surface: rgba(24, 12, 48, 0.72);
  --bg-surface-elevated: rgba(38, 18, 72, 0.86);
  --text-primary: #fbf8ff;
  --text-secondary: #cfc3e4;
  --text-muted: #a395b8;
  --border-base: rgba(192, 132, 252, 0.24);
  --border-strong: rgba(216, 180, 254, 0.52);
  --accent-brand: #c084fc;
  --accent-brand-hover: #e0c2ff;
  --shadow-glass: 0 14px 42px rgba(20, 4, 44, 0.32);
}
body {
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(124,58,237,.30), transparent 65%),
    radial-gradient(780px 520px at 92% 12%, rgba(192,132,252,.16), transparent 66%),
    linear-gradient(145deg, #090513, #160a2c 52%, #090513);
  color: var(--text-primary);
}
.navbar {
  background: rgba(10, 5, 20, .76);
  border-bottom-color: rgba(192,132,252,.22);
}
.nav-links .nav-link, .nav-status-label, .latency-badge, .audio-toggle-btn { color: var(--text-secondary); }
.nav-brand .brand-name, .nav-brand .brand-sub { color: var(--text-primary); }
.mode-card, .guide-card, .glass-card, .panel, .stat-card, .metric-card,
.news-card, .event-card, .form-card, .cta-card, .table-shell {
  background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  border-color: var(--border-base);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mode-card:hover, .guide-card:hover, .glass-card:hover, .panel:hover, .stat-card:hover,
.metric-card:hover, .news-card:hover, .event-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 60px rgba(76,29,149,.30);
}
.section-title, h1, h2, h3, h4, h5, strong, b { color: var(--text-primary); }
.section-desc, p { color: var(--text-secondary); }
.btn-primary { background: linear-gradient(135deg, #c084fc, #7c3aed); color: #16072a; border-color: #c084fc; }
.btn-primary:hover { background: linear-gradient(135deg, #e0c2ff, #8b5cf6); color: #120520; }
.sidebar-drawer { background: rgba(19, 9, 37, .97); border-left-color: var(--border-strong); }
.sidebar-link, .sidebar-group-title, .sidebar-close-btn { color: var(--text-secondary); }
.sidebar-link:hover, .sidebar-link.active { background: rgba(192,132,252,.14); color: #fff; }
.sidebar-install-btn { display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); margin: 12px 14px 2px; padding: 14px; border: 1px solid rgba(37,211,102,.38); border-radius: 12px; text-align: left; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3; color: #e9edef; background: linear-gradient(110deg, rgba(37,211,102,.16), rgba(37,211,102,.04)); }
.sidebar-install-btn::before { content: '⬇'; display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 10px; color: #061a10; background: #25d366; }
.sidebar-install-btn small { display: block; color: #aebac1; font-size: 10px; font-weight: 500; }
.sidebar-install-btn.install-ready { border-color: #25d366; box-shadow: 0 0 20px rgba(37,211,102,.14); }
.sidebar-install-btn.install-help { align-items: flex-start; line-height: 1.5; }
.sidebar-install-btn.is-installed { opacity: .76; cursor: default; }
.sidebar-install-btn[hidden] { display: none; }
.install-app-global[hidden] { display: none; }
.install-app-global { display: inline-flex !important; background: rgba(37,211,102,.14); border-color: rgba(37,211,102,.55); color: #d9fdd3; }
@media (max-width: 680px) { .nav-actions .install-app-global { display: inline-flex !important; max-width: 98px; min-height: 40px; overflow: hidden; white-space: nowrap; padding: 6px 8px; font-size: 10px; } }
.social-profile-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.social-profile-link:hover, .social-profile-link:focus-visible { color: #25d366 !important; border-bottom-color: currentColor; outline: none; }
.player-directory-card[hidden] { display: none !important; }
.player-presence { display: inline-flex; vertical-align: middle; margin-left: 5px; padding: 3px 7px; border-radius: 999px; color: #aebac1; background: rgba(134,150,160,.14); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.player-presence.is-online { color: #b8f7cb; background: rgba(37,211,102,.14); }
@media (min-width: 993px) { .social-hub-wrapper { min-height: calc(100vh - 72px); } .social-hub-wrapper .social-layout-grid { min-height: calc(100vh - 168px); } }
input, textarea, select, .form-input { background: rgba(8,4,18,.58) !important; color: #fff !important; border-color: var(--border-base) !important; }
@media (max-width: 680px) {
  .nav-actions { gap: 6px; }
  .nav-actions .audio-toggle-btn, .nav-actions > a.btn-ghost { display: none; }
  .hamburger { display: inline-flex; min-height: 42px; min-width: 48px; justify-content: center; }
  .container, .container-wide { padding-left: 16px; padding-right: 16px; }
  .hero h1, .section-title { font-size: clamp(30px, 10vw, 44px); }
  .hero-actions, .form-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .form-actions .btn { width: 100%; }
  .sidebar-drawer { width: min(390px, 94vw); }
}

/* Screen-aware layout tuning: resize by available width/height, and enlarge
   touch targets on phones/tablets without making desktop layouts waste space. */
@media (min-width: 1440px) {
  .container, .container-wide { max-width: 1480px; }
  .social-hub-wrapper .social-layout-grid { grid-template-columns: minmax(320px, 24vw) minmax(480px, 1fr) minmax(290px, 22vw) !important; }
}
@media (max-height: 760px) and (min-width: 761px) {
  .social-hub-wrapper .social-layout-grid { min-height: calc(100dvh - 145px); }
  .social-hub-wrapper .social-chat-main { height: calc(100dvh - 145px) !important; }
  .social-hub-wrapper .social-sidebar-left > .card:first-child { min-height: 58px; }
  .social-hub-wrapper .social-sidebar-left .card:nth-child(2) { min-height: 0; }
}
@media (pointer: coarse) {
  .sidebar-link, .sidebar-install-btn, .nav-actions button, .nav-actions a { min-height: 44px; }
  .channel-item, .people-tab-pill, .channel-tab-pill { min-height: 44px; }
  input, select, textarea, .form-input { font-size: max(16px, 1em) !important; }
}
@media (max-width: 380px) {
  .nav-brand .brand-sub, .nav-actions .nav-status-label { display: none; }
  .nav-actions { gap: 4px; }
  .nav-actions .install-app-global { max-width: 76px; font-size: 9px; }
  .nav-actions > .btn-primary { padding: 8px 9px; font-size: 10px; }
  .social-hub-wrapper .social-header h1 { font-size: .92rem !important; }
  .social-hub-wrapper .social-chat-main { height: calc(100dvh - 104px) !important; }
}
@supports (height: 100dvh) {
  .social-hub-wrapper { min-height: calc(100dvh - 70px) !important; }
  @media (max-width: 760px) {
    .social-hub-wrapper .social-chat-main { height: calc(100dvh - 120px) !important; }
  }
}

/* Animated SPYSMP landing system: CSS-native, GPU-friendly, reduced-motion safe. */
.hero { --glow-x: 50%; --glow-y: 42%; isolation: isolate; overflow: hidden; background: radial-gradient(520px 360px at var(--glow-x) var(--glow-y), rgba(168,85,247,.20), transparent 70%), linear-gradient(135deg, rgba(11,5,25,.98), rgba(33,12,65,.88)); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero::before { background: linear-gradient(115deg, transparent 0 42%, rgba(255,255,255,.035) 50%, transparent 58%); transform: translateX(-100%); animation: hero-sheen 9s ease-in-out infinite; }
.hero::after { opacity: .28; background-image: radial-gradient(rgba(255,255,255,.32) .7px, transparent .7px); background-size: 5px 5px; mix-blend-mode: soft-light; }
.hero-scene { position: absolute; inset: 0; pointer-events: none; z-index: -1; transform: translate3d(var(--mx,0), var(--my,0), 0); transition: transform .18s ease-out; }
.hero-grid-floor { position: absolute; width: 130%; height: 45%; left: -15%; bottom: -12%; opacity: .28; transform: perspective(330px) rotateX(62deg); transform-origin: bottom; background-image: linear-gradient(rgba(192,132,252,.42) 1px, transparent 1px), linear-gradient(90deg, rgba(192,132,252,.42) 1px, transparent 1px); background-size: 52px 36px; mask-image: linear-gradient(to top, #000, transparent); animation: grid-drift 12s linear infinite; }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(1px); opacity: .62; }
.hero-orb-a { width: 290px; height: 290px; right: 12%; top: 14%; background: radial-gradient(circle at 32% 28%, #f3e8ff, #a855f7 24%, #4c1d95 60%, transparent 70%); box-shadow: 0 0 90px rgba(168,85,247,.55); animation: orb-float 8s ease-in-out infinite; }
.hero-orb-b { width: 110px; height: 110px; right: 30%; top: 54%; background: radial-gradient(circle, #fff, #67e8f9 18%, #6d28d9 62%, transparent 72%); box-shadow: 0 0 44px rgba(103,232,249,.45); animation: orb-float 5s ease-in-out -2s infinite reverse; }
.hero-scanline { position: absolute; inset: 0 auto 0 73%; width: 1px; background: linear-gradient(transparent, rgba(216,180,254,.8), transparent); opacity: .32; animation: scanline 4.5s ease-in-out infinite; }
.hero-terminal { position: absolute; right: 9%; bottom: 20%; width: 205px; padding: 16px; border: 1px solid rgba(216,180,254,.26); border-radius: 14px; color: #cfc3e4; background: rgba(10,4,21,.58); box-shadow: 0 14px 45px rgba(0,0,0,.28), inset 0 0 30px rgba(124,58,237,.11); backdrop-filter: blur(12px); font: 11px/1.8 'JetBrains Mono', monospace; animation: terminal-breathe 4s ease-in-out infinite; }
.terminal-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 12px #86efac; }
.terminal-label { color: #f5d0fe; letter-spacing: .16em; }
.terminal-line { display: block; color: #a395b8; }
.terminal-line b { color: #86efac; font-weight: 600; }
@keyframes hero-sheen { 0%, 70% { transform: translateX(-100%); } 88%, 100% { transform: translateX(100%); } }
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 36px, 52px 0; } }
@keyframes orb-float { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-18px,-22px,0) scale(1.05); } }
@keyframes scanline { 0%,100% { transform: translateY(-20%); opacity: 0; } 35%,65% { opacity: .55; } 50% { transform: translateY(20%); } }
@keyframes terminal-breathe { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (max-width: 760px) { .hero-orb-a { width: 190px; height: 190px; right: -38px; top: 26%; } .hero-orb-b, .hero-terminal, .hero-scanline { display: none; } .hero-grid-floor { opacity: .18; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero-grid-floor, .hero-orb, .hero-scanline, .hero-terminal { animation: none !important; } }
