/* =========================================================
   emato — shared styles
   ========================================================= */
:root {
  --brand: #e23744;
  --brand-dark: #c52735;
  --brand-soft: #fdecee;
  --text: #1c1c1c;
  --text-2: #4f4f4f;
  --muted: #828282;
  --line: #e8e8e8;
  --line-2: #f1f1f1;
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-page: #f4f5f7;
  --green: #24963f;
  --green-soft: #e9f6ec;
  --amber: #b86e00;
  --amber-soft: #fff4e0;
  --blue: #256fef;
  --blue-soft: #eaf1fe;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(28, 28, 28, .06), 0 2px 8px rgba(28, 28, 28, .06);
  --shadow-lg: 0 8px 28px rgba(28, 28, 28, .14);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* chart tokens (single series) */
  --chart-series: #2a78d6;
  --chart-grid: #e1e0d9;
  --chart-axis: #c3c2b7;
  --chart-muted: #898781;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 600; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.text-green { color: var(--green); }
.text-red { color: var(--brand); }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: 500 14px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  background: var(--bg-soft); color: var(--text);
}
.btn:hover { color: inherit; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: #fff; border-color: #cfcfcf; color: var(--text); }
.btn-outline:hover { border-color: var(--text-2); }
.btn-outline-brand { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #1c7d33; color: #fff; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-danger-ghost { background: transparent; color: var(--brand); }
.btn-danger-ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn-on-dark { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { border-color: #cfcfcf; color: var(--text); }
.icon-btn.danger:hover { color: var(--brand); border-color: var(--brand); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-grid .field { margin-bottom: 0; }
.field label, .label { font-weight: 500; font-size: 13px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .hint.text-red { color: #c8202f; font-weight: 500; }
.field:has(.hint.text-red) :is(.input, .select, .textarea) { border-color: var(--brand); }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border: 1px solid #d6d6d6; border-radius: 8px;
  font: 400 14px/1.4 var(--font); color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(226, 55, 68, .12); }
.textarea { min-height: 90px; resize: vertical; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: flex; align-items: center; padding: 0 12px; background: var(--bg-soft);
  border: 1px solid #d6d6d6; border-right: 0; border-radius: 8px 0 0 8px; color: var(--text-2);
}
.input-prefix .input { border-radius: 0 8px 8px 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin: 8px 0 16px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span {
  padding: 7px 14px; border: 1px solid #d6d6d6; border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--text-2); user-select: none; transition: all .15s;
}
.chip-check input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(226, 55, 68, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #d6d6d6;
  border-radius: 8px; cursor: pointer; font-weight: 500;
}
.radio-card input:focus-visible + span { box-shadow: 0 0 0 3px rgba(226, 55, 68, .2); }
.radio-card input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.radio-card.big > span { padding: 14px 18px; min-width: 240px; }
.radio-card.big strong { display: block; }
.radio-card.big small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.radio-card.disabled > span { opacity: .45; cursor: not-allowed; }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  width: 40px; height: 22px; border-radius: 999px; background: #cfcfcf; position: relative; transition: background .2s; flex-shrink: 0;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s;
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(36, 150, 63, .25); }

/* ---------- Alerts / badges ---------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--green-soft); color: #1b6e2f; border-color: #c9e8d1; }
.alert-error { background: var(--brand-soft); color: #a41e2b; border-color: #f7cdd2; }
.alert-info { background: var(--blue-soft); color: #1d4fb0; border-color: #cddcfb; }
.alert-warning { background: var(--amber-soft); color: #8a5300; border-color: #f7ddb0; }
.error-list { margin: 6px 0 0; padding-left: 18px; }
.upgrade-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); margin-bottom: 12px; }
.upgrade-box strong { display: block; }
.error-list li + li { margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500; background: var(--bg-soft); color: var(--text-2); white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: #1b6e2f; }
.badge-red { background: var(--brand-soft); color: #b3202e; }
.badge-amber { background: var(--amber-soft); color: #8a5300; }
.badge-blue { background: var(--blue-soft); color: #1d4fb0; }
.badge-dark { background: #2d2d2d; color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

.status-placed { background: var(--amber-soft); color: #8a5300; }
.status-confirmed, .status-preparing { background: var(--blue-soft); color: #1d4fb0; }
.status-out_for_delivery { background: #efe9fd; color: #5b2fc0; }
.status-delivered, .status-confirmed-booking { background: var(--green-soft); color: #1b6e2f; }
.status-cancelled { background: var(--brand-soft); color: #b3202e; }
.status-pending { background: var(--amber-soft); color: #8a5300; }

/* Rating badge (green scale like Zomato) */
.rating-badge {
  display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 6px;
  color: #fff; font-weight: 600; font-size: 13px; line-height: 1.4; white-space: nowrap;
}
.rating-badge .star { font-size: 10px; margin-left: 2px; }
.rating-badge.r-5 { background: #1a7a32; }
.rating-badge.r-4 { background: #24963f; }
.rating-badge.r-3 { background: #5ba829; }
.rating-badge.r-2 { background: #db7c00; }
.rating-badge.r-1 { background: #cb202d; }
.rating-badge.r-new { background: #9c9c9c; font-size: 11px; }
.rating-badge.lg { font-size: 16px; padding: 4px 9px; border-radius: 8px; }

/* Veg / non-veg marks */
.food-type {
  display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px;
  border: 1.5px solid; border-radius: 3px; flex-shrink: 0; vertical-align: middle;
}
.food-type::after { content: ""; }
.food-type.veg { border-color: #0f8a3c; }
.food-type.veg::after { width: 6px; height: 6px; border-radius: 50%; background: #0f8a3c; }
.food-type.nonveg { border-color: #a5391f; }
.food-type.nonveg::after {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #a5391f;
}
.food-type.egg { border-color: #c98a00; }
.food-type.egg::after { width: 6px; height: 7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #e5a100; }
.food-type + .food-type { margin-left: 3px; }

/* Prices: selling price, actual price (MRP) crossed out, discount */
.price-now { font-weight: 600; color: var(--text); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .92em; }
.price-off { color: #1b7a34; font-size: 12px; font-weight: 600; }
.price-line { margin-top: 4px; font-size: 14px; }
.price-preview { background: var(--bg-soft); border: 1px dashed #d6d6d6; border-radius: 8px; padding: 10px 14px; font-size: 14px; color: var(--text-2); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bestseller-tag {
  display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600;
  color: #d9480f; background: #fff1e8; padding: 1px 7px; border-radius: 4px;
}

/* ---------- Cards / tables ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state .emoji { font-size: 44px; margin-bottom: 8px; }
.empty-state h3 { color: var(--text); }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  padding: 12px 16px; border: 0; background: none; font: 500 14px var(--font); color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.active, .tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .count { background: var(--bg-soft); color: var(--text-2); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.tabs a.active .count { background: var(--brand); color: #fff; }

/* Logo */
.logo {
  font-family: var(--font); font-weight: 800; font-style: italic; font-size: 30px; letter-spacing: -1.5px;
  color: var(--text); line-height: 1;
}
.logo:hover { color: var(--text); }

/* Toast */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #1c1c1c; color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow-lg);
  font-size: 14px; animation: toast-in .25s ease; pointer-events: auto; max-width: calc(100vw - 32px);
}
.toast.success { background: #1b6e2f; }
.toast.error { background: #b3202e; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal { background: #fff; border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 8px; }
.modal .btn-row { justify-content: flex-end; }

/* ---------- Auth pages ---------- */
.auth-page { background: var(--bg-page); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 640px; }
.auth-card .logo { display: inline-block; margin-bottom: 20px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 20px; color: var(--text-2); }
.auth-switch a { color: var(--brand); font-weight: 500; }
.demo-hint { margin-top: 16px; padding: 12px; border: 1px dashed #d6d6d6; border-radius: 8px; font-size: 13px; color: var(--text-2); background: var(--bg-soft); }

/* =========================================================
   Partner panel
   ========================================================= */
.partner-body { background: var(--bg-page); }
.p-topbar {
  position: sticky; top: 0; z-index: 50; height: 64px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.p-topbar .logo { font-size: 26px; }
.p-brand { display: flex; align-items: center; gap: 10px; }
.p-brand .tagline { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.2; }
.p-menu-toggle { display: none; }
.p-top-spacer { flex: 1; }

.outlet-switch { position: relative; }
.outlet-btn {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; font: inherit; text-align: left; max-width: 300px;
}
.outlet-btn img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.outlet-btn .name, .outlet-btn .loc { display: block; }
.outlet-btn .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outlet-btn .loc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.outlet-btn .txt { min-width: 0; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 0;
  background: none; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg-soft); color: var(--text); }
.dropdown-menu .active { background: var(--brand-soft); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.dropdown-menu .menu-head { padding: 8px 12px; font-size: 12px; color: var(--muted); }
.outlet-switch .dropdown-menu { left: 0; right: auto; min-width: 280px; }
.outlet-item img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }

.online-toggle { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.online-toggle .state { font-size: 13px; font-weight: 600; }
.online-toggle.is-online .state { color: var(--green); }
.online-toggle.is-offline .state { color: var(--brand); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #2d2d2d; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.avatar.soft { background: var(--brand-soft); color: var(--brand); }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; font: inherit; color: var(--text-2); }

.p-layout { display: flex; min-height: calc(100vh - 64px); }
.p-sidebar {
  width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 16px 12px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.p-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--text-2);
  font-weight: 500; margin-bottom: 2px;
}
.p-nav a:hover { background: var(--bg-soft); color: var(--text); }
.p-nav a.active { background: var(--brand-soft); color: var(--brand); }
.p-nav .nav-count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 7px; min-width: 20px; text-align: center; }
.p-nav .nav-count:empty, .p-nav .nav-count[data-count="0"] { display: none; }
.p-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 6px; }
.p-main { flex: 1; min-width: 0; padding: 24px; }
.p-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.p-page-head h1 { font-size: 24px; margin: 0; }
.p-page-head .sub { color: var(--muted); margin-top: 4px; }

/* Stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 600; margin-top: 6px; line-height: 1.2; }
.stat .delta { font-size: 12px; margin-top: 4px; color: var(--muted); }
.stat .delta.up { color: #006300; }
.stat .delta.down { color: #b3202e; }
.stat.stat-hero .value { font-size: 34px; }

.p-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.p-grid > div { min-width: 0; }

/* Column chart (single series) */
.col-chart { position: relative; padding: 8px 0 0 44px; }
.col-chart .plot { position: relative; height: 200px; border-bottom: 1px solid var(--chart-axis); }
.col-chart .gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--chart-grid); }
.col-chart .tick { position: absolute; left: -44px; width: 38px; text-align: right; font-size: 11px; color: var(--chart-muted); transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.col-chart .cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col-chart .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; position: relative; }
.col-chart .bar { width: 100%; max-width: 24px; background: var(--chart-series); border-radius: 4px 4px 0 0; min-height: 0; transition: opacity .15s; }
.col-chart .col:hover .bar { opacity: .8; }
.col-chart .cap { font-size: 11px; font-weight: 600; color: var(--text); margin-bottom: 4px; white-space: nowrap; }
.col-chart .xlabels { display: flex; gap: 2px; margin-top: 6px; }
.col-chart .xlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--chart-muted); }
.col-chart .xlabels span.today { color: var(--text); font-weight: 600; }
/* Many columns: sparse labels stay centred under their column even when wider than it */
.col-chart.dense .xlabels span { min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
.col-chart.dense .cols { gap: 3px; }
.col-chart.dense .col:last-child .cap { align-self: flex-end; } /* today's value grows leftwards, inside the card */
.chart-tip {
  position: absolute; pointer-events: none; background: #1c1c1c; color: #fff; padding: 8px 10px; border-radius: 8px;
  font-size: 12px; white-space: nowrap; transform: translate(-50%, calc(-100% - 8px)); z-index: 5; display: none;
}
.chart-tip strong { display: block; font-size: 13px; }
.chart-table { margin-top: 12px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--text-2); font-size: 13px; }

/* Order cards (partner) */
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.order-card.is-new { border-color: #f5b8be; box-shadow: 0 0 0 3px rgba(226, 55, 68, .08); }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-id { font-weight: 600; font-size: 16px; }
.order-meta { color: var(--muted); font-size: 13px; }
.order-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.order-items .qty { font-weight: 600; min-width: 26px; }
.order-items .price { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.order-total { display: flex; justify-content: space-between; font-weight: 600; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.cust-block { font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.cust-block .row { display: flex; gap: 8px; align-items: flex-start; }
.cust-block .row .icon { margin-top: 2px; color: var(--muted); }
.cust-name { font-weight: 600; color: var(--text); font-size: 14px; }
.note-box { background: var(--amber-soft); color: #7a4a00; padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-top: 10px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; justify-content: flex-end; align-items: center; }
.order-actions form { margin: 0; }
.reject-form { display: flex; gap: 6px; align-items: center; }
.reject-form .select { padding: 7px 10px; width: auto; }

/* Compact list rows */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .sub { font-size: 12px; color: var(--muted); }

/* Menu manager */
.menu-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.page-search .input { width: 240px; }
.cat-card { position: sticky; top: 84px; }
.cat-add { display: flex; gap: 6px; margin-top: 12px; }
.cat-add .input { flex: 1; min-width: 0; padding: 8px 10px; }
.p-backdrop { position: fixed; inset: 64px 0 0 0; background: rgba(0,0,0,.4); z-index: 39; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.cat-list li:last-child { border-bottom: 0; }
.cat-list a.cat-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list .count { font-size: 12px; color: var(--muted); }
.cat-edit { display: flex; gap: 6px; width: 100%; }
.cat-edit .input { padding: 7px 10px; }
.menu-section { margin-bottom: 20px; }
.menu-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.menu-section-head h3 { margin: 0; font-size: 16px; }
.item-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.item-row:last-child { border-bottom: 0; }
.item-row .info { flex: 1; min-width: 0; }
.item-row .name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.item-row .desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-row .actions { display: flex; gap: 6px; align-items: center; }
.item-row.unavailable .thumb-upload, .item-row.unavailable .info { opacity: .5; }

/* Dish photo: click the thumbnail to add / change it */
.thumb-form { margin: 0; flex-shrink: 0; }
.thumb-upload {
  position: relative; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px;
  border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--bg-soft);
}
.thumb-upload img { width: 100%; height: 100%; object-fit: cover; }
.thumb-upload .thumb-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45);
  color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transition: opacity .15s;
}
.thumb-upload:hover .thumb-overlay, .thumb-upload:focus-within .thumb-overlay { opacity: 1; }
.thumb-upload.empty { border: 1.5px dashed #c9c9c9; background: #fff; }
.thumb-upload.empty:hover { border-color: var(--brand); color: var(--brand); }
.thumb-add { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--text-2); text-align: center; }
.thumb-upload.empty:hover .thumb-add { color: var(--brand); }
.thumb-upload:focus-within { box-shadow: 0 0 0 3px rgba(226, 55, 68, .25); }

/* Big photo picker in the dish form */
.photo-col { width: 160px; flex-shrink: 0; }
.photo-drop { position: relative; display: block; width: 160px; height: 160px; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--bg-soft); border: 1px solid var(--line); }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
.photo-drop-label {
  position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 4px;
  background: rgba(255,255,255,.94); border-radius: 8px; padding: 6px; font-size: 12px; font-weight: 600; color: var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.photo-drop:hover .photo-drop-label { background: #fff; }
.photo-drop.small { width: 96px; height: 96px; border-radius: 12px; }
.photo-drop.small .photo-drop-label { left: 5px; right: 5px; bottom: 5px; padding: 3px; font-size: 11px; }

/* Menu filter chips */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid #d6d6d6;
  background: #fff; font: 500 13px var(--font); color: var(--text-2); cursor: pointer;
}
.filter-chip b { font-weight: 600; color: var(--text); }
.filter-chip:hover { border-color: var(--text-2); }
.filter-chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.filter-chip.warn b { color: var(--brand); }

/* Add many dishes */
.bulk-row {
  position: relative; display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 48px 16px 16px; margin-bottom: 12px;
}
.bulk-row.has-error { border-color: #f5b8be; }
.bulk-num {
  position: absolute; top: -9px; left: 14px; background: var(--text); color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 999px; padding: 1px 8px;
}
.bulk-photo-col { width: 96px; flex-shrink: 0; }
.bulk-fields { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bulk-fields .field { margin: 0; }
.bulk-fields .span-2 { grid-column: span 2; }
.bulk-fields .input, .bulk-fields .select { padding: 9px 12px; }
.bulk-best { margin: 0; }
.bulk-remove { position: absolute; top: 12px; right: 12px; }
.bulk-add { border-style: dashed; margin-bottom: 8px; }

/* Map picker (Leaflet + OpenStreetMap) */
.map-picker { margin-top: 6px; }
.map-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.map-toolbar .input { flex: 1; min-width: 200px; }
.map-box { height: 340px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--bg-soft); z-index: 0; }
.map-box.has-error { border-color: var(--brand); }
.map-status { margin-top: 8px; font-size: 13px; color: var(--muted); }
.map-status.ok { color: #1b6e2f; }
.map-status a { color: var(--blue); }
.map-pin { background: none; border: 0; }
.map-pin svg { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.img-preview { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; background: var(--bg-soft); border: 1px solid var(--line); }
.img-preview.wide { width: 220px; height: 140px; }
.upload-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.upload-row .fields { flex: 1; min-width: 220px; }

/* Form sections (restaurant profile) */
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.form-section h3 { font-size: 16px; margin-bottom: 4px; }
.form-section .section-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg-page) 30%); padding: 20px 0 8px; display: flex; justify-content: flex-end; gap: 10px; }

/* Reviews */
.rating-summary { display: flex; gap: 24px; flex-wrap: wrap; }
.rating-summary .big { font-size: 34px; font-weight: 600; line-height: 1; }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.dist-row .track { flex: 1; height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; min-width: 120px; }
.dist-row .fill { height: 100%; background: #24963f; border-radius: 999px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head .who { flex: 1; min-width: 0; }
.review-head .who strong { display: block; }
.review p { margin: 10px 0 0; color: var(--text-2); }
.review-reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-soft); border-radius: 8px; border-left: 3px solid var(--brand); font-size: 13px; }
.review-reply strong { display: block; font-size: 12px; color: var(--text); margin-bottom: 2px; }

/* Partner landing (register) */
.partner-hero {
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65)), url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1600&auto=format&fit=crop&q=70") center/cover;
  color: #fff; padding: 28px 0 64px;
}
.partner-hero .nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.partner-hero .logo { color: #fff; }
.partner-hero .nav a { color: #fff; }
.partner-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.partner-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.partner-hero .lead { font-size: 17px; opacity: .92; max-width: 520px; }
.partner-hero .auth-card { color: var(--text); }
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 48px 0; }
.perk { text-align: center; padding: 8px; }
.perk .emoji { font-size: 34px; margin-bottom: 8px; }
.perk h3 { font-size: 16px; }
.perk p { color: var(--muted); margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-bottom: 56px; }
.step-card { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.step-card .num { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step-card h4 { margin-bottom: 4px; }
.step-card p { margin: 0; color: var(--text-2); font-size: 13px; }

/* =========================================================
   Admin panel (reuses the partner layout above)
   ========================================================= */
.p-nav-label:first-child { padding-top: 4px; }
.admin-body .p-brand .tagline { color: var(--text); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--text-2); }
.kv > strong { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.list-row.row-link { color: inherit; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.list-row.row-link:hover { background: var(--bg-soft); color: inherit; }
.thumb-sm { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-soft); }
.thumb-sm.round { border-radius: 50%; }
.rest-cell { display: flex; align-items: center; gap: 10px; color: inherit; }

.filter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filter-form .field { margin: 0; flex: 1 1 150px; min-width: 0; }
.filter-form .field.grow-2 { flex: 2 1 260px; }
.filter-actions { display: flex; gap: 8px; }
.card.table-card { padding: 8px 16px; }
.card.table-card > .card-head { padding-top: 10px; }
.table tr.is-muted td:not(.actions-cell) { opacity: .55; }
.table tr.is-selected td { background: var(--brand-soft); }
.table td a strong, .rest-cell strong { color: var(--text); }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; }
.pager .gap { color: var(--muted); padding: 0 2px; }

.admin-rest-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.admin-rest-head > img { width: 88px; height: 88px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.admin-rest-head h1 { font-size: 24px; margin: 0 0 2px; }

.mini-steps { list-style: none; display: flex; margin: 0; padding: 0; counter-reset: step; }
.mini-steps li { flex: 1; position: relative; text-align: center; font-size: 12px; color: var(--muted); padding-top: 28px; }
.mini-steps li::before {
  content: counter(step); counter-increment: step; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.mini-steps li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.mini-steps li.done, .mini-steps li.current { color: var(--text); }
.mini-steps li.done::before { content: "✓"; background: var(--green); border-color: var(--green); color: #fff; }
.mini-steps li.done + li::after, .mini-steps li.current::after { background: var(--green); }
.mini-steps li.current::before { border-color: var(--green); color: var(--green); }
.mini-steps li.current { font-weight: 600; }

.kv.row-link { color: inherit; }
.kv.row-link:hover span { color: var(--brand); }
.assign-form { display: flex; gap: 8px; margin-top: 12px; }
.assign-form .select { flex: 1; min-width: 0; padding: 8px 10px; }

/* =========================================================
   Delivery partner app (phone-first)
   ========================================================= */
.rider-body { background: var(--bg-page); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.rd-top {
  position: sticky; top: 0; z-index: 50; height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
}
.rd-top .logo { font-size: 24px; }
.rd-main { max-width: 640px; margin: 0 auto; padding: 16px; }
.rd-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: center;
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.rd-tabbar a { flex: 1; max-width: 180px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.rd-tabbar a.active { color: var(--brand); }
.rd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 8px; }
.rd-section-head h1 { font-size: 20px; margin: 0; }
.rd-location { color: var(--muted); margin-bottom: 12px; }
.rd-location.ok { color: #1b6e2f; }

.rd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.rd-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rd-stat { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: inherit; min-width: 0; }
.rd-stat .label { font-size: 12px; color: var(--text-2); }
.rd-stat .value { font-size: 20px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rd-review { text-align: center; }
.rd-review .emoji { font-size: 44px; margin-bottom: 6px; }
.rd-review h1 { font-size: 20px; }
.rd-review .kv { text-align: left; }
.rd-profile { display: flex; align-items: center; gap: 16px; }
.rd-profile h1 { font-size: 20px; margin: 0 0 4px; }
.rd-logout { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; text-align: left; margin: 0 -8px; width: calc(100% + 16px); }

.rd-job { background: #fff; border: 2px solid var(--green); border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.rd-job-head { background: var(--green); color: #fff; padding: 14px 16px; }
.rd-job-head h1 { font-size: 20px; margin: 4px 0 2px; color: #fff; }
.rd-job-head .small { opacity: .9; }
.rd-steps { padding: 14px 8px 4px; }
.rd-leg { padding: 14px 16px; border-top: 1px solid var(--line-2); }
.rd-leg.is-done { opacity: .55; }
.rd-leg .leg-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.rd-leg .name { font-weight: 600; font-size: 16px; }
.rd-leg .addr { color: var(--text-2); font-size: 14px; margin: 2px 0 8px; }
.rd-leg .btn-row { margin-top: 10px; }
.rd-food { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--amber-soft); color: #7a4a00; }
.rd-food.ready { background: var(--green-soft); color: #1b6e2f; }
.rd-items { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
.rd-items li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.rd-pay { margin: 0 16px 14px; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.rd-pay.cash { background: var(--amber-soft); color: #7a4a00; }
.rd-pay.paid { background: var(--green-soft); color: #1b6e2f; }
.rd-actions { padding: 14px 16px 16px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.rd-actions form { margin: 0; }

.rd-offer { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.rd-offer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rd-offer .name { font-weight: 600; font-size: 16px; }
.rd-fee { font-size: 22px; font-weight: 700; color: #1b6e2f; text-align: right; line-height: 1.1; white-space: nowrap; }
.rd-fee span { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.rd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); margin: 10px 0; }
.rd-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rd-offer-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }

/* Delivery partner on the customer's tracking page and the restaurant's order card */
.rider-card { display: flex; align-items: center; gap: 12px; }
.rider-card .grow strong { display: block; }
.track-map { height: 240px; border-radius: 12px; overflow: hidden; margin-top: 14px; border: 1px solid var(--line); background: var(--bg-soft); z-index: 0; }
.rider-pin { background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 20px; display: flex !important; align-items: center; justify-content: center; }
.rider-strip { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--green-soft); color: #1b6e2f; }
.rider-strip .cust-name { color: var(--text); }
.rider-strip.waiting { background: var(--bg-soft); color: var(--text-2); }

/* =========================================================
   Customer site
   ========================================================= */
.site-main { min-height: 60vh; }
/* grid/flex children must be allowed to shrink, or long text pushes them off small screens */
.r-grid > *, .menu-layout > *, .p-grid > *, .checkout-grid > *, .overview-grid > *, .menu-wrap > *, .address-grid > * { min-width: 0; }
.r-row > * { min-width: 0; }
.r-row .rating-badge, .r-row .nowrap { flex-shrink: 0; }

/* Fixed bottom action bar on phones (cart / checkout) */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.1);
}
.mobile-cta .btn { width: 100%; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.flash-wrap { padding-top: 16px; }
.flash-wrap .alert { margin-bottom: 8px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.header-inner .logo { flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.nav-link { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-size: 15px; font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.nav-link:hover { color: var(--text); background: var(--bg-soft); }
.site-nav.on-dark .nav-link, .site-nav.on-dark .avatar-btn { color: #fff; }
.site-nav.on-dark .nav-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.cart-link { position: relative; }
.cart-count {
  position: absolute; top: 0; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-user { padding: 4px 6px; border-radius: 999px; }

/* Search bar with city picker */
.search-bar {
  display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28, 28, 28, .08); height: 52px; position: relative;
}
.search-bar.in-header { flex: 1; max-width: 640px; }
.search-bar.in-hero { width: 100%; max-width: 760px; height: 58px; border: 0; }
.search-city { display: flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--brand); flex-shrink: 0; cursor: pointer; }
.search-city select { border: 0; background: transparent; font: 400 15px var(--font); color: var(--text-2); max-width: 150px; cursor: pointer; outline: none; }
.search-divider { width: 1px; height: 26px; background: #d6d6d6; flex-shrink: 0; }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); min-width: 0; height: 100%; }
.search-bar { min-width: 0; }
.search-input input { width: 0; border: 0; outline: none; flex: 1; min-width: 0; font: 400 15px var(--font); color: var(--text); background: transparent; height: 100%; }
.suggest-box {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); max-height: 440px; overflow-y: auto; z-index: 70; padding: 6px 0; min-width: 300px;
}
.suggest-label { padding: 8px 16px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.suggest-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--text); }
.suggest-item:hover, .suggest-item.active { background: var(--bg-soft); color: var(--text); }
.suggest-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.suggest-item .t { font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.suggest-item .s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item > div { min-width: 0; }
.suggest-all { display: block; padding: 10px 16px; border-top: 1px solid var(--line-2); color: var(--brand); font-weight: 500; font-size: 14px; }
.suggest-empty { padding: 14px 16px; color: var(--muted); font-size: 14px; }

/* Home hero */
.hero {
  position: relative; min-height: 480px; color: #fff; display: flex; flex-direction: column;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)), var(--hero-img) center/cover no-repeat, #2d2d2d;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; }
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px 56px; }
.hero-logo { font-weight: 800; font-style: italic; font-size: clamp(52px, 9vw, 84px); letter-spacing: -3px; line-height: 1; margin-bottom: 14px; }
.hero h1 { font-weight: 400; font-size: clamp(20px, 3vw, 32px); margin-bottom: 28px; }
.home .site-header { display: none; }

.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 8px; }
.home-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.home-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.home-card img { width: 100%; height: 170px; object-fit: cover; }
.home-card div { padding: 14px 16px 16px; }
.home-card h3 { font-size: 20px; margin: 0 0 2px; font-weight: 500; }
.home-card p { margin: 0; color: var(--text-2); }

.home-section { margin: 40px 0; }
.home-section h2 { font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.home-section > .muted { margin-bottom: 16px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head p { margin: 0; }
.see-all { color: var(--brand); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.scroll-row { display: grid; grid-auto-flow: column; gap: 20px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.scroll-row > * { scroll-snap-align: start; }
.cuisine-row { grid-auto-columns: 140px; margin-top: 16px; }
.cuisine-circle { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 15px; font-weight: 500; }
.cuisine-circle img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; transition: transform .2s; }
.cuisine-circle:hover img { transform: scale(1.05); }

/* Dish card */
.dish-row { grid-auto-columns: 230px; }
.d-card { display: block; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.d-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.d-card-img { position: relative; height: 150px; background: var(--bg-soft); }
.d-card-img img { width: 100%; height: 100%; object-fit: cover; }
.d-best { position: absolute; left: 8px; top: 8px; background: #fff; color: #d9480f; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.d-card-body { padding: 12px; }
.d-name { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.d-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-price { margin: 4px 0 8px; font-size: 14px; }
.d-rest { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; }
.d-rest-name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-rest .rating-badge { font-size: 11px; padding: 1px 5px; }

/* Collections */
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.collection {
  position: relative; height: 300px; border-radius: 14px; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.8)), var(--img) center/cover;
}
.collection:hover { color: #fff; }
.collection div { padding: 16px; }
.collection h3 { font-size: 18px; margin: 0; font-weight: 500; }
.collection p { margin: 2px 0 6px; font-size: 13px; opacity: .9; }
.collection span { font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }

/* Restaurant card */
.r-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.r-card { display: block; padding: 10px; border-radius: 18px; border: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.r-card:hover { box-shadow: var(--shadow-lg); border-color: var(--line); color: inherit; }
.r-card-img { position: relative; height: 230px; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
.r-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.r-card:hover .r-card-img img { transform: scale(1.04); }
.r-tag-promoted { position: absolute; top: 12px; left: 0; background: rgba(28,28,28,.72); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 0 6px 6px 0; }
.r-offer {
  position: absolute; left: 0; bottom: 16px; display: inline-flex; align-items: center; gap: 4px; max-width: 75%;
  background: linear-gradient(90deg, #256fef 0%, rgba(37,111,239,.85) 70%, rgba(37,111,239,0) 100%);
  color: #fff; font-size: 13px; font-weight: 600; padding: 3px 28px 3px 10px; border-radius: 0 4px 4px 0; white-space: nowrap;
}
.r-time { position: absolute; right: 10px; bottom: 16px; background: #fff; color: var(--text); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 6px; }
.r-closed { position: absolute; inset: auto 0 0 0; background: rgba(28,28,28,.78); color: #fff; font-size: 13px; text-align: center; padding: 6px; }
.r-card.is-closed .r-card-img img { filter: grayscale(.7); }
.r-card.is-closed .r-offer, .r-card.is-closed .r-time { display: none; }
.r-card-body { padding: 10px 2px 0; }
.r-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.r-name { font-size: 18px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-cuisines { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pure-veg { display: inline-flex; align-items: center; gap: 4px; color: #0f8a3c; font-size: 12px; font-weight: 500; white-space: nowrap; }

.localities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.locality { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.locality:hover { box-shadow: var(--shadow); }
.locality strong { display: block; font-weight: 500; font-size: 16px; }
.locality span { font-size: 13px; }

.partner-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 48px 0;
  padding: 28px 32px; border-radius: 18px; background: linear-gradient(120deg, #fff1f2, #fff8ee); border: 1px solid #fbd9dc;
}
.partner-banner h2 { margin-bottom: 4px; }
.partner-banner p { margin: 0; color: var(--text-2); }

/* Listing */
.listing { padding-bottom: 32px; }
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 16px 0 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.type-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.type-tabs a { display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; font-size: 18px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.type-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.type-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.type-tabs a.active .type-icon { background: #fce8ea; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.filters .filter-chip { text-decoration: none; }
.filter-chip.clear { border-style: dashed; }
.sort-form { margin: 0; }
.select-chip select { border: 0; background: transparent; font: 500 13px var(--font); color: var(--text-2); outline: none; cursor: pointer; }
.cuisine-chips { grid-auto-columns: max-content; gap: 8px; margin-bottom: 8px; }
.chip-link { padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); font-size: 13px; color: var(--text-2); white-space: nowrap; }
.chip-link.active { background: var(--brand); color: #fff; }
.chip-link:hover { color: var(--text); }
.chip-link.active:hover { color: #fff; }
.chip-static { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.listing-head { display: flex; align-items: baseline; gap: 12px; margin: 20px 0; }
.listing-head h1 { font-size: 26px; font-weight: 500; margin: 0; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }

/* Restaurant page */
.rest-page { padding-bottom: 96px; }
.gallery { display: grid; gap: 8px; height: 360px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 0; background: var(--bg-soft); }
.gallery-0 { grid-template-columns: 1fr; }
.gallery-1 { grid-template-columns: 2fr 1fr; }
.gallery-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-2 .g-main { grid-row: span 2; }
.gallery-3, .gallery-4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-3 .g-main, .gallery-4 .g-main { grid-row: span 2; }
.gallery-3 .g-0 { grid-row: span 2; }
.rest-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.rest-title h1 { font-size: 34px; font-weight: 500; margin-bottom: 4px; }
.rest-cuisines { font-size: 16px; color: var(--text-2); }
.rest-hours { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.rest-ratings { display: flex; gap: 20px; }
.rating-box { display: flex; align-items: center; gap: 8px; }
.rating-box strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.1; }
.rating-box div > span { font-size: 12px; color: var(--muted); border-bottom: 1px dashed #c9c9c9; }
.coupon .btn { color: var(--brand); font-weight: 600; }
.rest-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.rest-actions .btn { border-radius: 10px; }
.bookmark-btn.is-on { color: var(--brand); border-color: var(--brand); }
.bookmark-btn.is-on svg { fill: currentColor; }
.offer-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: #eef4ff; color: #1d4fb0; margin-bottom: 16px; }
.offer-strip .muted { color: #5071b5; }
.rest-tabs { position: sticky; top: 0; z-index: 30; background: #fff; display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.rest-tabs button {
  border: 0; background: none; padding: 14px 16px; font: 400 17px var(--font); color: var(--muted); border-bottom: 3px solid transparent;
  margin-bottom: -1px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.rest-tabs button:hover { color: var(--text); }
.rest-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.rest-tabs .count { font-size: 12px; background: var(--bg-soft); border-radius: 999px; padding: 0 7px; color: var(--text-2); }

/* Menu */
.menu-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.menu-cats { position: sticky; top: 70px; display: flex; flex-direction: column; border-right: 1px solid var(--line); max-height: calc(100vh - 90px); overflow-y: auto; }
.menu-cats a { padding: 10px 16px 10px 0; color: var(--text-2); font-size: 15px; border-right: 3px solid transparent; margin-right: -1px; }
.menu-cats a:hover { color: var(--text); }
.menu-cats a.active { color: var(--brand); border-right-color: var(--brand); font-weight: 500; }
.menu-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.menu-top h2 { font-size: 24px; font-weight: 500; margin: 0; }
.menu-top p { margin: 2px 0 0; display: flex; align-items: center; gap: 4px; }
.menu-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.menu-search { display: flex; align-items: center; gap: 8px; border: 1px solid #d6d6d6; border-radius: 8px; padding: 0 12px; color: var(--muted); height: 40px; }
.menu-search input { border: 0; outline: none; font: 400 14px var(--font); width: 200px; background: transparent; }
.menu-cat { padding-top: 16px; scroll-margin-top: 70px; }
.menu-cat h3 { font-size: 20px; font-weight: 500; margin: 8px 0 4px; }
.dish { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 90px; }
.dish-info { flex: 1; min-width: 0; }
.dish-marks { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dish h4 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.dish-price { font-size: 15px; }
.dish-desc { color: var(--muted); font-size: 13px; margin: 8px 0 0; max-width: 560px; }
.dish-side { width: 150px; flex-shrink: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dish-side.has-img { justify-content: flex-start; }
.dish-side img { width: 150px; height: 135px; object-fit: cover; border-radius: 14px; }
.dish-side.has-img .qty-control { margin-top: -18px; }
.dish.is-sold-out .dish-info, .dish.is-sold-out img { opacity: .5; }
.dish.is-highlight { background: linear-gradient(90deg, #fff7e0, #fff 70%); border-radius: 12px; padding-left: 16px; padding-right: 8px; box-shadow: inset 4px 0 0 #f5a623; animation: dish-flash 1.6s ease 2; }
@keyframes dish-flash { 50% { background: #ffe9b3; } }

.qty-control { position: relative; width: 110px; height: 38px; }
.add-btn, .qty-control .stepper {
  position: absolute; inset: 0; border-radius: 8px; border: 1px solid #e23744; background: #fff6f7; color: var(--brand);
  box-shadow: 0 3px 8px rgba(226, 55, 68, .18);
}
.add-btn { font: 600 15px var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-btn .plus { position: absolute; top: 1px; right: 6px; font-size: 13px; }
.add-btn:hover { background: #ffeef0; }
.add-btn:disabled { color: #b0b0b0; border-color: #d6d6d6; background: #f7f7f7; box-shadow: none; cursor: not-allowed; }
.qty-control .stepper { display: none; align-items: center; justify-content: space-between; background: var(--brand); color: #fff; }
.qty-control.has-qty .add-btn { display: none; }
.qty-control.has-qty .stepper { display: flex; }
.stepper button { border: 0; background: none; color: inherit; font: 600 20px var(--font); width: 36px; height: 100%; cursor: pointer; }
.stepper button:disabled { opacity: .45; cursor: not-allowed; }
.stepper span { font-weight: 600; font-size: 15px; }
.qty-control.busy { opacity: .6; pointer-events: none; }
.qty-control.sold-out { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 500; border: 1px dashed #d6d6d6; border-radius: 8px; }
.stepper.static { display: inline-flex; align-items: center; border: 1px solid #e23744; border-radius: 8px; background: #fff6f7; color: var(--brand); height: 34px; }
.stepper.static form { margin: 0; height: 100%; }
.stepper.static button { width: 32px; font-size: 18px; }
.stepper.static span { min-width: 20px; text-align: center; }

.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--brand); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
.cart-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.btn-on-dark-solid { background: #fff; color: var(--brand); font-weight: 600; }
.btn-on-dark-solid:hover { background: #fff3f4; color: var(--brand); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.overview-grid h3 { font-size: 18px; font-weight: 500; margin-top: 8px; }
.about { color: var(--text-2); max-width: 640px; }
.info-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.info-list li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.info-list .icon { color: var(--green); }
.contact-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.contact-card h4 + a { display: block; margin-bottom: 16px; }
.map-view { height: 220px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0 10px; z-index: 0; position: relative; }
.address { color: var(--text-2); margin: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 8px 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 34px; line-height: 1; color: #d6d6d6; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #24963f; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand); border-radius: 4px; }

/* Cart & checkout */
.page-narrow { max-width: 1040px; padding-top: 24px; padding-bottom: 48px; }
.page-title { font-size: 28px; font-weight: 500; margin-bottom: 20px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.checkout-grid > aside { position: sticky; top: 16px; }
.checkout-grid .card { margin-bottom: 16px; }
.checkout-grid .card + .card { margin-top: 0; }
.checkout-grid h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.cart-rest { display: flex; align-items: center; gap: 12px; }
.cart-rest img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-rest strong { display: block; }
.cart-lines { margin-top: 12px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.cart-line-name { font-weight: 500; }
.cart-line-total { width: 76px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 12px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed #24963f; border-radius: 10px; background: var(--green-soft); margin-bottom: 12px; }
.coupon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.coupon.locked { opacity: .65; }
.coupon-code { display: inline-block; font-weight: 600; letter-spacing: .04em; border: 1px dashed var(--brand); color: var(--brand); padding: 1px 8px; border-radius: 6px; font-size: 13px; margin-bottom: 4px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.bill-row > span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bill-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 600; color: var(--text); }
.savings { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--green-soft); color: #1b6e2f; font-size: 13px; font-weight: 500; }
.address-options, .pay-options { display: flex; flex-direction: column; gap: 10px; }
.address-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #d6d6d6; border-radius: 10px; cursor: pointer; }
.address-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.address-option input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex-shrink: 0; }
.address-option > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.summary-lines { margin: 14px 0 8px; }
.summary-line { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }

/* Order tracking & history */
.placed-banner { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 16px; background: var(--green-soft); border: 1px solid #c9e8d1; margin-bottom: 20px; animation: toast-in .4s ease; }
.placed-banner h2 { margin: 0 0 2px; color: #1b6e2f; }
.placed-banner p { margin: 0; color: var(--text-2); }
.placed-check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.track-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.track-title { font-size: 26px; font-weight: 600; margin: 4px 0; }
.eta { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(36,150,63,.6); } 100% { box-shadow: 0 0 0 10px rgba(36,150,63,0); } }
.stepper-v { list-style: none; margin: 0; padding: 0; }
.stepper-v li { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.stepper-v li:last-child { padding-bottom: 0; }
.stepper-v li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.stepper-v li:last-child::before { display: none; }
.stepper-v li.done::before { background: var(--green); }
.stepper-v .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d6d6d6; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; z-index: 1; }
.stepper-v li.done .dot, .stepper-v li.current .dot { background: var(--green); border-color: var(--green); }
.stepper-v li.current .dot { box-shadow: 0 0 0 5px rgba(36,150,63,.18); }
.stepper-v strong { display: block; font-weight: 500; }
.stepper-v li:not(.done):not(.current) strong { color: var(--muted); }
.order-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.order-row > img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.order-row-top, .order-row-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.order-row-bottom { align-items: center; }

/* Auth & profile */
.auth-wrap { display: flex; justify-content: center; padding: 48px 16px; background: var(--bg-page); }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-head h1 { margin: 0; font-weight: 500; }
.profile-head p { margin: 2px 0 0; }
.avatar.big { width: 72px; height: 72px; font-size: 24px; background: var(--brand); }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.address-grid .card + .card { margin-top: 0; }

/* Footer */
.site-footer { background: #f8f8f8; border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 48px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-city { display: flex; align-items: center; gap: 6px; border: 1px solid #cfcfcf; border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--text-2); }
.footer-city select { border: 0; background: transparent; font: 400 14px var(--font); outline: none; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--text-2); padding: 3px 0; font-size: 14px; }
.footer-note { border-top: 1px solid #e0e0e0; margin: 28px 0 0; padding-top: 16px; color: var(--muted); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .r-grid, .localities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection { height: 220px; }
  .menu-wrap { grid-template-columns: 1fr; gap: 8px; }
  .menu-cats {
    position: sticky; top: 52px; z-index: 20; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line);
    background: #fff; max-height: none; gap: 4px;
  }
  .menu-cats a { padding: 10px 12px; border-right: 0; border-bottom: 2px solid transparent; white-space: nowrap; margin: 0; }
  .menu-cats a.active { border-bottom-color: var(--brand); }
  .overview-grid, .checkout-grid { grid-template-columns: 1fr; }
  .checkout-grid > aside { position: static; }
  .gallery { height: 280px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-menu-toggle { display: inline-flex; }
  .p-sidebar {
    position: fixed; left: 0; top: 64px; z-index: 40; transform: translateX(-100%); transition: transform .2s;
    box-shadow: var(--shadow-lg);
  }
  .p-sidebar.open { transform: none; }
  .p-brand .tagline { display: none; }
  .menu-layout { grid-template-columns: 1fr; }
  .cat-card { position: static; }
  .order-body { grid-template-columns: 1fr; }
  .p-sidebar { overflow-y: auto; }
  .partner-hero-grid { grid-template-columns: 1fr; }
  .partner-hero h1 { font-size: 30px; }
  .perks { grid-template-columns: 1fr; padding: 32px 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1 { font-size: 24px; }
  /* 16px text stops iPhones zooming into form fields */
  .input, .select, .textarea, .search-input input, .menu-search input { font-size: 16px; }
  .hide-sm { display: none !important; }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .search-bar.in-header { order: 3; flex-basis: 100%; max-width: none; height: 46px; }
  .search-city select { max-width: 96px; font-size: 14px; }
  .suggest-box { min-width: 0; max-height: 60vh; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters > * { flex-shrink: 0; }
  .listing-head h1 { font-size: 20px; }
  .page-title { font-size: 22px; margin-bottom: 14px; }
  .page-narrow { padding-top: 16px; }
  .card { padding: 16px; }
  .mobile-cta { display: block; }
  .has-mobile-cta { padding-bottom: 88px; }
  .has-mobile-cta .desktop-cta { display: none; }
  .track-title { font-size: 22px; }
  .track-head { flex-wrap: wrap; }
  .placed-banner { padding: 16px; }
  .profile-head .avatar.big { width: 56px; height: 56px; font-size: 20px; }
  .profile-head h1 { font-size: 22px; }
  .rest-page { padding-bottom: 80px; }
  .rest-head { gap: 12px; }
  .offer-strip { font-size: 13px; }
  .menu-top h2 { font-size: 20px; }
  .menu-tools { width: 100%; justify-content: space-between; }
  .menu-search { flex: 1; }
  .menu-search input { width: 100%; }
  .dish h4 { font-size: 15px; }
  .dish-desc { font-size: 12px; }
  .stepper-v li { padding-bottom: 18px; }
  .coupon-form .btn { padding: 10px 14px; }
  .modal { padding: 20px; }
  .modal .btn-row .btn { flex: 1; }

  /* Partner panel on phones */
  .p-topbar { height: 60px; }
  .p-layout { min-height: calc(100vh - 60px); }
  .p-sidebar { top: 60px; height: calc(100vh - 60px); }
  .p-topbar .logo { font-size: 22px; letter-spacing: -1px; }
  .outlet-btn > .icon, .avatar-btn > .icon { display: none; }
  .online-toggle { padding: 5px 8px; gap: 6px; }
  .online-toggle .state { font-size: 12px; }
  .outlet-switch .dropdown-menu { position: fixed; left: 8px; right: 8px; top: 64px; min-width: 0; }
  .p-page-head h1 { font-size: 22px; }
  .p-page-head > .btn, .p-page-head > .btn-row { width: 100%; }
  .p-page-head > .btn-row .btn { flex: 1; }
  .page-search { width: 100%; }
  .page-search .input { flex: 1; width: auto; }
  .tabs a, .tabs button { padding: 10px 12px; }
  .order-card { padding: 14px; }
  .order-top .order-id { font-size: 15px; }
  .order-actions { justify-content: stretch; }
  .order-actions > form { flex: 1 1 100%; }
  .order-actions > form > .btn { width: 100%; }
  .reject-form .select { flex: 1; width: 0; min-width: 0; }
  .order-actions > .reject-form > .btn { width: auto; flex-shrink: 0; }
  .order-top { flex-wrap: nowrap; }
  .order-top > div:first-child { flex: 1; min-width: 0; }
  .order-top > div:last-child { flex-shrink: 0; }
  .stat.stat-hero .value { font-size: 22px; }
  .listing-head { flex-direction: column; gap: 2px; margin: 16px 0; }
  .card-head > form, .card-head > .input { width: 100%; }
  .card-head .input { max-width: none !important; }
  .rating-summary { gap: 16px; }
  .review form { flex-direction: column; align-items: stretch !important; }
  .chart-table .table { font-size: 12px; }
  .sticky-actions { padding: 16px 0 8px; }
  .sticky-actions .btn { flex: 1; }
  .bulk-fields .span-2 { grid-column: 1 / -1; }

  /* Tables become stacked cards */
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin-bottom: 12px; }
  .table.stack td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex-shrink: 0; }
  .table.stack td.num { text-align: right; }
  .table.stack td:empty { display: none; }
  .table.stack td.stack-head { display: block; text-align: left; border-bottom: 1px solid var(--line-2); padding-bottom: 10px; margin-bottom: 4px; }
  .table.stack td.stack-head::before, .table.stack td.actions-cell::before { display: none; }
  .table.stack td { max-width: none !important; }
  .table.stack td.actions-cell { justify-content: flex-end; }
  .p-backdrop { top: 60px; }
  .table-wrap.card { padding: 12px; }
  .card.table-card { padding: 12px; }
  .admin-rest-head { gap: 12px; }
  .admin-rest-head > img, .admin-rest-head > .avatar.big { width: 56px; height: 56px; }
  .admin-rest-head h1 { font-size: 20px; }
  .admin-rest-head > .btn-row, .admin-rest-head > form { width: 100%; }
  .admin-rest-head > form .btn { width: 100%; }
  .mini-steps li { font-size: 10px; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; }
  /* Compact customer site on phones (app-like sizes) */
  body.site { font-size: 13px; }
  .header-inner .logo { font-size: 24px; letter-spacing: -1px; }
  .header-inner { padding-top: 8px; padding-bottom: 10px; gap: 8px; }
  .search-bar.in-header { height: 42px; border-radius: 10px; }
  .nav-link { padding: 6px 8px; font-size: 14px; }
  .site-nav .avatar { width: 30px; height: 30px; font-size: 12px; }

  .hero { min-height: 0; }
  .hero-top { padding-top: 6px; }
  .hero-center { padding: 12px 16px 28px; }
  .hero-logo { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 6px; }
  .hero h1 { font-size: 15px; margin-bottom: 16px; }
  .search-bar.in-hero { height: 44px; border-radius: 10px; }
  .search-city { padding: 0 8px; gap: 4px; }
  .search-city select { font-size: 13px; }
  .search-input { padding: 0 10px; gap: 6px; }

  .home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
  .home-card { border-radius: 12px; }
  .home-card img { height: 64px; }
  .home-card div { padding: 6px 8px 8px; }
  .home-card h3 { font-size: 13px; }
  .home-card p { display: none; }
  .home-section { margin: 22px 0; }
  .home-section h2 { font-size: 17px; margin-bottom: 2px; }
  .home-section > .muted, .section-head p { font-size: 12px; }
  .home-section > .muted { margin-bottom: 10px; }
  .section-head { margin-bottom: 10px; }
  .see-all { font-size: 13px; }
  .scroll-row { gap: 12px; padding-bottom: 8px; }
  .cuisine-row { grid-auto-columns: 76px; margin-top: 10px; }
  .cuisine-circle { font-size: 12px; gap: 6px; }
  .cuisine-circle img { width: 68px; height: 68px; }
  .dish-row { grid-auto-columns: 150px; }
  .d-card { border-radius: 12px; }
  .d-card-img { height: 100px; }
  .d-card-body { padding: 8px; }
  .d-name { font-size: 13px; }
  .d-price { font-size: 12px; margin: 2px 0 6px; }
  .d-rest { font-size: 12px; }
  .d-best { font-size: 10px; padding: 1px 6px; }
  .r-grid, .localities, .address-grid { grid-template-columns: 1fr; }
  .r-grid { gap: 18px; }
  .r-card { padding: 0; }
  .r-card-img { height: 160px; border-radius: 12px; }
  .r-card-body { padding-top: 8px; }
  .r-name { font-size: 15px; }
  .r-row { margin-bottom: 2px; font-size: 12px; }
  .r-offer { font-size: 11px; bottom: 10px; padding: 2px 22px 2px 8px; }
  .r-time { font-size: 11px; bottom: 10px; }
  .collections { gap: 10px; }
  .collection { height: 130px; border-radius: 12px; }
  .collection div { padding: 10px; }
  .collection h3 { font-size: 14px; }
  .collection p { display: none; }
  .collection span { font-size: 12px; }
  .localities { gap: 8px; margin-top: 10px; }
  .locality { padding: 10px 12px; border-radius: 10px; }
  .locality strong { font-size: 14px; }
  .partner-banner { padding: 16px; margin: 24px 0; border-radius: 14px; }
  .partner-banner h2 { font-size: 17px; }
  .partner-banner p { font-size: 12px; }
  .partner-banner .btn { width: 100%; padding: 10px; font-size: 14px; }

  .breadcrumbs { font-size: 12px; padding: 10px 0 6px; }
  .type-tabs a { font-size: 14px; padding: 8px 8px 10px; gap: 6px; }
  .type-icon { width: 30px; height: 30px; }
  .filter-chip { padding: 5px 10px; font-size: 12px; }
  .chip-link { padding: 5px 12px; font-size: 12px; }

  .gallery { height: 180px; border-radius: 12px; margin-bottom: 12px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
  .gallery .g-side { display: none; }
  .gallery .g-main { grid-row: auto !important; }
  .rest-title h1 { font-size: 21px; }
  .rest-cuisines { font-size: 13px; }
  .rest-hours { font-size: 12px; }
  .rest-ratings { gap: 12px; }
  .rating-badge.lg { font-size: 14px; padding: 3px 7px; }
  .rest-actions { gap: 6px; margin: 12px 0; }
  .rest-actions .btn { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
  .offer-strip { padding: 8px 12px; font-size: 12px; margin-bottom: 10px; }
  .rest-tabs { margin-bottom: 12px; gap: 0; }
  .rest-tabs button { font-size: 14px; padding: 10px 10px; }
  .menu-cats a { font-size: 13px; padding: 8px 10px; }
  .menu-top h2 { font-size: 17px; }
  .menu-search { height: 36px; }
  .menu-search input { width: 100%; }
  .menu-cat h3 { font-size: 16px; }
  .dish { gap: 10px; padding: 14px 0; }
  .dish h4 { font-size: 14px; }
  .dish-price { font-size: 13px; }
  .dish-side { width: 100px; }
  .dish-side img { width: 100px; height: 92px; border-radius: 10px; }
  .dish-side.has-img .qty-control { margin-top: -16px; }
  .qty-control { width: 84px; height: 32px; }
  .add-btn { font-size: 13px; }
  .stepper button { font-size: 17px; width: 28px; }
  .stepper span { font-size: 13px; }
  .info-list { grid-template-columns: 1fr; }
  .cart-bar-inner { height: 52px; font-size: 13px; }
  .cart-bar .btn { padding: 8px 12px; font-size: 13px; }
  .cart-line { flex-wrap: wrap; }
  .cart-line .grow { flex-basis: calc(100% - 30px); }
  .cart-line .stepper.static { margin-left: 26px; }
  .cart-line-total { margin-left: auto; }
  .bill-row { font-size: 13px; padding: 5px 0; }
  .bill-row.total { font-size: 15px; }
  .mobile-cta { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .mobile-cta .btn { padding: 12px; font-size: 15px; }
  .order-row > img { width: 56px; height: 56px; }
  .site-footer { padding: 24px 0 16px; margin-top: 24px; }
  .footer-top { margin-bottom: 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-cols h4 { font-size: 11px; margin-bottom: 6px; }
  .footer-cols a { font-size: 13px; padding: 2px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .p-main { padding: 16px; }
  .p-topbar { padding: 0 12px; gap: 8px; }
  .outlet-btn .txt, .online-toggle .state-label { display: none; }
  .outlet-btn { padding: 4px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 14px; }
  .stat .value { font-size: 20px; }
  .auth-card { padding: 24px 20px; }
  .steps { grid-template-columns: 1fr; }
  .item-row { flex-wrap: wrap; }
  .item-row .info { flex-basis: calc(100% - 90px); }
  .item-row .actions { margin-left: auto; }
  .upload-row { flex-direction: column; }
  .bulk-row { flex-direction: column; padding-right: 16px; }
  .bulk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-best { margin-top: 0; }
  .map-box { height: 280px; }
  .radio-card.big > span { min-width: 0; }
  .radio-card.big { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .p-main { padding: 12px; }
  .search-city select { max-width: 78px; }
  .rest-actions .btn { padding: 6px 8px; }
  .dish-side { width: 92px; }
  .dish-side img { width: 92px; height: 86px; }
  .qty-control { width: 80px; }
  .home-card h3 { font-size: 12px; }
  .home-card img { height: 56px; }
  .stat .value, .stat.stat-hero .value { font-size: 18px; }
  .online-toggle .state { display: none; }
  .bulk-fields { grid-template-columns: 1fr; }
}

/* Forgot password */
.forgot-link { align-self: flex-end; font-size: 13px; font-weight: 500; color: var(--brand); margin-top: 2px; }
.code-input { font-size: 22px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.dev-code { font-size: 18px; letter-spacing: .15em; }
.map-status.warn { color: #a41e2b; font-weight: 500; }
.rest-pin { background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 16px; display: flex !important; align-items: center; justify-content: center; }
.home-pin { background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 18px; display: flex !important; align-items: center; justify-content: center; }

/* Partner top bar: delivery radius switch */
.radius-btn { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.radius-btn:hover { border-color: #cfcfcf; }
.radius-btn > .icon:first-child { color: var(--brand); }
.radius-switch .dropdown-menu { min-width: 220px; }
.radius-switch .dropdown-menu form { margin: 0; }
.radius-switch .dropdown-menu button { justify-content: space-between; }
@media (max-width: 640px) { .radius-btn { padding: 6px 8px; font-size: 12px; } .radius-btn > .icon:last-child { display: none; } }

/* Dish photos (partner dish form) */
.dish-photos { margin-bottom: 18px; }
.dish-photos > .label { display: block; margin-bottom: 8px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.photo-new-list { display: contents; }
.photo-tile { position: relative; width: 132px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-tile > img { width: 132px; height: 110px; object-fit: cover; display: block; }
.photo-tile .cover-tag { position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.photo-tile .cover-tag.new { background: var(--green); }
.photo-tile .photo-remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; }
.photo-tile .photo-remove:hover { background: var(--brand); }
.photo-tools { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 12px; color: var(--text-2); }
.photo-tools label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.photo-tools input { accent-color: var(--brand); margin: 0; }
.photo-tile.add { height: 110px; border: 1.5px dashed #c9c9c9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; }
.photo-tile.add small { color: var(--muted); font-weight: 400; font-size: 11px; }
.photo-tile.add:hover { border-color: var(--brand); color: var(--brand); }
.thumb-upload .photo-count { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; pointer-events: none; }
@media (max-width: 640px) { .photo-tile, .photo-tile > img { width: calc(50vw - 46px); } .photo-tile > img, .photo-tile.add { height: 96px; } }

/* Customer menu: dish photo button + full-screen photo viewer */
.dish-photo-btn { position: relative; display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; }
.dish-photo-btn:focus-visible { outline: 3px solid rgba(226, 55, 68, .45); outline-offset: 2px; }
.dish-photo-btn .photo-count { position: absolute; left: 6px; top: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.gallery-viewer { position: fixed; inset: 0; z-index: 1100; background: rgb(14,14,14); display: flex; flex-direction: column; color: #fff; }
.gv-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.gv-title { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gv-count { font-size: 13px; opacity: .8; }
.gv-close { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 0 4px; }
.gv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.gv-stage img { max-width: min(100%, 900px); max-height: 100%; object-fit: contain; border-radius: 10px; user-select: none; }
.gv-nav { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.gv-nav:hover { background: rgba(255,255,255,.28); }
.gv-dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0 22px; }
.gv-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.gv-dots button.active { background: #fff; }
.gallery-viewer.single .gv-nav, .gallery-viewer.single .gv-dots { visibility: hidden; }
@media (max-width: 640px) { .gv-nav { display: none; } .gv-stage { padding: 0; } .gv-stage img { border-radius: 0; } }

/* Footer credit */
.footer-note { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.powered-by { color: var(--text-2); font-size: 13px; }
.powered-by strong { color: var(--brand); font-weight: 600; }
.rd-scope { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; color: var(--text-2); }
.rd-scope .icon { color: var(--brand); vertical-align: -2px; }
.rd-top .radius-btn { padding: 6px 8px; }

/* Admin: Access (partner / delivery partner emails, new password) */
.access-done { border-color: #bfe3c8; background: var(--green-soft); margin-bottom: 16px; }
.access-done h3 { display: flex; align-items: center; gap: 8px; color: #1b6e2f; margin: 0 0 12px; font-size: 17px; }
.access-done dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 10px; align-items: center; }
.access-done dt { color: var(--muted); font-size: 13px; }
.access-done dd { margin: 0; display: flex; align-items: center; gap: 8px; word-break: break-all; }
.access-done .dev-code { font-size: 18px; letter-spacing: 1px; }
.access-done .icon-btn, .access-email .icon-btn { width: 28px; height: 28px; flex: none; }
.access-email { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: break-word; min-width: 0; }
.access-reset summary { list-style: none; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.access-reset summary::-webkit-details-marker { display: none; }
.access-reset[open] summary { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.access-reset form { margin-top: 10px; min-width: 230px; }
.access-reset-row { display: flex; gap: 6px; margin-top: 4px; }
.access-reset-row .input { font-family: ui-monospace, Consolas, monospace; padding: 7px 10px; }

/* Privacy policy & delete account */
.legal-page { max-width: 780px; }
.legal-page h1 { font-size: 30px; margin-bottom: 4px; }
.legal-page section { margin-top: 26px; }
.legal-page h2 { font-size: 19px; margin-bottom: 8px; }
.legal-page p, .legal-page li { line-height: 1.65; color: var(--text-2); }
.legal-page ul { padding-left: 20px; margin: 0 0 10px; }
.legal-page li + li { margin-top: 6px; }
.legal-page a:not(.btn) { color: var(--brand); word-break: break-word; }
.legal-page .delete-box { margin-top: 28px; }
.legal-page .delete-box .field { max-width: 360px; }
.btn-danger { background: #b3202e; color: #fff; }
.btn-danger:hover { background: #8f1a25; color: #fff; }
