/* ═══════════════════════════════════════════════════════════════════════════
   CUSTOMER PORTAL  (public_html/index.html)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Root ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --saffron:   #E8581A;
  --saffron-d: #C44612;
  --turmeric:  #D4A017;
  --cream:     #FDF8F0;
  --spice:     #1A0A00;
  --spice-mid: #4A2800;
  --spice-lt:  #8B5A2B;
  --pepper:    #2D1B0E;
  --rose:      #C0392B;
  --mint:      #1B6B3A;
  --card:      #FFFFFF;
  --border:    #EDE4D8;
  --muted:     #8B7355;
  --shadow-sm: 0 2px 8px rgba(26,10,0,.07);
  --shadow:    0 6px 24px rgba(26,10,0,.10);
  --shadow-lg: 0 16px 48px rgba(26,10,0,.16);
  --r:         16px;
  --r-sm:      10px;
  --font-d:    'Roboto', sans-serif;
  --font-b:    'Roboto', sans-serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b); background: var(--cream); color: var(--spice);
  min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column;
}
img { display: block; max-width: 100%; }
button { font-family: var(--font-b); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-b); outline: none; }

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ── Noise texture overlay ─────────────────────────────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  opacity: .4;
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex  { display: flex; }
.col   { flex-direction: column; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.grow  { flex: 1; }
.center { align-items: center; justify-content: center; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 99px; font-size: 14px; font-weight: 600;
  transition: all .22s cubic-bezier(.34,1.56,.64,1); user-select: none;
  white-space: nowrap;
}
.btn-fire {
  background: linear-gradient(135deg, var(--saffron), var(--rose));
  color: #fff; box-shadow: 0 4px 18px rgba(232,88,26,.35);
}
.btn-fire:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,88,26,.45); }
.btn-fire:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--spice); border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--border); }
.btn-outline {
  background: transparent; color: var(--saffron); border: 1.5px solid var(--saffron);
}
.btn-outline:hover { background: var(--saffron); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff; box-shadow: 0 4px 18px rgba(220,38,38,.3);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(220,38,38,.4); }
.btn-danger:active { transform: translateY(0); }
.btn-icon {
  width: 38px; height: 38px; border-radius: 50%; padding: 0; justify-content: center;
  font-size: 18px;
}

/* ── Page sections ─────────────────────────────────────────────────────────── */
.page { display: none; }
.page.active { display: block; flex: 1; }

/* ── NAV ───────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(253,248,240,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(16px, 5vw, 80px);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-d); font-size: 26px; font-weight: 700; color: var(--spice);
  display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
}
.nav-logo span { color: var(--saffron); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500;
  color: var(--muted); background: transparent; transition: all .2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--spice); background: var(--border); }
.cart-btn {
  position: relative; padding: 10px 18px; background: var(--spice);
  color: #fff; border-radius: 99px; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: all .2s;
}
.cart-btn:hover { background: var(--saffron); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--saffron); color: #fff; border-radius: 50%;
  width: 20px; height: 20px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream); transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.show { transform: scale(1); }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: var(--pepper);
  min-height: min(90vh, 640px);
  display: flex; align-items: center;
  padding: 80px clamp(20px, 7vw, 120px);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1585937421612-70a008356fbe?w=1400') center/cover no-repeat;
  opacity: .25; filter: saturate(1.4);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,10,0,.92) 40%, rgba(26,10,0,.5) 75%, transparent);
}
/* Decorative spice rings */
.hero-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(212,160,23,.18);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,160,23,.18); border: 1px solid rgba(212,160,23,.35);
  color: var(--turmeric); border-radius: 99px; padding: 6px 16px; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; margin-bottom: 22px;
  animation: fadeUp .6s .1s both;
}
.hero h1 {
  font-family: var(--font-d); font-size: clamp(44px, 7vw, 80px); font-weight: 700;
  color: #fff; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 20px;
  animation: fadeUp .6s .2s both;
}
.hero h1 em { font-style: italic; color: var(--turmeric); }
.hero p {
  color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.6; margin-bottom: 36px;
  font-weight: 300; animation: fadeUp .6s .3s both;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .6s .4s both; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 52px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
  animation: fadeUp .6s .5s both;
}
.hero-stat-num { font-family: var(--font-d); font-size: 36px; font-weight: 700; color: #fff; line-height: 1; }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ── MENU PAGE ─────────────────────────────────────────────────────────────── */
.menu-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0; min-height: calc(100vh - 64px);
}
/* Sidebar */
.menu-sidebar {
  position: sticky; top: 64px; height: calc(100vh - 64px);
  overflow-y: auto; border-right: 1px solid var(--border);
  padding: 28px 0; background: #fff;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 0 20px; margin-bottom: 8px; margin-top: 20px;
}
.sidebar-section-label:first-child { margin-top: 0; }
.sidebar-cat {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted);
  border-left: 3px solid transparent; transition: all .18s;
}
.sidebar-cat:hover { color: var(--spice); background: var(--cream); }
.sidebar-cat.active { color: var(--saffron); background: rgba(232,88,26,.06); border-left-color: var(--saffron); font-weight: 600; }
.sidebar-cat-icon { font-size: 18px; width: 24px; text-align: center; }
.sidebar-cat-count { margin-left: auto; font-size: 12px; color: var(--muted); }
/* Menu main area */
.menu-main { padding: 28px clamp(16px, 3vw, 40px); }
.menu-topbar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap;
}
.search-wrap {
  flex: 1; min-width: 200px; max-width: 380px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 99px;
  padding: 10px 18px; transition: border .2s;
}
.search-wrap:focus-within { border-color: var(--saffron); }
.search-wrap svg { color: var(--muted); flex-shrink: 0; }
.search-wrap input { border: none; background: transparent; font-size: 14px; width: 100%; color: var(--spice); }
.search-wrap input::placeholder { color: var(--muted); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  cursor: pointer; transition: all .18s; user-select: none;
}
.chip:hover { border-color: var(--saffron); color: var(--saffron); }
.chip.on { background: var(--saffron); border-color: var(--saffron); color: #fff; }
/* Featured banner */
.featured-banner {
  background: linear-gradient(115deg, var(--pepper) 0%, var(--spice-mid) 100%);
  border-radius: var(--r); padding: 28px 32px; margin-bottom: 32px;
  display: flex; align-items: flex-start; justify-content: flex-start; gap: 20px;
  overflow: hidden; position: relative;
  min-height: 140px;
}
.featured-banner::before {
  content: ''; position: absolute; right: -20px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(212,160,23,.12); pointer-events: none;
}
.featured-banner > div {
  max-width: calc(100% - 150px);
  position: relative;
  z-index: 1;
}
.featured-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--turmeric); text-transform: uppercase; margin-bottom: 6px; }
.featured-name { font-family: var(--font-d); font-size: 28px; color: #fff; font-weight: 700; }
.featured-desc { font-size: 14px; color: rgba(255,255,255,.65); margin-top: 6px; }
.featured-img {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.15);
  position: absolute;
  top: 16px;
  right: 16px;
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
  z-index: 2;
}
/* Category section */
.cat-section { margin-bottom: 40px; }
.cat-heading {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-family: var(--font-d); font-size: 26px; font-weight: 700; color: var(--spice);
}
.cat-heading-line { flex: 1; height: 1px; background: var(--border); }
/* Item cards */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.item-card {
  background: var(--card); border-radius: var(--r); border: 1px solid var(--border);
  overflow: hidden; transition: all .25s; cursor: pointer; position: relative;
}
.item-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.item-card-img-wrap { position: relative; height: 180px; overflow: hidden; background: var(--border); }
.item-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.item-card:hover .item-card-img { transform: scale(1.06); }
.item-card-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 52px; background: linear-gradient(135deg, #FEF3C7, #FFF7ED); }
.item-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.item-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .03em; backdrop-filter: blur(6px); }
.badge-popular { background: rgba(212,160,23,.9); color: #fff; }
.badge-special { background: rgba(124,58,237,.85); color: #fff; }
.badge-veg { background: rgba(27,107,58,.88); color: #fff; }
.badge-vegan { background: rgba(27,107,58,.88); color: #fff; }
.badge-hot { background: rgba(192,57,43,.88); color: #fff; }
.fav-btn {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
  transition: all .2s; cursor: pointer;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { background: #FEE2E2; }
.item-card-body { padding: 16px; }
.item-card-name { font-weight: 700; font-size: 16px; margin-bottom: 5px; line-height: 1.3; }
.item-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card-footer { display: flex; align-items: center; justify-content: space-between; }
.item-price { font-family: var(--font-d); font-size: 22px; font-weight: 700; color: var(--saffron); }
.item-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
/* Stepper */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--saffron);
  color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: all .18s; line-height: 1;
}
.stepper-btn:hover { background: var(--saffron-d); transform: scale(1.1); }
.stepper-btn.minus { background: var(--cream); color: var(--spice); border: 1.5px solid var(--border); }
.stepper-qty { font-weight: 700; font-size: 15px; min-width: 20px; text-align: center; }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--saffron); color: #fff;
  border: none; font-size: 22px; font-weight: 400; display: flex; align-items: center; justify-content: center;
  transition: all .2s cubic-bezier(.34,1.56,.64,1); line-height: 1;
}
.add-btn:hover { background: var(--saffron-d); transform: scale(1.12); }

/* ── ITEM DETAIL MODAL ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,10,0,.55); backdrop-filter: blur(6px);
  z-index: 900; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-sheet {
  background: var(--card); border-radius: 24px 24px 0 0;
  max-height: 92vh; width: 100%; max-width: 600px;
  overflow-y: auto; transform: translateY(100%);
  transition: transform .4s cubic-bezier(.34,1,.64,1);
}
.modal-img { width: 100%; height: 280px; object-fit: cover; }
.modal-img-placeholder { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 80px; background: linear-gradient(135deg, #FEF3C7, #FFF7ED); }
.modal-body { padding: 24px; }
.modal-name { font-family: var(--font-d); font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.modal-price { font-family: var(--font-d); font-size: 28px; color: var(--saffron); font-weight: 700; margin-bottom: 14px; }
.modal-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.modal-tag { padding: 5px 13px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.modal-tag.veg { background: #DCFCE7; color: #15803D; }
.modal-tag.spice { background: #FEF3C7; color: #92400E; }
.modal-tag.time { background: #DBEAFE; color: #1D4ED8; }
.modal-tag.cal { background: #F3E8FF; color: #6D28D9; }
.modal-tag.allergen { background: #FEE2E2; color: #B91C1C; }
.modal-instructions label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.modal-instructions textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; resize: none; height: 72px;
  transition: border .2s; background: var(--cream); color: var(--spice);
}
.modal-instructions textarea:focus { border-color: var(--saffron); background: #fff; }
.modal-footer {
  padding: 18px 24px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; bottom: 0; background: var(--card);
}
.modal-close-btn {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px); border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── CART PANEL ────────────────────────────────────────────────────────────── */
.cart-panel {
  position: fixed; right: 0; top: 0; bottom: 0; width: 400px;
  background: var(--card); box-shadow: -8px 0 40px rgba(26,10,0,.15);
  z-index: 700; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.34,1,.64,1);
  display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-panel-overlay {
  position: fixed; inset: 0; z-index: 699; background: rgba(26,10,0,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-panel-overlay.open { opacity: 1; pointer-events: all; }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-family: var(--font-d); font-size: 26px; font-weight: 700; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; gap: 12px; }
.cart-empty-icon { font-size: 56px; }
.cart-empty p { color: var(--muted); font-size: 15px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--border); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.cart-item-note { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-price { font-weight: 700; font-size: 15px; color: var(--saffron); }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); }
.cart-summary { margin-bottom: 16px; }
.cart-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.cart-row.total { font-weight: 700; font-size: 17px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 5px; }
.cart-row .saffron { color: var(--saffron); }
.promo-wrap { display: flex; gap: 8px; margin-bottom: 14px; }
.promo-input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; background: var(--cream); text-transform: uppercase;
  transition: border .2s;
}
.promo-input:focus { border-color: var(--saffron); background: #fff; }
.promo-applied { font-size: 12px; color: var(--mint); font-weight: 600; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.promo-remove { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; line-height: 1; padding: 2px 4px; border-radius: 4px; }
.promo-remove:hover { color: var(--rose); background: rgba(192,57,43,.08); }

/* ── CHECKOUT PAGE ─────────────────────────────────────────────────────────── */
.checkout-wrap { max-width: 860px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 80px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.checkout-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.checkout-card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.checkout-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--saffron); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkout-card-title { font-size: 16px; font-weight: 700; }
.checkout-card-body { padding: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: 6px; }
.form-control {
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 15px; font-size: 14px; background: var(--cream); color: var(--spice);
  transition: all .2s;
}
.form-control:focus { border-color: var(--saffron); background: #fff; box-shadow: 0 0 0 3px rgba(232,88,26,.1); }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
                    radial-gradient(circle at right center, rgba(0,0,0,.2) 0%, rgba(0,0,0,0) 22%);
  background-position: calc(100% - 32px) 50%, calc(100% - 24px) 50%, calc(100% - 18px) 50%;
  background-size: 8px 8px, 8px 8px, 12px 12px;
  background-repeat: no-repeat;
  padding-right: 42px;
  min-height: 42px;
}
.form-select:focus {
  border-color: var(--saffron);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,88,26,.1);
}

.modal-instructions label.form-label { margin-bottom: 6px; display: block; }
.modal-addons { display: flex; flex-direction: column; gap: 8px; }
.modal-addon-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color 0.15s;
}
.modal-addon-row:has(input:checked) { border-color: var(--saffron); background: rgba(212,160,23,.06); }
.modal-addon-row input[type="checkbox"] { accent-color: var(--saffron); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.modal-addon-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--spice); }
.modal-addon-price { font-size: 13px; font-weight: 700; color: var(--saffron); }

.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-option { border: 2px solid var(--border); border-radius: 12px; padding: 16px; cursor: pointer; transition: all .2s; text-align: center; }
.type-option:hover { border-color: var(--saffron); }
.type-option.selected { border-color: var(--saffron); background: rgba(232,88,26,.05); }
.type-option-icon { font-size: 28px; margin-bottom: 6px; }
.type-option-label { font-weight: 700; font-size: 14px; }
.type-option-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
/* Order summary sticky card */
.order-summary-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--border); padding: 24px; position: sticky; top: 84px; }
.summary-title { font-family: var(--font-d); font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.summary-item { display: flex; gap: 10px; margin-bottom: 14px; }
.summary-item-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--border); flex-shrink: 0; }
.summary-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.summary-item-qty { font-size: 12px; color: var(--muted); }
.summary-item-price { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--saffron); flex-shrink: 0; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.summary-row.total { font-weight: 800; font-size: 18px; padding-top: 10px; color: var(--spice); }
.summary-row.total .saffron { color: var(--saffron); font-family: var(--font-d); font-size: 22px; }
.pay-note { background: var(--cream); border-radius: 10px; padding: 12px; margin: 16px 0; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }

/* ── CONFIRMATION PAGE ─────────────────────────────────────────────────────── */
.confirm-wrap { max-width: 520px; margin: 0 auto; padding: 60px 20px 80px; text-align: center; }
.confirm-icon { font-size: 72px; margin-bottom: 20px; animation: pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from{transform:scale(0)} to{transform:scale(1)} }
.confirm-title { font-family: var(--font-d); font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.confirm-sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; line-height: 1.6; }
.confirm-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--border); padding: 24px; text-align: left; margin-bottom: 24px; }
.confirm-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row strong { font-weight: 700; }

/* ── ORDER TRACKING ────────────────────────────────────────────────────────── */
.tracking-wrap { max-width: 560px; margin: 0 auto; padding: 40px 20px 80px; }
.tracking-status-card {
  background: linear-gradient(135deg, var(--pepper), var(--spice-mid));
  border-radius: 20px; padding: 32px; text-align: center; color: #fff; margin-bottom: 28px;
}
.tracking-status-emoji { font-size: 52px; margin-bottom: 12px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.tracking-status-title { font-family: var(--font-d); font-size: 34px; font-weight: 700; }
.tracking-status-sub { color: rgba(255,255,255,.65); margin-top: 6px; font-size: 15px; }
.tracking-eta { background: rgba(212,160,23,.2); border: 1px solid rgba(212,160,23,.4); border-radius: 99px; padding: 8px 20px; display: inline-flex; align-items: center; gap: 8px; color: var(--turmeric); font-size: 14px; font-weight: 600; margin-top: 14px; }
.steps { position: relative; padding: 8px 0; }
.step { display: flex; gap: 16px; padding-bottom: 28px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step-line { position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.step.done .step-line { background: var(--saffron); }
.step-dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; z-index: 1; transition: all .4s; }
.step.done .step-dot { background: var(--saffron); border-color: var(--saffron); animation: stepPop .4s cubic-bezier(.34,1.56,.64,1); }
.step.current .step-dot { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232,88,26,.2); }
@keyframes stepPop { from{transform:scale(0.7)} to{transform:scale(1)} }
.step-info { padding-top: 8px; }
.step-title { font-weight: 700; font-size: 15px; }
.step-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.step.pending .step-title, .step.pending .step-desc { color: var(--muted); }

/* ── ORDERS HISTORY ────────────────────────────────────────────────────────── */
.history-wrap { max-width: 680px; margin: 0 auto; padding: 40px 20px 80px; }
.history-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--border); padding: 20px; margin-bottom: 14px; cursor: pointer; transition: all .2s; }
.history-card:hover { box-shadow: var(--shadow); border-color: var(--saffron); }
.history-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.history-order-id { font-family: monospace; font-size: 13px; color: var(--muted); }
.history-status { padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-received  { background: #DBEAFE; color: #1D4ED8; }
.status-preparing { background: #FEF3C7; color: #92400E; }
.status-ready     { background: #DCFCE7; color: #15803D; }
.status-completed { background: #F3E8FF; color: #6D28D9; }
.status-cancelled { background: #FEE2E2; color: #B91C1C; }

/* ── TOAST ─────────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--spice); color: #fff; border-radius: 99px;
  padding: 12px 22px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  transform: translateY(60px) scale(.9); opacity: 0;
  transition: all .4s cubic-bezier(.34,1.56,.64,1); pointer-events: none;
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }
.toast.success { background: #15803D; }
.toast.error   { background: #B91C1C; }

/* ── PAGE HEADER ───────────────────────────────────────────────────────────── */
.page-header { padding: 36px clamp(16px, 5vw, 80px) 0; margin-bottom: 4px; }
.page-header h2 { font-family: var(--font-d); font-size: 40px; font-weight: 700; }
.page-header p { color: var(--muted); font-size: 16px; margin-top: 6px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { color: var(--saffron); }

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.animate-in { animation: fadeUp .5s ease both; }

/* ── RESTAURANT STATUS ──────────────────────────────────────────────────────── */
.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 16px;
  animation: fadeUp .5s .15s both;
}
.hero-status-tag.status-open {
  background: rgba(27,107,58,.25);
  border: 1px solid rgba(27,107,58,.45);
  color: #6EE7A0;
}
.hero-status-tag.status-closed {
  background: rgba(192,57,43,.25);
  border: 1px solid rgba(192,57,43,.45);
  color: #FCA5A5;
}
.menu-closed-banner {
  background: linear-gradient(135deg, rgba(192,57,43,.12), rgba(192,57,43,.06));
  border: 1px solid rgba(192,57,43,.25);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rose);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── MOBILE AUTH (inside nav dropdown) ─────────────────────────────────────── */
.nav-mobile-auth { display: none; }
.nav-mobile-auth-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.nav-mobile-user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--cream); border-radius: 10px;
}
.nav-mobile-user-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.nav-mobile-user-text span:first-child { font-weight: 600; font-size: 14px; color: var(--spice); }
.nav-mobile-user-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ── HAMBURGER ──────────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--border); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--spice);
  border-radius: 2px;
  transition: all .3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

/* Large tablet / small desktop: ≤1024px */
@media(max-width:1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}

/* Tablet: ≤900px */
@media(max-width:900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .menu-sidebar { display: none; }
  .cart-panel { width: 100%; max-width: 420px; }
  .form-row { grid-template-columns: 1fr; }
}

/* Large phones / tablet portrait: ≤768px — hamburger nav */
@media(max-width:768px) {
  nav {
    height: 56px;
    padding: 0 clamp(12px, 4vw, 24px);
  }
  .nav-logo { font-size: 20px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(253,248,240,.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    z-index: 498;
    box-shadow: 0 8px 24px rgba(26,10,0,.12);
  }
  .nav-links.open { display: flex; }
  .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
  }
  /* Hide desktop auth from top bar; it lives in the dropdown instead */
  #navAuthBtn, #navUserInfo { display: none !important; }
  /* Show mobile auth section inside the dropdown */
  .nav-mobile-auth { display: block; width: 100%; }

  .cart-panel { top: 56px; }
  .hero { min-height: min(70vh, 520px); padding: 56px clamp(16px, 5vw, 40px); }
  .hero p { font-size: 16px; }
  .hero-stats { gap: 24px; margin-top: 36px; padding-top: 24px; }
  .page-header { padding: 24px clamp(12px, 4vw, 32px) 0; }
  .page-header h2 { font-size: 30px; }
  .menu-main { padding: 20px clamp(12px, 3vw, 24px); }
}

/* Phones: ≤600px */
@media(max-width:600px) {
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 28px; }
  .items-grid { grid-template-columns: 1fr; }
  .featured-img { display: none; }
  .featured-name { font-size: 22px; }
  .featured-banner { padding: 20px; }
  .featured-banner > div { max-width: 100%; }
  .cart-panel { max-width: 100%; }
  .cart-label { display: none; }
  .cart-btn { padding: 10px 14px; }
  .modal-name { font-size: 26px; }
  .modal-price { font-size: 22px; }
  .modal-img { height: 220px; }
  .tracking-status-title { font-size: 26px; }
  .confirm-title { font-size: 30px; }
  .history-card-top { flex-direction: column; gap: 6px; }
  .summary-row.total .saffron { font-size: 18px; }
  .checkout-wrap { padding: 24px clamp(12px, 4vw, 24px) 60px; }
}

/* Small phones: ≤480px */
@media(max-width:480px) {
  .hero { padding: 48px 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 12px; margin-top: 28px; }
  .cart-header h2 { font-size: 20px; }
  .menu-topbar { flex-direction: column; align-items: stretch; }
  .search-wrap { max-width: 100%; }
  .checkout-card-body { padding: 16px; }
  .auth-card { padding: 24px; }
  .modal-sheet { border-radius: 20px 20px 0 0; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 14px 16px; gap: 12px; }
  .type-toggle { grid-template-columns: 1fr 1fr; }
  .type-option { padding: 12px 8px; }
  .tracking-wrap, .history-wrap, .confirm-wrap { padding: 24px 16px 60px; }
}

/* Very small phones: ≤375px */
@media(max-width:375px) {
  .nav-logo { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .items-grid { gap: 12px; }
  .item-card-body { padding: 12px; }
  .stepper-btn { width: 28px; height: 28px; font-size: 16px; }
}

/* ── AUTH MODAL ─────────────────────────────────────────────────────────────── */
.auth-overlay { position:fixed;inset:0;background:rgba(26,10,0,.6);backdrop-filter:blur(8px);z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s; }
.auth-overlay.open { opacity:1;pointer-events:all; }
.auth-card { background:var(--card);border-radius:20px;padding:36px;width:100%;max-width:420px;box-shadow:var(--shadow-lg);position:relative;margin:16px; }
.auth-tabs { display:flex;border-bottom:1px solid var(--border);margin-bottom:24px; }
.auth-tab { flex:1;text-align:center;padding:12px;font-size:15px;font-weight:600;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;transition:all .2s; }
.auth-tab.active { color:var(--saffron);border-bottom-color:var(--saffron); }
.auth-close { position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:50%;background:var(--cream);border:none;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center; }
.auth-err { color:var(--rose);font-size:13px;margin-top:6px;min-height:18px; }
.nav-user-avatar { width:30px;height:30px;border-radius:50%;background:var(--saffron);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0; }


/* ═══════════════════════════════════════════════════════════════════════════
   ADMIN PORTAL  (public_html/admin/index.html)
   ═══════════════════════════════════════════════════════════════════════════ */

.admin-portal :root,
.admin-portal * {
  /* Admin-specific custom properties are declared inline on :root below */
}

/* Admin :root — scoped via the body class set by admin/index.html */
body.admin-portal {
  --orange: #E8581A;
  --orange-light: #F97316;
  --orange-pale: #FFF7ED;
  --red: #C0392B;
  --gold: #D4A017;
  --gold-light: #FEF3C7;
  --green: #16A34A;
  --green-light: #DCFCE7;
  --blue: #2563EB;
  --blue-light: #DBEAFE;
  --purple: #7C3AED;
  --purple-light: #EDE9FE;
  --bg: #FAFAF8;
  --sidebar-bg: #1C1410;
  --sidebar-text: #E8D5C4;
  --sidebar-active: #E8581A;
  --card: #FFFFFF;
  --border: #E8E0D8;
  --text: #1A1208;
  --text-muted: #7A6A5A;
  --shadow: 0 2px 12px rgba(30, 15, 5, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 15, 5, 0.14);
  --radius: 14px;
  --font-display: 'Roboto', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

body.admin-portal {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
body.admin-portal .sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

body.admin-portal .sidebar-logo {
  padding: 28px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-portal .sidebar-logo h1 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

body.admin-portal .sidebar-logo p {
  color: var(--orange-light);
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

body.admin-portal .sidebar-nav {
  padding: 16px 0;
  flex: 1;
}

body.admin-portal .nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 213, 196, 0.4);
  padding: 12px 24px 6px;
}

body.admin-portal .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  cursor: pointer;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

body.admin-portal .nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body.admin-portal .nav-item.active {
  background: rgba(232, 88, 26, 0.15);
  color: #fff;
  border-left-color: var(--orange);
}

body.admin-portal .nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

body.admin-portal .nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
}

body.admin-portal .sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-portal .admin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.admin-portal .admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

body.admin-portal .admin-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

body.admin-portal .admin-role {
  font-size: 11px;
  color: var(--sidebar-text);
  opacity: 0.6;
}

/* Main */
body.admin-portal .main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body.admin-portal .topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-portal .topbar-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

body.admin-portal .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.admin-portal .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

body.admin-portal .status-label {
  font-size: 12px;
  color: var(--text-muted);
}

body.admin-portal .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}

body.admin-portal .btn-primary {
  background: var(--orange);
  color: #fff;
}

body.admin-portal .btn-primary:hover {
  background: var(--red);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 88, 26, 0.35);
}

body.admin-portal .btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

body.admin-portal .btn-ghost:hover {
  background: var(--bg);
}

body.admin-portal .btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

body.admin-portal .btn-danger {
  background: #FEE2E2;
  color: #DC2626;
}

body.admin-portal .btn-danger:hover {
  background: #DC2626;
  color: #fff;
}

/* Content area */
body.admin-portal .content {
  padding: 28px 32px;
  flex: 1;
}

/* View toggle */
body.admin-portal .view {
  display: none;
}

body.admin-portal .view.active {
  display: block;
}

/* Stat cards */
body.admin-portal .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

body.admin-portal .stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.admin-portal .stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-portal .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.admin-portal .stat-icon.orange { background: var(--orange-pale); }
body.admin-portal .stat-icon.green  { background: var(--green-light); }
body.admin-portal .stat-icon.blue   { background: var(--blue-light); }
body.admin-portal .stat-icon.gold   { background: var(--gold-light); }

body.admin-portal .stat-icon svg {
  width: 20px;
  height: 20px;
}

body.admin-portal .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.admin-portal .stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-display);
}

body.admin-portal .stat-change {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* Tables */
body.admin-portal .table-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

body.admin-portal .table-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-portal .table-title {
  font-size: 16px;
  font-weight: 600;
}

body.admin-portal table {
  width: 100%;
  border-collapse: collapse;
}

body.admin-portal th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

body.admin-portal td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

body.admin-portal tr:last-child td { border-bottom: none; }
body.admin-portal tr:hover td { background: #FDFAF7; }

body.admin-portal .order-id {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
}

body.admin-portal .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

body.admin-portal .badge.received   { background: var(--blue-light);   color: var(--blue); }
body.admin-portal .badge.preparing  { background: var(--orange-pale);  color: var(--orange); }
body.admin-portal .badge.ready      { background: var(--green-light);  color: var(--green); }
body.admin-portal .badge.completed  { background: var(--purple-light); color: var(--purple); }
body.admin-portal .badge.cancelled  { background: #FEE2E2; color: #DC2626; }

body.admin-portal .status-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  background: var(--bg);
}

/* Search & Filters */
body.admin-portal .toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

body.admin-portal .search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  flex: 1;
  max-width: 340px;
}

body.admin-portal .search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}

body.admin-portal .search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  width: 100%;
}

body.admin-portal .filter-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--card);
  cursor: pointer;
}

/* Menu item grid */
body.admin-portal .menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

body.admin-portal .menu-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}

body.admin-portal .menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

body.admin-portal .menu-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--border);
}

body.admin-portal .menu-card-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, var(--orange-pale), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 40px;
}

body.admin-portal .menu-card-body { padding: 16px; }

body.admin-portal .menu-card-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

body.admin-portal .menu-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.admin-portal .menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-portal .menu-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
}

body.admin-portal .menu-card-actions { display: flex; gap: 6px; }

body.admin-portal .menu-card-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

body.admin-portal .chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

body.admin-portal .chip.veg         { background: var(--green-light); color: var(--green); }
body.admin-portal .chip.popular     { background: var(--gold-light);  color: #92400E; }
body.admin-portal .chip.unavailable { background: #FEE2E2; color: #DC2626; }

body.admin-portal .toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

body.admin-portal .toggle-switch input { opacity: 0; width: 0; height: 0; }

body.admin-portal .toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #D1D5DB;
  border-radius: 99px;
  transition: 0.3s;
}

body.admin-portal .toggle-slider:before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

body.admin-portal input:checked + .toggle-slider { background: var(--green); }
body.admin-portal input:checked + .toggle-slider:before { transform: translateX(18px); }

/* Modal */
body.admin-portal .modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.admin-portal .modal-overlay.open { display: flex; }

body.admin-portal .modal {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

body.admin-portal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

body.admin-portal .modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

body.admin-portal .modal-close {
  background: var(--bg);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.admin-portal .form-group { margin-bottom: 16px; }

body.admin-portal .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

body.admin-portal .form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border 0.2s;
  background: var(--bg);
}

body.admin-portal .form-input:focus {
  border-color: var(--orange);
  background: #fff;
}

body.admin-portal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.admin-portal .form-select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

body.admin-portal .form-select:focus { border-color: var(--orange); }

body.admin-portal textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

body.admin-portal .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.admin-portal .form-check input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Order detail panel */
body.admin-portal .order-detail {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

body.admin-portal .order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

body.admin-portal .order-item-row:last-child { border-bottom: none; }

body.admin-portal .order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 4px;
  font-weight: 700;
  font-size: 16px;
}

/* Toast */
body.admin-portal .toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

body.admin-portal .toast.show  { transform: translateY(0); opacity: 1; }
body.admin-portal .toast.success { background: #15803D; }
body.admin-portal .toast.error   { background: #DC2626; }

/* New order alert */
body.admin-portal .new-order-alert {
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  display: none;
}

body.admin-portal .new-order-alert.show {
  display: flex;
  animation: adminPulse 2s infinite;
}

@keyframes adminPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 88, 26, 0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(232, 88, 26, 0); }
}

body.admin-portal .alert-icon  { font-size: 28px; }
body.admin-portal .alert-title { font-weight: 700; font-size: 15px; }
body.admin-portal .alert-sub   { font-size: 13px; opacity: 0.85; }

/* Charts */
body.admin-portal .charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

body.admin-portal .chart-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

body.admin-portal .chart-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

body.admin-portal .bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-bottom: 4px;
}

body.admin-portal .bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

body.admin-portal .bar {
  background: linear-gradient(to top, var(--orange), var(--orange-light));
  border-radius: 4px 4px 0 0;
  width: 100%;
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
}

body.admin-portal .bar-label { font-size: 10px; color: var(--text-muted); font-weight: 500; }
body.admin-portal .bar-val   { font-size: 10px; font-weight: 700; color: var(--text); }

body.admin-portal .donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

body.admin-portal .legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.admin-portal .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.admin-portal .legend-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 8px;
  flex: 1;
}

body.admin-portal .legend-val { font-size: 13px; font-weight: 600; }

body.admin-portal .login-screen {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sidebar-bg);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

body.admin-portal .login-screen.show { display: flex; }

body.admin-portal .login-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

body.admin-portal .login-logo {
  text-align: center;
  margin-bottom: 28px;
}

body.admin-portal .login-logo h1 {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--orange);
}

body.admin-portal .login-logo p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

body.admin-portal .ws-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
}

body.admin-portal .ws-indicator.connected    { background: var(--green-light); color: var(--green); }
body.admin-portal .ws-indicator.disconnected { background: #FEE2E2; color: #DC2626; }

@media (max-width: 1100px) {
  body.admin-portal .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  body.admin-portal .charts-row  { grid-template-columns: 1fr; }
}

/* ── Site Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--pepper, #1C1410);
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(16px,5vw,80px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 160px;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.footer-col {
  min-width: 140px;
}

.footer-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--turmeric, #D4A017);
  margin-bottom: 10px;
}

.footer-col-body {
  line-height: 1.8;
  color: rgba(255,255,255,.7);
}

.footer-col-body a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.footer-col-body a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px clamp(16px,5vw,80px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  text-align: center;
}
#footerPoweredBy::before {
  content: '·';
  padding: 0 10px;
  opacity: 0.5;
}

.footer-bottom a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,.8);
}

.footer-sep {
  padding: 0 8px;
  opacity: 0.3;
  user-select: none;
}

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 24px; }
}

/* ── About Us page responsive ── */
@media (max-width: 768px) {
  #page-about section > div[style*="grid-template-columns:1fr 1fr"],
  #page-about section > div > div[style*="grid-template-columns:300px"] {
    grid-template-columns: 1fr !important;
  }
  #page-about section > div > div[style*="width:1px"] {
    width: 100% !important;
    height: 1px !important;
    align-self: auto !important;
    min-height: 0 !important;
  }
}
