/* ═══════════════════════════════════════════════════════
   ส่งไว | 快送  —  Yellow-Theme Mini App
   ═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:      #FFCC00;
  --yellow-dk:   #E6B800;
  --yellow-lt:   #FFF7CC;
  --yellow-mid:  #FFE066;
  --bg:          #F5F5F5;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --text-muted:  #888;
  --border:      #EBEBEB;
  --green:       #27AE60;
  --green-dk:    #1E8449;
  --red:         #E74C3C;
  --star:        #FFB800;
  --radius:      12px;
  --radius-sm:   8px;
  --header-h:    52px;
  --nav-h:       60px;
}

html, body {
  font-family: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  /* iOS-friendly: let document flow naturally + scroll natively */
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}

/* ─── App Shell ──────────────────────────────────────────────────── */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0));
}

/* ─── Header ─────────────────────────────────────────────────────── */
.app-header {
  height: var(--header-h);
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.18) 60%, transparent 100%);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header.scrolled {
  background: var(--yellow);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.app-header .header-brand { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.app-header.scrolled .header-brand { color: var(--text); text-shadow: none; }
.header-logo-wrap { display: flex; align-items: center; gap: 8px; }
.header-logo-box {
  width: 36px; height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.header-brand { font-size: 17px; font-weight: 800; color: var(--text); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-lang {
  background: var(--white);
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}
.btn-lang:active { background: var(--yellow-lt); }
.btn-menu {
  background: var(--white);
  border: none;
  border-radius: 999px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

/* ─── Main (page-level scroll instead of nested) ───────────────── */
.app-main {
  flex: 1;
  position: relative;
}

/* ─── Tab Content (no internal scroll — page scrolls instead) ── */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ════════════════════ HOME TAB ════════════════════════════════════ */

/* Hero Banner — bleeds up behind transparent app-header AND down behind the search bar */
.hero-banner {
  background:
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.55) 100%),
    url('/img/cover.jpg') center 40% / cover no-repeat;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 14px) 20px 86px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.hero-banner::after { display: none; }
.hero-text { z-index: 1; text-shadow: 0 2px 8px rgba(0,0,0,.55); }
.hero-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.hero-sub   { font-size: 13px; color: rgba(255,255,255,.92); margin-top: 4px; }
.hero-badge {
  background: var(--yellow);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
  display: inline-block;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.hero-art {
  width: 92px; height: 92px;
  border-radius: 16px;
  object-fit: cover;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.85);
}

/* House Info Banner */
.house-banner {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  margin: 12px 12px 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.house-banner .hb-icon { font-size: 28px; }
.house-banner .hb-label { font-size: 11px; color: var(--text-muted); }
.house-banner .hb-name  { font-size: 16px; font-weight: 700; }
.house-banner .hb-addr  { font-size: 12px; color: var(--text-muted); }
.house-banner.hidden { display: none; }
.hidden { display: none !important; }

/* Search Bar — floats over the bottom of the cover hero */
.search-wrap {
  padding: 10px 12px;
  flex-shrink: 0;
  margin-top: -70px;
  position: relative;
  z-index: 2;
}
.search-inner {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  padding: 0 14px;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  padding: 10px 0;
  background: transparent;
  color: var(--text);
}
.search-inner .search-icon { font-size: 18px; color: var(--text-muted); cursor: pointer; }

/* Two-column food layout — NO nested scroll. Page scrolls; sidebar sticks. */
.food-section {
  display: flex;
  align-items: flex-start;
}

.cat-sidebar {
  width: 82px;
  background: var(--bg);
  flex-shrink: 0;
  position: sticky;
  /* Stick below the app-header (52px). Adjust if header height changes. */
  top: var(--header-h, 52px);
  align-self: flex-start;
  max-height: calc(100vh - var(--header-h, 52px));
  max-height: calc(100dvh - var(--header-h, 52px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.cat-item {
  padding: 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .15s;
  line-height: 1.3;
}
.cat-item .cat-icon { font-size: 22px; display: block; margin-bottom: 3px; }
.cat-item:hover { color: var(--text); background: var(--white); }
.cat-item.active {
  color: var(--text);
  background: var(--white);
  border-left-color: var(--yellow);
  font-weight: 700;
}

.food-list {
  flex: 1;
  background: var(--white);
  /* No internal scroll — list grows naturally, page scrolls instead */
  min-width: 0;
  padding-bottom: 80px;
}

/* Food Item Card */
.food-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.food-item:last-child { border-bottom: none; }

.food-emoji-wrap {
  width: 68px; height: 68px;
  background: var(--yellow-lt);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}
.food-info { flex: 1; min-width: 0; }
.food-name   { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.food-rest   { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.food-rest-name { font-size: 12px; color: var(--text-muted); }
.stars { display: flex; gap: 1px; }
.star  { font-size: 11px; color: #ddd; }
.star.on { color: var(--star); }
.food-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.food-price { font-size: 16px; font-weight: 800; color: var(--text); }
.food-orders { font-size: 11px; color: var(--text-muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }

.qty-ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.qty-btn.minus { background: var(--bg); color: var(--text); display: none; }
.qty-btn.minus.show { display: flex; }
.qty-btn.plus  { background: var(--yellow); color: var(--text); }
.qty-btn.plus:active  { background: var(--yellow-dk); }
.qty-btn.minus:active { background: #D5D8DC; }
.qty-num { font-size: 16px; font-weight: 800; min-width: 20px; text-align: center; display: none; }
.qty-num.show { display: block; }

/* ─── Cart Bar ────────────────────────────────────────────────────── */
.cart-bar {
  background: var(--text);
  color: var(--yellow);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s;
}
.cart-bar:active { background: #333; }
.cart-bar.hidden { display: none; }
.cart-left { display: flex; align-items: center; gap: 10px; }
.cart-count-badge {
  background: var(--yellow);
  color: var(--text);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 800;
}
.cart-label { font-size: 15px; font-weight: 700; }
.cart-total { font-size: 18px; font-weight: 800; }

/* ─── Bottom Nav ──────────────────────────────────────────────────── */
.bottom-nav {
  height: var(--nav-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-shrink: 0;
}
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0;
  transition: color .12s;
  position: relative;
}
.nav-btn .nav-icon { font-size: 22px; }
.nav-btn.active { color: var(--text); }
.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}

/* ════════════════════ COMMUNITY TAB ══════════════════════════════ */
.community-header {
  background: var(--white);
  padding: 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sort-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.sort-tab {
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .12s;
}
.sort-tab.active { border-color: var(--yellow); background: var(--yellow-lt); color: var(--text); }

.search-community {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 999px;
  padding: 8px 14px;
  gap: 8px;
}
.search-community input {
  flex: 1; border: none; outline: none; background: none;
  font-size: 14px; font-family: inherit;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.review-img {
  height: 120px;
  background: var(--yellow-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
}
.review-like-badge {
  position: absolute;
  bottom: 6px; left: 6px;
  background: rgba(0,0,0,.55);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-body { padding: 10px; }
.review-menu-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.review-content   { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-author    { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.review-avatar    { width: 22px; height: 22px; background: var(--yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.review-name      { font-size: 12px; color: var(--text-muted); }
.review-stars     { margin-left: auto; }

/* Write review button */
.fab-review {
  position: fixed;
  bottom: calc(var(--nav-h) + 14px);
  right: 14px;
  background: var(--yellow);
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 150;
}
.fab-review.show { display: flex; }

/* ════════════════════ PROFILE TAB ════════════════════════════════ */
.profile-header {
  background: var(--yellow);
  padding: 20px 16px 48px;
  position: relative;
}
.profile-user { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 60px; height: 60px;
  background: var(--text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--yellow);
  flex-shrink: 0;
}
.profile-name  { font-size: 18px; font-weight: 800; }
.profile-id    { font-size: 12px; color: rgba(0,0,0,.5); }
.profile-points-pill {
  margin-left: auto;
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.profile-cards {
  padding: 0 12px;
  margin-top: -28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.pcard {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* Check-in card */
.checkin-card { padding: 16px; }
.checkin-row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.checkin-title { font-size: 15px; font-weight: 700; }
.checkin-streak { font-size: 12px; color: var(--text-muted); }
.checkin-days { display: flex; gap: 6px; margin-bottom: 14px; }
.checkin-day {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}
.checkin-day.done { background: var(--yellow); }
.btn-checkin {
  width: 100%;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-checkin:disabled { background: var(--border); color: var(--text-muted); }

/* VIP card */
.vip-card {
  background: linear-gradient(135deg, #1A1A1A 0%, #333 100%);
  color: var(--yellow);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vip-left { display: flex; align-items: center; gap: 10px; }
.vip-icon { font-size: 28px; }
.vip-title { font-size: 15px; font-weight: 800; }
.vip-sub   { font-size: 11px; color: rgba(255,204,0,.7); }
.btn-vip {
  background: var(--yellow);
  color: var(--text);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Menu list items */
.pcard-menu-item {
  display: flex;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  gap: 12px;
}
.pcard-menu-item:last-child { border-bottom: none; }
.pcard-menu-item:active { background: var(--bg); }
.pmi-icon  { font-size: 22px; }
.pmi-label { font-size: 15px; font-weight: 600; flex: 1; }
.pmi-arrow { color: var(--text-muted); font-size: 16px; }

/* Register CTA */
.register-cta {
  background: var(--yellow-lt);
  border: 2px dashed var(--yellow-dk);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 0 12px;
}
.register-cta h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.register-cta p  { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.btn-register {
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ─── Modals ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 0 24px;
  animation: slideUp .25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 16px;
}
.modal-title { font-size: 18px; font-weight: 800; padding: 0 16px 14px; border-bottom: 1px solid var(--border); }

/* Checkout Modal */
.checkout-house {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 16px;
  background: var(--yellow-lt);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.checkout-house .icon { font-size: 28px; }
.checkout-house .label { font-size: 11px; color: var(--text-muted); }
.checkout-house .name  { font-size: 16px; font-weight: 700; }

.cart-items { padding: 0 16px; }
.cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.cart-item:last-child { border-bottom: none; }
.ci-emoji { font-size: 28px; }
.ci-name  { flex: 1; font-size: 14px; font-weight: 600; }
.ci-qty   { font-size: 13px; color: var(--text-muted); }
.ci-price { font-size: 15px; font-weight: 700; }

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin: 0 16px;
}
.checkout-total-row { display: flex; flex-direction: column; gap: 4px; }
.ct-row { display: flex; justify-content: space-between; gap: 40px; font-size: 14px; }
.ct-row.grand { font-size: 17px; font-weight: 800; }
.ct-row.grand .ct-amt { color: var(--text); }

.note-area {
  margin: 12px 16px 0;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.note-area label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.note-area textarea {
  width: 100%; border: none; outline: none; background: none;
  font-size: 14px; font-family: inherit; resize: none;
}

/* Payment method selector */
.payment-methods { margin: 12px 16px 0; }
.payment-methods h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.pm-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .12s;
}
.pm-option.selected { border-color: var(--yellow); background: var(--yellow-lt); }
.pm-icon  { font-size: 26px; }
.pm-label { font-size: 14px; font-weight: 700; flex: 1; }
.pm-sub   { font-size: 12px; color: var(--text-muted); }
.pm-check { font-size: 20px; color: var(--yellow-dk); display: none; }
.pm-option.selected .pm-check { display: block; }

.promptpay-qr {
  display: none;
  text-align: center;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin: 0 16px 12px;
}
.promptpay-qr.show { display: block; }
.promptpay-qr .qr-placeholder {
  width: 160px; height: 160px;
  background: var(--white);
  border: 3px solid var(--border);
  border-radius: var(--radius);
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.promptpay-qr p { font-size: 13px; color: var(--text-muted); }
.promptpay-qr strong { font-size: 16px; color: var(--text); }

.btn-confirm-order {
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius);
  padding: 17px;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-confirm-order:active { background: var(--yellow-dk); }
.btn-confirm-order:disabled { background: var(--border); color: var(--text-muted); }

/* Review Write Modal */
.review-form { padding: 14px 16px; }
.review-form label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.review-form input,
.review-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
}
.review-form input:focus,
.review-form textarea:focus { border-color: var(--yellow); }
.rating-picker { display: flex; gap: 6px; margin-bottom: 12px; }
.rating-star { font-size: 28px; cursor: pointer; filter: grayscale(1); transition: filter .1s; }
.rating-star.active { filter: none; }
.btn-submit-review {
  width: 100%;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* Register Modal */
.register-form { padding: 14px 16px; }
.register-form label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.register-form input {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
  outline: none;
}
.register-form input:focus { border-color: var(--yellow); }
.btn-submit-reg {
  width: 100%;
  background: var(--yellow);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-skip-reg {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: inherit;
  padding: 10px;
  cursor: pointer;
  margin-top: 6px;
}

/* ─── Misc ────────────────────────────────────────────────────────── */
.spinner {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; gap: 12px; flex-direction: column;
  color: var(--text-muted); font-size: 14px;
}
.spin-dot {
  width: 40px; height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 10px; }
.empty-state p { font-size: 14px; }

.toast {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--text);
  color: var(--yellow);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 6px; font-size: 11px; font-weight: 700; margin-left: 4px; }

/* ─── ••• Dropdown Menu ────────────────────────────────────────────── */
.menu-dropdown {
  position: absolute;
  top: calc(var(--header-h) + 4px);
  right: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  min-width: 190px;
  z-index: 500;
  overflow: hidden;
  animation: fadeDown .15s ease-out;
}
.menu-dropdown.hidden { display: none; }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.menu-dd-item {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .1s;
}
.menu-dd-item:last-child { border-bottom: none; }
.menu-dd-item:active { background: var(--bg); }
.menu-dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.menu-dd-danger { color: var(--red); }

/* ─── ยอดนิยม badge on cat item ──────────────────────────────────── */
.cat-item.hot { color: var(--red); }
.cat-item.hot.active { border-left-color: var(--red); }

/* ─── Upload Area ─────────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color .15s;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-area:hover { border-color: var(--yellow); }
.upload-placeholder { font-size: 14px; color: var(--text-muted); }
.upload-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.upload-preview-video {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
}
.upload-progress {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: var(--yellow);
  border-radius: 2px;
  transition: width .3s;
}

/* ─── Review card with image ──────────────────────────────────────── */
.review-img.has-image { background: #111; }
.review-img.has-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.review-img.has-video video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── Order history list ──────────────────────────────────────────── */
.order-history-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.order-history-item:last-child { border-bottom: none; }
.ohi-icon  { font-size: 24px; }
.ohi-info  { flex: 1; }
.ohi-title { font-size: 14px; font-weight: 700; }
.ohi-sub   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ohi-amt   { font-size: 15px; font-weight: 800; color: var(--green); }
.ohi-status {
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}
.ohi-status.pending  { background: #FFF3CD; color: #856404; }
.ohi-status.done     { background: #D4EDDA; color: #155724; }

/* ════════════════════════════════════════════════════════
   Shop-first flow (v3)
   ════════════════════════════════════════════════════════ */
.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 12px 16px;
}
.shop-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .12s;
}
.shop-card:active { transform: scale(.98); }
.shop-card.shop-closed { opacity: .55; }
.shop-photo {
  width: 64px; height: 64px;
  border-radius: 12px;
  background: #FFF8E1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-photo img { width: 100%; height: 100%; object-fit: cover; }
.shop-emoji { font-size: 36px; line-height: 1; }
.shop-info { flex: 1; min-width: 0; }
.shop-name { font-size: 16px; font-weight: 800; color: #1A1A1A; }
.shop-sub  { font-size: 12px; color: #999; margin-top: 1px; }
.shop-meta { font-size: 12px; color: #666; margin-top: 4px; }
.shop-meta-row { font-size: 12px; color: #888; margin-top: 2px; }
.shop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.shop-badge.open   { background: #E8F5E9; color: #2E7D32; }
.shop-badge.closed { background: #FFEBEE; color: #C62828; }
.shop-arrow {
  font-size: 24px; color: #CCC; flex-shrink: 0;
  margin-right: 4px;
}

/* Shop detail view */
.shop-detail-bar {
  position: sticky;
  top: var(--header-h, 52px); /* sit below sticky page header */
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid #F0F0F0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  height: 44px;
}
/* Cat sidebar on shop detail must sit below BOTH header + shop-detail-bar */
#view-shop-detail .cat-sidebar { top: calc(var(--header-h, 52px) + 44px); }
.btn-back-shop {
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #1E88E5;
  cursor: pointer;
  padding: 4px 8px;
}
.sd-title {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-detail-info { padding: 10px 12px 0; }
.shop-detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.shop-info-top { flex: 1 1 auto; min-width: 0; }
.shop-hours-section.side {
  flex: 0 0 auto;
  min-width: 200px;
  margin-top: 0;
  padding-top: 0;
  padding-left: 12px;
  border-top: none;
  border-left: 1px solid #EEE;
}
@media (max-width: 480px) {
  .shop-detail-card { flex-direction: column; }
  .shop-hours-section.side {
    padding-left: 0;
    padding-top: 12px;
    margin-top: 0;
    border-left: none;
    border-top: 1px solid #EEE;
    min-width: 0;
  }
}
.shop-photo-lg {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: #FFF8E1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-photo-lg img { width: 100%; height: 100%; object-fit: cover; }
.shop-name-lg { font-size: 17px; font-weight: 800; }
.shop-sub-lg  { font-size: 12px; color: #999; margin-bottom: 4px; }

/* Geolocation share area in checkout */
.geo-area { padding: 8px 16px 0; }
.btn-geo {
  width: 100%;
  background: #E3F2FD;
  color: #1565C0;
  border: 1.5px dashed #1E88E5;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-geo:active { opacity: .8; }
.geo-status {
  display: flex; align-items: center; gap: 6px;
  background: #E8F5E9;
  color: #2E7D32;
  border: 1.5px solid #43A047;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}
.geo-status .geo-dot { color: #43A047; }
.btn-geo-clear {
  margin-left: auto;
  background: transparent; border: none; color: #C62828;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.geo-note {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1.5px solid #E5E5E5;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
}
.geo-note:focus { outline: none; border-color: #1E88E5; }

/* PromptPay slip uploader */
.slip-upload-area { margin-top: 10px; }
.slip-btn {
  display: inline-block;
  background: #fff;
  border: 1.5px dashed #1565C0;
  color: #1565C0;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.slip-btn:active { opacity: .8; }
.slip-preview {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}
.slip-preview img {
  width: 140px;
  border-radius: 8px;
  border: 1px solid #DDD;
  display: block;
}
.slip-clear {
  position: absolute;
  top: 4px; right: 4px;
  background: #E53935;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px; height: 24px;
  cursor: pointer;
  font-weight: 700;
}

/* Home view (menu browser across all shops) */
.home-view {
  display: block;
}

.home-menu-item {
  cursor: pointer;
  transition: background .12s;
}
.home-menu-item:active { background: #FAFAFA; }
.home-menu-item.shop-closed-dim { opacity: .55; }

.shop-mini-closed {
  margin-left: 6px;
  background: #FFEBEE;
  color: #C62828;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.goto-shop {
  font-size: 22px;
  color: #CCC;
  flex-shrink: 0;
  line-height: 1;
}

/* Shop weekly hours table (customer shop detail) */
.shop-hours-card {
  background: #fff;
  margin: 8px 12px 4px;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.shop-hours-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1A1A1A;
}
.hours-row-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px dashed #EEE;
  font-size: 13px;
}
.hours-row-line:last-child { border-bottom: none; }
.hours-row-line.today {
  background: #FFF8E1;
  font-weight: 700;
  margin: 0 -6px;
  padding: 5px 6px;
  border-radius: 6px;
  border-bottom: none;
}
.hours-day { color: #555; }
.hours-row-line.today .hours-day { color: #BF360C; }
.hours-time { color: #2E7D32; font-weight: 700; }
.hours-closed-text { color: #C62828; }
.hours-allday {
  background: #E8F5E9;
  color: #1B5E20;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  font-weight: 700;
}
.hours-override {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.hours-override.open   { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.hours-override.closed { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }

/* Hours merged into shop info card */
.shop-info-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-hours-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #EEE;
}
.shop-hours-section .shop-hours-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #1A1A1A;
}

/* Welcome gate modal */
.welcome-sheet {
  text-align: center;
  padding: 28px 22px 22px !important;
}
.welcome-logo {
  margin: 0 auto 8px;
}
.welcome-logo img {
  width: 96px; height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.welcome-title {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A1A;
  margin: 14px 0 4px;
}
.welcome-sub {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}
.welcome-benefits {
  background: #FFF8E1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
}
.wb-item {
  font-size: 13px;
  color: #5D4037;
  padding: 4px 0;
}
.btn-welcome-register {
  width: 100%;
  background: #FFCC00;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(255,204,0,.4);
}
.btn-welcome-register:active { transform: scale(.98); }
.btn-welcome-guest {
  width: 100%;
  background: #fff;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
}
.btn-welcome-guest:active { background: #FAFAFA; }
.welcome-foot {
  font-size: 11px;
  color: #AAA;
  margin-top: 12px;
}

/* Lang toggle in welcome modal */
.welcome-sheet {
  position: relative;
}
.btn-welcome-lang {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  border: 1.5px solid #E0E0E0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
  z-index: 1;
}
.btn-welcome-lang:active { background: #F5F5F5; }

/* OTP / 2-step register */
.otp-info {
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  color: #0D47A1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}
.otp-dev-hint {
  background: #FFF3E0;
  border: 1px dashed #F57C00;
  color: #BF360C;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
  text-align: center;
}
.btn-link {
  background: none;
  border: none;
  color: #1565C0;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 6px;
  width: 100%;
  margin-top: 4px;
}
.btn-link:hover { text-decoration: underline; }

/* Guest contact phone field in checkout */
.contact-area {
  padding: 12px 16px 0;
}
.contact-area label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
}
.contact-area .required {
  color: #E74C3C;
  font-size: 14px;
}
.contact-area input[type="tel"] {
  width: 100%;
  border: 1.5px solid #E0E0E0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
}
.contact-area input[type="tel"]:focus {
  outline: none;
  border-color: #FFCC00;
}
.contact-area .contact-hint {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ═════════════════════════════════════════════════════════════════════
   Modern UI v2 — glassmorphism · neumorphism · 3D depth · gradients
   ═════════════════════════════════════════════════════════════════════ */

/* All emoji get a soft 3D drop-shadow → makes flat emoji feel raised */
.cat-icon,
.menu-dd-item,
.pmi-icon,
.hb-icon,
.nav-icon,
.shop-emoji,
.food-emoji-wrap,
.profile-avatar {
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .18));
}

/* ── Category sidebar — translucent glass rail ─────────────────────── */
.cat-sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.78) 0%, rgba(255,251,235,.74) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-right: 1px solid rgba(0,0,0,.04);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.5);
}
.cat-item {
  border-radius: 14px;
  margin: 4px 6px;
  border-left: none !important;
  padding: 12px 6px;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.cat-item:hover { background: rgba(255,255,255,.6); }
.cat-item.active {
  background: linear-gradient(180deg, #FFE680 0%, var(--yellow) 100%);
  color: var(--text);
  font-weight: 800;
  box-shadow:
    0 6px 16px rgba(255, 200, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -3px 6px rgba(0, 0, 0, .06);
  transform: scale(1.03);
}
.cat-item.hot.active {
  background: linear-gradient(180deg, #FFB199 0%, var(--red) 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(231, 76, 60, .45), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ── Food cards — elevated white cards with rich emoji wrap ────────── */
.food-item {
  border-bottom: none;
  margin: 8px 12px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .035),
    0 8px 22px rgba(0, 0, 0, .055);
  transition: transform .18s ease, box-shadow .18s ease;
}
.food-item:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.food-emoji-wrap {
  background: linear-gradient(135deg, #FFF6CC 0%, #FFE680 100%);
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, .07),
    inset 0 2px 4px rgba(255, 255, 255, .7),
    0 4px 14px rgba(255, 200, 0, .25);
  filter: none;  /* container; emoji inside already has drop-shadow */
}
.food-emoji-wrap > * { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }

/* ── House banner — neumorphism card ───────────────────────────────── */
.house-banner {
  background: linear-gradient(135deg, #FFFEF7 0%, #FFFAE5 100%);
  border-left: none;
  border-radius: 18px;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, .06),
    inset 0 1px 0 rgba(255, 255, 255, .85);
}

/* ── Cart bar — gradient + glow lift ───────────────────────────────── */
.cart-bar {
  background: linear-gradient(135deg, #1c1c1c 0%, #2d2d2d 100%);
  border-radius: 18px;
  margin: 0 12px 12px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

/* ── Modal sheets — frosted glass ──────────────────────────────────── */
.modal-sheet {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .18);
}

/* ── Primary CTAs — gradient + glow ────────────────────────────────── */
.btn-confirm-order,
.btn-submit-review,
.btn-submit-reg,
.btn-checkin,
.btn-welcome-register,
.btn-register {
  background: linear-gradient(135deg, #FFE066 0%, var(--yellow) 50%, #FFC107 100%) !important;
  color: var(--text);
  box-shadow:
    0 6px 18px rgba(255, 193, 7, .45),
    inset 0 1px 0 rgba(255, 255, 255, .65);
  border-radius: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-confirm-order:active,
.btn-submit-review:active,
.btn-submit-reg:active,
.btn-checkin:active,
.btn-welcome-register:active,
.btn-register:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(255, 193, 7, .35);
}

/* ── Qty buttons — soft 3D pills ───────────────────────────────────── */
.qty-btn.plus {
  background: linear-gradient(135deg, #FFE066 0%, var(--yellow) 100%);
  box-shadow:
    0 3px 10px rgba(255, 193, 7, .5),
    inset 0 1px 0 rgba(255, 255, 255, .55);
}
.qty-btn.minus {
  background: linear-gradient(135deg, #fff 0%, #f1f1f1 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ── Profile cards & pills ─────────────────────────────────────────── */
.profile-points-pill {
  background: linear-gradient(135deg, #FFE066 0%, var(--yellow) 50%, #FFC107 100%);
  box-shadow: 0 4px 14px rgba(255, 193, 7, .45), inset 0 1px 0 rgba(255,255,255,.65);
}
.btn-vip {
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(255, 193, 7, .25), inset 0 1px 0 rgba(255,255,255,.5);
}

/* ── Shop detail card — soft elevation ─────────────────────────────── */
.shop-detail-card {
  background: linear-gradient(180deg, #fff 0%, #FFFCF0 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
  border-radius: 20px;
}

/* ── Shop grid card — lift on tap ──────────────────────────────────── */
.shop-card {
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04), 0 8px 22px rgba(0, 0, 0, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shop-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08), 0 16px 30px rgba(0, 0, 0, .08); }

/* ── Search bar — frosted pill ─────────────────────────────────────── */
.search-inner {
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .8);
}

/* ── Bottom nav — frosted floating bar ─────────────────────────────── */
.bottom-nav {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .08);
}
.nav-btn.active .nav-icon {
  filter: drop-shadow(0 3px 6px rgba(255, 193, 7, .55));
  transform: scale(1.08);
}

/* ── Dropdown menu — glass card ────────────────────────────────────── */
.menu-dropdown {
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
}

/* ── Welcome gate buttons — gradient register, neumorphic guest ────── */
.btn-welcome-guest {
  background: linear-gradient(135deg, #fff 0%, #f6f6f6 100%);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  border-radius: 16px;
}

/* ── Back button — glass pill ──────────────────────────────────────── */
.btn-back-shop {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  border-radius: 999px;
}

/* Disable depth on closed/disabled states */
.shop-card.shop-closed,
.btn-checkin:disabled,
.btn-confirm-order:disabled {
  box-shadow: none !important;
  background: var(--border) !important;
}
