/* Curry Courier — warm, home-kitchen design system */
:root {
  --bg: #FFF8EF;
  --paper: #FFFFFF;
  --tint: #FBEEDD;
  --ink: #2A1A12;
  --ink-2: #5A463A;
  --muted: #8A766A;
  --line: #EFE3D6;
  --line-2: #E4D3C1;
  --saffron: #E8912D;
  --saffron-2: #F4B860;
  --masala: #B4441B;
  --masala-d: #8E3313;
  --leaf: #2E7D32;
  --nonveg: #A8261B;
  --gold: #F2A900;
  --dark: #24160F;
  --ok: #2E7D32;
  --err: #B3261E;
  --wa: #1FA855;
  --tg: #229ED9;
  --r-xl: 28px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(60, 30, 10, .06);
  --shadow: 0 1px 2px rgba(60, 30, 10, .05), 0 10px 30px -12px rgba(60, 30, 10, .22);
  --shadow-lg: 0 24px 60px -24px rgba(60, 30, 10, .45);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --bnav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--masala); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--masala-d); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }
.muted { color: var(--muted); }
.small, small { font-size: .85em; }
.fine { font-size: .84rem; color: var(--muted); margin: .4em 0; }
.fine.err { color: var(--err); }
.center { text-align: center; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--masala); margin-bottom: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent;
  border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s; white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #C4511F, var(--masala)); color: #fff; box-shadow: 0 6px 16px -6px rgba(180, 68, 27, .6); }
.btn-primary:hover { background: linear-gradient(180deg, #B4441B, var(--masala-d)); color: #fff; }
.btn-outline { background: var(--paper); border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--masala); color: var(--masala); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #FFF1DE; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-danger { background: #fff; border-color: #EBC3BE; color: var(--err); }
.btn-danger:hover { background: #FDECEA; color: var(--err); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178F47; color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: #1A87BB; color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn-block { width: 100%; }
.link-arrow, .link-sm { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-sm { font-size: .9rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; list-style: none; }
.icon-btn:hover { color: var(--masala); border-color: var(--masala); }
.icon-btn.wa { color: var(--wa); }
.icon-btn::-webkit-details-marker { display: none; }

/* ---------------------------------------------------------------- forms */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff;
  font-weight: 400; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A766A' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(232, 145, 45, .18); }
input:disabled { background: var(--tint); color: var(--muted); }
textarea { resize: vertical; min-height: 64px; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check.disabled { opacity: .55; }
input[type=checkbox], input[type=radio] { accent-color: var(--masala); width: 18px; height: 18px; margin: 0; flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 20px; }

.seg { display: flex; gap: 10px; margin-bottom: 16px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-weight: 600; color: var(--ink-2); background: #fff; transition: all .15s; }
.seg input:checked + span { border-color: var(--masala); background: #FFF3E8; color: var(--masala); box-shadow: inset 0 0 0 1px var(--masala); }
.seg input:focus-visible + span { outline: 3px solid var(--saffron); }
.seg.compact { margin: 0; flex-wrap: wrap; }
.seg.compact span { padding: 10px 12px; }

/* ---------------------------------------------------------------- header */
.announce { background: var(--saffron); color: var(--dark); text-align: center; font-weight: 600; font-size: .9rem; padding: 9px 16px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.announce.closed { background: var(--dark); color: #FFE2BF; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 239, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(228, 211, 193, .7); }
.header-in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-name { font: 700 1.3rem/1 var(--serif); letter-spacing: -.02em; }
.brand-light { color: #FFF1DE; }
.brand-light:hover { color: #fff; }
.logo-mark { flex: none; filter: drop-shadow(0 3px 6px rgba(180, 68, 27, .25)); }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; }
.top-nav a:hover { background: var(--tint); color: var(--ink); }
.top-nav a.on { color: var(--masala); background: #FFEEDC; }
.top-nav .nav-admin { background: var(--ink); color: #FFE2BF; }
.top-nav .nav-admin:hover { background: var(--dark); color: #fff; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #FFF1DE; text-decoration: none; transition: transform .15s; }
.cart-btn:hover { color: #fff; transform: translateY(-1px); }
.cart-btn .i { width: 22px; height: 22px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--saffron); color: var(--dark); font: 700 .72rem/20px var(--sans); text-align: center; border: 2px solid var(--bg); }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

.flashes { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-weight: 500; background: #EAF5EA; color: #1E5E22; border: 1px solid #CDE6CE; }
.flash.error { background: #FDECEA; color: #8C1D18; border-color: #F5C7C2; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: #FFF1DE; background:
  radial-gradient(900px 500px at 85% 40%, rgba(232, 145, 45, .28), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(180, 68, 27, .35), transparent 60%),
  linear-gradient(160deg, #2E1C13 0%, #1E120C 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(244, 184, 96, .16) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero .eyebrow { color: var(--saffron-2); }
.hero h1 { color: #FFF8EF; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 20px; }
.lede { font-size: 1.12rem; color: #E9D3BC; max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #F3DFC8; }
.hero-facts .i { color: var(--saffron-2); }
.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.hero-pot { width: min(100%, 460px); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero-pot .steam path { animation: steam 3.2s ease-in-out infinite; transform-origin: center bottom; }
.hero-pot .steam path:nth-child(2) { animation-delay: .5s; }
.hero-pot .steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam { 0%, 100% { opacity: .35; transform: translateY(6px); } 50% { opacity: .95; transform: translateY(-6px); } }
.hero-art.has-photos { min-height: 420px; }
.hero-photo { position: absolute; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 5px solid rgba(255, 248, 239, .95); }
.hero-photo.hp1 { width: 66%; aspect-ratio: 4/5; right: 4%; top: 0; transform: rotate(3deg); }
.hero-photo.hp2 { width: 46%; aspect-ratio: 1; left: 0; bottom: 4%; transform: rotate(-5deg); }
.hero-photo.hp3 { width: 34%; aspect-ratio: 1; left: 14%; top: 4%; transform: rotate(-2deg); }
.hero-photo:only-child { width: 82%; left: 9%; right: auto; transform: rotate(2deg); }

/* ---------------------------------------------------------------- sections */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-tint { background: linear-gradient(180deg, var(--tint), #FFF4E6); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head.center { justify-content: center; text-align: center; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; text-decoration: none; color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; box-shadow: var(--shadow-sm); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 18px; right: 22px; font: 700 3rem/1 var(--serif); color: var(--tint); }
.step-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--saffron-2), var(--saffron)); color: var(--dark); margin-bottom: 16px; }
.step-ic .i { width: 26px; height: 26px; }
.steps p { color: var(--ink-2); margin: 0; }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.about-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.about-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 145, 45, .16), transparent 70%); }
.about-card .logo-mark { margin-bottom: 16px; }
.about-card p { color: var(--ink-2); font-size: 1.05rem; }
.about-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about-facts li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.about-facts .i { width: 24px; height: 24px; color: var(--masala); margin-top: 2px; }
.about-facts strong { display: block; }
.about-facts span { color: var(--ink-2); font-size: .94rem; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: var(--r-xl); color: #FFF1DE;
  background: radial-gradient(500px 240px at 90% 0%, rgba(232, 145, 45, .45), transparent 70%), linear-gradient(135deg, #8E3313, #4A2010); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #F3D9BE; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-hero { padding: 48px 0 28px; background: linear-gradient(180deg, var(--tint), var(--bg)); }
.page-hero h1 { margin-bottom: 8px; }
.lede-dark { color: var(--ink-2); margin: 0; }
.page-title { margin: 28px 0 22px; font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ---------------------------------------------------------------- dish cards */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.dish { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.dish:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dish-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--tint); }
.dish-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dish:hover img.dish-img { transform: scale(1.04); }
.dish-img.ph { display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, hsl(var(--h) 85% 92%), hsl(var(--h) 70% 82%)); }
.dish-img.ph svg { width: 72%; max-width: 220px; }
.ph-curry { fill: hsl(var(--h) 78% 46%); }
.ph-steam { stroke: hsl(var(--h) 60% 98%); opacity: .9; }
.ribbon { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(42, 26, 18, .82); color: #FFE2BF; font-size: .75rem; font-weight: 600; backdrop-filter: blur(6px); }
.dish-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.dish-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; min-height: 18px; }
.dish-rating { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--ink); }
.dish-rating .i { fill: var(--gold); stroke: var(--gold); width: 14px; height: 14px; }
.dish-rating small { color: var(--muted); font-weight: 500; }
.dish-name { font-size: 1.14rem; margin: 0 0 6px; }
.dish-name a { color: var(--ink); text-decoration: none; }
.dish-name a:hover { color: var(--masala); }
.dish-desc { color: var(--ink-2); font-size: .9rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dish-price { font: 700 1.15rem/1.1 var(--sans); }
.dish-price small { display: block; font: 500 .76rem/1.4 var(--sans); color: var(--muted); }
.dish.is-soldout .dish-media { filter: grayscale(.85); opacity: .7; }
.soldout-tag { font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--tint); padding: 6px 12px; border-radius: 999px; }

.vmark { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.6px solid currentColor; border-radius: 3px; flex: none; }
.vmark i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vmark.veg { color: var(--leaf); }
.vmark.nonveg { color: var(--nonveg); }
.vmark.nonveg i { border-radius: 0; width: 0; height: 0; background: none; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 8px solid currentColor; }
.spice { display: inline-flex; color: #D2461F; }
.spice .i { width: 14px; height: 14px; fill: #F28A3B; stroke: #D2461F; stroke-width: 1.5; margin-right: -2px; }

.add-ctl { flex: none; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--masala); background: #FFF3E8; color: var(--masala); font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .15s; }
.btn-add:hover { background: var(--masala); color: #fff; }
.btn-add .i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--masala); color: #fff; box-shadow: 0 6px 14px -6px rgba(180, 68, 27, .7); }
.stepper button { width: 36px; height: 38px; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.stepper button:hover { background: rgba(255, 255, 255, .14); }
.stepper .i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }

/* ---------------------------------------------------------------- menu page */
.menu-tools { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 248, 239, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 12px 0 0; }
.tools-row { display: flex; gap: 12px; align-items: center; }
.search { position: relative; flex: 1; display: block; max-width: 420px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px !important; border-radius: 999px !important; background: #fff; }
.veg-toggle { flex-direction: row; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.veg-toggle input { position: absolute; opacity: 0; }
.vt-track { width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.vt-dot { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.veg-toggle input:checked + .vt-track { background: var(--leaf); }
.veg-toggle input:checked + .vt-track .vt-dot { transform: translateX(18px); }
.veg-toggle input:focus-visible + .vt-track { outline: 3px solid var(--saffron); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .88rem; transition: all .15s; }
.chips a:hover { border-color: var(--masala); color: var(--masala); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #FFE2BF; }
.menu-body { padding-top: 12px; padding-bottom: 60px; }
.menu-section { padding-top: 28px; }
.menu-section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.menu-section-head h2 { margin: 0; font-size: 1.6rem; }
.menu-section-head p { margin: 0; color: var(--muted); }
.dish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.dish.row { flex-direction: row-reverse; align-items: stretch; }
.dish.row .dish-media { width: 150px; flex: none; aspect-ratio: auto; margin: 14px 14px 14px 0; border-radius: var(--r); }
.dish.row .dish-body { padding: 16px 12px 16px 18px; }
.dish.row .dish-name { font-size: 1.08rem; }

/* ---------------------------------------------------------------- dish page */
.dish-page { padding-top: 22px; padding-bottom: 40px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.dish-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); }
.dish-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; background: var(--tint); }
.dish-hero-media .dish-img.ph svg { width: 70%; }
.dish-hero.is-soldout .dish-hero-media { filter: grayscale(.8); }
.dish-hero-body { padding: 10px 14px 10px 0; }
.dish-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.dish-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 500; margin-bottom: 12px; }
.tag-sep { color: var(--line-2); }
.dish-hero-desc { font-size: 1.08rem; color: var(--ink-2); margin: 16px 0 24px; }
.dish-hero-buy { display: flex; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.price-lg { font: 700 1.8rem/1 var(--sans); }
.dish-hero-buy .btn-add { padding: 12px 24px; font-size: 1rem; }
.dish-hero-buy .stepper button { width: 44px; height: 46px; }
.dish-reviews { padding-top: 48px; }
.reviews-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 16px); }

/* stars */
.stars { --pct: 0%; display: inline-block; font-size: 1.05em; letter-spacing: 1px; line-height: 1; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--gold) var(--pct), #E3D6C8 var(--pct)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-num { font-weight: 700; }
.stars-num small { color: var(--muted); font-weight: 500; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #E3D6C8; display: block; }
.star-input label .i { width: 36px; height: 36px; fill: currentColor; stroke: none; transition: transform .1s; }
.star-input label:hover .i { transform: scale(1.12); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--saffron); border-radius: 6px; }

/* reviews */
.review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(135deg, var(--saffron-2), var(--saffron)); color: var(--dark); font: 700 1.05rem/1 var(--serif); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--leaf); }
.verified .i { width: 14px; height: 14px; stroke-width: 2.6; }
.review h4 { font-size: 1.05rem; margin: 6px 0 4px; }
.review blockquote { margin: 0 0 10px; color: var(--ink-2); white-space: pre-line; }
.review figcaption { font-size: .82rem; color: var(--muted); }
.reply { margin-top: 12px; padding: 12px 14px; background: var(--tint); border-radius: var(--r-sm); font-size: .9rem; border-left: 3px solid var(--saffron); }
.reply p { margin: 4px 0 0; color: var(--ink-2); }
.review-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.review-rail .review { scroll-snap-align: start; }
.empty-reviews { background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); padding: 30px; text-align: center; color: var(--ink-2); }
.rating-summary { display: flex; gap: 28px; align-items: center; margin-bottom: 18px; }
.rs-big { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rs-big > span { font: 700 3rem/1 var(--serif); }
.rs-big small { color: var(--muted); }
.rs-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rs-row { display: grid; grid-template-columns: 42px 1fr 30px; gap: 10px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.rs-row .i { width: 12px; height: 12px; fill: var(--gold); stroke: none; }
.bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.reviews-page { padding-top: 28px; padding-bottom: 60px; }

/* ---------------------------------------------------------------- cards / cart */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.card h2 .i { color: var(--masala); }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.note { display: flex; align-items: center; gap: 8px; background: var(--tint); padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; color: var(--ink-2); }
.note.ok { background: #EAF5EA; color: #1E5E22; }
.warn { background: #FFF4D6; color: #7A5300; padding: 10px 14px; border-radius: var(--r-sm); font-size: .9rem; margin: 10px 0 0; }
.summary .fine.warn { margin: 6px 0; font-weight: 600; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.error-box { background: #FDECEA; color: #8C1D18; padding: 12px 14px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 500; }
.empty { text-align: center; padding: 60px 20px; }
.empty-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--tint); color: var(--masala); margin-bottom: 18px; }
.empty-ic .i { width: 38px; height: 38px; }
.empty p { color: var(--ink-2); }

.cart-page { padding-bottom: 60px; }
.checkout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-main { display: flex; flex-direction: column; gap: 18px; }
.checkout-main .card { display: flex; flex-direction: column; gap: 14px; }
.checkout-main .card h2 { margin-bottom: 2px; }
.checkout-side { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cl-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--tint); }
.cl-img .dish-img { width: 100%; height: 100%; }
.cl-img .dish-img.ph svg { width: 86%; }
.cl-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.cl-price { font-size: .88rem; color: var(--muted); }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cl-total { font-weight: 700; }
.cart-line.gone { opacity: .55; }
.cart-line.gone .cl-price { color: var(--err); font-weight: 600; }
.stepper.sm button { width: 30px; height: 32px; }
.stepper.sm .i { width: 14px; height: 14px; }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: all .15s; }
.pay-opt:has(input:checked) { border-color: var(--masala); background: #FFF6EE; }
.pay-opt input { margin-top: 3px; }
.pay-opt strong { display: block; color: var(--ink); }
.pay-opt small { font-weight: 400; color: var(--muted); }
.summary dl { margin: 0 0 14px; }
.summary dl div, .bill-sum div { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); }
.summary dd, .bill-sum dd { margin: 0; font-weight: 600; color: var(--ink); }
.summary .total, .bill-sum .total { border-top: 1.5px dashed var(--line-2); margin-top: 6px; padding-top: 12px; font-size: 1.12rem; color: var(--ink); font-weight: 700; }
.summary .total dd, .bill-sum .total dd { font-size: 1.2rem; }
.summary .btn-block { margin-top: 12px; }
.summary .check { font-size: .88rem; margin: 6px 0; }

/* ---------------------------------------------------------------- order page */
.order-page { padding-top: 24px; padding-bottom: 60px; }
.order-hero { display: flex; gap: 22px; align-items: flex-start; padding: 28px; border-radius: var(--r-xl); color: #FFF1DE;
  background: radial-gradient(400px 200px at 100% 0%, rgba(232, 145, 45, .4), transparent 70%), linear-gradient(135deg, #3A2318, #24160F); box-shadow: var(--shadow-lg); }
.order-hero.st-delivered { background: radial-gradient(400px 200px at 100% 0%, rgba(120, 200, 110, .35), transparent 70%), linear-gradient(135deg, #24411F, #16290F); }
.order-hero.st-cancelled { background: linear-gradient(135deg, #4A2622, #2A1612); }
.order-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.order-hero .eyebrow { color: var(--saffron-2); margin-bottom: 6px; }
.order-hero-ic { font-size: 3rem; line-height: 1; width: 84px; height: 84px; display: grid; place-items: center; flex: none; border-radius: 24px; background: rgba(255, 255, 255, .1); }
.order-sub { color: #E9D3BC; margin: 0; }
.kitchen-note { display: inline-flex; gap: 8px; align-items: center; margin: 14px 0 0; padding: 10px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .1); color: #FFF1DE; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: #D7BFA6; margin: 12px 0 0; }
.live .i { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 85% { transform: rotate(-12deg); } 95% { transform: rotate(6deg); } }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 26px 0; padding: 0; position: relative; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line-2); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.current::before { background: var(--masala); }
.timeline .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line-2); color: #fff; }
.timeline .dot .i { width: 16px; height: 16px; stroke-width: 3; }
.timeline li.done .dot { background: var(--masala); border-color: var(--masala); }
.timeline li.current .dot { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 6px rgba(232, 145, 45, .25); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(232, 145, 45, .08); } }
.timeline li.done, .timeline li.current { color: var(--ink); font-weight: 600; }
.tl-time { font-size: .76rem; color: var(--muted); font-weight: 500; }
.order-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.order-main, .order-side { display: flex; flex-direction: column; gap: 18px; }
.pay-card { border: 2px solid var(--saffron); background: linear-gradient(180deg, #FFF8EE, #fff); }
.pay-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.qr { background: #fff; border-radius: var(--r); padding: 8px; border: 1px solid var(--line); line-height: 0; }
.qr svg { width: 170px; height: 170px; }
.qr-photo { padding: 0; overflow: hidden; line-height: normal; }
.qr-photo img { width: 230px; height: auto; display: block; }
.qr-setting { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.qr-thumb { width: 130px; border-radius: 12px; border: 1px solid var(--line); }
.pay-actions { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.copy { cursor: copy; border-bottom: 1px dashed currentColor; }
.bill-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.bill-lines li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bill-lines .bl-name { flex: 1; }
.bill-lines.big li { font-size: 1.05rem; padding: 10px 0; }
.bill-sum { margin: 0; }
.review-prompt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.help-card .btn { width: 100%; }
.mini-orders { list-style: none; padding: 0; margin: 0; }
.mini-orders a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mini-orders li:last-child a { border-bottom: 0; }
.mini-orders small { display: block; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; background: var(--tint); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.pill .i { width: 12px; height: 12px; }
.st-placed.pill { background: #FFF1D6; color: #8A5A00; }
.st-confirmed.pill { background: #E6F0FF; color: #1D4F9C; }
.st-preparing.pill { background: #FFE9DC; color: #A23F10; }
.st-ready.pill, .st-out_for_delivery.pill { background: #EDE6FF; color: #5B36B5; }
.st-delivered.pill { background: #E5F4E6; color: #1E6B23; }
.st-cancelled.pill { background: #F6E3E1; color: #9A2B22; }

/* ---------------------------------------------------------------- auth & account */
.auth-wrap { display: grid; place-items: center; padding: 48px 20px 80px; }
.auth-card { width: 100%; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 32px; box-shadow: var(--shadow); text-align: center; }
.auth-card .logo-mark { margin: 0 auto 16px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-card form { text-align: left; margin-top: 22px; }
.auth-alt { margin: 16px 0 0; font-size: .92rem; color: var(--ink-2); }
.account { padding-top: 28px; padding-bottom: 60px; }
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.account-head h1 { margin: 0; font-size: 2rem; }
.account-head p { margin: 2px 0 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--masala); border-color: var(--masala); }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.order-card { margin-bottom: 14px; }
.oc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.oc-head small { display: block; color: var(--muted); }
.oc-items { color: var(--ink-2); margin: 10px 0 14px; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.oc-total { font-weight: 700; font-size: 1.1rem; }
.oc-actions { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- footer, bottom nav, floating */
.site-footer { background: var(--dark); color: #D7BFA6; padding: 56px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #FFF1DE; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:not(.brand) { display: flex; align-items: center; gap: 8px; color: #D7BFA6; text-decoration: none; padding: 4px 0; }
.site-footer a:not(.brand):hover { color: #fff; }
.muted-light { color: #B59C85; margin: 12px 0; }
.foot-line { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 18px; padding-bottom: 24px; font-size: .84rem; color: #9C846E; }

.bottom-nav { display: none; }
.cart-bar { position: fixed; z-index: 45; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px; background: linear-gradient(180deg, #C4511F, var(--masala)); color: #fff; text-decoration: none; box-shadow: 0 16px 40px -12px rgba(142, 51, 19, .7); animation: rise .3s ease; }
.cart-bar:hover { color: #fff; }
.cart-bar-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.wa-fab { position: fixed; z-index: 44; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 168, 85, .8); transition: transform .15s, bottom .2s; }
.wa-fab:hover { color: #fff; transform: scale(1.06); }
.wa-fab .i { width: 28px; height: 28px; }
body.has-cart .wa-fab { bottom: 96px; }
.toast { position: fixed; z-index: 60; left: 50%; top: 18px; transform: translate(-50%, calc(-100% - 30px)); visibility: hidden; background: var(--ink); color: #FFF1DE; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); transition: transform .3s ease, visibility 0s .3s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s ease; }
.toast.error { background: var(--err); color: #fff; }

/* ---------------------------------------------------------------- admin */
body.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #FBF5EC; }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--dark); color: #D7BFA6; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.adm-side .brand { margin: 0 6px; }
.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #D7BFA6; text-decoration: none; font-weight: 600; font-size: .95rem; }
.adm-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-nav a.on { background: rgba(232, 145, 45, .16); color: #FFD7A8; }
.adm-nav .nb, .nb { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--saffron); color: var(--dark); font: 700 .74rem/22px var(--sans); text-align: center; }
.adm-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.adm-side-foot a { display: flex; align-items: center; gap: 10px; color: #B59C85; text-decoration: none; font-size: .88rem; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-side-foot a:hover { color: #fff; }
.kitchen-switch { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); cursor: pointer; color: #FFF1DE; }
.kitchen-switch input { position: absolute; opacity: 0; }
.kitchen-switch .ks-label { font-weight: 700; font-size: .92rem; }
.sw { position: relative; flex: none; width: 46px; height: 27px; border-radius: 999px; background: #CDBBA9; transition: background .2s; }
.sw i { position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
input:checked + .sw { background: var(--leaf); }
input:checked + .sw i { transform: translateX(19px); }
input:focus-visible + .sw { outline: 3px solid var(--saffron); outline-offset: 2px; }
.kitchen-switch input:not(:checked) + .sw { background: #8E3313; }

.adm-main { min-width: 0; padding: 26px 32px 60px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.adm-top h1 { margin: 0; font-size: 1.8rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.adm-top h1 .pill { font-family: var(--sans); font-size: .82rem; }
.adm-top-actions { display: flex; gap: 8px; }
.back-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.admin .flashes { margin: 0 0 16px; }
.admin .card { margin-bottom: 0; }
.admin section + section, .admin .card + .card, .admin .card + section, .admin section + .card { margin-top: 18px; }
.stack > .card + .card, .stack > section + section { margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; color: var(--ink); }
.stat-link:hover { border-color: var(--masala); color: var(--ink); }
.stat-label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stat-val { font: 700 1.7rem/1.1 var(--serif); }
.stat-sub { font-size: .82rem; color: var(--muted); }
.setup-card { background: linear-gradient(135deg, #FFF3E2, #FFF9F1); border-color: #F3D4A9; }
.todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.todo a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid #F3D4A9; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink); }
.todo a:hover { border-color: var(--masala); color: var(--masala); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 12px; }
.sec-head h2 { margin: 0; font-size: 1.3rem; }
.empty-sm { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 18px; }
.dash-grid > .card + .card { margin-top: 0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 18px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar-fill { width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--saffron), var(--masala)); }
.bar-v { font-size: .66rem; color: var(--muted); font-weight: 600; }
.bar-x { font-size: .7rem; color: var(--muted); }
.top-list { margin: 0; padding: 0 0 0 20px; }
.top-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.top-list li span { display: inline-block; width: calc(100% - 40px); }
.top-list b { float: right; }

.aorder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.aorder { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.aorder.st-placed { border-left-color: var(--gold); }
.aorder.st-confirmed { border-left-color: #3B7BE0; }
.aorder.st-preparing { border-left-color: var(--masala); }
.aorder.st-ready, .aorder.st-out_for_delivery { border-left-color: #7A55D8; }
.aorder.st-delivered { border-left-color: var(--leaf); }
.aorder.st-placed { animation: newglow 2s ease-in-out 3; }
@keyframes newglow { 50% { box-shadow: 0 0 0 4px rgba(242, 169, 0, .3); } }
.aorder-link { display: block; padding: 16px 18px 10px; color: var(--ink); text-decoration: none; flex: 1; }
.aorder-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.aorder-head strong { font-size: 1.05rem; letter-spacing: .02em; }
.aorder-who { font-weight: 600; }
.aorder-meta { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.aorder-items { list-style: none; padding: 0; margin: 10px 0 0; font-size: .92rem; }
.aorder-items li { padding: 2px 0; }
.aorder-note { font-size: .88rem; background: #FFF6D8; padding: 8px 10px; border-radius: 10px; margin: 10px 0 0; color: #6B4E00; }
.aorder-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px dashed var(--line-2); background: #FFFCF7; }
.aorder-total { font-weight: 700; }
.aorder-total small { display: block; font-weight: 500; color: var(--err); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; }
.aorder-total small.paid { color: var(--leaf); }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .search { max-width: 320px; }
.seg-links { display: flex; gap: 4px; background: #fff; border: 1px solid var(--line); padding: 4px; border-radius: 999px; overflow-x: auto; max-width: 100%; }
.seg-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.seg-links a.on { background: var(--ink); color: #FFE2BF; }
.seg-links .nb { margin-left: 2px; }

.aod-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.mini-flow { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.mini-flow li { padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .82rem; font-weight: 600; }
.mini-flow li.done { background: #F3E2D2; color: var(--masala-d); }
.mini-flow li.current { background: var(--masala); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.inline-form input, .inline-form select { flex: 1; min-width: 160px; width: auto !important; padding: 9px 12px !important; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 8px 0 8px 16px; border-left: 2px solid var(--line-2); position: relative; }
.events li::before { content: ""; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); }
.events small { color: var(--muted); }
.events p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }
.msg-log { list-style: none; padding: 0; margin: 0; }
.msg-log li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.msg-log li:last-child { border-bottom: 0; }
.ml-sent { background: #E5F4E6 !important; color: #1E6B23 !important; }
.ml-failed { background: #F6E3E1 !important; color: #9A2B22 !important; }
.ml-skipped { background: #EEE8E2 !important; color: #7A6A5E !important; }
.print-only { display: none; }

.quick-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quick-bar h2 { margin-bottom: 4px; }
.quick-bar p { margin: 0; }
.msec.is-hidden { opacity: .65; }
.msec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.msec-head h2 { margin: 0; }
.msec-head p { margin: 4px 0 0; }
.msec-actions { display: flex; align-items: center; gap: 10px; }
.mrows { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mrow.is-hidden { opacity: .5; }
.mrow.is-out .mrow-img { filter: grayscale(.9); }
.mrow-img { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: block; background: var(--tint); }
.mrow-img .dish-img.ph svg { width: 88%; }
.add-photo { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.add-photo .i { width: 12px; height: 12px; }
.mrow-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mrow-price { font-size: .86rem; color: var(--muted); }
.mrow-switches { display: flex; gap: 16px; }
.mini-switch { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch .sw { width: 40px; height: 24px; }
.mini-switch .sw i { width: 18px; height: 18px; }
.mini-switch input:checked + .sw i { transform: translateX(16px); }
.mini-switch.busy { opacity: .5; pointer-events: none; }
.add-row { display: flex; align-items: center; gap: 8px; padding: 14px 0 2px; font-weight: 600; text-decoration: none; }
.pop { position: relative; }
.pop summary { list-style: none; }
.pop-body { position: absolute; right: 0; top: 46px; z-index: 20; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; }

.dish-form { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.dish-form .card + .card { margin-top: 0; }
.photo-card { grid-row: span 2; }
.dish-form > .card:nth-of-type(3) { grid-column: 2; }
.photo-drop { position: relative; display: block; cursor: pointer; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-preview { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); border: 2px dashed var(--line-2); }
.photo-preview img, .photo-preview .dish-img { width: 100%; height: 100%; object-fit: cover; }
.photo-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; }
.photo-empty .i { width: 42px; height: 42px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.danger-zone { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.switch-list { display: flex; flex-direction: column; gap: 4px; }
.switch-list.grid-2 { display: grid; }
.switch-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > span:first-child { display: flex; flex-direction: column; color: var(--ink); }
.switch-row small { font-weight: 400; color: var(--muted); }

.areview-list { display: flex; flex-direction: column; gap: 14px; }
.areview-list .card + .card { margin-top: 0; }
.areview-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.areview-head > div { flex: 1; }
.areview h3 { font-size: 1.05rem; margin: 8px 0 4px; }
.areview-body { white-space: pre-line; color: var(--ink-2); }
.areview-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.table-card { padding: 6px 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.wa-list { list-style: none; padding: 0; margin: 0; max-height: 440px; overflow-y: auto; }
.wa-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wa-list small { display: block; color: var(--muted); }

.settings-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; scrollbar-width: none; }
.settings-nav a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.settings { max-width: 860px; }
.settings .card { scroll-margin-top: 20px; }
.channel { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.channel summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.channel summary::-webkit-details-marker { display: none; }
.channel summary .pill { margin-left: auto; }
.channel[open] summary { margin-bottom: 12px; }
.channel > *:not(summary) { margin-top: 12px; }
.howto { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: .92rem; }
.howto li { margin-bottom: 6px; }
code { background: var(--tint); padding: 2px 6px; border-radius: 6px; font-size: .88em; }
.test-row { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.test-row h3 { font-family: var(--sans); font-size: 1rem; margin: 0; }
.admin-list { list-style: none; padding: 0; margin: 0 0 8px; }
.admin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list li > span:nth-child(2) { flex: 1; }
.admin-list small { display: block; color: var(--muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 10px; padding-top: 48px; padding-bottom: 56px; }
  .hero-art { min-height: 0; order: -1; }
  .hero-pot { width: min(70%, 300px); }
  .hero-art.has-photos { min-height: 300px; }
  .about, .reviews-layout, .checkout, .order-grid, .account-grid, .dish-hero, .aod-grid, .dash-grid { grid-template-columns: 1fr; }
  .review-form-card, .checkout-side { position: static; }
  .dish-hero { gap: 18px; padding: 14px; }
  .dish-hero-body { padding: 4px 6px 8px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dish-form { grid-template-columns: 1fr; }
  .photo-card { grid-row: auto; }
  .dish-form > .card:nth-of-type(3) { grid-column: auto; }
  .photo-preview { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  html { scroll-padding-top: 130px; }
  body { padding-bottom: calc(var(--bnav-h) + var(--safe-b)); }
  .wrap { padding: 0 16px; }
  .top-nav { display: none; }
  .brand-name { font-size: 1.15rem; }
  .cart-btn { width: 42px; height: 42px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--bnav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
  .bottom-nav a .i { width: 23px; height: 23px; }
  .bottom-nav a.on { color: var(--masala); }
  .bottom-nav a.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--masala); }
  .bottom-nav .badge { top: 6px; right: calc(50% - 22px); }
  .cart-bar { bottom: calc(var(--bnav-h) + var(--safe-b) + 10px); width: calc(100% - 24px); padding: 13px 18px; }
  .wa-fab { bottom: calc(var(--bnav-h) + var(--safe-b) + 14px); right: 14px; width: 50px; height: 50px; }
  body.has-cart .wa-fab { bottom: calc(var(--bnav-h) + var(--safe-b) + 82px); }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { padding: 20px; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
  .steps li .step-ic { grid-row: span 2; margin: 0; }
  .steps li h3 { margin-bottom: 4px; }
  .about-card { padding: 24px; }
  .cta-band { padding: 28px 24px; }
  .hero h1 { font-size: 2.35rem; }
  .lede { font-size: 1rem; }
  .hero-cta .btn { flex: 1; }
  .hero-facts li { font-size: .8rem; padding: 6px 11px; }
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dish-grid .dish-body { padding: 12px; }
  .dish-grid .dish-desc { display: none; }
  .dish-grid .dish-name { font-size: 1rem; }
  .dish-grid .dish-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .dish-grid .btn-add { width: 100%; justify-content: center; }
  .dish-grid .stepper { width: 100%; justify-content: space-between; }
  .dish-list { grid-template-columns: 1fr; gap: 0; }
  .dish.row { border-radius: 0; border-width: 0 0 1px; box-shadow: none; background: transparent; }
  .dish.row:hover { transform: none; box-shadow: none; }
  .dish.row .dish-media { width: 116px; height: 116px; margin: 16px 0 16px 0; }
  .dish.row .dish-body { padding: 16px 14px 16px 0; }
  .dish.row .dish-desc { -webkit-line-clamp: 2; font-size: .86rem; }
  .menu-section-head h2 { font-size: 1.35rem; }
  .tools-row { gap: 10px; }
  .veg-toggle span:last-child { font-size: .85rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 18px; border-radius: var(--r); }
  .timeline { grid-template-columns: 1fr; gap: 0; margin: 20px 0; }
  .timeline li { flex-direction: row; text-align: left; gap: 12px; padding: 8px 0; }
  .timeline li::before { top: -50%; left: 15px; width: 3px; height: 100%; }
  .tl-time { margin-left: auto; }
  .order-hero { padding: 22px; flex-direction: column; gap: 14px; }
  .order-hero-ic { width: 64px; height: 64px; font-size: 2.2rem; border-radius: 18px; }
  .qr svg { width: 150px; height: 150px; }
  .rating-summary { flex-direction: column; align-items: stretch; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .auth-card { padding: 28px 20px; }
  .review-rail { grid-auto-columns: 85%; }

  body.admin { display: block; padding-bottom: 0; }
  .adm-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; }
  .adm-side .brand-name { font-size: 1.05rem; }
  .adm-side .brand { margin: 0; }
  .kitchen-switch { margin-left: auto; padding: 6px 10px; }
  .kitchen-switch .ks-label { font-size: .8rem; }
  .adm-nav { order: 3; flex-direction: row; width: 100%; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav a { flex: none; padding: 8px 12px; font-size: .86rem; gap: 6px; }
  .adm-nav a .i { display: none; }
  .adm-nav .nb { margin-left: 4px; }
  .adm-side-foot { display: none; }
  .adm-main { padding: 18px 14px 50px; }
  .adm-top h1 { font-size: 1.45rem; }
  .stat { padding: 14px; }
  .stat-val { font-size: 1.35rem; }
  .aorder-grid { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .mrow-img { width: 56px; height: 56px; }
  .mrow-switches { grid-column: 1 / -1; gap: 18px; padding-left: 0; flex-wrap: wrap; }
  .mrow .icon-btn { grid-row: 1; grid-column: 3; }
  .pop-body { width: min(300px, calc(100vw - 40px)); }
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl td { display: block; padding: 2px 0; border: 0; }
  .tbl td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  .row-actions { justify-content: flex-start; margin-top: 6px; }
  .inline-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body.admin { display: block; background: #fff; }
  .adm-side, .adm-top-actions, .flashes, .aod-grid > .stack > section:not(.print-area), .aod-grid > .stack:last-child, .toast { display: none !important; }
  .aod-grid { display: block; }
  .print-area { border: 0; box-shadow: none; }
  .print-only { display: inline; }
}
