:root {
  /* RetroPlay Gaming Theme - Sweet Spot Edition */
  /* Dark base with purple undertones + gold accents for rewards */

  --bg-primary: #0d0f18;
  --bg-secondary: #13151f;
  --bg-card: #1a1d2e;
  --bg-card-hover: #21243a;

  --text-primary: #f0f2f5;
  --text-secondary: #b8bcc8;
  --text-muted: #9ca3af; /* Improved contrast: 7.2:1 ratio on dark bg (WCAG AA compliant) */

  --border: rgba(139, 92, 246, 0.15);
  --border-hover: rgba(139, 92, 246, 0.35);

  /* Primary: Purple (gaming vibe) */
  --accent-primary: #8b5cf6;
  --accent-primary-hover: #a78bfa;
  /* Secondary: Gold (rewards/wins) */
  --accent-secondary: #fbbf24;
  --accent-secondary-hover: #fcd34d;
  /* Status colors */
  --accent-success: #22c55e;
  --accent-danger: #ef4444;
  --accent-warning: #f59e0b;
  --accent-info: #6366f1;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15), 0 0 20px rgba(139, 92, 246, 0.08);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.25), 0 0 30px rgba(139, 92, 246, 0.12);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.35), 0 0 50px rgba(139, 92, 246, 0.15);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.4);
  --shadow-gold: 0 0 20px rgba(251, 191, 36, 0.3);

  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;

  --discord-blurple: #5865F2;

  /* Tech blue & cyan glow — RGB channels for rgba() usage; solid values for gradients */
  --tech-blue-rgb: 0, 102, 255;
  --tech-cyan-rgb: 0, 255, 255;
  --tech-blue: #0066ff;
  --tech-cyan: #00ffff;

  /* Effects System */
  --effect-intensity: 0.6;
  --effect-speed: 1;

  /* Gradient backgrounds */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-card: linear-gradient(180deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);

  /* Z-Index Scale - Consistent layering */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-navbar: 1000;
  --z-modal-backdrop: 2000;
  --z-modal: 2100;
  --z-popover: 3000;
  --z-tooltip: 4000;
  --z-toast: 10000;
  --z-maintenance: 9999;

  /* Typography Scale - Consistent sizing */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */

  /* Button gradients */
  --btn-gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --btn-gradient-primary-hover: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
  --btn-gradient-secondary: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  --btn-gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --btn-gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --btn-gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f5f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;

  --text-primary: #1a1d2e;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --border: rgba(139, 92, 246, 0.2);
  --border-hover: rgba(139, 92, 246, 0.4);

  --accent-primary: #7c3aed;
  --accent-primary-hover: #6d28d9;
  --accent-secondary: #f59e0b;
  --accent-secondary-hover: #d97706;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 0 20px rgba(139, 92, 246, 0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.15), 0 0 30px rgba(139, 92, 246, 0.08);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.2), 0 0 50px rgba(139, 92, 246, 0.1);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-gold: 0 0 20px rgba(251, 191, 36, 0.2);

  --btn-gradient-primary: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  --btn-gradient-primary-hover: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --btn-gradient-secondary: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);

  /* Gradient overrides for light theme */
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  --gradient-card: linear-gradient(180deg, rgba(139, 92, 246, 0.03) 0%, transparent 100%);
}

/* Light theme - Element overrides */
[data-theme="light"] body {
  background: #f5f5f7;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .giveaway-card .card-flip-inner {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .giveaway-card .card-back {
  background: #ffffff;
}

[data-theme="light"] .giveaway-content {
  background: #ffffff;
}

[data-theme="light"] .dashboard-card,
[data-theme="light"] .admin-card,
[data-theme="light"] .stat-card {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .admin-sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .admin-topbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .task-item {
  background: rgba(139, 92, 246, 0.03);
}

[data-theme="light"] .filter-btn {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .giveaways-hero {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .profile-header {
  background: #ffffff;
}

[data-theme="light"] .profile-section {
  background: #ffffff;
}

[data-theme="light"] .user-dropdown {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
              0 0 20px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .dropdown-item {
  color: var(--text-primary);
}

[data-theme="light"] .dropdown-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
}

[data-theme="light"] .dropdown-item i {
  color: var(--text-muted);
}

[data-theme="light"] .dropdown-item:hover i {
  color: var(--accent-primary);
}

[data-theme="light"] .dropdown-divider {
  background: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .dropdown-logout {
  color: #dc2626;
}

[data-theme="light"] .dropdown-logout:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

/* Hide dark theme canvas effects in light mode */
[data-theme="light"] #goldParticles,
[data-theme="light"] #neonGrid,
[data-theme="light"] #matrixRain,
[data-theme="light"] .floating-coin,
[data-theme="light"] .sparkle {
  display: none !important;
}

/* Theme toggle button styles */
.btn-theme-toggle {
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}

.btn-theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.btn-theme-toggle i {
  font-size: 1rem;
  transition: var(--transition);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.footer {
  background: rgba(10,14,26,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 1.5rem;
  margin-top: 2rem;
}
[data-theme="light"] .footer {
  background: #f0f0f5;
  border-top-color: rgba(139, 92, 246, 0.15);
}

.footer-columns {
  max-width: 1400px;
  margin: 0 auto 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-columns h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-columns a {
  color: var(--text-secondary);
}

.footer-columns a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Legal column buttons */
.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  color: var(--text-secondary);
  text-align: left;
  transition: color 0.18s;
}
.footer-legal-btn:hover {
  color: var(--accent-primary);
}

/* Inline legal bar under copyright */
.footer-legal-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal-btn--inline {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-legal-btn--inline:hover {
  color: var(--accent-primary);
}
.footer-legal-sep {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.5;
  user-select: none;
}

[data-theme="light"] .footer-legal-btn { color: var(--text-secondary); }
[data-theme="light"] .footer-legal-btn--inline { color: var(--text-muted); }

.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-logo img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
}

.nav-logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.nav-logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-link:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: 0 0 10px rgba(var(--tech-blue-rgb), 0.15);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  color: var(--accent-primary);
  border-color: rgba(var(--tech-blue-rgb), 0.4);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.2);
}

.nav-icon {
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-points {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.2);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.user-points:hover {
  box-shadow: 0 0 25px rgba(var(--tech-blue-rgb), 0.3);
  transform: translateY(-1px);
}

.points-icon {
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.points-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-primary);
  min-width: 30px;
  text-align: center;
}

.points-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-link {
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--tech-dark);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  position: relative;
  /* overflow: hidden; */ /* Removed to fix slide effect misalignment */
}

/* Slide effect removed - was causing misalignment */
/* .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
} */

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
  }
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg), 0 0 25px rgba(var(--tech-blue-rgb), 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    transform: translateY(-2px);
  }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.1), rgba(var(--tech-cyan-rgb), 0.05));
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    transform: translateY(-2px);
  }
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

/* ===== BUTTON ANIMATIONS ===== */

/* Ripple effect on click */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transition: transform 0.5s ease;
  pointer-events: none;
}

.btn-ripple:active::after {
  transform: translate(-50%, -50%) scale(2.5);
}

/* Glow pulse animation */
.btn-glow {
  animation: btn-glow-pulse 2s ease-in-out infinite;
}

@keyframes btn-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(var(--tech-blue-rgb), 0.4),
                0 0 10px rgba(var(--tech-blue-rgb), 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.6),
                0 0 30px rgba(var(--tech-blue-rgb), 0.4);
  }
}

/* Border draw animation */
.btn-border-draw {
  position: relative;
  background: transparent;
  border: 2px solid transparent;
  overflow: hidden;
}

.btn-border-draw::before,
.btn-border-draw::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.btn-border-draw::before {
  top: 0;
  left: 0;
}

.btn-border-draw::after {
  bottom: 0;
  right: 0;
}

.btn-border-draw:hover::before,
.btn-border-draw:hover::after {
  width: 100%;
}

/* Focus ring for accessibility */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn-primary::before,
  .btn-glow,
  .btn-ripple::after {
    animation: none;
    transition: none;
  }
}

.main-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
  display: grid;
  gap: 2rem;
}

.dashboard-container {
  grid-template-columns: 1fr 340px;
  gap: 2rem;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1200px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }
}

/* .welcome-section, .quick-stats and related — moved to dashboard.css (dashboard-only) */

.dashboard-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.dashboard-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.dashboard-card .card-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-card .card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.dashboard-card .card-body {
  padding: 1.75rem;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--tech-blue-rgb), 0.25), 0 0 20px rgba(var(--tech-blue-rgb), 0.2);
}
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.list-card {
  display: grid;
  gap: 1rem;
}

.list-item {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.05), rgba(var(--tech-cyan-rgb), 0.02));
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: var(--transition);
}

.list-item:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  border-color: var(--border-hover);
  box-shadow: 0 0 15px rgba(var(--tech-blue-rgb), 0.2);
  transform: translateX(4px);
}

.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: var(--z-toast);
  max-width: calc(100vw - 3rem);
  pointer-events: none; /* prevent invisible container from blocking interactions */
}

/* Mobile/Tablet: Position toasts at bottom above mobile nav */
@media (max-width: 1024px) {
  .toast-container {
    top: auto;
    bottom: calc(80px + 1rem); /* Above mobile nav */
    left: 1rem;
    right: 1rem;
    align-items: center;
    height: fit-content; /* prevent top:auto + bottom from stretching container into a large invisible overlay */
  }
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  min-width: 260px;
  max-width: 100%;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  animation: toast-slide-in 0.3s ease-out;
  pointer-events: all; /* re-enable interactions on actual toasts */
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile/Tablet toast animation - slide up from bottom */
@media (max-width: 1024px) {
  .toast {
    min-width: auto;
    width: 100%;
    animation: toast-slide-up 0.3s ease-out;
  }

  @keyframes toast-slide-up {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.toast.success {
  border-color: rgba(16,185,129,0.5);
}

.toast.error {
  border-color: rgba(239,68,68,0.5);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.88);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  width: min(420px, 92vw);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  border: 1px solid var(--border);
}

.auth-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--tech-dark);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(var(--tech-blue-rgb), 0.3);
  font-weight: 700;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-alert {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.25);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}

/* ── Desktop nav responsive (intermediate widths) ───────────────── */
@media (min-width: 1025px) and (max-width: 1300px) {
  .nav-container {
    padding: 0 1rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-link {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
  }
  .points-label {
    display: none;
  }
  .user-points {
    padding: 0.5rem 0.65rem;
  }
}

@media (min-width: 1025px) and (max-width: 1150px) {
  .nav-container {
    padding: 0 0.75rem;
  }
  .nav-actions {
    gap: 0.35rem;
  }
  /* Nav links: icon only, no text */
  .nav-link span[data-i18n],
  .nav-link span:not(.nav-icon) {
    display: none;
  }
  .nav-link {
    padding: 0.55rem 0.6rem;
  }
  /* Logo: hide subtitle */
  .nav-logo-text p {
    display: none;
  }
  .nav-logo-text h1 {
    font-size: 1.05rem;
  }
  .nav-logo img {
    width: 36px;
    height: 36px;
  }
  .lang-toggle-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }
}

/* Discord Floating Button */
.discord-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--discord-blurple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.discord-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.discord-float-btn svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.discord-float-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c2f33;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-size: 14px;
  font-weight: 500;
}

.discord-float-btn:hover .discord-float-tooltip {
  opacity: 1;
}

/* Pulse animation for attention */
@keyframes discord-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(88, 101, 242, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 101, 242, 0);
  }
}

.discord-float-btn.pulse {
  animation: discord-pulse 2s infinite;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .discord-float-btn {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }

  .discord-float-btn svg {
    width: 28px;
    height: 28px;
  }

  .discord-float-tooltip {
    display: none;
  }
}

/* ===== TECH INNOVATION THEME STYLES ===== */

/* Notification Button - Tech Innovation Theme */
.notifications-wrapper {
  position: relative;
}

/* Page-specific search/filter jump button (desktop nav) */
.btn-page-search {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: color 0.2s, transform 0.15s;
}
.btn-page-search:hover {
  color: var(--accent-primary);
  transform: scale(1.1);
}
.btn-page-search:active {
  transform: scale(0.92);
}
.btn-page-search.active {
  color: var(--accent-primary);
}

.btn-notifications {
  position: relative;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-notifications:hover {
  color: var(--tech-cyan);
  transform: scale(1.1);
}

.btn-notifications:active {
  transform: scale(0.95);
}

.notification-icon {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(var(--tech-cyan-rgb), 0.5));
  transition: all 0.3s ease;
}

.btn-notifications:hover .notification-icon {
  filter: drop-shadow(0 0 12px rgba(var(--tech-cyan-rgb), 0.8));
  transform: scale(1.1);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, var(--tech-cyan), var(--tech-blue));
  color: var(--tech-dark);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid var(--tech-dark);
  box-shadow: 0 0 10px rgba(var(--tech-cyan-rgb), 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(var(--tech-cyan-rgb), 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--tech-cyan-rgb), 0.9), 0 0 30px rgba(var(--tech-blue-rgb), 0.4);
  }
}

/* User Avatar & Menu Button - Premium Look */
.user-menu-wrapper {
  position: relative;
}

.btn-user-avatar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem;
  padding-right: 1rem;
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.08), rgba(var(--tech-cyan-rgb), 0.04));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-user-avatar:hover {
  background: linear-gradient(135deg, rgba(var(--tech-blue-rgb), 0.15), rgba(var(--tech-cyan-rgb), 0.08));
  border-color: var(--tech-blue);
  box-shadow: 0 0 25px rgba(var(--tech-blue-rgb), 0.4);
  transform: translateY(-2px);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--tech-dark), var(--tech-dark)) padding-box,
              linear-gradient(135deg, var(--tech-blue), var(--tech-cyan)) border-box;
  transition: all 0.3s ease;
  cursor: pointer;
  object-fit: cover;
}

.btn-user-avatar:hover .user-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--tech-blue-rgb), 0.5),
              0 0 40px rgba(var(--tech-cyan-rgb), 0.3);
  filter: brightness(1.1);
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-user-avatar:hover .user-name {
  color: var(--tech-cyan);
  text-shadow: 0 0 10px rgba(var(--tech-cyan-rgb), 0.4);
}

/* Nav Avatar Wrap — level badge overlay */
.nav-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-avatar-wrap .user-avatar {
  width: 100%;
  height: 100%;
}

.nav-level-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 20px;
  border: 1.5px solid var(--bg-primary, #0d0f18);
  box-shadow: 0 2px 6px rgba(139,92,246,0.45);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.3;
}

/* Nav User Col — name + XP bar */
.nav-user-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.nav-xp-bar {
  width: 68px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.nav-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* User Menu Chevron */
.user-menu-chevron {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  margin-left: 0.25rem;
}

.user-menu-wrapper:hover .user-menu-chevron,
.user-menu-wrapper.dropdown-open .user-menu-chevron {
  transform: rotate(180deg);
  color: var(--tech-cyan);
}

/* User Dropdown Menu */
.user-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 30, 0.98));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(var(--tech-blue-rgb), 0.2);
  z-index: 1001;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
}

.user-dropdown::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-blue));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
}

.user-menu-wrapper:hover .user-dropdown,
.user-menu-wrapper.dropdown-open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown.hidden {
  display: block;
}

.dropdown-section {
  padding: 0.5rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: rgba(var(--tech-blue-rgb), 0.15);
  color: var(--tech-cyan);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.dropdown-item:hover i {
  color: var(--tech-cyan);
}

.dropdown-divider {
  height: 1px;
  background: rgba(var(--tech-blue-rgb), 0.2);
  margin: 0.5rem 0;
}

.dropdown-logout {
  color: #f87171;
}

.dropdown-logout:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
}

.dropdown-logout i {
  color: #f87171;
}

.dropdown-logout:hover i {
  color: #fca5a5;
}

/* Hide sections based on auth state - controlled by JS */
.dropdown-auth-only.hidden,
.dropdown-guest-only.hidden,
.dropdown-admin-only.hidden {
  display: none;
}

/* Notifications Dropdown - Tech Theme */
.notifications-dropdown {
  position: fixed;
  top: calc(var(--header-height) + 0.5rem);
  right: 1.5rem;
  width: 380px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 30, 0.98));
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(var(--tech-blue-rgb), 0.2);
  z-index: 1000;
  overflow: hidden;
}

.notifications-dropdown::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--tech-cyan), var(--tech-blue));
  animation: border-flow 3s linear infinite;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.notifications-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(var(--tech-blue-rgb), 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(var(--tech-blue-rgb), 0.05);
}

.notifications-header h3 {
  color: var(--tech-cyan);
  font-size: 1.1rem;
}

.btn-mark-all-read {
  background: transparent;
  border: 1px solid rgba(var(--tech-cyan-rgb), 0.3);
  color: var(--tech-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mark-all-read:hover {
  background: rgba(var(--tech-cyan-rgb), 0.1);
  border-color: var(--tech-cyan);
  box-shadow: 0 0 15px rgba(var(--tech-cyan-rgb), 0.3);
}

/* Push toggle row inside notifications dropdown */
.notif-push-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(var(--tech-blue-rgb), 0.15);
  background: rgba(139, 92, 246, 0.04);
}

.notif-push-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.notif-push-label i {
  font-size: 0.75rem;
  color: var(--accent-primary, #8b5cf6);
}

/* Compact push button inside dropdown */
.notif-push-row .push-bell-btn {
  width: 32px;
  height: 32px;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--tech-blue-rgb), 0.3) transparent;
}

.notifications-list::-webkit-scrollbar {
  width: 4px;
}

.notifications-list::-webkit-scrollbar-track {
  background: transparent;
}

.notifications-list::-webkit-scrollbar-thumb {
  background: rgba(var(--tech-blue-rgb), 0.3);
  border-radius: 4px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--tech-blue-rgb), 0.55);
}

.notifications-footer {
  padding: 1rem;
  border-top: 1px solid rgba(var(--tech-blue-rgb), 0.2);
  text-align: center;
  background: rgba(var(--tech-blue-rgb), 0.03);
}

.view-all-link {
  color: var(--tech-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--tech-cyan);
  text-shadow: 0 0 10px rgba(var(--tech-cyan-rgb), 0.5);
}

/* Notification dropdown items */
.notification-dropdown-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.notification-dropdown-item:hover {
  background: rgba(var(--tech-blue-rgb), 0.08);
  border-color: rgba(var(--tech-blue-rgb), 0.2);
}

.notification-dropdown-item.read {
  opacity: 0.55;
}

.notification-dropdown-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}

.notification-dropdown-item:hover .notification-dropdown-arrow {
  opacity: 1;
}

.notification-dropdown-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.notification-dropdown-content {
  flex: 1;
  min-width: 0;
}

.notification-dropdown-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.notification-dropdown-message {
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-loading,
.notifications-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.notifications-loading i {
  margin-right: 0.5rem;
}

/* ===== NOTIFICATION DETAIL MODAL ===== */
.notif-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.notif-detail-modal.hidden {
  display: none;
}

.notif-detail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.notif-detail-box {
  position: relative;
  background: var(--bg-secondary, #13151f);
  border: 1px solid rgba(var(--tech-blue-rgb), 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--tech-blue-rgb), 0.15);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: notifModalIn 0.2s ease;
}

@keyframes notifModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.notif-detail-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.notif-detail-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.notif-detail-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.notif-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.notif-detail-message {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.notif-detail-time {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 1.25rem;
}

.notif-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary, #8b5cf6), #6d28d9);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.notif-detail-link:hover {
  opacity: 0.88;
}

/* ===== SECURITY MODALS ===== */
.security-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.security-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.security-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.security-modal-content::-webkit-scrollbar {
  width: 5px;
}

.security-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.security-modal-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.security-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.security-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.05);
}

.security-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-modal-header h3 i {
  color: var(--accent-primary);
}

.security-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.security-modal-close:hover {
  color: var(--text-primary);
}

.security-form {
  padding: 1.5rem;
}

.security-form .form-group {
  margin-bottom: 1rem;
}

.security-form .form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-alert {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Sessions list */
.sessions-list {
  padding: 1rem 1.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.sessions-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.session-item:last-child {
  margin-bottom: 0;
}

.session-device {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.session-device i {
  color: var(--accent-primary);
}

.session-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.session-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Extension devices list */
.devices-list {
  padding: 1rem 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.devices-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.devices-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.devices-empty i {
  font-size: 2.5rem;
  opacity: 0.3;
  margin-bottom: 0.75rem;
  display: block;
}

.devices-empty p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.devices-empty span {
  font-size: 0.85rem;
}

.devices-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary, #a78bfa);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.devices-section-label--muted {
  color: var(--text-muted);
  margin-top: 1rem;
}

.device-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s ease;
}

.device-item:hover {
  border-color: var(--accent-primary, #a78bfa);
}

.device-item--revoked {
  opacity: 0.5;
}

.device-item--revoked:hover {
  border-color: var(--border);
}

.device-item:last-child {
  margin-bottom: 0;
}

.device-browser {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.device-browser i {
  color: var(--accent-primary, #a78bfa);
  font-size: 1.1rem;
}

.device-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.device-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.device-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.device-actions {
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.device-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.device-badge--revoked {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@media (max-width: 480px) {
  .device-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .device-actions {
    margin-left: 0;
    align-self: flex-end;
  }
  .device-meta {
    gap: 0.5rem;
  }
}

/* Coming soon content */
.coming-soon-content {
  text-align: center;
  padding: 3rem 1.5rem;
}

.coming-soon-content i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.coming-soon-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.coming-soon-content p {
  color: var(--text-secondary);
}

/* Privacy modal sections */
.privacy-modal-body {
  padding: 1.25rem 1.5rem;
}

.privacy-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.privacy-section:last-of-type {
  border-bottom: none;
}

.privacy-section-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.privacy-section-header > i {
  font-size: 1.25rem;
  color: var(--accent-primary, #8b5cf6);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.privacy-section-header h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.privacy-section-header p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.privacy-section .btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-danger-outline {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

.privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0 0.5rem;
}

.privacy-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-primary, #8b5cf6);
  text-decoration: none;
  font-size: 0.825rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
}

.privacy-links a:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent-primary, #8b5cf6);
}

@media (max-width: 640px) {
  .privacy-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.security-modal .form-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-danger {
  background: var(--accent-danger);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments for tech-innovation theme */
@media (max-width: 1024px) {
  .btn-notifications {
    padding: 6px;
  }

  .notification-icon {
    font-size: 18px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .nav-avatar-wrap {
    width: 36px;
    height: 36px;
  }

  .btn-user-avatar {
    padding: 0.25rem;
    padding-right: 0.75rem;
  }

  .user-name {
    display: none;
  }

  .nav-user-col {
    display: none;
  }

  .notifications-dropdown {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
  }

  /* Swipe-down handle bar indicator */
  .notifications-dropdown::after {
    content: '';
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    pointer-events: none;
  }

  .notifications-header {
    padding-top: 1.5rem; /* extra space for the handle bar */
  }
}

/* ── Notifications dropdown — light theme ───────────────────────────── */
[data-theme="light"] .notifications-dropdown {
  background: #ffffff;
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(139, 92, 246, 0.08);
}

[data-theme="light"] .notifications-header {
  background: rgba(139, 92, 246, 0.04);
  border-bottom-color: rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .notifications-header h3 {
  color: var(--text-primary);
}

[data-theme="light"] .btn-mark-all-read {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
}

[data-theme="light"] .btn-mark-all-read:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--accent-primary);
  box-shadow: none;
}

[data-theme="light"] .notif-push-row {
  background: rgba(139, 92, 246, 0.03);
  border-bottom-color: rgba(139, 92, 246, 0.1);
}

[data-theme="light"] .notification-dropdown-item {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .notification-dropdown-item:hover {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .notifications-footer {
  background: rgba(139, 92, 246, 0.03);
  border-top-color: rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .notifications-list::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
}

[data-theme="light"] .notifications-dropdown::after {
  background: rgba(0, 0, 0, 0.12);
}

/* Legacy color aliases (for backwards compatibility) */
:root {
  --tech-blue: var(--accent-primary);
  --tech-cyan: var(--accent-secondary);
  --tech-dark: var(--bg-primary);
}

/* Prizes styles moved to prizes.css */

/* ==========================================
   Language Toggle (i18n) - Simple RO | EN
   ========================================== */

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  font-weight: 500;
}

.lang-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.lang-option {
  padding: 0.15rem 0.3rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.lang-option:hover {
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.lang-divider {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Light theme */
[data-theme="light"] .lang-toggle-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .lang-toggle-btn:hover {
  background: #f9fafb;
}

/* ==========================================
   Theme Selector
   ========================================== */

.theme-selector {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.theme-section h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
}

.theme-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--accent-primary);
  background: rgba(139, 92, 246, 0.1);
}

.theme-option i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.theme-option span {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
}

.theme-option.active span {
  color: var(--accent-primary);
  font-weight: 500;
}

/* Color picker for custom theme */
.theme-color-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
}

.color-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.color-input-group label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.color-input-group input[type="color"] {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}

.color-input-group input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.color-input-group input[type="color"]::-webkit-color-swatch {
  border-radius: 4px;
  border: none;
}

/* Light theme adjustments */
[data-theme="light"] .theme-option {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-option:hover {
  background: #f9fafb;
}

[data-theme="light"] .theme-option.active {
  background: rgba(124, 58, 237, 0.05);
}

/* ==========================================
   Theme Controls in Navbar
   ========================================== */

.nav-theme-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.nav-theme-controls .btn-theme-toggle,
.nav-theme-controls .btn-theme-dropdown {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.nav-theme-controls .btn-theme-toggle:hover,
.nav-theme-controls .btn-theme-dropdown:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

.nav-theme-controls .theme-dropdown {
  position: relative;
}

.nav-theme-controls .theme-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  z-index: 1001;
}

.nav-theme-controls .theme-dropdown.open .theme-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-theme-controls .theme-dropdown-menu .theme-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-align: left;
}

.nav-theme-controls .theme-dropdown-menu .theme-option:hover {
  background: var(--accent-primary);
  color: white;
  transform: none;
}

.nav-theme-controls .theme-dropdown-menu .theme-option.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-primary);
}

.nav-theme-controls .theme-dropdown-menu .theme-option i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: inherit;
}

.nav-theme-controls .theme-dropdown-menu .theme-option span {
  font-size: inherit;
  color: inherit;
}

.nav-theme-controls .theme-dropdown-menu .theme-section-label {
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Light theme */
[data-theme="light"] .nav-theme-controls .btn-theme-toggle,
[data-theme="light"] .nav-theme-controls .btn-theme-dropdown {
  background: #ffffff;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .nav-theme-controls .theme-dropdown-menu {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Theme Controls Floating (Login/Auth pages)
   ========================================== */

.theme-controls-floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1000;
}

.theme-controls-floating .btn-theme-toggle,
.theme-controls-floating .btn-theme-dropdown {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card, rgba(15, 23, 42, 0.9));
  color: var(--text-primary, #e2e8f0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-controls-floating .btn-theme-toggle:hover,
.theme-controls-floating .btn-theme-dropdown:hover {
  background: var(--accent-primary, #8b5cf6);
  transform: scale(1.1);
}

.theme-controls-floating .theme-dropdown {
  position: relative;
}

.theme-controls-floating .theme-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-card, rgba(15, 23, 42, 0.95));
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border, rgba(139, 92, 246, 0.2));
}

.theme-controls-floating .theme-dropdown.open .theme-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-controls-floating .theme-dropdown-menu .theme-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-primary, #e2e8f0);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  text-align: left;
}

.theme-controls-floating .theme-dropdown-menu .theme-option:hover {
  background: var(--accent-primary, #8b5cf6);
  color: white;
  transform: none;
}

.theme-controls-floating .theme-dropdown-menu .theme-option.active {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-primary, #8b5cf6);
}

.theme-controls-floating .theme-dropdown-menu .theme-option i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  color: inherit;
}

.theme-controls-floating .theme-dropdown-menu .theme-option span {
  font-size: inherit;
  color: inherit;
}

.theme-controls-floating .theme-dropdown-menu .theme-section-label {
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Light theme */
[data-theme="light"] .theme-controls-floating .btn-theme-toggle,
[data-theme="light"] .theme-controls-floating .btn-theme-dropdown {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-controls-floating .theme-dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-controls-floating .theme-dropdown-menu .theme-option {
  color: #374151;
}

[data-theme="light"] .theme-controls-floating .theme-dropdown-menu .theme-option:hover {
  background: var(--accent-primary, #7c3aed);
  color: white;
}

/* ===== GAME AUTOCOMPLETE ===== */
.gac-wrapper {
  position: relative;
  width: 100%;
}

.gac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.gac-dropdown::-webkit-scrollbar { width: 4px; }
.gac-dropdown::-webkit-scrollbar-track { background: transparent; }
.gac-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.gac-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.gac-item:last-child { border-bottom: none; }

.gac-item:hover,
.gac-item--active {
  background: rgba(139, 92, 246, 0.12);
}

.gac-item-cover {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gac-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gac-item-cover-placeholder {
  color: var(--text-muted);
  font-size: 1rem;
}

.gac-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gac-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gac-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gac-item-pegi {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}
.gac-item-pegi.pegi-3, .gac-item-pegi.pegi-7 { color: #4ade80; background: rgba(34,197,94,.12); }
.gac-item-pegi.pegi-12 { color: #fbbf24; background: rgba(251,191,36,.12); }
.gac-item-pegi.pegi-16 { color: #fb923c; background: rgba(249,115,22,.12); }
.gac-item-pegi.pegi-18 { color: #f87171; background: rgba(239,68,68,.12); }

.gac-item-rating {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-secondary, #fbbf24);
  flex-shrink: 0;
}

.gac-empty {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

[data-theme="light"] .gac-item { border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .gac-item:hover,
[data-theme="light"] .gac-item--active { background: rgba(139, 92, 246, 0.08); }
[data-theme="light"] .gac-item-cover { background: rgba(0,0,0,0.06); }

/* ===== AUTOCOMPLETE GENERIC (Key Repository) ===== */
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-secondary, #111827);
  border: 1px solid var(--border-color, rgba(255,255,255,0.1));
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.autocomplete-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-primary, #e2e8f0);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: rgba(139, 92, 246, 0.12); }
[data-theme="light"] .autocomplete-results { background: #fff; border-color: #e2e8f0; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
[data-theme="light"] .autocomplete-item { color: #1e293b; border-bottom-color: rgba(0,0,0,0.05); }
[data-theme="light"] .autocomplete-item:hover { background: rgba(139, 92, 246, 0.08); }

/* ===== LOAD MORE BUTTON (shared: giveaways + store) ===== */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 0 1rem;
  width: 100%;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent-color, #8b5cf6);
  border-radius: var(--radius-md, 12px);
  background: transparent;
  color: var(--accent-color, #8b5cf6);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-load-more:hover {
  background: var(--accent-color, #8b5cf6);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}
.btn-load-more .load-more-count {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85rem;
}
[data-theme="light"] .btn-load-more {
  border-color: var(--accent-color, #7c3aed);
  color: var(--accent-color, #7c3aed);
}
[data-theme="light"] .btn-load-more:hover {
  background: var(--accent-color, #7c3aed);
  color: #fff;
}

/* ===== MINI-PROFILE CARD ===== */
.mp-card {
  position: absolute;
  z-index: 9000;
  width: 270px;
  background: var(--card-bg, #1e293b);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(139,92,246,0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.mp-card--in {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mp-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.75rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.mp-header:hover { background: rgba(139,92,246,0.07); }
.mp-avatar-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}
.mp-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.mp-name-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mp-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.71rem;
  color: var(--mp-equipped-accent, var(--accent-primary, #8b5cf6));
  font-weight: 600;
  opacity: 0.85;
}
/* Themed accent override when mini_profile cosmetic equipped */
.mp-card--themed .mp-stat i,
.mp-card--themed .mp-rank-badge,
.mp-card--themed .mp-profile-link,
.mp-card--themed .mp-points i {
  color: var(--mp-equipped-accent, var(--accent-primary, #8b5cf6));
}
.mp-card--themed .mp-profile-link {
  color: var(--mp-equipped-accent, var(--accent-primary, #8b5cf6));
}
.mp-body {
  padding: 0.7rem 1rem 0.5rem;
}
.mp-stats-row {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}
.mp-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.45rem 0.2rem;
}
.mp-stat i { font-size: 0.72rem; color: var(--accent-primary, #8b5cf6); }
.mp-stat span { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.mp-stat small { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.mp-points {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}
.mp-points i { color: #f59e0b; margin-right: 0.2rem; }
.mp-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary, #8b5cf6);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.mp-profile-link:hover { background: rgba(139,92,246,0.08); }
.mp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
  color: var(--text-muted);
  font-size: 1.4rem;
}
.mp-error, .mp-hidden {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}
.mp-error i, .mp-hidden i { font-size: 1.4rem; }

/* ── Mini-Profile Mobile Sheet ── */
.mp-sheet {
  position: fixed;
  inset: 0;
  z-index: 9001;
  pointer-events: none;
  visibility: hidden;
}
.mp-sheet--open {
  pointer-events: auto;
  visibility: visible;
}
.mp-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.mp-sheet--open .mp-sheet-backdrop { opacity: 1; }
.mp-sheet-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card-bg, #1e293b);
  border-top: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px 20px 0 0;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 16px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.mp-sheet--open .mp-sheet-box { transform: translateY(0); }
.mp-sheet-box::before {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  margin: 10px auto 0;
}
.mp-sheet-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: rgba(255,255,255,0.06);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  z-index: 2;
}
.mp-sheet-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.mp-sheet-inner { padding: 0.5rem 0 0.5rem; }
.mp-sheet-inner .mp-header { padding: 1rem 1rem 0.8rem; }
.mp-sheet-inner .mp-body { padding: 0.8rem 1rem 0.5rem; }
.mp-sheet-inner .mp-profile-link { padding: 0.7rem; font-size: 0.88rem; }
body.mp-sheet-lock { overflow: hidden; }

/* Light theme */
[data-theme="light"] .mp-card {
  background: #fff;
  border-color: rgba(139,92,246,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(139,92,246,0.06);
}
[data-theme="light"] .mp-header { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .mp-stat { background: rgba(0,0,0,0.03); }
[data-theme="light"] .mp-profile-link { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .mp-sheet-box { background: #fff; border-color: rgba(139,92,246,0.2); }
[data-theme="light"] .mp-sheet-box::before { background: rgba(0,0,0,0.12); }

/* ===== BREADCRUMBS ===== */
.breadcrumb-bar {
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1400px;
  margin-inline: auto;
  font-size: 0.78rem;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.breadcrumb-sep {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 0.6rem;
  flex-shrink: 0;
}
.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.2rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.breadcrumb-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}
.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-sr {
  /* shown inline — home crumb shows icon only on small screens */
}
@media (max-width: 1024px) {
  .breadcrumb-bar { display: none; }
}
[data-theme="light"] .breadcrumb-bar {
  background: rgba(0,0,0,0.03);
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .breadcrumb-link { color: var(--text-secondary); }
[data-theme="light"] .breadcrumb-link:hover { background: rgba(0,0,0,0.05); color: var(--text-primary); }

/* Hide "Login to App" on mobile/tablet — only useful on desktop */
@media (max-width: 1024px) {
  #dropdownRemoteLogin { display: none; }
}

/* ═══ Cosmetic Rendering (v5.5.0) ═══ */

/* Avatar Frame wrapper */
.cosmetic-avatar-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cosmetic-avatar-frame img {
  border-radius: 50%;
}

/* Name Style classes */
.ns-clean-bold { font-weight: 700; }
.ns-frost-blue { color: #60a5fa; text-shadow: 0 0 6px rgba(96,165,250,0.4); }
.ns-sunset { background: linear-gradient(90deg,#f97316,#ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ns-toxic { color: #22c55e; text-shadow: 0 0 8px rgba(34,197,94,0.5); }
.ns-rainbow { background: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#3b82f6,#8b5cf6); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: ns-rainbow-shift 3s linear infinite; }
.ns-galaxy { background: linear-gradient(135deg,#8b5cf6,#3b82f6,#06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ns-inferno { background: linear-gradient(90deg,#f97316,#ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: none; }
.ns-holographic { background: linear-gradient(90deg,#ef4444,#f59e0b,#22c55e,#3b82f6,#8b5cf6,#ec4899); background-size: 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: ns-holo-shift 4s linear infinite; }

/* Wave 2 — Name styles */
.ns-steel-gray { font-weight: 700; color: #94a3b8; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.ns-cherry-blossom { color: #f472b6; text-shadow: 0 0 6px rgba(244,114,182,0.35); }
.ns-electric-blue { color: #38bdf8; text-shadow: 0 0 8px rgba(56,189,248,0.5), 0 0 16px rgba(56,189,248,0.2); }
.ns-golden-script { color: #fbbf24; text-shadow: 0 0 6px rgba(251,191,36,0.4); font-style: italic; }
.ns-plasma-surge { background: linear-gradient(90deg,#06b6d4,#8b5cf6,#06b6d4); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: ns-plasma-shift 3s linear infinite; }
.ns-shadow-flame { background: linear-gradient(90deg,#1e1b4b,#dc2626,#f97316); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: ns-shadow-flame-shift 4s ease-in-out infinite; }
.ns-celestial { background: linear-gradient(90deg,#fbbf24,#fef3c7,#fbbf24,#f59e0b); background-size: 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: ns-celestial-shift 3s ease-in-out infinite; text-shadow: none; }
.ns-glitch { color: #e2e8f0; animation: ns-glitch-flicker 0.3s infinite; text-shadow: 2px 0 #ef4444, -2px 0 #3b82f6; }

/* Frame animation keyframes */
@keyframes pulse-red { 0%,100% { box-shadow: 0 0 8px rgba(239,68,68,0.4); } 50% { box-shadow: 0 0 16px rgba(239,68,68,0.7); } }
@keyframes pulse-gold { 0%,100% { box-shadow: 0 0 8px rgba(234,179,8,0.4); } 50% { box-shadow: 0 0 16px rgba(234,179,8,0.7); } }
@keyframes pulse-fire { 0%,100% { box-shadow: 0 0 12px rgba(249,115,22,0.5); } 50% { box-shadow: 0 0 24px rgba(249,115,22,0.8), 0 0 40px rgba(239,68,68,0.3); } }
@keyframes rotate-hue { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

/* Wave 2 — Frame animation keyframes */
@keyframes pulse-blood { 0%,100% { box-shadow: 0 0 8px rgba(185,28,28,0.4); } 50% { box-shadow: 0 0 18px rgba(185,28,28,0.7), 0 0 30px rgba(127,29,29,0.2); } }
@keyframes pulse-stardust { 0%,100% { box-shadow: 0 0 10px rgba(251,191,36,0.3), 0 0 20px rgba(139,92,246,0.15); } 50% { box-shadow: 0 0 18px rgba(251,191,36,0.6), 0 0 36px rgba(139,92,246,0.3); } }
@keyframes pulse-cyber { 0%,100% { box-shadow: 0 0 10px rgba(236,72,153,0.4), 0 0 20px rgba(6,182,212,0.2); } 50% { box-shadow: 0 0 16px rgba(236,72,153,0.7), 0 0 32px rgba(6,182,212,0.4); } }
@keyframes pulse-phoenix { 0%,100% { box-shadow: 0 0 14px rgba(245,158,11,0.5), 0 0 28px rgba(239,68,68,0.3); } 50% { box-shadow: 0 0 24px rgba(245,158,11,0.8), 0 0 48px rgba(239,68,68,0.5), 0 0 64px rgba(249,115,22,0.2); } }

/* Name style animation keyframes */
@keyframes ns-rainbow-shift { 0% { background-position: 0%; } 100% { background-position: 200%; } }
@keyframes ns-holo-shift { 0% { background-position: 0%; } 100% { background-position: 300%; } }

/* Wave 2 — Name style animation keyframes */
@keyframes ns-plasma-shift { 0% { background-position: 0%; } 100% { background-position: 200%; } }
@keyframes ns-shadow-flame-shift { 0% { background-position: 0%; } 50% { background-position: 100%; } 100% { background-position: 0%; } }
@keyframes ns-celestial-shift { 0% { background-position: 0%; } 50% { background-position: 150%; } 100% { background-position: 0%; } }
@keyframes ns-glitch-flicker { 0% { text-shadow: 2px 0 #ef4444, -2px 0 #3b82f6; } 25% { text-shadow: -2px 0 #ef4444, 2px 0 #3b82f6; } 50% { text-shadow: 2px 1px #ef4444, -1px -2px #3b82f6; } 75% { text-shadow: -1px 2px #ef4444, 1px -1px #3b82f6; } 100% { text-shadow: 2px 0 #ef4444, -2px 0 #3b82f6; } }

/* Profile banner animation keyframes */
@keyframes banner-cyber-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes banner-aurora-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes banner-fire-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes banner-nebula-shift { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* Exclusive cosmetic animation keyframes */
@keyframes sponsorGoldShimmer { 0%,100% { box-shadow: 0 0 12px rgba(251,191,36,0.5), inset 0 0 8px rgba(251,191,36,0.2); } 50% { box-shadow: 0 0 20px rgba(251,191,36,0.8), inset 0 0 12px rgba(251,191,36,0.3); } }
@keyframes adminShieldPulse { 0%,100% { box-shadow: 0 0 16px rgba(34,211,238,0.5), 0 0 32px rgba(34,211,238,0.2); } 50% { box-shadow: 0 0 24px rgba(34,211,238,0.8), 0 0 48px rgba(34,211,238,0.3); } }

/* Exclusive name styles */
.ns-sponsor-gold { font-weight: 700; background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ns-admin-terminal { font-weight: 700; font-family: 'Courier New', monospace; color: #22d3ee !important; text-shadow: 0 0 8px rgba(34,211,238,0.4); -webkit-text-fill-color: #22d3ee; }
.ns-sponsor-team { font-weight: 700; background: linear-gradient(135deg, #14b8a6, #06b6d4, #0891b2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ns-admin-staff { font-weight: 700; background: linear-gradient(135deg, #f97316, #fb923c, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Card style animation keyframes */
@keyframes cs-gold-pulse { 0%,100% { box-shadow: 0 0 16px rgba(234,179,8,0.4); } 50% { box-shadow: 0 0 28px rgba(234,179,8,0.7), 0 0 48px rgba(234,179,8,0.2); } }
@keyframes cs-diamond-pulse { 0%,100% { box-shadow: 0 0 16px rgba(186,230,253,0.4); } 50% { box-shadow: 0 0 28px rgba(186,230,253,0.7), 0 0 48px rgba(147,197,253,0.3); } }

/* ═══ MEGAPACK — Name Styles ═══ */

/* Neon Flicker — neon sign that flickers on/off */
.ns-neon-flicker {
  color: #fbbf24;
  text-shadow: 0 0 7px #fbbf24, 0 0 10px #fbbf24, 0 0 21px #fbbf24, 0 0 42px #f59e0b, 0 0 82px #f59e0b;
  animation: ns-neon-flicker 3s linear infinite;
}
@keyframes ns-neon-flicker {
  0%,19%,22%,62%,64%,70%,100% { opacity: 1; text-shadow: 0 0 7px #fbbf24, 0 0 10px #fbbf24, 0 0 21px #fbbf24, 0 0 42px #f59e0b; }
  20%,21%,63%,65%,69.9% { opacity: 0.4; text-shadow: none; }
}

/* Gold Shimmer — metallic gold with moving shine */
.ns-gold-shimmer {
  background: linear-gradient(90deg, #92400e, #fbbf24, #fef3c7, #fbbf24, #92400e);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: ns-gold-shimmer-move 3s ease-in-out infinite;
}
@keyframes ns-gold-shimmer-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Ice Crystal — frozen blue with subtle shimmer */
.ns-ice-crystal {
  color: #bae6fd;
  text-shadow: 0 0 4px rgba(186,230,253,0.4), 0 0 8px rgba(56,189,248,0.2);
  font-weight: 600;
}

/* Blood Drip — dark horror red */
.ns-blood-drip {
  color: #dc2626;
  text-shadow: 0 0 6px rgba(220,38,38,0.5), 0 2px 4px rgba(127,29,29,0.3);
  font-weight: 700;
}

/* Vaporwave — retro aesthetic pink-to-cyan */
.ns-vaporwave {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: ns-vaporwave-shift 4s ease-in-out infinite;
}
@keyframes ns-vaporwave-shift { 0%,100% { background-position: 0%; } 50% { background-position: 200%; } }

/* Matrix Code — green terminal text with pulse */
.ns-matrix-code {
  color: #22c55e;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 6px rgba(34,197,94,0.6), 0 0 12px rgba(34,197,94,0.3);
  animation: ns-matrix-pulse 1.5s ease-in-out infinite;
}
@keyframes ns-matrix-pulse { 0%,100% { text-shadow: 0 0 6px rgba(34,197,94,0.6); } 50% { text-shadow: 0 0 12px rgba(34,197,94,0.8), 0 0 24px rgba(34,197,94,0.4); } }

/* Supernova Text — megapack (white-hot core to deep red gradient) */
.ns-supernova-text {
  background: linear-gradient(90deg, #fef3c7, #f97316, #ef4444, #f97316, #fef3c7);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-supernova-shift 3s ease-in-out infinite;
}
@keyframes ns-supernova-shift { 0%,100% { background-position: 0%; } 50% { background-position: 150%; } }

/* Chrome — metallic shine moving across */
.ns-chrome {
  background: linear-gradient(90deg, #94a3b8, #e2e8f0, #f8fafc, #e2e8f0, #94a3b8);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-chrome-shine 4s linear infinite;
  font-weight: 700;
}
@keyframes ns-chrome-shine { 0% { background-position: 0%; } 100% { background-position: 300%; } }

/* ═══ Wave 4 — Name Styles (v5.6.0) ═══ */

/* Sakura Breeze — pink gradient with gentle sway */
.ns-sakura-breeze {
  background: linear-gradient(90deg, #f9a8d4, #ec4899, #f472b6, #f9a8d4);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-sakura-sway 4s ease-in-out infinite;
}
@keyframes ns-sakura-sway { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Phantom — ghostly fade in/out */
.ns-phantom {
  color: #94a3b8;
  animation: ns-phantom-pulse 3s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(148,163,184,0.3);
}
@keyframes ns-phantom-pulse {
  0%,100% { opacity: 1; text-shadow: 0 0 8px rgba(148,163,184,0.3); }
  50% { opacity: 0.4; text-shadow: 0 0 16px rgba(148,163,184,0.5); }
}

/* Diamond — crystalline multi-facet sparkle */
.ns-diamond {
  background: linear-gradient(90deg, #bae6fd, #f0f9ff, #e0f2fe, #7dd3fc, #f0f9ff, #bae6fd);
  background-size: 400%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-diamond-sparkle 3s linear infinite;
  font-weight: 700;
}
@keyframes ns-diamond-sparkle { 0% { background-position: 0%; } 100% { background-position: 400%; } }

/* Vintage Typewriter — sepia monospace */
.ns-vintage-typewriter {
  color: #d6d3d1;
  font-family: 'Courier New', monospace;
  text-shadow: 1px 1px 0 rgba(120,113,108,0.3);
  letter-spacing: 0.5px;
}

/* Ember Trail — warm orange/red gradient with slow burn */
.ns-ember-trail {
  background: linear-gradient(90deg, #f97316, #ef4444, #fbbf24, #f97316);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-ember-drift 5s ease-in-out infinite;
}
@keyframes ns-ember-drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Arctic Glow — icy aurora shimmer */
.ns-arctic-glow {
  background: linear-gradient(90deg, #38bdf8, #22d3ee, #67e8f9, #a5f3fc, #22d3ee, #38bdf8);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-arctic-shift 4s linear infinite;
}
@keyframes ns-arctic-shift { 0% { background-position: 0%; } 100% { background-position: 300%; } }

/* ═══════════════════════════════════════════
   Megapack Frame Animations (v5.5.0)
   ═══════════════════════════════════════════ */

/* Spinning Rainbow — conic gradient rotation */
@keyframes frame-spin-rainbow {
  0% { border-color: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.4); }
  16% { border-color: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.4); }
  33% { border-color: #22c55e; box-shadow: 0 0 12px rgba(34,197,94,0.4); }
  50% { border-color: #3b82f6; box-shadow: 0 0 12px rgba(59,130,246,0.4); }
  66% { border-color: #8b5cf6; box-shadow: 0 0 12px rgba(139,92,246,0.4); }
  83% { border-color: #ec4899; box-shadow: 0 0 12px rgba(236,72,153,0.4); }
  100% { border-color: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.4); }
}

/* Heartbeat — pink pulse like a beating heart */
@keyframes frame-heartbeat {
  0%,100% { transform: scale(1); box-shadow: 0 0 10px rgba(244,114,182,0.4); }
  14% { transform: scale(1.05); box-shadow: 0 0 18px rgba(244,114,182,0.6); }
  28% { transform: scale(1); box-shadow: 0 0 10px rgba(244,114,182,0.4); }
  42% { transform: scale(1.03); box-shadow: 0 0 14px rgba(244,114,182,0.5); }
}

/* Electric Arc — cyan lightning flicker */
@keyframes frame-electric {
  0% { box-shadow: 0 0 8px rgba(56,189,248,0.4), 0 0 16px rgba(56,189,248,0.2); }
  100% { box-shadow: 0 0 16px rgba(56,189,248,0.7), 0 0 32px rgba(56,189,248,0.3); }
}

/* Diamond Frost — crystalline shimmer */
@keyframes frame-diamond-shimmer {
  0%,100% { box-shadow: 0 0 12px rgba(186,230,253,0.5), 0 0 24px rgba(147,197,253,0.2); }
  50% { box-shadow: 0 0 20px rgba(186,230,253,0.8), 0 0 40px rgba(147,197,253,0.4); }
}

/* Supernova — explosive stellar burst */
@keyframes frame-supernova {
  0%,100% { box-shadow: 0 0 20px rgba(251,146,60,0.6), 0 0 40px rgba(245,158,11,0.3), 0 0 60px rgba(239,68,68,0.15); }
  50% { box-shadow: 0 0 30px rgba(251,146,60,0.8), 0 0 60px rgba(245,158,11,0.5), 0 0 90px rgba(239,68,68,0.25); }
}

/* Glitch Matrix — stepping color glitch */
@keyframes frame-glitch {
  0% { border-color: rgba(34,197,94,0.8); box-shadow: 0 0 10px rgba(34,197,94,0.4); }
  25% { border-color: rgba(6,182,212,0.8); box-shadow: 0 0 10px rgba(6,182,212,0.4); }
  50% { border-color: rgba(34,197,94,0.5); box-shadow: 2px 0 10px rgba(34,197,94,0.4), -2px 0 10px rgba(6,182,212,0.4); }
  75% { border-color: rgba(6,182,212,0.5); box-shadow: -2px 0 10px rgba(34,197,94,0.4), 2px 0 10px rgba(6,182,212,0.4); }
  100% { border-color: rgba(34,197,94,0.8); box-shadow: 0 0 10px rgba(34,197,94,0.4); }
}

/* ═══ Wave 5 — Premium Name Styles (v5.6.0) ═══ */

/* Aurora Borealis — shimmering green/purple/cyan aurora */
.ns-aurora-text {
  background: linear-gradient(90deg, #22c55e, #8b5cf6, #06b6d4, #22c55e, #8b5cf6);
  background-size: 400%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-aurora-dance 6s ease-in-out infinite;
  font-weight: 700;
}
@keyframes ns-aurora-dance {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Liquid Metal — mercury-like reflective silver with moving highlight */
.ns-liquid-metal {
  background: linear-gradient(90deg, #64748b, #cbd5e1, #f1f5f9, #cbd5e1, #64748b);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-liquid-flow 3s ease-in-out infinite;
  font-weight: 700;
}
@keyframes ns-liquid-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pixel Retro — chunky 8-bit monospace, static green */
.ns-pixel-retro {
  color: #4ade80;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* Shadow Wisp — dark smoky text with pulsing shadow */
.ns-shadow-wisp {
  color: #94a3b8;
  text-shadow: 0 0 8px rgba(15,23,42,0.8), 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(71,85,105,0.3);
  animation: ns-wisp-drift 4s ease-in-out infinite;
}
@keyframes ns-wisp-drift {
  0%,100% { text-shadow: 0 0 8px rgba(15,23,42,0.8), 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(71,85,105,0.3); }
  50% { text-shadow: 0 0 12px rgba(15,23,42,0.9), 0 4px 8px rgba(0,0,0,0.6), 0 0 30px rgba(71,85,105,0.5); }
}

/* Forged Steel — metallic warm gray with subtle shine */
.ns-forged-steel {
  background: linear-gradient(90deg, #78716c, #a8a29e, #d6d3d1, #a8a29e, #78716c);
  background-size: 300%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ns-steel-shine 5s linear infinite;
  font-weight: 700;
}
@keyframes ns-steel-shine { 0% { background-position: 0%; } 100% { background-position: 300%; } }

/* Corrupted — aggressive red/cyan glitch with RGB split */
.ns-corrupted {
  color: #e2e8f0;
  animation: ns-corrupted-glitch 0.5s infinite;
  position: relative;
}
@keyframes ns-corrupted-glitch {
  0% { text-shadow: 2px 0 #ef4444, -2px 0 #06b6d4; }
  20% { text-shadow: -3px 1px #ef4444, 3px -1px #06b6d4; }
  40% { text-shadow: 1px -2px #ef4444, -1px 2px #06b6d4; transform: skewX(-1deg); }
  60% { text-shadow: -2px 0 #ef4444, 2px 0 #06b6d4; transform: skewX(0deg); }
  80% { text-shadow: 3px 1px #ef4444, -3px -1px #06b6d4; transform: skewX(1deg); }
  100% { text-shadow: 2px 0 #ef4444, -2px 0 #06b6d4; transform: skewX(0deg); }
}

/* Admin Quantum — superposition effect, splits and merges (exclusive) */
.ns-admin-quantum {
  color: #22d3ee;
  font-weight: 700;
  animation: ns-quantum-split 3s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(34,211,238,0.4);
}
@keyframes ns-quantum-split {
  0%,100% { text-shadow: 0 0 8px rgba(34,211,238,0.4); letter-spacing: normal; }
  25% { text-shadow: 2px 0 rgba(34,211,238,0.6), -2px 0 rgba(6,182,212,0.4); letter-spacing: 1px; }
  50% { text-shadow: 0 0 16px rgba(34,211,238,0.7), 0 0 32px rgba(6,182,212,0.3); letter-spacing: normal; }
  75% { text-shadow: -2px 0 rgba(34,211,238,0.6), 2px 0 rgba(6,182,212,0.4); letter-spacing: 1px; }
}

/* ═══ Wave 4 — Frame Animations (v5.6.0) ═══ */

@keyframes frame-sakura-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(249,168,212,0.5), 0 0 24px rgba(249,168,212,0.2); border-color: #f9a8d4; }
  50% { box-shadow: 0 0 18px rgba(244,114,182,0.6), 0 0 36px rgba(244,114,182,0.25); border-color: #f472b6; }
}

@keyframes frame-void-spin {
  0% { box-shadow: 0 0 15px rgba(124,58,237,0.5), 0 0 30px rgba(124,58,237,0.25); }
  50% { box-shadow: 0 0 20px rgba(139,92,246,0.6), 0 0 40px rgba(124,58,237,0.3); }
  100% { box-shadow: 0 0 15px rgba(124,58,237,0.5), 0 0 30px rgba(124,58,237,0.25); }
}

@keyframes frame-emerald-grow {
  0%,100% { box-shadow: 0 0 10px rgba(16,185,129,0.4); border-color: #10b981; }
  50% { box-shadow: 0 0 16px rgba(52,211,153,0.5), 0 0 28px rgba(16,185,129,0.2); border-color: #34d399; }
}

@keyframes frame-blood-pulse {
  0%,100% { box-shadow: 0 0 14px rgba(220,38,38,0.5); }
  50% { box-shadow: 0 0 22px rgba(220,38,38,0.7), 0 0 44px rgba(185,28,28,0.25); }
}

@keyframes frame-frost-shimmer {
  0%,100% { box-shadow: 0 0 10px rgba(125,211,252,0.4), 0 0 20px rgba(186,230,253,0.2); border-color: #7dd3fc; }
  50% { box-shadow: 0 0 16px rgba(125,211,252,0.6), 0 0 32px rgba(186,230,253,0.3); border-color: #bae6fd; }
}

@keyframes frame-phoenix-flare {
  0%,100% { box-shadow: 0 0 16px rgba(249,115,22,0.6), 0 0 32px rgba(239,68,68,0.3); border-color: #f97316; }
  50% { box-shadow: 0 0 24px rgba(234,179,8,0.7), 0 0 48px rgba(249,115,22,0.4), 0 0 64px rgba(239,68,68,0.2); border-color: #eab308; }
}

/* Card style animations */
@keyframes cs-prismatic-shift {
  0% { border-color: #a78bfa; box-shadow: 0 0 20px rgba(167,139,250,0.4); }
  33% { border-color: #3b82f6; box-shadow: 0 0 20px rgba(59,130,246,0.4); }
  66% { border-color: #ec4899; box-shadow: 0 0 20px rgba(236,72,153,0.4); }
  100% { border-color: #a78bfa; box-shadow: 0 0 20px rgba(167,139,250,0.4); }
}

@keyframes cs-ruby-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(220,38,38,0.4); }
  50% { box-shadow: 0 0 28px rgba(220,38,38,0.6), 0 0 48px rgba(220,38,38,0.2); }
}

@keyframes cs-admin-glow {
  0%,100% { box-shadow: 0 0 20px rgba(34,211,238,0.4); }
  50% { box-shadow: 0 0 32px rgba(34,211,238,0.6), 0 0 56px rgba(34,211,238,0.2); }
}

/* ═══ Wave 5 — Premium Animations (v5.6.0) ═══ */

/* Radiant Ring — Valorant-inspired prismatic shift */
@keyframes frame-radiant-spin {
  0% { border-color: #ff4655; box-shadow: 0 0 20px rgba(255,70,85,0.5), 0 0 40px rgba(255,70,85,0.2); }
  33% { border-color: #ffc832; box-shadow: 0 0 20px rgba(255,200,50,0.5), 0 0 40px rgba(255,200,50,0.2); }
  66% { border-color: #ff4655; box-shadow: 0 0 24px rgba(255,70,85,0.6), 0 0 48px rgba(255,200,50,0.25); }
  100% { border-color: #ff4655; box-shadow: 0 0 20px rgba(255,70,85,0.5), 0 0 40px rgba(255,70,85,0.2); }
}

/* Anime Power Aura — ki energy burst */
@keyframes frame-aura-burst {
  0%,100% { box-shadow: 0 0 14px rgba(56,189,248,0.5), 0 0 28px rgba(56,189,248,0.2); }
  50% { box-shadow: 0 0 22px rgba(56,189,248,0.7), 0 0 44px rgba(59,130,246,0.35), 0 0 66px rgba(56,189,248,0.15); }
}

/* Steampunk Gear — slow rotation effect */
@keyframes frame-gear-rotate {
  0%,100% { box-shadow: 0 0 10px rgba(180,83,9,0.4); border-color: #b45309; }
  50% { box-shadow: 0 0 16px rgba(217,119,6,0.5), 0 0 32px rgba(180,83,9,0.2); border-color: #d97706; }
}

/* Dragonscale — fiery dragon pulse */
@keyframes frame-dragonfire {
  0%,100% { box-shadow: 0 0 20px rgba(220,38,38,0.6), 0 0 40px rgba(249,115,22,0.3); border-color: #dc2626; }
  50% { box-shadow: 0 0 30px rgba(234,179,8,0.7), 0 0 60px rgba(249,115,22,0.4), 0 0 80px rgba(220,38,38,0.2); border-color: #eab308; }
}

/* Vaporwave Ring — pastel neon shift */
@keyframes frame-vapor-shift {
  0%,100% { border-color: #c084fc; box-shadow: 0 0 12px rgba(192,132,252,0.4); }
  33% { border-color: #ec4899; box-shadow: 0 0 12px rgba(236,72,153,0.4); }
  66% { border-color: #06b6d4; box-shadow: 0 0 12px rgba(6,182,212,0.4); }
}

/* Runic Circle — arcane orbit glow */
@keyframes frame-rune-orbit {
  0%,100% { box-shadow: 0 0 14px rgba(167,139,250,0.5), 0 0 28px rgba(139,92,246,0.2); border-color: #a78bfa; }
  50% { box-shadow: 0 0 20px rgba(139,92,246,0.6), 0 0 40px rgba(124,58,237,0.3); border-color: #8b5cf6; }
}

/* Sponsor Radiance — rotating gold */
@keyframes frame-sponsor-radiance {
  0%,100% { box-shadow: 0 0 20px rgba(234,179,8,0.5), 0 0 40px rgba(234,179,8,0.2); border-color: #eab308; }
  50% { box-shadow: 0 0 28px rgba(251,191,36,0.7), 0 0 56px rgba(234,179,8,0.3), 0 0 72px rgba(251,191,36,0.15); border-color: #fbbf24; }
}

/* Admin Singularity — black hole warp */
@keyframes frame-singularity-warp {
  0%,100% { box-shadow: 0 0 24px rgba(34,211,238,0.6), 0 0 48px rgba(34,211,238,0.3); }
  50% { box-shadow: 0 0 32px rgba(34,211,238,0.8), 0 0 64px rgba(6,182,212,0.4), 0 0 96px rgba(34,211,238,0.15); }
}

/* Banner animations */
@keyframes banner-cyber-flicker {
  0%,100% { opacity: 1; }
  95% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
  98% { opacity: 0.8; }
}

@keyframes banner-nebula-pulse {
  0%,100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Card animations */
@keyframes cs-radiant-shift {
  0% { border-color: #ff4655; box-shadow: 0 0 24px rgba(255,70,85,0.5); }
  50% { border-color: #ffc832; box-shadow: 0 0 24px rgba(255,200,50,0.5); }
  100% { border-color: #ff4655; box-shadow: 0 0 24px rgba(255,70,85,0.5); }
}

@keyframes cs-dragon-blaze {
  0%,100% { box-shadow: 0 0 24px rgba(220,38,38,0.5); border-color: #dc2626; }
  50% { box-shadow: 0 0 36px rgba(249,115,22,0.6), 0 0 60px rgba(234,179,8,0.3); border-color: #f97316; }
}

/* Badge animations */
@keyframes badge-infinity-pulse {
  0%,100% { box-shadow: 0 0 15px rgba(192,132,252,0.6); }
  50% { box-shadow: 0 0 24px rgba(192,132,252,0.8), 0 0 48px rgba(139,92,246,0.3); }
}

@keyframes badge-skull-flicker {
  0%,89%,100% { opacity: 1; }
  90% { opacity: 0.6; }
  95% { opacity: 1; }
  97% { opacity: 0.7; }
}

@keyframes badge-allseeing-pulse {
  0%,100% { box-shadow: 0 0 16px rgba(34,211,238,0.6); }
  50% { box-shadow: 0 0 28px rgba(34,211,238,0.8), 0 0 48px rgba(6,182,212,0.3); }
}

/* ===== CRT SHUTDOWN ANIMATION ===== */
#crtShutdownOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: transparent;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#crtShutdownOverlay.crt-active {
  opacity: 1;
}

/* Scanlines */
#crtShutdownOverlay .crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  animation: crt-scanline-scroll 0.1s linear infinite;
}

/* Horizontal bright line */
#crtShutdownOverlay .crt-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 100vh;
  transform: translateY(-50%) scaleY(1);
  background: rgba(0, 0, 0, 0.95);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
  box-shadow: none;
}
#crtShutdownOverlay.crt-compress .crt-line {
  height: 3px;
  background: linear-gradient(90deg,
    transparent 2%,
    rgba(139, 92, 246, 0.6) 15%,
    rgba(200, 200, 255, 1) 50%,
    rgba(139, 92, 246, 0.6) 85%,
    transparent 98%
  );
  box-shadow:
    0 0 30px rgba(139, 92, 246, 0.8),
    0 0 60px rgba(139, 92, 246, 0.4),
    0 0 120px rgba(139, 92, 246, 0.2);
}

/* Center dot */
#crtShutdownOverlay .crt-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease 0.15s,
              box-shadow 0.35s ease;
  box-shadow: none;
}
#crtShutdownOverlay.crt-dot-phase .crt-line {
  opacity: 0;
  transition: opacity 0.2s ease;
}
#crtShutdownOverlay.crt-dot-phase .crt-dot {
  width: 8px;
  height: 8px;
  opacity: 1;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(139, 92, 246, 0.6),
    0 0 80px rgba(139, 92, 246, 0.3);
}
#crtShutdownOverlay.crt-fade-out .crt-dot {
  width: 4px;
  height: 4px;
  opacity: 0;
  transition: all 0.5s ease;
}

/* Screen flash on compress */
#crtShutdownOverlay .crt-flash {
  position: absolute;
  inset: 0;
  background: rgba(139, 92, 246, 0.08);
  opacity: 0;
}
#crtShutdownOverlay.crt-compress .crt-flash {
  animation: crt-flash-pulse 0.15s ease-out;
}

/* Black fill behind line during compress */
#crtShutdownOverlay.crt-compress {
  background: #000;
}
#crtShutdownOverlay.crt-dot-phase {
  background: #000;
}
#crtShutdownOverlay.crt-fade-out {
  background: #000;
}

@keyframes crt-scanline-scroll {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@keyframes crt-flash-pulse {
  0% { opacity: 0; }
  30% { opacity: 1; }
  100% { opacity: 0; }
}

/* Light theme: slightly different glow color */
[data-theme="light"] #crtShutdownOverlay.crt-compress .crt-line {
  background: linear-gradient(90deg,
    transparent 2%,
    rgba(99, 60, 200, 0.6) 15%,
    rgba(60, 60, 80, 1) 50%,
    rgba(99, 60, 200, 0.6) 85%,
    transparent 98%
  );
  box-shadow:
    0 0 30px rgba(99, 60, 200, 0.8),
    0 0 60px rgba(99, 60, 200, 0.4);
}
[data-theme="light"] #crtShutdownOverlay.crt-dot-phase .crt-dot {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(99, 60, 200, 0.6);
}

/* ===== OUTRO: Glitch Distortion ===== */
.outro-glitch-active {
  animation: outro-glitch-shake 0.15s infinite;
}
.outro-glitch-active > *:not(#crtShutdownOverlay) {
  filter: saturate(2) contrast(1.5);
}
.outro-glitch-layer {
  position: absolute;
  inset: 0;
  animation: outro-glitch-clip 0.2s steps(2) infinite;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 0, 0, 0.08) 0px,
    transparent 2px,
    rgba(var(--tech-cyan-rgb), 0.08) 4px,
    transparent 6px
  );
  mix-blend-mode: screen;
}
@keyframes outro-glitch-shake {
  0% { transform: translate(2px, -1px); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(1px, -2px); }
  75% { transform: translate(-2px, 1px); }
  100% { transform: translate(3px, 0px); }
}
@keyframes outro-glitch-clip {
  0% { clip-path: inset(10% 0 60% 0); }
  25% { clip-path: inset(40% 0 20% 0); }
  50% { clip-path: inset(70% 0 5% 0); }
  75% { clip-path: inset(15% 0 50% 0); }
  100% { clip-path: inset(55% 0 10% 0); }
}

/* ===== OUTRO: Portal Vortex ===== */
.outro-vortex-spinner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #a855f7;
  border-right-color: #7c3aed;
  animation: outro-vortex-spin 0.6s linear infinite;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.5), inset 0 0 40px rgba(168, 85, 247, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.outro-vortex-spinner.outro-vortex-collapse {
  width: 0;
  height: 0;
  box-shadow: 0 0 80px rgba(168, 85, 247, 1), 0 0 160px rgba(168, 85, 247, 0.5);
  border-width: 0;
}
@keyframes outro-vortex-spin {
  to { transform: rotate(360deg); }
}

/* ===== OUTRO: Neon Grid ===== */
.outro-neon-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(60deg);
  transform-origin: bottom;
  border-top: 2px solid #ec4899;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.4);
  transition: all 0.6s ease-in;
}
.outro-neon-horizon.outro-neon-collapse {
  height: 0;
  border-top-color: transparent;
  box-shadow: none;
}
.outro-neon-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: #ec4899;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 60px rgba(236, 72, 153, 0.3);
  opacity: 1;
  transition: opacity 0.5s ease;
}
.outro-neon-text.outro-neon-fade {
  opacity: 0;
}

/* ===== OUTRO: Game Over ===== */
.outro-gameover-text {
  font-family: monospace;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 60px rgba(239, 68, 68, 0.3);
  opacity: 0;
  transform: scale(2);
  transition: all 0.4s cubic-bezier(0.17, 0.67, 0.21, 1.2);
}
.outro-gameover-text.outro-gameover-show {
  opacity: 1;
  transform: scale(1);
}
.outro-gameover-sub {
  font-family: monospace;
  font-size: 0.9rem;
  color: rgba(239, 68, 68, 0.5);
  letter-spacing: 4px;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.outro-gameover-sub.outro-gameover-show {
  opacity: 1;
}

/* ===== OUTRO: Cinematic Fade ===== */
.outro-cine-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  background: #000;
  transition: height 1.4s cubic-bezier(0.25, 0, 0.3, 1);
}
.outro-cine-top { top: 0; }
.outro-cine-bottom { bottom: 0; }

/* ===== OUTRO: VHS Rewind ===== */
.outro-vhs-active .outro-vhs-tracking {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 4px,
    rgba(255,255,255,0.03) 4px,
    rgba(255,255,255,0.03) 5px
  );
  animation: outro-vhs-scroll 0.08s linear infinite;
}
.outro-vhs-active .outro-vhs-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: outro-vhs-jitter 0.1s steps(4) infinite;
}
.outro-vhs-active .outro-vhs-text {
  position: absolute;
  top: 12%;
  right: 8%;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 3px;
  animation: outro-vhs-blink 0.5s steps(1) infinite;
}
@keyframes outro-vhs-scroll {
  to { background-position: 0 100px; }
}
@keyframes outro-vhs-jitter {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(1px, -1px); }
  75% { transform: translate(-1px, 2px); }
}
@keyframes outro-vhs-blink {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0; }
}

/* ===== OUTRO: Smoke Out ===== */
.outro-smoke-layer {
  position: absolute;
  bottom: -100%;
  left: -20%;
  right: -20%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(80,80,80,0.9) 0%, rgba(40,40,40,0.7) 40%, transparent 70%);
  border-radius: 50% 50% 0 0;
  animation: outro-smoke-rise 2s ease-out forwards;
}
@keyframes outro-smoke-rise {
  to { bottom: -10%; }
}

/* ===== OUTRO: Card Shuffle ===== */
.outro-card {
  position: absolute;
  width: 60px;
  height: 84px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: outro-card-fly 1.2s cubic-bezier(0.25, 0, 0.3, 1) forwards;
}
@keyframes outro-card-fly {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--end-x)), calc(-50% + var(--end-y))) rotate(var(--end-rot)) scale(0.3); opacity: 0; }
}

/* ===== OUTRO: Golden Curtain (Sponsor) ===== */
.outro-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #b8860b 0%, #ffd700 30%, #daa520 50%, #ffd700 70%, #b8860b 100%);
  transition: width 1.4s cubic-bezier(0.25, 0, 0.3, 1);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}
.outro-curtain::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  background: repeating-linear-gradient(
    180deg,
    rgba(0,0,0,0.1) 0px,
    transparent 8px,
    rgba(255,255,255,0.05) 16px
  );
}
.outro-curtain-left { left: 0; }
.outro-curtain-left::after { right: 0; }
.outro-curtain-right { right: 0; }
.outro-curtain-right::after { left: 0; }

/* ===== OUTRO: VIP Exit (Sponsor) ===== */
.outro-vip-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.outro-vip-particle {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: outro-vip-float 2s ease-out forwards;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}
@keyframes outro-vip-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}
.outro-vip-text {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 800;
  color: #ffd700;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  z-index: 1;
}
.outro-vip-text.outro-vip-show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== OUTRO: Terminal Shutdown (Admin) ===== */
.outro-terminal {
  font-size: 1.1rem;
  color: #22d3ee;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
  transition: opacity 0.4s;
}
.outro-term-prompt {
  color: #10b981;
}
.outro-term-cursor {
  animation: outro-term-blink 0.6s steps(1) infinite;
}
@keyframes outro-term-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===== OUTRO: Access Revoked (Admin) ===== */
.outro-revoked-icon {
  font-size: 3rem;
  color: #ef4444;
  margin-bottom: 1rem;
  animation: outro-revoked-pulse 0.3s ease infinite;
}
.outro-revoked-text {
  font-family: monospace;
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
  opacity: 0;
  transition: opacity 0.3s;
}
.outro-revoked-text.outro-revoked-show { opacity: 1; }
.outro-revoked-sub {
  font-family: monospace;
  font-size: 0.85rem;
  color: rgba(239, 68, 68, 0.5);
  letter-spacing: 4px;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.outro-revoked-sub.outro-revoked-show { opacity: 1; }
#crtShutdownOverlay.outro-revoked-flash {
  animation: outro-revoked-flash-kf 0.15s ease;
}
@keyframes outro-revoked-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes outro-revoked-flash-kf {
  0% { background: #000; }
  40% { background: rgba(239, 68, 68, 0.15); }
  100% { background: #000; }
}

/* ══════════════════════════════════════
   IDLE WARNING MODAL
   ══════════════════════════════════════ */
.idle-warning-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: idle-overlay-in 0.3s ease forwards;
}
.idle-warning-overlay.idle-warning-hidden {
  display: none;
}
@keyframes idle-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.idle-warning-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(13,13,26,0.98);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(239,68,68,0.15), 0 25px 50px rgba(0,0,0,0.5);
  animation: idle-card-in 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes idle-card-in {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.idle-warning-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f87171;
  animation: idle-icon-pulse 1.5s ease-in-out infinite;
}
@keyframes idle-icon-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

.idle-warning-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.3rem;
}
.idle-warning-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0 0 1.25rem;
}

.idle-warning-countdown {
  font-size: 3.5rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
  margin-bottom: 0.3rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s;
}

.idle-warning-label {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.idle-warning-progress {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.idle-warning-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  border-radius: 99px;
  transition: width 1s linear;
  width: 100%;
}

.idle-warning-actions {
  display: flex;
  gap: 0.75rem;
}
.idle-btn-stay {
  flex: 1;
  padding: 0.7rem 1rem;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 10px;
  color: #a78bfa;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.idle-btn-stay:hover {
  background: rgba(139,92,246,0.25);
  border-color: rgba(139,92,246,0.6);
  color: #c4b5fd;
}
.idle-btn-logout {
  padding: 0.7rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.idle-btn-logout:hover {
  border-color: rgba(239,68,68,0.4);
  color: #f87171;
}

/* Light theme */
[data-theme="light"] .idle-warning-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(239,68,68,0.25);
  box-shadow: 0 0 40px rgba(239,68,68,0.08), 0 25px 50px rgba(0,0,0,0.15);
}
[data-theme="light"] .idle-warning-title { color: #0f172a; }
[data-theme="light"] .idle-warning-sub { color: #64748b; }
[data-theme="light"] .idle-warning-label { color: #94a3b8; }
[data-theme="light"] .idle-warning-progress { background: rgba(0,0,0,0.08); }
[data-theme="light"] .idle-btn-stay { background: rgba(139,92,246,0.08); }
[data-theme="light"] .idle-btn-logout { border-color: rgba(0,0,0,0.12); color: #94a3b8; }

/* ══════════════════════════════════════════
   Points History Modal (.ph-modal)
   ══════════════════════════════════════════ */
.ph-modal {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.ph-modal.ph-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Sheet (shared) ── */
.ph-modal__sheet {
  width: 100%;
  max-width: 540px;
  max-height: 82vh;
  background: var(--bg-card, #14172b);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(139,92,246,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.ph-modal.ph-open .ph-modal__sheet {
  transform: translateY(0);
}

/* ── Desktop: centered dialog ── */
@media (min-width: 1025px) {
  .ph-modal {
    align-items: center;
  }
  .ph-modal__sheet {
    border-radius: 16px;
    border: 1px solid rgba(139,92,246,0.2);
    max-height: 75vh;
    transform: translateY(20px) scale(0.97);
  }
  .ph-modal.ph-open .ph-modal__sheet {
    transform: translateY(0) scale(1);
  }
  .ph-modal__handle { display: none; }
}

.ph-modal__handle {
  width: 36px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin: 0.6rem auto 0;
  flex-shrink: 0;
}

.ph-modal__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.ph-modal__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #f1f5f9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.ph-modal__title i { color: #f59e0b; }
.ph-modal__balance {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary, #8b5cf6);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}
.ph-modal__close {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted, #64748b);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.ph-modal__close:hover { background: rgba(255,255,255,0.07); color: var(--text-primary, #f1f5f9); }

.ph-modal__filters {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.ph-modal__select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary, #f1f5f9);
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  outline: none;
  appearance: none;
}
.ph-modal__select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.ph-modal__select option { background: #1e2235; color: #f1f5f9; }

.ph-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 1rem;
  overscroll-behavior: contain;
}
.ph-modal__body::-webkit-scrollbar { width: 4px; }
.ph-modal__body::-webkit-scrollbar-track { background: transparent; }
.ph-modal__body::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.25); border-radius: 2px; }

.ph-modal__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.ph-modal__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.35rem;
}
.ph-modal__row-icon { font-size: 1.1rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.ph-modal__row-info { flex: 1; min-width: 0; }
.ph-modal__row-desc {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary, #f1f5f9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ph-modal__row-meta { font-size: 0.72rem; color: var(--text-muted, #64748b); }
.ph-modal__row-delta {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Mobile points button (mnb) ── */
.mnb-pts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.15rem 0.55rem 0.15rem 0.45rem;
  border-radius: 99px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  /* button reset */
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: ptsBorderPulse 3s ease-in-out infinite;
}
.mnb-pts-btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
.mnb-pts-btn:active { background: rgba(139,92,246,0.22); }
@keyframes ptsBorderPulse {
  0%, 100% { border-color: rgba(139,92,246,0.25); box-shadow: none; }
  50%       { border-color: rgba(139,92,246,0.55); box-shadow: 0 0 7px rgba(139,92,246,0.3); }
}

/* Light theme */
[data-theme="light"] .ph-modal__sheet {
  background: #fff;
  border-color: rgba(139,92,246,0.15);
}
[data-theme="light"] .ph-modal__header { border-bottom-color: rgba(0,0,0,0.07); }
[data-theme="light"] .ph-modal__title { color: #0f172a; }
[data-theme="light"] .ph-modal__close { color: #94a3b8; }
[data-theme="light"] .ph-modal__close:hover { background: rgba(0,0,0,0.05); color: #0f172a; }
[data-theme="light"] .ph-modal__select { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: #0f172a; }
[data-theme="light"] .ph-modal__select option { background: #fff; color: #0f172a; }
[data-theme="light"] .ph-modal__filters { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ph-modal__pagination { border-top-color: rgba(0,0,0,0.06); }
[data-theme="light"] .ph-modal__row { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .ph-modal__row-desc { color: #0f172a; }
[data-theme="light"] .ph-modal__row-meta { color: #64748b; }
[data-theme="light"] .mnb-pts-btn { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.2); }

/* ── Mobile Security Modals (≤480px) — Bottom Sheet ─────────────────────── */
@media (max-width: 480px) {
    .security-modal {
        padding: 0;
        align-items: flex-end;
    }

    .security-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
        margin: 0;
        overflow-y: auto;
    }

    .security-modal-header {
        padding: 0.875rem 1rem;
    }

    .security-modal-close {
        width: 44px;
        height: 44px;
    }

    .security-modal .form-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .security-modal .form-actions .btn-primary,
    .security-modal .form-actions .btn-secondary {
        flex: 1;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }

    /* Collapse ALL inline multi-col grids inside security modals to single column */
    .security-modal [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Sponsor Application Status Card (.ss-*) ────────────────────────────── */
/* Used by both sponsor-apply.php (full page) and the mobile bottom-sheet    */
/* modal. All sponsor status rendering goes through sponsor-status-shared.js */

.ss-status-card {
    background: var(--bg-card, rgba(255, 255, 255, 0.05));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.ss-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.ss-status-header h3 {
    margin: 0;
    color: var(--text-primary);
}
.ss-status-body {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.ss-status-body p { margin: 0.3rem 0; }
.ss-status-link   { color: var(--primary, #8b5cf6); }
.ss-status-desc   { white-space: pre-wrap; }
.ss-status-date   { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }

.ss-comment { margin-top: 0.75rem; padding: 0.75rem 1rem; border-radius: 8px; font-size: 0.85rem; }
.ss-comment strong { display: block; margin-bottom: 0.3rem; }
.ss-comment p { margin: 0; color: var(--text-secondary); }
.ss-comment--admin   { background: rgba(239, 68, 68, 0.1);  border-left: 3px solid #ef4444; }
.ss-comment--admin strong   { color: #ef4444; }
.ss-comment--dispute { background: rgba(139, 92, 246, 0.1); border-left: 3px solid #8b5cf6; }
.ss-comment--dispute strong { color: #8b5cf6; }

.ss-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}
.ss-badge--pending  { background: #f59e0b; }
.ss-badge--approved { background: #22c55e; }
.ss-badge--rejected { background: #ef4444; }
.ss-badge--disputed { background: #8b5cf6; }
.ss-badge--closed   { background: #6b7280; }

[data-theme="light"] .ss-status-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}
