/* ============================================
   QALIMAH CSS VARIABLES - CENTRALISÉES
   ============================================
   Toutes les variables CSS du projet sont définies ici.
   Ce fichier doit être inclus en premier dans la concaténation.
   ============================================ */

:root {
  /* ============================================
     COULEURS PRINCIPALES - Sage Green Theme
     ============================================ */
  
  /* Couleurs primaires */
  --color-primary: #708f81;
  --color-primary-dark: #5d786f;
  --color-primary-light: #a3b7a3;
  --color-secondary: #a3b7a3;
  --color-accent: #fbf8f1;
  
  /* Couleurs de fond */
  --bg-main: #fbf8f1;
  --bg-secondary: #fffdf9;
  --bg-white: #ffffff;
  --bg-card: #fffdf9;
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* Couleurs de texte */
  --text-primary: #3e3e3e;
  --text-secondary: #666666;
  --text-light: #666666;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  
  /* Couleurs de bordure */
  --border-color: #e4dccc;
  --border-light: #e4dccc;
  --border-dark: rgba(0, 0, 0, 0.1);
  
  /* Couleurs d'état */
  --color-success: #16a34a;
  --color-success-light: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-danger-light: #ef4444;
  --color-info: #3b82f6;
  
  /* Couleurs de highlight */
  --color-highlight: #a3b7a3;
  --color-highlight-hover: #8fa08f;
  
  /* ============================================
     OMBRES ET EFFETS
     ============================================ */
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-primary: rgba(0, 0, 0, 0.1);
  
  /* ============================================
     DÉGRADÉS
     ============================================ */
  
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--color-accent), #f0ede6);
  --gradient-success: linear-gradient(135deg, var(--color-success), var(--color-success-light));
  --gradient-danger: linear-gradient(135deg, var(--color-danger), var(--color-danger-light));
  --gradient-card: linear-gradient(135deg, var(--bg-card), var(--bg-main));
  
  /* ============================================
     ESPACEMENT (SPACING)
     ============================================ */
  
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;       /* 48px */
  --spacing-3xl: 4rem;      /* 64px */
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  
  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;      /* 12px */
  --radius-xl: 1rem;         /* 16px */
  --radius-2xl: 1.5rem;      /* 24px */
  --radius-full: 9999px;     /* Full circle */
  
  /* ============================================
     TRANSITIONS
     ============================================ */
  
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.2s ease;
  --transition-slow: all 0.3s ease;
  --transition-slower: all 0.5s ease;
  --transition-cubic: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ============================================
     TYPOGRAPHIE
     ============================================ */
  
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;      /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 2;
  
  /* ============================================
     LAYOUT
     ============================================ */
  
  --max-width: 1200px;
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1536px;
  
  /* ============================================
     BREAKPOINTS (pour media queries)
     ============================================ */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* ============================================
     Z-INDEX
     ============================================ */
  
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 9999;
  
  /* ============================================
     ADMIN DASHBOARD (spécifique)
     ============================================ */
  
  --dashboard-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --dashboard-card-bg: rgba(255, 255, 255, 0.98);
  --dashboard-card-border: rgba(112, 143, 129, 0.12);
  --dashboard-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --dashboard-card-shadow-hover: 0 12px 32px rgba(112, 143, 129, 0.15);
  --dashboard-header-bg: rgba(255, 255, 255, 0.95);
  --dashboard-nav-bg: rgba(255, 255, 255, 0.92);
  --dashboard-accent-light: rgba(112, 143, 129, 0.08);
  
  /* ============================================
     COMPATIBILITÉ - ALIAS (pour migration progressive)
     ============================================ */
  
  /* Alias pour home.css */
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --secondary: var(--color-secondary);
  --accent: var(--color-accent);
  --background: var(--bg-white);
  --card-bg: var(--bg-card);
  --text: var(--text-primary);
  --text-light: var(--text-secondary);
  --border: var(--border-color);
  --shadow: var(--shadow-primary);
  
  /* Alias pour lobby.css */
  --background-main: var(--bg-main);
  --card-background: var(--bg-card);
  --main-accent: var(--color-primary);
  --borders-lines: var(--border-color);
  --highlight: var(--color-highlight);
  
  /* Alias pour create_game.css */
  --primary-gradient: var(--gradient-primary);
  --secondary-gradient: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  --success-gradient: var(--gradient-success);
  --danger-gradient: var(--gradient-danger);
  --card-shadow: var(--shadow-card);
  --hover-shadow: var(--shadow-hover);
  --border-radius: var(--radius-xl);
  --transition: var(--transition-cubic);
  
  /* ============================================
     COLOR SCHEME
     ============================================ */
  
  color-scheme: light;
}

/* ============================================
   DARK MODE (préparation future)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    /* Les variables dark mode peuvent être ajoutées ici plus tard */
    /* Pour l'instant, on garde le light mode */
  }
}

/* ============================================
   NOTES D'UTILISATION
   ============================================
   
   Utilisation recommandée :
   
   1. Couleurs :
      - Utiliser --color-primary au lieu de --primary
      - Utiliser --bg-main au lieu de --background-main
      - Utiliser --text-primary au lieu de --text
   
   2. Espacement :
      - Utiliser --spacing-md au lieu de valeurs fixes
      - Utiliser --spacing-lg pour les grands espaces
   
   3. Border radius :
      - Utiliser --radius-lg au lieu de border-radius: 0.75rem
   
   4. Transitions :
      - Utiliser --transition-base pour les transitions standard
      - Utiliser --transition-slow pour les animations
   
   5. Les alias de compatibilité sont disponibles pour
      la migration progressive des anciens fichiers.
   
   ============================================ */

/* Phoenix Framework v1.7.0 default styles */

/* Alerts and form errors used by phx.new */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}
.alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}
.alert p {
  margin-bottom: 0;
}
.alert:empty {
  display: none;
}
.invalid-feedback {
  color: #a94442;
  display: block;
  margin: -1rem 0 2rem;
}

/* LiveView specific classes for your app */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
  display: none;
}

.phx-click-loading {
  opacity: 0.5;
  transition: opacity 1s ease-out;
}

.phx-loading{
  cursor: wait;
}

.phx-modal {
  opacity: 1!important;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.phx-modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.phx-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.fade-in-scale {
  animation: 0.2s ease-in 0s normal forwards 1 fade-in-scale-keys;
}

.fade-out-scale {
  animation: 0.2s ease-out 0s normal forwards 1 fade-out-scale-keys;
}

.fade-in {
  animation: 0.2s ease-out 0s normal forwards 1 fade-in-keys;
}
.fade-out {
  animation: 0.2s ease-out 0s normal forwards 1 fade-out-keys;
}

@keyframes fade-in-scale-keys{
  0% { scale: 0.95; opacity: 0; }
  100% { scale: 1.0; opacity: 1; }
}

@keyframes fade-out-scale-keys{
  0% { scale: 1.0; opacity: 1; }
  100% { scale: 0.95; opacity: 0; }
}

@keyframes fade-in-keys{
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-out-keys{
  0% { opacity: 1; }
  100% { opacity: 0; }
} /* This file is for your main application CSS - FIXED */
/* Note: CSS files are concatenated in build process, no @import needed */

/* Base styles reset and normalization */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: #0a0a0a;
  background-color: #f5f7fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Enhanced text visibility and contrast */
.text-white {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button base styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  min-height: 44px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #708f81;
  color: white;
}

.btn-primary:hover {
  background-color: #5d786f;
}

.btn-secondary {
  background-color: #a3b7a3;
  color: white;
}

.btn-secondary:hover {
  background-color: #8fa08f;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid #e4dccc;
  color: #3e3e3e;
}

.btn-ghost:hover {
  background-color: #fbf8f1;
  border-color: #708f81;
}

/* Form input styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e4dccc;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background-color: #fffdf9;
}

.input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

.input-bordered {
  border-color: #e4dccc;
}

/* PIN input specific styles */
.pin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e4dccc;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 1.125rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: bold;
  letter-spacing: 0.1em;
  background-color: #fffdf9;
  transition: all 0.2s;
}

.pin-input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

/* Card styles */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e4dccc;
  overflow: hidden;
  background-color: #fffdf9;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #708f81;
  margin-bottom: 1rem;
}

/* Layout utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:text-center {
    text-align: center;
  }
  
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Loading spinner */
.loading {
  display: inline-block;
}

.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e4dccc;
  border-top-color: #708f81;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.loading-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

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

/* Base theme colors */
.bg-base-100 {
  background-color: #fffdf9;
}

.bg-base-200 {
  background-color: #fefcf8;
}

.border-base-300 {
  border-color: #e4dccc;
}

.text-base-content {
  color: #3e3e3e;
}

.text-primary-content {
  color: #ffffff;
}

.bg-primary {
  background-color: #708f81;
}

.text-primary {
  color: #708f81;
}

/* Divider replacement */
.divider {
  margin: 2rem 0;
  text-align: center;
  color: #666666;
  display: flex;
  align-items: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 0%;
  border-top: 1px solid #e4dccc;
}

.divider::before {
  margin-right: 0.75rem;
}

.divider::after {
  margin-left: 0.75rem;
}

/* Drop shadow utilities */
.drop-shadow-sm {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.drop-shadow-lg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* Better visibility for white text on gradients */
[class*="bg-gradient-"] .text-white,
[class*="bg-gradient-"] [class*="text-white"] {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  font-weight: 600 !important;
}

/* Icon visibility improvements */
svg.text-white {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Arabic text visibility enhancement */
[lang="ar"] .text-white,
.text-white[lang="ar"] {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Ensure footer takes normal container width */
footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove conflicting styles that might break homepage */
.mobile-container,
.mobile-text,
.mobile-heading,
.mobile-button,
.mobile-card,
.mobile-grid,
.mobile-flex,
.mobile-section,
.mobile-gap,
.touch-target,
.mobile-title,
.mobile-subtitle,
.mobile-body,
.mobile-input,
.mobile-select,
.mobile-card-grid,
.mobile-action-card,
.mobile-card-action,
.mobile-button-primary,
.mobile-join-section,
.mobile-join-form,
.mobile-join-input,
.mobile-join-button,
.mobile-game-container,
.mobile-game-content,
.mobile-question-card,
.mobile-options-grid,
.mobile-profile-grid,
.mobile-stats-grid,
.mobile-dashboard-grid,
.mobile-nav,
.mobile-nav-content,
.mobile-menu-button,
.mobile-menu,
.mobile-menu-item,
.mobile-timer,
.mobile-timer-text {
  /* Reset any conflicting mobile styles */
  all: unset;
  display: revert;
  padding: revert;
  margin: revert;
  font-size: revert;
  color: revert;
  background: revert;
  border: revert;
  border-radius: revert;
  box-shadow: revert;
  transform: revert;
  transition: revert;
}

/* FAQ toggle functionality */
.faq-item-modern.active .faq-answer-modern {
  display: block !important;
}

/* Grouped input/button (Pure CSS join replacement) */
.join {
  display: inline-flex;
  align-items: stretch;
}

.join-item {
  border-radius: 0;
}

.join > .join-item:first-child {
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}

.join > .join-item:last-child {
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

.join > .join-item + .join-item {
  margin-left: -1px;
}

/* Divider replacement */
.divider {
  margin: 2rem 0;
  text-align: center;
  color: #666666;
  display: flex;
  align-items: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1 1 0%;
  border-top: 1px solid #e4dccc;
}

.divider::before {
  margin-right: 0.75rem;
}

.divider::after {
  margin-left: 0.75rem;
}

/* Loading spinner */
.loading {
  display: inline-block;
}

.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #e4dccc;
  border-top-color: #708f81;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.loading-sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

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

/* Base theme colors */
.bg-base-100 {
  background-color: #fffdf9;
}

.bg-base-200 {
  background-color: #fefcf8;
}

.border-base-300 {
  border-color: #e4dccc;
}

.text-base-content {
  color: #3e3e3e;
}

.text-primary-content {
  color: #ffffff;
}

.bg-primary {
  background-color: #708f81;
}

.text-primary {
  color: #708f81;
}

/* Text alignment utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: #708f81;
  color: white;
}

.btn-primary:hover {
  background-color: #5d786f;
}

.btn-secondary {
  background-color: #a3b7a3;
  color: white;
}

.btn-secondary:hover {
  background-color: #8fa08f;
}

.btn-ghost {
  background-color: transparent;
  border: 1px solid transparent;
  color: #3e3e3e;
}

.btn-ghost:hover {
  background-color: #fbf8f1;
}

/* Card styles */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e4dccc;
  overflow: hidden;
  background-color: #fffdf9;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #708f81;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Input styles */
.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e4dccc;
  border-radius: 0.5rem;
  transition: all 0.2s;
  background-color: #fffdf9;
}

.input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

.input-bordered {
  border-color: #e4dccc;
}

/* Utility classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-md {
  max-width: 28rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
}

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

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.flex-col {
  flex-direction: column;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
  border-style: solid;
  border-color: #e4dccc;
}

.shadow-inner {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.opacity-90 {
  opacity: 0.9;
}

.bg-\[\#fbf8f1\] {
  background-color: #fbf8f1;
}

.bg-\[\#fffdf9\] {
  background-color: #fffdf9;
}

.bg-\[\#708f81\] {
  background-color: #708f81;
}

.text-\[\#fffdf9\] {
  color: #fffdf9;
}

.text-\[\#e4dccc\] {
  color: #e4dccc;
}

.text-\[\#3e3e3e\] {
  color: #3e3e3e;
}

.text-\[\#666666\] {
  color: #666666;
}

.text-\[\#708f81\] {
  color: #708f81;
}

.border-\[\#e4dccc\] {
  border-color: #e4dccc;
}

.bg-gradient-to-br {
  background-image: linear-gradient(135deg, #708f81, #a3b7a3, #708f81);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, #708f81, #a3b7a3);
}

/* Profile page - harmonized with home/lobby */
.profile-container {
  background-color: var(--background-main, #fbf8f1);
  min-height: 100vh;
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--text-primary, #3e3e3e);
}

.profile-header {
  background: linear-gradient(135deg, var(--primary, #708f81), var(--primary-dark, #5d786f));
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 0 0 24px 24px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(112, 143, 129, 0.15);
}

.profile-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background-color: var(--card-bg, #fffdf9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(112, 143, 129, 0.2);
  border: 4px solid var(--card-bg, #fffdf9);
  font-size: 3.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(112, 143, 129, 0.28);
}

.profile-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background-color: var(--primary, #708f81);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 3px solid var(--card-bg, #fffdf9);
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}

.profile-username {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.profile-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0.85;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.profile-xp-bar {
  max-width: 400px;
  margin: 1rem auto 0;
}

.profile-xp-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}

.profile-xp-progress-bg {
  width: 100%;
  background-color: rgba(255,255,255,0.25);
  border-radius: 12px;
  height: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.profile-xp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #fff, var(--highlight, #a3b7a3), var(--primary, #708f81));
  border-radius: 12px;
  transition: width 1s ease;
  box-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.profile-xp-next {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 0.4rem;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.profile-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.profile-btn-primary {
  background-color: var(--primary, #708f81);
  color: white;
}

.profile-btn-primary:hover {
  background-color: var(--primary-dark, #5d786f);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 143, 129, 0.25);
}

.profile-btn-secondary {
  background-color: var(--card-bg, #fffdf9);
  color: var(--primary, #708f81);
  border: 2px solid var(--borders-lines, #e4dccc);
}

.profile-btn-secondary:hover {
  background-color: var(--highlight, #a3b7a3);
  color: var(--text-primary, #3e3e3e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 143, 129, 0.15);
}

/* Content sections */
.profile-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-section {
  background-color: var(--card-bg, #fffdf9);
  border: 1px solid var(--borders-lines, #e4dccc);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.profile-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary, #708f81);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background-color: var(--background-main, #fbf8f1);
  border: 1px solid var(--borders-lines, #e4dccc);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 143, 129, 0.1);
  border-color: var(--highlight, #a3b7a3);
}

.profile-stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary, #666666);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.profile-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary, #708f81);
  margin-bottom: 0.5rem;
}

.profile-stat-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #666666);
  line-height: 1.4;
}

/* Badges & Categories */
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-badge {
  background-color: var(--primary, #708f81);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.2);
}

.profile-badge:hover {
  background-color: var(--primary-dark, #5d786f);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.3);
}

.profile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.profile-category {
  background-color: var(--highlight, #a3b7a3);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(163, 183, 163, 0.2);
}

.profile-category:hover {
  background-color: var(--primary, #708f81);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.3);
}

/* Forms */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-form-label {
  font-weight: 600;
  color: var(--primary, #708f81);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-form-label span {
  font-size: 1rem !important;
  line-height: 1;
}

.profile-form-input,
.profile-form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--borders-lines, #e4dccc);
  border-radius: 12px;
  background-color: var(--card-bg, #fffdf9);
  color: var(--text-primary, #3e3e3e);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.profile-form-input:focus,
.profile-form-select:focus {
  outline: none;
  border-color: var(--primary, #708f81);
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
  background-color: var(--card-bg, #fffdf9);
  transform: translateY(-1px);
}

.profile-form-input::placeholder {
  color: var(--text-secondary, #666666);
  opacity: 0.7;
}

/* Error styles */
.profile-form-error {
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 0.875rem;
  line-height: 1.4;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success message */
.profile-form-success {
  padding: 1rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  color: #166534;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideDown 0.3s ease;
}

.profile-form-success::before {
  content: '✓';
  background-color: #166534;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Field groups */
.profile-form-fieldset {
  padding: 1.5rem;
  background-color: var(--background-main, #fbf8f1);
  border: 1px solid var(--borders-lines, #e4dccc);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.profile-form-legend {
  font-weight: 600;
  color: var(--primary, #708f81);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--borders-lines, #e4dccc);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Helper text */
.profile-form-helper {
  font-size: 0.875rem;
  color: var(--text-secondary, #666666);
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Required indicator */
.profile-form-required {
  color: #dc2626;
  margin-left: 0.25rem;
}

/* Character counter */
.profile-form-counter {
  font-size: 0.75rem;
  color: var(--text-secondary, #666666);
  text-align: right;
  margin-top: 0.25rem;
}

.profile-form-counter.warning {
  color: #d97706;
}

.profile-form-counter.error {
  color: #dc2626;
}

/* Support tickets */
.profile-support-item {
  background-color: var(--background-main, #fbf8f1);
  border: 1px solid var(--borders-lines, #e4dccc);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.profile-support-item:hover {
  border-color: var(--highlight, #a3b7a3);
  box-shadow: 0 4px 12px rgba(163, 183, 163, 0.1);
}

.profile-support-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-support-title {
  font-weight: 600;
  color: var(--primary, #708f81);
  font-size: 1.1rem;
}

.profile-support-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.profile-support-status.open {
  background-color: #fef3c7;
  color: #92400e;
}

.profile-support-status.closed {
  background-color: #d1fae5;
  color: #065f46;
}

.profile-support-meta {
  font-size: 0.85rem;
  color: var(--text-secondary, #666666);
  margin-bottom: 0.5rem;
}

.profile-support-message {
  color: var(--text-primary, #3e3e3e);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-header {
    padding: 1.5rem 1rem;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  .profile-name {
    font-size: 1.8rem;
  }
  .profile-username {
    font-size: 1.1rem;
  }
  .profile-actions {
    flex-direction: column;
    align-items: center;
  }
  .profile-btn {
    width: 100%;
    max-width: 280px;
  }
  .profile-section {
    padding: 1.5rem;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-form-row {
    grid-template-columns: 1fr;
  }
}

/* Additional utilities used by profile */
.w-12 { width: 3rem; }
.w-32 { width: 8rem; }
.h-4 { height: 1rem; }
.h-12 { height: 3rem; }
.h-32 { height: 8rem; }

.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }

.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }

.transition-all { transition: all 0.2s; }
.duration-1000 { transition-duration: 1000ms; }
.transform { transform: translateZ(0); }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Responsive variants for profile */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-center { text-align: center; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
  .md\:mx-0 { margin-left: 0; margin-right: 0; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-10 { grid-template-columns: repeat(10, 1fr); }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
}

/* Specific profile overrides */
.absolute { position: absolute; }
.relative { position: relative; }
.-bottom-2 { bottom: -0.5rem; }
.-right-2 { right: -0.5rem; }
.border-4 { border-width: 4px; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1 1 0%; }
.overflow-hidden { overflow: hidden; }
.block { display: block; }
.hover\:bg-\[\#5d786f\]:hover { background-color: #5d786f; }
.hover\:bg-\[\#a3b7a3\]:hover { background-color: #a3b7a3; }
.hover\:text-\[\#3e3e3e\]:hover { color: #3e3e3e; }
.hover\:scale-110:hover { transform: scale(1.1); }

/* Responsive utilities */
@media (min-width: 640px) {
  .sm\:text-center {
    text-align: center;
  }
  
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
}

@media (min-width: 1024px) {
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.drop-shadow-sm {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.drop-shadow-lg {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* Better visibility for white text on gradients */
[class*="bg-gradient-"] .text-white,
[class*="bg-gradient-"] [class*="text-white"] {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  font-weight: 600 !important;
}

/* Icon visibility improvements */
svg.text-white {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Arabic text visibility enhancement */
[lang="ar"] .text-white,
.text-white[lang="ar"] {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  font-weight: 700;
}



/* Mobile-first responsive utilities - converted from @apply to pure CSS */
.mobile-container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .mobile-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.mobile-text {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mobile-text {
    font-size: 1rem;
  }
}

.mobile-heading {
  font-size: 1.25rem;
}

@media (min-width: 640px) {
  .mobile-heading {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-heading {
    font-size: 1.875rem;
  }
}

.mobile-button {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mobile-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.mobile-card {
  padding: 1rem;
}

@media (min-width: 640px) {
  .mobile-card {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-card {
    padding: 2rem;
  }
}

.mobile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mobile-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .mobile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.mobile-flex {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mobile-flex {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Custom styles for the quiz game - converted from @apply */
.quiz-button {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  transform: scale(1);
  font-size: 0.875rem;
}

.quiz-button:hover {
  transform: scale(1.05);
}

@media (min-width: 640px) {
  .quiz-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.quiz-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem;
}

@media (min-width: 640px) {
  .quiz-card {
    padding: 1.5rem;
  }
}

.quiz-gradient {
  background: linear-gradient(to bottom right, #581c87, #1e3a8a, #312e81);
}

/* Mobile-optimized quiz options */
.quiz-option {
  transition: all 0.3s ease-out;
  padding: 0.75rem;
  font-size: 0.875rem;
  min-height: 60px;
}

@media (min-width: 640px) {
  .quiz-option {
    padding: 1rem;
    font-size: 1rem;
  }
}

.quiz-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.15);
}

.quiz-option:active {
  transform: translateY(0);
}

/* Mobile-responsive navigation */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  background-color: #fffdf9;
  border-bottom: 1px solid #e4dccc;
}

.mobile-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .mobile-nav-content {
    height: 4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.mobile-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #3e3e3e;
  transition: all 0.2s;
}

.mobile-menu-button:hover {
  color: #708f81;
  background-color: #fbf8f1;
}

.mobile-menu-button:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #708f81;
}

@media (min-width: 640px) {
  .mobile-menu-button {
    display: none;
  }
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fffdf9;
  border-bottom: 1px solid #e4dccc;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-item {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #3e3e3e;
  border-bottom: 1px solid #e4dccc;
  transition: all 0.2s;
}

.mobile-menu-item:hover {
  color: #708f81;
  background-color: #fbf8f1;
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

/* Animation for countdown */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
  }
}

.countdown-pulse {
  animation: pulse-glow 1s ease-in-out infinite;
}

/* Mobile-optimized timer - converted from @apply */
.mobile-timer {
  width: 4rem;
  height: 4rem;
}

@media (min-width: 640px) {
  .mobile-timer {
    width: 5rem;
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-timer {
    width: 6rem;
    height: 6rem;
  }
}

.mobile-timer-text {
  font-size: 1.125rem;
  font-weight: bold;
}

@media (min-width: 640px) {
  .mobile-timer-text {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .mobile-timer-text {
    font-size: 1.5rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Quiz feedback animations */
@keyframes correctAnswer {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes wrongAnswer {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

@keyframes feedbackPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.correct-answer-animation {
  animation: correctAnswer 0.6s ease-in-out;
}

.wrong-answer-animation {
  animation: wrongAnswer 0.5s ease-in-out;
}

.feedback-pulse {
  animation: feedbackPulse 1s ease-in-out infinite;
}

/* Circular progress timer */
.timer-circle {
  transition: stroke-dashoffset 1s linear;
}

/* Mobile-responsive forms - converted from @apply */
.mobile-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 2px solid #e4dccc;
  border-radius: 0.75rem;
  background-color: #fffdf9;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .mobile-input {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.mobile-input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

.mobile-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 2px solid #e4dccc;
  border-radius: 0.75rem;
  background-color: #fffdf9;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .mobile-select {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

.mobile-select:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

/* Mobile-responsive cards - converted from @apply */
.mobile-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mobile-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .mobile-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mobile-action-card {
  background-color: #fffdf9;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e4dccc;
  padding: 1rem;
  transition: all 0.3s;
  transform: scale(1);
}

@media (min-width: 640px) {
  .mobile-action-card {
    padding: 1.5rem;
  }
}

.mobile-action-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.mobile-card-action {
  display: block;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  transform: scale(1);
}

@media (min-width: 640px) {
  .mobile-card-action {
    padding: 2rem;
  }
}

.mobile-card-action:hover {
  transform: scale(1.05);
}

.mobile-card-action:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.5);
}

.mobile-button-primary {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s;
  transform: scale(1);
}

@media (min-width: 640px) {
  .mobile-button-primary {
    padding: 1rem 2rem;
  }
}

.mobile-button-primary:hover {
  transform: scale(1.05);
}

.mobile-button-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.5);
}

/* Mobile-responsive spacing - converted from @apply */
.mobile-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .mobile-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  .mobile-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.mobile-gap > * + * {
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .mobile-gap > * + * {
    margin-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-gap > * + * {
    margin-top: 2rem;
  }
}

/* Touch-friendly interactive elements */
.touch-target {
  min-height: 44px;
  min-width: 44px;
}

/* Mobile-optimized text sizes - converted from @apply */
.mobile-title {
  font-size: 1.5rem;
  font-weight: bold;
}

@media (min-width: 640px) {
  .mobile-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .mobile-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1280px) {
  .mobile-title {
    font-size: 3rem;
  }
}

.mobile-subtitle {
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .mobile-subtitle {
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .mobile-subtitle {
    font-size: 1.5rem;
  }
}

.mobile-body {
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .mobile-body {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .mobile-body {
    font-size: 1.125rem;
  }
}

/* Responsive pin input - converted from @apply */
.pin-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e4dccc;
  border-radius: 0.75rem;
  text-align: center;
  font-size: 1.125rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: bold;
  letter-spacing: 0.1em;
  background-color: #fffdf9;
  transition: all 0.2s;
}

@media (min-width: 640px) {
  .pin-input {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
  }
}

.pin-input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.2);
}

/* Mobile-responsive join section - converted from @apply */
.mobile-join-section {
  background-color: #fffdf9;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 2px solid #708f81;
  padding: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .mobile-join-section {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-join-section {
    padding: 2rem;
  }
}

.mobile-join-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .mobile-join-form {
    flex-direction: row;
    align-items: center;
  }
}

.mobile-join-input {
  flex: 1 1 0%;
  min-width: 0;
}

.mobile-join-button {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  transform: scale(1);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
}

@media (min-width: 640px) {
  .mobile-join-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.mobile-join-button:hover {
  transform: scale(1.05);
}

/* Responsive game layout - converted from @apply */
.mobile-game-container {
  min-height: 100vh;
  background: linear-gradient(to bottom right, #fbf8f1, #e4dccc);
  padding: 1rem;
}

@media (min-width: 640px) {
  .mobile-game-container {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-game-container {
    padding: 2rem;
  }
}

.mobile-game-content {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.mobile-question-card {
  background-color: #fffdf9;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid #e4dccc;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .mobile-question-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .mobile-question-card {
    padding: 2rem;
  }
}

.mobile-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .mobile-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Responsive profile layout - converted from @apply */
.mobile-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .mobile-profile-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 640px) {
  .mobile-profile-grid {
    gap: 2rem;
  }
}

.mobile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .mobile-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Responsive admin dashboard - converted from @apply */
.mobile-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .mobile-dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .mobile-dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .mobile-dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Safe area for mobile devices with notches */
@supports (padding: max(0px)) {
  .safe-area-top {
    padding-top: max(1rem, env(safe-area-inset-top));
  }
  
  .safe-area-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
  
  .safe-area-left {
    padding-left: max(1rem, env(safe-area-inset-left));
  }
  
  .safe-area-right {
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* Enhanced DaisyUI customizations */
.hero-gradient {
  background: linear-gradient(135deg, #fffdf9, #fefcf8);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(112, 143, 129, 0.15);
}

.badge-showcase {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
}

/* Ensure footer takes normal container width */
footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Removed DaisyUI data-theme overrides (no longer used) */

/* Removed DaisyUI-specific force overrides for buttons */

/* Note: Les variables CSS et color-scheme sont maintenant dans variables.css */

/* QALIMAH PROFILE BUTTON OVERRIDES - SAGE GREEN THEME */

/* Profile edit button - sage green background */
button[phx-click="edit_profile"] {
  background-color: #708f81 !important;
  border-color: #708f81 !important;
  color: #fffdf9 !important;
}

button[phx-click="edit_profile"]:hover {
  background-color: #5d786f !important;
  border-color: #5d786f !important;
}

/* Profile change password button - cream background */
button[phx-click="change_password"] {
  background-color: #fffdf9 !important;
  border-color: #e4dccc !important;
  color: #708f81 !important;
}

button[phx-click="change_password"]:hover {
  background-color: #a3b7a3 !important;
  color: #3e3e3e !important;
}

/* Form buttons in edit mode */
button[phx-click="cancel_edit"] {
  background-color: #fffdf9 !important;
  border-color: #e4dccc !important;
  color: #708f81 !important;
}

button[phx-click="cancel_edit"]:hover {
  background-color: #a3b7a3 !important;
  color: #3e3e3e !important;
}

button[phx-click="cancel_password_change"] {
  background-color: #fffdf9 !important;
  border-color: #e4dccc !important;
  color: #708f81 !important;
}

button[phx-click="cancel_password_change"]:hover {
  background-color: #a3b7a3 !important;
  color: #3e3e3e !important;
}

/* Force override for any brown button colors */
button[style*="#C19A6B"],
button[style*="#c19a6b"],
button[style*="#B8906A"],
button[style*="#b8906a"] {
  background-color: #708f81 !important;
  border-color: #708f81 !important;
  color: #fffdf9 !important;
}

/* FINAL SAGE GREEN COLOR OVERRIDES - DO NOT REMOVE */
.bg-primary-500 {
  background-color: #708f81 !important;
}

.bg-primary-600,
.hover\:bg-primary-600:hover {
  background-color: #5d786f !important;
}

.text-primary-500 {
  color: #708f81 !important;
}

.text-primary-600,
.hover\:text-primary-600:hover {
  color: #5d786f !important;
}

.focus\:ring-primary-500:focus {
  --tw-ring-color: #708f81;
  box-shadow: 0 0 0 2px rgba(112, 143, 129, 0.5) !important;
}

.border-primary-500 {
  border-color: #708f81 !important;
}

/* Force any button with bg-primary class to use sage green */
[class*="bg-primary-5"] {
  background-color: #708f81 !important;
}

[class*="bg-primary-6"]:hover,
[class*="hover:bg-primary-6"]:hover {
  background-color: #5d786f !important;
}

/* Quiz-specific enhanced styling */

/* Enhanced quiz option animations and interactions */
.quiz-option-enhanced {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.quiz-option-enhanced:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(112, 143, 129, 0.15), 0 4px 10px rgba(112, 143, 129, 0.1);
}

.quiz-option-enhanced:active {
  transform: translateY(0) scale(1);
  transition: all 0.1s ease;
}

/* Quiz answer selection animations */
@keyframes correctAnswerGlow {
  0% { 
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    transform: scale(1.05);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    transform: scale(1);
  }
}

@keyframes wrongAnswerShake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 1;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

.correct-answer-glow {
  animation: correctAnswerGlow 0.8s ease-out;
}

.wrong-answer-shake {
  animation: wrongAnswerShake 0.6s ease-in-out;
}

.quiz-pulse {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Enhanced timer styling */
.quiz-timer-enhanced {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 3px solid #cbd5e0;
  transition: all 0.3s ease;
}

.quiz-timer-warning {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  border-color: #f59e0b;
  animation: pulseGlow 1s ease-in-out infinite;
}

.quiz-timer-critical {
  background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
  border-color: #ef4444;
  animation: pulseGlow 0.5s ease-in-out infinite;
}

/* Question progress bar animation */
@keyframes progressFill {
  from { width: 0%; }
  to { width: var(--progress-width); }
}

.quiz-progress-animated {
  animation: progressFill 0.8s ease-out;
}

/* Enhanced quiz card styling */
.quiz-card-enhanced {
  background: linear-gradient(135deg, #fffdf9 0%, #f8f6f1 50%, #fbf8f1 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(232, 226, 213, 0.8);
  box-shadow: 
    0 10px 32px rgba(62, 62, 62, 0.1),
    0 4px 16px rgba(62, 62, 62, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Quiz option letter badge animations */
@keyframes badgeBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.quiz-option-badge {
  transition: all 0.3s ease;
}

.quiz-option:hover .quiz-option-badge {
  animation: badgeBounce 0.4s ease-in-out;
}

/* Enhanced mobile quiz styling */
@media (max-width: 768px) {
  .quiz-option-enhanced {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .quiz-card-enhanced {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .quiz-timer-enhanced {
    width: 4rem;
    height: 4rem;
  }
}

/* Quiz feedback styling */
.quiz-feedback-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 246, 241, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 226, 213, 0.6);
  box-shadow: 0 8px 32px rgba(61, 46, 46, 0.1);
}

/* Quiz background pattern enhancement */
.quiz-background-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(112, 143, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(112, 143, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(112, 143, 129, 0.03) 0%, transparent 50%);
}

/* Enhanced button interactions */
.quiz-button-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.quiz-button-enhanced:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.quiz-button-enhanced:hover:before {
  left: 100%;
}

/* Quiz option icons animation */
@keyframes iconPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.quiz-icon-correct,
.quiz-icon-wrong {
  animation: iconPop 0.4s ease-out;
}

/* Enhanced gradient overlays */
.quiz-gradient-overlay {
  background: linear-gradient(
    135deg,
    rgba(112, 143, 129, 0.05) 0%,
    rgba(160, 132, 92, 0.05) 50%,
    rgba(112, 143, 129, 0.05) 100%
  );
}

/* Quiz loading states */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.quiz-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Enhanced focus states for accessibility */
.quiz-option-enhanced:focus {
  outline: none;
  box-shadow: 
    0 0 0 3px rgba(112, 143, 129, 0.3),
    0 8px 25px rgba(112, 143, 129, 0.15);
  border-color: #708f81;
}

/* Quiz celebration animations */
@keyframes celebrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
}

.quiz-celebrate {
  animation: celebrate 0.6s ease-in-out;
}

/* Enhanced typography for quiz */
.quiz-question-text {
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(61, 46, 46, 0.1);
}

.quiz-option-text {
  line-height: 1.5;
  letter-spacing: 0.005em;
}

/* Quiz timer circle animation */
@keyframes timerSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quiz-timer-circle {
  border: 3px solid rgba(112, 143, 129, 0.3);
  border-top: 3px solid #708f81;
  animation: timerSpin 1s linear infinite;
}

/* Enhanced mobile touch targets */
@media (max-width: 640px) {
  .quiz-option-enhanced {
    min-height: 3rem;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .quiz-button-enhanced {
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
  }
}

/* Quiz success/error state styling */
.quiz-state-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
  color: #15803d;
}

.quiz-state-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #dc2626;
}

.quiz-state-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-color: #3b82f6;
  color: #1d4ed8;
}

/* Quiz option hover effects for different states */
.quiz-option-correct:hover {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-color: #22c55e;
  transform: translateY(-2px) scale(1.02);
}

.quiz-option-wrong:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  transform: translateY(-2px) scale(1.02);
}

.quiz-option-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Enhanced Arabic font support */
.font-arabic {
  font-family: 'Amiri', 'Arabic UI Text', 'Geeza Pro', 'Arial Unicode MS', sans-serif;
  direction: rtl;
  text-align: right;
}

/* Quiz confetti animation */
@keyframes confetti {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.quiz-confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #708f81;
  animation: confetti 3s linear infinite;
}

/* Print styles for quiz results */
@media print {
  .quiz-option-enhanced,
  .quiz-card-enhanced {
    box-shadow: none !important;
    background: white !important;
    border: 1px solid #ccc !important;
  }
}

/* Custom Range Input Styling - Force Override */
input[type="range"].quiz-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 12px !important;
  border-radius: 6px !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  border: 2px solid #708f81 !important;
  background-color: transparent !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Complete Range Input Reset */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

/* Force remove any system styles */
input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none !important;
  appearance: none !important;
}

input[type="range"]::-moz-range-track {
  -moz-appearance: none !important;
  appearance: none !important;
}

input[type="range"]::-ms-track {
  appearance: none !important;
  background: transparent !important;
  border-color: transparent !important;
  color: transparent !important;
}

/* Webkit browsers (Chrome, Safari, Edge) - Force Override */
input[type="range"].quiz-slider::-webkit-slider-track {
  width: 100% !important;
  height: 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 2px solid #708f81 !important;
  color: transparent !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

input[type="range"].quiz-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 24px !important;
  width: 24px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #708f81, #5d786f) !important;
  cursor: pointer !important;
  border: 3px solid white !important;
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.4) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  margin-top: -7px !important;
}

input[type="range"].quiz-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 5px 15px rgba(112, 143, 129, 0.5) !important;
  background: linear-gradient(135deg, #5d786f, #708f81) !important;
}

input[type="range"].quiz-slider::-webkit-slider-thumb:active {
  transform: scale(1.1) !important;
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.6) !important;
}

/* Firefox - Force Override */
input[type="range"].quiz-slider::-moz-range-track {
  width: 100% !important;
  height: 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  border: 2px solid #708f81 !important;
  background: transparent !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

input[type="range"].quiz-slider::-moz-range-thumb {
  height: 24px !important;
  width: 24px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #708f81, #5d786f) !important;
  cursor: pointer !important;
  border: 3px solid white !important;
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.4) !important;
  transition: all 0.3s ease !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

input[type="range"].quiz-slider::-moz-range-thumb:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 5px 15px rgba(112, 143, 129, 0.5) !important;
  background: linear-gradient(135deg, #5d786f, #708f81) !important;
}

input[type="range"].quiz-slider::-moz-range-thumb:active {
  transform: scale(1.1) !important;
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.6) !important;
}

/* Edge/IE */
.quiz-slider::-ms-track {
  width: 100%;
  height: 10px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

.quiz-slider::-ms-fill-lower,
.quiz-slider::-ms-fill-upper {
  border-radius: 6px;
}

.quiz-slider::-ms-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #708f81, #5d786f);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.4);
  transition: all 0.3s ease;
}

.quiz-slider::-ms-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 5px 15px rgba(112, 143, 129, 0.5);
}

.quiz-slider::-ms-thumb:active {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(112, 143, 129, 0.6);
}

/* Slider container and labels - Force Full Width */
.quiz-slider-container {
  position: relative !important;
  margin: 1.5rem 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Ensure parent containers don't restrict width */
.quiz-slider-container * {
  box-sizing: border-box !important;
}

.quiz-slider-value {
  font-weight: 700 !important;
  font-size: 1.25rem !important;
  color: #708f81 !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0.5rem 0.75rem !important;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.15), rgba(112, 143, 129, 0.08)) !important;
  border-radius: 8px !important;
  border: 2px solid rgba(112, 143, 129, 0.2) !important;
  min-width: 3rem !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.1) !important;
  flex-shrink: 0 !important;
}

.quiz-slider-labels {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
  margin-top: 1rem !important;
  width: 100% !important;
  position: relative !important;
}

.quiz-slider-labels > span:first-child {
  text-align: left !important;
  flex: 0 0 auto !important;
}

.quiz-slider-labels > span:last-child {
  text-align: right !important;
  flex: 0 0 auto !important;
}

.quiz-slider-labels > .quiz-slider-value {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10 !important;
}

/* Focus states for accessibility */
.quiz-slider:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.3);
}

.quiz-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.3), 0 2px 8px rgba(112, 143, 129, 0.3);
}

.quiz-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.3), 0 2px 8px rgba(112, 143, 129, 0.3);
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .quiz-slider::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
  }
  
  .quiz-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
  }
  
  .quiz-slider::-ms-thumb {
    height: 24px;
    width: 24px;
  }
  
  .quiz-slider-value {
    font-size: 1.1rem;
    padding: 0.75rem;
    min-width: 3.5rem;
  }
} 

/* ==============================
   Create Game UI: Semantic Styles
   ============================== */

/* Layout grid for create game page */
.create-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .create-game-grid {
    grid-template-columns: 1fr 360px;
    align-items: start;
  }
}

.main-col {
  min-width: 0;
}

.summary-col {
  min-width: 0;
}

.sticky-summary {
  position: sticky;
  top: 6rem; /* below navbar */
}

/* Section cards and headers */
.section-card {
  background-color: var(--card-bg);
  border: 1px solid var(--borders-lines);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .section-body {
    padding: 1.75rem;
  }
}

.section-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--borders-lines);
  padding: 0.75rem 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.section-title {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Preset buttons (chips) */
.preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(112, 143, 129, 0.35);
  background: rgba(112, 143, 129, 0.08);
  color: #2f3d37;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.preset-chip:hover {
  border-color: rgba(112, 143, 129, 0.6);
  background: rgba(112, 143, 129, 0.14);
  transform: translateY(-1px);
}

.preset-chip:active {
  transform: translateY(0);
}

.preset-chip.active,
.preset-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.18), rgba(112, 143, 129, 0.28));
  border-color: #708f81;
  color: #1f2a26;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.18);
}

.preset-chip .value {
  display: inline-block;
  min-width: 1.75rem;
  text-align: center;
}

.preset-chip.danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #7a1d1d;
}

.preset-chip.danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.14);
}

/* Active variants used in LiveView */
.preset-chip.active-positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.22));
  border-color: rgba(16, 185, 129, 0.6);
  color: #064e3b;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.18);
}

.preset-chip.active-negative {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.22));
  border-color: rgba(239, 68, 68, 0.6);
  color: #7f1d1d;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.18);
}

/* Simple accordion (collapsible) */
.accordion {
  border: 1px solid var(--borders-lines);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
}

.accordion + .accordion {
  margin-top: 0.75rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  background: rgba(112, 143, 129, 0.06);
}

.accordion-title {
  font-weight: 600;
  color: var(--text-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--borders-lines);
}

.accordion.open .accordion-content {
  max-height: 1000px; /* large enough to reveal */
}

/* Support opening via class on content node */
.accordion-content.open {
  max-height: 1000px;
}

/* Accessible toggle switch */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  transition: all 0.25s ease;
  position: relative;
  background-color: var(--borders-lines);
}

.toggle-input:checked + .toggle-track {
  background: linear-gradient(135deg, var(--main-accent), var(--highlight-hover));
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-input:checked + .toggle-track .toggle-thumb {
  left: 22px;
}

/* Summary card */
.summary-card {
  background-color: var(--card-bg);
  border: 1px solid var(--borders-lines);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-row strong {
  color: var(--text-primary);
}

/* Label + control rows */
.config-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .config-row {
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 1rem;
  }
}

/* RTL tweaks */
[dir="rtl"] .preset-group {
  flex-direction: row-reverse;
}

[dir="rtl"] .quiz-slider-labels > span:first-child {
  text-align: right !important;
}

[dir="rtl"] .quiz-slider-labels > span:last-child {
  text-align: left !important;
}

[dir="rtl"] .quiz-slider-labels > span:last-child {
  text-align: left !important;
}

/* ==============================
   Create Game UI: Utility Replacements
   ============================== */

/* Page min height wrapper */
.page-min {
  min-height: 100vh;
}

/* Narrow container similar to max-w-3xl + centered */
.container-narrow {
  max-width: 48rem; /* ~768px */
  margin-left: auto;
  margin-right: auto;
}

/* Section spacing (replaces p-12 mb-12) */
.section-padding {
  padding: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 640px) {
  .section-padding {
    padding: 1.25rem;
  }
}

/* Hero header */
.hero-center {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--main-accent), var(--highlight-hover));
  box-shadow: 0 12px 28px rgba(112, 143, 129, 0.25);
  margin-bottom: 1.5rem;
}

.hero-icon span {
  color: #ffffff;
  font-size: 2.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 1rem;
}

/* Guest counter chip */
.guest-counter {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--borders-lines);
  background: rgba(112, 143, 129, 0.05);
  color: var(--text-secondary);
}

.guest-counter .count {
  color: #708f81;
  font-weight: 600;
}

/* Form bits */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.form-label.center {
  text-align: center;
}

.readonly-field {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--borders-lines);
  border-radius: 0.75rem;
  background: rgba(112, 143, 129, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
}

.note-text {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Avatar grid and buttons */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .avatar-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--borders-lines);
  background: transparent;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.avatar-btn:hover {
  background: #fbf8f1;
}

.avatar-btn.active {
  background: #708f81;
  color: #ffffff;
  border-color: #708f81;
  box-shadow: 0 8px 20px rgba(112, 143, 129, 0.25);
}

/* Elevated button variant */
.btn-elevated {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Category grid and cards */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.category-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  background-color: var(--card-bg);
}

.category-card:hover {
  transform: scale(1.005);
  box-shadow: 0 8px 20px rgba(112, 143, 129, 0.12);
}

.category-card.selected {
  border-color: #708f81 !important;
  background: rgba(112, 143, 129, 0.05);
  box-shadow: 0 10px 24px rgba(112, 143, 129, 0.18);
  transform: scale(1.01);
}

.category-body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
}

.category-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem; /* text-3xl */
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #708f81;
  background: rgba(112, 143, 129, 0.1);
}

.category-card.selected .category-icon {
  background: #708f81;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(112, 143, 129, 0.25);
}

.category-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.category-card.selected .category-title {
  color: #708f81;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.category-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Soft primary button (ghost-ish) */
.btn-soft-primary {
  padding: 0.5rem 1rem;
  background-color: rgba(112, 143, 129, 0.1);
  color: #708f81;
  border: 1px solid var(--borders-lines);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-soft-primary:hover {
  background-color: rgba(112, 143, 129, 0.15);
}

/* Nav row */
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Empty state box */
.empty-state {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--borders-lines);
  border-radius: 0.75rem;
  background: rgba(112, 143, 129, 0.05);
  color: var(--text-secondary);
}

/* Simple spinner + icon sizes */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; }
.icon-4 { width: 1rem; height: 1rem; }

/* Enhanced FAQ Answer Styles */
.faq-answer-content {
  padding: 1rem 0;
}

.faq-main-answer {
  font-size: 1rem;
  font-weight: 600;
  color: #3e3e3e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #fbf8f1 0%, #fefcf8 100%);
  border-radius: 0.75rem;
  border: 1px solid #e4dccc;
}

@media (max-width: 768px) {
  .faq-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.comparison-section {
  background: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid #e4dccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comparison-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.comparison-title.guest-mode {
  background: linear-gradient(135deg, #a3b7a3 0%, #8fa08f 100%);
  color: white;
}

.comparison-title.registered-mode {
  background: linear-gradient(135deg, #708f81 0%, #5d786f 100%);
  color: white;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-available {
  color: #2d5016;
  font-weight: 500;
}

.feature-limited {
  color: #d97706;
  font-weight: 500;
}

.feature-unavailable {
  color: #dc2626;
  font-weight: 500;
}

.faq-recommendation {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.1) 0%, rgba(163, 183, 163, 0.1) 100%);
  border-left: 4px solid #708f81;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3e3e3e;
  text-align: center;
}

/* FAQ Toggle Functionality */
.faq-item-modern {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.faq-item-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(112, 143, 129, 0.15);
}

.faq-question-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border: 2px solid #e4dccc;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.faq-item-modern:hover .faq-question-modern {
  border-color: #708f81;
  background: linear-gradient(135deg, #fbf8f1 0%, #fefcf8 100%);
}

.faq-item-modern.active .faq-question-modern {
  border-color: #708f81;
  background: linear-gradient(135deg, #708f81 0%, #5d786f 100%);
  color: white;
}

.faq-question-modern h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: left;
}

.faq-toggle {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(112, 143, 129, 0.1);
  border: 2px solid #708f81;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #708f81;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item-modern:hover .faq-toggle {
  background: rgba(112, 143, 129, 0.2);
  transform: scale(1.1);
}

.faq-item-modern.active .faq-toggle {
  background: white;
  color: #708f81;
  transform: rotate(45deg);
}

.faq-answer-modern {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 1.5rem;
  background: #fbf8f1;
  border-radius: 0 0 0.75rem 0.75rem;
}

.faq-item-modern.active .faq-answer-modern {
  max-height: 2000px; /* Large enough to accommodate content */
  padding: 0 1.5rem 1.5rem 1.5rem;
  transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

/* FAQ Enhanced Visual Elements */
.faq-main-answer {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3e3e3e;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Player Count Visual */
.player-count-visual {
  margin: 1.5rem 0;
}

.player-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.scenario-card {
  background: white;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 2px solid #e4dccc;
  text-align: center;
  transition: all 0.3s ease;
}

.scenario-card:hover {
  transform: translateY(-2px);
  border-color: #708f81;
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.15);
}

.scenario-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.scenario-title {
  font-size: 1rem;
  font-weight: 700;
  color: #708f81;
  margin-bottom: 0.5rem;
}

.scenario-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* FAQ Features Section */
.faq-features {
  margin: 1.5rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.05) 0%, rgba(163, 183, 163, 0.05) 100%);
  border-radius: 0.5rem;
  border: 1px solid #e4dccc;
}

.features-title {
  font-size: 1rem;
  font-weight: 700;
  color: #708f81;
  margin-bottom: 1rem;
  text-align: center;
}

.faq-tip {
  margin-top: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(251, 248, 241, 0.8) 0%, rgba(254, 252, 248, 0.8) 100%);
  border-left: 4px solid #a3b7a3;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3e3e3e;
  text-align: center;
}

/* Free vs Premium Comparison */
.free-vs-premium {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .free-vs-premium {
    grid-template-columns: 1fr;
  }
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.free-title {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
}

.future-title {
  background: linear-gradient(135deg, #a3b7a3 0%, #8fa08f 100%);
  color: white;
}

/* Philosophy Section */
.phosophy-section {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.1) 0%, rgba(163, 183, 163, 0.1) 100%);
  border-radius: 0.5rem;
  border: 1px solid #708f81;
}

.philosophy-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #708f81;
  margin-bottom: 1rem;
  text-align: center;
}

.philosophy-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3e3e3e;
  text-align: center;
  font-style: italic;
}

/* Levels Showcase */
.levels-showcase {
  margin: 1.5rem 0;
}

.level-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.level-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid #e4dccc;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--level-color) 0%, var(--level-color-light) 100%);
}

.level-card.beginner {
  --level-color: #16a34a;
  --level-color-light: #22c55e;
}

.level-card.intermediate {
  --level-color: #d97706;
  --level-color-light: #f59e0b;
}

.level-card.advanced {
  --level-color: #dc2626;
  --level-color-light: #ef4444;
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--level-color);
}

.level-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.level-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--level-color);
  margin-bottom: 0.75rem;
  text-align: center;
}

.level-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: center;
}

.level-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.level-features li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: #3e3e3e;
  border-bottom: 1px solid #f0f0f0;
}

.level-features li:last-child {
  border-bottom: none;
}

/* Adaptive System */
.adaptive-system {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fbf8f1 0%, #fefcf8 100%);
  border-radius: 0.75rem;
  border: 1px solid #e4dccc;
}

.system-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #708f81;
  margin-bottom: 1.5rem;
  text-align: center;
}

.system-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e4dccc;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #708f81;
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}
.icon-5 { width: 1.25rem; height: 1.25rem; }
/* Flashcard Flip Animation Styles */

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  min-height: 400px;
  position: relative;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  min-height: 400px;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(112, 143, 129, 0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
}

.flip-card-front:hover, 
.flip-card-back:hover {
  box-shadow: 
    0 25px 50px -12px rgba(112, 143, 129, 0.25),
    0 15px 25px -5px rgba(112, 143, 129, 0.1),
    0 0 0 1px rgba(112, 143, 129, 0.1);
  border-color: rgba(112, 143, 129, 0.1);
  transform: translateY(-2px);
}

.flip-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.1), rgba(112, 143, 129, 0.05));
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(112, 143, 129, 0.1);
}

.flip-indicator:hover {
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.2), rgba(112, 143, 129, 0.1));
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 5px 15px rgba(112, 143, 129, 0.2);
}

/* Card entrance animation */
@keyframes flipCardEnter {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px) rotateY(-15deg);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0) rotateY(0deg);
  }
}

.flip-card-inner.entering {
  animation: flipCardEnter 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

/* Button animations */
.flip-button {
  background: linear-gradient(135deg, #708f81 0%, #a3b7a3 100%);
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.flip-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.flip-button:hover::before {
  left: 100%;
}

.flip-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(112, 143, 129, 0.3),
    0 5px 10px rgba(112, 143, 129, 0.2);
}

.flip-button:active {
  transform: translateY(0);
  box-shadow: 
    0 5px 15px rgba(112, 143, 129, 0.2),
    0 2px 5px rgba(112, 143, 129, 0.1);
}

/* Rating button animations */
.rating-button {
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.rating-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.rating-button:hover::after {
  width: 120%;
  height: 120%;
}

.rating-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.rating-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Arabic text enhancements */
.font-arabic {
  font-family: 'Amiri', 'Scheherazade New', 'Arial Unicode MS', serif;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Progress bar animation */
.progress-bar {
  transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
  background: linear-gradient(90deg, #708f81 0%, #a3b7a3 50%, #708f81 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Explanation box styling */
.explanation-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #708f81;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.explanation-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #708f81 0%, #a3b7a3 100%);
  transition: width 0.3s ease;
}

.explanation-box:hover::before {
  width: 8px;
}

.explanation-box:hover {
  transform: translateX(4px);
  box-shadow: 0 5px 15px rgba(112, 143, 129, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .flip-card-front, 
  .flip-card-back {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .flip-indicator {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .rating-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* Accessibility improvements */
.flip-card:focus-within {
  outline: 2px solid #708f81;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: none;
  }
  
  .flip-card-inner.entering {
    animation: none;
  }
  
  .progress-bar {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .flip-card-front, 
  .flip-card-back {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f9fafb;
    border-color: rgba(112, 143, 129, 0.2);
  }
  
  .explanation-box {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #e5e7eb;
  }
} 
/* ============================================
   UI ENHANCEMENTS - Améliorations Interface
   ============================================
   Composants pour améliorer l'expérience utilisateur
   ============================================ */

/* ============================================
   LOADING STATES - Skeleton & Spinners
   ============================================ */

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, 
    var(--bg-main) 25%, 
    var(--bg-card) 50%, 
    var(--bg-main) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-md);
}

.skeleton-text {
  height: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.skeleton-button {
  height: 48px;
  border-radius: var(--radius-lg);
  width: 120px;
}

.skeleton-header {
  height: 40px;
  width: 200px;
  margin-bottom: var(--spacing-lg);
}

.skeleton-metric {
  height: 100px;
  border-radius: var(--radius-xl);
}

/* Loading Spinner */
.loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--border-color);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.loading-spinner.sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.loading-spinner.md {
  width: 2rem;
  height: 2rem;
  border-width: 3px;
}

.loading-spinner.lg {
  width: 3rem;
  height: 3rem;
  border-width: 4px;
}

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

/* Loading Container */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl);
  gap: var(--spacing-lg);
}

.loading-text {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-main);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: progress-shine 1.5s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  min-width: 320px;
  max-width: 500px;
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  z-index: var(--z-toast);
  animation: toast-slide-in 0.4s ease-out;
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  backdrop-filter: blur(10px);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-success {
  background: var(--gradient-success);
  color: var(--text-white);
  border-left: 4px solid var(--color-success);
}

.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: var(--text-white);
  border-left: 4px solid var(--color-danger);
}

.toast-info {
  background: rgba(59, 130, 246, 0.95);
  color: var(--text-white);
  border-left: 4px solid var(--color-info);
}

.toast-warning {
  background: rgba(245, 158, 11, 0.95);
  color: var(--text-white);
  border-left: 4px solid var(--color-warning);
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.toast-message {
  font-size: var(--font-size-sm);
  opacity: 0.95;
  line-height: var(--line-height-normal);
}

.toast-close {
  background: transparent;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  opacity: 0.7;
  flex-shrink: 0;
}

.toast-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.toast-progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  animation: toast-progress linear;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ============================================
   EMPTY STATES
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  font-size: 5rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.empty-state-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-relaxed);
}

.empty-state-action {
  margin-top: var(--spacing-xl);
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-lg);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.breadcrumb-link:hover {
  color: var(--color-primary);
  background: rgba(112, 143, 129, 0.1);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
  padding: var(--spacing-xs) var(--spacing-sm);
}

.breadcrumb-separator {
  color: var(--text-secondary);
  margin: 0 var(--spacing-xs);
  opacity: 0.5;
}

/* ============================================
   SUCCESS ANIMATIONS
   ============================================ */

.success-toast {
  background: var(--gradient-success);
  color: var(--text-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  animation: success-bounce 0.6s ease-out;
}

@keyframes success-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.success-checkmark {
  width: 48px;
  height: 48px;
  background: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  animation: checkmark-pop 0.4s ease-out;
  margin: 0 auto var(--spacing-md);
}

@keyframes checkmark-pop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.action-confirmed {
  position: relative;
}

.action-confirmed::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--color-success);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  animation: checkmark-appear 0.3s ease-out;
  z-index: 10;
}

@keyframes checkmark-appear {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ============================================
   ERROR STATES
   ============================================ */

.error-toast {
  background: rgba(239, 68, 68, 0.95);
  color: var(--text-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  animation: error-shake 0.5s ease-out;
  max-width: 500px;
  margin: var(--spacing-md) auto;
}

@keyframes error-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.error-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.error-content h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.error-content p {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-md);
  opacity: 0.95;
}

.error-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-transition-enter {
  animation: fadeInUp 0.4s ease-out;
}

.page-transition-exit {
  animation: fadeOutDown 0.3s ease-in;
}

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

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

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */

.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.touch-target-large {
  min-width: 56px;
  min-height: 56px;
}

@media (max-width: 768px) {
  .btn {
    min-height: 48px;
  }
  
  .icon-button {
    width: 48px;
    height: 48px;
  }
  
  .touch-target {
    min-width: 48px;
    min-height: 48px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--text-white);
  padding: var(--spacing-md) var(--spacing-lg);
  text-decoration: none;
  z-index: 100;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
  top: var(--spacing-md);
}

*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .toast {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    left: var(--spacing-md);
    min-width: auto;
    max-width: 100%;
  }
  
  .empty-state {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .empty-state-icon {
    font-size: 4rem;
  }
  
  .breadcrumb {
    padding: var(--spacing-sm) 0;
  }
  
  .breadcrumb-list {
    font-size: var(--font-size-xs);
  }
}

@media (max-width: 480px) {
  .toast {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: var(--spacing-md);
  }
  
  .empty-state-icon {
    font-size: 3rem;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-actions .btn {
    width: 100%;
  }
}

/* ============================================
   QALIMAH HOMEPAGE CSS - MODERN & BEAUTIFUL DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   Design moderne avec animations fluides et interface élégante
   ============================================ */

/* ============================================
   HERO SECTION - MODERN & ELEGANT
   ============================================ */
.hero-modern {
  position: relative;
  min-height: 90vh;
  background: var(--gradient-primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--spacing-xl) var(--spacing-md);
  animation: fadeIn 0.8s ease-out;
}

/* Animated background pattern */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -2%) scale(1.05); }
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(112, 143, 129, 0.1) 0%, 
    rgba(93, 120, 111, 0.2) 100%);
}

/* Compact Hero Version */
.hero-modern.compact {
  min-height: 65vh;
  padding: var(--spacing-lg) var(--spacing-md);
}

.hero-modern.compact .hero-content-wrapper {
  padding: 0 var(--spacing-lg);
}

.hero-modern.compact .hero-toolbar {
  min-height: 50vh;
  gap: var(--spacing-xl);
  justify-content: center;
}

.hero-modern.compact .hero-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-md);
}

.hero-modern.compact .hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: var(--spacing-lg);
}

.hero-modern.compact .cta-buttons-modern {
  gap: var(--spacing-md);
}

.hero-modern.compact .primary-actions {
  gap: var(--spacing-md);
}

.hero-modern.compact .btn {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
}

.hero-modern.compact .quick-join-section {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.hero-modern.compact .quick-join-label {
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.hero-modern.compact .pin-input {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

.hero-modern.compact .btn-submit {
  padding: var(--spacing-md) var(--spacing-lg);
}

/* Hero Content */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3xl);
  width: 100%;
  height: 100%;
  min-height: 60vh;
  text-align: center;
}

.hero-left {
  width: 100%;
  max-width: 800px;
  text-align: center;
  order: 1;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-right {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  order: 2;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  color: var(--text-white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin: 0;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

/* Quick Join Section - Improved */
.quick-join-section {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
}

.quick-join-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.quick-join-label {
  display: block;
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* Pin Form */
.pin-form-modern {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-md);
  width: 100%;
}

.pin-form-modern.compact {
  max-width: 100%;
  margin: 0 auto;
}

.pin-input-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-md);
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  transition: var(--transition-base);
}

.pin-input-container:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
}

.pin-input-container:focus-within {
  border-color: var(--color-primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
}

.pin-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: var(--font-size-xl);
  text-align: center;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.15em;
  font-family: 'Courier New', monospace;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  outline: none;
}

.pin-input:focus {
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.2);
}

.pin-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
}

/* ============================================
   BUTTONS - MODERN & ELEGANT
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  font-size: var(--font-size-lg);
  min-height: 52px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--bg-white);
  color: var(--color-primary);
  border: 2px solid var(--bg-white);
  box-shadow: var(--shadow-lg);
  font-weight: var(--font-weight-bold);
}

.btn-primary:hover {
  background: #f8f9fa;
  color: var(--color-primary-dark);
  border-color: #f8f9fa;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  font-weight: var(--font-weight-semibold);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--text-white);
}

.btn-submit {
  background: var(--color-primary-dark);
  color: var(--text-white);
  border: 2px solid var(--color-primary-dark);
  padding: var(--spacing-md) var(--spacing-xl);
  min-width: 140px;
  font-weight: var(--font-weight-bold);
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: var(--transition-base);
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-text {
  font-weight: inherit;
}

/* CTA Buttons Layout */
.cta-buttons-modern {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.primary-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* ============================================
   FEATURES SECTION - ENHANCED
   ============================================ */
.features-showcase {
  padding: var(--spacing-3xl) var(--spacing-md);
  background: var(--gradient-secondary);
  position: relative;
  overflow: hidden;
}

.features-showcase::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(112, 143, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.section-header-modern {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(112, 143, 129, 0.15);
  border: 1px solid rgba(112, 143, 129, 0.3);
  border-radius: 50px;
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  transition: var(--transition-base);
}

.section-badge:hover {
  background: rgba(112, 143, 129, 0.2);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 1.3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.badge-text {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.feature-card-modern {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.feature-card-modern:hover::before {
  transform: scaleX(1);
}

.feature-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.feature-visual {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.feature-icon-large {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--text-white);
  box-shadow: 0 10px 30px rgba(112, 143, 129, 0.4);
  transition: var(--transition-cubic);
  position: relative;
  z-index: 1;
}

.feature-card-modern:hover .feature-icon-large {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 15px 40px rgba(112, 143, 129, 0.5);
}

.feature-decoration {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotate 20s linear infinite;
}

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

.feature-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.feature-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-lg);
}

.feature-highlights {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(112, 143, 129, 0.12);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-base);
}

.highlight-item:hover {
  background: rgba(112, 143, 129, 0.2);
  transform: translateY(-2px);
}

/* ============================================
   TESTIMONIALS SECTION - ENHANCED
   ============================================ */
.testimonials-section {
  padding: var(--spacing-3xl) var(--spacing-md);
  background: var(--bg-white);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition-cubic);
  position: relative;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.testimonial-card:hover::after {
  transform: scaleX(1);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.testimonial-content {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.quote-icon {
  font-size: 4.5rem;
  color: var(--color-primary);
  opacity: 0.15;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-primary);
  font-style: italic;
  margin-left: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-base);
}

.author-role {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

/* ============================================
   HOW IT WORKS SECTION - ENHANCED
   ============================================ */
.how-it-works {
  padding: var(--spacing-3xl) var(--spacing-md);
  background: var(--gradient-secondary);
  position: relative;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--spacing-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 0 var(--spacing-md);
}

.step-item {
  flex: 1;
  min-width: 280px;
  text-align: center;
  position: relative;
  animation: fadeInUp 0.6s ease-out both;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }

.step-number {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  margin: 0 auto var(--spacing-lg);
  box-shadow: 0 8px 25px rgba(112, 143, 129, 0.4);
  transition: var(--transition-cubic);
  position: relative;
  z-index: 2;
}

.step-item:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(112, 143, 129, 0.5);
}

.step-content {
  background: var(--bg-white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  transition: var(--transition-cubic);
}

.step-item:hover .step-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.step-description {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

.step-icon {
  font-size: 2.5rem;
  margin-top: var(--spacing-md);
  opacity: 0.7;
}

.step-connector {
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  position: relative;
  margin: var(--spacing-xl) auto;
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
  }
}

.step-connector::after {
  content: '→';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

/* ============================================
   FAQ SECTION - ENHANCED
   ============================================ */
.faq-modern {
  padding: var(--spacing-3xl) var(--spacing-md);
  background: var(--bg-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-3xl);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--spacing-md);
}

.faq-item-modern {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-cubic);
  cursor: pointer;
}

.faq-item-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.faq-item-modern.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.faq-question-modern {
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  transition: var(--transition-base);
}

.faq-question-modern:hover {
  background: rgba(112, 143, 129, 0.05);
}

.faq-question-modern h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  flex: 1;
}

.faq-toggle {
  width: 36px;
  height: 36px;
  background: rgba(112, 143, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-primary);
  transition: var(--transition-cubic);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}

.faq-item-modern.active .faq-toggle {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: var(--text-white);
}

.faq-answer-modern {
  padding: 0 var(--spacing-xl) var(--spacing-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  display: none;
  font-size: var(--font-size-base);
}

.faq-item-modern.active .faq-answer-modern {
  display: block;
  animation: fadeInDown 0.4s ease-out;
}

/* ============================================
   FOOTER SECTION - ENHANCED
   ============================================ */
.footer-modern {
  background: var(--text-primary);
  color: var(--text-white);
  padding: var(--spacing-3xl) var(--spacing-md) var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, #2a2a2a 100%);
}

.footer-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.footer-content-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  position: relative;
  z-index: 2;
}

.footer-brand {
  max-width: 350px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.logo-icon {
  font-size: 2.5rem;
}

.logo-text {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
}

.brand-description {
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
  font-size: var(--font-size-base);
}

.social-links-modern {
  display: flex;
  gap: var(--spacing-md);
}

.social-link-modern {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-cubic);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link-modern:hover {
  background: var(--color-primary);
  transform: translateY(-4px) scale(1.1);
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(112, 143, 129, 0.4);
}

.social-icon {
  font-size: 1.3rem;
}

.footer-section h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  color: var(--text-white);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-md);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-base);
  font-size: var(--font-size-base);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: var(--spacing-sm);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--spacing-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.copyright,
.made-with {
  opacity: 0.8;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   ANIMATIONS - SMOOTH & MODERN
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .hero-content-wrapper {
    max-width: 1400px;
  }
  
  .features-grid-modern {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop / Tablette Large (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-modern {
    min-height: 85vh;
    padding: var(--spacing-lg);
  }
  
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .primary-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .btn {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
  }
  
  .quick-join-section {
    padding: var(--spacing-xl);
    max-width: 500px;
  }
  
  .features-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .step-connector {
    display: none;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .hero-modern {
    min-height: 85vh;
    padding: var(--spacing-md);
  }
  
  .hero-toolbar {
    gap: var(--spacing-xl);
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .cta-buttons-modern {
    gap: var(--spacing-md);
  }
  
  .primary-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
  }
  
  .quick-join-section {
    padding: var(--spacing-lg);
    max-width: 100%;
  }
  
  .pin-form-modern {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .pin-input-container {
    width: 100%;
  }
  
  .btn-submit {
    width: 100%;
  }
  
  .features-grid-modern,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    flex-direction: column;
  }
  
  .step-connector {
    display: none;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .hero-modern {
    min-height: 80vh;
    padding: var(--spacing-sm);
  }
  
  .hero-content-wrapper {
    padding: 0 var(--spacing-sm);
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }
  
  .quick-join-section {
    padding: var(--spacing-md);
    margin: 0;
  }
  
  .quick-join-label {
    font-size: var(--font-size-base);
  }
  
  .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
  
  .feature-card-modern,
  .testimonial-card {
    padding: var(--spacing-lg);
  }
  
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* ============================================
   ACCESSIBILITY & UTILITIES
   ============================================ */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for better accessibility */
.btn:focus-visible,
.pin-input:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(112, 143, 129, 0.2);
}

/* Better text visibility */
.text-white {
  color: var(--text-white) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* FAQ JavaScript functionality */
.faq-item-modern.active .faq-answer-modern {
  display: block !important;
}

/* Lobby card compatibility */
.lobby-card {
  /* Styles pour compatibilité avec lobby.css */
}

.lobby-input {
  /* Styles pour compatibilité */
}

.lobby-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-primary-dark);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: var(--font-size-base);
}

.lobby-button:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* ============================================
   LOBBY PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.lobby-container {
  background-color: var(--bg-main);
  min-height: 100vh;
  font-family: var(--font-family);
  padding: var(--spacing-xl) var(--spacing-md);
}

.lobby-hero {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInDown 0.6s ease-out;
}

.lobby-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  font-size: 2.5rem;
  color: var(--text-white);
  transition: var(--transition-cubic);
}

.lobby-icon:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-hover);
}

.lobby-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.lobby-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   GAME CARDS - ENHANCED
   ============================================ */
.game-card {
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  transition: var(--transition-cubic);
  max-width: 100%;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Host Game Cards */
.game-card--host {
  background: var(--gradient-primary);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.game-card--host:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(112, 143, 129, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Regular Game Cards */
.game-card--regular {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.game-card--regular:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}

/* Game Card Header */
.game-card__header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.game-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.75rem;
  transition: var(--transition-cubic);
}

.game-card--host .game-card__icon {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-card--regular .game-card__icon {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.game-card:hover .game-card__icon {
  transform: scale(1.1) rotate(5deg);
}

.game-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
}

.game-card__pin {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  transition: var(--transition-base);
}

.game-card--host .game-card__pin {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  color: var(--text-white);
}

.game-card--regular .game-card__pin {
  background: rgba(112, 143, 129, 0.12);
  border: 1px solid rgba(112, 143, 129, 0.25);
  color: var(--color-primary);
}

.game-card__creator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.game-card--host .game-card__creator {
  color: rgba(255, 255, 255, 0.85);
}

/* Game Card Stats */
.game-card__stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.game-card--regular .game-card__stats {
  border-color: var(--border-color);
}

.game-card__stat {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.game-card__stat-label {
  font-size: var(--font-size-xs);
  opacity: 0.85;
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.game-card__stat-value {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.game-card__stat-value svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.game-card__status {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}

.game-card--host .game-card__status {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
}

.game-card--regular .game-card__status {
  border: 1px solid currentColor;
}

.game-card__status--waiting {
  background: rgba(34, 197, 94, 0.12);
  color: var(--color-success);
  border-color: var(--color-success-light);
}

.game-card__status--countdown {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border-color: #f97316;
}

.game-card__status--active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-info);
  border-color: #3b82f6;
}

.game-card__status--finished {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-secondary);
  border-color: #9ca3af;
}

/* Game Card Actions */
.game-card__actions {
  display: flex;
  gap: var(--spacing-md);
}

.game-card__join-btn {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  border: none;
  cursor: pointer;
}

.game-card--host .game-card__join-btn {
  background: var(--bg-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.game-card--host .game-card__join-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.game-card--regular .game-card__join-btn {
  background: var(--color-primary);
  color: var(--text-white);
}

.game-card--regular .game-card__join-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.game-card__join-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.game-card__delete-btn {
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card--host .game-card__delete-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.game-card--regular .game-card__delete-btn {
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.game-card--regular .game-card__delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--color-danger);
  color: var(--color-danger);
  transform: translateY(-2px);
}

/* ============================================
   LOBBY CARDS & INPUTS
   ============================================ */
.lobby-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.lobby-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.lobby-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: var(--transition-base);
  font-family: var(--font-family);
}

.lobby-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background-color: var(--bg-white);
}

.lobby-button {
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--gradient-primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-md);
}

.lobby-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.lobby-button:disabled {
  background: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.lobby-select {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: var(--transition-base);
  font-family: var(--font-family);
}

.lobby-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background-color: var(--bg-white);
}

/* Filter Card */
.filter-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.filter-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .lobby-container {
    max-width: 1400px;
  }
  
  .game-card {
    max-width: 400px;
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .lobby-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .lobby-title {
    font-size: clamp(2rem, 4vw, 2.25rem);
  }
  
  .lobby-card {
    padding: var(--spacing-xl);
  }
  
  .game-card {
    padding: var(--spacing-xl);
  }
  
  .game-card__actions {
    flex-direction: row;
    gap: var(--spacing-sm);
  }
  
  .game-card__join-btn {
    flex: 1;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .lobby-container {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .lobby-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
  
  .lobby-card {
    padding: var(--spacing-lg);
  }
  
  .game-card {
    padding: var(--spacing-lg);
  }
  
  .game-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .game-card__title {
    font-size: var(--font-size-lg);
  }
  
  .game-card__pin {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }
  
  .game-card__join-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-xs);
  }
  
  .game-card__delete-btn {
    padding: var(--spacing-sm);
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .lobby-container {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .game-card__actions {
    flex-direction: column;
  }
  
  .game-card__join-btn,
  .game-card__delete-btn {
    width: 100%;
  }
  
  .lobby-hero {
    margin-bottom: var(--spacing-xl);
  }
  
  .lobby-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .lobby-title {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .lobby-card {
    padding: var(--spacing-md);
  }
  
  .game-card {
    padding: var(--spacing-md);
  }
}
/* ============================================
   JOIN PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.join-page {
  background: var(--bg-main);
  min-height: 100vh;
  padding: var(--spacing-3xl) var(--spacing-md);
  font-family: var(--font-family);
}

.join-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-3xl);
  animation: fadeInUp 0.6s ease-out;
}

.join-header-title {
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
  letter-spacing: -0.02em;
}

.join-header-subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  line-height: var(--line-height-relaxed);
}

.join-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--color-highlight);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.join-pin-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.join-pin-label {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

.join-pin-value {
  font-family: 'Courier New', monospace;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: 0.1em;
}

.join-card {
  background: var(--bg-card);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 2px solid var(--border-color);
  padding: var(--spacing-2xl);
  transition: var(--transition-base);
}

.join-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.join-section-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.join-name-readonly {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--color-highlight);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--font-weight-semibold);
}

.join-name-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: var(--transition-base);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

.join-name-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background: var(--bg-white);
}

.join-helper-text {
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

.join-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.join-avatar-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.join-avatar-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(112, 143, 129, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.join-avatar-btn:hover::before {
  width: 100px;
  height: 100px;
}

.join-avatar-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.join-avatar-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--text-white);
  box-shadow: 0 8px 20px rgba(112, 143, 129, 0.4);
  transform: scale(1.1);
}

.join-submit-wrapper {
  margin-top: var(--spacing-xl);
}

.join-submit-btn {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

.join-submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.join-submit-btn:hover::before {
  width: 300px;
  height: 300px;
}

.join-submit-btn.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-hover);
}

.join-submit-btn.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(112, 143, 129, 0.4);
}

.join-submit-btn.disabled {
  background: var(--border-color);
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

.join-submit-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.join-error-box {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(239, 68, 68, 0.2);
  font-size: var(--font-size-sm);
  color: var(--color-danger);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

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

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .join-container {
    max-width: 800px;
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .join-container {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .join-card {
    padding: var(--spacing-2xl);
  }
  
  .join-avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    gap: var(--spacing-sm);
  }
  
  .join-avatar-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .join-container {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-2xl);
  }

  .join-card {
    padding: var(--spacing-lg);
  }

  .join-avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: var(--spacing-xs);
  }

  .join-avatar-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  .join-header-title {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .join-page {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .join-container {
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-xl);
  }
  
  .join-card {
    padding: var(--spacing-md);
  }
  
  .join-avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: var(--spacing-xs);
  }

  .join-avatar-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .join-header-title {
    font-size: clamp(1.25rem, 6vw, 1.5rem);
  }
  
  .join-pin-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
  }
}
/* ============================================
   CREATE GAME PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

/* Page Layout */
.create-game-page {
  min-height: 100vh;
  background: var(--gradient-secondary);
  position: relative;
  overflow-x: hidden;
  padding: var(--spacing-3xl) var(--spacing-md);
}

.create-game-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 143, 129, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -30px); }
}

.create-game-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

/* Header Section */
.create-game-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInDown 0.8s ease-out;
}

.create-game-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.create-game-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
}

.guest-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(112, 143, 129, 0.12);
  border: 2px solid rgba(112, 143, 129, 0.25);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
}

.guest-indicator:hover {
  background: rgba(112, 143, 129, 0.18);
  transform: translateY(-2px);
}

.guest-indicator.warning {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: var(--color-danger);
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--spacing-3xl);
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  transition: var(--transition-cubic);
  background: var(--border-color);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.step.active .step-number {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  transform: scale(1.1);
}

.step.completed .step-number {
  background: var(--gradient-success);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.step-line {
  width: 60px;
  height: 3px;
  background: var(--border-color);
  transition: var(--transition-base);
  border-radius: 2px;
}

.step.completed + .step-line {
  background: var(--gradient-success);
}

.step-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  transition: var(--transition-base);
}

.step.active .step-label {
  color: var(--color-primary);
}

.step.completed .step-label {
  color: var(--color-success);
}

/* Main Card */
.create-game-card {
  background: var(--bg-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: var(--spacing-3xl);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out;
  transition: var(--transition-cubic);
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.create-game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.create-game-card:hover::before {
  transform: scaleX(1);
}

.create-game-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Step Sections */
.step-section {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.step-section.active {
  display: block;
}

.step-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  text-align: center;
  letter-spacing: -0.02em;
}

.step-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--line-height-relaxed);
}

/* Form Elements */
.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: var(--transition-cubic);
  background: var(--bg-white);
  color: var(--text-primary);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
}

.readonly-input {
  background: var(--bg-main);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Avatar Grid */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: var(--spacing-md);
  max-width: 600px;
  margin: 0 auto;
}

.avatar-btn {
  width: 64px;
  height: 64px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(112, 143, 129, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.avatar-btn:hover::before {
  width: 100px;
  height: 100px;
}

.avatar-btn:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.avatar-btn.active {
  border-color: var(--color-primary);
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.category-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  cursor: pointer;
  transition: var(--transition-cubic);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-card.selected {
  border-color: var(--color-primary);
  background: var(--gradient-primary);
  color: var(--text-white);
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.category-card.selected::before {
  transform: scaleX(1);
  background: rgba(255, 255, 255, 0.3);
}

.category-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}

.category-info h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
}

.category-info p {
  font-size: var(--font-size-sm);
  opacity: 0.85;
  line-height: var(--line-height-normal);
}

/* Configuration Tabs */
.config-tabs {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-3xl);
  background: var(--bg-main);
  padding: var(--spacing-sm);
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-color);
}

.config-tab {
  flex: 1;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-cubic);
}

.config-tab:hover {
  background: rgba(112, 143, 129, 0.1);
  color: var(--color-primary);
}

.config-tab.active {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

/* Configuration Grid Layout */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.config-section {
  margin-bottom: var(--spacing-lg);
}

.config-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

/* Configuration Options */
.config-option {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
}

.config-option:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.config-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.config-option-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.config-option-value {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  min-width: 60px;
  text-align: center;
  transition: var(--transition-base);
}

.config-option-value.positive {
  color: var(--color-success);
  border-color: var(--color-success);
  background: rgba(22, 163, 74, 0.1);
}

.config-option-value.negative {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: rgba(220, 38, 38, 0.1);
}

/* Sliders */
.slider-container {
  margin-bottom: var(--spacing-xl);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.slider-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

.slider-value {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-size: var(--font-size-lg);
  transition: var(--transition-base);
}

.slider {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-bottom: var(--spacing-md);
  transition: var(--transition-base);
}

.slider:hover {
  background: var(--color-highlight);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-cubic);
  border: 3px solid var(--bg-white);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-hover);
}

.slider::-moz-range-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-cubic);
  border: 3px solid var(--bg-white);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-hover);
}

/* Presets */
.presets {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.preset-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-cubic);
  min-width: 50px;
  text-align: center;
}

.preset-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.preset-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-white);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.preset-btn.active.positive {
  background: var(--gradient-success);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.preset-btn.active.negative {
  background: var(--gradient-danger);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Toggle Switches */
.toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
}

.toggle-container:hover {
  border-color: var(--color-primary);
}

.toggle-info {
  flex: 1;
}

.toggle-label {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--font-size-sm);
}

.toggle-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-cubic);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--gradient-primary);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: var(--bg-white);
  border-radius: 50%;
  transition: var(--transition-cubic);
  box-shadow: var(--shadow-md);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

/* Action Buttons */
.button-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-3xl);
  flex-wrap: wrap;
}

.btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-cubic);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: rgba(112, 143, 129, 0.1);
  color: var(--color-primary);
  border: 2px solid rgba(112, 143, 129, 0.25);
}

.btn-secondary:hover {
  background: rgba(112, 143, 129, 0.2);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .create-game-container {
    max-width: 1400px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .config-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .create-game-container {
    padding: var(--spacing-lg);
  }
  
  .create-game-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
  
  .create-game-card {
    padding: var(--spacing-2xl);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .config-grid {
    grid-template-columns: 1fr;
  }
  
  .avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
  
  .avatar-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .button-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .btn {
    flex: 1;
    min-width: 150px;
  }
  
  .config-tabs {
    flex-direction: row;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .create-game-container {
    padding: var(--spacing-md);
  }
  
  .create-game-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
  }
  
  .create-game-card {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .config-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  }
  
  .avatar-btn {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .config-tabs {
    flex-direction: column;
  }
  
  .step-label {
    font-size: var(--font-size-xs);
  }
  
  .progress-steps {
    gap: var(--spacing-sm);
  }
  
  .step-line {
    width: 40px;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .create-game-container {
    padding: var(--spacing-sm);
  }
  
  .create-game-title {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .step-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
  }
  
  .step-description {
    font-size: var(--font-size-base);
  }
  
  .category-card {
    padding: var(--spacing-lg);
    flex-direction: column;
    text-align: center;
  }
  
  .category-icon {
    font-size: 2.5rem;
  }
  
  .create-game-card {
    padding: var(--spacing-lg);
  }
  
  .avatar-grid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  }
  
  .avatar-btn {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-sm);
  }
  
  .step-line {
    width: 30px;
  }
}
/* ============================================
   PRACTICE PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.practice-page {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-3xl) var(--spacing-md);
}

.container-custom {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-3xl) 0;
}

/* Practice Hero */
.practice-hero {
  text-align: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
  animation: fadeInDown 0.6s ease-out;
}

.practice-icon {
  width: 90px;
  height: 90px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg) auto;
  font-size: 2.8rem;
  box-shadow: var(--shadow-hover);
  transition: var(--transition-cubic);
  color: var(--text-white);
}

.practice-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.practice-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.practice-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
  padding: 0 var(--spacing-md);
}

.category-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-cubic);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-base);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.category-icon {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  display: block;
  transition: var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.category-description {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
}

.category-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  transition: var(--transition-base);
}

.category-card:hover .category-action {
  transform: translateX(4px);
}

/* Features Section */
.features-section {
  padding: var(--spacing-3xl) var(--spacing-md);
  text-align: center;
  background: var(--gradient-secondary);
  border-radius: var(--radius-2xl);
  margin: var(--spacing-3xl) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.feature-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  transition: var(--transition-cubic);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.feature-icon {
  margin-bottom: var(--spacing-md);
  font-size: 2.5rem;
  transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-3xl) 0;
  padding: 0 var(--spacing-md);
}

.stat-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition-cubic);
  box-shadow: var(--shadow-card);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Buttons */
.btn-custom {
  display: inline-block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary-custom:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Action Box */
.action-box-custom {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-3xl);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.action-box-custom:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Form Inputs */
.form-input-custom {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: var(--transition-cubic);
  font-family: var(--font-family);
}

.form-input-custom:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background-color: var(--bg-white);
}

.form-input-password {
  padding-right: 50px;
}

/* Divider */
.divider-custom {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  margin: var(--spacing-xl) 0;
  font-size: var(--font-size-sm);
}

.divider-custom::before,
.divider-custom::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--border-color);
}

.divider-custom::before {
  margin-right: var(--spacing-md);
}

.divider-custom::after {
  margin-left: var(--spacing-md);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .container-custom {
    max-width: 1200px;
  }
  
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container-custom {
    width: 95%;
    padding: var(--spacing-2xl) 0;
  }
  
  .practice-hero {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .container-custom {
    width: 95%;
    padding: var(--spacing-xl) 0;
  }
  
  .practice-hero {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .category-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .practice-page {
    padding: var(--spacing-xl) var(--spacing-sm);
  }
  
  .container-custom {
    width: 100%;
    padding: var(--spacing-lg) 0;
  }
  
  .practice-hero {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .practice-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }
  
  .practice-title {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }
  
  .category-card {
    padding: var(--spacing-lg);
  }
  
  .action-box-custom {
    padding: var(--spacing-xl);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   REGISTER PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.register-page {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-3xl) var(--spacing-md);
}

/* Buttons */
.btn-custom {
  display: inline-block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary-custom:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Action Box */
.action-box-custom {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  max-width: 480px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  animation: fadeInUp 0.6s ease-out;
}

.action-box-custom:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Form Inputs */
.form-input-custom {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: var(--transition-cubic);
  font-family: var(--font-family);
}

.form-input-custom:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background-color: var(--bg-white);
}

.form-input-password {
  padding-right: 50px;
}

/* Divider */
.divider-custom {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  margin: var(--spacing-xl) 0;
  font-size: var(--font-size-sm);
}

.divider-custom::before,
.divider-custom::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--border-color);
}

.divider-custom::before {
  margin-right: var(--spacing-md);
}

.divider-custom::after {
  margin-left: var(--spacing-md);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .action-box-custom {
    max-width: 520px;
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .register-page {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .action-box-custom {
    padding: var(--spacing-2xl);
    max-width: 500px;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .register-page {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .action-box-custom {
    padding: var(--spacing-xl);
    max-width: 100%;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .register-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .action-box-custom {
    padding: var(--spacing-lg);
  }
}

/* ============================================
   LOGIN PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.login-page {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-3xl) var(--spacing-md);
}

/* Buttons */
.btn-custom {
  display: inline-block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  position: relative;
  overflow: hidden;
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-custom:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary-custom {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary-custom:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Action Box */
.action-box-custom {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  animation: fadeInUp 0.6s ease-out;
}

.action-box-custom:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Form Inputs */
.form-input-custom {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background-color: var(--bg-main);
  color: var(--text-primary);
  transition: var(--transition-cubic);
  font-family: var(--font-family);
}

.form-input-custom:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
  background-color: var(--bg-white);
}

.form-input-password {
  padding-right: 50px;
}

/* Divider */
.divider-custom {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-secondary);
  margin: var(--spacing-xl) 0;
  font-size: var(--font-size-sm);
}

.divider-custom::before,
.divider-custom::after {
  content: '';
  flex: 1;
  border-bottom: 2px solid var(--border-color);
}

.divider-custom::before {
  margin-right: var(--spacing-md);
}

.divider-custom::after {
  margin-left: var(--spacing-md);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .action-box-custom {
    max-width: 460px;
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .login-page {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .action-box-custom {
    padding: var(--spacing-2xl);
    max-width: 450px;
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .login-page {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .action-box-custom {
    padding: var(--spacing-xl);
    max-width: 100%;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .login-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .action-box-custom {
    padding: var(--spacing-lg);
  }
}

/* ============================================
   FLASHCARDS PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.flashcards-page {
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-3xl) var(--spacing-md);
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--spacing-3xl) 0;
}

/* Headings */
h1, h2, h3, h4 {
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--text-primary);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-cubic);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-cubic);
  font-size: var(--font-size-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Forms */
.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: var(--transition-cubic);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
}

/* Grids */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

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

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
  
  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .flashcards-page {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .container {
    width: 95%;
    padding: var(--spacing-2xl) 0;
  }
  
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .flashcards-page {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .container {
    width: 95%;
    padding: var(--spacing-xl) 0;
  }
  
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .flashcards-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .container {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-sm);
  }
}

/* ============================================
   GAME PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.game-page {
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Game Container */
.game-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* Game Header */
.game-header {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

/* Question Card */
.question-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.question-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

/* Answer Options */
.answer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.answer-option {
  padding: var(--spacing-lg) var(--spacing-xl);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-cubic);
  text-align: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

.answer-option:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--bg-white);
}

.answer-option.selected {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.answer-option.correct {
  background: var(--gradient-success);
  color: var(--text-white);
  border-color: var(--color-success);
}

.answer-option.incorrect {
  background: var(--gradient-danger);
  color: var(--text-white);
  border-color: var(--color-danger);
}

/* Timer */
.timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--gradient-primary);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
}

.timer.warning {
  background: var(--gradient-danger);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Leaderboard */
.leaderboard {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-card);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.leaderboard-item:hover {
  background: var(--bg-main);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

/* Waiting Room */
.waiting-room {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.player-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.player-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
}

.player-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .game-container {
    max-width: 1400px;
  }
  
  .answer-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .player-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .game-container {
    padding: var(--spacing-lg);
  }
  
  .question-card {
    padding: var(--spacing-2xl);
  }
  
  .answer-options {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .player-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .game-container {
    padding: var(--spacing-md);
  }
  
  .question-card {
    padding: var(--spacing-xl);
  }
  
  .answer-options {
    grid-template-columns: 1fr;
  }
  
  .player-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .game-page {
    padding: var(--spacing-sm);
  }
  
  .game-container {
    padding: var(--spacing-sm);
  }
  
  .question-card {
    padding: var(--spacing-lg);
  }
  
  .answer-option {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
  
  .timer {
    font-size: var(--font-size-lg);
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ============================================
   PROFILE PAGE CSS - MODERN DESIGN
   ============================================
   Utilise les variables CSS centralisées de variables.css
   ============================================ */

.profile-page {
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  padding: var(--spacing-3xl) var(--spacing-md);
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.profile-header {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  text-align: center;
  color: var(--text-white);
  margin-bottom: var(--spacing-3xl);
  box-shadow: var(--shadow-card);
  animation: fadeInDown 0.6s ease-out;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  margin: 0 auto var(--spacing-lg);
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.profile-name {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--spacing-sm);
}

.profile-email {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

.profile-section {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.profile-section:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.form-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--bg-white);
  color: var(--text-primary);
  transition: var(--transition-cubic);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-card {
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

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

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .profile-container {
    max-width: 1100px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .profile-container {
    padding: var(--spacing-lg);
  }
  
  .profile-header {
    padding: var(--spacing-2xl);
  }
  
  .profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 3.2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .profile-container {
    padding: var(--spacing-md);
  }
  
  .profile-header {
    padding: var(--spacing-xl);
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .profile-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .profile-container {
    padding: var(--spacing-sm);
  }
  
  .profile-header {
    padding: var(--spacing-lg);
  }
  
  .profile-avatar {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  .profile-name {
    font-size: clamp(1.5rem, 5vw, 1.75rem);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   COMMON STYLES - SHARED ACROSS PAGES
   ============================================
   Utilise les variables CSS centralisées de variables.css
   Styles communs pour les pages qui n'ont pas de CSS dédié
   ============================================ */

/* Pages communes (about, contact, privacy, etc.) */
.common-page {
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: var(--line-height-relaxed);
  padding: var(--spacing-3xl) var(--spacing-md);
}

.common-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

.common-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  animation: fadeInDown 0.6s ease-out;
}

.common-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

.common-subtitle {
  font-size: var(--font-size-xl);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

.common-content {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-card);
  line-height: var(--line-height-relaxed);
}

.common-content h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.common-content h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
}

.common-content p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: var(--font-size-base);
}

.common-content ul,
.common-content ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
  color: var(--text-secondary);
}

.common-content li {
  margin-bottom: var(--spacing-sm);
}

.common-content a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-base);
  border-bottom: 2px solid transparent;
}

.common-content a:hover {
  border-bottom-color: var(--color-primary);
}

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

/* ============================================
   RESPONSIVE DESIGN - COMPLETE
   Mobile, Tablette, Desktop
   ============================================ */

/* Desktop Large (1024px+) */
@media (min-width: 1024px) {
  .common-container {
    max-width: 1000px;
  }
}

/* Tablette (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .common-page {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }
  
  .common-container {
    padding: var(--spacing-lg);
  }
  
  .common-content {
    padding: var(--spacing-2xl);
  }
}

/* Mobile / Tablette (max-width: 768px) */
@media (max-width: 768px) {
  .common-page {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .common-container {
    padding: var(--spacing-md);
  }
  
  .common-content {
    padding: var(--spacing-xl);
  }
  
  .common-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
  .common-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .common-container {
    padding: var(--spacing-sm);
  }
  
  .common-content {
    padding: var(--spacing-lg);
  }
  
  .common-title {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }
  
  .common-subtitle {
    font-size: var(--font-size-base);
  }
}

/* Admin Dashboard - Modern Paper/Analytics SaaS Style */
/* Enhanced UX Version with animations, dark mode, and accessibility */

:root {
  /* Light theme colors */
  --dashboard-bg: #f6f7fb;
  --card-bg: #ffffff;
  --card-border: rgba(112, 143, 129, 0.12);
  --card-shadow: 0 1px 6px rgba(16, 24, 40, 0.06);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-primary: #708f81;
  --accent-light: rgba(112, 143, 129, 0.08);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --header-bg: #ffffff;
  --nav-bg: #ffffff;
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.25rem;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --dashboard-bg: #0f172a;
    --card-bg: #111827;
    --card-border: rgba(148, 163, 184, 0.16);
    --card-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
    --text-primary: #e5e7eb;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-primary: #7bdcb5;
    --accent-light: rgba(123, 220, 181, 0.16);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --header-bg: #0b1220;
    --nav-bg: #0b1220;
  }
}

/* Main container */
.admin-dashboard {
  background: var(--dashboard-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NEW FIXED SIDEBAR LAYOUT ===== */
.admin-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--dashboard-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Fixed Sidebar */
.admin-sidebar-fixed {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 13rem;
  background: #ffffff;
  border-right: 1px solid rgba(112, 143, 129, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
}

.admin-sidebar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 0.75rem;
  overflow-y: auto;
}

.admin-sidebar-section {
  margin-bottom: 1rem;
}

.admin-sidebar-section-title {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  padding: 0 0.5rem;
  margin-bottom: 0.375rem;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 0.125rem;
}

.admin-sidebar-link:hover {
  background: rgba(112, 143, 129, 0.08);
  color: #1f2937;
}

.admin-sidebar-link.active {
  background: linear-gradient(135deg, #708f81, #5d786f);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.3);
}

.admin-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  background: rgba(112, 143, 129, 0.08);
  font-size: 0.875rem;
}

.admin-sidebar-link.active .admin-sidebar-icon {
  background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar-label {
  white-space: nowrap;
}

.admin-sidebar-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(112, 143, 129, 0.08);
}

/* Main Content Area */
.admin-main-area {
  margin-left: 13rem;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--dashboard-bg);
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 3.5rem;
}

.admin-content {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
}

/* Cards */
.admin-dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: none;
}

.admin-dashboard-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.admin-dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.35rem 1rem;
}

.admin-dashboard-card-body {
  padding: 0 1rem 1rem 1rem;
}

.admin-card-body-scroll {
  max-height: 320px;
  overflow: auto;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-dashboard-metric {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  padding: 0.9rem;
  box-shadow: var(--card-shadow);
  transition: none;
}

.admin-dashboard-metric:hover {
  box-shadow: var(--card-shadow);
  transform: none;
}

.admin-dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8rem;
  background: rgba(112, 143, 129, 0.1);
  color: var(--text-primary);
}

.admin-dashboard-status.active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.admin-dashboard-status.finished {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.interactive-card {
  cursor: default;
}

.admin-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.admin-stat-border {
  border-bottom: 1px dashed rgba(112, 143, 129, 0.15);
}

.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
}

.admin-table tr:hover {
  background: rgba(112, 143, 129, 0.06);
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(112, 143, 129, 0.06);
}

/* Mobile responsive for new layout */
@media (max-width: 768px) {
  .admin-sidebar-fixed {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(112, 143, 129, 0.12);
  }

  .admin-sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .admin-sidebar-section {
    display: contents;
    margin-bottom: 0;
  }

  .admin-sidebar-section-title {
    display: none;
  }

  .admin-sidebar-link {
    flex: 0 0 auto;
    padding: 0.5rem;
  }

  .admin-sidebar-label {
    display: none;
  }

  .admin-sidebar-footer {
    display: none;
  }

  .admin-main-area {
    margin-left: 0;
  }

  .admin-dashboard-wrapper {
    flex-direction: column;
  }
}

/* ===== Enhanced Header ===== */
.admin-header-enhanced {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 4px 12px rgba(112, 143, 129, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (prefers-color-scheme: dark) {
  .admin-header-enhanced {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
    border-bottom-color: rgba(148, 163, 184, 0.1);
  }
}

/* Legacy header support */
.admin-dashboard-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-dashboard-title {
  font-weight: 700;
  color: #3e3e3e;
  letter-spacing: -0.02em;
}

/* ===== Enhanced Navigation Chips ===== */
.admin-nav-enhanced {
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(112, 143, 129, 0.06);
  position: sticky;
  top: 64px;
  z-index: 99;
}

@media (min-width: 640px) {
  .admin-nav-enhanced {
    top: 72px;
  }
}

@media (prefers-color-scheme: dark) {
  .admin-nav-enhanced {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
    border-bottom-color: rgba(148, 163, 184, 0.08);
  }
}

/* Navigation Chips */
.nav-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-chip-inactive {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-chip-inactive:hover {
  transform: translateY(-1px);
}

.nav-chip-active {
  transform: scale(1.02);
}

.nav-chip:active {
  transform: scale(0.98);
}

/* Chip hover glow effect */
.nav-chip-inactive::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.1), rgba(112, 143, 129, 0.05));
}

.nav-chip-inactive:hover::before {
  opacity: 1;
}

/* Active chip glow */
.nav-chip-active::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #708f81, #5d786f);
  opacity: 0.15;
  filter: blur(8px);
  z-index: -1;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.admin-dashboard-shell {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 0.75rem 2rem;
  box-sizing: border-box;
}

.admin-dashboard-sidebar {
  flex: 0 0 11rem;
  max-width: 12rem;
  position: sticky;
  top: 4.5rem;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
}

.admin-dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.admin-dashboard-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.admin-dashboard-sidebar-link.inactive:hover {
  background: rgba(112, 143, 129, 0.06);
  color: #1f2937;
  transform: translateX(1px);
}

.admin-dashboard-sidebar-link.active {
  background: linear-gradient(135deg, #708f81, #5d786f);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.35);
}

.admin-dashboard-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.admin-dashboard-sidebar-link.active .admin-dashboard-sidebar-icon {
  background: rgba(255, 255, 255, 0.18);
}

.admin-dashboard-sidebar-label {
  white-space: nowrap;
}

/* Sidebar Sections */
.admin-dashboard-sidebar-section {
  margin-bottom: 0.75rem;
}

.admin-dashboard-sidebar-section:last-child {
  margin-bottom: 0;
}

.admin-dashboard-sidebar-section-title {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  padding: 0 0.5rem;
  margin-bottom: 0.25rem;
}

/* Legacy Navigation */
.admin-dashboard-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(112, 143, 129, 0.06);
  position: sticky;
  top: 72px;
  z-index: 99;
}

.admin-dashboard-tab {
  position: relative;
  transition: all 0.2s ease;
  border-radius: 0.5rem 0.5rem 0 0;
  margin: 0 0.125rem;
  padding: 1rem 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #666666;
}

.admin-dashboard-tab:hover {
  background: rgba(112, 143, 129, 0.06);
  color: #708f81;
}

.admin-dashboard-tab.active {
  background: linear-gradient(135deg, #708f81, #5d786f);
  color: white !important;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.25);
}

/* Content area */
.admin-dashboard-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 640px) {
  .admin-dashboard-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-shell {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0.75rem 3rem;
  }

  .admin-dashboard-sidebar {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }

  .admin-dashboard-sidebar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .admin-dashboard-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-dashboard-sidebar-section {
    display: contents;
    margin-bottom: 0;
  }

  .admin-dashboard-sidebar-section-title {
    display: none;
  }

  .admin-dashboard-sidebar-link {
    flex: 0 0 auto;
    padding: 0.5rem 0.75rem;
  }

  .admin-dashboard-sidebar-label {
    display: none;
  }

  .admin-dashboard-sidebar-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Cards */
.admin-dashboard-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(112, 143, 129, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  overflow: hidden;
}

.admin-dashboard-card:hover {
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.08);
  border-color: rgba(112, 143, 129, 0.15);
}

.admin-dashboard-card-header {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.03), rgba(163, 183, 163, 0.03));
  height: 2.5rem;
  display: flex;
  align-items: center;
}

.admin-dashboard-card-title {
  font-weight: 600;
  color: #3e3e3e;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
}

.admin-dashboard-card-body {
  padding: 0.75rem;
}

/* Metric cards */
.admin-dashboard-metric {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.1);
  border-radius: 0.625rem;
  padding: 0.625rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.admin-dashboard-metric::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #708f81, #a3b7a3);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.admin-dashboard-metric:hover {
  box-shadow: 0 4px 10px rgba(112, 143, 129, 0.1);
  border-color: rgba(112, 143, 129, 0.2);
}

.admin-dashboard-metric:hover::before {
  opacity: 1;
}

.admin-dashboard-metric-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: linear-gradient(135deg, #708f81, #a3b7a3);
  color: white;
  box-shadow: 0 2px 6px rgba(112, 143, 129, 0.15);
  flex-shrink: 0;
}

.admin-dashboard-metric-content {
  flex: 1;
  margin-left: 0.5rem;
}

.admin-dashboard-metric-label {
  font-size: 0.7rem;
  color: #666666;
  font-weight: 500;
  margin-bottom: 0;
}

.admin-dashboard-metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3e3e3e;
  line-height: 1.1;
}

/* Tables */
.admin-dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-dashboard-table thead {
  background: linear-gradient(135deg, rgba(112, 143, 129, 0.06), rgba(163, 183, 163, 0.04));
}

.admin-dashboard-table th {
  padding: 0.625rem 0.875rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666666;
  border-bottom: 1px solid rgba(112, 143, 129, 0.1);
}

.admin-dashboard-table td {
  padding: 0.5rem 0.875rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.06);
  font-size: 0.8125rem;
  color: #3e3e3e;
}

.admin-dashboard-table tbody tr {
  transition: background 0.2s ease;
}

.admin-dashboard-table tbody tr:hover {
  background: rgba(112, 143, 129, 0.03);
}

/* Status badges */
.admin-dashboard-status {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-dashboard-status.waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-dashboard-status.active {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.admin-dashboard-status.finished {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

/* Buttons */
.admin-dashboard-button {
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.admin-dashboard-button-primary {
  background: linear-gradient(135deg, #708f81, #5d786f);
  color: white;
  box-shadow: 0 2px 8px rgba(112, 143, 129, 0.2);
}

.admin-dashboard-button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.3);
  background: linear-gradient(135deg, #5d786f, #4a6359);
}

.admin-dashboard-button-secondary {
  background: white;
  color: #708f81;
  border: 1px solid rgba(112, 143, 129, 0.25);
}

.admin-dashboard-button-secondary:hover {
  background: rgba(112, 143, 129, 0.06);
  border-color: #708f81;
}

.admin-dashboard-button-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.admin-dashboard-button-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #dc2626;
}

/* Progress bars */
.admin-dashboard-progress {
  width: 100%;
  height: 0.5rem;
  background: rgba(112, 143, 129, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.admin-dashboard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #708f81, #a3b7a3);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Empty states */
.admin-dashboard-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: #666666;
}

.admin-dashboard-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.admin-dashboard-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #3e3e3e;
}

.admin-dashboard-empty-description {
  font-size: 0.875rem;
  color: #666666;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-dashboard-content {
    padding: 1rem 0.75rem;
  }
  
  .admin-dashboard-card-body {
    padding: 1rem;
  }
  
  .admin-dashboard-card-header {
    padding: 1rem;
  }
  
  .admin-dashboard-metric {
    padding: 1rem;
  }
  
  .admin-dashboard-metric-value {
    font-size: 1.5rem;
  }
  
  .admin-dashboard-metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
  
  .admin-dashboard-table th,
  .admin-dashboard-table td {
    padding: 0.75rem;
  }
  
  .admin-dashboard-nav {
    top: 64px;
  }
}

/* Utility overrides for dashboard */
.admin-dashboard .text-gray-900 {
  color: #3e3e3e;
}

.admin-dashboard .text-gray-600 {
  color: #666666;
}

.admin-dashboard .text-gray-500 {
  color: #888888;
}

.admin-dashboard .bg-gray-50 {
  background-color: rgba(112, 143, 129, 0.04);
}

.admin-dashboard .bg-gray-100 {
  background-color: rgba(112, 143, 129, 0.08);
}

.admin-dashboard .border-gray-100 {
  border-color: rgba(112, 143, 129, 0.08);
}

.admin-dashboard .border-gray-200 {
  border-color: rgba(112, 143, 129, 0.12);
}

/* Green success colors */
.admin-dashboard .text-green-600 {
  color: #15803d;
}

.admin-dashboard .bg-green-100 {
  background-color: rgba(34, 197, 94, 0.12);
}

.admin-dashboard .text-green-800 {
  color: #166534;
}

/* Animations */
@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.admin-dashboard .animate-pulse {
  animation: pulse-soft 2s ease-in-out infinite;
}

/* Scrollbar styling */
.admin-dashboard ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-dashboard ::-webkit-scrollbar-track {
  background: rgba(112, 143, 129, 0.05);
  border-radius: 4px;
}

.admin-dashboard ::-webkit-scrollbar-thumb {
  background: rgba(112, 143, 129, 0.2);
  border-radius: 4px;
}

.admin-dashboard ::-webkit-scrollbar-thumb:hover {
  background: rgba(112, 143, 129, 0.3);
}

/* ===== Admin Notifications Styles ===== */

/* Form elements */
.admin-notification-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3e3e3e;
  margin-bottom: 0.5rem;
}

.admin-notification-input,
.admin-notification-select,
.admin-notification-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(112, 143, 129, 0.15);
  border-radius: 0.625rem;
  background: white;
  color: #3e3e3e;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.admin-notification-input:focus,
.admin-notification-select:focus,
.admin-notification-textarea:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
}

.admin-notification-input::placeholder,
.admin-notification-textarea::placeholder {
  color: #999;
}

.admin-notification-textarea {
  resize: vertical;
  min-height: 100px;
}

.admin-notification-error {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

/* Notification items */
.admin-notification-item {
  padding: 1.25rem 1.5rem;
  transition: background 0.2s ease;
}

.admin-notification-item:hover {
  background: rgba(112, 143, 129, 0.03);
}

.admin-notification-type-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(112, 143, 129, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Priority badges */
.admin-notification-priority {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-notification-priority.low {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.admin-notification-priority.normal {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.admin-notification-priority.high {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.admin-notification-priority.urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Notification badges */
.admin-notification-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.admin-notification-badge.broadcast {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Flash messages */
.admin-flash {
  padding: 1rem 1.25rem;
  border-radius: 0.625rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-flash.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.admin-flash.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #15803d;
}

.admin-flash.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

/* ===== Enhanced UX Additions ===== */

/* Skeleton Loading States */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, 
    rgba(112, 143, 129, 0.08) 25%, 
    rgba(112, 143, 129, 0.15) 50%, 
    rgba(112, 143, 129, 0.08) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: 0.75rem;
}

.skeleton-card {
  height: 120px;
  border-radius: 1rem;
}

.skeleton-metric {
  height: 80px;
  border-radius: 0.875rem;
}

/* Fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

/* Staggered animations for lists */
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.8125rem;
  color: #64748b;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
}

.toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #475569;
}

/* Enhanced Loading Spinner */
.loading-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner::after {
  content: '';
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid rgba(112, 143, 129, 0.2);
  border-top-color: #708f81;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-spinner.lg::after {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

.loading-spinner.sm::after {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: inherit;
}

/* Improved Focus States for Accessibility */
.admin-dashboard *:focus-visible {
  outline: 2px solid #708f81;
  outline-offset: 2px;
}

.admin-dashboard button:focus-visible,
.admin-dashboard a:focus-visible,
.admin-dashboard input:focus-visible,
.admin-dashboard select:focus-visible {
  outline: 2px solid #708f81;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.15);
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: #708f81;
  color: white;
  border-radius: 0.5rem;
  z-index: 1001;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Better hover states for interactive elements */
.interactive-card {
  cursor: pointer;
  transition: all 0.25s ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(112, 143, 129, 0.15);
}

.interactive-card:active {
  transform: translateY(-2px);
}

/* Ripple effect for buttons */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.ripple:active::after {
  width: 200%;
  height: 200%;
}

/* Improved Tab Indicator */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #708f81, #a3b7a3);
  border-radius: 3px 3px 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Badge with pulse animation for notifications */
.badge-pulse {
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

/* Number counter animation */
.counter-animate {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.5rem 0.75rem;
  background: #1e293b;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Improved scrollbar for webkit browsers */
.admin-dashboard ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.admin-dashboard ::-webkit-scrollbar-track {
  background: rgba(112, 143, 129, 0.05);
  border-radius: 4px;
}

.admin-dashboard ::-webkit-scrollbar-thumb {
  background: rgba(112, 143, 129, 0.2);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.admin-dashboard ::-webkit-scrollbar-thumb:hover {
  background: rgba(112, 143, 129, 0.35);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile-first responsive improvements */
@media (max-width: 640px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
  
  .toast {
    padding: 0.875rem 1rem;
  }
  
  .admin-dashboard-metric-value {
    font-size: 1.25rem;
  }
}

/* Print styles */
@media print {
  .admin-dashboard {
    background: white;
  }
  
  .admin-dashboard-header,
  .admin-dashboard-nav {
    position: static;
  }
  
  .admin-dashboard-button,
  .toast-container {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --card-border: rgba(0, 0, 0, 0.3);
    --text-muted: #475569;
  }
  
  .admin-dashboard-status {
    border-width: 2px;
  }
}

/* ===== NEW COMPONENT CLASSES (No Tailwind) ===== */

/* Sidebar Logo */
.admin-sidebar-logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #708f81;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar-brand-name {
  font-weight: 700;
  color: #1f2937;
}

.admin-sidebar-brand-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Sidebar Status */
.admin-sidebar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-status-indicator {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.admin-status-ping {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-color: #4ade80;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.admin-status-dot {
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #22c55e;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Topbar */
.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-topbar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.admin-topbar-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-btn-text {
  display: none;
}

@media (min-width: 640px) {
  .admin-btn-text {
    display: inline;
  }
}

/* Metric Card Layout */
.admin-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-metric-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-metric-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

.admin-metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-metric-trend.trend-up {
  background-color: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.admin-metric-trend.trend-down {
  background-color: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* Skeleton */
.skeleton-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
}

.admin-skeleton-content {
  flex: 1;
}

/* Metrics Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .admin-metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Overview Grid */
.admin-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  height: calc(100vh - 12rem);
}

@media (min-width: 1024px) {
  .admin-overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Flex */
.admin-card-flex {
  display: flex;
  flex-direction: column;
}

.admin-card-body-scroll {
  flex: 1;
  overflow-y: auto;
}

/* Icon Margin */
.admin-icon-margin {
  margin-right: 0.5rem;
}

/* Stat List */
.admin-stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.admin-stat-border {
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
}

.admin-stat-label {
  font-size: 0.75rem;
  color: #666666;
}

.admin-stat-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3e3e3e;
}

.admin-stat-success {
  color: #15803d;
}

/* System Grid */
.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}

.admin-system-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Activity List */
.admin-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.admin-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  background: rgba(112, 143, 129, 0.04);
  border-radius: 0.375rem;
  transition: background 0.2s ease;
}

.admin-activity-item:hover {
  background: rgba(112, 143, 129, 0.08);
}

.admin-activity-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-activity-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: #4ade80;
  border-radius: 9999px;
  animation: pulse-soft 2s ease-in-out infinite;
}

.admin-activity-id {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3e3e3e;
  font-family: monospace;
}

.admin-activity-category {
  font-size: 0.75rem;
  color: #6b7280;
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-activity-players {
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

/* Tab Content */
.admin-tab-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-tab-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tab-icon {
  font-size: 1.125rem;
}

.admin-tab-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3e3e3e;
}

.admin-tab-count {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Games Grid */
.admin-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .admin-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .admin-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Game Card */
.admin-game-card {
  transition: border-color 0.2s ease;
}

.admin-game-card:hover {
  border-color: rgba(112, 143, 129, 0.3);
}

.admin-game-card-body {
  padding: 0.5rem;
}

.admin-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.admin-game-info {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.admin-game-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.admin-game-icon.state-waiting {
  background-color: #f59e0b;
}

.admin-game-icon.state-countdown {
  background-color: #3b82f6;
}

.admin-game-icon.state-active {
  background-color: #22c55e;
}

.admin-game-icon.state-results {
  background-color: #a855f7;
}

.admin-game-icon.state-default {
  background-color: #6b7280;
}

.admin-game-details {
  min-width: 0;
}

.admin-game-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #3e3e3e;
  text-transform: capitalize;
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-game-host {
  font-size: 0.625rem;
  color: #6b7280;
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-game-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(112, 143, 129, 0.04);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.375rem;
}

.admin-game-pin {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #708f81;
  letter-spacing: 0.05em;
}

.admin-game-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
}

.admin-btn-full {
  width: 100%;
  font-size: 0.625rem;
  padding: 0.25rem;
}

/* Support Tab Styles */
.admin-support-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: calc(100vh - 10rem);
}

.admin-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0;
  background: white;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(112, 143, 129, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.admin-support-title-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-support-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-support-title {
  font-size: 1rem;
  font-weight: 700;
  color: #3e3e3e;
}

.admin-support-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-support-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-support-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid;
}

.admin-support-stat.stat-open {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.25);
}

.admin-support-stat.stat-responded {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.25);
}

.admin-support-stat.stat-closed {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.25);
}

.admin-support-stat-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
}

.admin-support-stat.stat-open .admin-support-stat-dot {
  background: #f59e0b;
}

.admin-support-stat.stat-responded .admin-support-stat-dot {
  background: #3b82f6;
}

.admin-support-stat.stat-closed .admin-support-stat-dot {
  background: #22c55e;
}

/* Support Split View */
.admin-support-split {
  flex: 1;
  display: flex;
  gap: 1rem;
  min-height: 0;
  overflow: hidden;
}

.admin-support-list-panel {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(112, 143, 129, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.admin-support-detail-panel {
  width: 66.666%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid rgba(112, 143, 129, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
}

/* Support Filters */
.admin-support-filters {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  background: rgba(112, 143, 129, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-support-search {
  position: relative;
}

.admin-support-search-icon {
  position: absolute;
  left: 0.625rem;
  top: 0.375rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.admin-support-search-input {
  width: 100%;
  padding: 0.375rem 0.75rem 0.375rem 1.75rem;
  font-size: 0.75rem;
  border: 1px solid rgba(112, 143, 129, 0.2);
  border-radius: 0.5rem;
  background: white;
  transition: all 0.2s ease;
}

.admin-support-search-input:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
}

.admin-support-filter-row {
  display: flex;
  gap: 0.5rem;
}

.admin-support-select {
  flex: 1;
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid rgba(112, 143, 129, 0.2);
  border-radius: 0.5rem;
  background: white;
  cursor: pointer;
}

.admin-support-select:focus {
  outline: none;
  border-color: #708f81;
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
}

/* Ticket List */
.admin-ticket-list {
  flex: 1;
  overflow-y: auto;
}

.admin-ticket-item {
  position: relative;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

.admin-ticket-item:hover {
  background: rgba(112, 143, 129, 0.04);
}

.admin-ticket-item.active {
  background: rgba(59, 130, 246, 0.08);
  border-left-color: #3b82f6;
}

.admin-ticket-priority {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-ticket-priority.priority-high {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-ticket-priority.priority-medium {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.admin-ticket-priority.priority-low {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.admin-ticket-subject {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3e3e3e;
  margin: 0.25rem 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-ticket-subject.unread {
  font-weight: 600;
  color: #1f2937;
}

.admin-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
}

.admin-ticket-user {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b7280;
}

.admin-ticket-avatar {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: rgba(112, 143, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #666;
}

.admin-ticket-badges {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-ticket-badge {
  font-size: 0.5625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Ticket Detail */
.admin-ticket-detail-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-ticket-detail-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3e3e3e;
  margin: 0.25rem 0;
}

.admin-ticket-detail-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.admin-ticket-detail-info-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.admin-ticket-detail-separator {
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: #d1d5db;
}

/* Conversation Area */
.admin-conversation {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(112, 143, 129, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-message {
  display: flex;
  gap: 1rem;
  max-width: 48rem;
}

.admin-message.admin-message-right {
  flex-direction: row-reverse;
  margin-left: auto;
}

.admin-message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.admin-message-avatar.user-avatar {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.15);
  color: #666;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-message-avatar.admin-avatar {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.admin-message-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-message.admin-message-right .admin-message-content {
  align-items: flex-end;
}

.admin-message-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.admin-message.admin-message-right .admin-message-header {
  flex-direction: row-reverse;
}

.admin-message-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3e3e3e;
}

.admin-message-time {
  font-size: 0.625rem;
  color: #9ca3af;
}

.admin-message-bubble {
  padding: 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-message-bubble.user-bubble {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.12);
  color: #374151;
  border-top-left-radius: 0.25rem;
}

.admin-message-bubble.admin-bubble {
  background: #3b82f6;
  color: white;
  border-top-right-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

/* Reply Form */
.admin-reply-form {
  padding: 1rem;
  border-top: 1px solid rgba(112, 143, 129, 0.08);
  background: white;
}

.admin-reply-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  margin-left: 0.25rem;
}

.admin-reply-textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.875rem;
  border: 1px solid rgba(112, 143, 129, 0.2);
  border-radius: 0.75rem;
  background: rgba(112, 143, 129, 0.02);
  resize: none;
  transition: all 0.2s ease;
}

.admin-reply-textarea:focus {
  outline: none;
  border-color: #708f81;
  background: white;
  box-shadow: 0 0 0 3px rgba(112, 143, 129, 0.1);
}

.admin-reply-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.admin-reply-hint {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-reply-hint kbd {
  font-family: monospace;
  background: rgba(112, 143, 129, 0.08);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

/* Empty State for Detail */
.admin-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(112, 143, 129, 0.02);
}

.admin-detail-empty-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: pulse-soft 2s ease-in-out infinite;
}

.admin-detail-empty-icon span {
  font-size: 3rem;
}

.admin-detail-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #3e3e3e;
  margin-bottom: 0.5rem;
}

.admin-detail-empty-text {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  max-width: 20rem;
}

/* ===== SYSTEM & ANALYTICS TAB STYLES ===== */

/* Quick Stats Grid */
.admin-quick-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .admin-quick-stats-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

.admin-quick-stat {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.12);
  border-radius: 0.5rem;
  padding: 0.375rem;
  text-align: center;
}

.admin-quick-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #374151;
}

.admin-quick-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Stat Colors */
.admin-stat-success {
  color: #15803d;
}

.admin-stat-info {
  color: #1d4ed8;
}

.admin-stat-warning {
  color: #ea580c;
}

.admin-stat-purple {
  color: #7c3aed;
}

.admin-stat-danger {
  color: #dc2626;
}

/* Three Column Grid */
.admin-three-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .admin-three-col-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Two Column Stats */
.admin-two-col-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Mini Stat */
.admin-mini-stat {
  text-align: center;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.admin-mini-stat-blue {
  background: rgba(59, 130, 246, 0.1);
}

.admin-mini-stat-green {
  background: rgba(34, 197, 94, 0.1);
}

.admin-mini-stat-red {
  background: rgba(239, 68, 68, 0.1);
}

.admin-mini-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
}

.admin-mini-stat-blue .admin-mini-stat-value {
  color: #1d4ed8;
}

.admin-mini-stat-green .admin-mini-stat-value {
  color: #15803d;
}

.admin-mini-stat-red .admin-mini-stat-value {
  color: #dc2626;
}

.admin-mini-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Progress Row */
.admin-progress-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-progress-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #15803d;
}

/* Actions Row */
.admin-actions-row {
  display: flex;
  gap: 0.375rem;
}

/* KPI Grid */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-kpi-card {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.12);
  border-radius: 0.5rem;
  padding: 0.375rem;
}

.admin-kpi-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-kpi-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-kpi-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.admin-kpi-trend {
  font-size: 0.625rem;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: rgba(112, 143, 129, 0.08);
  color: #374151;
}

.admin-kpi-trend.trend-up {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.admin-kpi-trend.trend-peak {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

/* Two Column Grid */
.admin-two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .admin-two-col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card Max Height */
.admin-card-max-height {
  max-height: 10rem;
}

/* Category List */
.admin-category-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.125rem 0.5rem;
  background: rgba(112, 143, 129, 0.04);
  border-radius: 0.25rem;
}

.admin-category-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3e3e3e;
  text-transform: capitalize;
}

.admin-category-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  color: #6b7280;
}

.admin-category-score {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

/* Difficulty Grid */
.admin-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.admin-difficulty-item {
  text-align: center;
  padding: 0.375rem;
  background: rgba(112, 143, 129, 0.04);
  border-radius: 0.25rem;
}

.admin-difficulty-icon {
  font-size: 0.75rem;
  font-weight: 500;
}

.admin-difficulty-count {
  font-size: 0.625rem;
  color: #6b7280;
}

.admin-difficulty-rate {
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-difficulty-rate.rate-good {
  color: #15803d;
}

.admin-difficulty-rate.rate-warning {
  color: #ea580c;
}

/* Trend List */
.admin-trend-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-trend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
}

.admin-trend-date {
  width: 2.5rem;
  color: #6b7280;
}

.admin-trend-bar {
  flex: 1;
  height: 0.375rem;
}

.admin-trend-value {
  width: 1.25rem;
  text-align: right;
  font-weight: 500;
}

.admin-progress-purple .admin-dashboard-progress-fill,
.admin-progress-fill-purple {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* Realtime Grid */
.admin-realtime-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.admin-realtime-item {
  padding: 0.25rem;
}

.admin-realtime-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.admin-realtime-label {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Analysis Section */
.admin-analysis-section {
  border: 1px solid rgba(112, 143, 129, 0.12);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.admin-analysis-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3e3e3e;
  margin-bottom: 0.5rem;
}

.admin-analysis-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Bottlenecks */
.admin-bottlenecks {
  margin-top: 1.5rem;
}

.admin-bottleneck-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-bottleneck-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.admin-bottleneck-item.severity-high {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-bottleneck-item.severity-medium {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.admin-bottleneck-item.severity-low {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.admin-bottleneck-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

.admin-bottleneck-item.severity-high .admin-bottleneck-dot {
  background: #dc2626;
}

.admin-bottleneck-item.severity-medium .admin-bottleneck-dot {
  background: #f59e0b;
}

.admin-bottleneck-item.severity-low .admin-bottleneck-dot {
  background: #22c55e;
}

/* Report Summary */
.admin-report-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .admin-report-summary {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admin-report-item {
  text-align: center;
}

.admin-report-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d4ed8;
}

.admin-report-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: capitalize;
}

.admin-report-recommendations {
  border-top: 1px solid rgba(112, 143, 129, 0.12);
  padding-top: 1rem;
}

.admin-recommendation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-recommendation-list li {
  font-size: 0.875rem;
  color: #4b5563;
}

.admin-recommendation-list li::before {
  content: "• ";
  color: #708f81;
}

/* ===== NOTIFICATIONS PAGE STYLES ===== */

/* KPI Icon */
.admin-kpi-icon {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* Enhanced KPI Cards for Notifications */
.admin-kpi-card {
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.12);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.admin-kpi-card:hover {
  border-color: rgba(112, 143, 129, 0.25);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.08);
}

.admin-kpi-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-kpi-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.admin-kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

/* Form Styles - Enhanced */
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .admin-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-form-full {
  grid-column: 1 / -1;
}

.admin-form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.admin-form-input,
.admin-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 2px solid rgba(112, 143, 129, 0.15);
  border-radius: 0.625rem;
  background: #fafafa;
  transition: all 0.2s ease;
  color: #3e3e3e;
}

.admin-form-input::placeholder {
  color: #9ca3af;
}

.admin-form-input:hover,
.admin-form-select:hover {
  border-color: rgba(112, 143, 129, 0.3);
  background: white;
}

.admin-form-input:focus,
.admin-form-select:focus {
  outline: none;
  border-color: #708f81;
  background: white;
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.1);
}

.admin-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 2px solid rgba(112, 143, 129, 0.15);
  border-radius: 0.625rem;
  background: #fafafa;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  color: #3e3e3e;
  font-family: inherit;
}

.admin-form-textarea::placeholder {
  color: #9ca3af;
}

.admin-form-textarea:hover {
  border-color: rgba(112, 143, 129, 0.3);
  background: white;
}

.admin-form-textarea:focus {
  outline: none;
  border-color: #708f81;
  background: white;
  box-shadow: 0 0 0 4px rgba(112, 143, 129, 0.1);
}

.admin-form-error {
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-form-error::before {
  content: "⚠";
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(112, 143, 129, 0.1);
}

/* Notifications List - Enhanced */
.admin-notifications-list {
  max-height: 55vh;
  padding: 0;
  overflow-y: auto;
}

.admin-notif-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.admin-notif-item {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border: 1px solid rgba(112, 143, 129, 0.1);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.admin-notif-item:hover {
  background: linear-gradient(135deg, #f0f7f4 0%, #ffffff 100%);
  border-color: rgba(112, 143, 129, 0.2);
  box-shadow: 0 4px 12px rgba(112, 143, 129, 0.08);
  transform: translateY(-1px);
}

.admin-notif-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-notif-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.admin-notif-type-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: rgba(112, 143, 129, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.admin-notif-type-icon.type-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
}

.admin-notif-type-icon.type-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.admin-notif-type-icon.type-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
}

.admin-notif-type-icon.type-announcement {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.admin-notif-type-icon.type-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.admin-notif-content {
  flex: 1;
  min-width: 0;
}

.admin-notif-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-notif-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.admin-notif-priority {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.admin-notif-priority.priority-low {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #1d4ed8;
}

.admin-notif-priority.priority-normal {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  color: #15803d;
}

.admin-notif-priority.priority-high {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.08) 100%);
  color: #c2410c;
}

.admin-notif-priority.priority-urgent {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
  color: #b91c1c;
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.admin-notif-badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0.08) 100%);
  color: #7c3aed;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-notif-message {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-notif-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-notif-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(112, 143, 129, 0.06);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.admin-notif-delete {
  padding: 0.5rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.admin-notif-delete:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
}

/* Empty State Enhancement */
.admin-dashboard-empty {
  text-align: center;
  padding: 3rem 2rem;
}

.admin-dashboard-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.admin-dashboard-empty-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.admin-dashboard-empty-description {
  font-size: 0.875rem;
  color: #6b7280;
  max-width: 300px;
  margin: 0 auto;
}

/* Send Form Card */
.admin-send-form-card {
  border: 2px solid #708f81;
  box-shadow: 0 8px 24px rgba(112, 143, 129, 0.15);
}

.admin-send-form-card .admin-dashboard-card-header {
  background: linear-gradient(135deg, #708f81 0%, #5a7a6c 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-send-form-card .admin-dashboard-card-title {
  color: white;
}

.admin-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.admin-send-btn {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600;
}

/* ===== LOADING STATE STYLES ===== */

.admin-loading-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skeleton-header {
  height: 6rem;
  border-radius: 1rem;
}

.admin-loading-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.admin-loading-text {
  margin-left: 0.75rem;
  color: #6b7280;
}

/* ===== PLAYERS TAB STYLES ===== */

.admin-players-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.admin-players-stat {
  padding: 0.25rem;
}

.admin-players-stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
}

.admin-players-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-distribution-bar {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(112, 143, 129, 0.08);
}

.admin-dashboard-progress {
  width: 100%;
  background: #e5e7eb;
  border-radius: 9999px;
  height: 0.5rem;
  display: flex;
  overflow: hidden;
}

.admin-dashboard-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #708f81, #5a7a6c);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.admin-progress-segment {
  height: 100%;
}

.admin-progress-blue {
  background: #3b82f6;
}

.admin-progress-purple {
  background: #8b5cf6;
}

.admin-progress-empty {
  background: #d1d5db;
  width: 100%;
}

.admin-distribution-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.admin-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-card-count {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-card-compact {
  max-height: 8rem;
}

.admin-game-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.125rem 0.5rem;
  background: rgba(112, 143, 129, 0.04);
  border-radius: 0.375rem;
}

.admin-game-item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-game-player-count {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.625rem;
}

.admin-game-player-count.waiting {
  background: #f59e0b;
}

.admin-game-player-count.playing {
  background: #22c55e;
}

.admin-game-category {
  font-size: 0.75rem;
  font-weight: 500;
  color: #3e3e3e;
  text-transform: capitalize;
}

.admin-game-pin {
  font-size: 0.75rem;
  color: #6b7280;
  font-family: monospace;
}

.admin-game-state {
  font-size: 0.625rem;
  color: #6b7280;
}

.admin-empty-compact {
  padding: 0.5rem;
}

.admin-empty-compact p {
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===== QUESTIONS TAB STYLES ===== */

.admin-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-inline-stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: white;
  border: 1px solid rgba(112, 143, 129, 0.12);
  border-radius: 0.5rem;
  padding: 0.25rem 0.625rem;
}

.admin-inline-stat-icon {
  font-size: 0.875rem;
}

.admin-inline-stat-label {
  font-size: 0.75rem;
  color: #6b7280;
}

.admin-inline-stat-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #3e3e3e;
}

.admin-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.admin-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.125rem 0;
}

.admin-breakdown-label {
  font-size: 0.75rem;
  color: #4b5563;
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-breakdown-count {
  background: rgba(112, 143, 129, 0.08);
  color: #374151;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  font-weight: 500;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* ===== RECHERCHE GLOBALE ===== */

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-search-container {
  position: relative;
  min-width: 320px;
  max-width: 420px;
}

.admin-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(112, 143, 129, 0.25);
  border-radius: 999px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(6px);
}

.admin-search-form:focus-within {
  transform: translateY(-1px);
  border-color: rgba(112, 143, 129, 0.5);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.12);
}

.admin-search-input {
  flex: 1;
  border: none;
  padding: 0.65rem 0.75rem 0.65rem 1.25rem;
  font-size: 0.9rem;
  outline: none;
  background: transparent;
  color: var(--text-primary);
}

.admin-search-input::placeholder {
  color: var(--text-muted);
}

.admin-search-button {
  background: linear-gradient(135deg, #708f81 0%, #4c6b5f 100%);
  border: none;
  padding: 0.65rem 1rem;
  cursor: pointer;
  color: white;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.admin-search-button:hover {
  opacity: 0.85;
}

.admin-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(112, 143, 129, 0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
  animation: fadeSlideIn 0.2s ease;
}

.admin-search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  border-bottom: 1px solid rgba(112, 143, 129, 0.08);
}

.admin-search-result-item:last-child {
  border-bottom: none;
}

.admin-search-result-item:hover {
  background: rgba(112, 143, 129, 0.07);
  transform: translateX(4px);
}

.admin-search-result-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  padding: 0.35rem;
  border-radius: 0.5rem;
  background: rgba(112, 143, 129, 0.12);
}

.admin-search-result-content {
  flex: 1;
  min-width: 0;
}

.admin-search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-search-result-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.admin-dashboard-button-icon {
  padding: 0.5rem;
  min-width: auto;
  width: auto;
}

/* ===== INDICATEURS DE TENDANCES ===== */
.admin-metric-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  margin-left: auto;
}

.admin-metric-trend.trend-up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.admin-metric-trend.trend-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.admin-metric-trend span:first-child {
  font-size: 0.875rem;
}

/* ===== MODE SOMBRE ===== */
.admin-dashboard-wrapper.dark-mode {
  --dashboard-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --card-bg: rgba(30, 41, 59, 0.95);
  --card-border: rgba(148, 163, 184, 0.12);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-light: rgba(112, 143, 129, 0.15);
  --header-bg: rgba(15, 23, 42, 0.95);
  --nav-bg: rgba(15, 23, 42, 0.92);
}

.admin-dashboard-wrapper.dark-mode .admin-sidebar-fixed {
  background: #1e293b;
  border-right-color: rgba(148, 163, 184, 0.12);
}

.admin-dashboard-wrapper.dark-mode .admin-topbar {
  background: var(--header-bg);
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.admin-dashboard-wrapper.dark-mode .admin-dashboard-card {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--text-primary);
}

.admin-dashboard-wrapper.dark-mode .admin-search-form {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

.admin-dashboard-wrapper.dark-mode .admin-search-input {
  color: var(--text-primary);
}

.admin-dashboard-wrapper.dark-mode .admin-search-results {
  background: rgba(30, 41, 59, 0.98);
  border-color: rgba(148, 163, 184, 0.2);
}

.admin-dashboard-wrapper.dark-mode .admin-search-result-item {
  border-bottom-color: rgba(148, 163, 184, 0.1);
}

.admin-dashboard-wrapper.dark-mode .admin-search-result-item:hover {
  background: rgba(112, 143, 129, 0.15);
}

/* ===== TOOLTIPS ===== */
.admin-tooltip {
  position: relative;
  display: inline-block;
}

.admin-tooltip:hover .admin-tooltip-text {
  visibility: visible;
  opacity: 1;
}

.admin-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.admin-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}
