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

:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #06B6D4;
  --accent-light: #CFFAFE;
  --bg: #F0F4FF;
  --dark: #0F172A;
  --muted: #64748B;
  --white: #FFFFFF;
  --border: #E2E8F0;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

/* ---- Banner ---- */
.banner {
  background: linear-gradient(90deg, #312E81 0%, #4F46E5 50%, #0891B2 100%);
  color: white;
  text-align: center;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---- Nav ---- */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.nav-logo {
  font-weight: 800;
  font-size: 17px;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-links a.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-links .book-btn {
  background: var(--primary);
  color: white !important;
  font-weight: 700;
  margin-left: 4px;
}

.nav-links .book-btn:hover {
  background: var(--primary-dark);
  color: white !important;
}

/* ---- Hero (dark gradient section, home page only) ---- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #08101E 0%, #1a0f40 55%, #091625 100%);
}

/* Dot grid */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient colour glows */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 15% 65%, rgba(79,70,229,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 85% 20%, rgba(6,182,212,0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 24px 90px;
  max-width: 820px;
  margin: 0 auto;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(42px, 8vw, 70px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  color: white;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #818CF8 0%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(16px, 2.5vw, 18px);
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 24px auto 44px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Shared Buttons ---- */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(79,70,229,0.45);
  transition: background 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 24px rgba(79,70,229,0.6);
}

/* Ghost button — for use on the dark hero */
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.22);
  padding: 15px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}

/* Friends button — tertiary, more subtle */
.btn-friends {
  color: rgba(255,255,255,0.55);
  border: 1.5px solid rgba(255,255,255,0.1);
  padding: 15px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.btn-friends:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
}

/* Light-bg secondary button (queue + book pages) */
.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border);
  padding: 15px 30px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- Queue Page ---- */
.queue-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  text-align: center;
}

.queue-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.queue-page h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.queue-page .subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.queue-entry {
  display: flex;
  align-items: center;
  gap: 16px;
}

.q-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.q-num.pos-1 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4);
}

.q-num.pos-other {
  background: var(--primary-light);
  color: var(--primary);
}

.q-card {
  flex: 1;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid transparent;
}

.q-card.featured {
  background: #F5F3FF;
  border-color: #C7D2FE;
}

.q-name {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.up-next {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.badge-pending {
  background: #FEF3C7;
  color: #92400E;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-approved {
  background: #D1FAE5;
  color: #065F46;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.q-type {
  font-size: 14px;
  color: var(--muted);
}

.q-time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 16px;
}

.join-cta {
  margin-top: 52px;
}

.join-cta p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 15px;
}

/* ---- Book Page ---- */
.book-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
}

.book-page h1 {
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.price-line {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.price-line .amount {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.payment-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  text-align: left;
}

/* ---- Toast notification ---- */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #1E293B;
  color: white;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

/* ---- Booking notice ---- */
.booking-notice {
  background: var(--primary-light);
  border: 1.5px solid #C7D2FE;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark);
}

/* ---- PayPal button ---- */
.paypal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 100px;
  border: none;
  background: #003087;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}

.paypal-btn:hover {
  background: #001e5a;
}

.paypal-wordmark { font-style: italic; letter-spacing: -0.3px; }
.paypal-wordmark .pay { color: #60B3F4; }
.paypal-wordmark .pal { color: #C0D9F5; }

/* ---- Divider ---- */
.divider-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.divider-line::before,
.divider-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Form inputs ---- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 14px;
}

/* ---- Pill radio / checkbox groups ---- */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-opt {
  cursor: pointer;
  user-select: none;
}

.pill-opt input[type="radio"],
.pill-opt input[type="checkbox"] {
  display: none;
}

.pill-opt span {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.pill-opt span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill-opt input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(79,70,229,0.3);
}

/* ---- Submit ---- */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(79,70,229,0.35);
  transition: background 0.15s, box-shadow 0.15s;
}

.submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 24px rgba(79,70,229,0.5);
}

.fine-print {
  text-align: center;
  color: #AAAAAA;
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.6;
}

/* ---- Success state ---- */
.success-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}

.success-card {
  text-align: center;
}

.success-card h2 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.success-card p {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.65;
  font-size: 15px;
}

.success-card .paypal-btn {
  margin-bottom: 20px;
}

.success-card .queue-link {
  display: block;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.success-card .queue-link:hover {
  text-decoration: underline;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  nav {
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 13px;
  }

  .nav-links a {
    font-size: 13px;
    padding: 7px 10px;
  }

  .hero {
    padding: 70px 20px 70px;
  }

  .queue-page,
  .book-page {
    padding: 40px 16px 60px;
  }

  .payment-card {
    padding: 24px 18px;
  }

  .q-card {
    padding: 14px 16px;
  }

  .pill-opt span {
    padding: 9px 14px;
    font-size: 13px;
  }
}
