:root{
  --bg: #f7f7f8;
  --card: #e6e6e8;
  --text: #0f0f10;
  --muted: #6b6b70;
  --border: #e6e6e8;
  --shadow: 0 18px 50px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 18px;
  --radius-lg: 24px;

  /* ── Unified input tokens ── used across ALL forms ── */
  --input-bg:          #fff;
  --input-border:      #d8d8dc;
  --input-border-focus:#754e9d;
  --input-radius:      12px;
  --input-padding:     0.9rem 1rem;
  --input-font-size:   1.1rem;
  --input-color:       #0f0f10;
  --input-shadow-focus:0 0 0 3px rgba(117,78,157,0.15);

  /* ── Unified label tokens ── */
  --label-font-size:   0.85rem;
  --label-font-weight: 600;
  --label-color:       #6b6b70;
  --label-gap:         0.4rem;
  --label-transform:   uppercase;
  --label-spacing:     0.04em;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Global input baseline — applies to ALL inputs site-wide ── */
input, select, textarea {
  font-family: inherit;
  font-size: var(--input-font-size);
  padding: var(--input-padding);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  background: var(--input-bg);
  color: var(--input-color);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

/* ── Global label baseline ── */
label {
  font-size: var(--label-font-size);
  font-weight: var(--label-font-weight);
  color: var(--label-color);
  text-transform: var(--label-transform);
  letter-spacing: var(--label-spacing);
}

/* ===============================
   Centered Logo Header
   =============================== */
#kiosk-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
}

.kiosk-logo {
  height: 250px;
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.08));
}

/* ===============================
   Consistent Back Button (Fixed)
   =============================== */
.kiosk-back {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1300;
  display: none; /* JS shows/hides this per screen via updateBackBtn() */

  background: #f2f2f2;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;

  box-shadow: var(--shadow-soft);
}

.kiosk-back:active {
  transform: scale(0.98);
}

/* ===============================
   Screens
   =============================== */
.screen {
  display: none;
  height: 100vh;
  min-height: 100%;
  width: 100%;
}

.screen.active {
  display: flex;
}

/* ===============================
   Idle Screen Layout
   =============================== */

#idle-screen {
  background: #fff;
  align-items: center;
  justify-content: center;
}

.idle-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.idle-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.idle-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 1; /* no fade needed */
}

.idle-slideshow video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay exists but should NOT block taps */
.idle-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.start-btn {
  display: none !important;
}


/* ===============================
   Client Type Screen
   =============================== */
#client-type-screen {
  align-items: stretch;
  justify-content: stretch;
  background: var(--bg);
}

#daypass-choice-screen {
  align-items: stretch;
  justify-content: stretch;
  background: var(--bg);
}

.fullwidth-wrap {
  width: min(980px, 92vw);
  min-height: 70vh;
  padding: 2.5rem 2.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  justify-content: center;
}

.fullwidth-header.centered {
  text-align: center;
  margin-top: 20px;
}

.fullwidth-header h1 {
  margin: 0 0 0.75rem;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.choice-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.choice-card {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: 2.8rem 3rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;

  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-soft);
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9d9de;
}

.choice-card:active {
  transform: scale(0.99);
}

.choice-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.choice-sub {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ===============================
   Cards / Forms
   =============================== */
#form-screen,
#parq-screen,
#staff-review-screen {
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.kiosk-card {
  background: var(--bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 2.6rem 3rem;
  max-width: 560px;
  width: min(560px, 92vw);
  box-sizing: border-box;
}

.kiosk-card-wide {
  max-width: 920px;
  width: min(920px, 92vw);
}

.kiosk-card h1 {
  margin: 0 0 0.75rem;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}

#checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

#checkout-form label,
.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: var(--label-font-size);
  font-weight: var(--label-font-weight);
  color: var(--label-color);
  text-transform: var(--label-transform);
  letter-spacing: var(--label-spacing);
  gap: var(--label-gap);
}

#checkout-form input,
.form-grid input {
  padding: var(--input-padding);
  font-size: var(--input-font-size);
  font-family: inherit;
  border-radius: var(--input-radius);
  border: 1.5px solid var(--input-border);
  outline: none;
  background: var(--input-bg);
  color: var(--input-color);
  transition: border-color .15s ease, box-shadow .15s ease;
}

#checkout-form input:focus,
.form-grid input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

/* ===============================
   Buttons (ChatGPT-like)
   =============================== */
.primary-button,
.secondary-button {
  border-radius: 999px;
  padding: .95rem 1.4rem;
  font-size: 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.primary-button {
  background: #754e9d;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.primary-button:hover:enabled {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.secondary-button {
  background: #e2e2e6;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.secondary-button:hover:enabled {
  border-color: #d6d6db;
  box-shadow: var(--shadow);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Payment button row */
.button-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* ===============================
   Payment Breakdown
   =============================== */
.payment-breakdown {
  margin-top: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fbfbfb;
  border: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--text);
}

.payment-breakdown .line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.25rem 0;
}

.payment-breakdown .divider {
  margin: 0.65rem 0;
  border-top: 1px solid var(--border);
}

.payment-breakdown .total {
  font-weight: 800;
}

/* ===============================
   Status / Welcome
   =============================== */
.status-message {
  margin-top: 1rem;
  min-height: 1.25rem;
  font-size: 1rem;
  color: var(--muted);
}

.welcome-message {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfbfb;
  font-size: 1.02rem;
  color: var(--text);
}

/* ===============================
   PAR-Q
   =============================== */
.parq-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.parq-progress {
  color: var(--muted);
  font-size: 1rem;
}

.parq-step.hidden {
  display: none;
}

.parq-actions {
  margin: 1.2rem 0;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.parq-question {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 1rem 0 1.25rem;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fbfbfb;
}

.yesno-row {
  display: flex;
  gap: 1rem;
}

.choice-pill {
  flex: 1;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}

.choice-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #d9d9de;
}

.choice-pill:active {
  transform: scale(0.98);
}

.parq-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

/* Forms grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0;
}

/* Unified single-field input — meals and any standalone inputs */
.kiosk-input {
  padding: var(--input-padding);
  font-size: var(--input-font-size);
  font-family: inherit;
  border-radius: var(--input-radius);
  border: 1.5px solid var(--input-border);
  outline: none;
  background: var(--input-bg);
  color: var(--input-color);
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}

.kiosk-input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

.checkline {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--text);
}

#scroll-terms-bottom {
  align-self: center;
  margin-bottom: 0.75rem;
}


/* ===============================
   Processing Overlay
   =============================== */
.processing-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2000;
}

.processing-overlay.hidden {
  display: none;
}

.processing-box {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: #111;
  animation: spin .8s linear infinite;
}

.processing-text {
  font-size: 1.05rem;
  color: var(--text);
}

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

/* ===============================
   Modal
   =============================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2500;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 760px;
  width: min(760px, 92vw);
  max-height: 82vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal-scroll {
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.55;
  background: #fbfbfb;
}

/* Terms & Conditions scroll area */
.terms-scroll {
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  margin: 1rem 0;
  flex: 1;
  min-height: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fbfbfb;
}

/* Ensure the terms modal content is a flex column so terms-scroll can flex: 1 */
.terms-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 82vh;
}

/* ===============================
   Responsive
   =============================== */
@media (max-width: 860px) {
  .fullwidth-wrap {
    padding: 2rem 1.25rem;
  }

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

  .button-row {
    flex-direction: column;
  }
}

/* Put idle screen above everything (including the Back button) */
#idle-screen.active {
  position: relative;
  z-index: 5000;
}

/* ✅ Simple completion screen */
.completion-simple{
  text-align: center;
  padding: 3rem 3rem;
}

.completion-icon{
  width: 82px;
  height: 82px;
  border-radius: 22px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  border: 1px solid var(--border);
  background: #fbfbfb;
  box-shadow: var(--shadow-soft);
}

.completion-heading{
  margin: 0 0 0.75rem;
  font-size: 3rem;
  letter-spacing: -0.02em;
}

.completion-greeting{
  margin: 0 0 1.1rem;
  font-size: 1.6rem;
  font-weight: 800;
}

.completion-text{
  margin: 0 0 2rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text);
}

/* ===== Completion screen layout fixes ===== */

/* Adjust this to match your logo/header height */
:root { --logo-offset: 260px; }

/* Make completion screen centered vertically, but not under the logo */
#completion-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;

  /* Full viewport height minus logo area */
  min-height: calc(100vh - var(--logo-offset));
  padding-top: var(--logo-offset);
  box-sizing: border-box;
}

/* Make the card properly wide */
#completion-screen .completion-simple {
  width: min(1100px, calc(100vw - 80px)); /* full-ish width with side margins */
  margin: 0 auto;
}

:root { --logo-offset: 260px; } /* tweak if needed */

#completion-screen.active{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: calc(100vh - var(--logo-offset));
  padding-top: var(--logo-offset);
  box-sizing: border-box;
}

#completion-screen .completion-simple{
  width: min(1100px, calc(100vw - 80px));
  margin: 0 auto;
}



/* ===============================
   Home Screen — Two-section layout
   =============================== */

#client-type-screen.active {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

#daypass-choice-screen.active {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

/* ── New home tile layout ──────────────────────────── */
/* ── Home tiles — uniform 3-tile layout ──────────────── */
.home-tiles {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding-top: var(--logo-offset, 270px);
  box-sizing: border-box;
  gap: 0;
}

.home-tiles-sub {
  padding-top: var(--logo-offset, 270px);
}

.daypass-sub-header {
  text-align: center;
  padding: 1.5rem 2rem 1rem;
  flex-shrink: 0;
}

.daypass-sub-header h1 {
  margin: 0 0 0.3rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-tile {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 3rem;
  border: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, transform 0.1s;
  position: relative;
}

.home-tile:first-of-type { border-top: none; }

.home-tile:active {
  background: #ede7f5;
  transform: scaleX(0.995);
}

.home-tile-icon {
  font-size: 2.6rem;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #ede7f5;
}

.home-tile-content { flex: 1; }

.home-tile-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.home-tile-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.home-tile-arrow {
  font-size: 1.6rem;
  color: #754e9d;
  flex-shrink: 0;
  transition: transform 0.15s;
  font-weight: 700;
}

.home-tile:active .home-tile-arrow { transform: translateX(5px); }

/* Coloured left accent bar per tile */
.home-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background 0.15s;
}

.home-tile-daypass::before   { background: #5b9bd5; }
.home-tile-membership::before { background: #754e9d; }
.home-tile-meals::before     { background: #4caf50; }

/* Icon background colours per tile */
.home-tile-daypass   .home-tile-icon { background: #e8f2fc; }
.home-tile-membership .home-tile-icon { background: #ede7f5; }
.home-tile-meals     .home-tile-icon { background: #e8f7ee; }

/* Sub-screen tiles */
.home-tile-returning .home-tile-icon { background: #e8f4ff; }
.home-tile-new       .home-tile-icon { background: #fff8e8; }

/* Keep old .choice-icon for any remnant use */
.choice-icon {
  font-size: 2.4rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}



/* ═══════════════════════════════════════════════════════
   MEMBERSHIP FLOW
   ═══════════════════════════════════════════════════════ */

/* ── Shared spinner ───────────────────────────────────── */
.membership-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  pointer-events: none;
}

/* ── Plan selection ───────────────────────────────────── */
.plan-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.plan-card {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2rem;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-card:hover, .plan-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #111;
}

.plan-card:active { transform: scale(0.98); }

.plan-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-interval {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.4rem;
}

.plan-loading, .plan-empty {
  width: 100%;
  text-align: center;
  color: var(--muted);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}

/* ── Details form ─────────────────────────────────────── */
.membership-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.membership-form-grid label {
  display: flex;
  flex-direction: column;
  gap: var(--label-gap);
  font-size: var(--label-font-size);
  font-weight: var(--label-font-weight);
  color: var(--label-color);
  text-transform: var(--label-transform);
  letter-spacing: var(--label-spacing);
}

.membership-form-grid input {
  font-size: var(--input-font-size);
  font-family: inherit;
  padding: var(--input-padding);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  background: var(--input-bg);
  color: var(--input-color);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.membership-form-grid input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--input-shadow-focus);
}

/* ── Password show/hide toggle ────────────────────────── */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  flex: 1;
  padding-right: 3rem; /* room for the toggle button */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: opacity 0.15s;
  box-shadow: none;
  opacity: 0.6;
}

.password-toggle:hover  { opacity: 1; }
.password-toggle:active { transform: scale(0.92); }

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.mb-error {
  color: #c0392b;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fdf0ef;
  border-radius: 8px;
  border: 1px solid #f5c6c2;
}

.mb-error.hidden { display: none; }

.mb-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
}

/* ── Camera / photo ───────────────────────────────────── */
.photo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.camera-wrap {
  position: relative;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  flex-shrink: 0;
  cursor: pointer;
}

#camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-preview-wrap {
  position: absolute;
  inset: 0;
}

.photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-wrap.hidden { display: none; }

.photo-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ── Review card ──────────────────────────────────────── */
.review-card {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.review-photo-col {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
}

.review-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}

.review-no-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e0e0e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.review-details-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.review-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.review-row:last-child { border-bottom: none; padding-bottom: 0; }

.review-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 110px;
  flex-shrink: 0;
}

.review-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* ── Large confirm button ─────────────────────────────── */
.primary-button-large {
  font-size: 1.3rem !important;
  padding: 1.1rem 2.5rem !important;
  min-width: 280px;
}

/* ── Membership screens layout ───────────────────────── */
#membership-plan-screen.active,
#membership-details-screen.active,
#membership-photo-screen.active,
#membership-review-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#membership-success-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ═══════════════════════════════════════════
   SECTION 3 — MEAL PRE-ORDERING
   ═══════════════════════════════════════════ */

/* Home screen meal button */
.choice-card-meal {
  border-left: 4px solid #4caf50;
}

/* ── Menu screen layout ─────────────────── */
.meal-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: var(--logo-offset, 270px);
  box-sizing: border-box;
  overflow: hidden;
}

.meal-menu-header {
  text-align: center;
  padding: 1.25rem 2rem 1rem;
  flex-shrink: 0;
}

.meal-menu-header h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.meal-menu-header .subtitle {
  margin: 0;
}

.meal-menu-grid {
  flex: 1;
  overflow-y: auto;
  padding: 0 2rem 120px;
}

.meal-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  margin: 3rem auto;
}
.meal-spinner.hidden { display: none; }

.meal-error {
  color: #c0392b;
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
}

.meal-category-header {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 1.4rem 0 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.8rem;
}

.meal-items-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ── Meal card ──────────────────────────── */
.meal-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.meal-card:active {
  transform: scale(0.97);
}

.meal-card-in-cart {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.meal-card-unavailable {
  opacity: 0.5;
}

.meal-card-unavailable .meal-qty-control {
  pointer-events: none;
}

.meal-card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.meal-card-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #f0f0f0;
  height: 150px;
}

.meal-card-body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}

.meal-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.meal-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.meal-card-price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.meal-card-price {
  font-weight: 700;
  font-size: 1.05rem;
}

.meal-card-was {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
}

.meal-sale-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: #e74c3c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.meal-unavailable-tag {
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 0.25rem;
}

/* ── Qty controls ───────────────────────── */
.meal-qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.meal-qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.meal-qty-btn:active { background: var(--border); }

.meal-qty-val {
  font-size: 1rem;
  font-weight: 700;
  min-width: 1.6rem;
  text-align: center;
}

/* ── Cart bar ───────────────────────────── */
.meal-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Left padding clears the back button (22px offset + ~110px button width + gap) */
  padding: 1rem 2rem 1rem 150px;
  z-index: 1200;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.meal-cart-bar.hidden { display: none; }

.cart-bar-info {
  font-size: 1rem;
}

.cart-bar-btn {
  background: #fff;
  color: var(--text);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cart-bar-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Slot selection ─────────────────────── */
.meal-slot-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.slot-day-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slot-day-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.slot-row {
  display: flex;
  gap: 1rem;
}

.slot-btn {
  flex: 1;
  padding: 1.1rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  text-align: left;
}

.slot-btn-selected {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(15,15,16,0.12);
}

.slot-btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-icon { font-size: 1.5rem; }
.slot-label { font-weight: 600; font-size: 0.95rem; }
.slot-note  { font-size: 0.72rem; color: var(--muted); }

/* ── Recurring section ──────────────────── */
.meal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.meal-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.meal-label {
  font-size: var(--label-font-size);
  font-weight: var(--label-font-weight);
  text-transform: var(--label-transform);
  letter-spacing: var(--label-spacing);
  color: var(--label-color);
}

.meal-recurring-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.meal-recurring-toggle.toggle-on {
  border-color: #4caf50;
  background: rgba(76,175,80,0.08);
}

.meal-recurring-options {
  margin-top: 1rem;
}
.meal-recurring-options.hidden { display: none; }

.day-toggle-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.day-toggle {
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.day-toggle-on {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.meal-recurring-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* ── Review screen ──────────────────────── */
.meal-review-items {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.review-item-name { flex: 1; }
.review-item-qty  { color: var(--muted); }
.review-item-price { font-weight: 700; min-width: 4rem; text-align: right; }

.meal-review-totals {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.review-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.review-fee-row {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-grand-total {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 2px solid var(--text);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.meal-recurring-badge {
  background: rgba(76,175,80,0.1);
  border: 1px solid #4caf50;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0.75rem;
}
.meal-recurring-badge.hidden { display: none; }

/* ── Review field rows ──────────────────── */
.review-section {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.review-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  min-width: 90px;
}

.review-value {
  font-size: 0.95rem;
}

/* ── Success screen ─────────────────────── */
.meal-sub-note {
  background: rgba(76,175,80,0.1);
  border: 1px solid #4caf50;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #2e7d32;
  margin: 0.5rem 0;
}
.meal-sub-note.hidden { display: none; }

/* ── Screen active states ───────────────── */
#meal-menu-screen.active {
  display: flex;
  flex-direction: column;
}

#meal-success-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slot + checkout — full-height column, no centering */
#meal-slot-screen.active,
#meal-review-screen.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

/* ═══════════════════════════════════════════
   MEAL — PRODUCT INFO BUTTON & CARD UPDATES
   ═══════════════════════════════════════════ */

.meal-card-img-wrap {
  position: relative;
}

.meal-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #4caf50;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.meal-card-badge.hidden { display: none; }

.meal-card-addons-tag {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.meal-info-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.meal-info-btn:active { background: rgba(0,0,0,0.8); }

.meal-card-cal {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: auto;
}

/* ═══════════════════════════════════════════
   MEAL — SLOT SCREEN UPDATES (7-day)
   ═══════════════════════════════════════════ */

.meal-slot-options {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 4px;
}

.slot-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slot-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-sub {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.slot-locked {
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: auto;
  font-style: italic;
}

/* ═══════════════════════════════════════════
   MEAL — PRODUCT DETAIL MODAL
   ═══════════════════════════════════════════ */

.meal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.meal-modal-backdrop.hidden { display: none; }

.meal-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  z-index: 6001;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6010;
  transition: background 0.15s;
}
.modal-close-btn:active { background: rgba(0,0,0,0.18); }

.modal-product-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.modal-product-name {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  flex: 1;
}

.modal-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.modal-product-price {
  font-size: 1.3rem;
  font-weight: 800;
}

.modal-sale-tag {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}

.modal-product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1rem;
}

.modal-section {
  margin-top: 1.1rem;
}

.modal-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.modal-section-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}

.modal-allergens-text {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
}

/* Nutrition table */
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.nutrition-table tr {
  border-bottom: 1px solid var(--border);
}
.nutrition-table tr:last-child { border-bottom: none; }

.nutrition-label {
  padding: 0.4rem 0;
  color: var(--muted);
}

.nutrition-value {
  padding: 0.4rem 0;
  font-weight: 700;
  text-align: right;
}

/* Modal qty row */
/* modal qty/add — see modal-footer block below */

/* ═══════════════════════════════════════════
   MEAL — ADDON CARDS
   ═══════════════════════════════════════════ */

.modal-addons-section {
  margin-top: 1.25rem;
}

.modal-addons-grid {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Addon row — checkbox style ─────────── */
.addon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.addon-card:last-child { border-bottom: none; }
.addon-card:active     { background: #f9f9f9; }

.addon-card-unavailable {
  opacity: 0.4;
  pointer-events: none;
}

/* Custom checkbox circle */
.addon-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.85rem;
  color: transparent;
}

.addon-card-selected .addon-check {
  border-color: #4caf50;
  background: #4caf50;
  color: #fff;
}

/* Name + price */
.addon-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.addon-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.addon-card-selected .addon-price {
  color: #4caf50;
}

/* Hide old image/qty elements — not used in new layout */
.addon-img, .addon-no-img, .addon-body,
.addon-name, .addon-qty-row,
.addon-minus, .addon-plus, .addon-qty-val { display: none; }

/* ═══════════════════════════════════════════
   MEAL — MODAL FOOTER (qty + add to order)
   ═══════════════════════════════════════════ */

/* modal footer — see override block at end of file */

/* Review screen addon lines */
.review-addon-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 1rem;
  margin-top: -0.1rem;
  margin-bottom: 0.25rem;
}
.review-addon-line span {
  font-weight: 600;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════
   MEMBERSHIP — PAR-Q SCREEN
   ═══════════════════════════════════════════════════════ */

#membership-parq-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mb-parq-staff-notice {
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.mb-parq-staff-notice p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.mb-parq-staff-notice.hidden { display: none; }

/* ═══════════════════════════════════════════════════════
   MEMBERSHIP — PAYMENT SCREEN
   ═══════════════════════════════════════════════════════ */

#membership-payment-screen.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100vh;
}

.membership-payment-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding-top: var(--logo-offset, 270px);
  box-sizing: border-box;
}

.membership-payment-header {
  text-align: center;
  padding: 1.25rem 2rem 1rem;
  flex-shrink: 0;
}

.membership-payment-header h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.membership-payment-body {
  flex: 1;
  min-height: 0;
  position: relative;
  border-top: 1px solid var(--border);
}

/* Loading state */
.mb-payment-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg);
  font-size: 1rem;
  color: var(--muted);
}

/* Error state */
.mb-payment-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg);
}

.mb-payment-error p {
  color: #c0392b;
  font-size: 1rem;
  font-weight: 600;
  max-width: 480px;
}

.mb-payment-error.hidden { display: none; }

/* Success state */
.mb-payment-success-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--bg);
  text-align: center;
}

.mb-payment-success-state > div {
  font-size: 4rem;
  color: #4caf50;
}

.mb-payment-success-state p {
  font-size: 1.2rem;
  color: var(--text);
  margin: 0;
}

.mb-payment-success-state.hidden { display: none; }

/* Important — domain auth notice banner */
.mb-payment-domain-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  color: #7c5c00;
  text-align: center;
  margin: 0 2rem 1rem;
  flex-shrink: 0;
}

/* ── Payment pending / 3DS state ─────────────────────── */
.mb-payment-pending {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: var(--bg);
  text-align: center;
  padding: 2rem;
}

.mb-payment-pending > div { font-size: 4rem; }

.mb-payment-pending p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  max-width: 480px;
}

.mb-payment-pending p:first-of-type { font-size: 1.2rem; }

.mb-payment-pending.hidden { display: none; }

/* ── Payment iframe escape hatch ─────────────────────── */
.mb-payment-escape {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mb-payment-escape.hidden { display: none; }

/* ── Payment cancel button — red text, no background ─── */
.mb-payment-cancel-btn {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  text-decoration: underline;
  box-shadow: none;
}

.mb-payment-cancel-btn:hover  { color: #922b21; }
.mb-payment-cancel-btn:active { transform: scale(0.97); }

/* ═══════════════════════════════════════════════════════
   KIOSK OPTIMISATION — 1080×1920 portrait touchscreen
   ═══════════════════════════════════════════════════════ */

/* Base font scale — larger for easy reading at kiosk distance */
@media (min-width: 1000px) and (min-height: 1600px) {
  html { font-size: 18px; }

  /* Bigger touch targets on buttons */
  .primary-button,
  .secondary-button {
    padding: 1.1rem 2rem;
    font-size: 1.15rem;
    min-height: 58px;
  }

  .primary-button-large {
    padding: 1.3rem 3rem;
    font-size: 1.3rem;
    min-height: 68px;
  }

  /* Scale up input tokens for kiosk */
  :root {
    --input-padding:    1rem 1.15rem;
    --input-font-size:  1.25rem;
    --label-font-size:  1rem;
  }

  /* Unified input min-height across all form types */
  .membership-form-grid input,
  .form-grid input,
  .kiosk-input {
    min-height: 58px;
  }

  /* Form grid — more vertical gap for fat-finger friendliness */
  .membership-form-grid { gap: 1.5rem 2.5rem; }
  .form-grid            { gap: 1.5rem; }

  /* Plan cards — taller for easier tap */
  .plan-card { padding: 3rem 2.5rem; min-height: 260px; }

  /* PAR-Q question text — bigger */
  .parq-question { font-size: 1.4rem; line-height: 1.5; }

  /* Yes/No choice pills — much bigger tap target */
  .choice-pill {
    font-size: 1.4rem;
    padding: 1.2rem 3rem;
    min-width: 180px;
  }

  /* Camera wrap — bigger on tall screen */
  .camera-wrap { width: 460px; height: 460px; }

  /* kiosk-back button — bigger */
  .kiosk-back { padding: 1rem 1.6rem; font-size: 1.1rem; }
}

/* ── Password fields side by side ─────────────────────── */
.password-row {
  grid-column: 1 / -1; /* span full grid width */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

/* ═══════════════════════════════════════════════════════
   MEAL — MEMBER DISCOUNT BANNER (menu screen)
   ═══════════════════════════════════════════════════════ */

.member-discount-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1.5px solid #66bb6a;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  margin-top: 0.85rem;
  text-align: left;
}

.member-discount-badge {
  flex-shrink: 0;
  background: #2e7d32;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.member-discount-text {
  font-size: 0.85rem;
  color: #1b5e20;
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════
   MEAL — McDONALD'S-STYLE CHECKOUT SCREEN
   ═══════════════════════════════════════════════════════ */

/* Full-height flex column — no card wrapper */
.checkout-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
  overflow: hidden;
}

/* ── Top bar ─────────────────────────────────── */
.checkout-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0f0f10;
  color: #fff;
  padding: 1.1rem 1.5rem;
  flex-shrink: 0;
}

.checkout-back-btn {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.checkout-back-btn:active { background: rgba(255,255,255,0.22); }

.checkout-header-title {
  font-size: 1.4rem;
  font-weight: 800;
  flex: 1;
  letter-spacing: -0.02em;
}

.checkout-slot-chip {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
}

/* ── Scrollable body ─────────────────────────── */
.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}

/* ── Sections ────────────────────────────────── */
.checkout-section {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.checkout-section:last-child { border-bottom: none; }

.checkout-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* ── Items ───────────────────────────────────── */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkout-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.checkout-item-left {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
}

.checkout-item-qty {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: #0f0f10;
  min-width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 5px;
}

.checkout-item-name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-item-price {
  font-size: 0.98rem;
  font-weight: 700;
  min-width: 4.5rem;
  text-align: right;
  flex-shrink: 0;
}

.checkout-addon-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 2.25rem;
  margin-top: -0.2rem;
}
.checkout-addon-line span:last-child { font-weight: 600; color: var(--text); }

/* ── Customer detail fields ──────────────────── */
.checkout-field-row {
  margin-bottom: 0.75rem;
}

.checkout-email-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.checkout-email-row .checkout-input { flex: 1; }

.checkout-input {
  width: 100%;
  padding: var(--input-padding, 0.75rem 1rem);
  font-size: var(--input-font-size, 1rem);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
  transition: border-color 0.18s;
  outline: none;
  font-family: inherit;
}
.checkout-input:focus { border-color: var(--text); }

.co-check-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  background: #0f0f10;
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: inherit;
}
.co-check-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.co-check-btn:active   { opacity: 0.8; }

/* ── Member status pill ──────────────────────── */
.co-member-status {
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.4rem;
}
.co-member-status.hidden { display: none; }

.co-member-status--loading {
  background: #f5f5f5;
  color: var(--muted);
}
.co-member-status--success {
  background: #e8f5e9;
  border: 1.5px solid #66bb6a;
  color: #1b5e20;
}
.co-member-status--info {
  background: #e3f2fd;
  border: 1.5px solid #64b5f6;
  color: #0d47a1;
}
.co-member-status--none {
  background: #f5f5f5;
  border: 1.5px solid var(--border);
  color: var(--muted);
}
.co-member-status--error {
  background: #ffebee;
  border: 1.5px solid #ef9a9a;
  color: #b71c1c;
}

/* ── Totals breakdown ────────────────────────── */
.checkout-totals-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.checkout-discount-row {
  color: #2e7d32;
  font-weight: 700;
}
.checkout-discount-row.hidden { display: none; }

.checkout-fee-row {
  font-size: 0.82rem;
  color: var(--muted);
}

.checkout-grand-total {
  font-size: 1.25rem;
  font-weight: 900;
  border-top: 2px solid #0f0f10;
  padding-top: 0.6rem;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

/* ── Sticky pay button ───────────────────────── */
.checkout-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
}

.checkout-pay-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: #0f0f10;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: -0.01em;
}
.checkout-pay-btn:active  { opacity: 0.88; transform: scale(0.99); }
.checkout-pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.checkout-pay-label  { flex: 1; text-align: left; }
.checkout-pay-amount {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
}





/* ═══════════════════════════════════════════════════════
   MEAL — CLEAN OVERRIDES v2
   ═══════════════════════════════════════════════════════ */

/* ── Accent: #754e9d on all meal action elements ──── */
.meal-cart-bar             { background: #754e9d; }
.cart-bar-btn              { color: #754e9d; }
.checkout-pay-btn          { background: #754e9d; }
.checkout-item-qty         { background: #754e9d; }
.co-check-btn              { background: #754e9d; }

/* ── Product card — truncate description to ~2 lines ── */
.meal-card-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Modal footer — qty + add button on one line ──── */
.modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.modal-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.modal-qty-stepper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #f5f5f5;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.1s;
}
.modal-qty-stepper:active { background: var(--border); }
.modal-qty-display {
  font-size: 1.2rem;
  font-weight: 800;
  min-width: 2rem;
  text-align: center;
}
.modal-add-to-order-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: #754e9d;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  gap: 0.5rem;
  min-height: 50px;
  font-family: inherit;
  transition: opacity 0.15s;
}
.modal-add-to-order-btn:active { opacity: 0.85; }
.modal-add-price {
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.85;
}

/* ── Slot screen — full height, respects logo ──────── */
.slot-fullscreen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding-top: var(--logo-offset, 270px);
  box-sizing: border-box;
  overflow: hidden;
}
.slot-fullscreen-header {
  text-align: center;
  padding: 1rem 2rem 0.75rem;
  flex-shrink: 0;
}
.slot-fullscreen-header .section-heading {
  margin: 0 0 0.25rem;
}
.slot-fullscreen-header .subtitle {
  margin: 0;
}
.meal-slot-options-full {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.meal-slot-options-full .slot-day-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.meal-slot-options-full .slot-day-label {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.meal-slot-options-full .slot-row {
  display: flex;
  gap: 0.75rem;
}
.meal-slot-options-full .slot-btn {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  font-family: inherit;
}
.meal-slot-options-full .slot-btn:active {
  background: #f3edf9;
  border-color: #754e9d;
}
.meal-slot-options-full .slot-btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Checkout wrap — consistent with other full-height screens ── */
.checkout-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding-top: var(--logo-offset, 270px);
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg);
}
.checkout-header-clean {
  text-align: center;
  padding: 1rem 2rem 0.75rem;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.checkout-header-clean .section-heading {
  margin: 0 0 0.2rem;
}
.checkout-header-clean .subtitle {
  margin: 0;
  font-size: 0.88rem;
}
.checkout-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem 1rem;
}
.checkout-footer {
  flex-shrink: 0;
  padding: 0.85rem 1.5rem 1.1rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}


/* ── Modal — authoritative definitions ───────────────────
   These override everything above. Single source of truth.  */

/* Make modal wider on kiosk screen */
.meal-modal {
  max-width: 680px;
  width: calc(100vw - 3rem);
}

/* Footer row: stepper LEFT, button RIGHT, same line */
.modal-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.modal-qty-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.modal-qty-stepper,
.modal-qty-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border) !important;
  background: #f5f5f5 !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: var(--text) !important;
  padding: 0 !important;
  transition: background 0.1s !important;
  font-family: inherit !important;
}
.modal-qty-stepper:active,
.modal-qty-btn:active { background: #e0e0e0 !important; }

.modal-qty-display,
.modal-qty-val {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  min-width: 2.2rem !important;
  text-align: center !important;
}
.modal-add-to-order-btn,
.modal-add-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.9rem 1.25rem !important;
  background: #754e9d !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  gap: 0.5rem !important;
  min-height: 52px !important;
  font-family: inherit !important;
  transition: opacity 0.15s !important;
  white-space: nowrap !important;
}
.modal-add-to-order-btn:active,
.modal-add-btn:active { opacity: 0.85 !important; }
.modal-add-price {
  font-size: 1rem !important;
  font-weight: 800 !important;
  opacity: 0.85 !important;
}

/* Checkout — remove dead space, content hugs totals */
.checkout-body {
  flex: 0 1 auto;
  overflow-y: auto;
  padding: 0 1.5rem 1rem;
}

