/* ── Variables ─────────────────────────── */
:root {
  --primary: #8B1A1A;
  --primary-dark: #5C0A0A;
  --primary-light: #B52A2A;
  --gold: #C49A22;
  --gold-light: #E8B84B;
  --cream: #FFF9F0;
  --cream-dark: #F3E8D0;
  --text: #1A0800;
  --text-mid: #4A2B1A;
  --text-light: #8C6030;
  --green: #1B7A4A;
  --red: #C0392B;
  --orange: #D4700A;
  --blue: #1B5EA1;
  --border: rgba(139,26,26,0.13);
  --shadow: 0 2px 14px rgba(0,0,0,0.09);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --r: 12px;
  --r-sm: 8px;
  --header-h: 64px;
  --tab-h: 52px;
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', 'Helvetica Neue', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }

/* ── Shared Header ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.site-header .logo {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.site-header .brand { flex: 1; min-width: 0; }
.site-header .brand h1 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-header .brand small {
  font-size: 0.72rem;
  opacity: 0.8;
  display: block;
}
.table-badge {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vip-badge {
  background: var(--gold-light);
  color: #5C0A0A;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 4px;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background .2s;
  color: #fff;
}
.btn-icon:hover { background: rgba(255,255,255,0.15); }
.btn-icon.active { background: var(--gold); color: var(--primary-dark); }

/* ── Page nav (staff/kitchen) ───────────── */
.page-nav {
  background: var(--primary-dark);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 18px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.page-nav a.active, .page-nav a:hover { color: #fff; border-bottom-color: var(--gold); }

/* ── Category Tabs ──────────────────────── */
.cat-tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  height: var(--tab-h);
  align-items: stretch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 3px solid transparent;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
}
.cat-tab:hover { color: var(--primary); background: var(--cream); }
.cat-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.cat-tab .count {
  background: var(--cream-dark);
  color: var(--text-light);
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 10px;
}
.cat-tab.active .count { background: var(--primary); color: #fff; }

/* ── Menu Section ───────────────────────── */
.menu-section { padding: 0 0 100px; }
.cat-section { padding: 20px 16px 8px; }
.cat-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 12px;
}

/* ── Menu Item Card ─────────────────────── */
.menu-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.menu-item:active { transform: scale(0.99); }
.menu-item.out-of-stock { opacity: 0.55; pointer-events: none; }
.menu-item .img-wrap {
  width: 100px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.menu-item .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-item.out-of-stock .img-wrap::after {
  content: 'Hết hàng';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}
.menu-item .info {
  flex: 1;
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.menu-item .item-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.menu-item .item-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.menu-item .item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.menu-item .price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* ── Qty Control ────────────────────────── */
.qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-ctrl button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-ctrl .btn-minus {
  border: 2px solid var(--border);
  color: var(--text-mid);
}
.qty-ctrl .btn-minus:hover { border-color: var(--primary); color: var(--primary); }
.qty-ctrl .btn-plus {
  background: var(--primary);
  color: #fff;
}
.qty-ctrl .btn-plus:hover { background: var(--primary-dark); }
.qty-ctrl .qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text);
}
.btn-add {
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all .15s;
}
.btn-add:hover { background: var(--primary-dark); }

/* ── Floating Cart Bar ──────────────────── */
.cart-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(139,26,26,0.4);
  cursor: pointer;
  transition: transform .2s, opacity .2s;
  transform: translateY(0);
}
.cart-bar.hidden { transform: translateY(100px); opacity: 0; pointer-events: none; }
.cart-bar .cart-info { display: flex; align-items: center; gap: 12px; }
.cart-bar .cart-count {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.85rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-bar .cart-items-preview {
  font-size: 0.82rem;
  opacity: 0.9;
}
.cart-bar .cart-total {
  font-size: 1rem;
  font-weight: 800;
}
.cart-bar .cart-cta {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 20px;
}

/* ── Cart Panel (slide-up) ──────────────── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.panel-overlay.open { opacity: 1; pointer-events: all; }
.slide-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(0.32,0.72,0,1), visibility 0s linear .35s;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
}
.slide-panel.open { transform: translateY(0); visibility: visible; transition: transform .35s cubic-bezier(0.32,0.72,0,1), visibility 0s; }
.panel-handle {
  width: 40px; height: 4px;
  background: var(--cream-dark);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.btn-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
}
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.panel-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── Cart Item ──────────────────────────── */
.cart-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item .ci-img {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cart-item .ci-price { font-size: 0.82rem; color: var(--primary); font-weight: 600; margin-top: 2px; }
.cart-item .ci-note {
  width: 100%;
  margin-top: 6px;
  font-size: 0.78rem;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  resize: none;
  outline: none;
  transition: border-color .2s;
}
.cart-item .ci-note:focus { border-color: var(--primary); }
.cart-item .ci-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-item .btn-remove {
  margin-left: auto;
  font-size: 1rem;
  color: var(--text-light);
  padding: 4px;
}
.cart-item .btn-remove:hover { color: var(--red); }

/* ── Total Row ──────────────────────────── */
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 14px;
  font-size: 1rem;
  font-weight: 700;
}
.total-row .label { color: var(--text-mid); }
.total-row .amount { color: var(--primary); font-size: 1.15rem; }

/* ── Buttons ────────────────────────────── */
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-gold {
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all .2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm {
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.1); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { filter: brightness(1.1); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(1.1); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.1); }
.btn-gray { background: #888; color: #fff; }
.btn-gray:hover { filter: brightness(1.1); }

/* ── Status Badge ───────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.status-awaiting  { background: #FEF3C7; color: #92400E; }
.status-received  { background: #DBEAFE; color: #1E40AF; }
.status-cooking   { background: #FEF3C7; color: #D97706; }
.status-done      { background: #D1FAE5; color: #065F46; }
.status-delivered { background: #E5E7EB; color: #374151; }

/* ── Order Status View ──────────────────── */
.order-status-page { padding: 16px; }
.order-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.order-card-header .order-id { font-size: 0.72rem; color: var(--text-light); }
.order-card-header .order-time { font-size: 0.72rem; color: var(--text-light); }
.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.order-item-row:last-child { border-bottom: none; }
.order-item-row .name { flex: 1; font-size: 0.88rem; font-weight: 600; }
.order-item-row .note {
  font-size: 0.73rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 2px;
}
.order-item-row .qty-badge {
  background: var(--cream-dark);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.awaiting-confirm-banner {
  background: #FEF3C7;
  color: #92400E;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.total-banner {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  background: var(--cream);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.total-banner .amount { color: var(--primary); }

/* ── Call Staff Button (floating) ──────── */
.btn-call-staff {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 200;
  background: var(--gold);
  color: var(--primary-dark);
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(196,154,34,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-call-staff:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(196,154,34,0.6); }
.btn-call-staff.calling {
  background: var(--green);
  color: #fff;
  animation: pulse-call 1s ease infinite;
}
@keyframes pulse-call {
  0%,100% { box-shadow: 0 4px 20px rgba(27,122,74,0.4); }
  50% { box-shadow: 0 4px 28px rgba(27,122,74,0.7); transform: scale(1.03); }
}

/* ── Kitchen / Staff Layout ─────────────── */
.ks-layout {
  padding: 16px;
  padding-bottom: 32px;
}
.ks-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ks-header h2 { font-size: 1.1rem; font-weight: 800; color: var(--text); flex: 1; }

/* ── Queue Card ─────────────────────────── */
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.queue-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.queue-card.vip {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(196,154,34,0.25);
}
.queue-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.queue-card-head .table-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--primary);
}
.queue-card-head .order-time {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: auto;
}
.queue-card .dish-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.queue-card .dish-row:last-child { border-bottom: none; }
.queue-card .dish-row .dish-info { flex: 1; min-width: 0; }
.queue-card .dish-row .dish-name { font-size: 0.88rem; font-weight: 600; }
.queue-card .dish-row .dish-note { font-size: 0.73rem; color: var(--text-light); font-style: italic; margin-top: 2px; }
.queue-card .dish-row .dish-qty {
  background: var(--cream-dark);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}
.queue-card .dish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* ── Staff Pending Orders ───────────────── */
.pending-list { display: flex; flex-direction: column; gap: 12px; }
.pending-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-left: 4px solid var(--orange);
}
.pending-card.vip { border-left-color: var(--gold); }
.pending-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.pending-card-head .table-label { font-size: 1rem; font-weight: 800; color: var(--primary); }
.pending-card-body { padding: 12px 16px; }
.pending-item-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
  border-bottom: 1px dashed var(--border);
}
.pending-item-line:last-child { border-bottom: none; }
.pending-item-line .p-qty { font-weight: 700; color: var(--primary); }
.pending-item-line .p-note { font-size: 0.73rem; color: var(--text-light); font-style: italic; margin-left: auto; }
.pending-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--cream);
  border-top: 1px solid var(--border);
  gap: 10px;
}
.pending-card-foot .total { font-size: 0.88rem; font-weight: 700; color: var(--primary); }

/* ── Notification Banner ────────────────── */
.notif-bar {
  background: var(--gold);
  color: var(--primary-dark);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.notif-bar.hidden { display: none; }
.notif-chip {
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
  display: flex; align-items: center; gap: 4px;
}
.notif-chip:hover { opacity: 0.85; }

/* ── Table Grid ─────────────────────────── */
.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
}
.table-card {
  background: #fff;
  border-radius: var(--r-sm);
  border: 2px solid var(--border);
  padding: 12px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.table-card:hover { border-color: var(--primary); }
.table-card.vip { border-color: var(--gold); background: #FFFBEB; }
.table-card .tc-num { font-size: 1.2rem; font-weight: 900; color: var(--primary); }
.table-card .tc-status { font-size: 0.7rem; color: var(--text-light); margin-top: 4px; }
.table-card .tc-vip-btn {
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  transition: all .2s;
  background: none;
  cursor: pointer;
  width: 100%;
}
.table-card.vip .tc-vip-btn { background: var(--gold); color: var(--primary-dark); }

/* ── Empty / Toast ──────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-light);
}
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Sections / Hero strip ──────────────── */
.hero-strip {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.hero-strip .hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.hero-strip .rating {
  background: var(--gold);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.hero-strip .tagline {
  color: #fff;
  font-size: 0.82rem;
  margin-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── QR Page ─────────────────────────────── */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
}
.qr-card {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  text-align: center;
  border: 2px solid var(--border);
}
.qr-card .qr-box { display: flex; justify-content: center; margin-bottom: 12px; }
.qr-card .qr-label { font-size: 1.1rem; font-weight: 900; color: var(--primary); }
.qr-card .qr-sub { font-size: 0.72rem; color: var(--text-light); margin-top: 2px; }
.qr-instructions {
  background: var(--primary);
  color: #fff;
  padding: 16px 20px;
  font-size: 0.85rem;
  line-height: 1.6;
}
.qr-instructions strong { color: var(--gold-light); }

/* ── Utilities ──────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.hidden { display: none !important; }
.text-right { text-align: right; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── Print Styles ───────────────────────── */
@media print {
  .no-print { display: none !important; }
  .qr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }
  .qr-card { page-break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
}

/* ── Animations ─────────────────────────── */
@keyframes bounce-in {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.bounce-in { animation: bounce-in .3s ease; }

@keyframes slide-up {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.slide-up { animation: slide-up .25s ease; }

/* ── Responsive ─────────────────────────── */
@media (min-width: 640px) {
  .menu-item .img-wrap { width: 120px; height: 100px; }
  .ks-layout { padding: 20px; }
  .queue-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (min-width: 1024px) {
  :root { --header-h: 68px; }
  .menu-section { max-width: 720px; margin: 0 auto; }
  .queue-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
