/* DineFlow – Premium UI
   Plus Jakarta Sans + Outfit · Font Awesome icons */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');

:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --elevated: #ffffff;
  --surface: #f4f5f7;
  --surface-strong: #eceef2;
  --border: #e6e8ee;
  --border-strong: #d5d8e0;
  --text: #0f1218;
  --text-muted: #5c6470;
  --text-dim: #8b929e;
  --accent: #ff4d2e;
  --accent-hover: #e84328;
  --accent-soft: rgba(255, 77, 46, 0.1);
  --accent-text: #ffffff;
  --green: #0d9f6e;
  --red: #e5484d;
  --blue: #3b82f6;
  --success: #0d9f6e;
  --warning: #f5a524;
  --glass: blur(20px) saturate(1.2);
  --shadow: 0 16px 40px rgba(15, 18, 24, 0.08);
  --shadow-sm: 0 4px 14px rgba(15, 18, 24, 0.06);
  --shadow-card: 0 1px 2px rgba(15, 18, 24, 0.04), 0 8px 24px rgba(15, 18, 24, 0.06);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --radius-full: 999px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --max: 480px;
  --dash-max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

[data-theme="dark"] {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --elevated: #1a1714;
  --surface: rgba(255, 248, 240, 0.06);
  --surface-strong: rgba(255, 248, 240, 0.1);
  --border: rgba(255, 248, 240, 0.1);
  --border-strong: rgba(255, 248, 240, 0.18);
  --text: #f6f1ea;
  --text-muted: #9c948a;
  --text-dim: #6e675e;
  --accent: #ff6a4d;
  --accent-hover: #ff7f66;
  --accent-soft: rgba(255, 106, 77, 0.16);
  --accent-text: #1a0806;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button { cursor: pointer; }
ul, ol { list-style: none; }

/* —— Atmosphere (soft white wash) —— */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, rgba(255, 77, 46, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(13, 159, 110, 0.05), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

[data-theme="dark"] .app-bg {
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(255, 106, 77, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13, 159, 110, 0.08), transparent 50%),
    var(--bg);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .noise { opacity: 0.035; }

/* —— Typography —— */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.h1 { font-size: clamp(2rem, 6vw, 2.85rem); }
.h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.h3 { font-size: 1.25rem; }
.h4 { font-size: 1.05rem; }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.accent { color: var(--accent); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; letter-spacing: 0.02em; }
.bold { font-weight: 700; }

/* —— Layout —— */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border);
}

@media (max-width: 520px) {
  .shell { box-shadow: none; }
}

.shell-wide {
  max-width: var(--dash-max);
  padding: 0 20px 40px;
}

.page {
  padding: 20px 20px calc(110px + var(--safe-b));
  animation: fadeUp 0.5s var(--ease) both;
}

.page-flush {
  padding: 0 0 calc(88px + var(--safe-b));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes confetti {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes progressPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(255, 77, 46, 0); }
}

/* —— Surfaces —— */
.glass,
.glass-strong {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.panel {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.25s, filter 0.2s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 10px 28px rgba(255, 77, 46, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  filter: brightness(1.02);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  background: var(--bg);
}

.btn-block { width: 100%; }
.btn-sm {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
}

.btn-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.btn-success { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(13, 159, 110, 0.25); }
.btn-danger { background: var(--red); color: #fff; }

/* —— Form —— */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  min-height: 52px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-bar input {
  flex: 1;
  min-height: 50px;
  background: transparent;
}

.search-bar svg { color: var(--text-dim); flex-shrink: 0; }
.search-bar i { color: var(--text-dim); flex-shrink: 0; font-size: 0.95rem; }

/* —— Chips —— */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.chip:hover,
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 77, 46, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: rgba(13, 159, 110, 0.12); color: var(--green); }
.badge-red { background: rgba(229, 72, 77, 0.12); color: var(--red); }
.badge-blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }

.veg-dot {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--green);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.veg-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.veg-dot.nonveg { border-color: var(--red); }
.veg-dot.nonveg::after { background: var(--red); }

.stars {
  display: inline-flex;
  gap: 1px;
  color: #f5a524;
  font-size: 0.85rem;
  letter-spacing: -1px;
}

/* —— Top bar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .topbar {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: var(--border);
}

.topbar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.brand-mark span { color: var(--accent); }

/* —— Bottom nav —— */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  display: flex;
  justify-content: space-around;
  padding: 10px 8px calc(12px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(15, 18, 24, 0.04);
  z-index: 50;
}

[data-theme="dark"] .bottom-nav {
  background: color-mix(in srgb, var(--elevated) 92%, transparent);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.2s;
  border-radius: 12px;
}

.nav-item svg { width: 22px; height: 22px; }
.nav-item i {
  font-size: 1.2rem;
  line-height: 1;
  width: 22px;
  text-align: center;
}
.nav-item.active { color: var(--accent); }

/* —— Floating cart —— */
.cart-bar {
  position: fixed;
  bottom: calc(72px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: calc(100% - 32px);
  max-width: calc(var(--max) - 32px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  background: linear-gradient(135deg, #1a1d24 0%, #0f1218 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 18, 24, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 80;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.cart-bar.is-visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cart-bar .count {
  background: var(--accent);
  color: #fff;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 77, 46, 0.4);
}

.cart-bar .cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cart-bar .cart-bar-label {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.cart-bar .cart-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(255, 77, 46, 0.35);
}

/* ===================== SPLASH ===================== */
.splash {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.splash-v2 {
  padding: 0;
  justify-content: flex-end;
}

.splash-visual {
  position: absolute;
  inset: 0 0 38% 0;
  overflow: hidden;
}

.splash-photo {
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1400&q=80') center 35%/cover no-repeat;
  transform: scale(1.06);
  animation: splashZoom 8s var(--ease) both;
}

@keyframes splashZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.02); }
}

.splash-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.55) 55%, #ffffff 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, transparent 40%);
}

.splash-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.splash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.55s var(--ease) 0.15s both;
}

.splash-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff4d2e, #ff7a45);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(255, 77, 46, 0.32);
  flex-shrink: 0;
}

.splash-mark span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.06em;
}

.splash-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.splash-wordmark span { color: var(--accent); }

.splash-copy {
  animation: fadeUp 0.55s var(--ease) 0.35s both;
}

.splash-title {
  font-size: clamp(2.4rem, 9vw, 3.15rem);
  color: var(--text);
  margin-bottom: 10px;
}

.splash-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 28ch;
  font-weight: 500;
}

.splash-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.55s var(--ease) 0.5s both;
}

.splash-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(13, 159, 110, 0.14);
  animation: pulse 1.6s ease infinite;
  flex-shrink: 0;
}

.splash-status-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.splash-status-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.splash-cta {
  min-height: 56px;
  font-size: 1rem;
  animation: fadeUp 0.55s var(--ease) 0.65s both;
}

.splash-cta-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.splash-cta:hover .splash-cta-arrow {
  transform: translateX(4px);
}

.splash-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px calc(22px + var(--safe-b));
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  animation: fadeIn 0.6s var(--ease) 0.9s both;
}

.splash-foot a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.splash-foot a:hover { color: var(--accent); }

.splash-foot span { opacity: 0.45; }

/* legacy splash bits (kept for safety) */
.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.logo-mark {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ff4d2e, #ff7a45);
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  box-shadow: 0 22px 48px rgba(255, 77, 46, 0.32);
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: rgba(13, 159, 110, 0.08);
  border: 1px solid rgba(13, 159, 110, 0.22);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===================== WELCOME / HERO ===================== */
.hero {
  position: relative;
  min-height: 56dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.35) 40%, #ffffff 92%),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1200&q=80') center/cover no-repeat;
  animation: fadeIn 0.9s var(--ease);
}

[data-theme="dark"] .hero-media {
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.15) 0%, rgba(11, 10, 9, 0.55) 45%, rgba(11, 10, 9, 0.96) 100%),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1200&q=80') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px 8px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.special-strip {
  margin: 8px 20px 20px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.special-strip img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.special-strip .label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.welcome-actions {
  padding: 0 20px 28px;
}

/* ===================== DINING TYPE ===================== */
.dining-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.dining-card {
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.dining-card:hover,
.dining-card:focus-within,
.dining-card.selected {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(255, 77, 46, 0.14);
  transform: translateY(-2px);
}

.dining-card .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.dining-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.dining-card .check {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}

.dining-card.selected .check {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.pickup-slot {
  margin-top: 24px;
  padding: 18px;
  display: none;
}

.pickup-slot.show {
  display: block;
  animation: fadeUp 0.35s var(--ease);
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.time-slot {
  padding: 12px 8px;
  text-align: center;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.time-slot:hover,
.time-slot.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===================== MENU ===================== */
.menu-page .topbar-center {
  text-align: center;
}

.menu-page .topbar-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-page .cart-icon {
  position: relative;
}

.menu-page .cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
}

.menu-body {
  padding-top: 12px;
  padding-bottom: calc(150px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.menu-body .search-bar {
  margin-bottom: 0;
}

.menu-body .filter-chips {
  margin-bottom: 2px;
}

.cat-rail {
  position: sticky;
  top: 75px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 8px 0 12px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid var(--border);
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  min-width: 74px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
}

.cat-item .emoji { font-size: 1.35rem; line-height: 1; }

.cat-item.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 18, 24, 0.14);
}

.menu-section {
  margin-top: 10px;
  scroll-margin-top: 140px;
}

.menu-section .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-section h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}

.section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.product-list { display: grid; gap: 12px; }

.product-card {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 18, 24, 0.09);
}

.product-card .info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 2px 0;
}

.product-card .name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.product-card .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.product-card .meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.product-card .price {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-top: auto;
  padding-top: 4px;
}

.product-card .media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface);
  align-self: start;
}

.product-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .media img { transform: scale(1.05); }

.product-card .add-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 18, 24, 0.16);
  line-height: 1;
  border: 1px solid var(--border);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  z-index: 2;
}

.product-card .add-wrap {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 3;
}

.product-card .card-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 2px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 77, 46, 0.35);
  animation: scaleIn 0.2s var(--ease);
}

.product-card .card-qty[hidden] {
  display: none !important;
}

.product-card .card-qty button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1;
}

.product-card .card-qty button:active {
  background: rgba(255, 255, 255, 0.18);
}

.product-card .qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.product-card .add-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.product-card .add-btn:active { transform: scale(0.94); }

.product-card .add-btn[hidden] {
  display: none !important;
}

.menu-page .cart-bar {
  bottom: calc(78px + var(--safe-b));
}

.menu-page .cart-bar[hidden] {
  display: none !important;
}

.menu-body.has-cart {
  padding-bottom: calc(170px + var(--safe-b));
}

.prep-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 700;
}

.menu-page .cart-badge[hidden] {
  display: none !important;
}

/* ===================== PRODUCT DETAIL ===================== */
.gallery {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: var(--surface);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-fade {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(transparent, #ffffff);
}

[data-theme="dark"] .gallery-fade {
  background: linear-gradient(transparent, var(--bg));
}

.detail-body {
  padding: 8px 20px 24px;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.spice-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.spice-meter span {
  width: 8px;
  height: 16px;
  border-radius: 3px;
  background: var(--border-strong);
}

.spice-meter span.on { background: var(--red); }

.nutrition {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.nutrition div {
  text-align: center;
  padding: 16px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nutrition strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.nutrition span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.custom-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 20px;
}

.custom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.custom-item input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 3px #fff;
}

.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.qty-ctrl button {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 1.1rem;
}

.qty-ctrl button:hover { background: var(--surface); }
.qty-ctrl span {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  padding: 14px 20px calc(14px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -8px 28px rgba(15, 18, 24, 0.05);
}

.sticky-cta .price-block { flex: 1; }
.sticky-cta .btn { flex: 1.4; }

/* ===================== CART ===================== */
.cart-page .topbar-center {
  text-align: center;
}

.cart-page .topbar-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-body {
  padding-bottom: calc(110px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-page .line-items {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}

.line-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.line-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface);
}

.line-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.line-item h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 4px;
}

.line-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.line-price {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.cart-qty {
  padding: 2px;
  min-height: 34px;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.cart-qty .qty-val,
.cart-qty span {
  min-width: 22px;
  font-size: 0.88rem;
}

.remove-btn {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 6px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.remove-btn:hover {
  color: var(--red);
  background: rgba(229, 72, 77, 0.08);
}

.add-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px dashed var(--border-strong);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--accent-soft);
  transition: border-color 0.2s, background 0.2s;
}

.add-more:hover {
  border-color: var(--accent);
  background: rgba(255, 77, 46, 0.14);
}

.coupon-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.coupon-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.coupon-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
}

.coupon-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
}

.coupon-row .input {
  flex: 1;
  min-height: 46px;
}

.coupon-msg {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
}

.coupon-msg.error {
  color: var(--red);
}

.totals {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin-bottom: 0;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.totals-row.grand {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
}

.cart-checkout {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max);
  padding: 14px 20px calc(14px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 50;
  box-shadow: 0 -8px 28px rgba(15, 18, 24, 0.05);
}

.cart-checkout[hidden] {
  display: none !important;
}

.checkout-meta {
  flex: 1;
  min-width: 0;
}

.checkout-amount {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cart-checkout .btn {
  flex: 1.2;
  min-height: 52px;
}

.empty-cart {
  text-align: center;
  padding: 48px 16px 24px;
}

.empty-cart .btn {
  display: inline-flex;
  margin-top: 18px;
}

/* ===================== CHECKOUT ===================== */
.pay-options {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.pay-option:has(input:checked),
.pay-option.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.pay-option input { accent-color: var(--accent); }

.pay-option .pay-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--accent);
}

.pay-option .pay-icon i {
  font-size: 1.1rem;
}

.cat-item .emoji i {
  font-size: 0.85rem;
}

.cook-visual i {
  font-size: 2.5rem;
  color: var(--accent);
}

.splash-foot a i {
  margin-right: 4px;
  font-size: 0.75rem;
}

/* ===================== SUCCESS ===================== */
.success-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.success-icon i {
  font-size: 3.5rem;
  color: var(--green);
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: -20px;
  animation: confetti 2.8s ease-in forwards;
  opacity: 0.9;
}

.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4d2e, #ff7a45);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  margin-bottom: 24px;
  box-shadow: 0 22px 48px rgba(255, 77, 46, 0.35);
  animation: scaleIn 0.55s var(--ease);
}

.order-num {
  display: inline-block;
  margin: 16px 0;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eta-big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  margin: 8px 0 4px;
  letter-spacing: -0.04em;
}

/* ===================== TRACKING ===================== */
.timeline {
  position: relative;
  padding: 8px 0 8px 28px;
  margin: 24px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}

.tl-step {
  position: relative;
  padding: 0 0 28px 20px;
}

.tl-step:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
}

.tl-step.done .tl-dot {
  background: var(--green);
  border-color: var(--green);
}

.tl-step.active .tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  animation: progressPulse 1.8s ease infinite;
}

.tl-step h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
  font-weight: 700;
}

.tl-step.done h4,
.tl-step.active h4 { color: var(--text); }

.tl-step:not(.done):not(.active) h4 { color: var(--text-dim); }

.status-card {
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.cook-visual {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  animation: pulse 2s ease infinite;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* ===================== REVIEWS ===================== */
.rate-block {
  padding: 22px 20px;
  margin-bottom: 16px;
  text-align: center;
}

.rate-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 8px;
  font-size: 2.1rem;
  color: var(--border-strong);
}

.rate-stars label {
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.rate-stars input { display: none; }
.rate-stars:hover label { color: #f5a524; }
.rate-stars label:hover ~ label { color: var(--border-strong); }

.photo-upload {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 16px;
  background: var(--surface);
}

/* ===================== PROFILE ===================== */
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ff4d2e, #ff7a45);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 77, 46, 0.28);
}

.points-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 77, 46, 0.1), rgba(13, 159, 110, 0.08));
  border: 1px solid rgba(255, 77, 46, 0.18);
  border-radius: var(--radius);
}

.menu-links { display: grid; gap: 8px; }

.menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  font-weight: 600;
  font-size: 0.92rem;
}

.menu-link:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.menu-link .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--accent);
}

.menu-link .ico i {
  font-size: 0.95rem;
}

.menu-link .chev {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.theme-toggle {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
  box-shadow: 0 2px 6px rgba(255, 77, 46, 0.35);
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(20px);
}

/* ===================== DASHBOARDS ===================== */
.dash-body {
  max-width: var(--dash-max);
  margin: 0 auto;
  padding: 20px;
  min-height: 100dvh;
  background: var(--bg-2);
}

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 24px;
  flex-wrap: wrap;
}

.dash-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-links a {
  padding: 9px 15px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dash-links a.active,
.dash-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.stat-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.stat-card .value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-card .delta {
  font-size: 0.75rem;
  color: var(--green);
  margin-top: 6px;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 900px) {
  .dash-grid.cols-2 { grid-template-columns: 1.2fr 1fr; }
  .dash-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.order-ticket {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s var(--ease);
}

.order-ticket.priority { border-left-color: var(--red); }
.order-ticket.cooking { border-left-color: var(--blue); }
.order-ticket.ready { border-left-color: var(--green); }

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.ticket-items {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.65;
  font-weight: 500;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.table-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.table-tile .status {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-tile.occupied {
  background: rgba(255, 77, 46, 0.08);
  border-color: rgba(255, 77, 46, 0.35);
  color: var(--accent);
}

.table-tile.available {
  background: rgba(13, 159, 110, 0.08);
  border-color: rgba(13, 159, 110, 0.3);
  color: var(--green);
}

.table-tile.reserved {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

.table-tile.cleaning {
  background: rgba(229, 72, 77, 0.08);
  border-color: rgba(229, 72, 77, 0.3);
  color: var(--red);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.panel-pad { padding: 20px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding-top: 10px;
}

.chart-bars span {
  flex: 1;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 77, 46, 0.25));
  min-height: 12px;
  transition: height 0.4s var(--ease);
}

.chart-bars span:hover { filter: brightness(1.08); }

.role-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
  padding: 0 20px 40px;
}

.role-switch a {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 600;
}

.role-switch a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Helpers */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.gap-2 { gap: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 768px) {
  :root { --max: 520px; }
  .gallery { height: 400px; }
}

/* DineFlow runtime */
.df-toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 20px + var(--safe-b));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: var(--shadow);
  max-width: 90vw;
  text-align: center;
}
.df-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.df-toast.error { background: var(--red); color: #fff; }

.admin-form .field { margin-bottom: 14px; }
.admin-form .input, .admin-form .textarea, .admin-form select {
  width: 100%;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th, .admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.admin-table th { font-weight: 700; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; }
.stock-out { opacity: 0.55; }
.stock-out .add-btn { pointer-events: none; background: var(--surface-strong); }
.empty-state { text-align: center; padding: 40px 20px; }
.payment-modal {
  position: fixed; inset: 0; background: rgba(15,18,24,0.5);
  display: none; align-items: center; justify-content: center; z-index: 9000; padding: 20px;
}
.payment-modal.open { display: flex; }
.payment-box {
  background: var(--elevated); border-radius: var(--radius);
  padding: 24px; max-width: 360px; width: 100%; box-shadow: var(--shadow);
}
.login-overlay {
  position: fixed; inset: 0; background: rgba(15,18,24,0.45);
  display: none; align-items: flex-end; justify-content: center; z-index: 8000;
}
.login-overlay.open { display: flex; }
.login-sheet {
  background: var(--elevated); border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px; width: 100%; max-width: var(--max);
}
