/* ── Self-hosted fonts (were loaded from Google Fonts, which blocked first
   paint on a third-party request). Same families, same weights; variable
   woff2 files in /fonts, Latin + Latin Extended (macrons: Kāpiti). ── */
@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/dynapuff-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DynaPuff';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/dynapuff-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design System: Rebound Playland — Brand Palette · DynaPuff/Inter ── */
:root {
  --primary:    #838EE6;
  --secondary:  #33B8CF;
  --cta:        #FC6DAE;
  --cta-dark:   #DD5C96;
  --bg:         #F5F8FC;
  --text:       #324E62;
  --border:     #E1E8F2;

  /* Full brand palette, for reference/reuse */
  --brand-orange: #F9B745;
  --brand-green:  #A6D84C;
  --brand-coral:  #FF898A;
  --brand-blue:   #8AC9CF;
  --brand-pink:   #FC6DAE;
  --brand-purple: #838EE6;
  --brand-teal:   #33B8CF;
  --brand-mint:   #B5D9CF;
  --brand-navy:   #324E62;
}

/* ── Base ─────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: #1F2937; margin: 0; }
h1, h2, h3, h4 { font-family: 'DynaPuff', sans-serif; }
html { scroll-behavior: smooth; }

/* ── Hero Background ─────────────────────────────── */
.hero-bg {
  position: relative;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 55%, rgba(255, 255, 255, 0) 80%, #ffffff 100%),
              url('images/trampolines.webp?v=k1');
  /* Shown under the photo while it loads, and instead of it on the rare
     old browser without WebP — keeps the white hero text readable. */
  background-color: var(--brand-navy);
  background-size: cover;
  background-position: center 42%;
}

/* ── Open Jump section background ──────────────────
   Same brand-duotone technique as .hero-bg (reversed hue order), different
   real venue photo (playland.png) so the two photo sections don't feel
   repetitive with each other or with the plain-navy treatment this used to
   share with another site built off the same template. */
.openjump-bg {
  position: relative;
  background: linear-gradient(135deg, rgba(51,184,207,0.5) 0%, rgba(131,142,230,0.4) 100%),
              linear-gradient(120deg, rgba(50,78,98,0.92) 0%, rgba(50,78,98,0.82) 45%, rgba(50,78,98,0.68) 100%),
              url('images/playland.webp?v=1');
  background-color: var(--brand-navy);
  background-size: cover;
  background-position: center 35%;
}

/* ── Gallery grid ─────────────────────────────────── */
.gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 3px solid #CFEFF3;
  cursor: zoom-in;
  background: #E3F6F8;
  box-shadow: 0 6px 20px rgba(131,142,230,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.gallery-thumb:hover { border-color: var(--secondary); }

/* ── Gallery scroll-reveal ────────────────────────── */
.gallery-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(0.22,1,0.36,1), transform .6s cubic-bezier(0.22,1,0.36,1);
}
.gallery-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Gallery lightbox ─────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,12,20,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
.lightbox-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
.lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.5);
  user-select: none;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity .28s ease, transform .28s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox-overlay.is-open .lightbox-img { opacity: 1; transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: white;
  border: none;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.26); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: white;
  border: none;
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.26); }
.lightbox-prev { left: max(0.75rem, env(safe-area-inset-left)); }
.lightbox-next { right: max(0.75rem, env(safe-area-inset-right)); }
.lightbox-counter {
  position: absolute;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.14);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 20px; }
  .lightbox-close { width: 44px; height: 44px; font-size: 22px; }
  .lightbox-img { max-height: 78vh; }
}

/* ── Confetti dots pattern ───────────────────────── */
.dots-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* ── Step indicator (progress bar) ───────────────────────────
   Continuous track + fill behind a row of dots, so progress reads as one
   moving whole instead of static dots — see renderStepIndicator() in
   app.js. Completed dots are clickable to jump back a step. ── */
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: all .3s; position: relative; z-index: 1; }
.step-dot.active { background: var(--secondary); color: #fff; box-shadow: 0 0 0 4px rgba(51,184,207,0.25), inset 0 1px 0 rgba(255,255,255,0.3); animation: dotPulse 1.8s ease-in-out infinite; }
.step-dot.done { background: #0E9F6E; color: #fff; box-shadow: 0 2px 8px rgba(14,159,110,0.3); }
.step-dot.pending { background: #E5E7EB; color: #9CA3AF; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(51,184,207,0.25), inset 0 1px 0 rgba(255,255,255,0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(51,184,207,0.12), inset 0 1px 0 rgba(255,255,255,0.3); }
}

#stepIndicator { position: relative; padding-top: 2px; }
.wizard-progress-track { position: absolute; top: 17px; left: 16px; right: 16px; height: 3px; background: #CFEFF3; border-radius: 99px; z-index: 0; }
.wizard-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), #0E9F6E); border-radius: 99px; transition: width .5s cubic-bezier(0.22,1,0.36,1); }
.wizard-progress-steps { position: relative; z-index: 1; display: flex; justify-content: space-between; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wizard-step.jumpable { cursor: pointer; }
@media (hover: hover) { .wizard-step.jumpable:hover .step-dot { transform: scale(1.12); box-shadow: 0 4px 14px rgba(14,159,110,0.4); } }
.step-label { font-size: 10px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: .03em; display: none; white-space: nowrap; }
.step-label.active { color: var(--secondary); }
.step-label.done { color: #0E9F6E; }
@media (min-width: 560px) { .step-label { display: block; } }

/* ── Clay card base ──────────────────────────────── */
.clay-card {
  background: white;
  border: 3px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(131,142,230,0.10), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ── Room cards ──────────────────────────────────── */
.room-card {
  border: 3px solid #CFEFF3;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all .25s ease-out;
  background: white;
  box-shadow: 0 6px 20px rgba(131,142,230,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (hover: hover) { .room-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 36px rgba(51,184,207,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-3px);
} }
.room-card.selected {
  border-color: var(--secondary);
  background: #E3F6F8;
  box-shadow: 0 0 0 4px rgba(51,184,207,0.2), 0 8px 24px rgba(51,184,207,0.15), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ── Food cards ──────────────────────────────────── */
.food-card {
  border: 3px solid #CFEFF3;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all .2s ease-out;
  background: white;
  user-select: none;
  box-shadow: 0 4px 14px rgba(131,142,230,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (hover: hover) { .food-card:hover { border-color: var(--cta); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(252,109,174,0.15); } }
.food-card.selected { border-color: var(--cta); background: #FDE7F1; box-shadow: 0 0 0 3px rgba(252,109,174,0.2), 0 6px 18px rgba(252,109,174,0.12); }

/* ── Package cards (Step 1) — same neutral treatment as room cards, no
   per-card color tint, so the "Book Now" CTA and price do the work. ── */
.package-card {
  border: 3px solid #CFEFF3;
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: white;
  transition: all .25s ease-out;
  box-shadow: 0 6px 20px rgba(131,142,230,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (hover: hover) { .package-card:hover { border-color: var(--secondary); box-shadow: 0 12px 36px rgba(51,184,207,0.18), inset 0 1px 0 rgba(255,255,255,0.9); } }
.package-card.selected { border-color: var(--secondary); background: #E3F6F8; box-shadow: 0 0 0 4px rgba(51,184,207,0.2), 0 8px 24px rgba(51,184,207,0.15), inset 0 1px 0 rgba(255,255,255,0.9); }

/* ── Package carousel (Step 1) — a "peek" carousel: every package is its
   own full-size, uncompressed slide in a horizontally scroll-snapping
   track, sized so the previous/next package's edge stays visible (dimmed)
   either side of the active one rather than being swapped out. Arrows/dots
   drive it via shiftPackageTile()/goToPackageTile() in booking.js, but a
   direct swipe/trackpad scroll works too (see initPackageCarouselScrollSync). ── */
.package-carousel { display: flex; align-items: center; gap: 12px; }
.package-carousel-viewport {
  flex: 1; min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.package-carousel-viewport::-webkit-scrollbar { display: none; }
.package-carousel-track { display: flex; gap: 20px; padding: 0 9%; }
.package-carousel-slide {
  flex: 0 0 82%;
  scroll-snap-align: center;
  opacity: .38;
  transition: opacity .35s ease;
}
.package-carousel-slide.active { opacity: 1; }
.package-carousel-slide .package-card { height: 100%; }
@media (min-width: 640px) {
  .package-carousel-track { padding: 0 11%; }
  .package-carousel-slide { flex-basis: 78%; }
}
@media (min-width: 1024px) {
  /* The active card gets most of the available width here — at the old
     62% it came out tall and narrow relative to its bullet list, which is
     what read as "elongated". A small peek is still enough of a hint that
     there's more to either side. */
  .package-carousel-track { padding: 0 6%; }
  .package-carousel-slide { flex-basis: 88%; }
}

/* Bullets — plain single column normally; once the card is genuinely wide
   (1024px+, see above) it has real room for two, so they go two-up instead
   of running as one long list down a short-but-wide card. */
.package-bullets { list-style: none; margin: 0; padding: 0; }
.package-bullets li { padding: 3px 0; }
@media (min-width: 1024px) {
  .package-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.75rem; }
}
.package-carousel-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: white; border: 2.5px solid #CFEFF3; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease-out;
  box-shadow: 0 4px 14px rgba(131,142,230,0.08);
}
@media (hover: hover) { .package-carousel-arrow:hover:not(:disabled) { border-color: var(--secondary); background: #E3F6F8; transform: scale(1.06); } }
.package-carousel-arrow:active:not(:disabled) { transform: scale(0.94); }
.package-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.package-carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #CFEFF3; border: none; padding: 0;
  cursor: pointer; transition: all .25s ease-out;
}
@media (hover: hover) { .package-carousel-dot:hover { background: #5FC4D9; } }
.package-carousel-dot.active { background: var(--secondary); width: 22px; border-radius: 99px; }

/* Neon Room card's Self Catered / Catered toggle (Step 1) — same teal
   selected treatment as .package-card itself, not the pink food tiles. */
.package-choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.package-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2.5px solid #CFEFF3; border-radius: .875rem; padding: 10px 12px;
  background: white; color: #374151; font-size: 14px; font-weight: 700; line-height: 1.2;
  cursor: pointer; transition: all .15s ease-out; text-align: center;
}
@media (hover: hover) { .package-choice:hover { border-color: var(--secondary); } }
.package-choice:focus-visible { outline: 3px solid rgba(51,184,207,0.45); outline-offset: 2px; }
.package-choice.selected { border-color: var(--secondary); background: #E3F6F8; color: #0E6F80; }
.package-choice-price { font-size: 12px; font-weight: 600; color: #6B7280; }
.package-choice.selected .package-choice-price { color: #0E6F80; }
.package-card.selected .package-choice:not(.selected) { background: white; }

/* ── Food & Beverage tap-to-add tiles (Step 3) ────── */
.menu-item-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 2.5px solid #CFEFF3;
  border-radius: .875rem;
  padding: 10px 14px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all .15s ease-out;
  text-align: left;
}
@media (hover: hover) { .menu-item-tile:hover { border-color: var(--cta); } }
.menu-item-tile.selected { border-color: var(--cta); background: #FDE7F1; color: #A83D72; }
.menu-item-check { color: var(--cta); font-weight: 800; flex-shrink: 0; }
/* Water — always included, free, never a selectable slot (Step 3). */
.menu-item-tile.menu-item-locked { cursor: default; background: #F0FDF4; border-color: #BBF7D0; color: #15803D; }
.menu-item-tile.menu-item-locked .menu-item-check { color: #15803D; }

/* ── Time slots ──────────────────────────────────── */
.time-slot {
  border: 3px solid #CFEFF3;
  border-radius: 1rem;
  cursor: pointer;
  transition: all .2s ease-out;
  background: white;
  text-align: center;
  padding: 10px 12px;
  box-shadow: 0 3px 10px rgba(131,142,230,0.07), inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (hover: hover) { .time-slot:hover:not(.unavailable) { border-color: var(--secondary); background: #E3F6F8; } }
.time-slot.selected { border-color: var(--secondary); background: var(--secondary); color: white; box-shadow: 0 6px 18px rgba(51,184,207,0.3); }
.time-slot.unavailable { opacity: 0.4; cursor: not-allowed; background: #F3F4F6; }
.time-slot.held { border-color: var(--cta); background: #FDE7F1; color: #A83D72; cursor: not-allowed; opacity: 0.7; }

/* ── Modal ───────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(8px); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-box {
  background: white;
  border: 3px solid var(--border);
  border-radius: 1.75rem;
  width: 100%;
  max-width: 460px;
  padding: 2.5rem 2rem;
  box-shadow: 0 32px 80px rgba(131,142,230,0.2), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ── Countdown timer ─────────────────────────────── */
.timer-bar { background: linear-gradient(90deg, var(--primary), var(--secondary)); padding: 10px 20px; border-radius: 1rem; display: flex; align-items: center; gap: 10px; color: white; box-shadow: 0 4px 14px rgba(131,142,230,0.25); }
.timer-bar.urgent { background: linear-gradient(90deg, #EF4444, #DC2626); animation: timerPulse 1s infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: .8; } }

/* ── Input style ─────────────────────────────────── */
.field {
  width: 100%;
  border: 2.5px solid #CFEFF3;
  border-radius: .875rem;
  padding: 12px 16px;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus */
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: white;
  box-shadow: inset 0 2px 6px rgba(131,142,230,0.05);
}
.field:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(51,184,207,0.15), inset 0 2px 6px rgba(131,142,230,0.05); }
.field.w-20 { width: 5rem; }
label.lbl { display: block; font-weight: 700; font-size: 13px; color: #4B5563; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* ── Stripe Element override ─────────────────────── */
#stripe-card-element.field { padding: 14px 16px; }
.StripeElement--focus { border-color: var(--secondary) !important; box-shadow: 0 0 0 3px rgba(51,184,207,0.15) !important; }

/* ── CTA button ──────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: white;
  font-weight: 800;
  font-size: 16px;
  border: none;
  border-radius: 1.125rem;
  padding: 15px 32px;
  cursor: pointer;
  transition: all .2s ease-out;
  font-family: 'DynaPuff', sans-serif;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(252,109,174,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
@media (hover: hover) { .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(252,109,174,0.4), inset 0 1px 0 rgba(255,255,255,0.2); } }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(252,109,174,0.25); transition: all .1s ease-out; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Final-CTA brand panel ────────────────────────────────────── */
.rebound-cta-panel {
  background: linear-gradient(120deg, #838EE6 0%, #FC6DAE 55%, #F9B745 100%);
  box-shadow: 0 20px 60px rgba(131,142,230,0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  font-weight: 700;
  border: 3px solid var(--border);
  border-radius: 1.125rem;
  padding: 12px 28px;
  cursor: pointer;
  transition: all .2s ease-out;
  font-family: 'DynaPuff', sans-serif;
  box-shadow: 0 4px 14px rgba(131,142,230,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
@media (hover: hover) { .btn-secondary:hover { border-color: var(--secondary); background: #E3F6F8; box-shadow: 0 6px 18px rgba(51,184,207,0.15); } }

/* ── Confetti animation ──────────────────────────── */
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-15px) rotate(0deg); }
  80%  { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(340px) rotate(620deg); }
}
.confetti-piece { position: absolute; animation: confettiFall 1.4s ease forwards; }

/* ── Page transitions (now handled via JS direction classes) ── */
.step-panel { animation: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Allergy checkbox ────────────────────────────── */
.allergy-check { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2.5px solid #CFEFF3; border-radius: .875rem; cursor: pointer; transition: all .2s; background: white; }
.allergy-check:has(input:checked) { border-color: #0E9F6E; background: #D1FAE5; }
.allergy-check input[type=checkbox] { width: 18px; height: 18px; accent-color: #0E9F6E; cursor: pointer; }

/* ── Success checkmark ───────────────────────────── */
@keyframes scaleIn { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.success-icon { animation: scaleIn .5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* ── Navbar ──────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239,246,255,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(191,219,254,0.6);
}

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #E3F6F8; }
::-webkit-scrollbar-thumb { background: #5FC4D9; border-radius: 999px; }

/* ── Spinner ─────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ── Loading overlay ─────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(239,246,255,0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'DynaPuff', sans-serif;
  font-size: 18px;
  color: var(--primary);
}

/* ── Admin table ─────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #F3F4F6; text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6B7280; font-weight: 700; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #F3F4F6; font-size: 14px; color: #374151; }
.admin-table tr:hover td { background: #F9FAFB; }

/* ── Status badges ───────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-yellow { background: #FEF3C7; color: #B45309; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-blue { background: #CFEFF3; color: #0E7C8C; }

/* ── Booking wizard page (full page, not a popup — /book) ──────
   Two-column on wide screens: step content (#bookingBox) on the left, a
   persistent live "Your Booking" summary (.wizard-sidebar) on the right —
   the wizard is horizontally focused rather than one tall narrow column.
   #wizardTopBar carries the progress bar and stays pinned (position:
   sticky) just under the site nav as the customer scrolls down a step, so
   progress is always visible and reads as something that moves with them
   rather than scrolling out of view. ── */
#bookingWizardRoot { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
#bookingBox { background: white; }

#wizardTopBar {
  position: sticky;
  top: 64px; /* sits just under the sticky site nav (~64px tall) */
  z-index: 30;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(131,142,230,0.08);
}
.wizard-cancel-link {
  font-size: 13px; font-weight: 700; color: #9CA3AF;
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; cursor: pointer;
  transition: color .2s;
}
.wizard-cancel-link:hover { color: #4B5563; }

.wizard-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

@media (min-width: 640px) {
  #bookingWizardRoot { padding: 3rem 1.5rem 5rem; }
  #bookingBox { border-radius: 1.75rem; box-shadow: 0 24px 70px rgba(131,142,230,0.14); border: 1px solid var(--border); }
  #wizardTopBar { padding: 1.25rem 2rem; }
}
/* More breathing room per step now that it's a full page, not a cramped
   modal — overrides the step panels' Tailwind p-6/md:p-8 (same specificity,
   later in the cascade since styles.css loads after tailwind.css). */
@media (min-width: 768px) {
  #bookingWizardRoot .step-panel { padding: 2.75rem 3.25rem; }
}

/* ── Two-column split (form + summary) — below this, sidebar just
   stacks under the form as a normal, non-sticky card. ── */
@media (min-width: 1024px) {
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; }
  .wizard-layout.no-sidebar { grid-template-columns: 1fr; }
  .wizard-sidebar { position: sticky; top: 190px; align-self: start; }
}
.wizard-layout.no-sidebar .wizard-sidebar { display: none; }

/* ── Live booking summary sidebar ────────────────────────────── */
.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(131,142,230,0.10);
  padding: 1.5rem;
}
.sidebar-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1F5F9; }
.sidebar-row:last-of-type { border-bottom: none; }
.sidebar-row-icon { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; line-height: 1.4; }
.sidebar-row-label { color: #9CA3AF; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.sidebar-row-value { color: #111827; font-weight: 600; font-size: 14px; line-height: 1.35; }
.sidebar-row-value.muted { color: #C1C9D6; font-weight: 500; }
.sidebar-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--border); }
.sidebar-total-label { font-weight: 700; color: #374151; font-size: 14px; }
.sidebar-total-value { font-family: 'DynaPuff', sans-serif; font-weight: 800; font-size: 24px; color: var(--secondary); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
  .modal-box { padding: 1.75rem 1.25rem; }
}

/* ── Mobile fixes ────────────────────────────────── */
@media (max-width: 640px) {
  .step-panel {
    padding: 1.25rem !important;
  }
  .room-card, .food-card {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .addon-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .addon-row .font-bold.text-indigo-600 {
    min-width: 3rem;
  }
}

/* Ensure text wraps everywhere */
* {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── Admin Dashboard Dark Mode ───────────────────────────────
   Scoped under html.dark so it never affects the customer site ── */
html.dark {
  --dk-bg1:        #111827;
  --dk-bg2:        #1F2937;
  --dk-bg3:        #374151;
  --dk-text1:      #F3F4F6;
  --dk-text2:      #E5E7EB;
  --dk-text3:      #D1D5DB;
  --dk-text4:      #9CA3AF;
  --dk-text5:      #6B7280;
  --dk-indigo:     #616FDF;
  --dk-indigo-lt:  #C3C8F3;
  --dk-indigo-hov: #212FA3;
  --dk-indigo-foc: #838EE6;
}

html.dark .modal-overlay { background: rgba(0,0,0,.7); }
html.dark .modal-box { background: var(--dk-bg1); color: var(--dk-text1); box-shadow: 0 24px 80px rgba(0,0,0,.5); border-color: var(--dk-bg3); }
html.dark .field { background: var(--dk-bg2); border-color: var(--dk-bg3); color: var(--dk-text1); }
html.dark .field::placeholder { color: var(--dk-text5); }
html.dark .field:focus { border-color: var(--dk-indigo-foc); box-shadow: 0 0 0 3px rgba(131,142,230,0.2); }
html.dark label.lbl { color: var(--dk-text4); }
html.dark .btn-secondary { background: var(--dk-bg2); color: var(--dk-indigo-lt); border-color: var(--dk-indigo); }
@media (hover: hover) { html.dark .btn-secondary:hover { background: var(--dk-indigo-hov); } }
html.dark .admin-table th { background: var(--dk-bg2); color: var(--dk-text4); }
html.dark .admin-table td { color: var(--dk-text3); border-bottom-color: var(--dk-bg2); }
html.dark .admin-table tr:hover td { background: var(--dk-bg2); }
html.dark .badge-green { background: #064E3B; color: #6EE7B7; }
html.dark .badge-yellow { background: #78350F; color: #FCD34D; }
html.dark .badge-red { background: #7F1D1D; color: #FCA5A5; }
html.dark .badge-gray { background: var(--dk-bg3); color: var(--dk-text3); }
html.dark nav { background: transparent; backdrop-filter: none; border-bottom: none; }
html.dark #adminSidebar { background: var(--dk-bg1); border-right-color: transparent; }
html.dark #adminSidebar a:hover { background: rgba(255,255,255,0.05); }
html.dark .modal-box .bg-gray-50 { background: var(--dk-bg2); }
html.dark .modal-box .bg-white { background: var(--dk-bg2); }
html.dark .modal-box .bg-gray-100 { background: var(--dk-bg3); color: var(--dk-text2); }
html.dark .modal-box .text-gray-800 { color: var(--dk-text1); }
html.dark .modal-box .text-gray-700 { color: var(--dk-text2); }
html.dark .modal-box .border-gray-200 { border-color: var(--dk-bg3); }
html.dark .modal-box .border-gray-100 { border-color: var(--dk-bg2); }
html.dark .ab-card { background: var(--dk-bg2) !important; border-color: var(--dk-bg3) !important; color: var(--dk-text1); }

/* ── Directional step transitions ────────────────────────────── */
.step-enter-forward { animation: stepSlideInRight .38s cubic-bezier(0.22, 1, 0.36, 1) both; }
.step-enter-back    { animation: stepSlideInLeft  .38s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes stepSlideInRight {
  from { opacity: 0; transform: translateX(32px) scale(0.985); }
  to   { opacity: 1; transform: translateX(0)    scale(1);     }
}
@keyframes stepSlideInLeft {
  from { opacity: 0; transform: translateX(-32px) scale(0.985); }
  to   { opacity: 1; transform: translateX(0)     scale(1);     }
}

/* ── Room card enhancements ──────────────────────────────────── */
.room-card {
  transition: all .32s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,0.48) 50%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.6s ease;
  pointer-events: none;
  border-radius: inherit;
}
@media (hover: hover) { .room-card:hover::after { transform: translateX(130%); } }
@media (hover: hover) { .room-card:hover {
  transform: translateY(-5px) scale(1.014);
  box-shadow: 0 20px 52px rgba(51,184,207,0.2), inset 0 1px 0 rgba(255,255,255,0.95);
  border-color: var(--secondary);
} }
.room-card.selected {
  background: linear-gradient(140deg, #E3F6F8 0%, #F4F8FF 60%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(51,184,207,0.28), 0 16px 44px rgba(51,184,207,0.2), inset 0 1px 0 rgba(255,255,255,0.95);
  animation: roomCardPop .45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes roomCardPop {
  0%   { transform: scale(1); }
  42%  { transform: scale(1.026); }
  100% { transform: scale(1); }
}

/* ── Time slot enhancements ──────────────────────────────────── */
.time-slot {
  transition: all .26s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
  padding: 14px 12px;
}
@media (hover: hover) { .time-slot:hover:not(.unavailable) {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(51,184,207,0.18);
  border-color: var(--secondary);
  background: linear-gradient(140deg, #E3F6F8 0%, #fff 100%);
} }
.time-slot:active:not(.unavailable) {
  transform: scale(0.92);
  transition: all .1s ease-out;
}
.time-slot.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 10px 32px rgba(51,184,207,0.42), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: slotBounce .45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes slotBounce {
  0%   { transform: scale(1); }
  36%  { transform: scale(1.1); }
  64%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.time-slot.unavailable { opacity: 0.36; cursor: not-allowed; background: #F3F4F6; }
.time-slot.held { border-color: var(--cta); background: #FDE7F1; color: #A83D72; cursor: not-allowed; opacity: 0.65; }

/* ── Button shimmer ──────────────────────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.52s ease;
  pointer-events: none;
  border-radius: inherit;
}
@media (hover: hover) { .btn-primary:not(:disabled):hover::after { transform: translateX(130%); } }

/* ── Guest counter bounce ────────────────────────────────────── */
@keyframes countBounce {
  0%   { transform: scale(1); }
  28%  { transform: scale(1.55); color: var(--secondary); }
  60%  { transform: scale(0.88); }
  82%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.count-bounce { animation: countBounce .44s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* ── Step indicator enhancements ─────────────────────────────── */
.step-dot { transition: all .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.step-dot.done { animation: dotPop .38s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes dotPop {
  0%   { transform: scale(0.55); }
  55%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* ── Modal entrance animation ────────────────────────────────── */
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(0.972); }
  to   { opacity: 1; transform: translateY(0)    scale(1);     }
}
.modal-animate { animation: modalSlideUp .44s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Celebration screen ──────────────────────────────────────── */
.celebration-ring {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, #059669, #0E9F6E, #34D399);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 0 10px rgba(14,159,110,0.16), 0 0 0 22px rgba(14,159,110,0.08), 0 22px 56px rgba(14,159,110,0.3);
  animation: ringPop .55s cubic-bezier(0.34, 1.56, 0.64, 1) .05s both;
}
@keyframes ringPop {
  0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}
.celebration-check { width: 54px; height: 54px; }
.check-circle { stroke: rgba(255,255,255,0.22); stroke-width: 1.5; fill: none; }
.check-path {
  fill: none; stroke: white; stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 54; stroke-dashoffset: 54;
  animation: drawCheck .42s ease .62s forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* Staggered content reveals for celebration */
.stagger-1 { animation: staggerFadeUp .45s ease .18s both; }
.stagger-2 { animation: staggerFadeUp .45s ease .32s both; }
.stagger-3 { animation: staggerFadeUp .45s ease .46s both; }
.stagger-4 { animation: staggerFadeUp .45s ease .60s both; }
.stagger-5 { animation: staggerFadeUp .45s ease .74s both; }
.stagger-6 { animation: staggerFadeUp .45s ease .88s both; }
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Selected room checkmark badge ───────────────────────────── */
.room-check-badge { animation: dotPop .38s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── Navbar scroll glass effect ──────────────────────────────── */
nav.scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 24px rgba(131,142,230,0.08);
  border-bottom-color: rgba(191,219,254,0.45);
}

/* ── Food card spring on selection ───────────────────────────── */
.food-card:active { transform: scale(0.95); transition: all .1s ease-out; }
.food-card.selected { animation: roomCardPop .38s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* ── Scrollbar polish ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C7DFF6; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #5FC4D9; }

/* ── Reviews marquee ─────────────────────────────────────────── */
.marquee-outer { overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
/* Fewer cards than the -50% loop needs (e.g. only the placeholder, before any
   real reviews exist) would just slide half off-screen and snap back — hold
   it still and centered instead. loadLiveReviews() removes this once it has
   enough real reviews to duplicate into a seamless loop. */
.marquee-track.is-static { animation: none; justify-content: center; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.review-card {
  min-width: 320px;
  max-width: 380px;
  background: white;
  border: 2px solid #CFEFF3;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(131,142,230,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
  flex-shrink: 0;
  cursor: default;
}
.review-stars { color: #F59E0B; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.review-quote {
  font-style: italic;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}
.review-name {
  font-family: 'DynaPuff', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #324E62;
}

/* ── Live booking toast ──────────────────────────────────────── */
.booking-toast {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  background: #324E62;
  color: white;
  padding: 0.9rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(131,142,230,0.35);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 320px;
  z-index: 250;
  transform: translateX(-130%);
  opacity: 0;
  transition: transform 0.35s ease, bottom 0.35s ease, opacity 0.35s ease;
}
.booking-toast.show { transform: translateX(0); opacity: 1; }
.booking-toast.hide { transform: translateX(-130%); opacity: 0; }

/* ── Aurora blobs (hero background) ─────────────────────────── */
.aurora-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.22; will-change: transform; }
.aurora-blob-1 { width: 560px; height: 440px; background: radial-gradient(circle, #7C3AED, #838EE6); top: -100px; left: -80px; animation: auroraMove1 22s ease-in-out infinite; }
.aurora-blob-2 { width: 460px; height: 540px; background: radial-gradient(circle, #0891B2, #0E9F6E); bottom: -130px; right: 6%; animation: auroraMove2 28s ease-in-out infinite; }
.aurora-blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, #F97316, #FBBF24); top: 35%; right: 25%; animation: auroraMove3 20s ease-in-out infinite; }
@keyframes auroraMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(70px, -50px) scale(1.14); }
  66%       { transform: translate(-35px, 65px) scale(0.93); }
}
@keyframes auroraMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-80px, -55px) scale(1.11); }
  75%       { transform: translate(55px, 35px) scale(0.91); }
}
@keyframes auroraMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(50px, -65px) scale(1.18); }
}

/* ── Floating sparkles ───────────────────────────────────────── */
@keyframes sparkleDrift {
  0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); opacity: 0.7; }
  50%       { transform: translateY(-22px) rotate(180deg) scale(1.15); opacity: 1; }
}
.sparkle-el { position: absolute; pointer-events: none; z-index: 2; animation: sparkleDrift ease-in-out infinite; user-select: none; line-height: 1; }

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s cubic-bezier(0.22,1,0.36,1), transform 1.1s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.15s; }
.reveal-d2 { transition-delay: 0.32s; }
.reveal-d3 { transition-delay: 0.49s; }
.reveal-d4 { transition-delay: 0.66s; }

/* ── Shimmer headline text ───────────────────────────────────── */
/* ── Rainbow headline text (cycles the full brand palette, not a single-tone
   shimmer sweep — matches the multi-colour starburst logo) ── */
.text-rainbow {
  background: linear-gradient(90deg, #F9B745 0%, #FC6DAE 20%, #838EE6 40%, #33B8CF 60%, #A6D84C 80%, #F9B745 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbowSlide 6s linear infinite;
}
@keyframes rainbowSlide {
  from { background-position: 0% center; }
  to   { background-position: 300% center; }
}

/* ── 3D tilt card ────────────────────────────────────────────── */
.tilt-card { transform-style: preserve-3d; will-change: transform; transition: transform 0.18s ease-out, box-shadow 0.18s ease-out; }
.tilt-card:hover { box-shadow: 0 20px 52px rgba(131,142,230,0.16), inset 0 1px 0 rgba(255,255,255,0.95); }

/* ── Stats strip ─────────────────────────────────────────────── */
.stat-val { font-variant-numeric: tabular-nums; display: inline-block; }

/* ── Sticky "Book a Party" bar ──────────────────────────────────
   Sits below nav (z-index 40) and well below any modal overlay
   (z-index 50) so it never fights with either. */
#stickyBookBar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
#stickyBookBar.visible { transform: translateY(0); pointer-events: auto; }

/* ── Fake "preparing your room" loading transition ───────────────
   z-index 60: above the modal overlay (50) so it can fully take over the
   screen for its brief moment, whatever else happens to be open. */
.booking-loading-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(255,255,255,0.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.booking-loading-overlay.visible { opacity: 1; pointer-events: auto; }
.booking-loading-box { text-align: center; }
.booking-loading-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--cta);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
.booking-loading-text { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 18px; color: var(--text); }

/* ── Utility gap-fills ──────────────────────────────────────────
   tailwind.css here is a static precompiled file with no config/build
   step checked into this repo, so any class not already present in a
   ported page silently does nothing. These match Tailwind's own values
   for classes introduced after that file was generated. */
.bg-indigo-900 { background-color: rgb(49 46 129); }
.border-white\/10 { border-color: hsla(0, 0%, 100%, .1); }
.bg-white\/25 { background-color: hsla(0, 0%, 100%, .25); }
.bg-gray-500 { background-color: rgb(107 114 128); }
.gap-x-6 { column-gap: 1.5rem; }
.text-white\/70 { color: hsla(0, 0%, 100%, .7); }
.hover\:bg-white\/20:hover { background-color: hsla(0, 0%, 100%, .2); }


/* ════════════════════════════════════════════════════════════════
   MOBILE PASS — layout & navigation
   Everything below is additive: phone-sized tap targets, the mobile
   menu, safe areas for notched phones, and focus/pressed states. No
   colours, fonts or desktop layout change here.
   ════════════════════════════════════════════════════════════════ */

/* viewport-fit=cover lets pages reach the screen edge, so keep content out
   from under the notch in landscape. */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ── Mobile menu ─────────────────────────────────── */
.nav-menu-btn {
  display: none;
  width: 44px; height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 12px; border: 2px solid var(--border);
  background: white; color: var(--text); cursor: pointer;
}
.nav-menu-btn .nav-menu-icon-close { display: none; }
.nav-menu-btn.is-open .nav-menu-icon-open { display: none; }
.nav-menu-btn.is-open .nav-menu-icon-close { display: block; }
.nav-menu-btn:active { background: #EEF2F9; }
.nav-mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: white;
  border-bottom: 2px solid rgba(191,219,254,0.6);
  box-shadow: 0 18px 40px rgba(50,78,98,0.18);
  padding: 6px max(1.25rem, env(safe-area-inset-right)) 12px max(1.25rem, env(safe-area-inset-left));
  max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px);
  overflow-y: auto;
}
.nav-mobile-menu[hidden] { display: none; }
.nav-mobile-links a,
.nav-mobile-links button {
  display: flex; align-items: center; width: 100%;
  min-height: 48px; padding: 0 4px;
  font-size: 17px; font-weight: 600; color: var(--text); text-align: left;
  background: none; border: none; border-bottom: 1px solid #EEF2F9; cursor: pointer;
}
.nav-mobile-links a:active,
.nav-mobile-links button:active { background: #F5F8FC; }
.nav-mobile-links a.is-current { color: var(--secondary); }
.nav-mobile-auth { margin-top: 6px; }
.nav-mobile-auth > :last-child { border-bottom: none; }
/* The full link row needs 1024px (six links + Sign In + Book a Party);
   below that the ☰ menu carries the links. */
@media (max-width: 1023px) {
  .nav-menu-btn { display: inline-flex; }
  #navLinks { display: none !important; }
}
@media (max-width: 767px) {
  nav .nav-logo { min-height: 44px; }
  /* Room for logo + Book button + menu button on a 360px phone */
  nav #navAuthArea .btn-primary { padding: 11px 14px; min-height: 44px; white-space: nowrap; }
  nav > div:first-child { padding-left: 1rem; padding-right: 1rem; }
}
@media (min-width: 1024px) {
  .nav-mobile-menu { display: none !important; }
}
/* The signed-in account dropdown only opened on hover — open it on tap/focus too */
nav .group:focus-within > div.absolute { opacity: 1; visibility: visible; }
nav .group > button { min-height: 44px; }

/* ── Tap targets (phones and tablets) ────────────── */
@media (max-width: 1023px) {
  /* Footer links: 44px rows instead of 17px text lines */
  footer a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  footer .space-y-2 > * + * { margin-top: 0; }
  /* Small round "×" close/dismiss buttons */
  .sticky-book-dismiss,
  .modal-box button.w-9.h-9,
  #roomPhotoOverlay button.w-9.h-9 { width: 44px; height: 44px; }
  .wizard-cancel-link { min-height: 44px; padding: 0 10px 0 0; }
  /* Sign-in / reset pages: bare text links in the top bar */
  body > nav a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Sign-in/sign-up and payment-method tab switches */
  #tabSignup, #tabLogin, #payTabCard, #payTabPoli { min-height: 44px; }
}

/* ── Sticky "Book a Party" bar: home-bar safe area, never over the footer ── */
#stickyBookBar { padding-bottom: env(safe-area-inset-bottom); }
#stickyBookBar > div { padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
body.has-book-bar { padding-bottom: var(--book-bar-h, 68px); }
@media (max-width: 420px) {
  /* The prompt text wraps to three lines at this width and crowds the button */
  #stickyBookBar .font-display { font-size: 13px; line-height: 1.25; }
  #stickyBookBar .btn-primary { padding-left: 14px; padding-right: 14px; min-height: 44px; }
}

/* ── Readable body copy on phones: 16px, not 14px ── */
@media (max-width: 640px) {
  :root:not(.rb-admin) p.text-sm,
  .review-quote { font-size: 1rem; line-height: 1.55; }
}

/* ── Focus and pressed states ────────────────────── */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 3px solid rgba(51,184,207,0.75);
  outline-offset: 2px;
}
.field:focus-visible { border-color: var(--secondary); }
a, button, [onclick] { -webkit-tap-highlight-color: rgba(131,142,230,0.18); }
.btn-secondary:active { transform: translateY(1px); background: #E3F6F8; border-color: var(--secondary); }
button:not(.btn-primary):not(.btn-secondary):not(:disabled):active { filter: brightness(0.94); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ════════════════════════════════════════════════════════════════
   MOBILE PASS — booking wizard & forms
   ════════════════════════════════════════════════════════════════ */

/* Native controls: full-height, and the date field fills its row on iOS */
input.field, select.field { min-height: 48px; }
input[type="date"].field { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
input[type="checkbox"].w-4.h-4 { width: 22px; height: 22px; }
label:has(> input[type="checkbox"]) { min-height: 44px; }

/* ── Inline validation message, right under the field it is about ── */
.field-inline-error {
  margin-top: 8px; padding: 10px 12px;
  background: #FEF2F2; border: 1.5px solid #FCA5A5; border-radius: .75rem;
  color: #991B1B; font-size: 15px; font-weight: 600; line-height: 1.4;
}
.field-inline-error::before { content: "⚠️ "; }
.field.field-invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
div.field-invalid:not(.field) { outline: 2.5px solid #EF4444; outline-offset: 4px; border-radius: 1rem; }
input[type="checkbox"].field-invalid { outline: 2.5px solid #EF4444; outline-offset: 2px; }

/* ── − / + steppers: 44px, with room between them ── */
.stepper-btn { background: white; touch-action: manipulation; }
#bookingWizardRoot .stepper-btn.w-10 { width: 48px; height: 48px; font-size: 22px; }
.stepper-btn.stepper-btn-sm { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.stepper-btn:active:not(:disabled) { border-color: var(--secondary); background: #E3F6F8; }
.menu-item-tile { min-height: 60px; }
.menu-item-tile > span:first-child { flex: 1 1 auto; min-width: 0; }

/* ── Time slots and choice cards: comfortably tappable ── */
.time-slot { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: manipulation; }
.time-slot:focus-visible { outline: 3px solid rgba(51,184,207,0.75); outline-offset: 2px; }

/* ── Package carousel dots: a 44px hit area around the same small dot ── */
.package-carousel-dot {
  position: relative; width: 28px; height: 44px; background: none; border-radius: 0;
}
.package-carousel-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%; background: #CFEFF3; transition: all .25s ease-out;
}
@media (hover: hover) { .package-carousel-dot:hover { background: none; } }
@media (hover: hover) { .package-carousel-dot:hover::before { background: #5FC4D9; } }
.package-carousel-dot.active { background: none; width: 36px; }
.package-carousel-dot.active::before { background: var(--secondary); width: 22px; border-radius: 99px; }
#packageCarouselDots { gap: 0; margin-top: 0; }

@media (max-width: 767px) {
  /* Progress/timer bar sits under the (now 70px) mobile site bar */
  #wizardTopBar { top: 70px; padding: .5rem .875rem; margin-bottom: 1rem; border-radius: 1rem; }
  #wizardTopBar > .flex { margin-bottom: 0; }
  #wizardTopBar #timerContainer { margin-top: .375rem; }
  /* Slot-hold timer stays on screen but compact: just the clock and its label */
  .timer-bar { padding: 6px 12px; border-radius: .75rem; }
  .timer-bar > .ml-auto { display: none; }
  #sessionCountdown { font-size: 13px; }

  /* ── Sticky bottom action bar: Back + the step's main button always in
     thumb reach while the step is on screen ── */
  #bookingWizardRoot .wizard-actions {
    position: sticky; bottom: 0; z-index: 20;
    display: flex; gap: 10px; align-items: stretch;
    margin: 1.25rem -1.25rem -1.25rem; padding: 10px 1.25rem calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(50,78,98,0.08);
  }
  #bookingWizardRoot .wizard-actions .btn-secondary { flex: 0 0 auto; padding: 12px 16px; min-height: 52px; white-space: nowrap; }
  #bookingWizardRoot .wizard-actions .btn-primary { flex: 1 1 auto; padding: 12px 14px; min-height: 52px; }
  /* Validation toast floats above the action bar, not behind it */
  .field-error-toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; width: calc(100% - 2rem); font-size: 15px; }
  /* Name fields: one per row so neither is cramped */
  #signupFields > .grid.grid-cols-2 { grid-template-columns: 1fr; }
  /* Confirmation step buttons stack full-width */
  #step7 .stagger-6 button { width: 100%; margin-right: 0; }
}

/* The wizard column must be allowed to shrink below its content's natural
   width. Without this the package carousel's off-screen cards set the
   column's minimum, and on a phone the whole page came out ~760px wide
   and scrolled sideways. */
.wizard-layout { grid-template-columns: minmax(0, 1fr); }
#bookingBox, .wizard-sidebar { min-width: 0; }
@media (min-width: 1024px) {
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .wizard-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
}
.package-carousel-dot, .package-carousel-dot.active { width: 44px; }
@media (max-width: 480px) {
  /* Arrows sit over the card edges on a phone so the card itself gets the width */
  .package-carousel { gap: 4px; }
}

@media (max-width: 767px) {
  /* Slim one-line hold timer so the pinned bar leaves the step most of the screen */
  .timer-bar { padding: 4px 12px; gap: 8px; }
  .timer-bar > span:first-child { font-size: 15px; }
  .timer-bar > div:nth-child(2) { display: flex; align-items: baseline; gap: 8px; }
  .timer-bar #timerDisplay { font-size: 16px; }
  /* Progress dots stay 32px to look at, with a 44px area to tap */
  .wizard-step.jumpable { position: relative; }
  .wizard-step.jumpable::after { content: ""; position: absolute; inset: -6px; }
  #bookingWizardRoot .wizard-actions .btn-primary { font-size: 15px; line-height: 1.15; padding: 8px 12px; }
  #bookingWizardRoot .wizard-actions .btn-secondary { padding: 8px 14px; font-size: 15px; }
}

/* Steps slide in from 32px to the side; clip that so the page can't be
   pushed wider than the phone for the length of the animation. (clip, not
   hidden — hidden would stop the pinned top bar and action bar sticking.) */
#bookingWizardRoot { overflow-x: clip; }

/* Phones get the 640px-wide copy of the Open Jump photo (41 KB, not 127 KB) */
@media (max-width: 640px) {
  .openjump-bg {
    background-image: linear-gradient(135deg, rgba(51,184,207,0.5) 0%, rgba(131,142,230,0.4) 100%),
                      linear-gradient(120deg, rgba(50,78,98,0.92) 0%, rgba(50,78,98,0.82) 45%, rgba(50,78,98,0.68) 100%),
                      url('images/playland-640.webp?v=1');
  }
}

/* ── Admin: payment reminders (booking detail, Balances Due, preview modal) ── */
.pr-modal { max-width: 620px; max-height: 92vh; overflow-y: auto; }
.pr-btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.pr-panel { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 0.75rem; padding: 14px 16px; }
.pr-panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pr-panel-title { font-weight: 700; font-size: 14px; color: #92400E; }
.pr-note { font-size: 13px; line-height: 1.5; color: #6B7280; margin-top: 8px; }
.pr-last { font-size: 13px; line-height: 1.5; color: #166534; font-weight: 600; margin-top: 10px; }
.pr-panel > .pr-last:first-child { margin-top: 0; }
.pr-last.is-failed, .pr-history li.is-failed { color: #B91C1C; }
.pr-history { margin-top: 6px; font-size: 13px; color: #4B5563; }
.pr-history summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; color: var(--primary); }
.pr-history ul { list-style: none; margin: 4px 0 0; padding: 0; }
.pr-history li { padding: 6px 0; border-top: 1px solid rgba(0,0,0,.06); line-height: 1.45; overflow-wrap: anywhere; }
.pr-history li span { color: #9CA3AF; }
.pr-row-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pr-row-last { font-size: 12px; color: #6B7280; }
.pr-summary { margin: 0 0 16px; }
.pr-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid #F3F4F6; font-size: 14px; }
.pr-summary dt { color: #6B7280; flex-shrink: 0; }
.pr-summary dd { margin: 0; font-weight: 600; color: #111827; text-align: right; overflow-wrap: anywhere; }
.pr-summary dd.pr-amount { color: #D97706; font-size: 16px; }
.pr-alert { border-radius: 0.75rem; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; border: 1px solid transparent; }
.pr-alert.is-error { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }
.pr-alert.is-warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.pr-alert.is-success { background: #DCFCE7; border-color: #BBF7D0; color: #166534; font-weight: 600; }
.pr-alert.hidden { display: none; }
.pr-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; font-weight: 700; cursor: pointer; }
.pr-check input { width: 20px; height: 20px; flex-shrink: 0; }
.pr-preview-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #9CA3AF; margin-bottom: 6px; }
.pr-preview { display: block; width: 100%; height: 420px; border: 1px solid #E5E7EB; border-radius: 0.75rem; background: #F5F8FC; margin-bottom: 14px; }
.pr-actions { display: flex; flex-direction: column-reverse; gap: 10px; }
.pr-actions .pr-btn { width: 100%; }
@media (min-width: 640px) {
  .pr-actions { flex-direction: row; justify-content: flex-end; }
  .pr-actions .pr-btn { width: auto; min-width: 140px; }
}
@media (max-width: 640px) {
  .pr-preview { height: 340px; }
  .pr-row-actions .pr-btn, .pr-panel-head .pr-btn { width: 100%; }
}
html.dark .pr-panel { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); }
html.dark .pr-panel-title { color: #FCD34D; }
html.dark .pr-note, html.dark .pr-row-last, html.dark .pr-history { color: var(--dk-text3); }
html.dark .pr-last { color: #86EFAC; }
html.dark .pr-last.is-failed, html.dark .pr-history li.is-failed { color: #FCA5A5; }
html.dark .pr-history li { border-top-color: var(--dk-bg3); }
html.dark .pr-summary > div { border-bottom-color: var(--dk-bg3); }
html.dark .pr-summary dt { color: var(--dk-text3); }
html.dark .pr-summary dd { color: var(--dk-text1); }
html.dark .pr-summary dd.pr-amount { color: #FBBF24; }
html.dark .pr-preview { border-color: var(--dk-bg3); }

/* ── Admin: cancel-booking payment summary ── */
.cx-pays { list-style: none; margin: 0 0 14px; padding: 0; }
.cx-pay { border: 1px solid #E5E7EB; border-radius: 0.75rem; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.cx-pay.is-manual { background: #FFFBEB; border-color: #FDE68A; }
.cx-pay.is-failed { background: #FEE2E2; border-color: #FECACA; }
.cx-pay-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; color: #111827; }
.cx-pay-top span:first-child { overflow-wrap: anywhere; }
.cx-pay-amt { flex-shrink: 0; }
.cx-pay-note { font-size: 13px; line-height: 1.45; color: #4B5563; margin-top: 2px; }
.cx-danger { border: 0; border-radius: 0.875rem; font-weight: 600; color: #fff; background: linear-gradient(135deg,#EF4444,#DC2626); cursor: pointer; }
.cx-danger:disabled { opacity: .6; cursor: not-allowed; }
html.dark .cx-pay { border-color: var(--dk-bg3); }
html.dark .cx-pay-top { color: var(--dk-text1); }
html.dark .cx-pay-note { color: var(--dk-text3); }
html.dark .cx-pay.is-manual { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); }
html.dark .cx-pay.is-failed { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); }

/* ── Package cards on phones (Step 1) ──────────────────────────────────
   Under 640px the peek carousel came out far too narrow (cards ~130px wide
   on a 360px Samsung, one or two words per line, the next card cut off).
   Phones get one full-width card per row instead, no sideways scrolling,
   the first few inclusions with a "See what's included" toggle for the
   rest (buildPackageBullets() in booking.js), and smaller type. 640px and
   up keep the carousel exactly as it was. Keep the max-width in step with
   PACKAGE_STACK_QUERY in booking.js. */
.package-more-toggle { display: none; }
@media (max-width: 639px) {
  .package-carousel { display: block; }
  .package-carousel-arrow,
  #packageCarouselDots,
  #packageCarouselCounter,
  .package-carousel-hint { display: none !important; }
  .package-carousel-viewport { overflow: visible; scroll-snap-type: none; }
  .package-carousel-track { flex-direction: column; gap: 16px; padding: 0; }
  .package-carousel-slide { flex: none; width: 100%; opacity: 1; scroll-snap-align: none; }
  .package-carousel-slide .package-card { height: auto; }

  .package-card { padding: 1.125rem 1rem 1rem; border-width: 2.5px; border-radius: 1.25rem; }
  .package-card-name { font-size: 1.1875rem; line-height: 1.25; }
  .package-card-price { font-size: 1.375rem; line-height: 1.2; margin-bottom: .75rem; }
  .package-bullets { margin-bottom: .5rem; }
  .package-card:not(.expanded) .package-bullet-extra { display: none; }
  .package-more-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
    background: none; border: 0; cursor: pointer;
    color: #4F46E5; font-size: 14px; font-weight: 700;
  }
  .package-more-toggle::after { content: "▾"; display: inline-block; transition: transform .2s ease-out; }
  .package-card.expanded .package-more-toggle::after { transform: rotate(180deg); }
  .package-card .btn-primary { min-height: 52px; }
  #step1 > h2 { font-size: 1.375rem; line-height: 1.25; }
}

/* The wizard's "← Cancel" link stays on one line at phone widths */
.wizard-cancel-link { white-space: nowrap; }

/* ── Passes & Gift Vouchers (/passes, My Passes, /voucher) ──────────── */
.pv-wrap { max-width: 64rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; display: grid; gap: 1.5rem; }
.pv-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.pv-loading { color: #6B7280; text-align: center; padding: 2rem 0; }
.pv-card { background: white; border: 3px solid #CFEFF3; border-radius: 1.5rem; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: 0 6px 20px rgba(131,142,230,0.08); }
.pv-card-name { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 1.375rem; color: #111827; line-height: 1.2; }
.pv-card-price { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 2rem; color: #5B5FD8; line-height: 1.1; }
.pv-card-price.is-soon { font-size: 1.25rem; color: #6B7280; }
.pv-card-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: #4B5563; font-size: 15px; }
.pv-card-facts li { display: flex; gap: 8px; align-items: flex-start; }
.pv-card-facts li::before { content: "✓"; color: #838EE6; font-weight: 700; }
.pv-expiry { font-weight: 700; color: #92400E; }
.pv-card .btn-primary { margin-top: auto; }
.pv-wide { width: 100%; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.pv-panel { background: white; border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 6px 20px rgba(131,142,230,0.10); display: grid; gap: 1rem; }
.pv-panel h2 { font-size: 1.5rem; color: #111827; margin: 0; }
.pv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pv-link { background: none; border: 0; padding: 10px 4px; min-height: 44px; color: #4F46E5; font-weight: 700; font-size: 15px; cursor: pointer; }
.pv-back { justify-self: start; }
.pv-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #F5F8FC; border-radius: 1rem; padding: 14px 16px; }
.pv-summary-name { font-weight: 700; color: #111827; }
.pv-summary-meta { font-size: 14px; color: #6B7280; }
.pv-summary-price { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 1.375rem; color: #5B5FD8; white-space: nowrap; }
.pv-label { font-weight: 700; color: #374151; margin: 0 0 .5rem; }
.pv-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-choice-btn { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; min-height: 64px; padding: 12px 14px; border: 2.5px solid #CFEFF3; border-radius: 1rem; background: white; cursor: pointer; }
.pv-choice-btn[aria-checked="true"] { border-color: var(--secondary, #33B8CF); background: #E3F6F8; }
.pv-choice-title { font-weight: 700; color: #111827; font-size: 16px; }
.pv-choice-sub { font-size: 13px; color: #6B7280; }
.pv-box { display: grid; gap: .875rem; margin-top: 1rem; }
.pv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.pv-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: #9CA3AF; }
.pv-note { color: #4B5563; font-size: 15px; line-height: 1.5; margin: 0; }
.pv-counter { text-align: right; font-size: 13px; color: #9CA3AF; margin-top: -6px; }
.pv-pay-element { min-height: 120px; }
.pv-fine { font-size: 13px; color: #6B7280; text-align: center; margin: 0; }
.pv-msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.5; margin: 0; }
.pv-msg.is-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.pv-msg.is-info { background: #E3F6F8; color: #1F2937; border: 1px solid #CFEFF3; }
.pv-msg.is-ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.pv-ticket { background: #324E62; color: white; border-radius: 1.25rem; padding: 1.25rem 1.375rem; display: grid; gap: .75rem; }
.pv-ticket-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #CFEFF3; }
.pv-ticket-code { font-family: 'Courier New', monospace; font-size: clamp(1.75rem, 8vw, 2.25rem); font-weight: 700; letter-spacing: .12em; word-break: break-all; }
.pv-ticket-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pv-ticket-val { font-weight: 700; font-size: 1.125rem; }
.pv-ticket-expiry { color: #F9B745; }
.pv-done-actions { display: grid; gap: .75rem; }
.pv-account-line { text-align: center; color: #6B7280; font-size: 15px; margin: 0; }
@media (max-width: 639px) {
  .pv-wrap { padding: 1.5rem 1rem 3rem; }
  .pv-card, .pv-panel { padding: 1.125rem 1rem; border-radius: 1.25rem; }
  .pv-fields { grid-template-columns: 1fr; }
}

/* My Passes (account overlay, auth.js) */
.mp-claim { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mp-claim .field { text-transform: uppercase; letter-spacing: .08em; font-family: 'Courier New', monospace; font-size: 16px; }
.mp-claim .btn-primary { min-height: 48px; padding: 0 18px; }
.mp-pass { border: 2.5px solid #CFEFF3; border-radius: 1.25rem; padding: 1rem 1.125rem; display: grid; gap: .5rem; }
.mp-pass.is-done { border-color: #E5E7EB; background: #FAFAFA; }
.mp-pass-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.mp-pass-name { font-weight: 700; color: #111827; }
.mp-left { display: flex; align-items: baseline; gap: 8px; }
.mp-left-num { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 3rem; line-height: 1; color: #5B5FD8; }
.mp-pass.is-done .mp-left-num { color: #9CA3AF; }
.mp-left-label { font-weight: 700; color: #374151; font-size: 1.125rem; }
.mp-expiry { font-weight: 700; color: #92400E; font-size: 15px; }
.mp-code { font-family: 'Courier New', monospace; font-size: 14px; color: #6B7280; }
.mp-visits { font-size: 13px; color: #6B7280; line-height: 1.6; }
.mp-badge { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.mp-badge.active { background: #ECFDF5; color: #065F46; }
.mp-badge.used_up, .mp-badge.expired, .mp-badge.cancelled, .mp-badge.refunded { background: #F3F4F6; color: #4B5563; }
.mp-low { font-size: 14px; color: #92400E; background: #FFFBEB; border-radius: .75rem; padding: 8px 10px; }

/* Homepage promo */
.pv-promo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: white; border: 3px solid #CFEFF3; border-radius: 1.5rem; padding: 1.25rem 1.5rem; }
.pv-promo-title { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 1.375rem; color: #111827; }
.pv-promo-sub { color: #4B5563; font-size: 15px; }
@media (max-width: 639px) { .pv-promo .btn-primary { width: 100%; } }

/* ── Admin: Passes & Vouchers (front desk: big targets on phone/tablet) ── */
.ap-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.ap-toolbar .field { width: auto; min-height: 48px; }
.ap-sell-btn, .ap-csv-btn { min-height: 48px; padding: 0 18px; }
.ap-hint { font-size: 13px; color: #6B7280; margin: 0 0 12px; }
.ap-list { display: grid; gap: 10px; }
.ap-empty { color: #9CA3AF; text-align: center; padding: 1.5rem 0; list-style: none; }
.ap-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: white; border: 2px solid #E5E7EB; border-radius: 1rem; padding: 14px 16px; cursor: pointer; min-height: 64px; }
.ap-row:hover { border-color: #33B8CF; }
.ap-row.ap-status-expired, .ap-row.ap-status-used_up, .ap-row.ap-status-cancelled, .ap-row.ap-status-refunded { background: #FAFAFA; }
.ap-row-main { display: grid; gap: 2px; min-width: 0; }
.ap-row-name { font-weight: 700; color: #111827; font-size: 16px; }
.ap-row-meta { font-size: 13px; color: #6B7280; overflow-wrap: anywhere; }
.ap-code { font-family: 'Courier New', monospace; letter-spacing: .04em; color: #374151; }
.ap-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ap-row-left { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 1.5rem; color: #5B5FD8; line-height: 1; }
.ap-row-left small { font-family: 'Inter', sans-serif; font-size: 12px; color: #6B7280; font-weight: 600; }
.ap-badge { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; background: #F3F4F6; color: #4B5563; }
.ap-badge-active { background: #ECFDF5; color: #065F46; }
.ap-badge-expired { background: #FEE2E2; color: #991B1B; }
.ap-badge-low { background: #FEF3C7; color: #92400E; }
.ap-modal { max-width: 560px; max-height: 92vh; overflow-y: auto; }
.ap-banner { border-radius: .875rem; padding: 12px 14px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.ap-banner-bad { background: #FEE2E2; color: #991B1B; }
.ap-banner-warn { background: #FEF3C7; color: #92400E; }
.ap-banner-muted { background: #F3F4F6; color: #374151; }
.ap-desk { display: grid; gap: 12px; justify-items: center; text-align: center; background: #F5F8FC; border-radius: 1.25rem; padding: 18px 16px; margin-bottom: 12px; }
.ap-left { display: flex; align-items: center; gap: 12px; }
.ap-left-num { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 4.5rem; line-height: 1; color: #5B5FD8; }
.ap-left-label { font-weight: 700; font-size: 1.25rem; color: #374151; text-align: left; line-height: 1.2; }
.ap-left-label small { font-weight: 500; color: #6B7280; font-size: 14px; }
.ap-expiry { font-weight: 700; color: #92400E; }
.ap-stepper-label { font-weight: 700; color: #374151; }
.ap-stepper { display: flex; align-items: center; gap: 18px; }
.ap-step { width: 64px; height: 64px; border-radius: 18px; border: 2.5px solid #CFEFF3; background: white; font-size: 30px; font-weight: 700; color: #324E62; cursor: pointer; touch-action: manipulation; }
.ap-step:disabled { opacity: .35; cursor: not-allowed; }
.ap-step-val { font-family: 'DynaPuff', sans-serif; font-size: 2.5rem; font-weight: 700; min-width: 2ch; color: #111827; }
.ap-big-btn { width: 100%; min-height: 60px; font-size: 18px; }
.ap-secondary { min-height: 52px; font-size: 16px; }
.ap-confirm-q { font-size: 1.375rem; color: #111827; margin: 0; }
.ap-confirm-sub { color: #6B7280; margin: 0; }
.ap-desk-done { background: #ECFDF5; }
.ap-done-label { font-weight: 700; color: #065F46; }
.ap-done-num { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 5.5rem; line-height: 1; color: #065F46; }
.ap-done-of { color: #374151; font-weight: 600; }
.ap-done-code { font-family: 'Courier New', monospace; font-weight: 700; font-size: 2.25rem; letter-spacing: .1em; color: #111827; }
.ap-h3 { font-weight: 700; color: #111827; margin: 16px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.ap-visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-visit { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border: 1.5px solid #E5E7EB; border-radius: .875rem; padding: 10px 12px; }
.ap-visit.is-void .ap-visit-main > strong { text-decoration: line-through; color: #9CA3AF; }
.ap-visit-main { min-width: 0; flex: 1; }
.ap-visit-meta { font-size: 13px; color: #6B7280; }
.ap-void-note { color: #92400E; }
.ap-undo { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid #FCA5A5; background: white; color: #B91C1C; font-weight: 700; cursor: pointer; }
.ap-void-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.ap-void-form .btn-primary { min-height: 48px; padding: 0 14px; }
.ap-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ap-person { background: #F9FAFB; border-radius: .875rem; padding: 10px 12px; font-size: 14px; overflow-wrap: anywhere; }
.ap-person-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #9CA3AF; font-weight: 700; }
.ap-muted { color: #6B7280; font-size: 14px; }
.ap-gift-msg { background: #FDE7F1; border-radius: .875rem; padding: 10px 12px; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ap-form { display: grid; gap: 12px; }
.ap-check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.ap-check input { width: 22px; height: 22px; }
@media (max-width: 767px) {
  #tab-passes { padding: 1rem !important; }
  .ap-toolbar > * { flex: 1 1 calc(50% - 10px); }
  .ap-sell-btn { flex-basis: 100% !important; }
}
html.dark .ap-row, html.dark .ap-step { background: #111827; border-color: #374151; }
html.dark .ap-row-name, html.dark .ap-confirm-q, html.dark .ap-h3, html.dark .ap-step-val { color: #F3F4F6; }
html.dark .ap-desk, html.dark .ap-person { background: #1F2937; }
html.dark .ap-desk-done { background: #064E3B; }
html.dark .ap-done-label, html.dark .ap-done-num { color: #A7F3D0; }
html.dark .ap-left-label, html.dark .ap-stepper-label, html.dark .ap-done-of { color: #E5E7EB; }
html.dark .ap-visit { border-color: #374151; }

/* The pv-/ap- blocks above set display: grid/flex, which comes after (and
   so beats) Tailwind's .hidden — keep .hidden winning for them. */
.pv-wrap .hidden, .pv-panel.hidden, .pv-box.hidden, .pv-fields.hidden,
#myPassesOverlay .hidden, #passDetailModal .hidden, #sellPassModal .hidden { display: none !important; }

/* Sign In beside Book a Party in the top bar (auth.js updateNavUI). On
   phones the bar is tight: one line, smaller gaps and padding, and the
   button's emoji goes. Below 380px (iPhone SE, small Androids) there isn't
   room for logo + Sign In + Book a Party + menu at tappable sizes, so Sign
   In stays in the ☰ menu there (navMobileAuth). */
.nav-signin { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
#navAuthArea .btn-primary { white-space: nowrap; }
@media (max-width: 767px) {
  #navAuthArea > .flex { gap: 10px; }
  #navAuthArea .btn-primary { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 419px) {
  .nav-book-emoji { display: none; }
  #navAuthArea > .flex { gap: 8px; }
  #navAuthArea .btn-primary { padding-left: 12px; padding-right: 12px; }
  .nav-logo { flex-shrink: 0; margin-right: 8px; }
  .nav-logo img { height: 2.25rem; width: auto; }
}
@media (max-width: 379px) {
  .nav-signin { display: none; }
}

/* ── "We sell passes" signposts: New badge in the nav, Pricing page panel ── */
.nav-new {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px;
  background: #FC6DAE; color: white; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; vertical-align: 2px; line-height: 1.5;
}
.nav-passes-link { white-space: nowrap; }
.pv-prices-promo {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center;
  background: white; border: 3px solid #FBCFE3; border-radius: 1rem; padding: 1.25rem 1.5rem; margin-bottom: 1rem;
  text-decoration: none; color: inherit; box-shadow: 0 6px 20px rgba(252,109,174,0.10); transition: border-color .2s, box-shadow .2s;
}
.pv-prices-promo:hover { border-color: #FC6DAE; box-shadow: 0 10px 28px rgba(252,109,174,0.18); }
.pv-prices-promo-head { display: grid; gap: 4px; }
.pv-prices-promo-title { font-family: 'DynaPuff', sans-serif; font-weight: 700; font-size: 1.375rem; color: #111827; }
.pv-prices-promo-sub { color: #6B7280; font-size: 15px; }
.pv-prices-promo-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 8px; }
.pv-prices-promo-list:empty { display: none; }
.pv-prices-promo-item { display: flex; justify-content: space-between; gap: 10px; background: #FDE7F1; border-radius: .75rem; padding: 10px 12px; font-size: 15px; color: #374151; }
.pv-prices-promo-item strong { color: #5B5FD8; white-space: nowrap; }
.pv-prices-promo-btn { grid-column: 2; grid-row: 1; white-space: nowrap; }
@media (max-width: 639px) {
  .pv-prices-promo { grid-template-columns: 1fr; padding: 1.125rem 1rem; }
  .pv-prices-promo-btn { grid-column: 1; grid-row: auto; text-align: center; }
}

/* ── Booking wizard: no stray "selected" looks on touch screens ──────────
   Hover styles for the wizard's cards, tiles, slots and buttons only apply
   on devices that can really hover (@media (hover: hover) above); on a
   phone the last-tapped item used to keep its hover border and look
   selected. The +/− steppers had Tailwind's hover class; same rule here.
   Real selection (.selected) and keyboard focus (:focus-visible) are
   unchanged. (Don't add user-select: none to these buttons — in Firefox
   it removes their keyboard focus ring.) */
@media (hover: hover) {
  .stepper-btn:hover:not(:disabled) { border-color: #818CF8; }
}
