/* ═══════════════════════════════════════════════════════════════════════════
   SmurfPlay — Landing Page Styles
   Blue accent (#0b6cfb), dark palette (#0f111b, #141723)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ───────────────────────────────────────────────────────── */
:root {
  /* Core palette — dark */
  --bg-deep: #0f111b;
  --bg-surface: #141723;
  --bg-elevated: #1a1d2e;
  --bg-card: #171a28;
  
  /* Accent — blue */
  --accent: #0b6cfb;
  --accent-dim: #0956d9;
  --accent-dark: #0747b8;
  --accent-glow: rgba(11, 108, 251, 0.2);
  --accent-subtle: rgba(11, 108, 251, 0.08);
  
  /* Text */
  --text-dark: #0f111b;
  --text-primary: #f4f4f8;
  --text-secondary: #9898a8;
  --text-muted: #70707f;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(11, 108, 251, 0.35);
  
  /* Typography — Sora (display) + Inter (body) + JetBrains Mono */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Spacing */
  --section-padding: clamp(5rem, 12vw, 10rem);
  --container-max: 1440px;
  
  /* Status colors */
  --status-ready: #22c55e;
  --status-ready-glow: rgba(34, 197, 94, 0.4);
  --status-not-ready: #6b7280;
  --status-not-ready-bg: rgba(107, 114, 128, 0.2);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
[data-theme="light"] {
  --bg-deep: #f0f2f7;
  --bg-surface: #ffffff;
  --bg-elevated: #f8f9fc;
  --bg-card: #ffffff;
  --text-dark: #0f111b;
  --text-primary: #1a1d2e;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-accent: rgba(11, 108, 251, 0.35);
  --accent-subtle: rgba(11, 108, 251, 0.12);
  --shadow-card: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.12);
}
[data-theme="light"] body { background: var(--bg-deep); color: var(--text-primary); }

/* Event theme - Dark theme with vibrant green accent inspired by Halal MM */
[data-theme="event"] {
  --bg-deep: #1a1d24;
  --bg-surface: #1f2229;
  --bg-elevated: #25282f;
  --bg-card: #1f2229;
  --text-dark: #1a1d24;
  --text-primary: #ffffff;
  --text-secondary: #b4b7bd;
  --text-muted: #8b8e95;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(110, 231, 183, 0.3);
  --accent: #6ee7b7;
  --accent-dim: #5dd9a7;
  --accent-dark: #4cc997;
  --accent-glow: rgba(110, 231, 183, 0.2);
  --accent-subtle: rgba(110, 231, 183, 0.08);
  --status-ready: #6ee7b7;
  --status-ready-glow: rgba(110, 231, 183, 0.3);
  --shadow-card: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.5);
}
[data-theme="event"] body { 
  background: #1a1d24;
  color: var(--text-primary); 
}
[data-theme="event"] .hero-bg-mesh {
  background: radial-gradient(ellipse 100% 60% at 50% -20%, rgba(110, 231, 183, 0.08) 0%, transparent 50%);
}
[data-theme="event"] .btn-primary {
  background: #6ee7b7;
  border: 1px solid #6ee7b7;
  color: #1a1d24;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(110, 231, 183, 0.2);
}
[data-theme="event"] .btn-primary:hover {
  background: #5dd9a7;
  border-color: #5dd9a7;
  box-shadow: 0 4px 16px rgba(110, 231, 183, 0.3);
  transform: translateY(-1px);
}
[data-theme="event"] .party-card-modern {
  background: #1f2229;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
[data-theme="event"] .party-card-modern:hover {
  border-color: rgba(110, 231, 183, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="event"] .party-card-badge {
  background: rgba(110, 231, 183, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.25);
}
[data-theme="event"] .party-spectate-icon {
  background: rgba(110, 231, 183, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(110, 231, 183, 0.25);
}
[data-theme="event"] .nav {
  background: rgba(26, 29, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
[data-theme="event"] .nav.scrolled {
  background: rgba(26, 29, 36, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
[data-theme="event"] .dash-stat-accent {
  color: #6ee7b7;
}
[data-theme="event"] .intro-box-item {
  background: #1f2229;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="event"] .intro-box-item:hover {
  background: rgba(110, 231, 183, 0.05);
  border-color: rgba(110, 231, 183, 0.25);
}
[data-theme="event"] input,
[data-theme="event"] select,
[data-theme="event"] textarea {
  background: #25282f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
[data-theme="event"] input:focus,
[data-theme="event"] select:focus,
[data-theme="event"] textarea:focus {
  border-color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.15);
}
[data-theme="event"] .btn-ghost {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="event"] .btn-ghost:hover {
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.3);
}
[data-theme="event"] .btn-secondary {
  background: rgba(110, 231, 183, 0.1);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.25);
}
[data-theme="event"] .btn-secondary:hover {
  background: rgba(110, 231, 183, 0.15);
  border-color: rgba(110, 231, 183, 0.35);
}
[data-theme="event"] .admin-tab.active {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.3);
  color: #6ee7b7;
}
[data-theme="event"] .admin-tab:hover {
  background: rgba(110, 231, 183, 0.08);
}
[data-theme="event"] .logo span {
  color: #6ee7b7;
}

/* Event theme - Override all blue elements with green */
[data-theme="event"] .gradient-text {
  background: linear-gradient(135deg, #6ee7b7 0%, #5dd9a7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="event"] .hero-badge-glow {
  border-color: rgba(110, 231, 183, 0.3);
  background: rgba(110, 231, 183, 0.05);
}
[data-theme="event"] .games-showcase-section::before {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(110, 231, 183, 0.08) 0%, transparent 60%);
}
[data-theme="event"] .games-showcase-card::before {
  background: linear-gradient(135deg, rgba(110, 231, 183, 0.05) 0%, transparent 50%);
}
[data-theme="event"] .games-showcase-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(110, 231, 183, 0.2);
}
[data-theme="event"] .game-icon-img-wrap {
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.2);
}
[data-theme="event"] .games-showcase-icon {
  background: rgba(110, 231, 183, 0.08);
}
[data-theme="event"] .flow-card-accent {
  border-color: rgba(110, 231, 183, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(110, 231, 183, 0.1);
}
[data-theme="event"] .how-float-1 {
  border-color: rgba(110, 231, 183, 0.25);
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.08) 0%, rgba(31, 34, 41, 0.9) 100%);
}
[data-theme="event"] .how-step-active {
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.15) 0%, rgba(110, 231, 183, 0.05) 100%);
  box-shadow: 0 0 40px rgba(110, 231, 183, 0.15);
  border-color: rgba(110, 231, 183, 0.3);
}
[data-theme="event"] .how-step-card:hover {
  border-color: rgba(110, 231, 183, 0.3);
}
[data-theme="event"] .footer-pill {
  border-color: rgba(110, 231, 183, 0.25);
}
[data-theme="event"] .footer-pill:hover {
  background: rgba(110, 231, 183, 0.1);
}
[data-theme="event"] .dash-stat-card {
  background: rgba(110, 231, 183, 0.08);
  border: 1px solid rgba(110, 231, 183, 0.2);
}
[data-theme="event"] .dash-stat-card:hover {
  background: rgba(110, 231, 183, 0.12);
  border-color: rgba(110, 231, 183, 0.3);
}
[data-theme="event"] .dash-sort-btn.active {
  background: rgba(110, 231, 183, 0.12);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.3);
}

/* Event Theme Admin Controls - Card Grid Layout */
.event-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.event-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.event-card:hover {
  border-color: var(--border-accent);
}
.event-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.event-card-header span {
  font-size: 1.5rem;
}
.event-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}
.event-card-status {
  grid-column: 1 / -1;
}
.event-status-indicator {
  font-size: 1.2rem;
}
.event-status-text {
  margin: 0 0 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.event-card-settings form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.event-card-settings .form-group {
  margin-bottom: 0;
}
.event-card-settings .form-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.event-preview-colors {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.event-preview-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.event-preview-swatch {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.event-preview-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.event-preview-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}
.event-preview-features li:last-child {
  border-bottom: none;
}
.event-card-status {
  background: var(--bg-card);
}
.event-card-settings {
  background: var(--bg-card);
}
.event-card-preview {
  background: var(--bg-card);
}
@media (max-width: 768px) {
  .event-theme-grid {
    grid-template-columns: 1fr;
  }
  .event-card-status {
    grid-column: 1;
  }
}

/* Event Form - Beautiful, modern form styling */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.event-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.event-form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.event-form-label-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.event-form-required {
  color: #e05c5c;
  font-size: 0.9rem;
}
.event-form-optional {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--bg-elevated);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.event-form-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.event-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-elevated);
}
.event-form-input::placeholder {
  color: var(--text-muted);
}
.event-form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
.event-form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.event-form-submit {
  width: 100%;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}
.event-form-submit span:first-child {
  font-size: 1.1rem;
}
.event-form-submit:hover {
  transform: translateY(-1px);
}

/* Event Modal - Dark theme with green accent matching Halal MM style */
.event-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.event-modal {
  background: #1f2229;
  border: 1px solid rgba(110, 231, 183, 0.2);
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.event-modal-header {
  padding: 2rem 2rem 1rem 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.event-modal-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.event-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6ee7b7;
  margin: 0 0 0.5rem 0;
  font-family: var(--font-display);
}
.event-modal-body {
  padding: 1.5rem 2rem;
}
.event-modal-description {
  color: #b4b7bd;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}
.event-modal-actions {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}
.event-modal-btn {
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-align: center;
  text-decoration: none;
  display: block;
}
.event-modal-btn-primary {
  background: #6ee7b7;
  color: #1a1d24;
  box-shadow: 0 2px 8px rgba(110, 231, 183, 0.3);
}
.event-modal-btn-primary:hover {
  background: #5dd9a7;
  box-shadow: 0 4px 16px rgba(110, 231, 183, 0.4);
  transform: translateY(-1px);
}
.event-modal-btn-secondary {
  background: transparent;
  color: #b4b7bd;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.event-modal-btn-secondary:hover {
  background: rgba(110, 231, 183, 0.08);
  border-color: rgba(110, 231, 183, 0.3);
  color: #ffffff;
}
.event-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #8b8e95;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}
.event-modal-close:hover {
  background: rgba(110, 231, 183, 0.1);
  color: #6ee7b7;
}

/* Global focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-subtle); }
[data-theme="light"] .nav-links a,
[data-theme="light"] .theme-toggle { color: var(--text-secondary); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .theme-toggle:hover { color: var(--text-primary); }
@media (max-width: 767px) {
  [data-theme="light"] .nav-links.open { background: rgba(255, 255, 255, 0.98); }
}
[data-theme="light"] .hero-bg-mesh { background: radial-gradient(ellipse 100% 60% at 50% -20%, rgba(11, 108, 251, 0.08) 0%, transparent 50%), radial-gradient(ellipse 70% 50% at 90% 50%, rgba(11, 108, 251, 0.05) 0%, transparent 45%), radial-gradient(ellipse 60% 40% at 10% 80%, rgba(11, 108, 251, 0.04) 0%, transparent 40%); }
[data-theme="light"] .hero-orb { opacity: 0.25; }
[data-theme="light"] .btn-secondary { background: rgba(11, 108, 251, 0.1); color: var(--accent); border: 1px solid rgba(11, 108, 251, 0.25); }
[data-theme="light"] .btn-secondary:hover { background: rgba(11, 108, 251, 0.18); border-color: rgba(11, 108, 251, 0.35); }
[data-theme="light"] .hero-stat-divider { background: var(--border-subtle); }
[data-theme="light"] .games-showcase-card { box-shadow: 0 4px 20px var(--shadow-card); }
[data-theme="light"] .games-showcase-card:hover { box-shadow: 0 12px 32px var(--shadow-strong); }
[data-theme="light"] .visual-wrapper { box-shadow: 0 24px 48px var(--shadow-strong); }
[data-theme="light"] .dash-welcome-desc a { color: var(--accent); }
[data-theme="light"] .dash-onboarding-tip { background: rgba(11, 108, 251, 0.1); border-color: rgba(11, 108, 251, 0.25); }
[data-theme="light"] .dash-section-modern { box-shadow: 0 1px 3px var(--shadow-card); }
[data-theme="light"] .game-card-modern:hover { box-shadow: 0 8px 24px var(--shadow-strong); }
[data-theme="light"] .party-card-modern { box-shadow: 0 2px 8px var(--shadow-card); }
[data-theme="light"] .modal-overlay { background: rgba(0, 0, 0, 0.4); }
[data-theme="light"] .modal { box-shadow: 0 24px 48px var(--shadow-strong); }
[data-theme="light"] .party-room { border-color: var(--border-subtle); }
[data-theme="light"] .chat-messages { background: var(--bg-elevated); }
[data-theme="light"] .member-item { border-color: var(--border-subtle); }
[data-theme="light"] .btn-ghost:hover { background: rgba(11, 108, 251, 0.08); }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: var(--bg-surface); border-color: var(--border-subtle); color: var(--text-primary); }
[data-theme="light"] .trust-badge-high { background: rgba(34, 197, 94, 0.15); }
[data-theme="light"] .trust-badge-new { background: rgba(107, 114, 128, 0.15); }
[data-theme="light"] .footer { border-top-color: var(--border-subtle); }
[data-theme="light"] .footer-pill-white,
[data-theme="light"] .footer-top-bar .footer-pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
[data-theme="light"] .footer-pill-white:hover,
[data-theme="light"] .footer-top-bar .footer-pill:hover {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  color: var(--accent);
}

/* Theme toggle: single button, icon = “switch to” that theme */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.theme-toggle:hover {
  color: var(--accent);
  background: var(--accent-subtle);
  transform: scale(1.05);
}
.theme-toggle:active {
  transform: scale(0.98);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle-icon {
  display: block;
  line-height: 1;
}

/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── Mobile-first base (320px+) ──────────────────────────────────────────── */
html { font-size: 16px; }

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0.875rem;
}
@media (min-width: 375px) {
  .container { padding: 0 1rem; }
}
@media (min-width: 640px) {
  .container { padding: 0 clamp(1.5rem, 5vw, 4rem); }
}

.container-narrow {
  max-width: 900px;
}

/* ─── Navigation (mobile-first) ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(15, 17, 27, 0.92) 0%, transparent 100%);
  backdrop-filter: blur(16px);
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.nav.scrolled {
  background: rgba(15, 17, 27, 0.95);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0.875rem;
}
@media (min-width: 375px) { .nav-inner { padding: 0 1rem; } }
@media (min-width: 768px) {
  .nav-inner { padding: 0 clamp(1.5rem, 5vw, 4rem); }
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.logo span { color: var(--accent); font-weight: 800; }

/* Nav actions: theme + hamburger on mobile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Mobile: theme next to burger; desktop: theme in nav-links only */
.theme-toggle-mobile { display: inline-flex; }
.theme-toggle-mobile.theme-toggle { width: 44px; height: 44px; font-size: 1.3rem; }
.theme-toggle-desktop { display: none; }
@media (min-width: 768px) {
  .theme-toggle-mobile { display: none; }
  .theme-toggle-desktop { display: inline-flex; }
}

/* Mobile: hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

/* Prevent body scroll when mobile menu is open */
body.nav-menu-open { overflow: hidden; }

/* Mobile: nav links as full-screen overlay */
@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    top: 64px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem 1.5rem 2rem;
    background: rgba(15, 17, 27, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex;
    height: calc(100vh - 64px);
  }
  .nav-links a,
  .nav-links .theme-toggle {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links .theme-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
    border-radius: 50%;
  }
  .nav-links a.btn-primary,
  .nav-links a.btn-ghost {
    margin-top: 1rem;
    justify-content: center;
    border: none;
  }
}

/* Desktop: inline nav */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    padding: 0;
    background: none;
    backdrop-filter: none;
    overflow: visible;
  }
  .nav-links a,
  .nav-links .theme-toggle {
    padding: 0;
    font-size: 0.95rem;
    border-bottom: none;
  }
  .nav-links a.btn-primary,
  .nav-links a.btn-ghost { margin-top: 0; }
}

.nav-links { gap: 0.5rem; }
@media (min-width: 768px) {
  .nav-links { gap: 1rem; }
}
@media (min-width: 900px) {
  .nav-links { gap: 1.5rem; }
}

.nav-links .theme-toggle { margin-left: 0.25rem; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.btn-primary,
.nav-links a.btn-ghost {
  padding: 0.7rem 1.5rem;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 600;
}
.nav-links a.btn-primary { color: #fff; }
@media (min-width: 768px) {
  .nav-links a.btn-primary,
  .nav-links a.btn-ghost {
    padding: 0.75rem 1.75rem;
    min-height: 46px;
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

/* ─── Hero (mobile-first) ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0 3rem;
  overflow: hidden;
}
@media (min-width: 640px) {
  .hero { padding: 6rem 0 4rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 8rem 0 5rem; }
}

.hero-dots-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(11, 108, 251, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 65% 45% at 85% 15%, rgba(11, 108, 251, 0.04) 0%, transparent 45%),
    radial-gradient(ellipse 50% 35% at 15% 85%, rgba(11, 108, 251, 0.03) 0%, transparent 40%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, black 15%, transparent 75%);
  opacity: 0.8;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  animation: float 22s infinite ease-in-out;
}

.hero-particles .particle:nth-child(1) { left: 12%; top: 25%; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 28%; top: 65%; animation-delay: -4s; }
.hero-particles .particle:nth-child(3) { left: 48%; top: 35%; animation-delay: -8s; }
.hero-particles .particle:nth-child(4) { left: 72%; top: 72%; animation-delay: -12s; }
.hero-particles .particle:nth-child(5) { left: 88%; top: 38%; animation-delay: -16s; }
.hero-particles .particle:nth-child(6) { left: 55%; top: 12%; animation-delay: -20s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
  33% { transform: translate(25px, -35px) scale(1.15); opacity: 0.5; }
  66% { transform: translate(-15px, 25px) scale(0.9); opacity: 0.35; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 960px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s var(--ease-out) forwards;
  opacity: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s var(--ease-out) 0.08s forwards;
  opacity: 0;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  animation: fadeUp 0.9s var(--ease-out) 0.16s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s var(--ease-out) 0.24s forwards;
  opacity: 0;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease-out) 0.32s forwards;
  opacity: 0;
}

.btn-hero {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Section headers ─────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ─── Features ────────────────────────────────────────────────────────────── */
.features {
  padding: var(--section-padding) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.25rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ─── Games slider ────────────────────────────────────────────────────────── */
.games-section {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.games-slider-wrap {
  position: relative;
  margin-top: 3rem;
  overflow: hidden;
}

.games-slider-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  transition: transform 0.5s var(--ease-out);
}

.game-card {
  flex: 0 0 min(320px, 90vw);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg-elevated);
}

.game-card-body {
  padding: 1.25rem;
}

.game-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.game-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.slider-dot:hover, .slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.5rem;
}

.slider-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s var(--ease-out);
}

.slider-arrow:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── How it works ────────────────────────────────────────────────────────── */
.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--bg-deep);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.step {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  transition: all 0.35s var(--ease-spring);
}

.step:hover .step-number {
  transform: scale(1.12);
  box-shadow: 0 0 40px var(--accent-glow);
}

.step-connector {
  display: none;
}

@media (min-width: 960px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 30px;
    left: calc(100% + 0.5rem);
    width: calc(100% - 2rem);
    height: 1px;
    background: linear-gradient(90deg, var(--border-accent), transparent);
    opacity: 0.5;
  }
  .step:last-child .step-connector { display: none; }
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ─── Visual / Party mock ─────────────────────────────────────────────────── */
.visual-section {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.visual-wrapper {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.45);
}

.party-mock {
  background: linear-gradient(150deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  padding: 2rem;
}

.party-mock-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.party-mock-game {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.party-mock-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.party-mock-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.party-mock-slots {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.party-mock-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
}

.members-panel, .chat-panel {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 1.25rem;
}

.members-panel h4, .chat-panel h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.875rem;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.member-ready {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ready);
  margin-left: auto;
  flex-shrink: 0;
}

.chat-line {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}

.chat-line strong { color: var(--accent); font-weight: 600; }

.voice-cta-mock {
  margin-top: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--accent-subtle);
  border: 1px dashed var(--border-accent);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  font-weight: 500;
}

/* ─── Screenshots / Gallery ───────────────────────────────────────────────── */
.screenshots-section {
  padding: var(--section-padding) 0;
  background: var(--bg-deep);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.35s var(--ease-out);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.screenshot-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.screenshot-card figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-section {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.testimonial-slider {
  margin-top: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-slider .testimonial-prev,
.testimonial-slider .testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.testimonial-slider .testimonial-prev { left: -1rem; }
.testimonial-slider .testimonial-next { right: -1rem; }

@media (max-width: 768px) {
  .testimonial-slider .testimonial-prev { left: 0; }
  .testimonial-slider .testimonial-next { right: 0; }
}

.testimonial-slides {
  max-width: 720px;
  width: 100%;
  position: relative;
}

.testimonial-slide {
  display: none;
  text-align: center;
  padding: 1rem 2rem;
}

.testimonial-slide.active {
  display: block;
  animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.testimonial-text {
  font-size: 1.35rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.testimonial-text .quote { color: var(--accent); }

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─── Final CTA ───────────────────────────────────────────────────────────── */
.final-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--accent-subtle) 45%, transparent 100%);
}

.final-cta .section-title { margin-bottom: 1rem; }
.final-cta .section-desc { margin-bottom: 2rem; }

.btn-final {
  padding: 1.35rem 2.75rem;
  font-size: 1.15rem;
  border-radius: 14px;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 100;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-logo span { color: var(--accent); font-weight: 800; }

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─── Landing Premium ─────────────────────────────────────────────────────── */
.logo-landing { font-family: var(--font-display); }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-premium .hero-title { font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4rem); }
.hero-subtitle-premium { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.hero-badge-glow {
  box-shadow: 0 0 24px var(--accent-glow);
  border: 1px solid rgba(11, 108, 251, 0.3);
}
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% -20%, rgba(11, 108, 251, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 50%, rgba(11, 108, 251, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(11, 108, 251, 0.05) 0%, transparent 40%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 12s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; right: -100px; animation-delay: 0s; }
.hero-orb-2 { width: 300px; height: 300px; background: var(--accent-dim); bottom: 20%; left: -80px; animation-delay: -4s; }
.hero-orb-3 { width: 200px; height: 200px; background: var(--accent-dark); top: 50%; left: 40%; animation-delay: -8s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}
.btn-hero-glow:hover { box-shadow: 0 0 40px var(--accent-glow), 0 12px 32px rgba(0,0,0,0.3); }
.btn-icon { margin-right: 0.5rem; font-size: 0.75em; }
.hero-stats-premium {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  padding: 1.5rem 0;
}
.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  display: none;
}
@media (min-width: 640px) {
  .hero-stat-divider { display: block; }
}
.intro-section { padding: var(--section-padding) 0; background: var(--bg-surface); }
.intro-section-modern .section-header { margin-bottom: 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}
.intro-content .section-label { margin-bottom: 0.5rem; }
.intro-content .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.intro-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.intro-desc:last-of-type { margin-bottom: 1.5rem; }
.intro-points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0;
}
.intro-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}
.intro-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.intro-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.intro-box {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.intro-box-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.intro-box-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(11, 108, 251, 0.08);
  border: 1px solid rgba(11, 108, 251, 0.25);
  border-radius: 12px;
  color: var(--text-primary);
}
.intro-box-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.intro-box-icon svg {
  width: 100%;
  height: 100%;
}
.intro-box-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.intro-box-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.8;
}
.intro-visual-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.features-premium .feature-card { padding: 2rem; }
.feature-icon-premium { font-size: 1.75rem; }
.how-it-works-premium .step { padding: 0 1rem; }

/* ─── Games showcase (creative card grid) ─────────────────────────────────── */
.games-showcase-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
  position: relative;
}
.games-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(11, 108, 251, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  position: relative;
}
@media (min-width: 640px) {
  .games-showcase-grid { grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .games-showcase-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}
.games-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.games-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 108, 251, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.games-showcase-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(11, 108, 251, 0.2);
}
.games-showcase-card:hover::before { opacity: 1; }
.game-icon-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(11, 108, 251, 0.08);
  overflow: hidden;
}
.game-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.game-icon-fb {
  font-size: 1.75rem;
  line-height: 1;
}
.games-showcase-name {
  line-height: 1.3;
}
.games-showcase-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.games-showcase-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}
.games-skeleton-card {
  height: 120px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.games-show-more-wrap {
  margin-top: 2rem;
  text-align: center;
}
.btn-games-more {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
}
/* Empty state when no games (or load error) */
.games-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  min-height: 220px;
}
.games-empty-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.games-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.games-empty-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 360px;
  line-height: 1.5;
}
.games-empty-cta {
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
}
.games-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.games-empty-state-error .games-empty-icon { font-size: 2.5rem; }
.games-load-err {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem;
}

/* ─── Footer pills (white twist) ──────────────────────────────────────────── */
.footer-pill-white,
.footer-top-bar .footer-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.footer-pill-white:hover,
.footer-top-bar .footer-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.footer-pill-img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  vertical-align: middle;
}
.footer-top-bar .footer-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── Features flow (alternating content + visual) ─────────────────────────── */
.features-flow { padding: var(--section-padding) 0; background: var(--bg-deep); }
.flow-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.flow-block:last-of-type { margin-bottom: 0; }
@media (min-width: 768px) {
  .flow-block { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .flow-block-2 .flow-content { order: 2; }
  .flow-block-2 .flow-visual { order: 1; }
  .flow-block-4 .flow-content { order: 2; }
  .flow-block-4 .flow-visual { order: 1; }
}
.flow-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 16px;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.flow-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.flow-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.flow-card {
  padding: 2rem;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.flow-card-accent {
  border-color: rgba(11, 108, 251, 0.3);
  color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(11, 108, 251, 0.1);
}

/* ─── How it works flow (vertical steps + floating cards) ──────────────────── */
.how-it-works-flow { padding: var(--section-padding) 0; background: var(--bg-surface); }
.how-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto 0;
  position: relative;
}
@media (min-width: 900px) {
  .how-flow-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.how-steps-col { display: flex; flex-direction: column; gap: 1rem; }
.how-step-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s var(--ease-out);
}
.how-step-card:hover { border-color: rgba(11, 108, 251, 0.3); }
.how-step-active {
  background: linear-gradient(145deg, rgba(11, 108, 251, 0.15) 0%, rgba(11, 108, 251, 0.05) 100%);
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(11, 108, 251, 0.15);
}
.how-step-icon { font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }
.how-step-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.how-step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}
.how-visual-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 900px) {
  .how-visual-col { position: sticky; top: 6rem; }
}
.how-float-card {
  padding: 2rem;
  background: rgba(22, 22, 29, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}
.how-float-1 {
  border-color: rgba(11, 108, 251, 0.25);
  background: linear-gradient(145deg, rgba(11, 108, 251, 0.08) 0%, rgba(20, 23, 35, 0.9) 100%);
}
.how-float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.how-float-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.how-float-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.how-float-stars {
  display: block;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* ─── Visual flow section (intro grid reverse) ─────────────────────────────── */
.visual-flow-section .intro-grid-reverse { max-width: 1100px; margin: 0 auto; }
@media (min-width: 900px) {
  .intro-grid-reverse .intro-content { order: 2; text-align: right; }
  .intro-grid-reverse .intro-visual { order: 1; }
  .intro-grid-reverse .intro-content .section-title,
  .intro-grid-reverse .intro-content .intro-desc { margin-left: auto; }
}

/* ─── Footer modern (GAME BOOST style) ─────────────────────────────────────── */
.footer-modern {
  background: var(--bg-deep);
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-top-bar {
  background: var(--bg-surface);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(11, 108, 251, 0.25);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}
.footer-pill:hover {
  border-color: var(--accent);
  background: rgba(11, 108, 251, 0.1);
}
.footer-pill-icon { font-size: 1rem; }
.footer-main { padding: 3rem 0 2rem; }
.footer-modern .footer-grid {
  margin-bottom: 2.5rem;
}
.footer-modern .footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
  max-width: 280px;
}
.footer-modern .footer-col h4 {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.footer-help p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn-footer-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-footer-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.btn-footer-discord {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #5865f2 !important;
  color: #fff !important;
  border: none !important;
}
.btn-footer-discord:hover {
  background: #6773f4 !important;
  transform: translateY(-1px);
}
.footer-discord-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
.step-premium .step-desc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: var(--accent-subtle);
  border-radius: 6px;
  color: var(--accent);
}
.party-mock-premium { border-radius: 20px; }
.faq-section { padding: var(--section-padding) 0; background: var(--bg-surface); }
.faq-list { margin-top: 2rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item:hover { border-color: var(--border-accent); }
.faq-question {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
.final-cta-premium { padding: clamp(4rem, 10vw, 7rem) 0; }
.footer-premium { padding: 4rem 2rem 2rem; }
.footer-premium .footer-inner { flex-direction: column; align-items: stretch; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}
.footer-brand .footer-logo { display: inline-block; margin-bottom: 0.5rem; }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a:not(.btn-footer-discord) {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
}
.footer-col a:not(.btn-footer-discord):hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; text-align: center; }
.footer-bottom .footer-copy { margin: 0; }

/* ─── App page footer (find, party, admin) ─────────────────────────────────── */
.footer-app {
  margin-top: auto;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.footer-app-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.app-page-with-footer { display: flex; flex-direction: column; min-height: 100vh; }
.app-page-with-footer main { flex: 1; }

/* ─── Reveal animation ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* ─── Find Party & App ───────────────────────────────────────────────────── */
.app-page { padding-top: 4rem; min-height: 100vh; }
@media (min-width: 480px) { .app-page { padding-top: 5rem; } }

/* Find Party — Modern layout */
.dash-page { background: var(--bg-deep); }
.dash-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}
.dash-layout-expanded { max-width: 1280px; padding: 2rem 1.5rem; }

.dash-header-modern {
  margin-bottom: 2.5rem;
  padding: 2rem 0;
}
.dash-header-expanded {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.dash-welcome { display: flex; align-items: center; gap: 1.25rem; }
.dash-welcome-text { max-width: 520px; }
.dash-welcome-desc { font-size: 0.95rem; line-height: 1.6; }
.dash-welcome-desc a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.dash-welcome-desc a:hover { opacity: 0.9; }
.dash-avatar-large { width: 64px; height: 64px; font-size: 1.75rem; }
.dash-playstyle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.dash-playstyle-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.dash-playstyle-select {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.9rem;
}
.dash-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.dash-stat-card {
  flex: 1;
  min-width: 100px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.dash-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-stat-accent {
  background: rgba(11, 108, 251, 0.08);
  border-color: rgba(11, 108, 251, 0.3);
  justify-content: center;
}
.dash-stat-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.dash-section-expanded { padding: 2rem 2.5rem; }
.dash-section-title-wrap { flex: 1; }
.dash-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.dash-header-modern h1 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; letter-spacing: -0.02em; }
.dash-header-modern p { color: var(--text-secondary); font-size: 0.95rem; }

.dash-onboarding-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.dash-onboarding-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
}
.dash-onboarding-dismiss:hover { color: var(--text-primary); }

.dash-body { display: flex; flex-direction: column; gap: 1.5rem; }

.dash-section-modern {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.dash-section-modern::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}
.dash-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-section-head h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-section-icon { font-size: 1.2rem; opacity: 0.9; }
.dash-section-head p, .dash-section-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.dash-filter-wrap { margin-left: auto; }
.dash-filter-wrap-row { display: flex; align-items: center; gap: 0.75rem; }
.dash-sort-toggle { display: flex; gap: 0.25rem; }
.dash-sort-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.dash-sort-btn:hover { color: var(--text-primary); background: var(--accent-subtle); }
.dash-sort-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.account-toggle { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; padding: 0.75rem 0; }
.account-toggle input { width: 1.25rem; height: 1.25rem; accent-color: var(--accent); }
.form-group-checkbox { margin-bottom: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.checkbox-label input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.dash-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.dash-filter-btn:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}
a.dash-filter-btn { text-decoration: none; }
.dash-filter-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.dash-filter {
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239898a8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.dash-filter:hover { border-color: var(--border-accent); }
.dash-filter:focus-visible { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 2px; }

/* Game cards — modern with icon images */
.games-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .games-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 640px) {
  .games-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.25rem;
  }
}
.game-card-modern {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
}
.game-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.game-card-modern:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-subtle);
}
.game-card-modern:hover::before { opacity: 1; }
.game-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  flex-shrink: 0;
}
.game-card-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}
.game-card-icon-fallback {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.game-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}
.game-card-action {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease-out);
  position: relative;
  z-index: 1;
}
.game-card-modern:hover .game-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* Party cards — modern grid */
.parties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .parties-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 768px) {
  .parties-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
.party-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.25s var(--ease-out);
}
.party-card-modern:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.party-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.party-card-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.party-card-game { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.party-card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
}
.party-spectate-icon {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.party-spectate-icon:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
.party-card-mode {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.party-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.parties-grid-expanded { gap: 1rem; }
.party-card-modern .party-card-meta {
  margin-bottom: 0.75rem;
}
.party-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.party-card-slots {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
}
.party-card-join { width: 100%; margin-top: auto; }
.party-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.party-card-actions .btn {
  flex: 1;
}
.party-quick-join {
  font-weight: 600;
}

/* Empty state */
.parties-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}
.parties-empty.visible { display: flex; }
.parties-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.6; }
.parties-empty p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.25rem; }
.parties-empty span { font-size: 0.9rem; }

/* Legacy (keep for party room) */
.dash-header { margin-bottom: 2rem; }
.dash-header h1 { font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.25rem; }
.dash-header .user-badge { color: var(--accent); font-size: 0.9rem; }
.dash-section { margin-bottom: 2.5rem; }
.dash-section h2 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-primary); }

.modal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  pointer-events: auto;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.modal h3 { margin-bottom: 1.25rem; font-family: var(--font-display); }
.modal .form-group { margin-bottom: 1rem; }
.modal label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--text-secondary); }
.modal .form-hint { display: block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--text-muted, #888); }
.modal select, .modal input, .modal textarea { width: 100%; padding: 0.65rem 1rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-card); color: var(--text-primary); font-size: 0.95rem; font-family: inherit; }
.modal textarea { min-height: 60px; resize: vertical; }
.modal select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239898a8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.25rem; cursor: pointer; }
.modal .form-actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.modal .form-actions .btn { flex: 1; }

/* Modal — modern (backdrop-filter can cause modal content to not render in some browsers) */
.modal-modern { /* backdrop-filter: blur(8px); */ }
.modal-modern .modal {
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-modern .modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
}
.modal-modern .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-modern .modal-header h3 { margin: 0; font-size: 1.2rem; }
.modal-modern .modal-close {
  min-width: 44px; min-height: 44px;
  width: 44px; height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-modern .modal-close:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.modal-modern .modal-body {
  padding: 1.25rem 1.5rem;
}

/* ─── Party Room (mobile-first 320px+) ─────────────────────────────────────── */
.party-room {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.75rem;
  height: calc(100vh - 4rem);
  overflow: hidden;
}
@media (min-width: 375px) {
  .party-room { padding: 1rem; gap: 1rem; }
}
@media (min-width: 640px) {
  .party-room { padding: 1.25rem; gap: 1.25rem; }
}

/* Party mock responsive stacking */
@media (max-width: 640px) {
  .party-mock-body { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .party-room {
    grid-template-columns: 260px 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    height: calc(100vh - 5rem);
  }
}
.party-sidebar { display: flex; flex-direction: column; gap: 1rem; min-height: 0; }
.party-share-row { margin-bottom: -0.25rem; }
.party-share-btn { font-size: 0.85rem; padding: 0.4rem 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.party-share-icon { font-size: 1rem; }
.party-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.party-header {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.party-title-row { display: flex; align-items: center; gap: 0.5rem; }
.party-settings-btn { min-width: 44px; min-height: 44px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; border-radius: 6px; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; }
.party-settings-btn:hover { background: var(--accent-subtle); color: var(--accent); }
.party-header .party-title { font-family: var(--font-display); font-size: 1.15rem; flex: 1; }
.party-header .party-meta { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.party-header .party-description { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.35rem; font-style: italic; }
.party-header .party-code-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.party-header .party-code-label { font-size: 0.8rem; color: var(--text-muted); }
.party-header .party-code { font-family: var(--font-mono); font-size: 1rem; padding: 0.2rem 0.5rem; background: var(--bg-subtle); border-radius: 6px; letter-spacing: 0.1em; }

.members-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
}
.members-panel h4 { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.members-hint { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; }
.member-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.member-avatar { grid-row: 1; grid-column: 1; }
.member-row-1 {
  grid-row: 1; grid-column: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; flex-wrap: wrap;
}
.member-row-1 .member-name-wrap { display: flex; align-items: center; gap: 0.35rem; }
.member-row-2 {
  grid-row: 2; grid-column: 1 / -1;
  display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-muted);
}
.member-name { font-weight: 500; }
.member-tag { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }
.trust-badge { font-size: 0.65rem; padding: 0.15rem 0.4rem; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.trust-badge-high { background: rgba(34, 197, 94, 0.2); color: var(--status-ready); }
.trust-badge-new { background: rgba(148, 163, 184, 0.2); color: var(--text-muted); }
.member-item-actionable { cursor: context-menu; }
.member-item-actionable:hover { background: var(--accent-subtle); border-radius: 8px; }
.member-context-menu-wrap {
  position: fixed;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 240px;
}
.member-context-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.member-menu-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 6px;
}
.member-menu-item:hover { background: var(--accent-subtle); }
.member-menu-item[data-action="ban"] { color: #e05c5c; }
.member-menu-transfer { color: var(--accent); font-weight: 500; }
.member-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-elevated); object-fit: cover; }
.member-ready-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--status-not-ready);
  flex-shrink: 0;
  position: relative;
}
.member-ready-dot.ready {
  background: var(--status-ready);
  box-shadow: 0 0 0 0 var(--status-ready-glow);
  animation: ready-signal 1.8s ease-out infinite;
}
.member-ready-dot.ready::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--status-ready);
  opacity: 0.6;
  animation: ready-wave 1.8s ease-out infinite;
}
@keyframes ready-signal {
  0%, 100% { box-shadow: 0 0 0 0 var(--status-ready-glow); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
@keyframes ready-wave {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Ready / Not Ready button */
.ready-btn {
  width: 100%;
  margin-bottom: 0.5rem;
  transition: all 0.25s var(--ease-out);
}
.ready-btn:not(.is-ready) {
  background: var(--status-not-ready-bg);
  color: var(--status-not-ready);
  border: 1px solid rgba(107, 114, 128, 0.3);
}
.ready-btn:not(.is-ready):hover {
  background: rgba(107, 114, 128, 0.3);
  color: var(--text-secondary);
}
.ready-btn.is-ready {
  background: rgba(34, 197, 94, 0.15);
  color: var(--status-ready);
  border: 1px solid rgba(34, 197, 94, 0.4);
}
.ready-btn.is-ready:hover {
  background: rgba(34, 197, 94, 0.25);
  box-shadow: 0 0 20px var(--status-ready-glow);
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.chat-messages {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}
/* SmurfPlay — custom scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
  min-height: 40px;
}
.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
.chat-messages::-webkit-scrollbar-thumb:active {
  background: var(--accent);
}
.chat-msg { font-size: 0.9rem; display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0; }
.chat-msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-msg-content { flex: 1; min-width: 0; }
.chat-msg-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chat-msg-name { color: var(--accent); font-size: 0.85rem; font-weight: 500; }
.chat-msg-time { color: var(--text-muted); font-size: 0.75rem; opacity: 0.85; }
.chat-msg-body { color: var(--text-primary); line-height: 1.5; word-break: break-word; margin-top: 0.2rem; }
.chat-msg-line { margin-top: 0.15rem; }
.chat-msg-line:first-child { margin-top: 0; }
.chat-msg-system { justify-content: center; padding: 0.4rem 0; gap: 0.5rem; }
.chat-msg-system .chat-msg-system-text { font-size: 0.8rem; font-style: italic; }
.chat-msg-system .chat-msg-system-text a { color: var(--accent); text-decoration: underline; }
.chat-msg-system .chat-msg-system-text a:hover { opacity: 0.9; }
.chat-msg-system .chat-msg-system-time { font-size: 0.7rem; opacity: 0.8; }
.chat-msg-system-join .chat-msg-system-text { color: var(--status-ready); }
.chat-msg-system-join .chat-msg-system-time { color: var(--status-ready); opacity: 0.7; }
.chat-msg-system-leave .chat-msg-system-text { color: #e05c5c; }
.chat-msg-system-leave .chat-msg-system-time { color: #e05c5c; opacity: 0.7; }
.chat-msg-system-ready .chat-msg-system-text { color: var(--text-muted); }
.chat-msg-system-ready .chat-msg-system-time { color: var(--text-muted); opacity: 0.7; }
.chat-form { flex-shrink: 0; display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--border-subtle); }
.chat-form input { flex: 1; padding: 0.6rem 1rem; border-radius: 8px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-primary); }
.chat-form #chat-sound-toggle { padding: 0.5rem 0.6rem; min-width: auto; }
.chat-sound-btn { color: var(--text-primary); background: transparent; border: 1px solid var(--border-subtle); }
.chat-sound-btn:hover { background: var(--accent-subtle); color: var(--accent); }
.chat-sound-btn-active { background: var(--accent-subtle); color: var(--accent); }
.chat-sound-icon { display: inline-flex; align-items: center; justify-content: center; }
.chat-sound-icon svg { flex-shrink: 0; }
.spectate-banner { padding: 0.5rem 1rem; background: var(--accent-subtle); border-top: 1px solid var(--border-subtle); font-size: 0.85rem; color: var(--text-muted); }

/* ─── Admin Dashboard ─────────────────────────────────────────────────────── */
/* Admin — Expanded modern layout */
.admin-layout .dash-header-modern { margin-bottom: 1.5rem; }
.admin-header-text p { max-width: 560px; line-height: 1.6; }
.admin-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.admin-stat-card {
  flex: 1;
  min-width: 80px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.admin-tabs-modern {
  gap: 0.5rem;
  padding: 0.25rem;
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  width: fit-content;
}
.admin-tab { padding: 0.6rem 1.1rem; background: transparent; border: none; border-radius: 10px; color: var(--text-secondary); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.admin-tab:hover { color: var(--text-primary); background: rgba(11, 108, 251, 0.08); }
.admin-tab.active { background: var(--accent); color: #fff; }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.admin-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-section-head h2 { font-size: 1.2rem; margin: 0 0 0.35rem 0; }
.admin-section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.admin-section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.admin-ranks-game, .admin-ban-search, .admin-search { display: flex; align-items: center; gap: 0.5rem; }
.admin-ranks-game label { font-size: 0.85rem; color: var(--text-secondary); }
.admin-ban-search input, .admin-search input { padding: 0.5rem 1rem; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); color: var(--text-primary); min-width: 220px; }
.admin-ranks-game select,
.admin-section select,
.dash-filter {
  padding: 0.65rem 2.25rem 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%239898a8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.admin-ranks-game select:hover,
.admin-section select:hover,
.dash-filter:hover { border-color: var(--border-accent); }
.admin-ranks-game select:focus-visible,
.admin-section select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.admin-list, #ban-search-results { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-list-detailed .admin-item { padding: 1rem 1.25rem; }
.admin-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 12px; transition: border-color 0.2s; }
.admin-item:hover { border-color: var(--border-accent); }
.admin-item-main { flex: 1; font-weight: 500; }
.admin-item-meta { font-size: 0.85rem; color: var(--text-muted); }
.admin-empty { color: var(--text-muted); padding: 1.5rem; text-align: center; }
#ban-search-results h4 { font-size: 0.95rem; margin-bottom: 0.75rem; }

/* ─── SweetAlert2 — Dark theme + site fonts ───────────────────────────────── */
.swal2-container { font-family: var(--font-body) !important; }
.swal2-popup, .swal2-modal { font-family: var(--font-body) !important; background: var(--bg-card) !important; border: 1px solid var(--border-subtle) !important; }
.swal2-title { font-family: var(--font-body) !important; font-size: 1.2em; color: var(--text-primary) !important; }
.swal2-html-container, .swal2-content { color: var(--text-secondary) !important; }
.swal2-input, .swal2-textarea { font-family: var(--font-body) !important; background: var(--bg-elevated) !important; border-color: var(--border-subtle) !important; color: var(--text-primary) !important; }
.swal2-validation-message { background: rgba(224, 92, 92, 0.15) !important; color: #e05c5c !important; }
.swal2-actions .swal2-confirm { background: var(--accent) !important; font-family: var(--font-body) !important; }
.swal2-actions .swal2-cancel { background: var(--bg-elevated) !important; color: var(--text-secondary) !important; border-color: var(--border-subtle) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'],
.swal2-icon.swal2-success .swal2-success-ring { border-color: var(--status-ready) !important; }
.swal2-icon.swal2-success [class^='swal2-success-line'] { background-color: var(--status-ready) !important; }
.swal2-icon .swal2-icon-content { color: var(--status-ready) !important; }
.swal2-icon.swal2-error [class^='swal2-x-mark-line'] { background-color: #e05c5c !important; }
.swal2-icon.swal2-warning { border-color: #f59e0b !important; color: #f59e0b !important; }
.swal2-icon.swal2-info { border-color: var(--accent) !important; color: var(--accent) !important; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }