/*********************************************
 * Modern Game Design - Professional UI
 * نظام تصميم حديث وأنيق للألعاب
 ********************************************/

/* =========================================
   CSS Variables - نظام الألوان المتكامل
   ========================================= */
:root {
  /* الألوان الأساسية - تدرجات عنابية */
  --primary-gradient: linear-gradient(135deg, #5A1520 0%, #9A2E37 100%);
  --secondary-gradient: linear-gradient(135deg, #d4af37 0%, #f4e4c1 100%);
  --gold-gradient: linear-gradient(135deg, #f4e4c1 0%, #d4af37 100%);
  --dark-gradient: linear-gradient(135deg, #2c2c2c 0%, #4a3b46 100%);
  --light-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);

  /* الألوان الرئيسية */
  --primary-color: #5A1520;
  --primary-dark: #9A2E37;
  --secondary-color: #d4af37;
  --accent-color: #d4af37;
  --dark-color: #2c2c2c;
  --light-color: #ffffff;

  /* ألوان النصوص */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #a0aec0;
  --text-white: #ffffff;

  /* الخلفيات والظلال */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-dark: #2d3748;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* الحدود والزوايا */
  --border-radius: 16px;
  --border-radius-large: 24px;
  --border-radius-small: 8px;

  /* التباعد */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* الخطوط */
  --font-family: 'Cairo', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* التأثيرات */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Global Styles - الأنماط العامة
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #af1540 0%, #7d193d 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* خلفية ديناميكية متحركة */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgb(255 255 255 / 30%) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgb(255 0 0 / 30%) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgb(255 255 255 / 36%) 0%, #fffdfd00 50%);
  z-index: -1;
  animation: backgroundShift 10s ease-in-out infinite;
}

@keyframes backgroundShift {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* =========================================
   Modern Header - هيدر حديث وأنيق
   ========================================= */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.logo-text {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;

  background-clip: text;
  margin: 0;
}

.nav-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}


.nav-btn:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.user-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.points-badge {
  background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
  color: #fff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-small);
  font-weight: 700;
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logout-btn-modern {
  background: linear-gradient(135deg, #ff6b6c 0%, #ee5a52 100%);
  color: white;
  border: none;
  border-radius: var(--border-radius-small);
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn-modern:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

/* =========================================
   Hero Section - قسم البطل الأنيق
   ========================================= */
.hero-section {
  text-align: center;
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
  -webkit-background-clip: text;

  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: slideInUp 1s ease-out 0.2s both;
}

/* =========================================
   Modern Cards - بطاقات حديثة بتصميم احترافي
   ========================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.modern-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: var(--spacing-md);
}

.card-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.card-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* =========================================
   Modern Buttons - أزرار حديثة بتصميم احترافي
   ========================================= */
.btn-modern {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.btn-modern::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;
}

.btn-modern:hover::before {
  left: 100%;
}

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

/* .btn-secondary-modern {
  background: var(--secondary-gradient);
} */

.btn-blue-modern {
  background: var(--gold-gradient);
  color: var(--text-primary);
}

.btn-blue-modern {
  background: linear-gradient(314deg, deepskyblue, #127ad3);
  color: #fbfbfb;
}

.btn-large-modern {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  border-radius: var(--border-radius-large);
}

/* =========================================
   Game Modes Section - قسم أنماط اللعب
   ========================================= */
.game-modes {
  margin: var(--spacing-xxl) 0;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--spacing-xl);
  background: var(--primary-gradient);
  -webkit-background-clip: text;

  background-clip: text;
}

.game-mode-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-xl);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.game-mode-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.game-mode-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  display: block;
}

.game-mode-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.game-mode-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* =========================================
   Store Section - قسم المتجر الحديث
   ========================================= */
.store-section {
  margin: var(--spacing-xxl) 0;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.store-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-large);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.store-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1;
}

.store-card:hover::before {
  opacity: 0.1;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.store-card>* {
  position: relative;
  z-index: 2;
}

.store-icon {
  font-size: 36px;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

.store-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.store-description {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

/* =========================================
   Footer - تذييل حديث
   ========================================= */
.modern-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-lg) 0;
  text-align: center;
  margin-top: var(--spacing-xxl);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

/* =========================================
   Floating Elements - عناصر عائمة حديثة
   ========================================= */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  animation: float 10s ease-in-out infinite;
  transform: translateZ(0);
  color: var(--text-white);
  opacity: 0.5;
}

.floating-element-1 {
  top: 20%;
  right: 5%;
  width: 96px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.floating-element-2 {
  top: 60%;
  left: 5%;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  animation-delay: 2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-16px) rotate(6deg);
  }
}

.floating-elements .floating-element:nth-child(1) {
  animation-duration: 12s;
}

.floating-elements .floating-element:nth-child(2) {
  animation-duration: 10s;
  animation-delay: 1s;
}

.floating-elements .floating-element:nth-child(3) {
  animation-duration: 14s;
  animation-delay: 2s;
}

.floating-elements .floating-element:nth-child(4) {
  animation-duration: 11s;
  animation-delay: 1.5s;
}

.floating-elements .floating-element:nth-child(5) {
  animation-duration: 13s;
  animation-delay: 0.5s;
}

@media (max-width: 768px) {
  .floating-element {
    width: 48px;
    height: 48px;
    font-size: 18px;
    opacity: 0.75;
  }
}

@media (max-width: 480px) {
  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 16px;
    opacity: 0.6;
  }
}

/* =========================================
   Particle Effects - تأثيرات جسيمات
   ========================================= */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particle-float 15s infinite linear;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  background: rgba(255, 215, 0, 0.8);
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 6px;
  height: 6px;
  background: rgba(102, 126, 234, 0.6);
  left: 20%;
  animation-delay: 3s;
}

.particle:nth-child(3) {
  width: 3px;
  height: 3px;
  background: rgba(240, 147, 251, 0.7);
  left: 70%;
  animation-delay: 6s;
}

.particle:nth-child(4) {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  left: 85%;
  animation-delay: 9s;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* =========================================
   Wheel Page Specific Styles - أنماط صفحة العجلة
   ========================================= */

.wheel-page {
  background: linear-gradient(135deg, #ff8145 0%, #ff5d5d 100%);
  min-height: 100vh;
}

.three-panel-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  align-items: start;
}

.wheel-card {
  text-align: center;
}

.wheel-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--spacing-md) 0;
}

#wheelCanvas {
  border-radius: 50%;
  box-shadow: var(--shadow-heavy);
  background: var(--light-gradient);
  border: 8px solid var(--accent-color);
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.wheel-controls {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.selected-name-card {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(344deg, #00efce, #95ff93);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  animation: fadeInUp 0.5s ease;
}

.result-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.result-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-color);
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-light);
}

.names-section {
  margin-top: var(--spacing-md);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.counter-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.names-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: var(--spacing-sm);
}

.team-info {
  margin-bottom: var(--spacing-md);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-small);
  margin-bottom: var(--spacing-xs);
}

.info-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.info-value {
  font-weight: 700;
  color: var(--accent-color);
}

.action-section {
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.teams-container {
  margin-bottom: var(--spacing-md);
  max-height: 300px;
  overflow-y: auto;
}

.teams-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-direction: column;
}

.team-input-group {
  margin-bottom: var(--spacing-md);
}

.input-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
}

select,
input[type="text"],
.modern-select,
.modern-input,
.modern-card select,
.modern-card input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--border-radius-small);
  border: 2px solid rgba(92, 46, 74, 0.2);
  background: var(--light-color);
  color: var(--text-primary);
  font-size: var(--font-size-base);
  outline: none;
  transition: var(--transition);
}

select:focus,
input[type="text"]:focus,
.modern-select:focus,
.modern-input:focus,
.modern-card select:focus,
.modern-card input[type="text"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

select option {
  color: var(--text-primary);
  background: var(--light-color);
}

/* =========================================
   Responsive Design - التصميم المتجاوب
   ========================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }

  .modern-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .three-panel-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .wheel-container {
    margin: var(--spacing-sm) 0;
  }

  #wheelCanvas {
    width: 280px !important;
    height: 280px !important;
  }

  .teams-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .input-group {
    flex-direction: column;
  }

  .modern-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .floating-card {
    padding: var(--spacing-md);
  }

  .card-title {
    font-size: 1.2rem;
  }

  .modern-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  #wheelCanvas {
    width: 240px !important;
    height: 240px !important;
  }

  .wheel-pointer {
    font-size: 1.5rem;
    top: -15px;
  }

  .result-name {
    font-size: 1.2rem;
  }
}

.hero-title {
  font-size: var(--font-size-3xl);
}

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

.store-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.container {
  padding: 0 var(--spacing-sm);
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .modern-card {
    padding: var(--spacing-lg);
  }
}

/* =========================================
   Category Selection Styles - صفحة اختيار الفئات
   ========================================= */

.current-turn-modern {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
}

.current-turn-modern .turn-label {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
}

.current-turn-modern .turn-team {
  font-size: 1.5rem;
  color: var(--text-white);
  font-weight: 700;
  margin: 0 var(--spacing-sm);
}

.current-turn-modern .turn-count {
  font-size: 1.1rem;
  color: var(--text-light);
}

.dual-teams-display-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.team-selections-column-modern {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-column-title-modern {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm);
  background: var(--primary-gradient);
  border-radius: var(--border-radius-small);
}

.selected-categories-display-modern {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.categories-selection-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.category-card-modern,
.category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card-modern:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent-color);
}

.category-card-modern.selected,
.category-card.selected {
  background: var(--gold-gradient);
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.category-card-modern.selected::after,
.category-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon-modern {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.category-header {
  margin-bottom: var(--spacing-sm);
}

.category-icon-large {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.category-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
}

.category-teams {
  margin-top: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.team-label {
  background: var(--light-gradient);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: var(--border-radius-small);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-light);
}

.category-card.disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.category-description-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary-gradient);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow-light);
  cursor: pointer;
}

.category-title-modern {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: var(--spacing-sm);
}

.category-description-modern {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.5;
}

.start-game-container-modern {
  text-align: center;
  margin-top: var(--spacing-xxl);
  padding: var(--spacing-lg);
}

:root {
  --primary-wine: #5A1520;
  --secondary-wine: #9A2E37;
  --accent-gold: #d4af37;
  --light-gold: #f4e4c1;
  --white: #ffffff;
  --light-bg: #f9f7f4;
  --border-gold: #c9a961;
  --text-dark: #2c2c2c;
  --shadow: 0 8px 32px rgba(90, 21, 32, 0.15);
  --shadow-light: 0 4px 16px rgba(90, 21, 32, 0.08);
  --primary-gradient: linear-gradient(135deg, var(--primary-wine) 0%, var(--secondary-wine) 100%);
  --secondary-gradient: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
  --gold-gradient: linear-gradient(135deg, var(--light-gold) 0%, var(--accent-gold) 100%);
  --dark-gradient: linear-gradient(135deg, #2c2c2c 0%, #4a3b46 100%);
  --light-gradient: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
  --primary-color: var(--primary-wine);
  --primary-dark: var(--secondary-wine);
  --secondary-color: #d4af37;
  --accent-color: #d4af37;
  --dark-color: #2c2c2c;
  --light-color: var(--white);
  --text-primary: var(--text-dark);
  --text-secondary: #5b4f56;
  --text-light: #8a7a82;
  --text-white: #ffffff;
}

.modern-header {
  background: var(--light-gradient);
  border-bottom: 3px solid gold;
  padding: 20px 0;
  box-shadow: var(--shadow-light);
}

.logo-text {
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-wine), var(--accent-gold));
  -webkit-background-clip: text;

  background-clip: text;
}

.nav-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-btn {
  padding: 0.6rem 1.2rem;
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(92, 46, 74, 0.4);
  border-color: var(--light-gold);
}

.points-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--light-gold), var(--accent-gold));
  border-radius: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
  font-size: 0.9em;
}

.hero-section {
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 3em;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-wine), var(--accent-gold));
  -webkit-background-clip: text;

  background-clip: text;
}

.game-modes {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  font-weight: 800;
  margin-bottom: 60px;
  color: white;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.game-mode-card {
  background: var(--light-gradient);
  border: 3px solid gold;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.game-mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.game-mode-card:hover {
  transform: translateY(-15px);
  border-color: var(--secondary-wine);
  box-shadow: 0 15px 40px rgba(92, 46, 74, 0.25);
}

.game-mode-icon {
  font-size: 4em;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.game-mode-card:hover .game-mode-icon {
  transform: scale(1.05);
}
