:root {
  --bg: #f3faf5;
  --desktop-bg: #e2f1e7;
  --surface: #ffffff;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-soft: #dcfce7;
  --text: #112217;
  --muted: #556b5d;
  --border: #d7ebd9;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(21, 128, 61, 0.08);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-top: var(--safe-top);
  padding-bottom: calc(96px + var(--safe-bottom));
}

/* Mobile-first full-bleed shell; desktop centers cleanly like a mobile viewport */
.app-shell {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 10px 12px 24px;
}

@media (min-width: 520px) {
  body {
    background: var(--desktop-bg);
    padding-top: 16px;
  }
  .app-shell {
    background: var(--bg);
    border-radius: 26px;
    box-shadow: 0 18px 48px rgba(15, 61, 33, 0.14);
    padding: 14px 16px 28px;
    border: 1px solid #cce7d4;
  }
}

.hidden {
  display: none !important;
}

button, a, input, select, textarea {
  touch-action: manipulation;
}

/* Hero */
.hero {
  background: linear-gradient(140deg, #14532d 0%, #16a34a 55%, #22c55e 100%);
  color: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emoji {
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 8px;
  flex-shrink: 0;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hub-pill {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.24);
  padding: 2px 8px;
  border-radius: 999px;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.96;
  margin-top: 2px;
  min-height: 1.4em; /* giữ chỗ để chữ đổi không làm giật layout */
}

.tagline-pain {
  display: inline-block;
  font-weight: 900;
  color: #fde047;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tagline-pain.swap {
  opacity: 0;
  transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
  .tagline-pain {
    transition: none;
  }
}

.usp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.usp-chip {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.promo-strip {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.16);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}

/* Ảnh quảng cáo trong banner xanh */
.hero {
  overflow: hidden;
}

/* ===== Maika 3D trong banner xanh ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.maika-stage {
  position: relative;
  width: 100%;
  height: clamp(260px, 44vh, 400px);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 70%);
}

.maika-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* không bắt chạm: vuốt lên Maika trên điện thoại vẫn cuộn trang bình thường */
  pointer-events: none;
}

.maika-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 7rem;
}

.maika-stage.no-maika .maika-frame {
  display: none;
}

.maika-stage.no-maika .maika-fallback {
  display: grid;
}

.maika-talk {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-ad {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Chưa có file ảnh thì hiện khung combo thay vì ô đen */
.hero-ad.ad-missing {
  min-height: 110px;
  background: linear-gradient(135deg, #fde047, #fb923c);
}

.hero-ad.ad-missing img {
  display: none !important;
}

.hero-ad.ad-missing::before {
  content: "🧋 + 🌶️  Combo Nước Trái Cây + Bánh Tráng Trộn  •  45K";
  display: block;
  padding: 22px 14px 52px;
  color: #7c2d12;
  font-weight: 900;
  font-size: 0.95rem;
  text-align: left;
}

.hero-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-ad:active {
  transform: scale(0.98);
}

.hero-ad-cta {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Welcome back banner */
.welcome-banner {
  background: var(--primary-soft);
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.welcome-icon {
  font-size: 1.4rem;
}

.welcome-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 6px;
  text-decoration: underline;
  cursor: pointer;
}

/* Section */
.section {
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.section-head h2 {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.section-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Menu List (Optimized for Thumb & Fast Scan) */
.menu-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 -12px 10px;
  padding: calc(8px + var(--safe-top)) 12px 8px;
  background: rgba(243, 250, 245, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.menu-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.thumb-emoji {
  display: grid;
  place-items: center;
  font-size: 2.6rem;
}

.menu-item.is-combo {
  border-color: #fde047;
  background: linear-gradient(180deg, #fffdf0, #fff);
}

.menu-item.is-combo.selected {
  border-color: var(--primary);
}

.price-wrap {
  flex-wrap: wrap;
}

.save-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: #b91c1c;
  background: #fee2e2;
  padding: 2px 6px;
  border-radius: 6px;
}

.upsell-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1.5px dashed var(--primary);
  background: #fff;
  color: var(--primary-dark);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.cart-save {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #b91c1c;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.menu-item.selected {
  border-color: var(--primary);
  background: #f6fff8;
}

.menu-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--primary-soft);
}

.menu-body {
  flex: 1;
  min-width: 0;
}

.menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.menu-name {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.item-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.menu-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 4px 0 8px;
  line-height: 1.35;
}

.menu-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-old {
  font-size: 0.76rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ≥40px touch target for easy thumb tapping */
.step-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.step-btn:active {
  transform: scale(0.92);
}

.step-btn.add {
  background: var(--primary);
  color: #fff;
}

.step-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 0.96rem;
}

/* Panels & Form */
.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.perk-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fef08a;
  color: #854d0e;
  padding: 3px 8px;
  border-radius: 999px;
}

.cart-empty {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 16px 10px;
  background: var(--bg);
  border-radius: 12px;
}

.cart-summary {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  gap: 8px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Single-column stacked inputs on phone for clean thumb typing */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

/* 16px font-size prevents iOS Safari auto-zoom on focus! */
.field input,
.field select,
textarea,
.ai-input-row input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.field input:focus,
.field select:focus,
textarea:focus,
.ai-input-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.pref-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pref-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pref-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pill {
  min-height: 40px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.team-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 600;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  cursor: pointer;
}

.team-toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.total-box {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.74rem;
  color: var(--muted);
}

.total-price {
  font-size: 1.18rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.btn-primary {
  min-height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  flex: 1;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  min-height: 46px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

/* Feedback */
.feedback-hint {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.reaction-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.react-btn {
  min-height: 42px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.react-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-result {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef9c3;
  border: 1px solid #fde047;
  font-size: 0.86rem;
  color: #713f12;
}

.footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 8px 0;
}

/* Full-width Sticky Cart Bar for Mobile */
.sticky-cart {
  position: fixed;
  bottom: calc(10px + var(--safe-bottom));
  left: 12px;
  right: 12px;
  max-width: 436px;
  margin: 0 auto;
  min-height: 52px;
  background: #14221a;
  color: #fff;
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  z-index: 25;
}

.sticky-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.sticky-btn {
  background: #22c55e;
  color: #052e16;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}

/* Floating AI Frog Button (lifts automatically when sticky cart is visible) */
.ai-fab {
  position: fixed;
  right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  min-height: 46px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
  cursor: pointer;
  z-index: 30;
  transition: bottom 0.18s ease;
}

body.has-cart .ai-fab {
  bottom: calc(72px + var(--safe-bottom));
}

body.has-cart {
  padding-bottom: calc(134px + var(--safe-bottom));
}

.fab-emoji {
  font-size: 1.2rem;
}

/* Mobile Toast */
.toast {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  background: #14221a;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  z-index: 80;
}

/* Mobile Bottom Sheet Modals */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 10px 14px calc(16px + var(--safe-bottom));
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

body.modal-open {
  overflow: hidden;
}

.receipt-box {
  max-height: 38dvh;
  overflow-y: auto;
}

.ai-chat-log,
.modal-sheet .ai-input-row,
.modal-sheet .mood-chips,
.modal-sheet .ai-actions-bar,
.modal-actions {
  flex-shrink: 0;
}

.ai-chat-log {
  flex-shrink: 1;
  min-height: 140px;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 2px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-avatar {
  font-size: 1.8rem;
  background: var(--primary-soft);
  padding: 6px;
  border-radius: 12px;
}

.ai-identity h3 {
  font-size: 1rem;
  font-weight: 800;
}

.ai-identity p {
  font-size: 0.78rem;
  color: var(--muted);
}

.close-btn {
  border: none;
  background: #f1f5f9;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.mood-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mood-chips::-webkit-scrollbar {
  display: none;
}

.mood-chip {
  min-height: 38px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.ai-chat-log {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  height: 34dvh;
  max-height: 250px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
}

.msg.bot {
  background: var(--primary-soft);
  color: var(--text);
  align-self: flex-start;
}

.msg.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
}

.pick-from-ai {
  margin-top: 8px;
  min-height: 38px;
  background: #fff;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.ai-actions-bar {
  display: flex;
  gap: 8px;
}

.mini-action {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.ai-input-row {
  display: flex;
  gap: 6px;
}

.mic-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

.send-btn {
  min-height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.frog-quote {
  background: var(--primary-soft);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.receipt-box {
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

/* =====================================================================
   GIAO DIỆN TỐI GIẢN (AI-A, 2026-11-29) – ít chữ, dùng icon & thao tác
   Đặt ở cuối file để ghi đè các rule cũ phía trên.
   ===================================================================== */

/* ---- Thẻ món: gọn (ảnh + tên + giá + nút) ---- */
.menu-item {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.2s ease;
}

.menu-thumb {
  width: 72px;
  height: 72px;
  transition: width 0.28s ease, height 0.28s ease;
}

.menu-name {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-bottom {
  margin-top: 6px;
}

/* ---- Thẻ món khi chạm: ảnh to gấp 3 (72 → 216px), canh giữa, chữ xuống dưới ---- */
.menu-item.expanded {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px;
  border-color: var(--primary);
  box-shadow: 0 10px 28px rgba(21, 128, 61, 0.16);
}

.menu-item.expanded .menu-thumb {
  width: min(216px, 72vw);
  height: min(216px, 72vw);
  border-radius: 18px;
  font-size: 6rem; /* ô emoji cũng to theo */
}

.menu-item.expanded .menu-body {
  width: 100%;
}

.menu-item.expanded .menu-name {
  white-space: normal;
  font-size: 1.1rem;
}

.menu-item.expanded .menu-desc {
  margin: 6px 0 10px;
  font-size: 0.88rem;
}

.menu-item.expanded .menu-bottom {
  justify-content: center;
  gap: 16px;
}

.menu-item.expanded .price-wrap {
  justify-content: center;
}

.menu-item.expanded .price-now {
  font-size: 1.2rem;
}

/* ---- Combo không còn viền vàng riêng (giảm giá chỉ hiện khi bật trong DEAL_IDS) ---- */
.menu-item.is-combo {
  border-color: var(--border);
  background: var(--surface);
}

/* ---- Ô nhập có icon thay cho nhãn chữ ---- */
.icon-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-field > span {
  flex: 0 0 28px;
  text-align: center;
  font-size: 1.25rem;
}

.icon-field input,
.icon-field select {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 16px; /* iPhone không zoom */
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.icon-field input:focus,
.icon-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.icon-field.pref .pill-group {
  flex: 1;
}

.icon-field .pill {
  font-size: 0.9rem;
}

.cart-empty {
  font-size: 1.8rem;
  letter-spacing: 6px;
  padding: 18px 10px;
}

.team-toggle {
  justify-content: flex-start;
  font-weight: 800;
}

.checkout-bar .total-price {
  font-size: 1.35rem;
}

.checkout-bar .btn-primary {
  flex: 0 0 auto;
  min-width: 132px;
  font-size: 1.05rem;
}

/* ---- Góp ý: 4 emoji to ---- */
.reaction-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.react-btn {
  min-height: 54px;
  font-size: 1.6rem;
  padding: 4px;
}

.section-head h2 {
  font-size: 1.4rem;
}

/* ---- Giỏ nổi & nút Ếch AI chỉ còn icon ---- */
.sticky-btn {
  min-width: 52px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  font-size: 1.2rem;
}

.ai-fab.icon-fab {
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  justify-content: center;
}

.ai-fab.icon-fab .fab-emoji {
  font-size: 1.6rem;
}

.mini-action {
  font-size: 1.2rem;
}

.send-btn {
  min-width: 46px;
  font-size: 1.1rem;
}

.modal-actions .btn-secondary {
  font-size: 1.3rem;
}

/* ---- Nút trên banner chỉ còn icon ---- */
.maika-talk {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  justify-content: center;
  font-size: 1.3rem;
}

.hero-ad-cta {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.icon-only {
  border: none;
  background: none;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .menu-thumb,
  .menu-item {
    transition: none;
  }
}

/* [AI-A 18:55] Nút bật/tắt tiếng Maika: góc dưới trái banner, đối xứng nút 💬 */
.maika-sound {
  right: auto;
  left: 10px;
  border: 0;
  cursor: pointer;
}

.maika-sound.off {
  opacity: 0.75;
}

/* [AI-A 19:05] Chủ quán: bỏ nền xanh của banner, cho cảnh Maika tràn viền trái phải (và sát mép trên).
   Margin âm đúng bằng padding của .app-shell (10px trên, 12px ngang; màn ≥520px là 14px / 16px). */
.hero {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: -10px -12px 12px;
}

.maika-stage {
  border-radius: 0;
  background: none;
}

@media (min-width: 520px) {
  .hero {
    margin: -14px -16px 12px;
    border-radius: 26px 26px 0 0;   /* khung desktop bo góc → bo theo góc trên của khung */
  }
}

/* [AI-A 19:15] Cho kéo xoay / zoom cảnh 3D trên banner. Trong iframe canvas để touch-action: pan-y → vuốt dọc vẫn cuộn trang,
   vuốt ngang xoay, chụm 2 ngón zoom. Các nút 💬 🔊 vẫn nằm trên (z-index 2). */
.maika-frame {
  pointer-events: auto;
}

/* [AI-A 19:25] Ảnh nền E.Town thật (app.js setupMaikaPhoto đặt background-image khi có assets/etown-nen.*).
   Giữ phần trên ảnh (nóc nhà + 3 logo) khi khung hẹp hơn ảnh. */
.maika-stage.has-photo {
  background-color: #8cc4ef;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* [AI-A 19:35] Dòng ghi nguồn mẫu 3D (CC BY) */
.footer-credit {
  font-size: 0.68rem;
  opacity: 0.8;
}

.footer-credit a {
  color: inherit;
}

/* [AI-A 19:45] Nút đổi góc máy quay: 🧋 = sang góc trước quầy, 🏢 = về góc rộng toàn cảnh. Góc trên phải banner */
.maika-view {
  top: 10px;
  bottom: auto;
  border: 0;
  cursor: pointer;
}

/* [AI-A 20:20] Nút chỉnh vị trí quầy: góc trên trái banner. ✋ = bắt đầu chỉnh, 💾 (viền xanh) = đang chỉnh, bấm để lưu */
.maika-edit {
  top: 10px;
  bottom: auto;
  right: auto;
  left: 10px;
  border: 0;
  cursor: pointer;
}

.maika-edit.on {
  box-shadow: 0 0 0 3px var(--primary, #15803d);
}

.maika-edit-hint {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
  pointer-events: none;
}

.maika-edit-hint[hidden] {
  display: none;
}

/* [AI-A 21:30] Ảnh món đã tách nền (assets/tach-nen/<id>.png): giữ trọn món, không cắt, không nền */
.menu-thumb.thumb-cut {
  object-fit: contain;
  background: none;
}

/* [AI-A 21:45] Lướt món kiểu TikTok.
   body.feed-open: iframe Maika phóng toàn màn (cùng 1 iframe, không tải lại), lớp #feed trong suốt phủ lên: chữ món ở dưới trái, nút ở phải. */
.maika-feed-btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--primary, #15803d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
  cursor: pointer;
}

body.feed-open {
  overflow: hidden;
}

body.feed-open .maika-frame {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 60;
  background: linear-gradient(#5f9fe6, #cfe4f7);
}

.feed {
  position: fixed;
  inset: 0;
  z-index: 61;
}

.feed.hidden {
  display: none;
}

.feed-list {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.feed-list::-webkit-scrollbar {
  display: none;
}

.feed-slide {
  position: relative;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed-info {
  position: absolute;
  left: 14px;
  right: 84px;
  bottom: calc(84px + var(--safe-bottom, 0px));
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.feed-info::before {   /* nền tối mờ phía dưới cho chữ dễ đọc trên cảnh sáng */
  content: "";
  position: absolute;
  inset: -40px -100px -90px -14px;
  z-index: -1;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.feed-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-name {
  margin: 6px 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}

.feed-desc {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.feed-price {
  font-size: 1.2rem;
}

.feed-side {
  position: absolute;
  right: 12px;
  bottom: calc(110px + var(--safe-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-btn {
  position: relative;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.feed-btn.sub {
  width: 46px;
  height: 46px;
  margin-left: 5px;
  font-size: 1.1rem;
}

.feed-qty:not(:empty) {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary, #15803d);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.feed-close {
  position: absolute;
  top: calc(12px + var(--safe-top, 0px));
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.feed-loading {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.9rem;
  pointer-events: none;
}

.feed-loading[hidden] {
  display: none;
}

.feed-order {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: calc(18px + var(--safe-bottom, 0px));
  z-index: 2;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #15803d);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.4);
  cursor: pointer;
}

.feed-order.hidden {
  display: none;
}

.feed-pop {
  position: fixed;
  z-index: 3;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: feed-pop 0.9s ease-out forwards;
}

@keyframes feed-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20% { opacity: 1; transform: translate(-50%, -60%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(1); }
}

/* [AI-A 22:00] QUÁN GAME là trang chính: khung Maika cao gần hết màn đầu (chừa mép menu bên dưới để khách biết cuộn được),
   nền ấm sau quán hoạt hình. Ẩn nút chỉnh quầy / đổi góc (chỉ dùng cho quầy thật). "▶ Lướt món" lên góc trên trái. */
.maika-stage.shop {
  height: min(80vh, 720px);
  height: min(80dvh, 720px);
  background: linear-gradient(#fde7c8, #f6d2a2);
}

.maika-stage.shop .maika-view,
.maika-stage.shop .maika-edit,
.maika-stage.shop .maika-edit-hint {
  display: none;
}

.maika-stage.shop .maika-feed-btn {
  top: 10px;
  bottom: auto;
  left: 10px;
  transform: none;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.shop-hint {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  pointer-events: none;
  animation: shop-hint 2s ease-in-out infinite;
}

.shop-hint[hidden] {
  display: none;
}

@keyframes shop-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(4px); }
}

.shop-bar {
  position: absolute;
  left: 64px;
  right: 64px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.shop-btn {
  flex: 1;
  max-width: 170px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #15803d);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.3);
  cursor: pointer;
}

.shop-btn.ghost {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark, #14532d);
}

/* thẻ món (chạm món trên quầy) */
.item-sheet-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.item-sheet-head > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.item-sheet-head h3 {
  margin: 4px 0;
  font-size: 1.1rem;
  line-height: 1.25;
}

.item-sheet-thumb .menu-thumb {
  width: 96px;
  height: 96px;
}

.item-sheet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.item-sheet-actions .btn-primary {
  flex: 1;
}

/* danh sách món (chạm tủ nước) */
.list-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.list-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.list-sheet-item .menu-thumb {
  width: 56px;
  height: 56px;
}

.list-sheet-item span {
  flex: 1;
  font-weight: 700;
}

.list-sheet-item strong {
  color: var(--primary-dark, #14532d);
}

/* Maika gợi ý: 4 ô tâm trạng to, dễ bấm */
.suggest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.suggest-btn {
  height: 96px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 18px;
  background: #fff;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.suggest-btn span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text, #111);
}

/* [AI-A 22:15] "📋 Menu" (góc trên trái) là liên kết, giữ kiểu nút cũ của "▶ Lướt món" */
.maika-feed-btn.shop-quick {
  text-decoration: none;
}

/* [AI-A 22:15] lướt món trong quán game: nền ấm như trong quán (thay nền trời xanh) */
body.feed-open .maika-stage.shop .maika-frame {
  background: linear-gradient(#fde7c8, #f6d2a2);
}

/* [AI-A 22:30] Màn LED sau quầy đã chiếu tên + giá → chữ dưới góc trái gọn lại (không che Maika): tên nhỏ, mô tả 2 dòng, ẩn giá */
.feed-name {
  font-size: 1rem;
  margin: 4px 0 2px;
}

.feed-desc {
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-price {
  display: none;
}

/* [AI-A 22:40] Giao diện mặc định + Maika góc dưới trái.
   Banner chỉ còn tiêu đề ẩn (cho trình đọc màn hình) → bỏ khoảng trống của banner cũ. */
.hero {
  margin: 0;
}

.maika-mini {
  position: fixed;
  left: 4px;
  bottom: calc(6px + var(--safe-bottom));
  z-index: 26;   /* trên giỏ nổi (25), dưới nút Ếch AI (30) */
  width: 116px;
  height: 168px;
  pointer-events: none;   /* chỉ Maika (iframe) nhận chạm, phần trống không che nút bên dưới */
  transition: bottom 0.18s ease;
}

body.has-cart .maika-mini {
  bottom: calc(68px + var(--safe-bottom));   /* có giỏ nổi → Maika đứng lên trên thanh giỏ */
}

.maika-mini .maika-frame {
  pointer-events: auto;
  background: transparent;
}

.maika-mini-sound {
  position: absolute;
  top: 2px;
  right: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  pointer-events: auto;
  cursor: pointer;
}

.maika-mini-sound.off {
  opacity: 0.7;
}

/* [AI-A 22:50] Slider món hot / bán chạy / mới trên đầu trang (tối đa 5, tự chuyển 10 giây, vuốt ngang được) */
.hot-slider {
  position: relative;
  margin: 0 0 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.hot-slider[hidden] {
  display: none;
}

.hot-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hot-track::-webkit-scrollbar {
  display: none;
}

.hot-slide {
  position: relative;
  flex: 0 0 100%;
  height: clamp(190px, 52vw, 240px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  cursor: pointer;
}

.hot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-emoji {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 6rem;
}

.hot-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 14px 14px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.hot-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #facc15;
  color: #14532d;
  font-size: 0.75rem;
  font-weight: 800;
}

.hot-name {
  margin: 6px 0 4px;
  font-size: 1.15rem;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hot-price {
  font-size: 1.15rem;
}

.hot-add {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark, #14532d);
  font-weight: 800;
  cursor: pointer;
}

.hot-dots {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.hot-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease;
}

.hot-dot.on {
  width: 20px;
  background: #fff;
}

/* [AI-A 22:50] Thẻ món luôn ở dạng to; ảnh là DẢI ẢNH ngang: ảnh đầu to, ảnh sau ló ra bên phải, vuốt ngang qua ảnh */
.menu-item.expanded {
  cursor: default;
}

.gal-wrap {
  position: relative;
  width: 100%;
}

.menu-gallery {
  position: relative;   /* để offsetLeft của ảnh tính theo dải ảnh (markGalCenter) */
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 13%;   /* [AI-A 23:25] ảnh đầu / ảnh cuối vẫn dừng được ở giữa */
}

.menu-gallery::-webkit-scrollbar {
  display: none;
}

.menu-gallery .gal-img {
  flex: 0 0 74%;
  height: min(240px, 60vw);
  object-fit: cover;
  border-radius: 16px;
  scroll-snap-align: center;
  background: var(--primary-soft, #dcfce7);
  cursor: zoom-in;
}

/* ảnh ở giữa rõ, ảnh hai bên mờ + nhỏ lại một chút */
.menu-gallery[data-gal]:not(.single) .gal-img {
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.menu-gallery[data-gal]:not(.single) .gal-img.active {
  opacity: 1;
  transform: none;
  cursor: zoom-in;
}

.menu-gallery.single {
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.menu-gallery.single .gal-img {
  flex: 0 0 min(240px, 72vw);
  height: min(240px, 72vw);
}

.gal-count {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  pointer-events: none;
}

/* Gallery toàn màn */
.gallery {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
}

.gallery.hidden {
  display: none;
}

.gallery-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + var(--safe-top)) 14px 8px;
  color: #fff;
}

.gallery-head strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.gallery-count {
  font-size: 0.85rem;
  opacity: 0.8;
}

.gallery-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.gallery-track {
  flex: 1;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 10px;
}

.gallery-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

/* [AI-A 23:10] Đặt theo nhóm: nút nổi + bảng nhóm */
.group-fab { padding: 8px 14px 8px 10px; }
.group-fab .fab-emoji { font-size: 1.15rem; }
.group-fab.in-group { background: linear-gradient(135deg, #0f766e, #14b8a6); letter-spacing: 0.02em; }
.sticky-group {
  background: #14b8a6; color: #042f2e; border: none; border-radius: 8px;
  padding: 3px 8px; font-weight: 800; font-size: 0.78rem; cursor: pointer;
}
.group-body { display: flex; flex-direction: column; gap: 10px; }
.grp-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.grp-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.grp-field input, .grp-code-input, .grp-paste input {
  font-size: 16px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--text);
}
.grp-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #f8fdf9; }
.grp-card.dim { opacity: 0.55; }
.grp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grp-code-input { text-align: center; text-transform: uppercase; letter-spacing: 0.35em; font-weight: 800; }
.grp-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--primary-soft); }
.grp-label { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.grp-code { font-size: 1.6rem; letter-spacing: 0.18em; color: var(--primary-dark); }
.grp-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.grp-clock { font-size: 0.8rem; font-weight: 800; color: var(--primary-dark); }
.grp-clock.late { color: #dc2626; }
.grp-invite { min-height: 36px; padding: 6px 12px; }
.grp-note { margin: 0; font-size: 0.84rem; color: var(--muted); }
.grp-list { display: flex; flex-direction: column; gap: 8px; }
.grp-member { border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; }
.grp-member.me { border-color: #86efac; background: #f0fdf4; }
.grp-member-head { display: flex; align-items: center; gap: 8px; }
.grp-member-head b { flex: 1; font-size: 0.92rem; }
.grp-state { font-size: 0.74rem; color: var(--muted); }
.grp-kick { border: none; background: #fee2e2; color: #b91c1c; border-radius: 8px; width: 26px; height: 26px; cursor: pointer; }
.grp-member ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 0.86rem; }
.grp-member li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.grp-member em { font-size: 0.76rem; color: var(--muted); font-style: normal; }
.grp-sub { text-align: right; font-weight: 800; font-size: 0.86rem; color: var(--primary-dark); }
.grp-paste { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.grp-paste-row { display: flex; gap: 6px; }
.grp-paste-row input { flex: 1; min-width: 0; }
.grp-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px dashed var(--border); font-size: 0.88rem; }
.grp-total strong { font-size: 1.15rem; color: var(--primary-dark); }
.grp-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.grp-actions .btn-primary:disabled { opacity: 0.5; }
.grp-leave { border: none; background: none; color: #b91c1c; font-size: 0.82rem; text-decoration: underline; cursor: pointer; align-self: center; }
.cart-who { font-size: 0.78rem; font-weight: 800; color: var(--primary-dark); margin-top: 6px; }

/* [AI-A 23:20] logo ếch đầu trang */
.brand-top { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 12px; padding: 14px 12px 6px; }
.brand-frog { font-size: 72px; line-height: 1; }
.brand-side { flex: 1; font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; color: var(--primary-dark); white-space: nowrap; }
.brand-left { text-align: right; }
.brand-right { text-align: left; }

/* [AI-A 23:30] Ảnh món luôn vuông 1:1 (cắt giữa ảnh nếu ảnh gốc không vuông) */
.menu-gallery .gal-img {
  flex: 0 0 70%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.menu-gallery { padding: 0 15%; }
.menu-gallery.single { padding: 0; }
.menu-gallery.single .gal-img {
  flex: 0 0 min(300px, 70vw);
  height: auto;
  aspect-ratio: 1 / 1;
}
.gallery-slide img {
  width: min(100%, 80vh);
  height: auto;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* [AI-A 23:35] slider món hot cũng vuông 1:1 */
.hot-slide {
  height: auto;
  aspect-ratio: 1 / 1;
}

/* nút, ô nhập, ô chọn dùng cùng font với trang */
button, input, select, textarea { font-family: inherit; }

/* [AI-A 23:45] sửa ảnh menu tràn khung: thẻ món là flex dọc → dải ảnh phải được phép co (min-width: 0), ảnh không bị kéo giãn theo chiều cao */
.menu-item.expanded .gal-wrap { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.menu-gallery { width: 100%; box-sizing: border-box; align-items: flex-start; }
.menu-gallery .gal-img { min-width: 0; align-self: flex-start; display: block; }
.menu-gallery.single { display: flex; }
.menu-gallery .menu-thumb { max-width: 100%; }

/* lướt bằng chuột trên máy tính + mũi tên cho slider món hot */
.hot-track { position: relative; }
.hot-track, .menu-gallery[data-gal] { cursor: grab; user-select: none; -webkit-user-select: none; }
.hot-track.dragging, .menu-gallery.dragging { cursor: grabbing; }
.hot-track.dragging *, .menu-gallery.dragging * { pointer-events: none; }
.hot-arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.85); color: #14532d; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); cursor: pointer; z-index: 2;
}
.hot-arrow.prev { left: 8px; }
.hot-arrow.next { right: 8px; }


/* [AI-A 23:55] nút Góp ý nổi bên trái (đối xứng nút Chọn theo nhóm bên phải) */
.ai-fab.feedback-fab {
  left: 12px;
  right: auto;
  padding: 8px 14px 8px 10px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}
.feedback-fab .fab-emoji { font-size: 1.15rem; }
#feedback-modal .feedback-panel { display: flex; flex-direction: column; gap: 10px; }
#feedback-modal .section-head { margin: 0; }
#feedback-modal #feedback-text { min-height: 84px; }
@media (max-width: 359px) { .feedback-fab span:last-child, .group-fab span:last-child { font-size: 0.78rem; } }

/* [AI-A 00:05] chân trang 3 dòng */
.footer .footer-frog { font-size: 2.4rem; line-height: 1; margin: 0 0 4px; }
.footer .footer-name { margin: 0; font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.footer .footer-sub { margin: 2px 0 0; font-size: 0.85rem; color: var(--muted); }

/* [AI-A 00:10] ảnh chính đúng giữa: % của flex-basis tính theo phần trong padding,
   nên padding 15% hai bên + ảnh 100% phần còn lại = ảnh rộng 70% và nằm chính giữa. Bỏ ô đếm số ảnh. */
.menu-gallery[data-gal]:not(.single) { padding: 0 15%; }
.menu-gallery[data-gal]:not(.single) .gal-img { flex: 0 0 100%; }
.gal-count { display: none; }

/* [AI-A 00:20] TỐI ƯU ĐIỆN THOẠI
   Nền loang 7 màu bản nhẹ: bản cũ dùng 2 lớp to gấp ~2,6 lần màn hình + blur(30px) + mix-blend-mode → điện thoại
   phải giữ ảnh nền khổng lồ trong bộ nhớ và trộn lại mọi thứ phía trên mỗi khung hình (nguyên nhân lag chính).
   Bản mới: 2 lớp chỉ to hơn màn hình 20%, KHÔNG blur, KHÔNG blend (đốm radial-gradient vốn đã mờ dần ra mép),
   chỉ trượt + phóng nhẹ + mờ/hiện (transform, opacity) → GPU làm hết, không vẽ lại. */
html { background: #fbfdfb; }
body { background: transparent; }
@media (min-width: 520px) {
  body { background: transparent; }
  .app-shell { background: rgba(255, 255, 255, 0.35); }
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  will-change: transform, opacity;
  contain: strict;
}
body::before {
  background:
    radial-gradient(40% 35% at 15% 15%, rgba(255, 150, 150, 0.55), transparent 70%),   /* đỏ hồng */
    radial-gradient(38% 32% at 85% 12%, rgba(255, 196, 130, 0.55), transparent 70%),   /* cam */
    radial-gradient(42% 30% at 50% 45%, rgba(255, 236, 150, 0.50), transparent 70%),   /* vàng */
    radial-gradient(40% 35% at 15% 85%, rgba(140, 236, 175, 0.55), transparent 70%);   /* xanh lá */
  animation: loang-a 24s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(40% 35% at 85% 85%, rgba(130, 205, 250, 0.55), transparent 70%),   /* xanh dương */
    radial-gradient(36% 30% at 70% 45%, rgba(170, 182, 250, 0.45), transparent 70%),   /* chàm */
    radial-gradient(38% 32% at 30% 60%, rgba(215, 182, 252, 0.50), transparent 70%);   /* tím */
  animation: loang-b 30s ease-in-out infinite alternate;
}
@keyframes loang-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  50%  { transform: translate3d(5%, -4%, 0) scale(1.08); opacity: 0.75; }
  100% { transform: translate3d(-4%, 5%, 0) scale(1.03); opacity: 1; }
}
@keyframes loang-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.7; }
  50%  { transform: translate3d(-6%, 3%, 0) scale(0.98); opacity: 1; }
  100% { transform: translate3d(4%, -5%, 0) scale(1.08); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* thanh tab món dính trên đầu: bỏ blur nền (rất nặng khi cuộn trên điện thoại), dùng nền gần đặc */
.menu-tabs {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(247, 252, 248, 0.97);
}

/* thẻ món ngoài màn hình: trình duyệt bỏ qua việc dựng / vẽ cho tới khi cuộn tới */
.menu-item.expanded {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

/* dải ảnh: báo trước chỉ cuộn ngang, cuộn dọc trang vẫn mượt */
.menu-gallery, .hot-track { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }

/* điện thoại: bóng đổ nhẹ hơn (bóng to làm cuộn chậm trên máy yếu) */
@media (hover: none) and (pointer: coarse) {
  .menu-item.expanded { box-shadow: 0 4px 12px rgba(21, 128, 61, 0.10); }
  .hot-slider { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }
}

/* [AI-A 00:35] ĐIỆN THOẠI (màn cảm ứng): nền 7 màu ĐỨNG YÊN, gộp 1 lớp đúng bằng màn hình.
   Không animation, không will-change → không giữ lớp đồ họa riêng, GPU nghỉ, đỡ pin, cuộn mượt nhất.
   Máy tính (chuột) vẫn giữ nền chuyển động ở khối 00:20 phía trên. */
@media (hover: none) and (pointer: coarse) {
  body::before {
    inset: 0;
    animation: none;
    will-change: auto;
    background:
      radial-gradient(45% 30% at 12% 10%, rgba(255, 150, 150, 0.50), transparent 70%),   /* đỏ hồng */
      radial-gradient(45% 28% at 88% 8%, rgba(255, 196, 130, 0.50), transparent 70%),    /* cam */
      radial-gradient(50% 26% at 50% 38%, rgba(255, 236, 150, 0.45), transparent 70%),   /* vàng */
      radial-gradient(45% 30% at 10% 62%, rgba(215, 182, 252, 0.45), transparent 70%),   /* tím */
      radial-gradient(45% 28% at 90% 55%, rgba(170, 182, 250, 0.42), transparent 70%),   /* chàm */
      radial-gradient(48% 30% at 20% 95%, rgba(140, 236, 175, 0.50), transparent 70%),   /* xanh lá */
      radial-gradient(48% 30% at 85% 92%, rgba(130, 205, 250, 0.50), transparent 70%);   /* xanh dương */
  }
  body::after { content: none; display: none; }

  /* bớt hiệu ứng chuyển cảnh không cần thiết trên điện thoại */
  .menu-item, .menu-thumb { transition: none; }
  .menu-gallery[data-gal]:not(.single) .gal-img { transition: opacity 0.2s linear; transform: none; }
}

/* [AI-A 00:40] Góp ý + Mua chung: 1 hàng nút nhỏ góc trên bên phải */
.top-actions {
  position: fixed;
  top: calc(8px + var(--safe-top));
  right: max(10px, calc((100vw - 460px) / 2 + 10px));   /* máy tính: bám mép phải khung trang */
  z-index: 30;
  display: flex;
  gap: 6px;
}
.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 5px 11px 5px 8px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.top-btn .fab-emoji { font-size: 1rem; }
.top-btn.feedback-fab { background: linear-gradient(135deg, #f59e0b, #fb923c); }
.top-btn.group-fab { background: linear-gradient(135deg, #16a34a, #22c55e); padding: 5px 11px 5px 8px; }
.top-btn.group-fab.in-group { background: linear-gradient(135deg, #0f766e, #14b8a6); }
/* thanh tab món dính ngay dưới hàng nút, không bị nút che */
.menu-tabs { top: calc(46px + var(--safe-top)); padding-top: 8px; }
/* logo đầu trang chừa chỗ cho hàng nút */
.brand-top { padding-top: 46px; }

/* Giỏ nổi gọn: số món · tiền · nút → ở góc dưới bên trái */
.sticky-cart {
  left: 12px;
  right: auto;
  max-width: none;
  width: auto;
  margin: 0;
  min-height: 44px;
  gap: 10px;
  padding: 6px 6px 6px 12px;
  border-radius: 999px;
}
@media (min-width: 520px) {
  .sticky-cart { left: max(12px, calc((100vw - 460px) / 2 + 12px)); }
}
.sticky-cart .sticky-info { gap: 6px; font-size: 0.85rem; }
.sticky-cart .sticky-btn { padding: 6px 12px; border-radius: 999px; }
body.has-cart { padding-bottom: calc(72px + var(--safe-bottom)); }

/* [AI-A 00:45] Thanh tab món dính đầu trang; hàng nút Góp ý / Mua chung treo ngay dưới thanh, bên phải, đi theo thanh khi cuộn */
.menu-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: 0 -12px 10px;
}
.menu-sticky .menu-tabs {
  position: static;
  top: auto;
  margin: 0;
  padding-top: calc(8px + var(--safe-top));
}
.menu-sticky .top-actions {
  position: absolute;
  top: 100%;
  right: 10px;
  margin-top: 6px;
  z-index: 16;
}
.brand-top { padding-top: 14px; }

/* [AI-A 00:50] Popup chắc nịch, không zoom:
   - Mọi ô nhập ≥ 16px → iPhone không tự phóng to khi chạm vào ô (kèm maximum-scale=1 trong thẻ viewport).
   - Trang phía sau bị ghim (body.page-locked, app.js lockPage) → kéo trong popup không làm trang chạy theo.
   - Popup không nảy / không kéo dạt: chặn cuộn xuyên (overscroll-behavior), nền tối không nhận vuốt. */
input, select, textarea { font-size: 16px !important; }
html, body { touch-action: manipulation; }   /* bỏ chạm đúp để phóng to */
body.page-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.modal, .gallery { overscroll-behavior: contain; touch-action: none; }
.modal-backdrop { touch-action: none; }
.modal-sheet {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  max-height: 88dvh;
}
.modal-sheet input, .modal-sheet textarea, .modal-sheet select, .modal-sheet button { touch-action: manipulation; }
.gallery-track { touch-action: pan-x; overscroll-behavior: contain; }

/* [AI-A 00:55] giỏ nổi: dòng 1 số món, dòng 2 giá dạng 30k; nút → nhỏ lại */
.sticky-cart { gap: 8px; padding: 5px 5px 5px 12px; min-height: 0; }
.sticky-cart .sticky-info { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.15; }
.sticky-cart #sticky-count { font-size: 0.8rem; }
.sticky-cart #sticky-total { font-size: 0.95rem; font-weight: 800; color: #86efac; }
.sticky-cart .sticky-group { margin-top: 2px; padding: 1px 6px; font-size: 0.7rem; }
.sticky-cart .sticky-btn {
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  font-size: 0.95rem; border-radius: 50%;
}

/* ===================================================================================
   [AI-A 01:00] TỐI GIẢN + ICON 1 MÀU
   - Mọi icon là nét SVG 2px cùng 1 màu (xanh lá của quán hoặc trắng trên nút xanh).
   - Bỏ màu phụ (vàng combo, đỏ giảm giá, cam nút góp ý, xanh ngọc nhóm) → chỉ còn xanh lá + xám.
   - Bớt chữ: nút chỉ còn icon (có aria-label cho trình đọc màn hình), popup gọn.
   =================================================================================== */
.ic {
  width: 1.15em; height: 1.15em;
  flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em;
}

/* tab danh mục: icon + 1 chữ ngắn */
.menu-tab { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); }
.menu-tab .ic { width: 18px; height: 18px; }
.menu-tab.active { color: #fff; }

/* 2 nút tròn dưới thanh tab: chỉ icon */
.top-btn,
.top-btn.feedback-fab,
.top-btn.group-fab {
  position: relative;
  width: 40px; height: 40px; min-height: 0; padding: 0;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.14);
}
.top-btn .ic { width: 20px; height: 20px; }
.top-btn.group-fab.in-group { background: var(--primary); border-color: var(--primary); color: #fff; }
.top-count {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--primary-dark); color: #fff;
  font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center;
  border: 1.5px solid #fff;
}

/* thẻ món: 1 tông màu */
.menu-item.is-combo { border-color: var(--border); background: var(--surface); }
.menu-item.selected, .menu-item.is-combo.selected { border-color: var(--primary); }
.save-badge { background: var(--primary-soft); color: var(--primary-dark); }
.price-old { color: #9aa9a0; }
.thumb-emoji { background: var(--primary-soft) !important; color: var(--primary); }
.thumb-emoji .ic { width: 42%; height: 42%; stroke-width: 1.6; }
.step-btn { display: inline-grid; place-items: center; }
.step-btn .ic { width: 20px; height: 20px; stroke-width: 2.4; }

/* slider món hot */
.hot-badge { background: rgba(255, 255, 255, 0.92); color: var(--primary-dark); }
.hot-add {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
}
.hot-add .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.hot-emoji { color: rgba(255, 255, 255, 0.85); }
.hot-emoji .ic { width: 5rem; height: 5rem; stroke-width: 1.4; }

/* phần giỏ + form đặt */
.section-head h2 { color: var(--primary-dark); display: flex; }
.section-head h2 .ic { width: 26px; height: 26px; }
.perk-badge { background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; gap: 4px; }
.cart-empty { color: #b7c7bd; font-size: 0; padding: 22px 0; text-align: center; }
.cart-empty .ic { width: 44px; height: 44px; stroke-width: 1.5; }
.icon-field > .ic { width: 22px; height: 22px; flex: 0 0 28px; color: var(--primary); }
.team-toggle span { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-dark); }
.upsell-btn { display: inline-flex; align-items: center; gap: 6px; }
.cart-save { color: var(--primary-dark); }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-primary .ic, .btn-secondary .ic { width: 20px; height: 20px; }

/* giỏ nổi */
.sticky-cart #sticky-count { display: inline-flex; align-items: center; gap: 4px; }
.sticky-cart #sticky-count .ic { width: 15px; height: 15px; }
.sticky-cart #sticky-total { color: #bbf7d0; }
.sticky-cart .sticky-btn { background: var(--primary); color: #fff; }
.sticky-cart .sticky-btn .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.sticky-group { display: inline-flex; align-items: center; gap: 3px; background: var(--primary); color: #fff; }
.sticky-group .ic { width: 12px; height: 12px; }

/* popup chung: tiêu đề nhỏ gọn, nút đóng là icon */
.modal-head h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--primary-dark); }
.modal-head h3 .ic { width: 22px; height: 22px; }
.close-btn, .gallery-close { display: inline-grid; place-items: center; color: var(--muted); }
.close-btn .ic, .gallery-close .ic { width: 20px; height: 20px; }
.gallery-close { color: #fff; }
.frog-quote { display: none; }
#order-modal-title .ic { width: 28px; height: 28px; stroke-width: 2.6; }

/* popup góp ý: 4 icon cảm nhận + ô nhập + nút gửi */
#feedback-modal .section-head { justify-content: flex-start; }
#feedback-modal .section-sub { display: inline-flex; align-items: center; gap: 4px; color: var(--primary-dark); font-weight: 800; }
.react-btn { display: grid; place-items: center; color: var(--muted); }
.react-btn .ic { width: 26px; height: 26px; }
.react-btn.active { color: var(--primary-dark); }
#feedback-modal .feedback-form { flex-direction: row; align-items: flex-end; }
#feedback-modal .feedback-form textarea { flex: 1; min-height: 72px; }
#feedback-modal .feedback-form .btn-primary { width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; }
.feedback-result { display: inline-flex; align-items: center; gap: 6px; }

/* popup mua chung */
.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--border); background: #fff; color: var(--primary-dark); cursor: pointer;
}
.icon-btn .ic { width: 20px; height: 20px; }
.grp-row { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.grp-row .ic { width: 22px; height: 22px; }
.grp-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; color: var(--text); }
.grp-card { background: #fff; gap: 10px; }
.grp-chips { align-items: center; color: var(--primary); }
.grp-chips .pill { min-width: 46px; }
.grp-join-row { flex-direction: row; align-items: center; }
.grp-join-row .grp-code-input { flex: 1; min-width: 0; }
.grp-top { gap: 10px; }
.grp-top .grp-code { flex: 1; }
.grp-clock { display: inline-flex; align-items: center; gap: 4px; }
.grp-member-head { gap: 6px; color: var(--primary); }
.grp-member-head .ic { width: 18px; height: 18px; }
.grp-member-head b { color: var(--text); }
.grp-member-head .grp-sub { margin-left: auto; text-align: right; }
.grp-member.done { border-color: #86efac; }
.grp-state { color: var(--primary); display: inline-flex; }
.grp-kick { display: inline-grid; place-items: center; background: #f1f5f4; color: var(--muted); }
.grp-kick .ic { width: 14px; height: 14px; }
.grp-items { margin-top: 4px; font-size: 0.84rem; color: var(--muted); }
.grp-total span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.grp-actions { grid-template-columns: 48px 1fr 40px; align-items: center; }
.grp-actions #grp-pick { padding: 0; height: 46px; }
.grp-actions .grp-leave { color: #9aa9a0; text-decoration: none; }
.cart-who { display: flex; align-items: center; gap: 5px; }
.cart-who .ic { width: 14px; height: 14px; }
.welcome-banner .icon-only { display: inline-grid; place-items: center; color: var(--primary-dark); }
.welcome-banner .icon-only .ic { width: 18px; height: 18px; }

/* [AI-A 01:05] giỏ nổi: "3 món" + giá, nút chữ "Đặt ngay" */
.sticky-cart .sticky-btn {
  width: auto; height: 36px; padding: 0 14px;
  display: inline-flex; align-items: center;
  border-radius: 999px; font-size: 0.85rem; font-weight: 800; white-space: nowrap;
}

/* [AI-A 01:10] 2 nút tròn Góp ý / Mua chung: góc dưới bên trái, ngay trên giỏ nổi (chưa có giỏ thì nằm sát đáy) */
.top-actions {
  position: fixed;
  top: auto;
  right: auto;
  left: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 30;
  display: flex;
  gap: 8px;
  transition: bottom 0.18s ease;
}
@media (min-width: 520px) {
  .top-actions { left: max(12px, calc((100vw - 460px) / 2 + 12px)); }
}
body.has-cart .top-actions { bottom: calc(66px + var(--safe-bottom)); }
body:not(.has-cart) { padding-bottom: calc(64px + var(--safe-bottom)); }
body.has-cart { padding-bottom: calc(118px + var(--safe-bottom)); }

/* [AI-A 01:15] nút "Đặt ngay" giờ là <button>: bỏ viền mặc định */
.sticky-cart .sticky-btn { border: none; cursor: pointer; color: #fff; font-family: inherit; }

/* [AI-A 01:25] bỏ nền thanh chứa tab Combo / Nước / Ăn vặt / Tất cả — chỉ còn các nút tab nổi */
.menu-tabs,
.menu-sticky .menu-tabs {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
}
.menu-tab { box-shadow: 0 2px 8px rgba(21, 128, 61, 0.12); }

/* [AI-A 01:30] ảnh món luôn rõ, không mờ / thu nhỏ hai bên; chạm ảnh → phóng to, chạm lại → thu */
.menu-gallery[data-gal]:not(.single) .gal-img,
.menu-gallery[data-gal]:not(.single) .gal-img.active {
  opacity: 1;
  transform: none;
  transition: none;
  cursor: zoom-in;
}
.gallery-slide img { cursor: zoom-out; }

/* [AI-A 01:35] ô chọn (dropdown) cao đúng bằng ô nhập chữ: cùng chiều cao cố định, bỏ kiểu mặc định của iPhone/Android
   (vốn làm ô chọn thấp hơn / bo góc khác), tự vẽ mũi tên xuống cùng màu xanh với icon */
.icon-field input,
.icon-field select {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  line-height: 46px;
}
.icon-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  cursor: pointer;
}
