/* ============================================================
   DESIGN TOKENS: WARM RETRO POSTER THEME (สีสดใสน่ารักตามโปสเตอร์ 2475)
   ============================================================ */
:root {
  --purple-900: #fbf8f1;         /* Warm cream poster paper */
  --purple-800: #ffffff;         /* Cards: pure white */
  --purple-700: #f4eee1;         /* Soft parchment */
  --purple-600: #1c1917;         /* Headings */
  --purple-500: #286b6e;         /* Vintage 1930s Teal */
  --purple-400: #c83e29;         /* 2475 Terracotta Red */
  --purple-300: #d9533c;         /* Coral red */
  --gold-500: #c83e29;           /* Red accent */
  --gold-400: #d97706;           /* Amber / Gold */
  --gold-300: #1c1917;           /* Selected title/text */
  --gold-200: #292524;
  --white: #ffffff;
  --text-primary: #1c1917;       /* Dark charcoal */
  --text-secondary: #44403c;     /* Dark stone */
  --text-muted: #78716c;         /* Muted stone */
  --glass: #ffffff;
  --glass-border: rgba(40, 107, 110, 0.16);
  --success: #15803d;
  --error: #dc2626;
  --warning: #b45309;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 6px 24px rgba(200, 62, 41, 0.12);
  --shadow-gold: 0 4px 18px rgba(200, 62, 41, 0.18);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', sans-serif;
  background-color: #fbf8f1;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  display: none;
}

/* ============================================================
   VIEWS
   ============================================================ */
.view { display: none; min-height: 100vh; overflow-x: hidden; width: 100%; position: relative; z-index: 1; }
.view.active { display: block; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-bg {
  display: none;
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 36px;
  background: linear-gradient(90deg, #c83e29 0%, #e06d44 35%, #286b6e 100%) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.header-logo:hover {
  opacity: 0.9;
  transform: scale(1.02);
}
.header-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: inline-block;
}
.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.header-nav a:hover {
  color: #fef08a;
  opacity: 0.95;
}

.btn-nav {
  background: #ffffff;
  color: #c83e29 !important;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  text-shadow: none !important;
}
.btn-nav:hover {
  transform: translateY(-1px);
  background: #fdfbf7;
  color: #286b6e !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.scroll-down-hint {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 36px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  text-decoration: none;
  animation: floatDown 2.2s ease-in-out infinite;
  transition: var(--transition);
  z-index: 10;
  cursor: pointer;
}
.scroll-down-hint:hover {
  color: #ff3b30;
  border-color: #ff3b30;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(255, 59, 48, 0.15);
}

@keyframes floatDown {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.65;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 60px;
  padding: 120px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content { display: flex; flex-direction: column; gap: 20px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--gold-300);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(1.4rem, 4.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  padding-top: 0;
  padding-bottom: 8px;
  overflow: visible;
  color: var(--text-primary);
}

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--purple-400);
  margin-top: -10px;
}

.hero-synopsis {
  margin-top: 14px;
  margin-bottom: 24px;
  font-size: 1.02rem;
  line-height: 1.85;
  color: #000000;
  max-width: 620px;
}
.hero-synopsis p {
  color: #000000;
}
.hero-synopsis strong {
  font-weight: 700;
  color: #000000;
}
.synopsis-desktop {
  display: block;
}
.synopsis-mobile {
  display: none;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 22px;
  background: #ffffff;
  border: 2px solid #286b6e;
  box-shadow: 0 4px 16px rgba(40, 107, 110, 0.12);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

#btn-buy-hero {
  width: 100%;
  max-width: 360px;
  justify-content: center;
  box-sizing: border-box;
}
.hero-meta::-webkit-scrollbar {
  display: none;
}

.meta-item { font-size: 0.98rem; color: #000000; font-weight: 600; }
.meta-item a { color: #000000; text-decoration: none; }
.meta-item a:hover { color: #286b6e; text-decoration: underline; }
.meta-divider { color: var(--purple-400); }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #c83e29 0%, #b3321f 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold), 0 10px 30px rgba(200, 62, 41, 0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; padding: 16px; border-radius: var(--radius-md); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 28px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover { background: var(--glass); border-color: var(--purple-400); }

.hero-note { font-size: 0.85rem; color: var(--text-muted); margin-top: -8px; }

/* POSTER & COUNTDOWN */
.hero-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  align-self: flex-start;
  gap: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 0;
}

.poster-glow {
  display: none !important;
}

.poster-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 390px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(40, 30, 20, 0.15), 0 4px 15px rgba(200, 62, 41, 0.12);
  border: 1px solid rgba(40, 107, 110, 0.18);
  outline: none;
  display: block;
  object-fit: cover;
  animation: floatPoster 6s ease-in-out infinite;
}

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

/* DIGITAL FLIP COUNTDOWN (Early Bird) */
.countdown-widget {
  width: 100%;
  max-width: 390px;
  background: #ffffff;
  border: 2px solid #286b6e;
  border-radius: 16px;
  padding: 14px 18px 16px;
  box-shadow: 
    0 12px 30px rgba(40, 107, 110, 0.15),
    0 3px 10px rgba(200, 62, 41, 0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  z-index: 2;
}

.countdown-widget:hover {
  transform: translateY(-2px);
  border-color: #c83e29;
  box-shadow: 
    0 18px 36px rgba(200, 62, 41, 0.2),
    0 4px 12px rgba(40, 107, 110, 0.15);
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.countdown-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c83e29;
  box-shadow: 0 0 10px rgba(200, 62, 41, 0.6);
  animation: pulseBeat 1.8s infinite;
  flex-shrink: 0;
}

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

.countdown-title {
  font-family: 'Sarabun', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1c1917;
  letter-spacing: 0.5px;
  text-align: center;
}

.countdown-board {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.countdown-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.countdown-card {
  position: relative;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, #fdfbf7 0%, #f7f2e8 49%, #ede3d1 51%, #e5d8c3 100%);
  border-radius: 8px;
  border: 1px solid rgba(200, 62, 41, 0.25);
  box-shadow: 
    0 6px 12px rgba(40, 30, 20, 0.1),
    inset 0 1px 1px #ffffff,
    inset 0 -2px 4px rgba(40, 30, 20, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Horizontal seam for split-flap effect */
.countdown-card-seam {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(200, 62, 41, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 2;
  pointer-events: none;
}

/* Side notches */
.countdown-card::before,
.countdown-card::after {
  content: '';
  position: absolute;
  top: calc(50% - 3px);
  width: 3px;
  height: 6px;
  background: #d8cbb8;
  z-index: 3;
}
.countdown-card::before {
  left: 0;
  border-radius: 0 2px 2px 0;
}
.countdown-card::after {
  right: 0;
  border-radius: 2px 0 0 2px;
}

.countdown-digit {
  font-family: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  font-size: 2.65rem;
  font-weight: 400;
  color: #c83e29;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  z-index: 1;
  letter-spacing: 2px;
}

.countdown-unit {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #286b6e;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 4px;
}

.show-info {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
  background: #f4eee1;
  border-top: 1px solid rgba(40, 107, 110, 0.16);
}

.container { max-width: 1100px; margin: 0 auto; }

.campaign-box {
  text-align: center;
  margin-top: 0;
  margin-bottom: 40px;
}
.campaign-lead {
  font-size: 1.12rem;
  color: #292524;
  line-height: 1.6;
}
.campaign-title {
  font-size: 1.45rem;
  color: #c83e29;
  margin-top: 6px;
}
.campaign-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}
.campaign-title a:hover {
  text-decoration: underline;
  opacity: 0.85;
}
.campaign-title strong {
  font-weight: 700;
}

.info-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 320px;
  max-width: 370px;
  background: #ffffff;
  border: 1px solid rgba(40, 107, 110, 0.18);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(40, 30, 20, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: #c83e29;
  box-shadow: 0 8px 25px rgba(200, 62, 41, 0.15);
}
.info-icon { font-size: 2.5rem; margin-bottom: 16px; }
.info-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: #1c1917; }
.info-card p { color: #44403c; line-height: 1.7; font-size: 0.98rem; }

.cta-bottom { text-align: center; }

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: #78716c;
  font-size: 0.85rem;
  border-top: 1px solid rgba(40, 107, 110, 0.16);
  background: #fbf8f1;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: relative;
  z-index: 100;
  background: rgba(251, 248, 241, 0.94);
  backdrop-filter: blur(20px);
  padding: 16px 40px;
  border-bottom: 1px solid var(--glass-border);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.ps-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(40, 107, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text-muted);
}

.progress-step.active .ps-dot {
  background: linear-gradient(135deg, #c83e29, #d9533c);
  border-color: #c83e29;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(200, 62, 41, 0.3);
}

.progress-step.done .ps-dot {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.progress-step span {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.progress-step.active span { color: var(--gold-300); }

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--glass-border);
  min-width: 40px;
  margin-bottom: 18px;
  transition: var(--transition);
}
.progress-line.done { background: var(--success); }

/* ============================================================
   INNER PAGES COMMON
   ============================================================ */
.page-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(90deg, #c83e29 0%, #e06d44 35%, #286b6e 100%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.page-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.1rem;
  font-weight: 600;
  pointer-events: none;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-header .btn-back {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.page-header .btn-back:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-back:hover { background: rgba(0,0,0,0.08); color: var(--white); }

/* ============================================================
   TICKET PAGE
   ============================================================ */
.ticket-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ticket-section {
  background: #ffffff;
  border: 1px solid rgba(40, 107, 110, 0.18);
  box-shadow: 0 4px 20px rgba(40, 30, 20, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  animation: fadeSlideIn 0.4s ease;
}

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

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Back button row inside each step */
.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.btn-step-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #d4d4d8;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
}
.btn-step-back:hover {
  color: #ff3b30;
}
.btn-step-back:active { transform: scale(0.96); }

/* ── Date Grid ──────────────────────────────────────────── */
.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
  gap: 4px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(40, 107, 110, 0.16);
  background: #fdfbf7;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.date-card:hover {
  border-color: #c83e29;
  background: #fff8f6;
  transform: translateY(-2px);
}
.date-card.selected {
  border-color: #c83e29;
  background: #fff5f3;
  box-shadow: 0 0 0 1px rgba(200, 62, 41, 0.2) inset;
}
.date-card-week {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.date-card-day {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.date-card-month {
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.date-card-slots {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.date-card.selected .date-card-day { color: var(--gold-300); }
.date-card.selected .date-card-week { color: var(--gold-500); }

/* Sold Out styling */
.sold-out {
  color: var(--error) !important;
  font-weight: 700;
  text-transform: uppercase;
}
.slot-seat-badge.seat-full {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Week separator */
.week-label {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple-400);
  padding: 4px 0 2px;
  border-bottom: 1px solid rgba(255,59,48,0.15);
  margin-bottom: 2px;
}

/* ── Slot Grid ──────────────────────────────────────────── */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  width: 100%;
}

.slot-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(40, 107, 110, 0.16);
  background: #fdfbf7;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.slot-btn:hover {
  border-color: #c83e29;
  background: #fff8f6;
  transform: translateY(-2px);
}
.slot-btn.selected {
  border-color: #c83e29;
  background: #fff5f3;
}
.slot-time {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.slot-btn.selected .slot-time { color: var(--gold-300); }
.slot-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ticket-type-grid { display: flex; flex-direction: column; gap: 12px; }

.ticket-type-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(40, 107, 110, 0.16);
  cursor: pointer;
  transition: var(--transition);
  background: #fdfbf7;
  position: relative;
  overflow: hidden;
}
.ticket-type-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,59,48,0.03), transparent);
  opacity: 0;
  transition: var(--transition);
}
.ticket-type-card:hover { border-color: #c83e29; transform: translateX(4px); }
.ticket-type-card:hover::before { opacity: 1; }
.ticket-type-card.selected {
  border-color: #c83e29;
  background: #fff5f3;
  box-shadow: inset 0 0 0 1px rgba(200, 62, 41, 0.2);
}
.ticket-type-card.selected::before { opacity: 1; }

.ticket-type-info { display: flex; flex-direction: column; align-items: flex-start !important; gap: 4px; }
.ticket-type-name { font-size: 1.05rem; font-weight: 600; text-transform: uppercase; }
.ticket-type-desc { font-size: 0.82rem; color: var(--text-muted); }
.ticket-type-badge {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: fit-content !important;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap !important;
}
.badge-early { background: rgba(40, 107, 110, 0.12); color: #286b6e; border: 1px solid rgba(40, 107, 110, 0.25); }
.badge-student { background: rgba(37, 99, 235, 0.1); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.25); }
.badge-regular { background: rgba(200, 62, 41, 0.1); color: #c83e29; border: 1px solid rgba(200, 62, 41, 0.2); }
.badge-promo { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.35); }
.badge-quota { background: rgba(255,59,48,0.1); color: var(--gold-300); border: 1px solid rgba(255,59,48,0.2); }

.ticket-type-note { font-size: 0.78rem; color: #fcd34d; line-height: 1.4; margin-top: 2px; }
.ticket-summary-note { font-size: 0.78rem; color: #fcd34d; font-weight: 500; text-align: right; }

.ticket-type-price { font-size: 1.5rem; font-weight: 700; color: var(--gold-300); white-space: nowrap; }
.ticket-type-price span { font-size: 0.8rem; font-weight: 400; color: var(--text-muted); }

.ticket-radio {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.ticket-type-card.selected .ticket-radio {
  border-color: #c83e29;
  background: #c83e29;
  box-shadow: 0 0 8px rgba(200, 62, 41, 0.3);
}

/* QUANTITY */
.quantity-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.qty-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { border-color: var(--gold-500); color: var(--gold-300); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-num {
  font-size: 3rem;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
  color: var(--text-primary);
}

.qty-limit { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; }

/* BUNDLE PROMOTION HINT */
.bundle-hint-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
  transition: all 0.3s ease;
}
.bundle-hint-box strong { font-weight: 700; }
.bundle-hint-box.hint-default {
  background: #fefce8;
  border: 1.5px solid #fde047;
  color: #854d0e;
}
.bundle-hint-box.hint-almost {
  background: #fff7ed;
  border: 1.5px solid #fdba74;
  color: #9a3412;
}
.bundle-hint-box.hint-active {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #166534;
}
.bundle-hint-box.hint-max {
  background: linear-gradient(135deg, #fefce8, #f0fdf4);
  border: 1.5px solid #16a34a;
  color: #14532d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
}

/* PRICE SUMMARY */
.price-summary { padding: 20px 24px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-muted); }
.summary-val { font-weight: 500; }

.bundle-discount-row {
  color: #15803d !important;
}
.bundle-discount-val {
  color: #15803d !important;
  font-weight: 700 !important;
}

.total-row { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--glass-border) !important; border-bottom: none !important; }
.total-price {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* PAYMENT */
.payment-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.payment-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.payment-qr-inner {
  line-height: 0;
  background: #ffffff !important;
  padding: 12px !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  filter: none !important;
  color-scheme: light !important;
  display: inline-block;
}

.payment-qr-inner canvas,
.payment-qr-inner img {
  vertical-align: middle;
  background: #ffffff !important;
  filter: none !important;
  color-scheme: light !important;
}

.qr-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: #ffffff !important;
  padding: 12px !important;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  filter: none !important;
  color-scheme: light !important;
  margin: 0 auto 8px;
}

.qr-container canvas,
.qr-container img {
  vertical-align: middle;
  background: #ffffff !important;
  filter: none !important;
  color-scheme: light !important;
}

.payment-qr-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.payment-info { display: flex; flex-direction: column; gap: 16px; flex: 1; }

.bank-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}
.bank-logo { font-size: 1.5rem; flex-shrink: 0; }
.bank-name { font-weight: 600; font-size: 0.95rem; color: var(--gold-300); }
.bank-acc { font-size: 1.1rem; font-weight: 700; letter-spacing: 1px; margin: 2px 0; }
.bank-holder { font-size: 0.82rem; color: var(--text-muted); }

.payment-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 12px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
}
.payment-note svg { flex-shrink: 0; color: var(--warning); margin-top: 1px; }

/* ============================================================
   INFO PAGE
   ============================================================ */
.info-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-recap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255,59,48,0.05);
  border: 1px solid rgba(255,59,48,0.15);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.recap-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recap-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(255,59,48,0.1);
}

.recap-edit-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.btn-recap-edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: 'Sarabun', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-recap-edit:hover {
  background: rgba(255, 59, 48, 0.1);
  border-color: #ff3b30;
  color: #ff3b30;
  transform: translateY(-1px);
}
.btn-recap-edit:active { transform: scale(0.96); }

.recap-badge {
  background: rgba(255,59,48,0.1);
  color: var(--gold-300);
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
}

.recap-detail { color: var(--text-secondary); }
.recap-sep { color: var(--text-muted); }
.recap-total { font-weight: 700; color: var(--gold-300); margin-left: auto; }

.customer-form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.required { color: #f87171; }

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: 'Sarabun', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-400);
  background: rgba(255,59,48,0.05);
  box-shadow: 0 0 0 3px rgba(255,59,48,0.1);
}

.consent-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.consent-box input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-500);
  cursor: pointer;
}

/* ── Bottom back button (ด้านล่าง form ขั้นที่ 2) ────────────── */
.form-back-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.btn-form-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: 'Sarabun', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-form-back:hover {
  background: var(--glass);
  border-color: var(--purple-400);
  color: var(--text-secondary);
  transform: translateX(-2px);
}
.btn-form-back:active { transform: scale(0.97); }

.form-back-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   CONFIRMATION PAGE
   ============================================================ */
.confirm-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.confirm-hero {
  text-align: center;
  padding: 32px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius-xl);
}
.confirm-icon { font-size: 4rem; margin-bottom: 12px; }
.confirm-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.confirm-sub { color: var(--text-secondary); font-size: 0.95rem; }

.order-detail-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-muted); }
.detail-row strong { font-weight: 600; }

.tickets-heading {
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--glass-border);
  padding: 0 0 12px;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ticket-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
}
.ticket-card:hover {
  border-color: var(--purple-400);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.ticket-card-num {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}


.ticket-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-300);
}

.ticket-card-type {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ticket-card-id {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
  background: rgba(255,255,255,0.05);
  padding: 4px 10px;
  border-radius: 50px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.confirm-actions > * { flex: 1; min-width: 140px; justify-content: center; }

.confirm-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 16px;
  background: rgba(255,59,48,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.confirm-note svg { flex-shrink: 0; color: var(--purple-400); margin-top: 1px; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 20, 50, 0.95);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 12000;
  backdrop-filter: blur(20px);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,0.1);
  border-top-color: #ff3b30;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SLIP UPLOAD
   ============================================================ */
.slip-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}
.slip-upload-area:hover {
  border-color: var(--purple-400);
  background: rgba(255,59,48,0.03);
}
.slip-upload-area.has-file {
  border-color: var(--success);
  border-style: solid;
}

.slip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--text-muted);
  text-align: center;
}
.slip-placeholder svg { color: var(--purple-400); }
.slip-placeholder p { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
.slip-placeholder span { font-size: 0.78rem; }

.slip-preview-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.slip-preview-wrap img {
  max-height: 240px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.slip-remove-btn {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  border-radius: 50px;
  padding: 6px 16px;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.slip-remove-btn:hover { background: rgba(239,68,68,0.2); }

/* ============================================================
   TICKET CAROUSEL
   ============================================================ */
.ticket-carousel-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.ticket-carousel {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  gap: 16px;
}

.ticket-card {
  background: #ffffff;
  border: 1.5px solid rgba(40, 107, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(40, 107, 110, 0.08);
  transition: all 0.3s ease;
  position: relative;
  /* Each card fills the visible area */
  flex: 0 0 100%;
  min-width: 0;
}
.ticket-card.active-slide {
  border-color: #286b6e;
  box-shadow: 0 8px 30px rgba(40, 107, 110, 0.14);
}

.ticket-card-num {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #78716c;
}
.ticket-card canvas {
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(40, 107, 110, 0.2);
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(40, 107, 110, 0.08);
}
.ticket-card-title { font-weight: 700; font-size: 1.05rem; color: #1c1917; }
.ticket-card-type { font-size: 0.88rem; font-weight: 600; color: #c83e29; }
.ticket-card-id {
  font-size: 0.75rem;
  color: #78716c;
  font-family: monospace;
  background: rgba(40, 107, 110, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
}

.btn-download-ticket {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #286b6e, #36888c);
  border: none;
  color: #ffffff;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: 'Sarabun', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(40, 107, 110, 0.25);
}
.btn-download-ticket:hover {
  background: linear-gradient(135deg, #1f5658, #286b6e);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(40, 107, 110, 0.35);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.carousel-btn:hover:not(:disabled) {
  border-color: var(--purple-400);
  background: rgba(255,59,48,0.1);
  color: var(--purple-300);
}
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--purple-400);
  width: 24px;
  border-radius: 4px;
}

.carousel-counter {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Single ticket → no carousel controls needed */
.ticket-carousel-wrap.single .carousel-controls,
.ticket-carousel-wrap.single .carousel-counter { display: none; }

@media print {
  .page-header, .confirm-actions, .confirm-note, .progress-bar { display: none !important; }
  .confirm-hero, .order-detail-card { page-break-inside: avoid; }
  body { background: white; color: black; }
  .ticket-card { border: 1px solid #ccc; break-inside: avoid; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-synopsis {
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 14px auto 24px;
    text-align: center;
    color: #ffffff;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-meta { justify-content: center; }
  .hero-poster { order: -1; gap: 14px; }
  .countdown-widget { max-width: 320px; }
  .countdown-card { height: 58px; }
  .countdown-digit { font-size: 2.3rem; }
  .poster-img { max-width: 300px; }
  .info-grid { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .synopsis-desktop {
    display: none;
  }
  .synopsis-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  /* ── Header: single clean row on mobile with logo left and nav right ── */
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    gap: 8px;
  }
  .header-logo {
    gap: 6px;
  }
  .header-logo-img {
    height: 28px;
  }
  .logo-emoji {
    font-size: 1.15rem;
  }
  .logo-text {
    font-size: 0.92rem;
  }
  /* Nav row */
  .header-nav {
    width: auto;
    gap: 12px;
    font-size: 0.78rem;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .btn-nav {
    padding: 6px 14px;
    font-size: 0.8rem;
    margin-left: 0;
  }

  /* ── Hero: contained and centered ── */
  .info-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
  .show-info {
    padding: 48px 16px;
  }
  .site-footer {
    padding: 24px 16px;
    text-align: center;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 110px 16px 40px;
    gap: 16px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .hero-content {
    align-items: center;
    width: 100%;
    gap: 14px;
    overflow: hidden;
  }
  .hero-poster {
    width: 100%;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 12px;
  }
  .countdown-widget {
    max-width: 280px;
    padding: 10px 10px 12px;
    border-radius: 12px;
  }
  .countdown-header {
    gap: 6px;
    margin-bottom: 8px;
  }
  .countdown-title {
    font-size: 0.88rem;
  }
  .countdown-board {
    gap: 5px;
  }
  .countdown-card {
    height: 52px;
    border-radius: 6px;
  }
  .countdown-digit {
    font-size: 2rem;
    letter-spacing: 1.5px;
  }
  .countdown-unit {
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-top: 3px;
  }
  .poster-img {
    max-width: 260px;
    width: 100%;
  }
  .hero-synopsis {
    font-size: 0.94rem;
    line-height: 1.85;
    margin: 12px auto 20px;
    width: 100%;
    max-width: 360px;
    color: #000000;
  }
  .hero-synopsis p,
  .hero-synopsis strong {
    color: #000000;
  }
  .hero-title {
    font-size: 1.4rem;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    width: 100%;
  }
  .hero-subtitle {
    font-size: 0.88rem;
    margin-top: -4px;
    line-height: 1.4;
    white-space: normal;
    width: 100%;
  }
  .hero-meta {
    padding: 14px 16px;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid #286b6e;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(40, 107, 110, 0.1);
    border-radius: var(--radius-md);
  }
  .meta-item { font-size: 0.82rem; color: #000000; font-weight: 600; }
  .meta-divider { display: none; }
  .btn-lg {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
  .hero-note {
    font-size: 0.72rem;
    margin-top: -4px;
    width: 100%;
  }

  /* ── Other pages ── */
  .payment-box { flex-direction: column; align-items: center; }
  .tickets-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-container,
  .info-container,
  .confirm-container { 
    padding: 16px 12px 80px; 
    gap: 16px; 
  }
  .ticket-section,
  .customer-form,
  .order-detail-card,
  .confirm-hero { 
    padding: 16px; 
    border-radius: var(--radius-md); 
  }
  .progress-bar { padding: 12px 16px; }
  .page-header { padding: 12px 16px; }
  .btn-back { padding: 6px 12px; font-size: 0.8rem; }
}

@media (max-width: 400px) {
  .header-logo {
    font-size: 0.78rem;
  }
  .logo-emoji {
    font-size: 0.8rem;
  }
  .header-nav {
    gap: 4px;
    font-size: 0.65rem;
  }
  .btn-nav {
    padding: 3px 5px;
  }
  .tickets-grid { grid-template-columns: 1fr; }
  .date-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .date-card { padding: 10px 4px; }
  .date-card-day { font-size: 1rem; }
}

/* =====================================================================
   DIRECTIONS & MAP (วิธีการเดินทาง & แผนที่ KINJAI CONTEMPORARY)
   ===================================================================== */

/* Body scroll lock */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Info Card interactive state */
.info-card.info-card-interactive {
  cursor: pointer;
  position: relative;
  border: 1.5px solid rgba(40, 107, 110, 0.28);
}
.info-card.info-card-interactive:hover {
  transform: translateY(-5px);
  border-color: #c83e29;
  box-shadow: 0 10px 28px rgba(200, 62, 41, 0.18);
}
.info-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(40, 107, 110, 0.08);
  color: #286b6e;
  border: 1px solid rgba(40, 107, 110, 0.25);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.info-card.info-card-interactive:hover .info-card-badge {
  background: #286b6e;
  color: #ffffff;
  border-color: #286b6e;
}

/* Modal Overlay */
.directions-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(18, 22, 22, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  animation: dirFadeIn 0.22s ease-out;
}
@keyframes dirFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.directions-modal-container {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.directions-modal-card {
  background: #fbf8f1;
  border-radius: 20px;
  border: 2px solid #286b6e;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
  animation: dirPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dirPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Modal Header */
.directions-modal-header {
  background: linear-gradient(135deg, #286b6e 0%, #1a494c 100%);
  color: #ffffff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 3px solid #c83e29;
}
.directions-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.directions-modal-icon {
  font-size: 1.8rem;
  line-height: 1;
}
.directions-modal-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  line-height: 1.3;
}
.btn-directions-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-directions-close:hover {
  background: #c83e29;
  border-color: #c83e29;
  transform: rotate(90deg);
}

/* Modal Body */
.directions-modal-body {
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}
.directions-modal-body::-webkit-scrollbar {
  width: 6px;
}
.directions-modal-body::-webkit-scrollbar-thumb {
  background: rgba(40, 107, 110, 0.25);
  border-radius: 3px;
}

/* Google Maps Primary Link */
.directions-main-link-wrap {
  width: 100%;
}
.btn-google-maps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #286b6e;
  border: 2px solid #286b6e;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(40, 107, 110, 0.1);
  transition: all 0.2s ease;
}
.btn-google-maps:hover {
  background: #286b6e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 107, 110, 0.25);
}

/* Map Image Section */
.directions-image-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(40, 107, 110, 0.25);
  background: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.directions-image-wrapper:hover {
  border-color: #c83e29;
}
.directions-map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.directions-image-wrapper:hover .directions-map-image {
  transform: scale(1.02);
}
.directions-image-caption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 50%, rgba(0, 0, 0, 0.94) 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 18px 14px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

/* Directions List */
.directions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.directions-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(40, 107, 110, 0.2);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(40, 30, 20, 0.04);
}
.directions-item-icon {
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4eee1;
  border: 1px solid rgba(40, 107, 110, 0.15);
}
.directions-item-content {
  flex: 1;
}
.directions-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.directions-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1917;
}
.directions-recommend-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #c8e6c9;
}
.directions-item-desc {
  font-size: 0.92rem;
  color: #44403c;
  line-height: 1.55;
}

/* Parking specifics */
.parking-spots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.parking-spot-card {
  background: #fbf8f1;
  border: 1px solid rgba(40, 107, 110, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.parking-spot-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.parking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #286b6e;
}
.parking-spot-name {
  font-size: 0.94rem;
  color: #1c1917;
}
.parking-spot-detail {
  font-size: 0.88rem;
  color: #57534e;
  line-height: 1.45;
}
.parking-time-warning {
  color: #c83e29;
  font-weight: 700;
}
.parking-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #286b6e;
  text-decoration: none;
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(40, 107, 110, 0.08);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.parking-map-btn:hover {
  background: #286b6e;
  color: #ffffff;
}

/* Parking Warning Callout */
.parking-alert-box {
  margin-top: 12px;
  background: #fff5f5;
  border: 1.5px solid #feb2b2;
  border-left: 4px solid #e53e3e;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  font-size: 0.88rem;
  color: #9b2c2c;
  line-height: 1.5;
}
.parking-alert-icon {
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Bus Routes Chips */
.bus-routes-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.bus-chip {
  background: #f4eee1;
  border: 1px solid rgba(40, 107, 110, 0.22);
  color: #1c1917;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Modal Footer */
.directions-modal-footer {
  padding: 14px 22px;
  background: #f4eee1;
  border-top: 1px solid rgba(40, 107, 110, 0.16);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.btn-copy-directions-footer {
  padding: 10px 18px;
  background: #ffffff;
  color: #286b6e;
  border: 1.5px solid rgba(40, 107, 110, 0.35);
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(40, 107, 110, 0.08);
}
.btn-copy-directions-footer:hover {
  background: #286b6e;
  color: #ffffff;
  border-color: #286b6e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 107, 110, 0.2);
}
.btn-copy-directions-footer.copied {
  background: #1b8a5a !important;
  color: #ffffff !important;
  border-color: #1b8a5a !important;
  box-shadow: 0 4px 12px rgba(27, 138, 90, 0.25) !important;
}
.btn-directions-dismiss {
  padding: 10px 24px;
  background: #286b6e;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-directions-dismiss:hover {
  background: #1c4b4d;
}

/* Lightbox Fullscreen */
.directions-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: dirFadeIn 0.2s ease-out;
}
.directions-lightbox-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.directions-lightbox-inner img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.directions-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c83e29;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
  .directions-modal-header {
    padding: 14px 16px;
  }
  .directions-modal-title {
    font-size: 1.1rem;
  }
  .directions-modal-body {
    padding: 16px;
    gap: 14px;
  }
  .directions-item {
    padding: 14px;
    gap: 12px;
  }
  .directions-item-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.4rem;
  }
  .directions-modal-footer {
    flex-direction: column;
    gap: 8px;
  }
  .btn-copy-directions-footer,
  .btn-directions-dismiss {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-right: 0;
  }
}
