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

:root {
  --primary: #7B2D8E;
  --primary-dark: #5E1F6E;
  --primary-light: #9B4DCA;
  --bg: #ffffff;
  --bg-alt: #F5F5F5;
  --bg-dark: #0D0D0D;
  --surface: #F5F5F5;
  --foreground: #111111;
  --foreground-dark: #F0F0F0;
  --muted: #666666;
  --border: #E0E0E0;
  --success: #22C55E;
  --error: #EF4444;
  --spotify: #1DB954;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo-img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: var(--transition); letter-spacing: -0.01em;
}
.nav-link:hover, .nav-link.active { color: var(--foreground); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 10px 20px;
  border-radius: 100px; font-size: 14px;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--foreground);
  margin: 5px 0; transition: var(--transition); border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.75) 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center; padding: 24px;
  max-width: 700px;
}
.hero-logo { height: 140px; width: auto; margin: 0 auto 24px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6)); border-radius: 16px; background: rgba(255,255,255,0.9); padding: 12px; }
.hero-title {
  font-size: 56px; font-weight: 900; color: #fff; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; border-radius: 100px; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; padding: 12px 24px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; padding: 12px 24px;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn-spotify { background: var(--spotify); color: #fff; padding: 12px 24px; }
.btn-spotify:hover { background: #1aa34a; }

/* ============ STATS BAR ============ */
.stats-bar { background: var(--primary); padding: 32px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--foreground-dark); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: 40px; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 12px; line-height: 1.2;
}
.section-dark .section-title { color: #fff; }
.section-subtitle { font-size: 17px; color: var(--muted); max-width: 600px; margin: 0 auto; }
.section-dark .section-subtitle { color: #999; }
.spp-logo { height: 60px; width: auto; margin: 0 auto 16px; }

/* ============ PROGRAMS ============ */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; transition: var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.program-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.program-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.program-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.program-meta { display: flex; gap: 8px; margin-bottom: 20px; }
.meta-tag {
  font-size: 12px; font-weight: 600; padding: 4px 12px;
  background: var(--surface); border-radius: 100px; color: var(--muted);
}

/* ============ MEAL PLANS ============ */
.meal-plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.meal-plan-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; position: relative; transition: var(--transition);
}
.meal-plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.meal-plan-card.featured { border-color: var(--primary); border-width: 2px; }
.featured-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-meals {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan-price { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.plan-per-meal { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ============ MENU ============ */
.menu-section { margin-bottom: 48px; }
.menu-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; text-align: center; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.menu-item {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; font-size: 14px; font-weight: 500; text-align: center;
  transition: var(--transition);
}
.menu-item:hover { border-color: var(--primary); color: var(--primary); }

/* ============ ORDER INFO ============ */
.order-info {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px;
}
.order-info-item { display: flex; align-items: center; gap: 12px; }
.order-icon { font-size: 28px; }
.order-info-item strong { display: block; font-size: 14px; }
.order-info-item p { font-size: 13px; color: var(--muted); margin: 0; }
.order-info-item a { color: var(--primary); font-weight: 600; }

/* ============ MERCH ============ */
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.merch-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.merch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.merch-image { height: 280px; overflow: hidden; background: var(--surface); }
.merch-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.merch-card:hover .merch-image img { transform: scale(1.05); }
.merch-info { padding: 20px; }
.merch-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.merch-category { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.merch-price { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.merch-sizes { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

/* ============ BOOK SECTION ============ */
.book-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 40px;
  background: var(--surface); border-radius: var(--radius-lg); padding: 40px;
  align-items: center;
}
.book-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.book-image img { width: 100%; }
.signed-badge {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 12px;
}
.book-info h3 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.book-author { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.book-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.book-price { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }

/* ============ ABOUT / STORY ============ */
.story-section { max-width: 900px; margin: 0 auto; }
.story-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 64px;
}
.story-block.reverse { direction: rtl; }
.story-block.reverse > * { direction: ltr; }
.story-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.story-image img { width: 100%; height: 350px; object-fit: cover; }
.story-content h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.story-content p { font-size: 15px; color: #bbb; line-height: 1.7; margin-bottom: 12px; }

.lift-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 20px 0;
}
.lift-stat {
  text-align: center; background: rgba(123,45,142,0.15);
  border-radius: var(--radius); padding: 12px 8px;
}
.lift-number { display: block; font-size: 20px; font-weight: 800; color: var(--primary-light); }
.lift-name { font-size: 11px; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

.quote-section {
  max-width: 700px; margin: 0 auto; text-align: center; padding: 40px 0;
}
.quote-section blockquote p {
  font-size: 22px; font-style: italic; color: rgba(255,255,255,0.9);
  line-height: 1.6; margin-bottom: 16px;
}
.quote-section cite { font-size: 14px; color: #999; font-style: normal; }

/* ============ BOOKING ============ */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.session-types { display: flex; flex-direction: column; gap: 16px; }
.session-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.session-card:hover { border-color: var(--primary); }
.session-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.session-duration { font-size: 13px; color: var(--muted); }
.session-price { font-size: 24px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.session-desc { font-size: 14px; color: var(--muted); }

.contact-form-wrapper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--foreground);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--foreground); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,45,142,0.1);
}
.form-group textarea { resize: vertical; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-dark); color: var(--foreground-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 48px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: #999; }
.footer-links h4, .footer-contact h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-links a, .footer-contact a {
  display: block; font-size: 14px; color: #999; margin-bottom: 8px; transition: var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 13px; color: #666; }

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100vh;
  background: var(--bg); z-index: 2001; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: right 0.3s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 20px; font-weight: 700; }
.cart-close {
  background: none; border: none; font-size: 28px; cursor: pointer;
  color: var(--muted); line-height: 1;
}
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cart-item-info h4 { font-size: 15px; font-weight: 600; }
.cart-item-info p { font-size: 13px; color: var(--muted); }
.cart-item-right { display: flex; align-items: center; gap: 12px; }
.cart-item-price { font-size: 15px; font-weight: 700; color: var(--primary); }
.cart-item-remove {
  background: none; border: none; color: var(--error); cursor: pointer;
  font-size: 18px; padding: 4px;
}
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700; margin-bottom: 16px;
}

/* ============ FLOATING CART ============ */
.floating-cart {
  position: fixed; bottom: 24px; right: 24px; z-index: 1500;
  background: var(--primary); color: #fff; border: none; border-radius: 50%;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-lg); transition: var(--transition);
}
.floating-cart:hover { background: var(--primary-dark); transform: scale(1.05); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--error); color: #fff; font-size: 11px; font-weight: 700;
  width: 22px; height: 22px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
}

/* ============ FORM SUCCESS ============ */
.form-success {
  text-align: center; padding: 40px 20px;
}
.form-success h3 { font-size: 24px; font-weight: 700; color: var(--success); margin-bottom: 8px; }
.form-success p { font-size: 15px; color: var(--muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .meal-plans-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .order-info { grid-template-columns: repeat(2, 1fr); }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero-title { font-size: 36px; }
  .hero-logo { height: 80px; }
  .hero-subtitle { font-size: 16px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 22px; }

  .section { padding: 64px 0; }
  .section-title { font-size: 30px; }

  .programs-grid { grid-template-columns: 1fr; }
  .meal-plans-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .order-info { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }

  .booking-grid { grid-template-columns: 1fr; }

  .story-block, .story-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .story-image img { height: 250px; }
  .lift-stats { grid-template-columns: repeat(2, 1fr); }

  .book-card { grid-template-columns: 140px 1fr; gap: 24px; padding: 24px; }
  .book-info h3 { font-size: 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .cart-drawer { width: 100%; right: -100%; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .merch-grid { grid-template-columns: 1fr; }
  .merch-image { height: 240px; }
  .book-card { grid-template-columns: 1fr; text-align: center; }
  .book-image { max-width: 160px; margin: 0 auto; }
}


/* ============ MEAL SELECTION MODAL ============ */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 2000;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.meal-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%; max-width: 600px; max-height: 85vh;
  background: var(--bg); border-radius: var(--radius-lg);
  z-index: 2001; overflow: hidden;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.meal-modal.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.meal-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.meal-modal-header h3 {
  font-size: 22px; font-weight: 700;
}
.modal-close {
  background: none; border: none; font-size: 28px;
  color: var(--muted); cursor: pointer; padding: 0 4px;
  line-height: 1; transition: var(--transition);
}
.modal-close:hover { color: var(--foreground); }

.meal-modal-subtitle {
  padding: 8px 24px 16px; color: var(--muted); font-size: 14px;
}

#mealStep1, #mealStep2 {
  display: flex; flex-direction: column; flex: 1;
  overflow: hidden; min-height: 0;
}
.meal-modal-grid {
  padding: 0 24px; overflow-y: auto; flex: 1;
  display: grid; grid-template-columns: 1fr;
  gap: 10px; padding-bottom: 16px;
  min-height: 0;
}

.meal-select-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); cursor: pointer;
  transition: var(--transition); user-select: none;
}
.meal-select-item:hover { border-color: var(--primary-light); }
.meal-select-item.selected {
  border-color: var(--primary); background: rgba(123, 45, 142, 0.06);
}

.meal-select-name {
  font-weight: 600; font-size: 14px; flex: 1;
}
.meal-select-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 12px;
  transition: var(--transition);
}
.meal-select-item.selected .meal-select-check {
  background: var(--primary); border-color: var(--primary);
}
.meal-select-item.selected .meal-select-check::after {
  content: '✓'; color: white; font-size: 14px; font-weight: 700;
}

.meal-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.meal-modal-status {
  text-align: center; font-size: 14px; color: var(--muted);
  margin-bottom: 12px; font-weight: 500;
}
.meal-modal-status.complete { color: var(--success); }

#mealModalNext:disabled {
  opacity: 0.5; cursor: not-allowed;
}
#mealModalConfirm:disabled {
  opacity: 0.5; cursor: not-allowed;
}

@media (max-width: 480px) {
  .meal-modal { width: 95%; max-height: 90vh; }
  .meal-modal-header { padding: 16px 16px 0; }
  .meal-modal-subtitle { padding: 8px 16px 12px; }
  .meal-modal-grid { padding: 0 16px; padding-bottom: 12px; }
  .meal-modal-footer { padding: 12px 16px 16px; }
  .meal-select-item { padding: 12px 14px; }
}

/* ============ MEAL MODAL STEP 2: CUSTOMISE ============ */
.modal-back {
  background: none; border: none; font-size: 22px;
  color: var(--muted); cursor: pointer; padding: 0 8px 0 0;
  line-height: 1; transition: var(--transition);
}
.modal-back:hover { color: var(--foreground); }

.meal-modal-body {
  padding: 0 24px; overflow-y: auto; flex: 1;
  padding-bottom: 16px;
}

.customise-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.customise-section:last-child { border-bottom: none; }

.customise-label {
  font-size: 15px; font-weight: 700; margin-bottom: 4px;
}
.customise-hint {
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}

/* Selected meals summary */
.selected-meal-row {
  display: flex; align-items: center; padding: 6px 0; gap: 8px;
}
.selected-meal-row .meal-check {
  color: var(--success); font-weight: 700; font-size: 14px;
}
.selected-meal-row .meal-name {
  flex: 1; font-size: 14px; font-weight: 500;
}
.selected-meal-row .meal-qty {
  font-size: 13px; color: var(--muted);
}

/* Add-ons */
.addon-option {
  display: flex; align-items: center; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: var(--transition);
  margin-bottom: 8px; user-select: none;
}
.addon-option:hover { border-color: var(--primary-light); }
.addon-option input[type="checkbox"] {
  width: 20px; height: 20px; accent-color: var(--primary);
  margin-right: 10px; cursor: pointer; flex-shrink: 0;
}
.addon-option.checked {
  border-color: var(--primary); background: rgba(123, 45, 142, 0.06);
}
.addon-text { flex: 1; font-size: 14px; font-weight: 500; }
.addon-price { font-size: 14px; font-weight: 700; color: var(--primary); }

.addon-total {
  padding: 8px 0 0; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 4px;
}

/* Chip grid */
.chip-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  padding: 8px 16px; border-radius: 20px;
  border: 2px solid var(--border); background: transparent;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: var(--transition); color: var(--foreground);
  font-family: inherit;
}
.chip:hover { border-color: var(--primary-light); }
.chip.active {
  border-color: var(--primary); background: rgba(123, 45, 142, 0.12);
  color: var(--primary); font-weight: 600;
}

/* Macro grid */
.macro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.macro-input-group {
  display: flex; flex-direction: column; gap: 4px;
}
.macro-input-group label {
  font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px;
}
.macro-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.macro-input-group input {
  padding: 10px 12px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  font-family: inherit; color: var(--foreground);
  background: var(--bg); transition: var(--transition);
  width: 100%;
}
.macro-input-group input:focus {
  outline: none; border-color: var(--primary);
}

/* Notes textarea */
#mealNotes {
  width: 100%; padding: 12px; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  font-family: inherit; color: var(--foreground);
  background: var(--bg); resize: vertical;
  transition: var(--transition);
}
#mealNotes:focus { outline: none; border-color: var(--primary); }

/* Price row in footer */
.customise-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 12px;
}
.price-breakdown {
  display: flex; flex-direction: column; gap: 2px;
}
.price-base, .price-addons {
  font-size: 13px; color: var(--muted);
}
.price-total { text-align: right; }
.price-total-label {
  font-size: 12px; color: var(--muted); display: block;
}
.price-total-amount {
  font-size: 22px; font-weight: 800; color: var(--primary);
}

/* Step 2 layout fix */
#mealStep1, #mealStep2 {
  display: flex; flex-direction: column; height: 100%;
}
#mealStep2[style*="display: none"], #mealStep2[style*="display:none"] {
  display: none !important;
}

@media (max-width: 480px) {
  .meal-modal-body { padding: 0 16px; padding-bottom: 12px; }
  .macro-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .customise-price-row { flex-direction: column; gap: 8px; align-items: stretch; }
  .price-total { text-align: left; }
}

/* Program Pricing */
.program-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0.75rem 0 0.5rem;
}
.program-price .price-note {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.program-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2rem;
  font-style: italic;
}

/* ============ NAV AUTH ============ */
.nav-auth { display: flex; align-items: center; }
.btn-outline-dark {
  background: transparent; color: var(--foreground); padding: 8px 18px;
  border: 2px solid var(--border); border-radius: 100px; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--foreground); padding: 6px 12px; border-radius: 100px;
  transition: var(--transition);
}
.nav-user-btn:hover { background: var(--surface); }
.nav-user-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.nav-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 200px; z-index: 500;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); pointer-events: none;
}
.nav-user.open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all;
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  font-size: 14px; font-weight: 500; color: var(--foreground);
  transition: var(--transition); cursor: pointer;
}
.nav-dropdown-item:hover { background: var(--surface); }
.nav-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.nav-dropdown-danger { color: var(--error); }
.nav-dropdown-danger:hover { background: #fff5f5; }

/* ============ AUTH MODAL ============ */
.auth-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%; max-width: 440px;
  background: var(--bg); border-radius: var(--radius-lg);
  z-index: 2002; padding: 40px 36px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.auth-modal.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.auth-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; font-size: 28px;
  color: var(--muted); cursor: pointer; line-height: 1;
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { height: 56px; width: auto; border-radius: 12px; background: var(--surface); padding: 8px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 4px; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 28px; }
.auth-error {
  background: #fff5f5; border: 1px solid #fca5a5; color: var(--error);
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px;
}
.auth-success {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px;
}
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* ============ CLIENT PORTAL MODAL ============ */
.portal-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 95%; max-width: 640px; max-height: 85vh;
  background: var(--bg); border-radius: var(--radius-lg);
  z-index: 2002; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.portal-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.portal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.portal-header h2 { font-size: 22px; font-weight: 800; }
.portal-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.portal-welcome {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  padding: 20px; background: var(--surface); border-radius: var(--radius); 
}
.portal-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.portal-welcome h3 { font-size: 18px; font-weight: 700; }
.portal-email { font-size: 13px; color: var(--muted); }
.portal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.portal-tab {
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: var(--transition); font-family: inherit;
}
.portal-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.portal-orders-list { display: flex; flex-direction: column; gap: 12px; }
.portal-order-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.portal-order-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.portal-order-name { font-size: 15px; font-weight: 700; }
.portal-order-date { font-size: 12px; color: var(--muted); }
.portal-order-detail { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.portal-order-footer { display: flex; justify-content: space-between; align-items: center; }
.portal-order-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.portal-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.status-pending { background: #fef9c3; color: #854d0e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-complete { background: #ede9fe; color: #5b21b6; }
.portal-loading { text-align: center; color: var(--muted); padding: 40px; font-size: 14px; }
.portal-empty { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }
.portal-prefs { padding: 4px 0; }
.portal-prefs h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.portal-prefs-hint { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.portal-pref-item { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.portal-pref-label { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 100px; }
.portal-pref-value { font-size: 13px; }

/* ============ ADMIN DASHBOARD MODAL ============ */
.admin-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 96%; max-width: 900px; max-height: 88vh;
  background: var(--bg); border-radius: var(--radius-lg);
  z-index: 2002; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.admin-modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 28px; border-bottom: 1px solid var(--border);
}
.admin-header h2 { font-size: 22px; font-weight: 800; }
.admin-body { flex: 1; overflow-y: auto; padding: 24px 28px; }
.admin-tabs {
  display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-tab {
  padding: 10px 16px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: var(--transition); font-family: inherit; white-space: nowrap;
}
.admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.admin-stat-card {
  background: var(--surface); border-radius: var(--radius); padding: 20px; text-align: center;
}
.admin-stat-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-stat-value { font-size: 28px; font-weight: 800; color: var(--primary); }
.admin-section { margin-bottom: 28px; }
.admin-section h4 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.admin-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; background: var(--bg); color: var(--foreground);
}
.admin-table-wrapper { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th {
  text-align: left; padding: 10px 12px; background: var(--surface);
  font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 11px; border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 12px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface); }
.admin-email-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.admin-email-preview { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 4px; }
.admin-email-preview code { background: var(--border); padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* ============ WEEKLY SPECIAL BANNER ============ */
.weekly-special-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px; color: #fff; flex-wrap: wrap;
}
.special-badge {
  background: rgba(255,255,255,0.2); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px;
  white-space: nowrap; letter-spacing: 0.05em;
}
.special-content { flex: 1; }
.special-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.special-content p { font-size: 14px; opacity: 0.85; }
.special-right { display: flex; align-items: center; gap: 16px; }
.special-price { font-size: 32px; font-weight: 900; }
.special-price span { font-size: 14px; font-weight: 500; opacity: 0.8; }
.btn-white {
  background: #fff; color: var(--primary); padding: 10px 20px;
  border-radius: 100px; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit; transition: var(--transition);
}
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }

@media (max-width: 640px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .weekly-special-banner { flex-direction: column; align-items: flex-start; }
  .special-right { width: 100%; justify-content: space-between; }
  .admin-tabs { overflow-x: auto; }
}

/* ============ MENU ITEM CLICKABLE ============ */
.menu-subtitle {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-bottom: 16px; margin-top: -8px;
}
.menu-item {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.menu-item-name { flex: 1; text-align: left; }
.menu-camera {
  font-size: 16px; opacity: 0.35; transition: var(--transition); flex-shrink: 0;
}
.menu-item:hover .menu-camera { opacity: 1; transform: scale(1.2); }
.menu-item.has-photo { border-color: var(--primary); }
.menu-item.has-photo .menu-camera { opacity: 1; }

/* ============ DISH LIGHTBOX ============ */
.dish-lightbox {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 92%; max-width: 560px;
  background: var(--bg); border-radius: var(--radius-lg);
  z-index: 2003; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}
.dish-lightbox.open {
  opacity: 1; visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.dish-lightbox-close {
  position: absolute; top: 12px; right: 16px; z-index: 10;
  background: rgba(0,0,0,0.5); color: #fff; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; line-height: 1;
}
.dish-lightbox-img-wrap {
  width: 100%; aspect-ratio: 4/3; background: var(--surface);
  overflow: hidden; position: relative;
}
.dish-lightbox-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.dish-lightbox:hover .dish-lightbox-img-wrap img { transform: scale(1.03); }
.dish-lightbox-no-photo {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.dish-no-photo-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.4; }
.dish-lightbox-no-photo h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.dish-lightbox-no-photo p { font-size: 14px; color: var(--muted); }
.dish-no-photo-hint { font-size: 12px !important; margin-top: 8px; }
.dish-lightbox-info { padding: 20px 24px 24px; }
.dish-lightbox-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dish-lightbox-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ ADMIN PHOTO UPLOAD ============ */
.photo-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.photo-upload-area:hover { border-color: var(--primary); background: rgba(123,45,142,0.03); }
.photo-upload-icon { font-size: 40px; margin-bottom: 12px; }
.photo-upload-area p { font-size: 14px; color: var(--muted); margin: 4px 0; }

.admin-photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.admin-photo-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.admin-photo-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
}
.admin-photo-card-info { padding: 10px 12px; }
.admin-photo-card-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.admin-photo-card-actions { display: flex; justify-content: flex-end; }
.admin-photo-delete {
  background: none; border: none; color: var(--error); cursor: pointer;
  font-size: 12px; font-weight: 600; padding: 2px 6px;
}
.admin-photo-delete:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .admin-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-lightbox { width: 96%; }
}

/* ============ AUTH / PORTAL / ADMIN / DISH OVERLAYS ============ */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2001; opacity: 0; visibility: hidden; transition: 0.25s ease;
}
.auth-overlay.open { opacity: 1; visibility: visible; }
