: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;

  /* 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 {
  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-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;
}

.site-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;
}

.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-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.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(0, 102, 255, 0.08), rgba(0, 255, 255, 0.04));
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.15);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 255, 255, 0.08));
  color: var(--accent-primary);
  border-color: rgba(0, 102, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 102, 255, 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(0, 102, 255, 0.15), rgba(0, 255, 255, 0.08));
  border: 1px solid rgba(0, 102, 255, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
  transition: var(--transition);
}

.user-points:hover {
  box-shadow: 0 0 25px rgba(0, 102, 255, 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%;
} */

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 255, 255, 0.04));
  color: var(--text-primary);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 255, 255, 0.08));
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  transition: var(--transition);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 255, 255, 0.05));
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
  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(0, 102, 255, 0.4),
                0 0 10px rgba(0, 102, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.6),
                0 0 30px rgba(0, 102, 255, 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 {
  display: grid;
  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 {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 255, 255, 0.08));
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.welcome-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  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-greeting h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 1rem;
}

.quick-stat {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.08), rgba(0, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  transition: var(--transition);
}

.quick-stat:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.12), rgba(0, 255, 255, 0.06));
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
  transform: translateY(-2px);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), rgba(0, 255, 255, 0.1));
  border-radius: 12px;
  font-size: 1.5rem;
  border: 1px solid rgba(0, 102, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.stat-info .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-primary);
}

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

@media (max-width: 992px) {
  .welcome-section {
    flex-direction: column;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.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(0, 102, 255, 0.25), 0 0 20px rgba(0, 102, 255, 0.2);
}

.list-card {
  display: grid;
  gap: 1rem;
}

.list-item {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 255, 255, 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(0, 102, 255, 0.08), rgba(0, 255, 255, 0.04));
  border-color: var(--border-hover);
  box-shadow: 0 0 15px rgba(0, 102, 255, 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);
}

/* Mobile: Position toasts at bottom above mobile nav */
@media (max-width: 768px) {
  .toast-container {
    top: auto;
    bottom: calc(80px + 1rem); /* Above mobile nav */
    left: 1rem;
    right: 1rem;
    align-items: center;
  }
}

.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;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile toast animation - slide up from bottom */
@media (max-width: 768px) {
  .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(0, 102, 255, 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);
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .welcome-section {
    padding: 1.5rem;
  }

  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .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;
}

.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(0, 255, 255, 0.5));
  transition: all 0.3s ease;
}

.btn-notifications:hover .notification-icon {
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 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(0, 255, 255, 0.6);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.9), 0 0 30px rgba(0, 102, 255, 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(0, 102, 255, 0.08), rgba(0, 255, 255, 0.04));
  border: 1px solid rgba(0, 102, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-user-avatar:hover {
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), rgba(0, 255, 255, 0.08));
  border-color: var(--tech-blue);
  box-shadow: 0 0 25px rgba(0, 102, 255, 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(0, 102, 255, 0.5),
              0 0 40px rgba(0, 255, 255, 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(0, 255, 255, 0.4);
}

/* 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(0, 102, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 102, 255, 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(0, 102, 255, 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(0, 102, 255, 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(0, 102, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 102, 255, 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(0, 102, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 102, 255, 0.05);
}

.notifications-header h3 {
  color: var(--tech-cyan);
  font-size: 1.1rem;
}

.btn-mark-all-read {
  background: transparent;
  border: 1px solid rgba(0, 255, 255, 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(0, 255, 255, 0.1);
  border-color: var(--tech-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
}

.notifications-footer {
  padding: 1rem;
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  text-align: center;
  background: rgba(0, 102, 255, 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(0, 255, 255, 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;
}

.notification-dropdown-item:hover {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.2);
}

.notification-dropdown-item.read {
  opacity: 0.6;
}

.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;
}

/* ===== 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);
}

.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;
}

/* 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: 768px) {
  .btn-notifications {
    padding: 6px;
  }

  .notification-icon {
    font-size: 18px;
  }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .btn-user-avatar {
    padding: 0.25rem;
    padding-right: 0.75rem;
  }

  .user-name {
    display: none;
  }

  .notifications-dropdown {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
  }
}

/* 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;
}
