/* ================================================
   MyTicket Premium Design System v2
   ================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors — Rich Theatrical Theme */
  --bg-primary: #F5E6D0;
  --bg-secondary: #EDD9C4;
  --bg-surface: rgba(139, 69, 50, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.45);
  --bg-glass-hover: rgba(255, 255, 255, 0.6);
  --accent: #7A1818;
  --accent-light: #9B2C2C;
  --accent-dark: #5C1010;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dark: #A8884D;
  --cta-red: #7A1818;
  --cta-red-hover: #9B2C2C;
  --text-primary: #2D1810;
  --text-secondary: rgba(45, 24, 16, 0.6);
  --text-dark: #2D1810;
  --text-light: #ffffff;
  --text-on-glass: #3D2B1D;
  --success: #2E7D32;
  --error: #C62828;
  --sold: #5C9ECE;
  --disabled-seat: #999;
  --border-glass: rgba(196, 162, 101, 0.22);
  --shadow-warm: rgba(122, 24, 24, 0.1);
  --shadow-gold: rgba(196, 162, 101, 0.25);

  /* Typography */
  --font-family: 'Hacen', 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --font-latin: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  --fs-hero: clamp(2rem, 5vw, 4rem);
  --fs-h1: clamp(1.5rem, 3vw, 2.5rem);
  --fs-h2: clamp(1.2rem, 2.5vw, 1.8rem);
  --fs-body: clamp(0.95rem, 1.5vw, 1.1rem);
  --fs-small: clamp(0.8rem, 1.2vw, 0.95rem);
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Borders */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-height: 64px;
  --max-width: 1200px;
}

/* ================================================
   KEYFRAME ANIMATIONS
   ================================================ */

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

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

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

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

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 162, 101, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(196, 162, 101, 0.2); }
}

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

@keyframes zoomPulse {
  0%, 100% { transform: scale(1); filter: blur(0); }
  50% { transform: scale(1.08); }
}

@keyframes loadProgress {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

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

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

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

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

@keyframes seatPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.3); }
  50% { box-shadow: 0 0 8px 2px rgba(46, 125, 50, 0.15); }
}

@keyframes ctaShine {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes ticketEntrance {
  0% { opacity: 0; transform: translateY(60px) scale(0.9) rotateX(10deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateX(0); }
}

/* ================================================
   RESET & BASE
   ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(196, 162, 101, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(122, 24, 24, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(196, 162, 101, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #F5E6D0 0%, #EDD9C4 40%, #F0DCC8 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
}

input,
textarea {
  font-family: var(--font-family);
}

/* ================================================
   LOADING SCREEN
   ================================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F5E6D0 0%, #EDD9C4 50%, #F0DCC8 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: 130px;
  height: auto;
  animation: zoomPulse 2s infinite ease-in-out;
  margin-bottom: 50px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 8px 24px rgba(122, 24, 24, 0.15));
}

.loading-bar-track {
  width: min(75%, 380px);
  height: 5px;
  background: rgba(122, 24, 24, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
  background-size: 200%;
  animation: loadProgress 2s ease-in-out forwards, shimmerGlow 1.5s ease infinite;
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(196, 162, 101, 0.5);
}

/* ================================================
   APP CONTAINER
   ================================================ */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================
   HEADER
   ================================================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  background: linear-gradient(135deg, rgba(245, 230, 208, 0.88), rgba(237, 217, 196, 0.92));
  border-bottom: 1px solid rgba(196, 162, 101, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 4px 20px rgba(122, 24, 24, 0.06);
  transition: all var(--transition-smooth);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  transition: all var(--transition-spring);
  filter: drop-shadow(0 2px 6px rgba(122, 24, 24, 0.1));
}

.logo-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(196, 162, 101, 0.3));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-light);
  border: none;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all var(--transition-spring);
  min-width: 48px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(122, 24, 24, 0.2);
  position: relative;
  overflow: hidden;
}

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

.lang-btn:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(122, 24, 24, 0.3);
}

.lang-btn:hover::after {
  left: 100%;
}

.header-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(196, 162, 101, 0.12);
  color: var(--gold);
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.header-contact-btn:hover {
  background: var(--gold);
  color: white;
  transform: scale(1.1);
}

.header-contact-btn.whatsapp {
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.header-contact-btn.whatsapp:hover {
  background: #25D366;
  color: white;
}
/* ================================================
   SPONSOR BANNER
   ================================================ */

.sponsor-banner {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  animation: fadeSlideIn 0.6s ease 0.3s both;
}

.sponsor-img {
  max-height: 120px;
  margin: 0 auto;
  transition: all var(--transition-smooth);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.sponsor-img:hover {
  transform: scale(1.03);
}

/* ================================================
   PAGE CONTAINER
   ================================================ */

.page-container {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* --- Page Transitions --- */
.page-enter {
  animation: fadeSlideIn 0.45s ease forwards;
}

.page-exit {
  animation: fadeSlideOut 0.2s ease forwards;
}

/* ================================================
   HOME PAGE
   ================================================ */

.home-poster {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  animation: scaleIn 0.6s ease;
}

.home-poster img {
  height: 160px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 30px rgba(122, 24, 24, 0.12));
  transition: all var(--transition-spring);
}

.home-poster img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 40px rgba(196, 162, 101, 0.25));
}

.events-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
  perspective: 1000px;
}

.event-card {
  width: min(320px, 100%);
  cursor: pointer;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 4px 16px rgba(122, 24, 24, 0.05),
    0 1px 0 rgba(255,255,255,0.6) inset;
  transition: all var(--transition-spring);
  animation: slideInUp 0.6s ease both;
  transform-style: preserve-3d;
  position: relative;
}

.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.15s; }
.event-card:nth-child(3) { animation-delay: 0.25s; }
.event-card:nth-child(4) { animation-delay: 0.35s; }
.event-card:nth-child(5) { animation-delay: 0.45s; }
.event-card:nth-child(6) { animation-delay: 0.55s; }

.event-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
  box-shadow:
    0 20px 50px rgba(122, 24, 24, 0.12),
    0 8px 24px rgba(196, 162, 101, 0.15),
    0 1px 0 rgba(255,255,255,0.8) inset;
  border-color: var(--gold-light);
}

.event-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: 0.1s;
}

.event-card-poster {
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
  transition: all var(--transition-smooth);
}

.event-card:hover .event-card-poster {
  transform: scale(1.03);
}

.event-card-name {
  text-align: center;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  font-size: var(--fs-h2);
  color: var(--text-dark);
  font-weight: 700;
}

.event-card-cta {
  display: block;
  width: calc(100% - var(--space-lg));
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--cta-red), var(--accent-dark));
  color: var(--text-light);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-body);
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(122, 24, 24, 0.2);
}

/* Shine sweep on CTA */
.event-card-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: none;
  animation: ctaShine 3s ease-in-out infinite;
}

.event-card:hover .event-card-cta {
  background: linear-gradient(135deg, var(--cta-red-hover), var(--accent));
  box-shadow: 0 8px 25px rgba(122, 24, 24, 0.3);
  transform: translateY(-1px);
}

/* No Data */
.no-data {
  text-align: center;
  padding: var(--space-3xl);
  font-size: var(--fs-h1);
  color: var(--text-secondary);
  animation: fadeSlideIn 0.5s ease;
}

/* Sponsors */
.sponsors-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  animation: fadeSlideIn 0.6s ease 0.4s both;
}

.sponsors-title {
  font-size: var(--fs-h2);
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.sponsors-img {
  max-height: 300px;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.06));
}

/* ================================================
   SHIMMER LOADING
   ================================================ */

.shimmer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.shimmer-card {
  width: min(320px, 100%);
  height: 400px;
  border-radius: var(--radius-xl);
  background: linear-gradient(110deg, rgba(196, 162, 101, 0.06) 8%, rgba(196, 162, 101, 0.18) 18%, rgba(196, 162, 101, 0.06) 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border: 1px solid rgba(196, 162, 101, 0.1);
}

/* ================================================
   EVENT DETAILS PAGE
   ================================================ */

.event-details {
  padding-bottom: var(--space-3xl);
  animation: fadeSlideIn 0.5s ease;
}

/* --- Hero Section --- */
.ed-hero {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-md);
  animation: scaleIn 0.6s ease;
}

.ed-hero-poster {
  display: inline-block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(122, 24, 24, 0.12), 0 4px 16px rgba(196, 162, 101, 0.1);
  transition: all var(--transition-spring);
}

.ed-hero-poster:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(122, 24, 24, 0.15), 0 8px 24px rgba(196, 162, 101, 0.15);
}

.ed-hero-poster img {
  max-width: 500px;
  width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

.ed-hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: var(--space-lg);
  animation: fadeSlideIn 0.5s ease 0.3s both;
}

/* --- Description --- */
.ed-description {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  white-space: pre-line;
  animation: fadeSlideIn 0.5s ease 0.2s both;
}

/* --- Section Divider --- */
.ed-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent), var(--gold));
  border-radius: 2px;
  margin: var(--space-xl) auto;
  opacity: 0.5;
}

/* --- Section --- */
.ed-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  animation: fadeSlideIn 0.5s ease 0.15s both;
}

.ed-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.ed-section-title svg {
  opacity: 0.7;
}

/* Legacy poster support */
.event-details-poster {
  text-align: center;
  padding: var(--space-lg) 0;
}

.event-details-poster img {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(122, 24, 24, 0.1));
}

.event-description {
  text-align: center;
  font-size: var(--fs-h2);
  color: var(--text-dark);
  padding: var(--space-md) var(--space-lg);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  white-space: pre-line;
}

/* --- Date/Time Groups --- */
.time-groups {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: 0 0 var(--space-lg);
}

.date-group {
  width: 100%;
  max-width: 800px;
  animation: fadeSlideIn 0.5s ease both;
}

.date-group:nth-child(1) { animation-delay: 0.1s; }
.date-group:nth-child(2) { animation-delay: 0.2s; }
.date-group:nth-child(3) { animation-delay: 0.3s; }

.date-group-header {
  text-align: center;
  font-size: var(--fs-h2);
  color: var(--accent);
  font-weight: 700;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, rgba(196, 162, 101, 0.1), rgba(196, 162, 101, 0.05));
  border-radius: var(--radius-md);
  border-bottom: 2px solid var(--gold);
  white-space: pre-line;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.time-slot-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(196, 162, 101, 0.18);
  cursor: pointer;
  text-align: right;
  transition: all var(--transition-spring);
  min-width: 220px;
  max-width: 320px;
  color: var(--text-dark);
  font-size: var(--fs-body);
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.time-slot-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(196, 162, 101, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
}

.time-slot-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(196, 162, 101, 0.15);
}

.time-slot-card:hover::before {
  width: 400px;
  height: 400px;
}

.time-slot-card.selected {
  background: rgba(196, 162, 101, 0.15);
  border-color: var(--accent);
  box-shadow:
    0 4px 20px rgba(122, 24, 24, 0.12),
    0 0 0 2px rgba(122, 24, 24, 0.08);
  transform: translateY(-2px);
}

/* Time slot card inner elements */
.tsc-time {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.tsc-time svg {
  color: var(--accent);
  flex-shrink: 0;
}

.tsc-location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.tsc-location svg {
  color: var(--gold);
  flex-shrink: 0;
}

.tsc-notes {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(196, 162, 101, 0.15);
}

.tsc-selected-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  animation: bounceIn 0.4s ease;
  box-shadow: 0 2px 8px rgba(122, 24, 24, 0.3);
}

.tsc-select-btn {
  margin-top: var(--space-md);
  padding: var(--space-xs) var(--space-lg);
  border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: white;
  font-size: var(--fs-small);
  font-weight: 700;
  text-align: center;
  transition: all var(--transition-spring);
  box-shadow: 0 2px 8px rgba(196, 162, 101, 0.3);
}

.time-slot-card:hover .tsc-select-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 4px 16px rgba(122, 24, 24, 0.25);
  transform: translateY(-1px);
}

.tsc-select-btn.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 2px 8px rgba(122, 24, 24, 0.25);
}

/* --- Sold Out --- */
.sold-out-msg {
  text-align: center;
  font-size: var(--fs-h1);
  color: var(--text-dark);
  padding: var(--space-2xl);
  white-space: pre-line;
  animation: fadeSlideIn 0.5s ease;
}

/* --- Price Display --- */
.price-display {
  text-align: center;
  font-size: var(--fs-h2);
  color: var(--cta-red);
  font-weight: 800;
  padding: var(--space-md) 0;
  animation: scaleIn 0.4s ease;
}

/* --- Quantity Stepper --- */
.stepper-section {
  text-align: center;
  padding: var(--space-lg) 0;
  animation: fadeSlideIn 0.4s ease 0.1s both;
}

.stepper-label {
  font-size: var(--fs-body);
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  padding: var(--space-sm) var(--space-lg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 0 rgba(255,255,255,0.5) inset;
}

.stepper-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-spring);
  border: none;
  box-shadow: 0 3px 10px rgba(196, 162, 101, 0.3);
}

.stepper-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(196, 162, 101, 0.4);
}

.stepper-btn:active:not(:disabled) {
  transform: scale(0.9);
  transition-duration: 0.1s;
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.stepper-value {
  font-size: 2rem;
  font-weight: 800;
  min-width: 50px;
  text-align: center;
  color: var(--text-primary);
}

/* --- Order Summary --- */
.order-summary {
  text-align: center;
  padding: var(--space-lg);
  animation: fadeSlideIn 0.4s ease 0.2s both;
}

.order-summary .summary-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.summary-label {
  font-size: var(--fs-body);
  color: var(--text-dark);
}

.summary-value {
  font-size: var(--fs-h2);
  color: var(--cta-red);
  font-weight: 800;
}

/* --- Booking Form --- */
.booking-form-section {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-xl);
  animation: fadeSlideIn 0.5s ease 0.15s both;
}

.form-hint {
  text-align: center;
  font-size: var(--fs-body);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  white-space: pre-line;
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(196, 162, 101, 0.2);
  border-radius: var(--radius-md);
  font-size: var(--fs-body);
  color: var(--text-dark);
  text-align: center;
  transition: all var(--transition-smooth);
  outline: none;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 162, 101, 0.15), 0 4px 12px rgba(196, 162, 101, 0.1);
  transform: translateY(-1px);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.form-error {
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: var(--space-xs);
  text-align: center;
  min-height: 1.2em;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text-light);
  padding: var(--space-md) var(--space-2xl);
  border-radius: 50px;
  font-size: var(--fs-h2);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-spring);
  min-width: 200px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(122, 24, 24, 0.25);
  animation: pulseGlow 2.5s ease infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: ctaShine 3.5s ease-in-out infinite;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(122, 24, 24, 0.35);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
}

.btn-primary.loading {
  pointer-events: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-light);
  padding: var(--space-md) var(--space-2xl);
  border-radius: 50px;
  font-size: var(--fs-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-spring);
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(196, 162, 101, 0.4);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: var(--space-sm) var(--space-xl);
  border-radius: 50px;
  font-size: var(--fs-body);
  cursor: pointer;
  transition: all var(--transition-spring);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* ================================================
   SEAT MAP
   ================================================ */

.seat-map-container {
  padding: var(--space-lg) 0;
  text-align: center;
  animation: fadeSlideIn 0.5s ease;
}

.stage-label {
  max-width: 400px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.7));
  backdrop-filter: blur(8px);
  border: 2px solid var(--text-dark);
  border-radius: var(--radius-md);
  font-size: var(--fs-h2);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.seat-grid-wrapper {
  overflow-x: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.seat-grid {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seat-row-label {
  width: 30px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-align: center;
  flex-shrink: 0;
}

.seat {
  width: 26px;
  height: 26px;
  border-radius: 5px 5px 9px 9px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  position: relative;
  flex-shrink: 0;
}

.seat.empty {
  visibility: hidden;
}

.seat.disabled {
  background: var(--disabled-seat);
  cursor: not-allowed;
  opacity: 0.5;
}

.seat.sold {
  background: var(--sold);
  cursor: not-allowed;
}

.seat.presold {
  background: var(--sold);
  cursor: not-allowed;
}

.seat.available {
  border: 2px solid var(--success);
  background: transparent;
  animation: seatPulse 2.5s ease infinite;
}

.seat.available:hover {
  background: rgba(46, 125, 50, 0.2);
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(46, 125, 50, 0.3);
}

.seat.selected {
  background: var(--success);
  border: 2px solid var(--success);
  box-shadow: 0 0 12px rgba(46, 125, 50, 0.5);
  animation: none;
  transform: scale(1.1);
}

/* Seat tooltip */
.seat[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Seat Legend */
.seat-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-primary);
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-swatch.disabled { background: var(--disabled-seat); }
.legend-swatch.sold { background: var(--sold); }
.legend-swatch.available { border: 2px solid var(--success); }
.legend-swatch.selected { background: var(--success); }

/* Price Legend */
.price-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.price-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-primary);
}

.price-swatch {
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 2px solid;
}

/* Seat Selection Summary */
.seat-selection-summary {
  text-align: center;
  padding: var(--space-lg);
  animation: fadeSlideIn 0.4s ease;
}

.seats-selected-text {
  font-size: var(--fs-body);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.seats-selected-detail {
  font-size: var(--fs-body);
  color: var(--success);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  word-break: break-word;
}

.seats-total-price {
  font-size: var(--fs-h2);
  color: var(--success);
  font-weight: 800;
}

/* ================================================
   SUCCESS / TICKETS PAGE
   ================================================ */

.success-page {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-3xl);
  position: relative;
}

.success-notice {
  font-size: var(--fs-body);
  color: var(--text-dark);
  padding: var(--space-lg);
  line-height: 1.7;
  white-space: pre-line;
  animation: fadeSlideIn 0.5s ease;
}

.ticket-warning {
  font-size: var(--fs-h2);
  color: var(--error);
  padding: var(--space-md);
  font-weight: 700;
  animation: fadeSlideIn 0.5s ease 0.2s both;
}

.tickets-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.ticket-card {
  width: min(380px, 92vw);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.18),
    0 4px 16px rgba(196, 162, 101, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  animation: ticketEntrance 0.7s ease both;
  transition: all var(--transition-spring);
}

.ticket-card:nth-child(1) { animation-delay: 0.15s; }
.ticket-card:nth-child(2) { animation-delay: 0.3s; }
.ticket-card:nth-child(3) { animation-delay: 0.45s; }
.ticket-card:nth-child(4) { animation-delay: 0.6s; }

.ticket-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(196, 162, 101, 0.15);
}

/* Poster as background */
.ticket-card-poster-bg {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ticket-card-poster-bg img {
  width: 100%;
  height: auto;
  display: block;
  transition: all var(--transition-smooth);
}

.ticket-card:hover .ticket-card-poster-bg img {
  transform: scale(1.02);
}

/* Remove dark gradient */
.ticket-card-poster-bg::after {
  display: none;
}

/* Overlay container */
.ticket-overlay {
  position: absolute;
  bottom: 11%;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
  animation: fadeSlideIn 0.5s ease 0.5s both;
}

/* Info rows */
.ticket-overlay-info {
  flex: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.ticket-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
}

.ticket-info-row:last-child {
  border-bottom: none;
}

.ticket-info-row span:first-child {
  color: #8B6914;
  font-size: 10px;
  font-weight: 600;
}

.ticket-info-row span:last-child {
  color: #2D1810;
  font-weight: 700;
  font-size: 11px;
  text-align: left;
  max-width: 60%;
  word-break: break-word;
}

/* QR code */
.ticket-overlay-qr {
  background: white;
  padding: 7px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.8);
}

.ticket-overlay-qr canvas,
.ticket-overlay-qr img {
  display: block;
  width: 80px !important;
  height: 80px !important;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--text-light);
  padding: var(--space-md) var(--space-xl);
  border-radius: 50px;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-spring);
  border: none;
  box-shadow: 0 4px 16px rgba(196, 162, 101, 0.3);
  position: relative;
  overflow: hidden;
}

.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: ctaShine 3s ease-in-out infinite;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(196, 162, 101, 0.4);
}

/* ================================================
   CONFETTI CANVAS
   ================================================ */

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

/* ================================================
   CONFIRMATION DIALOG
   ================================================ */

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  animation: fadeIn 0.25s ease;
}

.dialog-box {
  background: linear-gradient(135deg, #ffffff, #faf6f0);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255,255,255,0.8) inset;
  animation: dialogSlideIn 0.4s var(--transition-bounce);
}

.dialog-message {
  font-size: var(--fs-body);
  color: var(--text-dark);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  white-space: pre-line;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.dialog-btn {
  padding: var(--space-sm) var(--space-xl);
  border-radius: 50px;
  font-size: var(--fs-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-spring);
  min-width: 100px;
}

.dialog-btn.cancel {
  background: #f0ebe4;
  color: var(--text-dark);
}

.dialog-btn.cancel:hover {
  background: #e5ddd3;
  transform: translateY(-2px);
}

.dialog-btn.confirm {
  background: linear-gradient(135deg, var(--cta-red), var(--accent-dark));
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(122, 24, 24, 0.25);
}

.dialog-btn.confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(122, 24, 24, 0.35);
}

/* ================================================
   SNACKBAR / TOAST
   ================================================ */

.snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--error), #a01c1c);
  color: white;
  padding: var(--space-md) var(--space-xl);
  border-radius: 50px;
  font-size: var(--fs-body);
  font-weight: 700;
  z-index: 2000;
  text-align: center;
  box-shadow: 0 8px 30px rgba(198, 40, 40, 0.35);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  max-width: min(90vw, 500px);
  white-space: pre-line;
}

.snackbar.show {
  transform: translateX(-50%) translateY(0);
}

/* ================================================
   SPINNER
   ================================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(196, 162, 101, 0.15);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
  margin: var(--space-xl) auto;
}

/* ================================================
   FOOTER
   ================================================ */

.app-footer {
  margin-top: auto;
  padding: 0 var(--space-lg);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 162, 101, 0.4), transparent);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-spring);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Individual social hover colors */
.social-link[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}
.social-link[aria-label="Instagram"]:hover .social-icon {
  filter: brightness(0) invert(1);
}

.social-link[aria-label="WhatsApp"]:hover {
  background: #25D366;
  border-color: transparent;
}
.social-link[aria-label="WhatsApp"]:hover .social-icon {
  filter: brightness(0) invert(1);
}

.social-link[aria-label="Twitter"]:hover {
  background: #1DA1F2;
  border-color: transparent;
}
.social-link[aria-label="Twitter"]:hover .social-icon {
  filter: brightness(0) invert(1);
}

.social-link[aria-label="Email"]:hover {
  background: var(--accent);
  border-color: transparent;
}
.social-link[aria-label="Email"]:hover .social-icon {
  filter: brightness(0) invert(1);
}

.social-link[aria-label="Website"]:hover {
  background: var(--gold);
  border-color: transparent;
}
.social-link[aria-label="Website"]:hover .social-icon {
  filter: brightness(0) invert(1);
}

.social-icon {
  width: 17px;
  height: 17px;
  filter: brightness(0);
  transition: filter var(--transition-fast);
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-dark);
}

.footer-do-logo {
  height: 32px;
  width: auto;
  transition: all var(--transition-smooth);
}

.footer-do-logo:hover {
  transform: scale(1.05);
}

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

@media (max-width: 800px) {
  .header-inner {
    padding: 0 var(--space-md);
  }

  .page-container {
    padding: 0 var(--space-md);
  }

  .event-card {
    width: min(300px, 90vw);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .sponsor-img {
    max-height: 80px;
  }

  .stage-label {
    max-width: 250px;
    font-size: var(--fs-body);
  }

  .booking-form-section {
    padding: var(--space-lg) var(--space-md);
  }

  .dialog-box {
    margin: var(--space-md);
    padding: var(--space-xl);
  }

  .time-slot-card {
    min-width: 150px;
  }
}

@media (max-width: 480px) {
  .events-grid {
    gap: var(--space-md);
  }

  .event-card {
    width: 100%;
  }

  .stepper-value {
    font-size: 1.4rem;
  }

  .seat {
    width: 20px;
    height: 20px;
  }

  .seat-row-label {
    width: 24px;
    font-size: 7px;
  }

  .ticket-card {
    width: 100%;
  }
}

/* --- Print Styles --- */
@media print {
  .app-header,
  .app-footer,
  .sponsor-banner,
  .download-btn,
  .btn-back,
  .btn-secondary,
  #confetti-canvas {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

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