/* ============================================
   TENS REZERVASYON - ULTRA PREMIUM DESIGN
   Version: 2.0 - Enterprise Grade
   
   Design System: Apple-inspired Minimalism + Sport Luxury
   Typography: Playfair Display + DM Sans + SF Pro
   Colors: Vibrant Red Gradient + Deep Blacks + Pure Whites
   Effects: Advanced Glassmorphism + Fluid Animations + 3D Transforms
   Mobile: Touch-optimized + Progressive Enhancement
   Security: CSP-compliant + No inline styles
============================================ */

:root {
  /* Core Brand Colors - Enhanced Contrast */
  --primary: #E31E24;
  --primary-dark: #B30000;
  --primary-light: #FF4D4D;
  --primary-ultra: #FF6B6B;
  
  /* Advanced Gradients - Multi-stop Premium */
  --gradient-primary: linear-gradient(135deg, #E31E24 0%, #B30000 50%, #8B0000 100%);
  --gradient-soft: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(179, 0, 0, 0.05) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(227, 30, 36, 0.3) 0%, transparent 70%);
  --gradient-mesh: radial-gradient(at 40% 20%, rgba(227, 30, 36, 0.15) 0px, transparent 50%), 
                   radial-gradient(at 80% 0%, rgba(139, 0, 0, 0.12) 0px, transparent 50%), 
                   radial-gradient(at 0% 50%, rgba(227, 30, 36, 0.08) 0px, transparent 50%);
  
  /* Accent Colors */
  --accent-green: #10B981;
  --accent-blue: #3B82F6;
  --accent-orange: #F59E0B;
  --accent-purple: #8B5CF6;
  
  /* Neutral Palette - High Contrast */
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --black: #000000;
  
  /* Typography Stack */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  
  /* Fluid Spacing System */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(0.75rem, 1.5vw, 1rem);
  --space-lg: clamp(1rem, 2vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);
  --space-2xl: clamp(2rem, 4vw, 3rem);
  --space-3xl: clamp(3rem, 6vw, 5rem);
  
  /* Advanced Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.08), 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px 0 rgba(0, 0, 0, 0.12), 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 30px 60px 0 rgba(0, 0, 0, 0.15), 0 12px 24px 0 rgba(0, 0, 0, 0.12);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Glow Effects */
  --glow-primary: 0 0 20px rgba(227, 30, 36, 0.4), 0 0 40px rgba(227, 30, 36, 0.2);
  --glow-success: 0 0 20px rgba(16, 185, 129, 0.4);
  
  /* Blur & Backdrop */
  --blur-xs: blur(4px);
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --blur-xl: blur(40px);
  
  /* Animation Curves - Professional */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Transition Timing */
  --duration-instant: 100ms;
  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  
  /* Border Radius - Organic */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* Z-index Layers */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* ============================================
   MODERN RESET & BASE
============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

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

::selection {
  background: var(--primary);
  color: var(--white);
}

/* ============================================
   ADVANCED ANIMATED BACKGROUND
============================================ */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 50%, #FAFAFA 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: orbFloat 25s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.5) 0%, transparent 70%);
  top: -15%;
  right: -15%;
  animation-delay: 0s;
  animation-duration: 30s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 0, 0, 0.4) 0%, transparent 70%);
  bottom: -10%;
  left: -10%;
  animation-delay: -10s;
  animation-duration: 35s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -20s;
  animation-duration: 40s;
}

.mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gradient-mesh);
  opacity: 0.6;
  animation: meshPulse 20s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(40px, -40px) scale(1.1) rotate(90deg);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.95) rotate(180deg);
  }
  75% {
    transform: translate(30px, -20px) scale(1.05) rotate(270deg);
  }
}

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

/* ============================================
   NAVIGATION - Premium Glass
============================================ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--blur-md) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  animation: navSlideDown 0.6s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  user-select: none;
}

.brand-icon {
  width: clamp(44px, 8vw, 56px);
  height: clamp(44px, 8vw, 56px);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  animation: brandPulse 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.brand-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: brandShine 3s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: var(--shadow-lg), var(--glow-primary); 
  }
  50% { 
    transform: scale(1.03); 
    box-shadow: var(--shadow-xl), 0 0 30px rgba(227, 30, 36, 0.5); 
  }
}

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

.brand-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-text span {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--gray-600);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.week-selector {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.week-btn {
  width: clamp(36px, 8vw, 42px);
  height: clamp(36px, 8vw, 42px);
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  font-size: 0.875rem;
}

.week-btn:hover:not(:disabled) {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.week-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.week-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.week-display {
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
  min-width: clamp(120px, 20vw, 180px);
  text-align: center;
  letter-spacing: 0.01em;
}

.icon-btn {
  width: clamp(42px, 8vw, 48px);
  height: clamp(42px, 8vw, 48px);
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-fast) var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 1rem;
}

.icon-btn:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: rotate(180deg) scale(1.05);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.icon-btn:active {
  transform: rotate(180deg) scale(0.95);
}

/* ============================================
   MAIN CONTENT - Ultra Premium
============================================ */
.main-content {
  padding: var(--space-3xl) 0;
  min-height: calc(100vh - 100px);
}

.hero {
  text-align: center;
  margin-bottom: var(--space-3xl);
  animation: heroFadeUp 0.8s var(--ease-out-expo) 0.2s both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--gradient-soft);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(227, 30, 36, 0.2);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(227, 30, 36, 0.6);
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes titleShimmer {
  0%, 100% { 
    background-position: 0% 50%; 
  }
  50% { 
    background-position: 100% 50%; 
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.375rem);
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================
   PROGRESS STEPS - Interactive
============================================ */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3xl);
  gap: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: stepsFadeIn 0.8s var(--ease-out-expo) 0.4s both;
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
  z-index: 1;
}

.step-circle {
  width: clamp(48px, 10vw, 64px);
  height: clamp(48px, 10vw, 64px);
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray-400);
  transition: all var(--duration-base) var(--ease-out-expo);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: block;
  transition: opacity var(--duration-fast);
}

.step-check {
  position: absolute;
  opacity: 0;
  transform: scale(0);
  transition: all var(--duration-base) var(--ease-spring);
}

.step.active .step-circle {
  background: var(--gradient-primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  transform: scale(1.1);
}

.step.active .step-num {
  opacity: 1;
}

.step.completed .step-circle {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: var(--white);
  box-shadow: var(--shadow-md), var(--glow-success);
}

.step.completed .step-num {
  opacity: 0;
}

.step.completed .step-check {
  opacity: 1;
  transform: scale(1);
}

.step-label {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 700;
  color: var(--gray-500);
  text-align: center;
  transition: color var(--duration-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step.active .step-label {
  color: var(--primary);
}

.step.completed .step-label {
  color: var(--accent-green);
}

.step-line {
  width: clamp(60px, 15vw, 100px);
  height: 3px;
  background: var(--gray-300);
  margin: 0 var(--space-sm);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.step-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--duration-slow) var(--ease-out-expo);
  border-radius: var(--radius-full);
}

.step.completed + .step-line::after {
  width: 100%;
}

/* ============================================
   SECTIONS - Modern Layout
============================================ */
.section {
  margin-bottom: var(--space-3xl);
  animation: sectionFadeIn 0.8s var(--ease-out-expo);
  transition: visibility 0s, opacity 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
  visibility: visible;
  opacity: 1;
  height: auto;
  position: relative;
}

.section.hidden {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

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

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.section-desc {
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes statusPulse {
  0%, 100% { 
    opacity: 1; 
  }
  50% { 
    opacity: 0.5; 
  }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  box-shadow: var(--shadow-sm);
}

.back-btn:hover {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
  transform: translateX(-4px);
  box-shadow: var(--shadow-md);
}

.back-btn i {
  transition: transform var(--duration-fast);
}

.back-btn:hover i {
  transform: translateX(-4px);
}

/* ============================================
   COURTS GRID - Premium Cards
============================================ */
.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  animation: gridFadeIn 0.8s var(--ease-out-expo) 0.3s both;
}

@keyframes gridFadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

.court-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  border: 2px solid rgba(0, 0, 0, 0.06);
  transition: all var(--duration-base) var(--ease-out-expo);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.court-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
  z-index: 0;
}

.court-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(227, 30, 36, 0.15);
}

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

.court-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--white) 0%, rgba(227, 30, 36, 0.02) 100%);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(227, 30, 36, 0.1);
}

.court-card > * {
  position: relative;
  z-index: 1;
}

.featured-tag {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  z-index: 2;
  box-shadow: var(--shadow-md);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: tagBounce 2s ease-in-out infinite;
}

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

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

.court-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-200);
  line-height: 1;
  letter-spacing: -0.05em;
}

.court-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid rgba(16, 185, 129, 0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.court-status.active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
}

.court-status.inactive {
  background: rgba(163, 163, 163, 0.1);
  color: var(--gray-500);
  border-color: rgba(163, 163, 163, 0.2);
}

.court-visual {
  margin-bottom: var(--space-lg);
  perspective: 1000px;
  height: 140px;
}

.court-3d {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.court-card:hover .court-3d {
  transform: rotateX(5deg) rotateY(-5deg);
}

.court-surface {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2D5F3E 0%, #1E4D2B 100%);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2), var(--shadow-md);
  overflow: hidden;
}

.court-surface::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.02) 20px
  );
}

.net {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%);
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
}

.net::before,
.net::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.net::before {
  left: 10%;
  transform: translateY(-50%);
}

.net::after {
  right: 10%;
  transform: translateY(-50%);
}

.line {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.4);
}

.baseline-top,
.baseline-bottom {
  width: 100%;
  height: 2px;
}

.baseline-top {
  top: 10%;
}

.baseline-bottom {
  bottom: 10%;
}

.service-left,
.service-right {
  width: 2px;
  height: 40%;
  top: 30%;
}

.service-left {
  left: 30%;
}

.service-right {
  right: 30%;
}

.center {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.court-info {
  margin-bottom: var(--space-lg);
}

.court-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.court-location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.court-location i {
  color: var(--primary);
  font-size: 1rem;
}

.court-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--gray-200);
}

.feature i {
  font-size: 0.875rem;
  color: var(--primary);
}

.court-stats {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out-expo);
  box-shadow: var(--shadow-lg), var(--glow-primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.select-btn::before {
  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 var(--duration-slow), height var(--duration-slow);
}

.select-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(227, 30, 36, 0.4);
}

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

.select-btn:active {
  transform: translateY(0);
}

.select-btn i {
  transition: transform var(--duration-fast);
}

.select-btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   TIME SLOTS - Calendar Grid
============================================ */
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--gray-200);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-800);
}

.legend-dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 3px solid transparent;
  flex-shrink: 0;
}

.legend-dot.available {
  background: var(--white);
  border-color: var(--gray-400);
}

.legend-dot.occupied {
  background: var(--gray-300);
  border-color: var(--gray-400);
}

/* ============================================
   CALENDAR GRID - Premium Weekly View
============================================ */
.calendar-container {
  display: grid;
  gap: var(--space-lg);
  background: transparent;
  padding: 0;
}

.day-column {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: all var(--duration-base) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.day-column:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.day-column.today {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(227, 30, 36, 0.15);
}

.day-column.today .day-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-ultra) 100%);
}

.day-header {
  padding: 1rem;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  flex-shrink: 0;
}

.day-name {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.25rem;
  opacity: 0.95;
}

.day-date {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.slots-list {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.slots-list::-webkit-scrollbar {
  width: 6px;
}

.slots-list::-webkit-scrollbar-track {
  background: transparent;
}

.slots-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.slots-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.timeslot {
  height: 56px;           /* min-height yerine */
  padding: 0 1.5rem;      /* dikey paddingi kaldr */
  line-height: 1;      /* bire bir */
  letter-spacing: 0.02em; /* dr */
  font-weight: 600;

  transform: translateZ(0);
  will-change: transform;

  -webkit-font-smoothing: antialiased;
}

.timeslot:not(.occupied) {
  background: linear-gradient(135deg, var(--white) 0%, rgba(227, 30, 36, 0.03) 100%);
}

.timeslot:hover:not(.occupied) {
  background: var(--gradient-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 0 3px rgba(227, 30, 36, 0.1);
  z-index: 2;
}

.timeslot:active:not(.occupied) {
  transform: scale(0.98);
}

.timeslot.occupied {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.65;
  text-decoration: none;
  gap: 4px;
  flex-direction: column;
  position: relative;
}

.timeslot.occupied::after {
  content: 'DOLU';
  position: static;
  top: 50%;
  left: 0;
  right: 0;  
  font-size: 0.625rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--gray-400);
  text-decoration: none;
}

.slots-list:empty::after {
  content: 'Bu gn iin slot bulunmuyor';
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  color: var(--gray-400);
  font-size: 0.9375rem;
  font-weight: 700;
  font-style: italic;
}

.calendar-container:empty::after {
  content: 'Takvim ykleniyor...';
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl);
  color: var(--gray-500);
  font-size: 1.125rem;
  font-weight: 600;
}

/* ============================================
   MODAL - Full-Screen Optimized
============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.modal.active {
  display: flex;
  animation: modalFadeIn var(--duration-base) ease-out;
}

@keyframes modalFadeIn {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: var(--blur-lg) saturate(120%);
  animation: backdropFade var(--duration-base) ease-out;
}

@keyframes backdropFade {
  from { 
    opacity: 0; 
  }
  to { 
    opacity: 1; 
  }
}

.modal-dialog {
  position: relative;
  background: var(--white);
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp var(--duration-slow) var(--ease-out-expo);
  -webkit-overflow-scrolling: touch;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: clamp(44px, 10vw, 56px);
  height: clamp(44px, 10vw, 56px);
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--blur-sm);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  z-index: 10;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  box-shadow: var(--shadow-lg);
}

.modal-close:hover {
  background: var(--gray-900);
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-xl);
}

.modal-close:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-header {
  text-align: center;
  padding: clamp(2rem, 8vw, 3rem) var(--space-xl) var(--space-2xl);
  background: var(--gradient-primary);
  color: var(--white);
  flex-shrink: 0;
}

.modal-icon {
  width: clamp(72px, 15vw, 96px);
  height: clamp(72px, 15vw, 96px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: var(--blur-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: clamp(2rem, 6vw, 3rem);
  animation: iconFloat 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: clamp(1rem, 3vw, 1.125rem);
  opacity: 0.95;
  font-weight: 500;
  line-height: 1.5;
}

.reservation-summary {
  padding: var(--space-xl);
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
  flex-shrink: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-md);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-fast);
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.summary-icon {
  width: clamp(44px, 10vw, 52px);
  height: clamp(44px, 10vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  flex-shrink: 0;
}

.summary-content {
  flex: 1;
  min-width: 0;
}

.summary-label {
  display: block;
  font-size: clamp(0.625rem, 2vw, 0.75rem);
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.summary-value {
  display: block;
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  word-break: break-word;
}

.iframe-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
}

.iframe-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  background: var(--white);
  z-index: 10;
}

.iframe-loader.hidden {
  display: none;
}

.loader-spinner {
  width: clamp(50px, 12vw, 64px);
  height: clamp(50px, 12vw, 64px);
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.iframe-loader p {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  color: var(--gray-600);
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  flex: 1;
}

.modal-footer {
  padding: var(--space-xl);
  background: var(--gray-50);
  border-top: 2px solid var(--gray-200);
  flex-shrink: 0;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(227, 30, 36, 0.1);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  font-weight: 700;
  border: 2px solid rgba(227, 30, 36, 0.2);
  line-height: 1.5;
}

.info-box i {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   TOAST NOTIFICATIONS - Modern
============================================ */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: clamp(280px, 50vw, 380px);
  max-width: 90vw;
  transform: translateX(calc(100% + var(--space-xl) * 2));
  transition: transform var(--duration-base) var(--ease-out-expo);
  z-index: var(--z-toast);
  border: 2px solid var(--gray-200);
}

.toast.show {
  transform: translateX(0);
  animation: toastBounceIn var(--duration-slow) var(--ease-spring);
}

@keyframes toastBounceIn {
  0% { 
    transform: translateX(calc(100% + var(--space-xl) * 2)); 
  }
  60% { 
    transform: translateX(-20px); 
  }
  80% { 
    transform: translateX(10px); 
  }
  100% { 
    transform: translateX(0); 
  }
}

.toast-icon {
  width: clamp(48px, 10vw, 56px);
  height: clamp(48px, 10vw, 56px);
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.toast-icon.error {
  background: rgba(227, 30, 36, 0.15);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(227, 30, 36, 0.3);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-content strong {
  display: block;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
}

.toast-content p {
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  color: var(--gray-600);
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.hidden {
  display: none !important;
}

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

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

/* Large Desktop: 1440px+ - 7 days */
@media (min-width: 1440px) {
  .container {
    max-width: 1440px;
  }
  
  .courts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .calendar-container {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* Desktop: 1200px - 1439px - 5 days */
@media (max-width: 1439px) and (min-width: 1200px) {
  .hero-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
  }
  
  .calendar-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Small Desktop: 992px - 1199px - 4 days */
@media (max-width: 1199px) and (min-width: 992px) {
  .calendar-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 768px - 991px - 2 days */
@media (max-width: 991px) and (min-width: 768px) {
  .nav-content {
    gap: var(--space-lg);
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .courts-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  }
  
  .calendar-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .progress-steps {
    transform: scale(0.9);
  }
}

/* Desktop Modal View: 768px+ */
@media (min-width: 768px) {
  .modal {
    padding: var(--space-xl);
  }
  
  .modal-dialog {
    max-width: 1200px;
    max-height: 95vh;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
  }
  
  .iframe-wrapper {
    height: 600px;
    min-height: 500px;
  }
}

/* Mobile Large: 640px - 767px - 1 day */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .nav-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .week-selector {
    flex: 1;
  }
  
  .courts-grid {
    grid-template-columns: 1fr;
  }
  
  .calendar-container {
    grid-template-columns: 1fr;
  }
  
  .day-column {
    min-width: 100%;
    height: 100%;
  }
  
  .day-header {
    padding: 1.25rem;
  }
  
  .day-name {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .day-date {
    font-size: 2.25rem;
  }
  
  .slots-list {
    min-height: auto;
    max-height: none;
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .timeslot {
    font-size: 1.25rem;
    padding: 1.5rem;
    min-height: 64px;
    font-weight: 800;
  }
  
  .progress-steps {
    transform: scale(0.85);
    margin-bottom: var(--space-2xl);
  }
  
  .step-line {
    width: clamp(40px, 10vw, 60px);
  }
  
  .toast {
    bottom: var(--space-lg);
    right: var(--space-lg);
    left: var(--space-lg);
    min-width: auto;
  }
  
  .iframe-wrapper {
    min-height: calc(100vh - 280px);
    height: auto;
  }
}

/* Mobile: 320px - 639px */
@media (max-width: 639px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .week-display {
    min-width: 100px;
    font-size: 0.75rem;
    padding: 0 var(--space-sm);
  }
  
  .hero-badge {
    font-size: 0.6875rem;
  }
  
  .calendar-container {
    gap: var(--space-md);
  }
  
  .day-header {
    padding: 1rem;
  }
  
  .day-name {
    font-size: 0.8125rem;
  }
  
  .day-date {
    font-size: 2rem;
  }
  
  .slots-list {
    padding: 0.875rem;
    gap: 0.625rem;
  }
  
  .timeslot {
    font-size: 1.25rem;
    padding: 1.5rem;
    min-height: 64px;
    font-weight: 800;
    letter-spacing: 0.05em;
  }
  
  .court-num {
    font-size: 2.5rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Small: 320px - 479px */
@media (max-width: 479px) {
  .progress-steps {
    transform: scale(0.75);
  }
  
  .step-circle {
    width: 44px;
    height: 44px;
  }
  
  .modal-close {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
  
  .legend {
    gap: var(--space-lg);
    padding: var(--space-md);
  }
  
  .legend-item {
    font-size: 0.875rem;
  }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
  .nav-bar,
  .bg-layer,
  .progress-steps,
  .select-btn,
  .back-btn,
  .icon-btn,
  .modal,
  .toast {
    display: none !important;
  }
  
  body {
    background: var(--white);
  }
  
  .court-card {
    page-break-inside: avoid;
  }
  
  .calendar-container {
    grid-template-columns: repeat(7, 1fr);
  }
}

/* ============================================
   REDUCED MOTION - Accessibility
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .orb,
  .mesh,
  .brand-icon,
  .brand-icon::before,
  .badge-dot,
  .status-dot,
  .loader-spinner,
  .modal-icon {
    animation: none !important;
  }
  
  .hero-title {
    background: var(--gray-900);
    -webkit-text-fill-color: initial;
  }
}

/* ============================================
   HIGH CONTRAST MODE - Accessibility
============================================ */
@media (prefers-contrast: high) {
  :root {
    --gray-300: #999999;
    --gray-400: #777777;
    --gray-500: #555555;
  }
  
  .court-card,
  .timeslot,
  .modal-dialog,
  .day-column {
    border-width: 3px;
  }
  
  .select-btn,
  .back-btn {
    border: 3px solid var(--gray-900);
  }
  
  .timeslot:not(.occupied) {
    border-width: 3px;
  }
  
  .legend-dot {
    border-width: 4px;
  }
}
/* =====================================================
   ULTRA TENNIS SCENE v4  PRODUCTION SAFE
   - GPU friendly
   - UI-safe (takvimi KAPATMAZ)
   - Physics tuned
===================================================== */

.tennis-scene {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto 2rem;
  display: block;

  transform: perspective(900px) rotateX(4deg);
  transform-origin: center;

  contain: layout paint;
  backface-visibility: hidden;

  /*  KRTK */
  pointer-events: none;
  z-index: 0;
}

/* ===============================
   TENNIS BALL
================================ */

.tennis-ball {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;

  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45));

  animation: ball-flight 1.3s cubic-bezier(.38,0,.22,1) infinite;
}

/* Shadow = ykseklik algs */
.ball-shadow {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;

  filter: blur(3px);
  animation: ball-shadow 1.3s cubic-bezier(.38,0,.22,1) infinite;
}

/* === Ball Physics (Parabolic) === */
@keyframes ball-flight {
  0%   { transform: translate3d(160px,230px,0) scale(1) rotate(0deg); }
  20%  { transform: translate3d(300px,150px,0) scale(1.15,.85) rotate(140deg); }
  40%  { transform: translate3d(460px,95px,0)  scale(.95,1.05) rotate(260deg); }
  50%  { transform: translate3d(540px,75px,0)  scale(1.05,.95) rotate(320deg); }
  60%  { transform: translate3d(620px,95px,0)  scale(.95,1.05) rotate(380deg); }
  80%  { transform: translate3d(780px,150px,0) scale(1.15,.85) rotate(520deg); }
  100% { transform: translate3d(920px,230px,0) scale(1) rotate(640deg); }
}

@keyframes ball-shadow {
  0%   { transform: translate3d(160px,0,0) scale(1);   opacity:.45 }
  20%  { transform: translate3d(300px,0,0) scale(.75); opacity:.25 }
  40%  { transform: translate3d(460px,0,0) scale(.55); opacity:.18 }
  50%  { transform: translate3d(540px,0,0) scale(.45); opacity:.14 }
  60%  { transform: translate3d(620px,0,0) scale(.55); opacity:.18 }
  80%  { transform: translate3d(780px,0,0) scale(.75); opacity:.25 }
  100% { transform: translate3d(920px,0,0) scale(1);   opacity:.45 }
}

/* ===============================
   RACKETS  ANTICIPATION + FOLLOW
================================ */

.racket-left,
.racket-right {
  will-change: transform;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.racket-left {
  transform-origin: 240px 260px;
  animation: hit-left 1.3s cubic-bezier(.55,-0.25,.3,1.35) infinite;
}

.racket-right {
  transform-origin: 760px 260px;
  animation: hit-right 1.3s cubic-bezier(.55,-0.25,.3,1.35) infinite;
}

@keyframes hit-left {
  0%,14%   { transform: rotate(8deg); }
  18%      { transform: rotate(-90deg) translateX(-10px); }
  24%      { transform: rotate(18deg) translateX(4px); }
  100%     { transform: rotate(8deg); }
}

@keyframes hit-right {
  0%,66%   { transform: rotate(-8deg); }
  74%      { transform: rotate(90deg) translateX(10px); }
  80%      { transform: rotate(-18deg) translateX(-4px); }
  100%     { transform: rotate(-8deg); }
}

/* ===============================
   PLAYER BODY REACTION
================================ */

.player-left,
.player-right {
  will-change: transform;
  animation: body-shift 1.3s cubic-bezier(.4,0,.6,1) infinite;
}

@keyframes body-shift {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-10px); }
  50%  { transform: translateY(-16px); }
  70%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* ===============================
   IMPACT FLASH (SYNCED)
================================ */

.impact {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: impact-pop 1.3s ease-out infinite;
}

@keyframes impact-pop {
  0%,16%  { opacity:0; }
  18%     { opacity:1; transform: translate(300px,205px) scale(1.3); }
  22%     { opacity:0; transform: translate(320px,205px) scale(1.9); }

  72%     { opacity:0; }
  74%     { opacity:1; transform: translate(680px,205px) scale(1.3); }
  78%     { opacity:0; transform: translate(660px,205px) scale(1.9); }

  100%    { opacity:0; }
}

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

@media (max-width: 768px) {
  .tennis-scene {
    transform: perspective(700px) rotateX(3deg);
  }
}

@media (max-width: 480px) {
  .tennis-scene {
    transform: perspective(550px) rotateX(2deg);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .tennis-scene * {
    animation: none !important;
    transform: none !important;
  }
}

/* ============================================
   TELEFON DORULAMA POPUP STLLER
   Bu dosyay style-premium.css'in sonuna ekle
   veya ayr olarak dahil et
============================================ */

/* Popup Overlay */
.verify-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Popup Content */
.verify-popup-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.verify-popup-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  color: #1a365d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.verify-popup-content h3 i {
  color: #3182ce;
}

/* Info Box */
.verify-info {
  background: linear-gradient(135deg, #ebf8ff 0%, #e6fffa 100%);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.verify-info p {
  margin: 4px 0;
  color: #2d3748;
}

.verify-info p:first-child {
  font-size: 1.1rem;
  color: #1a365d;
}

/* Question */
.verify-question {
  text-align: center;
  margin-bottom: 24px;
}

.verify-question p {
  font-size: 1.1rem;
  color: #4a5568;
  margin: 0;
}

/* Phone Section */
.verify-phone-section {
  margin-bottom: 24px;
}

.verify-phone-section label {
  display: block;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.verify-phone-section input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.verify-phone-section input:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

.verify-phone-section small {
  display: block;
  margin-top: 8px;
  color: #718096;
  font-size: 0.85rem;
}

/* Buttons */
.verify-buttons {
  display: flex;
  gap: 12px;
}

.verify-buttons button {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-verify-yes {
  background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
  color: white;
}

.btn-verify-yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-verify-no {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-verify-no:hover {
  background: #cbd5e0;
}

.btn-verify-submit {
  background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
  color: white;
}

.btn-verify-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

.btn-verify-back {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-verify-back:hover {
  background: #cbd5e0;
}

/* Loading */
.verify-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.verify-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #3182ce;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.verify-loading p {
  color: #4a5568;
  margin: 0;
}

/* Error */
.verify-error {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
  .verify-popup-content {
    padding: 24px 20px;
    margin: 16px;
  }

  .verify-buttons {
    flex-direction: column;
  }

  .verify-buttons button {
    width: 100%;
  }
}

/* ============================================
   TAKVM DZELTMELER - v2
   Bu dosyay style-premium.css'in SONUNA ekle
   veya mevcut .timeslot ve .calendar kurallarn deitir
============================================ */

/* ============================================
   CALENDAR CONTAINER - 7 GN GRID
============================================ */
.calendar-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  background: transparent;
  padding: 0;
  width: 100%;
}

/* ============================================
   GN STUNU
============================================ */
.day-column {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.day-column:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(227, 30, 36, 0.12);
}

/* ============================================
   GN BALII
============================================ */
.day-header {
  padding: 12px 8px;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
  flex-shrink: 0;
}

.day-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  margin-bottom: 2px;
}

.day-date {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.1;
}

/* ============================================
   SLOT LSTES - TEK STUN!
============================================ */
.timeslot-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px;
  padding: 10px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Scrollbar */
.timeslot-list::-webkit-scrollbar {
  width: 4px;
}

.timeslot-list::-webkit-scrollbar-track {
  background: transparent;
}

.timeslot-list::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

/* ============================================
   TIMESLOT BUTONLARI
============================================ */
.timeslot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 8px 4px;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1;
}

/* Msait slot - hover */
.timeslot:not(.occupied):not(.past):hover {
  background: rgba(227, 30, 36, 0.08);
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.02);
}

.timeslot:not(.occupied):not(.past):active {
  transform: scale(0.98);
}

/* ============================================
   DOLU SLOT - IK GRNM
============================================ */
.timeslot.occupied {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  position: relative;
  font-size: 0.75rem;
}

/* Kilitli slot - sar */
.timeslot.locked {
  background: linear-gradient(135deg, #f39c12, #f1c40f);
  border-color: #e67e22;
  color: #fff;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  animation: pulse-locked 1.5s ease-in-out infinite;
}

.timeslot.locked::after {

.timeslot.blocked {
  background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%) !important;
  color: white !important;
  cursor: not-allowed !important;
  opacity: 0.8;
  border: 2px solid #4B5563 !important;
}

.timeslot.blocked::after {
  content: "KAPALI";
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
  color: rgba(255,255,255,0.9);
}
  content: "SELYOR";

  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

/* st izili saat */
.timeslot.occupied::before {
  content: attr(data-time);
  text-decoration: line-through;
  opacity: 0.6;
}

/* DOLU badge - sa stte */
.timeslot.occupied::after {
  content: 'DOLU';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.5rem;
  font-weight: 900;
  color: var(--white);
  background: var(--gray-400);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ============================================
   GEM SLOT
============================================ */
.timeslot.past {
  background: var(--gray-50);
  border-color: var(--gray-200);
  color: var(--gray-300);
  cursor: not-allowed;
  opacity: 0.5;
}

/* ============================================
   LOADING SPINNER
============================================ */
.loading-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner p {
  color: var(--gray-500);
  font-weight: 600;
}

/* ============================================
   RESPONSIVE - TABLET
============================================ */
@media (max-width: 1200px) {
  .calendar-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 992px) {
  .calendar-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .calendar-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  
  .day-header {
    padding: 10px 6px;
  }
  
  .day-name {
    font-size: 0.65rem;
  }
  
  .day-date {
    font-size: 1.1rem;
  }
  
  .timeslot {
    min-height: 32px;
    font-size: 0.8rem;
    padding: 6px 2px;
  }
}

@media (max-width: 576px) {
  .calendar-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .calendar-container {
    grid-template-columns: 1fr;
  }
  
  .day-column {
    max-height: 400px;
  }
}


/* ============================================
   TENS ANMASYONU v5 - GELTRLM
   - Top sahadan IKMAZ
   - Oyuncular gereki hareket eder
   - Mobil optimize
============================================ */

/* ============================================
   TIMESLOT STAGE - WRAPPER
============================================ */
.timeslot-stage {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}

/* ============================================
   TENS SAHASI - ANA CONTAINER
============================================ */
.tennis-scene {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  /* Hafif 3D perspektif */
  transform: perspective(1000px) rotateX(5deg);
  transform-origin: center bottom;

  /* Performans */
  contain: layout paint;
  backface-visibility: hidden;
  will-change: transform;

  /* Takvimi engelleme */
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   TENS TOPU - SAHA NDE KALIR
============================================ */
.tennis-ball {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
  
  /* Parlak top efekti */
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  
  /* Ana animasyon - SAHA NDE */
  animation: ball-rally 2.4s ease-in-out infinite;
}

/* Top glgesi */
.ball-shadow {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  filter: blur(4px);
  animation: shadow-rally 2.4s ease-in-out infinite;
}

/* Top hareketi - SOL'dan SA'a ve geri */
@keyframes ball-rally {
  0% {
    transform: translate(180px, 200px) scale(1);
  }
  /* Sol oyuncu vuruyor - top ykseliyor */
  10% {
    transform: translate(220px, 180px) scale(1.1);
  }
  /* Havada - ortaya doru */
  25% {
    transform: translate(350px, 120px) scale(0.9);
  }
  /* File st - en yksek nokta */
  40% {
    transform: translate(500px, 100px) scale(0.85);
  }
  /* ni - sa tarafa */
  50% {
    transform: translate(650px, 120px) scale(0.9);
  }
  /* Sa oyuncuya var */
  60% {
    transform: translate(780px, 180px) scale(1.1);
  }
  /* Sa oyuncu vuruyor */
  65% {
    transform: translate(820px, 200px) scale(1);
  }
  /* Geri dn - havada */
  75% {
    transform: translate(650px, 110px) scale(0.85);
  }
  /* File st */
  85% {
    transform: translate(500px, 100px) scale(0.85);
  }
  /* Sol tarafa ini */
  95% {
    transform: translate(280px, 150px) scale(0.95);
  }
  /* Baa dn */
  100% {
    transform: translate(180px, 200px) scale(1);
  }
}

/* Glge hareketi */
@keyframes shadow-rally {
  0% {
    transform: translate(180px, 0) scale(1);
    opacity: 0.5;
  }
  10% {
    transform: translate(220px, 0) scale(0.9);
    opacity: 0.4;
  }
  25% {
    transform: translate(350px, 0) scale(0.6);
    opacity: 0.25;
  }
  40% {
    transform: translate(500px, 0) scale(0.5);
    opacity: 0.2;
  }
  50% {
    transform: translate(650px, 0) scale(0.6);
    opacity: 0.25;
  }
  60% {
    transform: translate(780px, 0) scale(0.9);
    opacity: 0.4;
  }
  65% {
    transform: translate(820px, 0) scale(1);
    opacity: 0.5;
  }
  75% {
    transform: translate(650px, 0) scale(0.5);
    opacity: 0.2;
  }
  85% {
    transform: translate(500px, 0) scale(0.5);
    opacity: 0.2;
  }
  95% {
    transform: translate(280px, 0) scale(0.7);
    opacity: 0.35;
  }
  100% {
    transform: translate(180px, 0) scale(1);
    opacity: 0.5;
  }
}

/* ============================================
   SOL OYUNCU
============================================ */
.player-left {
  transform-origin: center bottom;
  will-change: transform;
  animation: player-left-move 2.4s ease-in-out infinite;
}

.racket-left {
  transform-origin: 240px 250px;
  will-change: transform;
  animation: racket-left-swing 2.4s ease-in-out infinite;
}

/* Sol oyuncu hareketi */
@keyframes player-left-move {
  0%, 100% {
    transform: translateX(0) translateY(0);
  }
  5% {
    transform: translateX(10px) translateY(-15px); /* Vuru hazrlk */
  }
  10% {
    transform: translateX(20px) translateY(-5px); /* Vuru an */
  }
  15% {
    transform: translateX(10px) translateY(0); /* Toparlanma */
  }
  50%, 70% {
    transform: translateX(0) translateY(0); /* Bekleme */
  }
  90% {
    transform: translateX(-10px) translateY(-10px); /* Karlama hazrlk */
  }
  95% {
    transform: translateX(5px) translateY(-5px); /* Karlama */
  }
}

/* Sol raket hareketi */
@keyframes racket-left-swing {
  0%, 100% {
    transform: rotate(-10deg);
  }
  5% {
    transform: rotate(-45deg); /* Geriye ekme */
  }
  10% {
    transform: rotate(30deg); /* Vuru */
  }
  15% {
    transform: rotate(10deg); /* Takip */
  }
  20%, 85% {
    transform: rotate(-10deg); /* Hazr pozisyon */
  }
  90% {
    transform: rotate(-30deg); /* Karlama hazrlk */
  }
  95% {
    transform: rotate(15deg); /* Karlama vuruu */
  }
}

/* ============================================
   SA OYUNCU
============================================ */
.player-right {
  transform-origin: center bottom;
  will-change: transform;
  animation: player-right-move 2.4s ease-in-out infinite;
}

.racket-right {
  transform-origin: 760px 250px;
  will-change: transform;
  animation: racket-right-swing 2.4s ease-in-out infinite;
}

/* Sa oyuncu hareketi */
@keyframes player-right-move {
  0%, 20% {
    transform: translateX(0) translateY(0); /* Bekleme */
  }
  50% {
    transform: translateX(10px) translateY(-10px); /* Karlama hazrlk */
  }
  55% {
    transform: translateX(-10px) translateY(-15px); /* Vuru hazrlk */
  }
  60% {
    transform: translateX(-20px) translateY(-5px); /* Vuru an */
  }
  65% {
    transform: translateX(-10px) translateY(0); /* Toparlanma */
  }
  80%, 100% {
    transform: translateX(0) translateY(0); /* Bekleme */
  }
}

/* Sa raket hareketi */
@keyframes racket-right-swing {
  0%, 40% {
    transform: rotate(10deg); /* Hazr pozisyon */
  }
  50% {
    transform: rotate(30deg); /* Karlama hazrlk */
  }
  55% {
    transform: rotate(45deg); /* Geriye ekme */
  }
  60% {
    transform: rotate(-30deg); /* Vuru */
  }
  65% {
    transform: rotate(-10deg); /* Takip */
  }
  75%, 100% {
    transform: rotate(10deg); /* Hazr pozisyon */
  }
}

/* ============================================
   VURU ETKS (IMPACT)
============================================ */
.impact {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
  animation: impact-flash 2.4s ease-out infinite;
}

@keyframes impact-flash {
  0%, 8% {
    opacity: 0;
    transform: translate(180px, 200px) scale(0);
  }
  10% {
    opacity: 1;
    transform: translate(200px, 190px) scale(1.5);
  }
  14% {
    opacity: 0;
    transform: translate(220px, 180px) scale(2);
  }
  
  55%, 58% {
    opacity: 0;
    transform: translate(820px, 200px) scale(0);
  }
  60% {
    opacity: 1;
    transform: translate(800px, 190px) scale(1.5);
  }
  64% {
    opacity: 0;
    transform: translate(780px, 180px) scale(2);
  }
  
  65%, 100% {
    opacity: 0;
  }
}

/* ============================================
   MOBL OPTMZASYON
============================================ */
@media (max-width: 768px) {
  .tennis-scene {
    max-width: 100%;
    border-radius: 12px;
    transform: perspective(800px) rotateX(3deg);
    margin-bottom: 1rem;
  }
  
  .timeslot-stage {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .tennis-scene {
    border-radius: 8px;
    transform: perspective(600px) rotateX(2deg);
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.12),
      0 4px 10px rgba(0, 0, 0, 0.08);
  }
}

/* ============================================
   AZALTILMI HAREKETLLK (Accessibility)
============================================ */
@media (prefers-reduced-motion: reduce) {
  .tennis-ball,
  .ball-shadow,
  .player-left,
  .player-right,
  .racket-left,
  .racket-right,
  .impact {
    animation: none !important;
  }
  
  .tennis-ball {
    transform: translate(500px, 150px);
  }
  
  .ball-shadow {
    transform: translate(500px, 0);
    opacity: 0.3;
  }
}

/* ============================================
   TELEFON DORULAMA POPUP - PREMIUM
============================================ */
.verify-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-md);
  animation: fadeIn 0.3s var(--ease-out-expo);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.verify-popup-content {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-2xl);
  animation: slideUp 0.4s var(--ease-out-expo);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verify-popup-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.verify-popup-content h3 i {
  color: var(--primary);
  font-size: 1.25em;
}

.verify-info {
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(227, 30, 36, 0.1);
}

.verify-info p {
  margin: 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.verify-info p strong {
  color: var(--gray-900);
  font-weight: 600;
}

.verify-question {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.verify-question p {
  font-size: 1.05rem;
  color: var(--gray-800);
  font-weight: 500;
}

.verify-phone-section {
  margin-bottom: var(--space-lg);
}

.verify-phone-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.verify-phone-section input {
  width: 100%;
  padding: var(--space-md);
  font-size: 1.1rem;
  font-family: var(--font-body);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease-out-expo);
  text-align: center;
  letter-spacing: 0.5px;
}

.verify-phone-section input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.verify-phone-section input::placeholder {
  color: var(--gray-400);
}

.verify-phone-section small {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}

.verify-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.verify-buttons button {
  flex: 1;
  min-width: 140px;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.btn-verify-yes,
.btn-verify-submit {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-verify-yes:hover,
.btn-verify-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-verify-yes:active,
.btn-verify-submit:active {
  transform: translateY(0);
}

.btn-verify-no,
.btn-verify-back {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-verify-no:hover,
.btn-verify-back:hover {
  background: var(--gray-200);
  color: var(--gray-800);
}

.verify-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.verify-loading .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.verify-loading p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

.verify-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  color: #DC2626;
  font-size: 0.9rem;
  margin-top: var(--space-md);
  text-align: center;
}

/* ============================================
   MOBL YLETRMELER - EXTRA
============================================ */
@media (max-width: 480px) {
  .verify-popup-content {
    padding: var(--space-lg);
    margin: var(--space-sm);
    border-radius: var(--radius-xl);
  }
  
  .verify-buttons {
    flex-direction: column;
  }
  
  .verify-buttons button {
    width: 100%;
    min-width: unset;
  }
  
  /* Daha iyi touch targets */
  .timeslot {
    min-height: 48px;
    font-size: 0.95rem;
  }
  
  .select-btn {
    min-height: 52px;
  }
  
  /* Modal telefon input bytme */
  .verify-phone-section input {
    font-size: 1.2rem;
    padding: var(--space-lg);
  }
}

/* ============================================
   KK EKRANLAR N TAKVIM
============================================ */
@media (max-width: 360px) {
  .day-column {
    min-width: 70px;
  }
  
  .day-header .day-name {
    font-size: 0.7rem;
  }
  
  .day-header .day-date {
    font-size: 0.65rem;
  }
  
  .timeslot {
    font-size: 0.8rem;
    padding: 6px 4px;
  }
}

/* ============================================
   SAFE AREA (NOTCH) DESTE
============================================ */
@supports (padding: max(0px)) {
  .nav-bar {
    padding-top: max(var(--space-md), env(safe-area-inset-top));
  }
  
  .main-content {
    padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  }
  
  .verify-popup-overlay {
    padding-top: max(var(--space-md), env(safe-area-inset-top));
    padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  }
}

/* ============================================
   LANDSCAPE MODE
============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--space-md) 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .progress-steps {
    margin: var(--space-md) 0;
  }
  
  .verify-popup-content {
    max-height: 85vh;
    padding: var(--space-md);
  }
}

/* ============================================
   HIGH CONTRAST MODE
============================================ */
@media (prefers-contrast: high) {
  .timeslot {
    border: 2px solid var(--gray-900);
  }
  
  .timeslot.occupied {
    background: var(--gray-900);
    color: var(--white);
  }
  
  .timeslot:not(.occupied):not(.past):hover {
    border-color: var(--primary);
  }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
  .bg-layer,
  .nav-bar,
  .progress-steps,
  .verify-popup-overlay,
  .modal,
  .toast {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .court-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ============================================
   ACCESSIBILITY - SKIP LINK
============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 10000;
  transition: top var(--duration-fast) var(--ease-out-expo);
  box-shadow: var(--shadow-lg);
}

.skip-link:focus {
  top: var(--space-md);
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ============================================
   LOADING STATES FOR TIMESLOTS
============================================ */
.timeslot.loading {
  background: var(--gray-200) !important;
  color: var(--primary) !important;
  cursor: wait !important;
  pointer-events: none;
  border-color: var(--primary) !important;
}

.timeslot.loading i {
  animation: spin 1s linear infinite;
}

/* Focus visible for keyboard navigation */
.timeslot:focus-visible,
.select-btn:focus-visible,
.week-btn:focus-visible,
.court-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
/* ============================================
   SKELETON LOADER - Better Perceived Performance
============================================ */
.skeleton-grid {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: var(--space-md);
}

.skeleton-column {
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skeleton-header {
  height: 40px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-slot {
  height: 36px;
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   OFFLINE INDICATOR
============================================ */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--danger-gradient, linear-gradient(135deg, #EF4444, #DC2626));
  color: white;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  animation: slideDown 0.3s ease;
}

.offline-indicator i {
  animation: pulse 1.5s infinite;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ============================================
   TOAST IMPROVEMENTS
============================================ */
.toast-icon.info {
  background: var(--info-light, #DBEAFE);
  color: var(--info, #3B82F6);
}

.toast-icon.warning {
  background: var(--warning-light, #FEF3C7);
  color: var(--warning, #F59E0B);
}

.toast-icon.success {
  background: var(--success-light, #D1FAE5);
  color: var(--success, #10B981);
}

/* ============================================
   PHONE INPUT IMPROVEMENTS
============================================ */
#verify-phone {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  font-family: var(--font-mono, monospace);
  text-align: center;
}

#verify-phone:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

#verify-phone::placeholder {
  color: var(--gray-400);
  font-size: 1rem;
}

/* ============================================
   BUTTON LOADING STATE
============================================ */
button.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

button.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   TOUCH FEEDBACK
============================================ */
@media (hover: none) {
  .timeslot:active:not(.occupied):not(.past) {
    transform: scale(0.95);
    background: var(--primary-light);
  }
  
  .select-btn:active {
    transform: scale(0.98);
  }
  
  .court-card:active {
    transform: scale(0.99);
  }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .skeleton-header,
  .skeleton-slot {
    animation: none;
    background: var(--gray-200);
  }
}

/* ============================================
   BETTER EMPTY STATES
============================================ */
.empty-state {
  text-align: center;
  padding: var(--space-2xl);
  color: var(--gray-500);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--gray-400);
}

.empty-state h4 {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ============================================
   ERROR STATE FOR CALENDAR
============================================ */
.error-message {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--danger-light, #FEE2E2);
  border-radius: var(--radius-lg);
  color: #991B1B;
}

.error-message i {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.error-message p {
  margin: 0;
  font-weight: 500;
}

.error-message button {
  margin-top: var(--space-md);
  background: var(--primary);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
}

/* ============================================
   COUNTDOWN TIMER IMPROVEMENTS
============================================ */
.lock-countdown {
  font-family: var(--font-mono, monospace);
}

.lock-countdown span {
  min-width: 60px;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}






/* ═══════════════════════════════════════════════════════════
   📢 NOTIFICATION BANNER - Minimal Design
   ═══════════════════════════════════════════════════════════ */
.notification-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 50px 14px 20px;
  background: rgba(30, 30, 30, 0.95);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: fadeInDown 0.3s ease-out;
  max-width: 90%;
  width: auto;
  min-width: 300px;
  backdrop-filter: blur(10px);
  border-left: 4px solid #1a73e8;
}

.notification-banner.warning {
  border-left-color: #ff9800;
}

.notification-banner.danger {
  border-left-color: #e53935;
}

.notification-banner.success {
  border-left-color: #43a047;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 20px;
  opacity: 0.9;
}

.notification-banner.info .notification-icon { color: #1a73e8; }
.notification-banner.warning .notification-icon { color: #ff9800; }
.notification-banner.danger .notification-icon { color: #e53935; }
.notification-banner.success .notification-icon { color: #43a047; }

.notification-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notification-text strong {
  font-size: 14px;
  font-weight: 600;
}

.notification-text span {
  font-size: 13px;
  opacity: 0.8;
}

.notification-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.notification-close:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 600px) {
  .notification-banner { 
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
    min-width: auto;
  }
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Welcome Popup Styles */
.welcome-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.welcome-popup-overlay.hidden {
  display: none;
}

.welcome-popup-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

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

.welcome-popup-icon {
  text-align: center;
  margin-bottom: 20px;
}

.welcome-popup-icon i {
  font-size: 48px;
  color: #dc2626;
}

.welcome-popup-content h2 {
  text-align: center;
  color: #1e293b;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-popup-text {
  color: #475569;
  line-height: 1.7;
  font-size: 15px;
}

.welcome-popup-text p {
  margin-bottom: 15px;
}

.welcome-popup-text strong {
  color: #1e293b;
}

.welcome-popup-text .welcome-thanks {
  text-align: center;
  font-style: italic;
  color: #dc2626;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.welcome-popup-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-top: 25px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.welcome-popup-btn:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

@media (max-width: 480px) {
  .welcome-popup-content {
    padding: 20px;
  }
  
  .welcome-popup-content h2 {
    font-size: 20px;
  }
  
  .welcome-popup-text {
    font-size: 14px;
  }
  
  .welcome-popup-icon i {
    font-size: 36px;
  }
}
