:root {
  /* Sophisticated Color Palette */
  --bg: #fafbfc;
  --bg-secondary: #ffffff;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --brand: #0f172a;
  --brand-light: #334155;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Brand Colors */
  --primary: #dc2626;
  --primary-light: #fca5a5;
  --primary-dark: #b91c1c;
  --secondary: #1e40af;
  --secondary-light: #93c5fd;
  --secondary-dark: #1d4ed8;
  --accent: #fbbf24;
  --accent-light: #fde68a;
  --accent-dark: #f59e0b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Sophisticated Gradients */
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-neutral: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  /* Enhanced motion variables */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-elastic: 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

* { 
  box-sizing: border-box; 
}

body { 
  margin: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.7; 
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { 
  max-width: 100%; 
  border-radius: var(--radius); 
  display: block; 
  transition: transform var(--transition-normal), filter var(--transition-normal);
}

a { 
  text-decoration: none; 
  color: inherit; 
  transition: all var(--transition-fast);
}

.container { 
  width: min(1100px, 92%); 
  margin: 0 auto; 
  position: relative;
}

/* Enhanced scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--brand), #333);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #333, #555);
}

/* Selection styling */
::selection {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

::-moz-selection {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

/* Smooth reveal animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for multiple elements */
.animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-stagger.animate-in > * {
  opacity: 1;
  transform: translateY(0);
}

.animate-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger > *:nth-child(6) { transition-delay: 0.6s; }

/* Enhanced card animations */
.event-card,
.tournament-card,
.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.event-card.animate-in,
.tournament-card.animate-in,
.gallery-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects for enhanced interactivity */
.event-card:hover,
.tournament-card:hover,
.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Professional Status System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.badge-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.badge-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.badge-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.badge-neutral {
  background: var(--gradient-neutral);
  color: var(--text-secondary);
  border: 1px solid var(--line);
}

/* Status Indicators */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--text-light); }
.status-dot.busy { background: var(--warning); }
.status-dot.error { background: var(--error); }

/* Loading state animations */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

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

/* Professional Progress Indicators */
.progress {
  width: 100%;
  height: 8px;
  background: var(--line-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width var(--transition-slow);
  position: relative;
}

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

/* Professional Shop Hero Styles */
.shop-hero-section {
  position: relative;
  overflow: hidden;
}

.hero-card {
  transition: all var(--transition-slow);
  position: relative;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  border-radius: 24px;
}

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

.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(220, 38, 38, 0.8), 0 0 30px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  transform: translateY(-2px) scale(1.02);
}

/* Enhanced Shop Content */
.shop-content {
  background: var(--bg);
  position: relative;
}

.shop-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Enhanced Text Effects */
.hero-card h1 {
  color: #ffffff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8), 0 0 20px rgba(220, 38, 38, 0.5);
  animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
  0% {
    text-shadow: 0 6px 24px rgba(0,0,0,0.9), 0 0 40px rgba(255,255,255,0.8), 0 0 60px rgba(220, 38, 38, 0.3);
  }
  100% {
    text-shadow: 0 6px 24px rgba(0,0,0,0.9), 0 0 50px rgba(255,255,255,1), 0 0 80px rgba(220, 38, 38, 0.5);
  }
}

/* Enhanced Button Animations */
.btn-primary::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-primary:hover::before {
  left: 100%;
}

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

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

/* Enhanced Header with Glassmorphism */
header { 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-normal);
  animation: slideInFromTop 0.8s ease-out;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0.5;
  pointer-events: none;
}

/* Top Navigation */
.top-nav { 
  background: transparent; 
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  transition: all var(--transition-normal);
  position: relative;
}

.top-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.top-nav a { 
  color: #000; 
  text-decoration: none; 
  transition: all var(--transition-fast); 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  position: relative;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav a:hover { 
  color: #000; 
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.1));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #333);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  border-radius: 2px;
}

.top-nav a:hover::after {
  width: 80%;
}

.nav-category.active { 
  color: #000 !important; 
  font-weight: 700; 
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-category.active::after {
  width: 80%;
  background: linear-gradient(90deg, var(--brand), #333);
}

/* Secondary Navigation */
.secondary-nav { 
  background: rgba(255, 255, 255, 0.95); 
  padding: 0;
  transition: all var(--transition-normal);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  position: relative;
}

.secondary-nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), #333, var(--brand));
  opacity: 0.3;
}

.secondary-nav .container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.secondary-nav ul {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
}

.secondary-nav a { 
  color: #000; 
  text-decoration: none; 
  transition: all var(--transition-fast); 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 8px;
}

.secondary-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.secondary-nav a:hover::before {
  left: 100%;
}

.secondary-nav a:hover:not(.active) { 
  color: #fff !important; 
  background: linear-gradient(135deg, var(--brand), #333) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.secondary-nav a.active {
  background: linear-gradient(135deg, var(--brand), #333) !important;
  color: #fff !important;
  font-weight: 700;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.secondary-nav a.active::after {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Navigation hover effects */
.nav-category {
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-category:hover {
  color: #666 !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .top-nav .container,
  .secondary-nav .container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  
  .top-nav nav ul,
  .secondary-nav nav ul {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .top-nav nav ul li a,
  .secondary-nav nav ul li a {
    font-size: 12px;
  }
}

/* Mobile Hero Layout */
@media (max-width: 768px) {
  .mission-stats {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .hero-main div {
    padding: 40px 20px !important;
  }
  
  .contact-section {
    padding: 30px 20px !important;
  }
  
  .hero-main div > div {
    flex-direction: column !important;
    gap: 15px !important;
  }
}

/* Events Section Styling */
.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.event-card:hover .media img {
  transform: scale(1.05);
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3) !important;
}

/* Mobile Events Layout */
@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  #countdown {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  
  .countdown-item {
    padding: 20px 16px !important;
  }
  
  .countdown-item div:first-child {
    font-size: 32px !important;
  }
  
  /* Mobile Events Hero */
  .events-hero {
    min-height: 80vh !important;
  }
  
  .events-hero .container {
    padding: 40px 20px !important;
  }
  
  .events-hero h1 {
    font-size: 36px !important;
  }
  
  .events-hero p {
    font-size: 16px !important;
  }
  
  .events-hero > div > div {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  /* Mobile Event Cards */
  .event-card.featured .media {
    height: 200px !important;
  }
  
  .event-card.featured .content {
    padding: 20px !important;
  }
  
  .event-card.featured h3 {
    font-size: 20px !important;
  }
  
  .event-card.coming-soon {
    padding: 30px 20px !important;
  }
  
  /* Mobile Countdown */
  .countdown-section {
    padding: 30px 20px !important;
  }
  
  .countdown-section h3 {
    font-size: 20px !important;
  }
  
  /* Mobile CTA Section */
  .events-content > div:last-child {
    padding: 40px 20px !important;
  }
  
  .events-content > div:last-child h3 {
    font-size: 24px !important;
  }
  
  .events-content > div:last-child > div {
    flex-direction: column !important;
    gap: 15px !important;
  }
}

/* Mobile Shop Layout */
@media (max-width: 768px) {
  .shop-hero-section {
    min-height: 70vh !important;
  }
  
  .shop-hero-section .container > div {
    padding: 40px 20px !important;
    margin: 0 10px !important;
  }
  
  .shop-hero-section h2 {
    font-size: 24px !important;
  }
  
  .shop-hero-section p {
    font-size: 16px !important;
  }
  
  .shop-btn {
    padding: 14px 24px !important;
    font-size: 16px !important;
  }
  
  .empty-store-state {
    padding: 40px 20px !important;
  }
  
  .empty-store-icon {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 20px !important;
  }
  
  .empty-store-icon span {
    font-size: 32px !important;
  }
  
  .empty-store-state h3 {
    font-size: 24px !important;
  }
  
  .empty-store-state p {
    font-size: 16px !important;
  }
  
  .empty-store-state > div {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .newsletter-signup {
    padding: 30px 20px !important;
  }
  
  .newsletter-signup h3 {
    font-size: 24px !important;
  }
  
  .newsletter-signup p {
    font-size: 16px !important;
  }
  
  .newsletter-signup form {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .newsletter-signup input {
    min-width: auto !important;
  }
}

/* Professional Button System */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  justify-content: center; 
 
  gap: 8px;
  padding: 14px 28px; 
  border-radius: var(--radius); 
  font-weight: 600; 
  cursor: pointer; 
  border: none;
  transition: all var(--transition-normal); 
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.025em;
  font-size: 15px;
  line-height: 1.5;
  min-height: 48px;
  box-shadow: var(--shadow-sm);
}

/* Star hover effects for buttons */
.btn::after {
  content: '✨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 20px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
  z-index: 2;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: starTwinkle 0.6s ease-out;
}

@keyframes starTwinkle {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(360deg);
    opacity: 0.8;
  }
}

/* Enhanced button hover with star particles */
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Star particle animation for special buttons */
.btn.primary:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 40% 60%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
  animation: starField 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

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

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.btn::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 var(--transition-slow);
}

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

.btn.primary { 
  background: linear-gradient(135deg, var(--brand), #333); 
  color: #fff; 
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover { 
  background: linear-gradient(135deg, #333, #555); 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.btn.outline { 
  background: transparent; 
  color: var(--brand); 
  border: 2px solid var(--brand);
}

.btn.outline:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Button loading state */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced Hero Section */
.hero { 
  position: relative; 
  padding: 0; 
  overflow: hidden;
}

.hero h1 { 
  font-size: clamp(36px, 6vw, 56px); 
  margin: 0 0 12px; 
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .sub { 
  max-width: 800px; 
  margin: 0 auto 20px; 
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-video .video-wrap { 
  position: absolute; 
  inset: 0; 
  overflow: hidden; 
}

.hero-video video { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: top; 
  filter: saturate(1.1) contrast(1.05);
  transition: transform var(--transition-slow);
}

.hero-video:hover video {
  transform: scale(1.02);
}

.hero-video .overlay { 
  position: absolute; 
  inset: 0; 
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.55)); 
  transition: opacity var(--transition-normal);
}

.hero-content { 
  position: relative; 
  z-index: 1; 
  min-height: 85vh; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  color: #fff; 
  padding: clamp(60px, 12vw, 140px) 0; 
}

.hero-content .sub { 
  color: rgba(255,255,255,.9); 
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-content .btn.primary { 
  background: linear-gradient(135deg, #fff, #f8f9fa); 
  color: #111; 
  border: none;
  animation: fadeInUp 1s ease-out 0.6s both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .btn.primary:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Parallax scroll effect */
.parallax-element {
  transform: translateZ(0);
  will-change: transform;
}

/* Floating animation for hero elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-content img {
  animation: float 3s ease-in-out infinite;
  transition: all var(--transition-normal);
}

.hero-content img:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(4px 4px 12px rgba(0,0,0,0.8)) brightness(1.1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scroll-indicator:hover {
  color: #fff;
  transform: translateX(-50%) scale(1.1);
}

/* Sections */
section { padding: 64px 0; scroll-margin-top: 88px; }
.section-title { font-size: clamp(24px, 3vw, 40px); margin-bottom: 20px; text-align: center; }

/* Professional Card System */
.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-light);
}

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

.card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--line-light);
}

.card-body {
  padding: var(--space-xl);
}

.card-footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--line-light);
  background: var(--bg);
}

/* Enhanced Events */
.events { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: var(--space-xl); 
}

.events.single { 
  grid-template-columns: minmax(300px, 720px); 
  justify-content: center; 
}

.event-card { 
  background: #fff; 
  border: 1px solid var(--line); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  display: flex; 
  flex-direction: column; 
  transition: all var(--transition-normal); 
  position: relative;
  animation: fadeInUp 0.6s ease-out;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.event-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15); 
}

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

.event-card .media { 
  position: relative; 
  aspect-ratio: 3/4; 
  overflow: hidden; 
}

.event-card .media img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform var(--transition-slow); 
  display: block; 
}

.event-card:hover .media img { 
  transform: scale(1.08); 
}

.event-card .date-badge { 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  background: linear-gradient(135deg, var(--brand), #333); 
  color: #fff; 
  border-radius: 12px; 
  padding: 8px 12px; 
  line-height: 1; 
  text-align: center; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
  transition: all var(--transition-fast);
  z-index: 2;
}

.event-card:hover .date-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.date-badge .day { 
  display: block; 
  font-weight: 800; 
  font-size: 16px; 
}

.date-badge .mon { 
  font-size: 11px; 
  letter-spacing: .12em; 
  opacity: .9; 
}

.event-card .content { 
  padding: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  position: relative;
  z-index: 1;
}

.event-card h3 { 
  margin: 0; 
  font-size: 20px; 
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition-fast);
}

.event-card:hover h3 {
  color: var(--brand);
}

.event-card .desc { 
  margin: 0; 
  color: var(--muted); 
  line-height: 1.6;
}

.event-card .meta { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px; 
  align-items: center; 
  color: var(--muted); 
  font-size: 13px; 
}

.event-card .meta .dot { 
  width: 4px; 
  height: 4px; 
  background: #cbd5e1; 
  border-radius: 50%; 
  display: inline-block; 
}

.event-card .actions { 
  margin-top: 12px; 
  display: flex; 
  align-items: center; 
  gap: 12px; 
}

.event-card .spots { 
  color: var(--muted); 
  font-size: 13px; 
  font-weight: 500;
}

/* Shop */
.shop-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 40px; }
.shop-hero .content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px; color: #fff; background: rgba(0, 0, 0, 0.3); }
.shop-hero h2 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 8px; }

/* Shop Hero Section with Video */
.shop-hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; background: #f8f9fa; }
.shop-hero-section .video-wrap { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.shop-hero-section video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.7) saturate(1.1) contrast(1.1); }
.shop-hero-section .overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%); }

/* Shop Button Styles */
.shop-btn { display: inline-block; background: #1e40af; color: #fff; padding: 16px 32px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4); }
.shop-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30, 64, 175, 0.6); }

/* Video Hero Button */
.shop-hero-section button {
  background: #1e40af;
  color: #fff;
  border: none;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.shop-hero-section button:hover {
  background: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.6);
}

/* Empty Store State */
.empty-store-state { text-align: center; padding: 80px 20px; background: #f8f9fa; border-radius: 16px; border: 2px dashed #e5e7eb; }
.empty-store-icon { width: 120px; height: 120px; background: linear-gradient(135deg, #1e40af, #3b82f6); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.empty-store-icon span { font-size: 48px; color: #fff; }

/* Newsletter Button Hover */
.newsletter-btn { padding: 12px 24px; background: linear-gradient(135deg, #1e40af, #3b82f6); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.newsletter-btn:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.shop-feature { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.shop-feature h3 { margin: 0 0 8px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product .body { padding: 12px 14px; }
.price { font-weight: 700; margin-top: 6px; }

/* Professional Form System */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-sm);
  font-size: 14px;
}

.input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-secondary);
  color: var(--text);
  transition: all var(--transition-normal);
  font-family: inherit;
}

.input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.input:invalid, textarea:invalid {
  border-color: var(--error);
}

.input:valid, textarea:valid {
  border-color: var(--success);
}

textarea { 
  min-height: 120px; 
  resize: vertical;
  font-family: inherit;
}

/* About */
.about { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: var(--space-2xl); 
  align-items: center; 
}

.about h2 { 
  margin: 0 0 var(--space-md); 
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--text);
}

.about p { 
  margin: 0 0 var(--space-lg); 
  color: var(--text-secondary);
  line-height: 1.7;
}

.form { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: var(--space-lg); 
}

/* Logo card for About */
.logo-card { background:#fff; border:1px solid var(--line); border-radius: 16px; padding: 20px; display:grid; place-items:center; box-shadow: var(--shadow); }
.logo-card img { border-radius: 0; width: 100%; height: auto; max-width: 520px; }
.brand img { border-radius: 0; }

/* Tournament Center */
.tournament-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }

/* Tournament Card Hover Effects */
.tournament-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.tournament-card:hover .tournament-icon {
  transform: scale(1.1) rotate(5deg);
}

.tournament-card .tournament-icon {
  transition: transform 0.3s ease;
}

/* Input Focus Effects */
.tournament-card input:focus,
.tournament-card select:focus {
  border-color: #000 !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
  outline: none;
}

/* Button Hover Effects */
.tournament-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Video Hero Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scroll-indicator {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

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

/* Events Page Specific Styles */
.events-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  overflow: hidden;
}

.events-hero .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.events-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.2);
}

.events-hero .image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(51, 65, 85, 0.8) 100%);
}

/* Event Cards Enhanced */
.event-card.featured:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.event-card.featured:hover .media img {
  transform: scale(1.05);
}

.event-card.coming-soon:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Button Hover Effects */
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.5);
}

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

/* Countdown Item Hover */
.countdown-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator Animation */
.scroll-indicator {
  animation: float 3s ease-in-out infinite;
}
.tournament-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); width: 100%; min-height: 300px; }
.tournament-card h3 { margin: 0 0 20px; font-size: 20px; color: #111827; }
.team-form { display: flex; flex-direction: column; gap: 12px; }
.team-form .input { margin-bottom: 0; }
.tournament-status { text-align: center; }
.status-badge { display: inline-block; background: #10b981; color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.status-badge.active { background: #10b981; }
.tournament-stats { display: flex; justify-content: space-around; margin: 20px 0; }
/* Professional Stats & Data Visualization */
.stats { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: var(--space-xl); 
}

.stat { 
  text-align: center; 
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number { 
  display: block; 
  font-size: clamp(28px, 4vw, 40px); 
  font-weight: 800; 
  color: var(--text);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.stat-label { 
  font-size: 14px; 
  color: var(--text-secondary); 
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  font-weight: 600;
  margin: 0;
}
.next-match { background: #f8fafc; padding: 16px; border-radius: 8px; margin-top: 16px; }
.next-match p { margin: 4px 0; font-size: 14px; }
.leaderboard { display: flex; flex-direction: column; gap: 12px; }
.leaderboard-item { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.leaderboard-item:last-child { border-bottom: none; }
.rank { background: var(--brand); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.team-name { flex: 1; font-weight: 500; }
.points { color: var(--muted); font-weight: 600; }
.schedule { display: flex; flex-direction: column; gap: 12px; }
.schedule-item { display: grid; grid-template-columns: 80px 1fr 60px; gap: 12px; align-items: center; padding: 12px; background: #f8fafc; border-radius: 8px; }
.match-time { font-weight: 600; color: var(--brand); }
.match-teams { font-weight: 500; }
.match-field { font-size: 12px; color: var(--muted); }
.tournament-controls { display: flex; flex-direction: column; gap: 12px; }
.admin-controls { display: flex; flex-direction: column; gap: 12px; }
#adminPanel { position: relative; z-index: 10; }
.group-standings { margin-bottom: 30px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.group-title { font-weight: 600; margin-bottom: 16px; color: #111827; font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid #f1f5f9; }
.groups-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; }
.group-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.group-table th, .group-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.group-table th { background: #f8fafc; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #374151; }
.group-table td:first-child { text-align: center; font-weight: 600; color: #111827; }
.group-table td:nth-child(2) { min-width: 120px; font-weight: 500; }
.group-table td:nth-child(n+3) { text-align: center; min-width: 40px; font-weight: 500; }
.group-table tr:hover { background: #f8fafc; }
.group-table tr:last-child td { border-bottom: none; }
.match-item { display: grid; grid-template-columns: 80px 1fr 100px 80px; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.2s ease; }
.match-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.match-time { font-weight: 600; color: var(--brand); font-size: 14px; }
.match-teams { font-weight: 500; font-size: 15px; color: var(--text); }
.match-score { display: flex; gap: 8px; align-items: center; justify-content: center; }
.score-input { width: 40px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 6px; text-align: center; font-weight: 500; transition: border-color 0.2s ease; }
.score-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 2px rgba(17, 17, 17, 0.1); }
.update-score-btn { padding: 8px 16px; font-size: 12px; font-weight: 600; background: var(--brand); color: white; border: none; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.update-score-btn:hover { background: #333; transform: translateY(-1px); }
.match-status { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 4px; }
.match-status.completed { background: #dcfce7; color: #166534; }
.match-status.scheduled { background: #fef3c7; color: #92400e; }
.knockout-bracket { display: flex; flex-direction: column; gap: 30px; }
.knockout-round { text-align: center; }
.knockout-round h4 { color: var(--brand); margin-bottom: 20px; font-size: 20px; }
.knockout-match { display: grid; grid-template-columns: 80px 1fr 100px 80px; gap: 16px; align-items: center; padding: 16px; background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid var(--brand); border-radius: 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition: all 0.2s ease; }
.knockout-match:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.knockout-match .match-time { font-weight: 600; color: var(--brand); font-size: 14px; }
.knockout-match .match-teams { font-weight: 500; font-size: 15px; color: var(--text); }
.knockout-match .match-score { display: flex; gap: 8px; align-items: center; justify-content: center; }

/* Gallery */
.gallery-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.gallery-item .media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.gallery-item .media img, .gallery-item .media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .media .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: #fff; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.gallery-item .content { padding: 16px; }
.gallery-item h4 { margin: 0 0 8px; font-size: 16px; color: var(--brand); }
.gallery-item .event-name { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.gallery-item .description { color: var(--text); font-size: 14px; line-height: 1.5; }
.gallery-item .date { color: var(--muted); font-size: 12px; margin-top: 8px; }
.gallery-filters { display: flex; gap: 12px; margin-bottom: 24px; justify-content: center; flex-wrap: wrap; }
.filter-btn { padding: 8px 16px; border: 1px solid var(--line); background: #fff; border-radius: 20px; cursor: pointer; transition: all .2s ease; font-size: 14px; }
.filter-btn.active, .filter-btn:hover { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.gallery-load-more { margin-top: 20px; }
.gallery-load-more .btn { transition: all .2s ease; }
.gallery-load-more .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Contact Us */
.contact-card:hover { transform: translateY(-4px); }

/* Enhanced Footer */
footer { 
  border-top: 1px solid var(--line); 
  padding: 40px 0; 
  text-align: center; 
  color: var(--muted); 
  font-size: 14px; 
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

/* Subtle background pattern for body */
body {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
  .shop-feature { flex-direction: column; }
  .match-item { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .match-item > div { margin-bottom: 8px; }
  .knockout-match { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .knockout-match > div { margin-bottom: 8px; }
  .groups-container { grid-template-columns: 1fr; }
  .group-table { font-size: 12px; }
  .group-table th, .group-table td { padding: 8px 4px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  
  /* Mobile responsive for hero-about layout */
  .hero-about-wrapper .container { 
    grid-template-columns: 1fr !important; 
    gap: 40px !important; 
    padding: 40px 0 !important; 
  }
  .hero-content { text-align: center !important; }
  .about-content { 
    padding: 30px !important; 
    margin-top: 20px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce){
  .hero-about-wrapper video{ display:none; }
  .hero-about-wrapper .overlay{ background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.75)); }
  .hero-about-wrapper{ background:#000 url('https://images.unsplash.com/photo-1517927033932-b3d18e61fb3a?q=80&w=1400&auto=format&fit=crop') center/cover no-repeat; }
  .tournament-video video{ display:none; }
  .tournament-video .overlay{ background: linear-gradient(to bottom, rgba(0,0,0,.7), rgba(0,0,0,.8)); }
  .tournament-video{ background:#f8fafc; }
  
  .retro-stars { animation: none; }
  .retro-logo { animation: none; }
  .retro-soccer-ball, .retro-soccer-ball-2 { animation: none; }
  .retro-stars-decoration, .retro-stars-decoration-2 { animation: none; }
}
html { scroll-behavior: smooth; }

/* Hover effects for countdown items */
.countdown-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4) !important;
  border-color: rgba(255,255,255,0.5) !important;
}

/* Responsive adjustments for countdown */
@media (max-width: 768px) {
  .countdown-container {
    padding: 25px !important;
    margin-bottom: 30px !important;
  }
  
  #countdown {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    max-width: 400px !important;
  }
  
  .countdown-item {
    padding: 20px !important;
  }
  
  .countdown-item div:first-child {
    font-size: 32px !important;
  }
}

@media (max-width: 480px) {
  #countdown {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Loading Spinners and Progress Indicators */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner-large {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.button-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.button-loading .loading-spinner {
  margin-right: 8px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
}

.toast {
  background: white;
  border-left: 4px solid #3498db;
  padding: 16px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  animation: slideIn 0.3s ease forwards;
  max-width: 350px;
}

.toast.success {
  border-left-color: #2ecc71;
}

.toast.error {
  border-left-color: #e74c3c;
}

.toast.warning {
  border-left-color: #f39c12;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.toast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.toast-title {
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #7f8c8d;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-message {
  color: #34495e;
  margin: 0;
  line-height: 1.4;
}

/* Shop Section Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* Shop Section Styles */
.shop-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #f8f9fa;
}

.video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7) saturate(1.1) contrast(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%);
}

/* Product Preview Cards */
.product-preview-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.product-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.product-preview-card::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;
}

.product-preview-card:hover::before {
  left: 100%;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  position: relative;
}

.newsletter-input {
  flex: 1;
  min-width: 250px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design for Shop */
@media (max-width: 768px) {
  .product-preview-card {
    padding: 24px;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .newsletter-input {
    min-width: 100%;
  }
}

/* Mobile navigation and header tightening */
@media (max-width: 768px) {
  /* Header container spacing */
  header .container { padding-top: 4px !important; padding-bottom: 4px !important; }

  /* Brand sizing */
  header .brand img { height: 24px !important; }
  header .brand span { font-size: 14px !important; letter-spacing: 0.3px; }

  /* Top nav category pills - force horizontal layout */
  .top-nav { 
    display: flex !important; 
    flex-wrap: nowrap !important; 
    gap: 4px !important; 
    justify-content: center !important;
  }
  .top-nav .nav-category {
    font-size: 11px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .top-nav .nav-category span { font-size: 12px !important; }

  /* Secondary nav group (Home / Events / Tournament) */
  .secondary-nav {
    margin-top: 4px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }
  .secondary-nav a.secondary-nav-link {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }

  /* Buttons generally a bit smaller on mobile */
  .btn { font-size: 13px !important; padding: 8px 12px !important; }
}

/* iOS Safari safe viewport height for hero sections */
@supports (height: 100svh) {
  .shop-hero-section,
  .events-hero,
  .hero,
  .tournament-hero {
    min-height: 100svh;
  }
}

/* Fallback for browsers without svh */
.shop-hero-section,
.events-hero,
.hero,
.tournament-hero { min-height: 100vh; }

/* Ultra-small phones (<=375px wide) stronger overrides */
@media (max-width: 375px) {
  header .container { padding-top: 2px !important; padding-bottom: 2px !important; }
  header .brand img { height: 20px !important; }
  header .brand span { font-size: 12px !important; }

  .top-nav { gap: 2px !important; }
  .top-nav .nav-category { font-size: 10px !important; padding: 4px 6px !important; line-height: 1.1 !important; }
  .top-nav .nav-category span { font-size: 10px !important; }

  .secondary-nav { margin-top: 2px !important; padding: 4px 6px !important; gap: 2px !important; }
  .secondary-nav li { margin: 0 2px 2px 0 !important; }
  .secondary-nav a.secondary-nav-link { font-size: 10px !important; padding: 4px 6px !important; line-height: 1.1 !important; }

  .btn { font-size: 12px !important; padding: 6px 10px !important; }
}

/* Force-remove excess gaps under header on iOS */
@media (max-width: 768px) {
  body { padding-top: 0 !important; }
  header { margin-bottom: 8px !important; background: #fff !important; }
  /* Beat inline styles on nav pills and secondary links */
  a.nav-category[style], .secondary-nav a.secondary-nav-link[style] {
    font-size: inherit !important;
    padding: inherit !important;
    letter-spacing: 0.5px !important;
  }
  /* Smaller hero headings on phones */
  .hero h1, .events-hero h1, .shop-hero-section h1, .tournament-hero h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.1 !important;
    margin-top: 8px !important;
  }

  /* Prevent hero logo from overlapping heading on mobile */
  .hero img.parallax-element { height: 72px !important; pointer-events: none; }
  .hero .hero-main h1,
  .hero .hero-main .sub,
  .hero .hero-main .btn,
  .hero .hero-main a.btn { position: relative; z-index: 3 !important; }

  /* Keep logo visible; make it smaller and push content down to avoid overlap */
  .hero img.parallax-element { height: 64px !important; }
  .hero .hero-main > div { padding-top: 120px !important; }
  .hero .hero-main { margin-top: 0 !important; }

  /* Contact page mobile layout - stack image and form vertically */
  #contact {
    flex-direction: column !important;
    min-height: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
  }
  #contact .parallax-element {
    flex: none !important;
    height: 200px !important;
    order: 1 !important;
  }
  #contact .animate-stagger {
    flex: none !important;
    padding: 40px 20px !important;
    order: 2 !important;
  }
}

/* Slightly smaller phones (<=430px) */
@media (max-width: 430px) {
  .top-nav { gap: 10px !important; }
  .top-nav .nav-category { font-size: 13px !important; padding: 7px 11px !important; }
  .secondary-nav { padding: 10px 12px !important; }
  .secondary-nav a.secondary-nav-link { font-size: 13px !important; padding: 7px 9px !important; }
}
