/* ═══════════════════════════════════════════════
   THE BOWL TRUTH — order + admin pages (v2)
   Inherits tokens & glass primitives from styles.css
   ═══════════════════════════════════════════════ */

.app-body { min-height: 100vh; }
/* app pages now share index.html's fixed floating .nav — clear it */
.app-body .app-main { padding-top: 8rem; }
@media (max-width: 860px) { .app-body .app-main { padding-top: 7rem; } }

/* login modal: the CARD scrolls, not the page behind it */
.auth-modal { overscroll-behavior: contain; }
body.has-modal { position: fixed; left: 0; right: 0; width: 100%; }

/* ═══════════ FULL MENU PAGE ═══════════ */
.menu-intro { max-width: 560px; margin-top: 1rem; font-size: 1rem; line-height: 1.65; opacity: 0.8; }
.menu-intro__link { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.menu-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 1.6rem; }
.menu-chip {
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  padding: 0.55rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(53,85,37,0.22);
  background: rgba(255,255,255,0.55); color: var(--green-ink);
  backdrop-filter: blur(10px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.menu-chip:hover { transform: translateY(-2px); }
.menu-chip.is-active { background: var(--green-ink, #24390f); color: #fff; border-color: transparent; }

.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.4rem; margin-bottom: 3.5rem;
}
.fm-card {
  border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.35s var(--ease-out, ease), box-shadow 0.35s;
}
.fm-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(30,45,16,0.18); }
.fm-card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.fm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out, ease); }
.fm-card:hover .fm-card__img img { transform: scale(1.06); }
.fm-card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.fm-card__body h3 { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.3; }
.fm-card__body p { font-size: 0.88rem; line-height: 1.55; opacity: 0.75; flex: 1; }
.fm-card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fm-card__tags span {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(216,224,97,0.35); color: var(--green-ink);
}

.menu-cta { border-radius: 28px; padding: 2.6rem 2rem; text-align: center; margin-bottom: 3rem; }
.menu-cta h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.5rem; }
.menu-cta p { opacity: 0.75; margin-bottom: 1.4rem; }

@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .fm-card__img { aspect-ratio: 1 / 1; }
  .fm-card__body { padding: 0.85rem 0.9rem 1rem; }
  .fm-card__body h3 { font-size: 0.95rem; }
  .fm-card__body p { font-size: 0.8rem; }
}
@media (max-width: 420px) {
  .menu-grid { grid-template-columns: 1fr; }
  .fm-card__img { aspect-ratio: 4 / 3; }
}

/* small inline table actions (admin) */
.row-btns { white-space: nowrap; }
.mini-btn {
  font: inherit; font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.65rem; margin-right: 0.3rem; border-radius: 999px;
  border: 1px solid rgba(53,85,37,0.25); background: rgba(255,255,255,0.6);
  color: var(--green-ink); cursor: pointer; transition: background 0.2s, color 0.2s;
}
.mini-btn:hover { background: var(--green-ink, #24390f); color: #fff; }
.mini-btn--danger { border-color: rgba(200,60,40,0.35); color: #a33; }
.mini-btn--danger:hover { background: #a33; color: #fff; }
.auth-modal__card { max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.auth-modal__scrim { touch-action: none; }
body.has-modal { overflow: hidden; }

/* ---------- app nav ---------- */
.app-nav {
  position: sticky; top: 1rem; z-index: 900;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem 0.65rem 1.1rem;
  border-radius: 100px;
}
.app-nav__brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; color: var(--green-ink); }
.app-nav__brand img { height: 36px; }
.app-nav__right { display: flex; align-items: center; gap: 0.6rem; }
.app-nav__link { font-weight: 600; font-size: 0.9rem; color: var(--green); opacity: 0.8; padding: 0.5rem 0.9rem; border-radius: 100px; }
.app-nav__link:hover { opacity: 1; background: rgba(255,255,255,0.5); }

/* Nav links — mirrors index.html's .nav__links so every page reads the same */
.app-nav__links { display: flex; gap: 2rem; font-weight: 500; font-size: 0.95rem; position: relative; }
.app-nav__links a { position: relative; opacity: 0.75; transition: opacity 0.25s; padding: 0.3rem 0.2rem; color: var(--green-ink); }
.app-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.app-nav__links a:hover { opacity: 1; }
.app-nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.app-nav__links a.is-active { opacity: 1; font-weight: 700; }
.app-nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 860px) {
  /* same wrap-to-swipeable-strip behaviour as the marketing nav */
  .app-nav { flex-wrap: wrap; border-radius: 24px; padding: 0.55rem 0.7rem 0.5rem 0.9rem; row-gap: 0.45rem; }
  .app-nav__brand { order: 1; }
  .app-nav__right { order: 2; margin-left: auto; }
  .app-nav__links {
    order: 3; flex-basis: 100%;
    gap: 0.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 0.15rem 0.1rem 0.2rem;
    border-top: 1px solid rgba(53, 85, 37, 0.1);
  }
  .app-nav__links::-webkit-scrollbar { display: none; }
  .app-nav__links a { white-space: nowrap; font-size: 0.85rem; opacity: 0.9; padding: 0.35rem 0.7rem; }
  .app-nav__links a::after { display: none; }
}
@media (max-width: 520px) {
  .app-nav__brand span { display: none; }
  .app-nav__brand img { height: 32px; }
}

/* ---------- page shell ---------- */
.app-main { max-width: 1180px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 6rem; }
.app-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.app-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.2rem;
}
.app-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s infinite; }
.app-title { font-size: clamp(2.2rem, 5.5vw, 4rem); color: var(--green-ink); line-height: 1.02; }
.app-title .ital { color: var(--orange); }
.app-sub { margin-top: 0.8rem; font-size: 1.05rem; color: #55603c; max-width: 52ch; }

/* ---------- order layout ---------- */
.order-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem); align-items: start;
}
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }

/* dish showcase */
.dish-card { border-radius: 30px; overflow: hidden; position: relative; }
.dish-card__img { position: relative; aspect-ratio: 4/3.1; }
.dish-card__img img { width: 100%; height: 100%; object-fit: cover; }
.dish-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,28,8,0.92) 0%, rgba(18,28,8,0.4) 30%, transparent 55%);
}
.dish-card__tag {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
}
.dish-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.6rem; color: #fff; }
.dish-card__body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.dish-card__body p { color: rgba(255,255,255,0.85); font-size: 0.95rem; max-width: 44ch; }
.dish-card__chips { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.dish-chip {
  font-size: 0.75rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: 100px;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px); color: #fff;
}
.dish-chip--lime { background: rgba(216,224,97,0.92); color: var(--green-ink); border-color: transparent; }

/* slots */
.slots { margin-top: 1.2rem; border-radius: 24px; padding: 1.4rem 1.5rem; }
.slots h3 { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; opacity: 0.85; }
.slot-row { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.slot-row:last-child { margin-bottom: 0; }
.slot-row__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.92rem; }
.slot-row__name { font-weight: 600; color: var(--green-ink); }
.slot-row__left { font-family: var(--font-display); font-weight: 700; color: var(--green); }
.slot-row__left.is-low { color: var(--red); }
.slot-row__left.is-out { color: var(--red); }
.meter { height: 8px; border-radius: 100px; background: rgba(53,85,37,0.12); overflow: hidden; }
.meter__fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transition: width 0.6s var(--ease-out);
}

/* ---------- booking form ---------- */
.book { border-radius: 30px; padding: clamp(1.5rem, 3vw, 2.2rem); position: sticky; top: 6rem; }
@media (max-width: 900px) { .book { position: static; } }
.book h2 { font-size: 1.5rem; color: var(--green-ink); margin-bottom: 0.3rem; }
.book__note { font-size: 0.88rem; opacity: 0.7; margin-bottom: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 0.5rem; }
.input {
  width: 100%; padding: 0.9rem 1.1rem; border-radius: 16px;
  font-family: var(--font-body); font-size: 1rem; color: var(--green-ink);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,142,65,0.18); }
.input::placeholder { color: rgba(30,36,21,0.35); }

/* tower picker */
.towers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.tower {
  position: relative; cursor: pointer; border-radius: 18px; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.45); border: 1.5px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
}
.tower:hover { transform: translateY(-2px); }
.tower input { position: absolute; opacity: 0; pointer-events: none; }
.tower__name { display: block; font-weight: 700; color: var(--green-ink); font-size: 0.95rem; }
.tower__left { font-size: 0.78rem; color: var(--green); opacity: 0.75; }
.tower:has(input:checked) {
  border-color: var(--orange);
  background: linear-gradient(135deg, rgba(243,142,65,0.18), rgba(216,224,97,0.18));
}
.tower:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }

/* bowls stepper */
.stepper { display: flex; align-items: center; gap: 0.9rem; }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  font-size: 1.3rem; font-weight: 600; color: var(--green-ink);
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.stepper__btn:hover { transform: scale(1.08); background: var(--lime); }
.stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.stepper__val { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; min-width: 2.2ch; text-align: center; color: var(--green-ink); }

/* total */
.total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: 18px; margin: 1.4rem 0 1.2rem;
  background: linear-gradient(135deg, rgba(216,224,97,0.35), rgba(243,142,65,0.18));
  border: 1px solid rgba(255,255,255,0.8);
}
.total__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.total__val { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--green-ink); }
.btn--full { width: 100%; justify-content: center; }
.book__legal { font-size: 0.78rem; opacity: 0.6; text-align: center; margin-top: 0.9rem; line-height: 1.5; }
.form-error {
  display: none; margin-top: 0.9rem; padding: 0.8rem 1rem; border-radius: 14px;
  background: rgba(180,59,57,0.1); border: 1px solid rgba(180,59,57,0.3);
  color: var(--red); font-size: 0.88rem; font-weight: 600;
}
.form-error.is-shown { display: block; }

/* success */
.success { text-align: center; border-radius: 30px; padding: clamp(2rem, 4vw, 3rem); }
.success__tick {
  width: 78px; height: 78px; margin: 0 auto 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.2rem;
  background: linear-gradient(135deg, var(--lime), rgba(216,224,97,0.55));
  border: 1px solid rgba(255,255,255,0.9);
}
.success h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--green-ink); margin-bottom: 0.6rem; }
.success p { opacity: 0.75; max-width: 40ch; margin: 0 auto 1.6rem; }
.success__box {
  border-radius: 20px; padding: 1.3rem; margin-bottom: 1.6rem; text-align: left;
  background: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.8);
}
.success__row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.94rem; }
.success__row span:first-child { opacity: 0.65; }
.success__row span:last-child { font-weight: 700; color: var(--green-ink); }

/* closed / empty state */
.notice { border-radius: 26px; padding: clamp(1.6rem, 3vw, 2.2rem); text-align: center; }
.notice h3 { font-size: 1.35rem; color: var(--green-ink); margin-bottom: 0.5rem; }
.notice p { opacity: 0.72; }

/* ═══════════ ADMIN ═══════════ */
.admin-gate { min-height: 100vh; display: grid; place-items: center; padding: var(--pad); }
.gate-card { border-radius: 30px; padding: clamp(2rem, 4vw, 3rem); width: min(420px, 100%); text-align: center; }
.gate-card img { height: 76px; margin: 0 auto 1.4rem; }
.gate-card h1 { font-size: 1.6rem; color: var(--green-ink); margin-bottom: 0.4rem; }
.gate-card p { opacity: 0.65; font-size: 0.9rem; margin-bottom: 1.6rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.tab {
  padding: 0.7rem 1.3rem; border-radius: 100px; cursor: pointer;
  font-weight: 600; font-size: 0.92rem; color: var(--green);
  background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s;
}
.tab:hover { transform: translateY(-2px); }
.tab.is-active {
  background: linear-gradient(135deg, rgba(53,85,37,0.95), rgba(36,57,15,0.9));
  color: var(--lime); border-color: transparent;
}
.panel { display: none; }
.panel.is-active { display: block; animation: panelIn 0.45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card { border-radius: 26px; padding: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.card h2 { font-size: 1.3rem; color: var(--green-ink); margin-bottom: 0.3rem; }
.card__sub { font-size: 0.88rem; opacity: 0.65; margin-bottom: 1.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
textarea.input { resize: vertical; min-height: 90px; font-family: var(--font-body); }

.switch { display: flex; align-items: center; gap: 0.8rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 52px; height: 30px; border-radius: 100px; position: relative;
  background: rgba(53,85,37,0.18); border: 1px solid rgba(255,255,255,0.7);
  transition: background 0.3s;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--green); }
.switch input:checked + .switch__track::after { transform: translateX(22px); background: var(--lime); }
.switch__label { font-weight: 600; color: var(--green-ink); font-size: 0.95rem; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tile { border-radius: 22px; padding: 1.4rem 1.3rem; }
.tile__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.5rem; }
.tile__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.4rem); color: var(--green-ink); letter-spacing: -0.02em; }
.tile__val small { font-size: 0.55em; color: var(--green); }
.tile--accent { background: linear-gradient(135deg, rgba(216,224,97,0.55), rgba(243,142,65,0.28)); }

/* tables */
.table-wrap { overflow-x: auto; border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
th {
  text-align: left; padding: 0.85rem 1rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); opacity: 0.8;
  border-bottom: 1px solid rgba(53,85,37,0.15);
}
td { padding: 0.9rem 1rem; border-bottom: 1px solid rgba(53,85,37,0.08); color: var(--ink); }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: rgba(255,255,255,0.45); }
td strong { color: var(--green-ink); }
.pill {
  display: inline-block; padding: 0.25rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
}
.pill--paid { background: rgba(216,224,97,0.7); color: var(--green-ink); }
.pill--pending { background: rgba(243,142,65,0.25); color: #8a4a12; }
.empty { text-align: center; padding: 3rem 1rem; opacity: 0.55; }

.row-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.btn--sm { padding: 0.65rem 1.3rem; font-size: 0.88rem; }
.btn--danger { background: rgba(180,59,57,0.12); border: 1px solid rgba(180,59,57,0.3); color: var(--red); }
.btn--danger::before { background: var(--red); }
.btn--danger:hover { color: #fff; }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 200%);
  z-index: 2000; padding: 0.95rem 1.8rem; border-radius: 100px;
  font-weight: 700; color: var(--green-ink);
  background: linear-gradient(135deg, rgba(216,224,97,0.95), rgba(206,215,80,0.9));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 16px 40px rgba(53,85,37,0.25);
  transition: transform 0.5s var(--ease-out);
}
.toast.is-shown { transform: translate(-50%, 0); }

/* ═══════════ v5 — referrals + OTP ═══════════ */
.field-hint {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--orange, #F38E41);
}
.field-hint.is-ok { color: var(--green, #355525); }

.otp-row { display: flex; gap: 0.6rem; align-items: stretch; }
.otp-row .input { flex: 1; letter-spacing: 0.35em; }
.otp-row .btn { white-space: nowrap; }

.label-soft { opacity: 0.55; font-weight: 400; font-size: 0.78em; }

#newNumberBlock {
  border: 1px dashed rgba(53,85,37,0.25);
  border-radius: 18px;
  padding: 1rem 1rem 0.35rem;
  margin-bottom: 1.2rem;
  background: rgba(216,224,97,0.08);
}

.book__legal-link { color: var(--green, #355525); font-weight: 600; text-decoration: underline; }

/* refer page */
.app-main--narrow { max-width: 620px; margin-inline: auto; }
.refer-card { padding: 2.2rem; text-align: center; border-radius: 28px; }
.refer-card__hello { font-size: 1.05rem; opacity: 0.75; margin-bottom: 1rem; }
.refer-card__code {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.18em;
  color: #fff;
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  margin: 0 auto 1rem;
  display: inline-block;
}
.refer-card__stat { font-size: 0.9rem; opacity: 0.8; margin-bottom: 1.4rem; }
.refer-card__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.refer-card .refer-card__code {
  background: rgba(53,85,37,0.92);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 40px -18px rgba(53,85,37,0.6);
}
.refer-card .refer-card__code { background: #355525; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ═══════════ v6 — Bowl Pass ═══════════ */
.pass-card { margin-top: 1.2rem; padding: 1.4rem; border-radius: 22px; }
.pass-card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; }
.pass-card__head h3 { font-size: 1.05rem; }
.pass-card__price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.3rem;
  color: var(--orange, #F38E41);
}
.pass-card__sub { font-size: 0.85rem; opacity: 0.85; line-height: 1.5; margin-bottom: 0.9rem; }
#redeemField {
  border: 1px dashed rgba(243,142,65,0.45);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(243,142,65,0.07);
}
#redeemField .switch { display: flex; align-items: center; gap: 0.75rem; }
#redeemField .switch__label { font-size: 0.82rem; letter-spacing: 0.02em; text-transform: none; }
#redeemField .switch__track { flex-shrink: 0; }

/* ═══════════ v8 — pass card in form, info button, mobile nav ═══════════ */
/* nav links must never wrap ("← Back to site" was breaking onto two lines) */
.app-nav__link { white-space: nowrap; }
@media (max-width: 480px) {
  .app-nav__right { gap: 0.6rem; }
  .app-nav__link { font-size: 0.78rem; }
}

/* pass card now lives inside the booking form, just above the pay button */
#passCard {
  margin: 0.9rem 0 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(53,85,37,0.14);
  background: rgba(216,224,97,0.10);
}
#passCard .pass-card__sub { margin-bottom: 0.75rem; }

.info-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  border: 1.5px solid rgba(53,85,37,0.5);
  background: transparent;
  color: var(--green, #355525);
  font-size: 0.7rem; font-weight: 700; font-style: italic;
  font-family: "Instrument Serif", serif;
  cursor: pointer;
  vertical-align: 2px;
  margin-left: 0.35rem;
  transition: background 0.25s, color 0.25s;
}
.info-btn:hover { background: var(--green, #355525); color: #fff; }

.pass-card__info {
  font-size: 0.82rem; line-height: 1.55;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  border: 1px dashed rgba(53,85,37,0.25);
  margin-bottom: 0.8rem;
}

#redeemField { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
#redeemField .switch { flex: 1; }
#redeemField .info-btn { flex-shrink: 0; margin-left: 0; }

.muted { opacity: 0.55; }
.app-nav__brand span { white-space: nowrap; }
@media (max-width: 480px) {
  .app-nav__brand span { font-size: 0.9rem; }
  .app-nav { gap: 0.5rem; }
}

/* ═══════════ v12 — expandable order rows ═══════════ */
.row-toggle {
  background: none; border: none; padding: 0; margin-top: 2px;
  font-size: 0.74rem; font-weight: 600; color: var(--orange, #F38E41);
  cursor: pointer; text-decoration: underline;
}
.detail-row td { background: rgba(53,85,37,0.04); opacity: 0.9; }

/* ═══════════ v13 — payment mode pill + csv buttons ═══════════ */
.pill--pass { background: rgba(53,85,37,0.16); color: var(--green, #355525); }

/* ═══════════ v20 — weekly order page ═══════════ */
.app-main--order { max-width: 760px; margin-inline: auto; }

.week { display: grid; gap: 0.8rem; margin-bottom: 1.6rem; }

.day-row { border-radius: 20px; padding: 0.65rem 0.8rem; position: relative; transition: box-shadow 0.3s; }
.day-row.has-qty { box-shadow: 0 0 0 2px var(--orange, #F38E41) inset; }
.day-row.is-off { opacity: 0.55; }

.day-row__main {
  display: flex; align-items: center; gap: 0.8rem;
  width: 100%; background: none; border: 0; padding: 0;
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  /* leave room for the stepper pinned on the right */
  padding-right: 122px;
}
.day-row.is-off .day-row__main { cursor: default; padding-right: 0; }

.day-row__thumb {
  width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 6px 16px -6px rgba(53,85,37,0.45);
}
.day-row__date {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green, #355525); flex-shrink: 0; width: 84px;
}
.day-row__name { font-weight: 600; font-size: 0.95rem; flex: 1; min-width: 0; }
.day-row__name--muted { opacity: 0.55; font-weight: 500; }
.day-row__left { font-size: 0.75rem; font-weight: 600; opacity: 0.7; flex-shrink: 0; }
.day-row__left.is-low { color: var(--red, #B43B39); opacity: 1; }
.day-row__chev { font-size: 0.7rem; opacity: 0.5; transition: transform 0.3s; flex-shrink: 0; }
.day-row.is-expanded .day-row__chev { transform: rotate(180deg); }

.day-row__stepper {
  position: absolute; right: 0.8rem; top: 0.85rem;
  display: flex; align-items: center; gap: 0.45rem;
}
.day-row__stepper .stepper__btn { width: 32px; height: 32px; font-size: 1rem; }
.day-row__stepper .stepper__val { min-width: 1.4rem; text-align: center; font-weight: 700; }

.day-row__detail { padding: 0.9rem 0.2rem 0.4rem; }
.day-row__detail p { font-size: 0.88rem; opacity: 0.85; margin-bottom: 0.7rem; }
.day-row__towers { display: flex; gap: 1.1rem; margin-top: 0.7rem; flex-wrap: wrap; }
.day-row__tleft { font-size: 0.78rem; opacity: 0.75; }

.book--wide { max-width: none; }

.cart-lines { margin-bottom: 0.4rem; }
.cart-line {
  display: flex; justify-content: space-between;
  font-size: 0.85rem; padding: 0.3rem 0.2rem; opacity: 0.85;
}
.cart-line span:last-child { font-weight: 700; }

/* keep the ⓘ on the SAME line as the redeem switch */
#redeemField { display: flex; align-items: center; gap: 0.6rem; flex-wrap: nowrap; }
#redeemField .switch { flex: 1; min-width: 0; }
#redeemField .info-btn { flex-shrink: 0; margin-left: 0; }

@media (max-width: 560px) {
  .day-row__main { padding-right: 0; flex-wrap: wrap; }
  .day-row__date { width: auto; }
  .day-row__name { flex-basis: 100%; order: 5; margin-top: 0.15rem; }
  .day-row__stepper { position: static; margin-top: 0.6rem; justify-content: flex-end; }
  .day-row.is-off .day-row__main { flex-wrap: nowrap; }
  .day-row.is-off .day-row__name { flex-basis: auto; order: 0; }
}
/* chips inside day-row details sit on light glass, not a dark photo */
.day-row__detail .dish-chip {
  background: rgba(53,85,37,0.10);
  color: var(--green-ink, #22371a);
  border: 1px solid rgba(53,85,37,0.18);
}
.day-row__detail .dish-chip--lime { background: var(--lime, #D8E061); color: var(--green-ink, #22371a); }

/* ═══════════ v21 — order page ═══════════ */
.app-main--order { max-width: 1120px; }

.order-sub { font-size: 1.1rem; margin: 0 0 0.9rem; }
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.6rem; align-items: start; }
.order-left { min-width: 0; }

/* right panel */
.order-panel { position: sticky; top: 90px; padding: 1.3rem 1.3rem; border-radius: 22px; }
.order-panel h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.order-panel__note { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }
.panel-group { margin-top: 1rem; }
.panel-group__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55; }
.panel-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(53,85,37,0.08);
}
.panel-item small { opacity: 0.8; }
.panel-cancel {
  border: 1px solid rgba(180,59,57,0.4); background: transparent; color: var(--red, #B43B39);
  font-size: 0.75rem; font-weight: 600; padding: 0.28rem 0.6rem; border-radius: 999px; cursor: pointer;
  transition: background 0.25s, color 0.25s; flex-shrink: 0;
}
.panel-cancel:hover { background: var(--red, #B43B39); color: #fff; }

/* big-image row expansion */
.day-row__hero {
  width: 100%; height: clamp(180px, 34vw, 320px); object-fit: cover;
  border-radius: 16px; margin-bottom: 0.9rem;
  box-shadow: 0 18px 40px -18px rgba(53,85,37,0.5);
}
.day-row__detail h4 { font-size: 1.25rem; margin-bottom: 0.4rem; }

@media (max-width: 920px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-panel { position: static; order: -1; }
}
.pill--cancelled { background: rgba(180,59,57,0.15); color: var(--red, #B43B39); text-decoration: line-through; }
tr.is-cancelled { opacity: 0.6; }
.refer-card__names { font-weight: 600; color: var(--green, #355525); }
/* Trial Pass — make it pop */
#muPassCard { background: linear-gradient(120deg, rgba(216,224,97,0.35), rgba(243,142,65,0.22)); border: 1.5px solid var(--orange, #F38E41); box-shadow: 0 14px 34px -16px rgba(243,142,65,0.55); position: relative; }
#muPassCard::before { content: "STUDENT OFFER"; position: absolute; top: -10px; left: 14px; background: var(--orange, #F38E41); color: #fff; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; padding: 3px 9px; border-radius: 999px; }
#muPassCard .pass-card__price { font-size: 1.7rem; }

/* ═══════════════════════════════════════════════════════════
   v24 — GLOBAL LOGIN (js/auth.js)
   The modal + nav control render on every page, so these styles
   ride along with app.css (index.html loads it too).
   ═══════════════════════════════════════════════════════════ */

/* ---------- nav control: "Log in" ⇄ "Hi Name · Log out" ---------- */
.nav-auth { display: flex; align-items: center; gap: 0.5rem; }
.nav-user {
  font-size: 0.85rem; font-weight: 600; color: var(--green, #355525);
  max-width: 10ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- account strip on the order page ---------- */
.app-account {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.8rem; padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; color: var(--green, #355525);
}

/* ---------- the modal ---------- */
.auth-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.auth-modal.is-open { display: block; }
body.has-modal { overflow: hidden; }

.auth-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(30, 46, 22, 0.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.auth-modal__card {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(440px, calc(100% - 2rem));
  max-height: min(90vh, 720px); overflow-y: auto;
  padding: 1.8rem 1.6rem 1.4rem;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,0.96), rgba(250,248,241,0.94));
  box-shadow: 0 30px 80px -20px rgba(30, 46, 22, 0.5);
}
.auth-modal__x {
  position: absolute; top: 0.9rem; right: 1rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(53,85,37,0.15); background: rgba(255,255,255,0.6);
  font-size: 1.25rem; line-height: 1; color: var(--green, #355525);
  cursor: pointer; transition: background 0.25s, transform 0.25s;
}
.auth-modal__x:hover { background: #fff; transform: rotate(90deg); }

.auth-modal__head { text-align: center; margin-bottom: 1.3rem; }
.auth-modal__logo { height: 44px; width: auto; margin-bottom: 0.6rem; }
.auth-modal__head h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.35rem; }
.auth-modal__sub { font-size: 0.85rem; opacity: 0.7; line-height: 1.5; }

.auth-modal__body { display: grid; gap: 0.85rem; }
.auth-modal__body .field { margin-bottom: 0; } /* the grid gap owns the rhythm here */
.auth-modal__otp { animation: authIn 0.35s var(--ease-out, ease) both; }
.auth-modal__legal {
  margin-top: 1.2rem; padding-top: 0.9rem;
  border-top: 1px solid rgba(53,85,37,0.1);
  font-size: 0.72rem; opacity: 0.6; text-align: center;
}
@keyframes authIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .auth-modal__card { padding: 1.5rem 1.1rem 1.2rem; border-radius: 22px; }
  .auth-modal__head h2 { font-size: 1.3rem; }
  .nav-user { display: none; }  /* keep the phone nav to logo + Log out + Order */
}

/* the "why you're seeing this" line in the login modal */
.auth-modal__hint {
  margin-top: 0.7rem; padding: 0.6rem 0.9rem; border-radius: 14px;
  background: rgba(216, 224, 97, 0.25);
  border: 1px solid rgba(53, 85, 37, 0.12);
  font-size: 0.8rem; line-height: 1.45; color: var(--green, #355525);
}

/* ═══════════ admin danger-zone confirmation (v29) ═══════════ */
.danger-confirm {
  margin-top: 1.1rem; padding: 1.1rem 1.2rem; border-radius: 18px;
  background: rgba(180, 59, 57, 0.06);
  border: 1px solid rgba(180, 59, 57, 0.28);
}
.danger-confirm__warn { font-size: 0.9rem; color: var(--red, #B43B39); margin-bottom: 1rem; line-height: 1.5; }
.danger-confirm .field label code {
  background: rgba(180, 59, 57, 0.12); color: var(--red, #B43B39);
  padding: 0.1rem 0.4rem; border-radius: 6px; font-weight: 700; letter-spacing: 0.06em;
}
.danger-confirm .btn--danger:disabled { opacity: 0.4; cursor: not-allowed; }
