/* ==========================================================================
   EventHub Pro v3.0 - Complete Design System
   ========================================================================== */

:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  
  --accent-400: #a78bfa;
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  
  --success-50: #ecfdf5;
  --success-500: #10b981;
  --success-600: #059669;
  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;
  --danger-50: #fef2f2;
  --danger-500: #ef4444;
  --danger-600: #dc2626;
  --info-50: #eff6ff;
  --info-500: #3b82f6;
  
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-elevated: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  
  --radius-sm: 0.5rem; --radius-md: 0.75rem; --radius-lg: 1rem;
  --radius-xl: 1.5rem; --radius-2xl: 2rem; --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --z-dropdown: 100; --z-sticky: 200; --z-fixed: 300;
  --z-modal-backdrop: 400; --z-modal: 500; --z-toast: 800;
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-elevated: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #334155;
}

/* Reset & Base (same as before) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-700); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: var(--radius-sm); }

/* All previous component styles included + new components below */

/* Search & Autocomplete */
.search-container { position: relative; }
.search-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  margin-top: var(--space-2);
  max-height: 400px; overflow-y: auto;
  z-index: var(--z-dropdown);
}
.search-suggestion {
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer; transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover, .search-suggestion.active { background: var(--bg-secondary); }
.search-suggestion-image {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  object-fit: cover; flex-shrink: 0;
}
.search-suggestion-title { font-weight: 600; font-size: 0.9rem; }
.search-suggestion-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Payment Form */
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.payment-method {
  padding: var(--space-4);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}
.payment-method:hover { border-color: var(--brand-300); }
.payment-method.active {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.payment-method i { font-size: 1.75rem; margin-bottom: var(--space-2); display: block; }
.payment-method .fa-cc-visa { color: #1a1f71; }
.payment-method .fa-cc-mastercard { color: #eb001b; }
.payment-method .fa-paypal { color: #003087; }
.payment-method .fa-apple-pay { color: #000; }
.payment-method .fa-google-pay { color: #4285f4; }

.card-input-wrapper {
  position: relative;
  margin-bottom: var(--space-4);
}
.card-input-wrapper i {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}
.card-input-wrapper input { padding-left: 3rem; }

/* Booking Progress */
.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  position: relative;
}
.booking-progress::before {
  content: '';
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}
.progress-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  display: grid; place-items: center;
  margin: 0 auto var(--space-2);
  font-weight: 700; font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
}
.progress-step.active .step-circle {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
  box-shadow: var(--shadow-glow);
}
.progress-step.completed .step-circle {
  background: var(--success-500);
  border-color: var(--success-500);
  color: white;
}
.step-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}
.progress-step.active .step-label,
.progress-step.completed .step-label { color: var(--text-primary); }

/* Ticket Selector */
.ticket-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
}
.qty-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-color);
  display: grid; place-items: center;
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}
.qty-btn:hover:not(:disabled) {
  border-color: var(--brand-500);
  color: var(--brand-600);
  transform: scale(1.05);
}
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-display { text-align: center; }
.qty-value { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.qty-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Ticket Summary */
.ticket-summary {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: 0.9rem;
}
.summary-row.total {
  border-top: 2px solid var(--border-color);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-600);
}

/* Confirmation Card */
.confirmation-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.confirmation-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.confirmation-row:last-child { border-bottom: none; }
.confirmation-row span { color: var(--text-secondary); }

/* Booking actions */
.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Live notification indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--success-50);
  color: var(--success-600);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.live-dot {
  width: 8px; height: 8px;
  background: var(--success-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* Print ticket styles */
@media print {
  .navbar, .footer, .booking-actions, .toast-container { display: none !important; }
  .modal-backdrop { position: static; background: none; backdrop-filter: none; }
  .modal { box-shadow: none; max-width: 100%; }
}