/* ============ tokens & base ============ */
:root {
  --bg: #fbf7f0;
  --surface: #fffdf9;
  --surface-2: #f6efe4;
  --ink: #241b14;
  --ink-soft: #4a3c31;
  --muted: #857465;
  --line: #eadfce;
  --brand: #d9482b;
  --brand-dark: #b93a20;
  --brand-soft: #fdece5;
  --gold: #e9a23b;
  --gold-soft: #fbf0d9;
  --green: #23694a;
  --green-soft: #e4f2ea;
  --red: #b3261e;
  --red-soft: #fbe7e5;
  --blue: #315d9e;
  --blue-soft: #e8effa;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(40, 25, 12, .05), 0 6px 18px -10px rgba(40, 25, 12, .18);
  --shadow-md: 0 2px 4px rgba(40, 25, 12, .05), 0 18px 40px -22px rgba(40, 25, 12, .35);
  --shadow-lg: 0 30px 80px -30px rgba(30, 18, 8, .45);
  --font-body: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
code { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; background: rgba(0,0,0,.06); padding: 2px 6px; border-radius: 6px; font-size: .85em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.muted-light { color: #b9a894; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ announce + header ============ */
.announce { background: #1e1611; color: #f3e6d6; font-size: 12.5px; letter-spacing: .02em; }
.announce-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.announce-code strong { color: #ffc98f; letter-spacing: .06em; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 247, 240, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 22, 10, .08);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(140deg, #e85a35, #c43a1e); border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(185, 58, 32, .8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; }
.brand-text small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.main-nav a {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.main-nav a:hover { background: rgba(36, 27, 20, .06); }
.main-nav a.active { background: var(--ink); color: #fff8ee; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-link {
  font-size: 13px; font-weight: 700; color: var(--brand-dark); padding: 8px 12px; border-radius: 100px;
  border: 1px dashed rgba(217, 72, 43, .5); background: rgba(253, 236, 229, .6);
}
.admin-link:hover { background: var(--brand-soft); }
.account-btn {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: border-color .18s, box-shadow .18s;
}
.account-btn:hover { border-color: #d9c6ae; box-shadow: var(--shadow-sm); }
.account-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 15px; overflow: hidden;
}
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--ink); color: #fff7eb; border: none; padding: 10px 16px; border-radius: 100px;
  font-size: 13.5px; font-weight: 700; transition: transform .15s, background .18s;
}
.cart-btn:hover { background: #3a2a1e; transform: translateY(-1px); }
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 100px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800;
}
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ============ generic ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 700; letter-spacing: .01em; cursor: pointer;
  transition: transform .15s, background .18s, box-shadow .18s, border-color .18s;
  text-decoration: none; line-height: 1.2; font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px rgba(185, 58, 32, .8); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--ink); color: #fff8ee; }
.btn-dark:hover { background: #3a2a1e; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #cdb99f; background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: rgba(36,27,20,.06); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn-danger:hover { background: #f6d5d2; }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--brand-dark); font-weight: 700; font-size: 13.5px; cursor: pointer; padding: 4px 2px; font-family: var(--font-body); }
.link-btn:hover { text-decoration: underline; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-dark); }
.section { padding: 58px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.page-loading { min-height: 50vh; display: grid; place-items: center; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; display: inline-block;
  border: 3px solid rgba(217, 72, 43, .18); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============ hero ============ */
.hero {
  position: relative; margin-top: 26px; border-radius: 28px; overflow: hidden;
  min-height: 480px; display: flex; align-items: center;
  background: #181008; box-shadow: var(--shadow-md);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 11, 6, .94) 0%, rgba(18, 11, 6, .78) 38%, rgba(18, 11, 6, .18) 72%, rgba(18, 11, 6, .05) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 56px clamp(28px, 6vw, 64px); max-width: 620px; color: #fdf3e5; }
.hero .eyebrow { color: #f5b26b; display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow::before { content: ''; width: 26px; height: 1px; background: #f5b26b; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 16px 0 16px; color: #fff8ec; }
.hero h1 em { font-style: italic; color: #f6b76c; }
.hero p.lead { font-size: 16px; color: #e8d9c5; max-width: 460px; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-secondary { background: rgba(255, 248, 236, .1); border-color: rgba(255, 248, 236, .3); color: #fff8ec; backdrop-filter: blur(6px); }
.hero .btn-secondary:hover { background: rgba(255, 248, 236, .18); }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong { font-family: var(--font-display); font-size: 24px; color: #fff3e2; }
.hero-stat span { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #c9b49c; margin-top: 2px; }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 0; }
.value-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: rgba(255, 253, 249, .7);
}
.value-card .v-icon { font-size: 24px; line-height: 1; }
.value-card strong { display: block; font-size: 14.5px; }
.value-card span { font-size: 13px; color: var(--muted); }

/* ============ chips & categories ============ */
.chip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; transition: all .16s; font-family: var(--font-body);
}
.chip:hover { border-color: #d3bfa6; transform: translateY(-1px); }
.chip.active { background: var(--ink); color: #fff8ee; border-color: var(--ink); }
.chip .chip-emoji { font-size: 15px; }

/* ============ menu grid ============ */
.menu-page-head { padding: 40px 0 8px; }
.menu-page-head h1 { font-size: clamp(32px, 4.5vw, 46px); margin: 8px 0 8px; }
.menu-page-head p { color: var(--muted); max-width: 560px; }

.menu-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 8px;
}
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px; padding: 0 16px;
  height: 46px; transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: #d3b795; box-shadow: 0 0 0 4px rgba(217, 72, 43, .07); }
.search-box svg { color: var(--muted); flex-shrink: 0; }
.search-box input { border: none; outline: none; background: none; width: 100%; font-family: inherit; font-size: 14px; color: var(--ink); }
.select {
  height: 46px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 40px 0 16px; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23857465' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.toggle-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.toggle-pill input { accent-color: var(--green); width: 16px; height: 16px; }
.result-count { font-size: 13px; color: var(--muted); margin-left: auto; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(246px, 1fr)); gap: 20px; }
.item-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; position: relative;
}
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddcbb3; }
.item-thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  background: var(--surface-2);
}
.item-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.5), transparent 55%);
  pointer-events: none;
}
.item-emoji { font-size: clamp(60px, 9vw, 78px); filter: drop-shadow(0 16px 18px rgba(60, 34, 10, .22)); transition: transform .3s; }
.item-card:hover .item-emoji { transform: scale(1.08) rotate(-3deg); }
.cat-biryani { background: linear-gradient(135deg, #fbe7c3, #f1c987); }
.cat-burgers { background: linear-gradient(135deg, #fbe0cf, #efb08a); }
.cat-pizza { background: linear-gradient(135deg, #fbe3cf, #eeb383); }
.cat-bangla { background: linear-gradient(135deg, #f6dcc4, #e2ab7f); }
.cat-sides { background: linear-gradient(135deg, #fdf0cd, #f3d78f); }
.cat-drinks { background: linear-gradient(135deg, #e2f0e2, #b5dcc4); }
.cat-desserts { background: linear-gradient(135deg, #f6dfe5, #edb6c4); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 9px; border-radius: 100px; background: rgba(255, 253, 249, .92); color: var(--ink);
  backdrop-filter: blur(4px); box-shadow: 0 2px 6px rgba(40, 25, 10, .08);
}
.badge.bestseller { background: #2a1c12; color: #ffd9a3; }
.badge.spicy { background: #b3261e; color: #fff; }
.badge.veg { background: var(--green); color: #fff; }
.badge.new { background: var(--gold); color: #3a2405; }
.sold-out-chip {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: 100px;
  background: rgba(36, 27, 20, .85); color: #f5e7d5;
}
.item-card.is-sold-out .item-thumb { filter: grayscale(.65); opacity: .8; }
.item-body { padding: 15px 17px 16px; display: flex; flex-direction: column; flex: 1; }
.item-name { font-family: var(--font-body); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.item-desc { font-size: 12.8px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.item-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.item-meta .star { color: #c07d17; font-weight: 700; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 10px; }
.price { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.price small { font-family: var(--font-body); font-size: 11px; color: var(--muted); font-weight: 600; }
.add-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-size: 20px; font-weight: 700;
  transition: background .18s, transform .15s, color .18s; flex-shrink: 0;
}
.add-btn:hover { background: var(--brand); color: #fff; transform: scale(1.06); }
.add-btn:disabled { background: var(--surface-2); color: #b3a493; cursor: not-allowed; transform: none; }

/* ============ promo strip / how it works ============ */
.promo-strip {
  margin: 46px 0 8px; border-radius: 24px; padding: 34px clamp(24px, 4vw, 46px);
  background: linear-gradient(115deg, #241812 0%, #402314 55%, #6d301a 100%);
  color: #fbeedb; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.promo-strip::after {
  content: '🌶️'; position: absolute; right: 3%; bottom: -34px; font-size: 150px; opacity: .13; transform: rotate(-14deg);
}
.promo-strip h3 { font-size: clamp(24px, 3vw, 34px); color: #fff7e9; margin-bottom: 6px; }
.promo-strip p { color: #d9c0a6; font-size: 14px; }
.promo-code-box {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 248, 236, .1);
  border: 1px dashed rgba(255, 220, 177, .55); padding: 10px 16px; border-radius: 14px;
  font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; letter-spacing: .12em; color: #ffd9a3;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step-num {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-family: var(--font-display); font-size: 18px;
}
.step-card h4 { margin: 16px 0 6px; font-size: 19px; }
.step-card p { font-size: 13.5px; color: var(--muted); }

/* ============ drawer & cart ============ */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 430px; max-width: 96vw; z-index: 80;
  background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(105%);
  transition: transform .32s cubic-bezier(.32, .72, .28, 1); display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.overlay {
  position: fixed; inset: 0; background: rgba(24, 14, 6, .45); z-index: 70; opacity: 0; pointer-events: none;
  transition: opacity .3s; backdrop-filter: blur(2px);
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; padding: 20px 24px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.drawer-head h3 { font-size: 22px; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; cursor: pointer; color: var(--ink); font-size: 18px;
}
.drawer-close:hover { background: var(--surface-2); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-foot { padding: 18px 24px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.cart-line { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-emoji {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; flex-shrink: 0;
  background: var(--surface-2);
}
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-line-name { font-weight: 700; font-size: 14px; }
.cart-line-price { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 30px; height: 30px; border: none; background: none; cursor: pointer; font-size: 16px; color: var(--ink);
  display: grid; place-items: center; transition: background .15s;
}
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.cart-remove { border: none; background: none; cursor: pointer; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px; }
.cart-remove:hover { color: var(--red); }
.promo-form { display: flex; gap: 8px; margin-bottom: 14px; }
.promo-form input {
  flex: 1; height: 42px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 16px; font-family: inherit; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; outline: none;
}
.promo-form input:focus { border-color: #d3b795; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--green-soft);
  border: 1px dashed #a9cdb7; color: var(--green); font-size: 12.5px; font-weight: 700;
  padding: 9px 13px; border-radius: 10px; margin-bottom: 14px;
}
.promo-applied button { border: none; background: none; color: var(--green); cursor: pointer; font-size: 12px; text-decoration: underline; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); padding: 3.5px 0; }
.sum-row.discount { color: var(--green); font-weight: 600; }
.sum-row.total { font-family: var(--font-display); font-size: 21px; color: var(--ink); padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }
.sum-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.drawer-empty { text-align: center; padding: 50px 10px; }
.drawer-empty .big { font-size: 54px; margin-bottom: 12px; }
.drawer-empty h4 { font-size: 21px; margin-bottom: 6px; }
.drawer-empty p { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }

/* ============ modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(24, 14, 6, .5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center; padding: 5vh 18px 40px; overflow-y: auto;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 520px; background: var(--bg); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: popIn .28s cubic-bezier(.2, .9, .3, 1.1); position: relative;
}
.modal.modal-wide { max-width: 780px; }
.modal.modal-item { max-width: 500px; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 26px 0;
}
.modal-head h3 { font-size: 24px; }
.modal-head p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-size: 17px; display: grid; place-items: center; color: var(--ink); flex-shrink: 0;
}
.modal-close:hover { background: var(--surface-2); }
.modal-body { padding: 20px 26px 26px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 26px 24px; flex-wrap: wrap; }
.modal-item-hero { height: 190px; display: grid; place-items: center; font-size: 92px; position: relative; }
.modal-item-hero .badges { top: 16px; left: 16px; }
.item-detail { padding: 6px 26px 26px; }
.item-detail h3 { font-size: 27px; margin-bottom: 8px; }
.item-detail .item-desc { font-size: 14px; min-height: 0; -webkit-line-clamp: unset; }
.detail-meta { display: flex; gap: 16px; margin: 16px 0; font-size: 13px; color: var(--muted); }
.detail-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.detail-foot .qty { height: 44px; }
.detail-foot .qty button { height: 42px; width: 40px; font-size: 19px; }
.detail-foot .qty span { min-width: 34px; font-size: 15px; }

/* ============ forms ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 12px 14px; font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 82px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #d3b795; box-shadow: 0 0 0 4px rgba(217, 72, 43, .07); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-error {
  background: var(--red-soft); color: var(--red); font-size: 12.5px; font-weight: 600;
  padding: 10px 13px; border-radius: 10px; margin-bottom: 14px; display: none;
}
.form-error.show { display: block; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card {
  position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: border-color .15s, background .15s;
}
.radio-card:hover { border-color: #d3bfa6; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card .r-icon { font-size: 20px; }
.radio-card .r-text { display: flex; flex-direction: column; line-height: 1.25; }
.radio-card .r-text strong { font-size: 13px; }
.radio-card .r-text small { font-size: 11px; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(217, 72, 43, .08); }
.checkbox-line { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.checkbox-line input { accent-color: var(--brand); width: 17px; height: 17px; }
.auth-tabs { display: flex; background: var(--surface-2); border-radius: 100px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button {
  flex: 1; border: none; background: none; padding: 9px; border-radius: 100px; font-weight: 700;
  font-size: 13.5px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.auth-tabs button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.demo-creds {
  margin-top: 18px; background: var(--gold-soft); border: 1px dashed #e5c687; border-radius: 12px;
  padding: 12px 14px; font-size: 12px; color: #6b4c12;
}
.demo-creds strong { display: block; margin-bottom: 4px; font-size: 12px; }
.demo-creds button { border: none; background: #fff8e8; border-radius: 8px; padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; margin: 3px 4px 0 0; color: #6b4c12; }
.demo-creds button:hover { background: #fff; }

/* ============ checkout ============ */
.checkout-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; margin-top: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { font-size: 21px; margin-bottom: 4px; }
.panel .panel-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 18px); }
.summary-card h3 { font-size: 20px; margin-bottom: 16px; }
.mini-line { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 13.5px; }
.mini-line .mini-emoji { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.mini-line .mini-name { flex: 1; }
.mini-line .mini-qty { color: var(--muted); font-size: 12px; }
.summary-divider { border-top: 1px dashed var(--line); margin: 12px 0; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted); margin-top: 14px; }
.checkout-page-head { padding: 40px 0 0; }
.checkout-page-head h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.back-link:hover { color: var(--ink); }
.checkout-empty { margin: 60px auto; max-width: 440px; text-align: center; }
.checkout-empty .big { font-size: 60px; }

/* ============ tracking ============ */
.order-head { padding: 34px 0 0; }
.order-head-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.order-head-top h2 { font-size: 26px; }
.order-code { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--muted); letter-spacing: .08em; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap;
}
.status-pill.placed { background: var(--gold-soft); color: #8a5a08; }
.status-pill.confirmed { background: var(--blue-soft); color: var(--blue); }
.status-pill.preparing { background: #fdeed8; color: #a75c0c; }
.status-pill.out_for_delivery { background: var(--brand-soft); color: var(--brand-dark); }
.status-pill.delivered { background: var(--green-soft); color: var(--green); }
.status-pill.cancelled { background: var(--red-soft); color: var(--red); }

.track-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 18px; }
.track-hero { display: flex; align-items: center; gap: 20px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.track-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; font-size: 34px;
  background: var(--brand-soft); flex-shrink: 0;
}
.track-hero h3 { font-size: 26px; margin-bottom: 4px; }
.track-hero p { color: var(--muted); font-size: 14px; }
.track-eta { margin-left: auto; text-align: right; }
.track-eta strong { font-family: var(--font-display); font-size: 24px; display: block; }
.track-eta span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.track-steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 26px 0 6px; gap: 0; }
.t-step { position: relative; text-align: center; padding: 0 4px; }
.t-step:not(:last-child)::after {
  content: ''; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--line); border-radius: 2px;
}
.t-step.done:not(:last-child)::after { background: var(--green); }
.t-dot {
  width: 36px; height: 36px; border-radius: 50%; margin: 0 auto 9px; display: grid; place-items: center;
  background: var(--surface-2); font-size: 16px; border: 2px solid var(--line); color: var(--muted);
  position: relative; z-index: 1; transition: all .3s;
}
.t-step.done .t-dot { background: var(--green); border-color: var(--green); color: #fff; }
.t-step.current .t-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 6px rgba(217, 72, 43, .12); animation: pulseDot 1.8s infinite; }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 5px rgba(217,72,43,.12); } 50% { box-shadow: 0 0 0 10px rgba(217,72,43,.04); } }
.t-label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.t-step.done .t-label, .t-step.current .t-label { color: var(--ink); }
.t-step.current .t-label { color: var(--brand-dark); }

.order-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; margin: 24px 0 20px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 30px; }
.timeline li::before {
  content: ''; position: absolute; left: 6px; top: 17px; bottom: 0; width: 2px; background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .tl-dot {
  position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line);
}
.timeline li:first-child .tl-dot { border-color: var(--brand); background: var(--brand); }
.timeline .tl-title { font-size: 13.5px; font-weight: 700; }
.timeline .tl-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.timeline .tl-time { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.order-info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.order-info-card h4 { font-size: 16px; font-family: var(--font-body); margin-bottom: 12px; font-weight: 800; }
.info-row { display: flex; gap: 10px; font-size: 13px; margin-bottom: 9px; color: var(--ink-soft); }
.info-row .i-icon { flex-shrink: 0; }
.rider-card { display: flex; gap: 13px; align-items: center; }
.rider-avatar {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); font-size: 19px; flex-shrink: 0;
}
.rider-card strong { display: block; font-size: 14px; }
.rider-card span { font-size: 12px; color: var(--muted); }
.rider-call { margin-left: auto; }
.review-stars { display: flex; gap: 4px; margin: 6px 0 12px; }
.review-stars button { border: none; background: none; font-size: 26px; cursor: pointer; color: #d8c7b3; padding: 0 2px; transition: transform .12s; line-height: 1; }
.review-stars button.on { color: var(--gold); }
.review-stars button:hover { transform: scale(1.15); }
.review-existing { background: var(--gold-soft); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: #6b4c12; }
.review-existing .stars { font-size: 16px; letter-spacing: 2px; display: block; margin-bottom: 4px; }
.cancel-line { text-align: center; padding: 8px 0 40px; }

/* ============ orders list ============ */
.orders-page-head { padding: 40px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.orders-page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.order-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.order-row {
  display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; transition: border-color .18s, transform .18s, box-shadow .18s; cursor: pointer;
}
.order-row:hover { border-color: #d9c5ab; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.order-row-emoji { display: flex; }
.order-row-emoji span {
  width: 38px; height: 38px; border-radius: 11px; background: var(--surface-2); display: grid; place-items: center;
  font-size: 19px; margin-left: -10px; border: 2px solid var(--surface);
}
.order-row-emoji span:first-child { margin-left: 0; }
.order-row-main { flex: 1; min-width: 0; }
.order-row-main strong { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.order-row-main .order-code { font-size: 11px; }
.order-row-main p { font-size: 12.5px; color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-row-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-row-side .price { font-size: 18px; }
.order-row-arrow { color: var(--muted); }

/* ============ empty / error states ============ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .big { font-size: 58px; margin-bottom: 14px; }
.empty-state h3 { font-size: 25px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); max-width: 400px; margin: 0 auto 22px; font-size: 14px; }
.error-state { text-align: center; padding: 70px 20px; }
.error-state .big { font-size: 52px; margin-bottom: 12px; }

/* ============ admin ============ */
.admin-shell { display: grid; grid-template-columns: 236px 1fr; gap: 24px; padding: 30px 0 50px; align-items: start; }
.admin-side {
  position: sticky; top: calc(var(--header-h) + 20px); background: #201812; color: #f3e7d7;
  border-radius: 20px; padding: 20px 14px; box-shadow: var(--shadow-md);
}
.admin-side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; border-bottom: 1px solid rgba(255,255,255,.09); margin-bottom: 12px; }
.admin-side-brand .brand-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 11px; }
.admin-side-brand strong { font-family: var(--font-display); font-size: 16px; display: block; }
.admin-side-brand small { font-size: 10px; text-transform: uppercase; letter-spacing: .13em; color: #a8917a; }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: #d6c4b0; transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-nav a .nav-ico { width: 18px; text-align: center; }
.admin-side-foot { border-top: 1px solid rgba(255,255,255,.09); margin-top: 14px; padding: 14px 10px 0; }
.admin-side-foot .side-links { display: flex; flex-direction: column; gap: 7px; }
.admin-side-foot a { font-size: 12px; color: #a8917a; font-weight: 600; width: fit-content; }
.admin-side-foot a:hover { color: #fff; }
.admin-side-foot .admin-user { font-size: 12px; color: #d6c4b0; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: clamp(26px, 3.2vw, 34px); }
.admin-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.admin-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--green); }
.live-dot::before { content: ''; width: 7px; height: 7px; background: var(--green); border-radius: 50%; animation: livePulse 1.6s infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat-card .s-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat-card .s-value { font-family: var(--font-display); font-size: 28px; margin-top: 8px; line-height: 1; }
.stat-card .s-sub { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.stat-card.accent { background: linear-gradient(135deg, #2a1a12, #4a2515); border-color: #4a2b18; color: #f7e9d6; }
.stat-card.accent .s-label, .stat-card.accent .s-sub { color: #c7a98c; }

.admin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-bottom: 18px; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.admin-card h3 { font-size: 18px; margin-bottom: 4px; }
.admin-card .card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 12px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar-track { width: 100%; max-width: 42px; flex: 1; display: flex; align-items: flex-end; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.chart .bar {
  width: 100%; background: linear-gradient(180deg, #e56a42, #c74424); border-radius: 8px 8px 0 0;
  min-height: 4px; transition: height .5s ease; position: relative;
}
.chart .col.today .bar { background: linear-gradient(180deg, #f2b04a, #d77f1e); }
.chart .col-label { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.chart .bar-value { font-size: 10px; color: var(--muted); }
.top-list { display: flex; flex-direction: column; gap: 13px; }
.top-item-row { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.top-item-row .t-emoji { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.top-item-row .t-main { flex: 1; min-width: 0; }
.top-item-row .t-name { font-weight: 700; font-size: 12.8px; display: flex; justify-content: space-between; gap: 8px; }
.top-item-row .t-bar { height: 5px; border-radius: 4px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.top-item-row .t-bar span { display: block; height: 100%; background: linear-gradient(90deg, #e9a23b, #d9482b); border-radius: 4px; }
.top-item-row .t-qty { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.recent-list { display: flex; flex-direction: column; }
.recent-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 13px; cursor: pointer;
}
.recent-row:last-child { border-bottom: none; }
.recent-row .r-code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.recent-row .r-name { font-weight: 700; }
.recent-row .r-time { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.recent-row .price { font-size: 14px; }

.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-toolbar .search-box { max-width: 320px; flex: 1; height: 42px; }
.admin-toolbar .select { height: 42px; }
.filter-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chips .chip { font-size: 12px; padding: 7px 12px; }
.filter-chips .chip .count { background: rgba(36,27,20,.08); border-radius: 100px; padding: 1px 7px; font-size: 10.5px; }
.filter-chips .chip.active .count { background: rgba(255,255,255,.18); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.8px; min-width: 760px; }
.data-table th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted);
  font-weight: 800; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbf6ee; white-space: nowrap;
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid #f1e8da; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fdf8f1; }
.data-table .cell-main { font-weight: 700; }
.data-table .cell-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.orders-table td, .orders-table th { padding-left: 11px; padding-right: 11px; }
.orders-table td:first-child .cell-main, .orders-table td:first-child .cell-sub { white-space: nowrap; }
.orders-table td:nth-child(5) .cell-main { white-space: nowrap; }
.orders-table .rider-sub { margin-top: 4px; white-space: nowrap; }
.orders-table .table-actions { flex-wrap: nowrap; }
.orders-table .mini-btn { padding: 5px 8px; }
.orders-table .table-emoji { display: none; }
.table-emoji { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; }
.table-item { display: flex; align-items: center; gap: 10px; }
.menu-thumb { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; flex-shrink: 0; }
.mini-btn {
  border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px;
  font-size: 11.5px; font-weight: 700; cursor: pointer; color: var(--ink); font-family: inherit; transition: all .15s;
}
.mini-btn:hover { border-color: #d3bfa6; background: #fff; }
.mini-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.mini-btn.primary:hover { background: var(--brand-dark); }
.mini-btn.danger { color: var(--red); }
.mini-btn.danger:hover { background: var(--red-soft); border-color: transparent; }
.mini-btn:disabled { opacity: .45; cursor: not-allowed; }
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 100px; background: #d9ccba; transition: background .2s; position: relative; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(16px); }
.tag-list { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-badge { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 100px; background: var(--surface-2); color: var(--ink-soft); }
.admin-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.promo-admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.promo-admin-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-admin-code {
  font-family: ui-monospace, monospace; font-size: 17px; font-weight: 800; letter-spacing: .1em;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px dashed rgba(217,72,43,.4); border-radius: 10px; padding: 7px 12px;
}
.promo-admin-meta { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.promo-admin-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; }
.rider-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.rider-admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.rider-admin-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rider-admin-head strong { display: block; font-size: 14.5px; }
.rider-admin-head span { font-size: 11.5px; color: var(--muted); }
.rider-status { margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.rider-status select { flex: 1; height: 36px; border-radius: 9px; border: 1px solid var(--line); font-family: inherit; font-size: 12px; padding: 0 8px; background: var(--surface); }
.rider-stat { font-size: 11.5px; color: var(--muted); }
.danger-zone { margin-top: 10px; }
.admin-note { font-size: 12.5px; color: var(--muted); background: var(--gold-soft); border: 1px dashed #e5c687; border-radius: 10px; padding: 10px 14px; margin-bottom: 18px; }
.order-detail-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.detail-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.detail-block h5 { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; font-weight: 800; }
.detail-line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 3px 0; gap: 12px; }
.detail-line span:first-child { color: var(--muted); }
.detail-total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; font-weight: 800; font-size: 14px; }
.assign-row { display: flex; gap: 8px; margin-top: 10px; }
.assign-row select { flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-family: inherit; font-size: 12px; padding: 0 8px; }

/* ============ toast ============ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 90vw; }
.toast {
  background: #201812; color: #fdf3e5; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 100px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 9px; animation: toastIn .3s ease both;
  max-width: 90vw;
}
.toast.success { background: #1e4d36; }
.toast.error { background: #7a211b; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ============ mobile cart bar ============ */
.mobile-cart {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45; background: var(--ink); color: #fff8ee;
  border-radius: 16px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: var(--shadow-lg); border: none; cursor: pointer; font-family: inherit; animation: fadeUp .3s ease;
}
.mobile-cart .mc-left { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.mobile-cart .mc-badge { background: var(--brand); border-radius: 100px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 11.5px; padding: 0 6px; }
.mobile-cart .mc-total { font-family: var(--font-display); font-size: 18px; }
.mobile-cart .mc-cta { font-size: 12.5px; font-weight: 800; color: #ffd9a3; }

/* ============ footer ============ */
.site-footer { background: #1c140f; color: #c9b7a3; margin-top: 60px; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { font-size: 13px; color: #9c8a78; margin-top: 14px; max-width: 280px; line-height: 1.65; }
.brand-light .brand-text strong { color: #fdf3e5; }
.brand-light .brand-text small { color: #9c8a78; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #f0e2d0; margin-bottom: 14px; font-weight: 800; }
.site-footer a { display: block; font-size: 13px; color: #a8937f; padding: 4px 0; }
.site-footer a:hover { color: #ffd9a3; }
.site-footer p { font-size: 13px; line-height: 1.7; }
.site-footer code { background: rgba(255,255,255,.08); color: #f0dcc4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: #7f6d5c; }

/* ============ responsive ============ */
@media (max-width: 1020px) {
  .hero { min-height: 430px; }
  .value-row { grid-template-columns: 1fr; gap: 10px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .order-layout { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; align-items: center; gap: 14px; overflow-x: auto; padding: 12px 14px; }
  .admin-side-brand { border-bottom: none; padding: 0 10px 0 0; border-right: 1px solid rgba(255,255,255,.09); margin: 0; flex-shrink: 0; }
  .admin-nav { flex-direction: row; gap: 4px; }
  .admin-nav a { white-space: nowrap; padding: 8px 12px; }
  .admin-side-foot { border-top: none; border-left: 1px solid rgba(255,255,255,.09); margin: 0; padding: 0 0 0 14px; flex-shrink: 0; }
  .admin-side-foot .side-links { flex-direction: row; gap: 12px; }
  .admin-side-foot .admin-user { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-header { backdrop-filter: none; background: var(--bg); }
  .main-nav { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 50; margin: 0; }
  .main-nav a { flex: 1; text-align: center; padding: 9px 4px; font-size: 12.5px; }
  .main-nav a.active { background: var(--brand-soft); color: var(--brand-dark); }
  body { padding-bottom: 68px; }
  .mobile-cart { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .announce-inner { justify-content: center; }
  .announce-code { display: none; }
  .hero { min-height: 0; margin-top: 16px; border-radius: 22px; }
  .hero::after { background: linear-gradient(90deg, rgba(18,11,6,.94), rgba(18,11,6,.72)); }
  .hero-content { padding: 38px 26px 40px; }
  .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .hero-stats { gap: 22px; margin-top: 28px; }
  .steps-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .item-thumb { aspect-ratio: 4 / 3; }
  .item-emoji { font-size: 54px; }
  .item-body { padding: 12px 13px 14px; }
  .item-name { font-size: 14px; }
  .item-desc { font-size: 11.5px; min-height: 34px; -webkit-line-clamp: 2; }
  .item-meta { font-size: 10.5px; gap: 8px; }
  .price { font-size: 17px; }
  .add-btn { width: 34px; height: 34px; }
  .drawer { width: 100%; max-width: 100%; }
  .order-row { flex-wrap: wrap; }
  .order-row-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .order-row-arrow { display: none; }
  .track-steps { grid-template-columns: 1fr; gap: 2px; margin: 20px 0; }
  .t-step { display: flex; align-items: center; gap: 12px; text-align: left; padding: 7px 0; }
  .t-step:not(:last-child)::after { left: 17px; top: 42px; right: auto; bottom: -2px; width: 2px; height: auto; }
  .t-dot { margin: 0; flex-shrink: 0; }
  .t-label { font-size: 12.5px; }
  .track-hero { gap: 14px; }
  .track-icon { width: 54px; height: 54px; font-size: 27px; border-radius: 16px; }
  .track-hero h3 { font-size: 21px; }
  .track-eta { margin-left: 0; text-align: left; width: 100%; display: flex; align-items: baseline; gap: 8px; }
  .field-row { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-side { flex-wrap: nowrap; }
  .admin-side-brand small { display: none; }
  .admin-side-foot { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 40px 0; }
  .account-name { display: none; }
  .account-btn { padding: 6px; }
  .cart-label { display: none; }
  .cart-btn { padding: 10px 13px; }
  .header-inner { gap: 12px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 18px; }
  .promo-strip { padding: 26px 22px; }
  .panel { padding: 20px; }
  .track-card { padding: 20px; }
  .detail-foot { flex-wrap: wrap; }
  .detail-foot .btn { flex: 1; }
  .review-stars button { font-size: 30px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-head h2 { font-size: 25px; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .hero-stat strong { font-size: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .s-value { font-size: 23px; }
  .order-row { padding: 14px 16px; }
  .order-head-top h2 { font-size: 22px; }
  .modal-backdrop { padding: 2vh 10px 30px; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
  .admin-head { margin-bottom: 16px; }
  .admin-link { display: none; }
  .data-table { min-width: 640px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
