/* ═══════════════════════════════════════════════════════════════
   MOViEON — Premium Dark Cinema UI Design System
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-root: #06060b;
  --bg-primary: #0a0a0f;
  --bg-card: rgba(14, 14, 22, 0.82);
  --bg-card-hover: rgba(22, 22, 35, 0.9);
  --bg-glass: rgba(16, 16, 28, 0.65);
  --bg-input: rgba(18, 18, 30, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(212, 165, 116, 0.3);
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent-gold: #d4a574;
  --accent-gold-bright: #e8c547;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  --gradient-gold: linear-gradient(135deg, #d4a574 0%, #e8c547 100%);
  --gradient-violet: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --gradient-dark: linear-gradient(180deg, rgba(6,6,11,0) 0%, rgba(6,6,11,1) 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(212,165,116,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 320px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-root);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

::selection { background: rgba(212,165,116,0.3); color: #fff; }

a { color: var(--accent-gold); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Animated Background Canvas ────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(139,92,246,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(212,165,116,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Layout ────────────────────────────────────────────────── */
.app-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-layout {
  display: flex;
  flex: 1;
  padding-top: 72px;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 60px;
  margin-right: var(--sidebar-width);
}

/* ── Header ────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #0a0a0f;
  font-family: var(--font-display);
  box-shadow: 0 0 16px rgba(212,165,116,0.3);
}

.header__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__title span {
  font-weight: 800;
  -webkit-text-fill-color: #e8c547;
  opacity: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.nav-link--active {
  color: var(--accent-gold);
  border-color: var(--border-accent);
  background: rgba(212,165,116,0.08);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 72px;
  right: 0;
  width: var(--sidebar-width);
  height: calc(100vh - 72px);
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.sidebar__map {
  width: 100%;
  height: 220px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.sidebar__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(0.92) hue-rotate(180deg) brightness(0.8) contrast(1.1);
}

.sidebar__info {
  padding: 20px;
  flex: 1;
}

.sidebar__theatre-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 12px;
  line-height: 1.4;
}

.sidebar__address {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
}

.sidebar__contact-icon {
  font-size: 16px;
}

.sidebar__contact-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.sidebar__contact-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tech-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-gold);
  background: rgba(212,165,116,0.08);
  border: 1px solid rgba(212,165,116,0.15);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar__directions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  margin-bottom: 28px;
}

.section-header__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

/* ── Movie Cards Grid ──────────────────────────────────────── */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.movie-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.movie-card__poster {
  width: 100%;
  aspect-ratio: 2/3;
  position: relative;
  overflow: hidden;
}

.movie-card__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .movie-card__poster-img {
  transform: scale(1.05);
}

.movie-card__poster-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: var(--gradient-dark);
}

.movie-card__rating {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 4px;
}

.movie-card__info {
  padding: 16px;
}

.movie-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.movie-card__genre {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-weight: 500;
}

.movie-card__duration {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Movie Detail ──────────────────────────────────────────── */
.movie-detail {
  animation: fadeUp 0.4s ease;
}

.movie-detail__hero {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
}

.movie-detail__poster {
  width: 220px;
  min-width: 220px;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.movie-detail__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-detail__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-detail__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.movie-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}

.detail-badge--rating {
  color: var(--accent-gold-bright);
  border-color: rgba(232,197,71,0.3);
  background: rgba(232,197,71,0.08);
}

.movie-detail__synopsis {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.movie-detail__cast {
  font-size: 13px;
  color: var(--text-muted);
}

.movie-detail__cast strong {
  color: var(--text-secondary);
}

/* ── Date Picker ───────────────────────────────────────────── */
.date-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0;
  margin-bottom: 28px;
  scrollbar-width: none;
}

.date-picker::-webkit-scrollbar { display: none; }

.date-btn {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 80px;
  font-family: var(--font-body);
}

.date-btn:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.date-btn--active {
  border-color: var(--accent-gold);
  background: rgba(212,165,116,0.1);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(212,165,116,0.1);
}

.date-btn__day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.date-btn__num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.date-btn__month {
  font-size: 10px;
  opacity: 0.7;
}

/* ── Showtime Grid ─────────────────────────────────────────── */
.showtime-section {
  margin-bottom: 28px;
}

.showtime-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.showtime-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.showtime-btn:hover {
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}

.showtime-btn--active {
  border-color: var(--accent-violet);
  background: rgba(139,92,246,0.1);
  color: var(--accent-violet);
  box-shadow: 0 0 12px rgba(139,92,246,0.1);
}

/* ── Audi Selector ─────────────────────────────────────────── */
.audi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.audi-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.audi-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.audi-card--active {
  border-color: var(--accent-emerald);
  background: rgba(16,185,129,0.08);
  box-shadow: 0 0 16px rgba(16,185,129,0.1);
}

.audi-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.audi-card__type {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.audi-card__seats {
  font-size: 12px;
  color: var(--text-secondary);
}

.audi-card__price-range {
  font-size: 11px;
  color: var(--accent-gold);
  margin-top: 6px;
  font-weight: 600;
}

/* ── Seat Input Form ───────────────────────────────────────── */
.seat-input-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 28px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-group select:focus,
.form-group input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}

.form-group select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

/* ── Seat Map ──────────────────────────────────────────────── */
.seat-map-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  overflow-x: auto;
}

.seat-map__screen {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.seat-map__screen-curve {
  width: 70%;
  height: 6px;
  margin: 0 auto 10px;
  background: var(--gradient-gold);
  border-radius: 0 0 50% 50%;
  box-shadow: 0 4px 30px rgba(212,165,116,0.2);
}

.seat-map__screen span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.seat-map__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.seat-map__zone-label {
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  margin: 10px 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.02);
}

.seat-map__zone-gap {
  height: 16px;
}

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

.seat-row__label {
  width: 22px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.seat-row__seats {
  display: flex;
  gap: 4px;
}

/* ── Individual Seats ──────────────────────────────────────── */
.seat {
  width: 32px;
  height: 30px;
  border-radius: 6px 6px 3px 3px;
  border: 1.5px solid var(--border-subtle);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-family: var(--font-body);
  padding: 0;
}

.seat__num {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.seat__recliner-icon {
  position: absolute;
  top: -1px;
  right: 0px;
  font-size: 7px;
  pointer-events: none;
}

.seat--aisle-gap { margin-left: 14px; }

.seat--available:hover {
  border-color: var(--accent-gold);
  background: rgba(212,165,116,0.12);
  transform: scale(1.1);
  z-index: 2;
}

.seat--booked {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.25);
  cursor: not-allowed;
  opacity: 0.5;
}

.seat--booked .seat__num { color: rgba(239,68,68,0.5); }

.seat--selected {
  background: rgba(232,197,71,0.25);
  border-color: var(--accent-gold-bright);
  box-shadow: 0 0 8px rgba(232,197,71,0.2);
}

.seat--selected .seat__num { color: var(--accent-gold-bright); }

.seat--recommended {
  background: rgba(59,130,246,0.2);
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(59,130,246,0.2);
  animation: pulse-blue 1.5s ease infinite;
}

.seat--recommended .seat__num { color: var(--accent-blue); }

.seat--recliner {
  width: 38px;
  height: 34px;
  border-radius: 8px 8px 4px 4px;
}

/* ── Seat Legend ────────────────────────────────────────────── */
.seat-map__legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.legend-box {
  width: 18px;
  height: 16px;
  border-radius: 4px 4px 2px 2px;
  border: 1.5px solid;
}

.legend-box--available { border-color: var(--border-subtle); background: rgba(255,255,255,0.04); }
.legend-box--booked { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.15); }
.legend-box--selected { border-color: var(--accent-gold-bright); background: rgba(232,197,71,0.25); }
.legend-box--recommended { border-color: var(--accent-blue); background: rgba(59,130,246,0.2); }

/* ── Seat Selection Bar ────────────────────────────────────── */
.seat-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 20px;
}

.seat-selection-bar__info {
  font-size: 14px;
  color: var(--text-secondary);
}

.seat-selection-bar__info strong {
  color: var(--accent-gold-bright);
  font-size: 18px;
}

.seat-selection-bar__actions {
  display: flex;
  gap: 10px;
}

/* ── AI Recommendation Banner ──────────────────────────────── */
.ai-recommendation {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
  border: 1px solid rgba(59,130,246,0.2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ai-recommendation__text {
  font-size: 14px;
  color: var(--text-secondary);
}

.ai-recommendation__text strong {
  color: var(--accent-blue);
}

.ai-recommendation__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-gold);
  color: #0a0a0f;
  border: none;
  box-shadow: 0 2px 12px rgba(212,165,116,0.2);
}

.btn--primary:hover {
  box-shadow: 0 4px 20px rgba(212,165,116,0.35);
  transform: translateY(-1px);
}

.btn--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn--danger {
  background: rgba(239,68,68,0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239,68,68,0.2);
}

.btn--danger:hover {
  background: rgba(239,68,68,0.2);
}

/* ── Back Button ───────────────────────────────────────────── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.back-btn:hover { color: var(--text-primary); }

/* ── F&B Modal ─────────────────────────────────────────────── */
.fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

.fb-modal {
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.3s ease;
}

.fb-modal__header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-modal__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.fb-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.fb-modal__close:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.fb-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.fb-tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-body);
}

.fb-tab:hover { color: var(--text-secondary); }

.fb-tab--active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

.fb-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.fb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.fb-item:last-child { border-bottom: none; }

.fb-item__info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fb-item__emoji {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}

.fb-item__name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.fb-item__desc {
  font-size: 11px;
  color: var(--text-muted);
}

.fb-item__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fb-item__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-gold);
  min-width: 60px;
  text-align: right;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: none;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  font-family: var(--font-body);
}

.qty-control button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.qty-control__num {
  width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.fb-modal__footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

.fb-modal__total {
  font-size: 14px;
  color: var(--text-secondary);
}

.fb-modal__total strong {
  color: var(--accent-gold-bright);
  font-size: 18px;
}

.fb-modal__actions {
  display: flex;
  gap: 10px;
}

/* ── Order Summary ─────────────────────────────────────────── */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.order-summary__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-summary__header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.order-summary__section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-summary__section h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-summary__movie {
  display: flex;
  gap: 16px;
  align-items: center;
}

.summary-poster {
  width: 56px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  flex-shrink: 0;
}

.order-summary__movie h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.order-summary__movie p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.order-summary__divider {
  height: 1px;
  background: var(--border-subtle);
}

.order-summary__totals {
  padding: 16px 24px;
}

.summary-line--total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold-bright);
}

/* ── Payment Form ──────────────────────────────────────────── */
.payment-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  animation: fadeUp 0.4s ease;
}

.payment-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 28px;
}

.payment-form h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.input-group label .required {
  color: var(--accent-red);
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.text-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,165,116,0.1);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.payment-methods {
  margin-top: 28px;
}

.payment-methods h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 8px;
}

.payment-option:hover {
  border-color: var(--border-light);
  background: rgba(255,255,255,0.04);
}

.payment-option--active {
  border-color: var(--accent-gold);
  background: rgba(212,165,116,0.06);
}

.payment-option input[type="radio"] {
  accent-color: var(--accent-gold);
  width: 16px;
  height: 16px;
}

.payment-option__icon {
  font-size: 20px;
}

.payment-option__label {
  font-size: 14px;
  font-weight: 500;
}

.pay-btn-wrapper {
  margin-top: 24px;
}

.pay-btn-wrapper .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 16px;
}

/* ── Booking Confirmed ─────────────────────────────────────── */
.booking-confirmed {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 0.5s ease;
  position: relative;
}

.booking-confirmed__badge {
  margin-bottom: 32px;
}

.badge-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: scaleIn 0.5s ease 0.2s both;
}

.badge-circle svg {
  width: 32px;
  height: 32px;
  color: #0a0a0f;
}

.booking-confirmed__badge h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.booking-id-display {
  font-size: 14px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ── Ticket ────────────────────────────────────────────────── */
.ticket {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  text-align: left;
  margin-bottom: 28px;
}

.ticket__header {
  padding: 24px;
  position: relative;
}

.ticket__movie-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.ticket__movie-info p {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.ticket__tear {
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-subtle) 0, var(--border-subtle) 6px, transparent 6px, transparent 12px);
}

.ticket__body {
  padding: 24px;
}

.ticket__details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ticket__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket__detail-label {
  font-size: 11px;
  color: var(--text-muted);
}

.ticket__detail-value {
  font-size: 15px;
  font-weight: 700;
}

.ticket__food {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.ticket__food h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ticket__food p {
  font-size: 13px;
  color: var(--text-secondary);
}

.ticket__qr {
  display: flex;
  justify-content: center;
  padding: 20px;
  margin: 16px 0;
  background: white;
  border-radius: var(--radius-md);
}

.ticket__footer-info {
  text-align: center;
  margin-top: 16px;
}

.ticket__footer-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ticket__total {
  font-size: 16px !important;
  color: var(--accent-gold-bright) !important;
}

.ticket__venue {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.02);
}

.ticket__venue p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ticket__venue-address {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: var(--text-muted) !important;
  margin-top: 4px;
}

.booking-confirmed__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Check Booking ─────────────────────────────────────────── */
.check-booking {
  max-width: 480px;
  margin: 0 auto;
  animation: fadeUp 0.4s ease;
}

.check-booking__form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 32px;
  margin-bottom: 28px;
}

.check-booking__form h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.check-booking__result {
  animation: fadeUp 0.3s ease;
}

/* ── QR Fallback ───────────────────────────────────────────── */
.qr-fallback {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qr-pattern {
  width: 120px;
  height: 120px;
  background: repeating-conic-gradient(#0a0a0f 0% 25%, #e0e0e0 0% 50%) 0 0 / 12px 12px;
  border-radius: 4px;
}

.qr-fallback p {
  font-size: 11px;
  color: #666;
  font-weight: 600;
}

/* ── Confetti ──────────────────────────────────────────────── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  background: var(--color);
  border-radius: 2px;
  animation: confettiFall 3s ease-in var(--delay) forwards;
  transform: rotate(var(--rotation));
}

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 500;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success .toast__icon { color: var(--accent-emerald); }
.toast--error .toast__icon { color: var(--accent-red); }
.toast--info .toast__icon { color: var(--accent-blue); }

/* ── Processing Overlay ────────────────────────────────────── */
.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeIn 0.3s ease;
}

.processing-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.processing-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state__text {
  font-size: 16px;
}

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 4px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,0.35); }
}

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

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

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

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .main-content { margin-right: 0; }
  .payment-page { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-content { padding: 20px 16px 60px; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .movie-detail__hero { flex-direction: column; }
  .movie-detail__poster { width: 180px; min-width: 180px; }
  .audi-grid { grid-template-columns: 1fr; }
  .seat-input-form { flex-direction: column; }
  .header { padding: 0 16px; }
  .seat { width: 26px; height: 24px; }
  .seat__num { font-size: 8px; }
  .seat--recliner { width: 32px; height: 28px; }
  .seat-row__seats { gap: 2px; }
  .seat--aisle-gap { margin-left: 8px; }
  .fb-modal { width: 95%; }
  .input-row { grid-template-columns: 1fr; }
}

/* ── Floating Step Navigation Buttons ─────────────────────── */
.step-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.step-nav:hover {
  background: rgba(212, 165, 116, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 28px rgba(212, 165, 116, 0.2);
}
.step-nav:active {
  transform: translateY(-50%) scale(0.95);
}
.step-nav--back {
  left: 12px;
}
.step-nav--next {
  right: 12px;
}
.step-nav--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.7);
}

@media (max-width: 768px) {
  .step-nav { width: 36px; height: 36px; }
  .step-nav--back { left: 6px; }
  .step-nav--next { right: 6px; }
}
