/* Catering Mini App — modern chic design system
   Fonts: Vazirmatn (Persian) + Inter (English / Latin / numbers)
   Themes: cream / forest / royal / turquoise / turquoisegreen / sunrise — each in Light + Dark.
   Choice is stored per customer (localStorage catering-theme / catering-mode)
   and applied via html[data-theme][data-mode]. */
:root{
  --radius:20px; --radius-sm:14px;
  --font-fa:"Vazirmatn","Inter",Tahoma,system-ui,sans-serif;
  --font-en:"Inter","Vazirmatn",system-ui,-apple-system,sans-serif;
  /* Aliases used by calendar / line-total / progress / segmented controls.
     They resolve against the active theme's --brand/--gold-soft/--line/--ink,
     so the free-delivery progress fill and active states are actually visible. */
  --accent:var(--brand); --accent-soft:var(--gold-soft);
  --border:var(--line); --text:var(--ink);
}
/* ---- Cream / Saffron — Light (default) ---- */
html[data-theme="cream"][data-mode="light"], :root{
  --bg:#FBF7F0; --surface:#FFFFFF; --surface-2:#F6EFE3;
  --ink:#1C1917; --ink-2:#44403C; --muted:#8A8378; --line:#EDE6D6;
  --brand:#B45309; --brand-deep:#7C2D12; --gold:#D97706; --gold-soft:#FEF3C7;
  --green:#166534; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7;
  --hero-1:#1C1917; --hero-2:#7C2D12; --hero-ink:#FAFAF9; --hero-muted:#D6D3D1; --hero-accent:#FDBA74;
  --loyalty-1:#1C1917; --loyalty-2:#7C2D12;
  --cart-bg:#1C1917; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(28,25,23,.08); --shadow-sm:0 2px 10px rgba(28,25,23,.06);
  color-scheme:light;
}
/* ---- Cream / Saffron — Dark ---- */
html[data-theme="cream"][data-mode="dark"]{
  --bg:#171412; --surface:#241F1C; --surface-2:#2E2824;
  --ink:#FAF7F2; --ink-2:#D6D3D1; --muted:#A8A29E; --line:#3D3630;
  --brand:#F59E0B; --brand-deep:#FDBA74; --gold:#F59E0B; --gold-soft:#451A03;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#451A03;
  --hero-1:#0F0D0B; --hero-2:#7C2D12; --hero-ink:#FAFAF9; --hero-muted:#D6D3D1; --hero-accent:#FDBA74;
  --loyalty-1:#0F0D0B; --loyalty-2:#92400E;
  --cart-bg:#F59E0B; --cart-ink:#1C1917;
  --shadow:0 10px 30px rgba(0,0,0,.35); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---- Forest Green — Light ---- */
html[data-theme="forest"][data-mode="light"]{
  --bg:#F6F1E7; --surface:#FFFDF8; --surface-2:#F1E9DA;
  --ink:#22301F; --ink-2:#4A5546; --muted:#7A8577; --line:#E3D9C6;
  --brand:#1D6B45; --brand-deep:#14532F; --gold:#D98A06; --gold-soft:#FBEED3;
  --green:#166534; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7;
  --hero-1:#14261C; --hero-2:#1D6B45; --hero-ink:#F2F1EB; --hero-muted:#CBD5CB; --hero-accent:#F5C66B;
  --loyalty-1:#14261C; --loyalty-2:#1D6B45;
  --cart-bg:#14532F; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(34,48,31,.09); --shadow-sm:0 2px 10px rgba(34,48,31,.06);
  color-scheme:light;
}
/* ---- Forest Green — Dark ---- */
html[data-theme="forest"][data-mode="dark"]{
  --bg:#0F1A14; --surface:#16241C; --surface-2:#1E2F25;
  --ink:#E8EDE6; --ink-2:#B9C4B5; --muted:#8A978A; --line:#2A3A2E;
  --brand:#4ADE80; --brand-deep:#86EFAC; --gold:#E5B04A; --gold-soft:#332A12;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#332A12;
  --hero-1:#0A120D; --hero-2:#14532F; --hero-ink:#F2F1EB; --hero-muted:#CBD5CB; --hero-accent:#F5C66B;
  --loyalty-1:#0A120D; --loyalty-2:#1D6B45;
  --cart-bg:#4ADE80; --cart-ink:#0F1A14;
  --shadow:0 10px 30px rgba(0,0,0,.4); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---- Royal Purple — Light ---- */
html[data-theme="royal"][data-mode="light"]{
  --bg:#F5F3FF; --surface:#FFFFFF; --surface-2:#EDE9FE;
  --ink:#1E1B2E; --ink-2:#4B465E; --muted:#7C7390; --line:#E2DCF5;
  --brand:#7C3AED; --brand-deep:#4C1D95; --gold:#D97706; --gold-soft:#FEF3C7;
  --green:#15803D; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7;
  --hero-1:#1E1B2E; --hero-2:#6D28D9; --hero-ink:#F5F3FF; --hero-muted:#D8D3F0; --hero-accent:#FBBF24;
  --loyalty-1:#1E1B2E; --loyalty-2:#7C3AED;
  --cart-bg:#4C1D95; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(76,29,149,.10); --shadow-sm:0 2px 10px rgba(76,29,149,.06);
  color-scheme:light;
}
/* ---- Royal Purple — Dark ---- */
html[data-theme="royal"][data-mode="dark"]{
  --bg:#171225; --surface:#211A38; --surface-2:#2C2450;
  --ink:#F3F0FF; --ink-2:#C4BDE0; --muted:#9A92B8; --line:#3A3160;
  --brand:#A78BFA; --brand-deep:#C4B5FD; --gold:#F59E0B; --gold-soft:#3B2F0B;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#3B2F0B;
  --hero-1:#100B1E; --hero-2:#4C1D95; --hero-ink:#F5F3FF; --hero-muted:#D8D3F0; --hero-accent:#FBBF24;
  --loyalty-1:#100B1E; --loyalty-2:#6D28D9;
  --cart-bg:#A78BFA; --cart-ink:#1E1B2E;
  --shadow:0 10px 30px rgba(0,0,0,.45); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---- Persian Turquoise — Light ---- */
html[data-theme="turquoise"][data-mode="light"]{
  --bg:#EFFAF8; --surface:#FFFFFF; --surface-2:#DFF3F0;
  --ink:#0C2B27; --ink-2:#33524D; --muted:#5F7F7A; --line:#CDE8E3;
  --brand:#0D9488; --brand-deep:#0F766E; --gold:#D97706; --gold-soft:#FEF3C7;
  --green:#15803D; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7;
  --hero-1:#0A2A26; --hero-2:#0D9488; --hero-ink:#F0FDFA; --hero-muted:#BFE3DD; --hero-accent:#5EEAD4;
  --loyalty-1:#0A2A26; --loyalty-2:#0D9488;
  --cart-bg:#0F766E; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(13,148,136,.12); --shadow-sm:0 2px 10px rgba(13,148,136,.07);
  color-scheme:light;
}
/* ---- Persian Turquoise — Dark ---- */
html[data-theme="turquoise"][data-mode="dark"]{
  --bg:#081F1C; --surface:#102B27; --surface-2:#173832;
  --ink:#E4F5F1; --ink-2:#B4D3CC; --muted:#7FA39C; --line:#23463E;
  --brand:#2DD4BF; --brand-deep:#5EEAD4; --gold:#F59E0B; --gold-soft:#3B2F0B;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#3B2F0B;
  --hero-1:#051512; --hero-2:#0F766E; --hero-ink:#F0FDFA; --hero-muted:#BFE3DD; --hero-accent:#5EEAD4;
  --loyalty-1:#051512; --loyalty-2:#0D9488;
  --cart-bg:#2DD4BF; --cart-ink:#081F1C;
  --shadow:0 10px 30px rgba(0,0,0,.4); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---- Turquoise Green — Light ---- */
html[data-theme="turquoisegreen"][data-mode="light"]{
  --bg:#F1FAF3; --surface:#FFFFFF; --surface-2:#E1F3E7;
  --ink:#122E1C; --ink-2:#3A5240; --muted:#64806D; --line:#CFE8D6;
  --brand:#059669; --brand-deep:#047857; --gold:#D97706; --gold-soft:#FEF3C7;
  --green:#15803D; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FEF3C7;
  --hero-1:#0C2416; --hero-2:#059669; --hero-ink:#ECFDF5; --hero-muted:#BDE5CD; --hero-accent:#6EE7B7;
  --loyalty-1:#0C2416; --loyalty-2:#059669;
  --cart-bg:#047857; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(5,150,105,.11); --shadow-sm:0 2px 10px rgba(5,150,105,.06);
  color-scheme:light;
}
/* ---- Turquoise Green — Dark ---- */
html[data-theme="turquoisegreen"][data-mode="dark"]{
  --bg:#0A1F13; --surface:#122A1B; --surface-2:#1A3825;
  --ink:#E6F4EB; --ink-2:#B3D2BE; --muted:#7FA38D; --line:#234534;
  --brand:#34D399; --brand-deep:#6EE7B7; --gold:#F59E0B; --gold-soft:#3B2F0B;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#3B2F0B;
  --hero-1:#06130C; --hero-2:#047857; --hero-ink:#ECFDF5; --hero-muted:#BDE5CD; --hero-accent:#6EE7B7;
  --loyalty-1:#06130C; --loyalty-2:#059669;
  --cart-bg:#34D399; --cart-ink:#0A1F13;
  --shadow:0 10px 30px rgba(0,0,0,.4); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
/* ---- Turquoise Sunrise — Light ----
   Persian turquoise primary + warm orange accent on a warm off-white. */
html[data-theme="sunrise"][data-mode="light"]{
  --bg:#FFFBF5; --surface:#FFFFFF; --surface-2:#FDEEDD;
  --ink:#241D16; --ink-2:#57534A; --muted:#8A7F6E; --line:#F0E2CE;
  --brand:#0D9488; --brand-deep:#0F766E; --gold:#F97316; --gold-soft:#FFEDD5;
  --green:#15803D; --green-bg:#DCFCE7; --red:#991B1B; --red-bg:#FEE2E2;
  --blue-bg:#DBEAFE; --amber-bg:#FFEDD5;
  --hero-1:#0B2E2B; --hero-2:#C2410C; --hero-ink:#FFF7ED; --hero-muted:#FED7AA; --hero-accent:#FDBA74;
  --loyalty-1:#0B2E2B; --loyalty-2:#EA580C;
  --cart-bg:#0F766E; --cart-ink:#FFFFFF;
  --shadow:0 10px 30px rgba(194,65,12,.12); --shadow-sm:0 2px 10px rgba(194,65,12,.07);
  color-scheme:light;
}
/* ---- Turquoise Sunrise — Dark ----
   Deep teal-charcoal with a warm orange glow. */
html[data-theme="sunrise"][data-mode="dark"]{
  --bg:#101614; --surface:#1A2420; --surface-2:#223129;
  --ink:#F5EFE6; --ink-2:#CFC4B4; --muted:#97897A; --line:#2E3A32;
  --brand:#2DD4BF; --brand-deep:#5EEAD4; --gold:#FB923C; --gold-soft:#431407;
  --green:#4ADE80; --green-bg:#14532D; --red:#FCA5A5; --red-bg:#450A0A;
  --blue-bg:#1E3A5F; --amber-bg:#431407;
  --hero-1:#08110E; --hero-2:#7C2D12; --hero-ink:#FFF7ED; --hero-muted:#FED7AA; --hero-accent:#FDBA74;
  --loyalty-1:#08110E; --loyalty-2:#9A3412;
  --cart-bg:#2DD4BF; --cart-ink:#101614;
  --shadow:0 10px 30px rgba(0,0,0,.4); --shadow-sm:0 2px 10px rgba(0,0,0,.3);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-fa);line-height:1.65;-webkit-font-smoothing:antialiased;transition:background-color .3s ease,color .3s ease}
html[lang="en"] body{font-family:var(--font-en);line-height:1.55;letter-spacing:-.01em}
html[lang="en"]{direction:ltr}
[dir="ltr"]{text-align:left}
img{max-width:100%}
button{font-family:inherit}
input,select,textarea{font-family:inherit}
.card,.panel,.tabs button,.chip,.search-wrap,.toolbar select{transition:background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease}

/* ---------- Hero ---------- */
.hero{background:linear-gradient(150deg,var(--hero-1) 0%,var(--hero-2) 130%);color:var(--hero-ink);padding:18px 18px 22px;border-radius:0 0 28px 28px}
.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;max-width:920px;margin:0 auto}
.brand{display:flex;gap:12px;align-items:center;min-width:0}
.logo{width:56px;height:56px;border-radius:18px;object-fit:cover;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.25);flex:none}
.brand-text h1{margin:0;font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1.25}
html[lang="fa"] .brand-text h1{font-size:23px}
.brand-sub{margin:2px 0 0;color:var(--hero-muted);font-size:12.5px;letter-spacing:.04em}
.top-actions{display:flex;gap:8px;align-items:center;flex:none}
.lang-toggle{display:flex;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:3px}
.lang-btn{border:0;background:transparent;color:#E7E5E4;padding:7px 13px;border-radius:999px;cursor:pointer;font-size:13px;font-weight:700}
.lang-btn.active{background:var(--gold);color:#1C1917}
.hero-copy{max-width:920px;margin:18px auto 0}
.eyebrow{margin:0;color:var(--hero-accent);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.welcome{margin:8px 0 0;font-size:26px;font-weight:800;line-height:1.35;max-width:640px}
html[lang="en"] .welcome{font-size:24px}
.delivery-info{margin:8px 0 0;color:var(--hero-muted);font-size:13.5px;max-width:640px}
.hero-stats{display:flex;gap:10px;max-width:920px;margin:18px auto 0;flex-wrap:wrap}
.stat{flex:1;min-width:120px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:10px 12px}
.stat strong{display:block;font-size:15px;color:var(--hero-accent)}
.stat span{font-size:12px;color:var(--hero-muted)}

/* ---------- Theme picker ---------- */
.theme-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.theme-card{border:2px solid var(--line);background:var(--surface-2);border-radius:16px;padding:12px;cursor:pointer;text-align:start;font-size:13px}
.theme-card.active{border-color:var(--brand);box-shadow:0 0 0 3px var(--gold-soft)}
.theme-card b{display:block;font-size:14px;margin:6px 0 2px}
.theme-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.swatches{display:flex;gap:5px}
.swatches i{width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.85);box-shadow:0 1px 4px rgba(0,0,0,.2);display:block}
.mode-seg{display:inline-flex;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:4px;gap:4px;margin-top:12px}
.mode-seg button{border:0;background:transparent;border-radius:999px;padding:8px 18px;font-weight:700;font-size:13.5px;cursor:pointer;color:var(--ink-2)}
.mode-seg button.active{background:var(--ink);color:var(--bg)}
.theme-note{margin-top:12px;font-size:13px;color:var(--muted)}
.theme-note b{color:var(--brand)}

/* ---------- Tabs ---------- */
.tabs{display:flex;gap:6px;padding:12px 14px 4px;position:sticky;top:0;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px);z-index:20;overflow-x:auto;max-width:920px;margin:0 auto}
.tabs button{flex:1;white-space:nowrap;border:1px solid var(--line);background:var(--surface);padding:10px 10px;border-radius:999px;cursor:pointer;font-size:13.5px;font-weight:600;color:var(--ink-2);display:flex;align-items:center;justify-content:center;gap:6px}
.tabs button.active{background:var(--ink);color:var(--bg);border-color:var(--ink);box-shadow:var(--shadow-sm)}
.tab-ic{font-size:14px}
.count-badge{background:var(--gold);color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:1px 7px;line-height:1.6}
.tabs button.active .count-badge{background:var(--surface);color:var(--ink)}

main{max-width:920px;margin:0 auto;padding:6px 16px 140px}
.section-head{margin:18px 2px 12px}
.section-head h2{margin:0;font-size:20px;font-weight:800}
.section-head p{margin:2px 0 0;color:var(--muted);font-size:13.5px}

/* ---------- Search / filters ---------- */
.toolbar{display:flex;gap:8px;margin:16px 0 12px;flex-wrap:wrap}
.search-wrap{flex:1;min-width:200px;display:flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:0 6px 0 14px;box-shadow:var(--shadow-sm)}
html[lang="en"] .search-wrap{padding:0 14px 0 6px}
.search-ic{color:var(--muted);display:inline-flex}
.search-wrap input{flex:1;min-width:0;border:0;outline:0;padding:12px 8px;font-size:16px;background:transparent;color:var(--ink)}
.clear-btn{border:0;background:var(--surface-2);border-radius:50%;width:26px;height:26px;cursor:pointer;font-size:16px;line-height:1;color:var(--muted)}
.toolbar select{border:1px solid var(--line);border-radius:999px;padding:11px 14px;background:var(--surface);color:var(--ink);font-size:16px;box-shadow:var(--shadow-sm)}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.chip{border:1px solid var(--line);background:var(--surface);padding:8px 14px;border-radius:999px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2)}
.chip small{display:block;font-size:11px;color:var(--muted);font-weight:500}
.chip.active{background:var(--brand);border-color:var(--brand);color:#fff}
.chip.active small{color:var(--gold-soft)}

/* ---------- Menu cards ---------- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;transition:transform .15s ease,box-shadow .15s ease,background-color .3s ease}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.card img{width:100%;height:180px;object-fit:cover;display:block;background:var(--surface-2)}
.card .body{padding:16px;display:flex;flex-direction:column;gap:6px;flex:1}
.card h3{margin:0;font-size:17px;font-weight:700;line-height:1.4}
.card .en-name{margin:0;color:var(--muted);font-size:12.5px;font-family:var(--font-en)}
.card p.desc{margin:0;color:var(--muted);font-size:13.5px;line-height:1.6}
.meta-row{display:flex;justify-content:space-between;align-items:center;margin-top:4px;flex-wrap:wrap;gap:4px 8px}
.price{font-weight:800;font-size:17px;color:var(--brand-deep);font-family:var(--font-en);white-space:nowrap}
.price small{font-size:12px;font-weight:600;color:var(--muted)}
.stock{font-size:12px;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:3px 9px;white-space:nowrap;flex-shrink:0}
.stock.low{color:var(--red);background:var(--red-bg);font-weight:700}
.cat{font-size:11.5px;font-weight:700;letter-spacing:.02em;color:var(--brand);background:var(--gold-soft);border-radius:999px;padding:3px 9px;white-space:nowrap}
.row{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:10px}
.qty{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:999px;padding:3px 6px}
.qty button{width:30px;height:30px;border-radius:50%;border:0;background:var(--surface-2);cursor:pointer;font-size:17px;line-height:1;color:var(--ink)}
.qty button:hover{background:var(--gold-soft)}
.qty span{min-width:20px;text-align:center;font-weight:800}
.empty{text-align:center;color:var(--muted);padding:36px 12px;background:var(--surface);border:1px dashed var(--line);border-radius:var(--radius)}

/* ---------- Buttons / panels ---------- */
.btn{border:0;background:var(--brand);color:#fff;padding:11px 18px;border-radius:14px;cursor:pointer;font-weight:700;font-size:14px}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand-deep))}
.btn.green{background:#15803D}
.btn.red{background:#B91C1C}
.btn.ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.btn.big{width:100%;padding:14px;font-size:15.5px;border-radius:16px;margin-top:12px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;margin:16px 0;box-shadow:var(--shadow-sm)}
.panel h2{margin:0 0 6px;font-size:19px;font-weight:800}
.panel h3{margin:16px 0 6px;font-size:15px}
.muted{color:var(--muted);font-size:13.5px;margin:0 0 10px}
label{display:block;font-size:13px;font-weight:600;margin:12px 0 5px;color:var(--ink-2)}
/* Round 23 (A): iOS Safari zooms the page when a focused text field is
   smaller than 16px — every input/select/textarea (and contenteditable
   editor below) is 16px, so the app stays fixed like a native app. The
   viewport meta already has width=device-width, initial-scale=1; do NOT
   add user-scalable=no — modern iOS ignores it and it hurts access. */
input,select,textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:12px;font-size:16px;background:var(--surface);color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid var(--gold);border-color:var(--gold)}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700;background:var(--surface-2);color:var(--ink)}
.badge.pending_payment{background:var(--amber-bg)}
.badge.pending_review{background:var(--blue-bg)}
.badge.approved{background:var(--green-bg);color:var(--green)}
.badge.rejected{background:var(--red-bg);color:var(--red)}
.progress{height:10px;background:var(--line);border-radius:999px;overflow:hidden}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--brand));border-radius:999px}
.hidden{display:none!important}
/* Round 11 — honeypot field: present in the DOM for bots to fill, but
   visually hidden. Deliberately NOT display:none (bots skip hidden
   fields) and NOT left:-9999px (that off-screen offset blows the page
   width out to ~10k px in RTL/Farsi mode and breaks layout) — the
   clip pattern hides it without creating any overflow. */
.hp-field{position:absolute!important;left:0!important;top:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
/* Round 13 — bot-protection steps list (CMS Technical setup). */
.botprot-steps{margin:0 0 10px;padding-inline-start:20px;font-size:13.5px;line-height:1.9;color:var(--ink-2)}
.notice{background:var(--gold-soft);border:1px solid var(--line);padding:14px;border-radius:14px;font-size:13.5px;line-height:1.8}
.msg{font-size:13px;color:var(--green);margin:8px 0 0}
.total-row{display:flex;justify-content:space-between;align-items:center;border-top:1px dashed var(--line);margin-top:16px;padding-top:14px;font-size:16px}
.total-row strong{font-family:var(--font-en);font-size:19px}
.fineprint{font-size:12.5px;color:var(--muted);margin:10px 0 0;line-height:1.6}
.receipt-preview img{max-width:220px;border-radius:14px;margin-top:10px;border:1px solid var(--line)}
/* ---------- Payments (round 8): method picker + Stripe card element ---------- */
.pay-method{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid var(--line);border-radius:12px;margin:6px 0;cursor:pointer;background:var(--surface);font-size:14px}
.pay-method:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.pay-method input{width:auto;accent-color:var(--brand)}
.pay-method .ic{flex:none}
#stripeCardElement{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:10px 0}
#stripeCardElement .StripeElement{width:100%}
.order-card{background:var(--surface-2);border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0}
.order-card .row{justify-content:space-between}

/* ---------- Loyalty card ---------- */
.loyalty-card{background:linear-gradient(140deg,var(--loyalty-1),var(--loyalty-2) 120%);color:#fff;border-radius:24px;padding:22px;margin:16px 0;box-shadow:0 16px 40px rgba(0,0,0,.25)}
.loyalty-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.loyalty-eyebrow{margin:0;color:var(--hero-accent);font-size:11.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.loyalty-card h3{margin:4px 0 0;font-size:20px}
.loyalty-chip{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700}
.loyalty-card .progress{background:rgba(255,255,255,.18);margin:14px 0 8px}
.loyalty-card .progress i{background:linear-gradient(90deg,#FCD34D,#F59E0B)}
.loyalty-card p{color:#E7E5E4;font-size:13.5px}
.loyalty-rules{margin-top:14px;border-top:1px solid rgba(255,255,255,.16);padding-top:12px;display:grid;gap:8px}
.loyalty-rules div{background:rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;font-size:13px}
.profile-panel .stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.profile-panel .stat-grid div{background:var(--surface-2);border-radius:14px;padding:12px;text-align:center}
.profile-panel .stat-grid strong{display:block;font-size:19px;font-family:var(--font-en)}
.profile-panel .stat-grid span{font-size:12px;color:var(--muted)}

/* ---------- Admin ---------- */
.admin-list{display:grid;gap:8px;margin-top:14px}
.admin-item{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface-2);border-radius:12px;padding:10px 12px;font-size:13.5px}
.bot-btn-off{opacity:.55}
.bot-btn-off .fineprint{color:var(--muted)}
.admin-item .mini{font-size:12px;color:var(--muted)}
#tab-admin{padding-bottom:170px} /* clearance above the fixed bottom nav; the cart bar is also hidden on admin views (see updateCartBar) */
.rule-row{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--surface-2);border-radius:12px;padding:10px 12px;margin:8px 0;font-size:13.5px}

/* ---------- Round 14 (worker C): Layout & ordering panel ---------- */
.layout-row{flex-wrap:wrap}
.layout-name{flex:1;min-width:120px}
.layout-ctl{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.layout-show{margin:0;white-space:nowrap}
.layout-arrows{display:flex;gap:2px}
.layout-arrows .btn{padding:6px 8px}
.layout-arrows .btn .ic{width:16px;height:16px}

/* ---------- Cart bar / footer ---------- */
.cart-bar{position:fixed;bottom:58px;left:50%;transform:translateX(-50%);width:min(920px,calc(100% - 24px));background:var(--cart-bg);color:var(--cart-ink);border-radius:18px;padding:12px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px;box-shadow:0 14px 34px rgba(0,0,0,.28);z-index:30}
.cart-bar strong{font-family:var(--font-en);font-size:17px;margin-inline-end:8px}
.cart-bar .muted{color:var(--cart-ink);opacity:.75}
footer{position:fixed;bottom:0;left:0;right:0;background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(8px);border-top:1px solid var(--line);padding:10px 16px;display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);z-index:25}

@media (max-width:560px){
  .welcome{font-size:22px}
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .card img{height:132px}
  .card .body{padding:12px}
  .card h3{font-size:15px}
  /* Dish-card action row, stacked: at 360–390px a 2-col card is ~176px wide
     and stepper (~114px) + Add (~78px) side by side overflow the card and the
     Add button gets clipped by the card's rounded corners. Stacking the
     stepper above a full-width Add button keeps everything inside the card. */
  .card .row{flex-direction:column;align-items:stretch;gap:8px}
  .card .row .qty{justify-content:center}
  .card .row .btn{width:100%}
  main{padding-left:12px;padding-right:12px}
  .panel{padding:16px}
  .profile-panel .stat-grid{grid-template-columns:repeat(3,1fr)}
  .theme-cards{grid-template-columns:1fr}
}
@media (max-width:380px){ .grid{grid-template-columns:1fr} }

/* ---------- Telegram viewport + safe area (2026-11-12) ---------- */
:root{ --tg-vh:100dvh; --tg-safe-top:0px; --tg-safe-bottom:0px; }
html,body{overflow-x:clip}
body{min-height:var(--tg-vh,100dvh);min-height:100dvh}
main{padding-bottom:calc(200px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
footer{padding-bottom:calc(10px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
.cart-bar{bottom:calc(58px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
@media (min-width:1180px){ main{max-width:1180px} .topbar,.tabs{max-width:1180px} }

@media (max-width:640px){
  .theme-cards{grid-template-columns:1fr}
  .mode-seg{width:100%;justify-content:center;flex-wrap:wrap}
  .topbar{flex-wrap:wrap}
  .hero-stats{flex-wrap:wrap}
  .admin-item,.rule-row{flex-wrap:wrap}
  .sched-times{flex-wrap:wrap}
}

/* ---------- No horizontal overflow anywhere ---------- */
input,select,textarea{max-width:100%}
img{max-width:100%}
.tabs{scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{min-width:0}
.chip{max-width:100%;text-overflow:ellipsis;overflow:hidden}
.chip-closed{opacity:.55}
.check-row{display:flex;align-items:center;gap:8px;margin:10px 0;flex-wrap:wrap}
.check-row input{width:auto}
.day-checks{display:flex;flex-wrap:wrap;gap:2px 16px;margin:4px 0 10px}
.day-checks .check-row{margin:2px 0}
#fSuggested{min-height:96px}

/* ---------- Closed banner / schedule / discounts ---------- */
.closed-banner{background:#FEE2E2;border:1px solid #FCA5A5;color:#7F1D1D;border-radius:14px;padding:12px 14px;margin:12px 0;font-size:14px}
html[data-mode="dark"] .closed-banner{background:#450A0A;border-color:#7F1D1D;color:#FECACA}
.total-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0}
.total-row.sub{color:var(--muted);font-size:14px}
.total-row.disc{color:#15803D;font-weight:700;font-size:14px}
html[data-mode="dark"] .total-row.disc{color:#86EFAC}
.sched-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:var(--surface-2);border-radius:12px;padding:10px 12px;margin:8px 0}
.sched-times{display:flex;gap:10px;flex-wrap:wrap}
.sched-times label{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.sched-times input{width:110px}
.days-checks{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0}
.form2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
@media (max-width:560px){ .form2{grid-template-columns:1fr} }
.fineprint{font-size:12.5px;color:var(--muted)}

/* ---------- Setup / connection wizard ---------- */
.wizard{margin:8px 0;padding-inline-start:20px;display:grid;gap:10px}
.wizard li{display:grid;gap:2px}
.wizard b{font-size:14.5px}
.wizard span{font-size:13.5px;color:var(--muted)}
.setup-status{display:grid;gap:4px;background:var(--surface-2);border-radius:12px;padding:10px 12px;margin:10px 0;font-size:14px}
.setup-status p{margin:2px 0}
/* ---------- Round 15: first-time setup wizard + TOTP 2FA ---------- */
#firstTimeWizard{max-width:560px;margin-inline:auto}
.wiz-steps{list-style:none;padding-inline-start:0;counter-reset:wiz}
.wiz-steps>li{position:relative;background:var(--surface-2);border:1px solid var(--border);border-radius:14px;padding:14px 14px 14px 16px;gap:8px}
.wiz-steps>li>b{display:flex;align-items:center;gap:8px}
.wiz-num{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--brand);color:#fff;font-size:14px;font-weight:700}
#firstTimeWizard.wiz-done .wiz-steps>li:nth-child(1), #firstTimeWizard.wiz-done .wiz-steps>li:nth-child(2){opacity:.75}
#firstTimeWizard.wiz-done .wiz-steps>li:nth-child(1) .wiz-num, #firstTimeWizard.wiz-done .wiz-steps>li:nth-child(2) .wiz-num{background:var(--green)}
#firstTimeWizard input:disabled, #firstTimeWizard button:disabled{opacity:.55;cursor:not-allowed}
#adminTokenStrength{font-size:12.5px;color:var(--muted)}
#adminTokenStrength:empty{display:none}
#totpSection{border-top:1px solid var(--border);margin-top:18px;padding-top:6px}
#totpSection .row{margin:8px 0}
.totp-qr{display:flex;justify-content:center;padding:12px;background:#fff;border:1px solid var(--border);border-radius:14px;margin:10px auto;max-width:232px}
.totp-qr svg{width:100%;height:auto;display:block}
#totpSecretText{font-size:14px;word-break:break-all;flex:1;min-width:0}
.totp-recovery{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:10px 0}
.totp-recovery li{background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:6px 8px;text-align:center}
.totp-recovery code{font-size:14px}
@media (max-width:560px){ .totp-recovery{grid-template-columns:1fr} }
.dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-inline-end:6px;vertical-align:middle}
.dot.green{background:#16A34A}
.dot.red{background:#DC2626}
.input-row{display:flex;gap:8px}
.input-row input{flex:1;min-width:0}
/* Phone row (checkout): the long "Share my number from Telegram" button
   squeezed the phone input to ~60px at 390px (2026-11-16) — stack them. */
.phone-row{flex-wrap:wrap}
.phone-row input{flex:1 1 100%}
.phone-row .btn{flex:1 1 auto;justify-content:center}
.btn:disabled{opacity:.5;cursor:not-allowed}

/* ---------- Weekly calendar / line totals / codes / referral (2026-11-12) ---------- */
.calendar-panel{margin:14px 0}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:10px}
.cal-day{display:flex;flex-direction:column;align-items:center;gap:2px;border:1.5px solid var(--border);background:var(--surface-2);border-radius:12px;padding:8px 2px;cursor:pointer;font-family:inherit;color:var(--text);min-height:86px}
.cal-day.active{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.cal-day.cal-closed{opacity:.45;cursor:not-allowed;background:var(--surface)}
.cal-wd{font-size:11.5px;color:var(--muted);text-align:center}
.cal-num{font-size:20px;font-weight:800;line-height:1.1}
.cal-dishes{font-size:10.5px;color:var(--muted);text-align:center;line-height:1.25;max-height:26px;overflow:hidden}
.cal-count{font-size:10.5px;font-weight:700;color:var(--accent)}
@media (max-width:640px){ .cal-grid{grid-template-columns:repeat(7,1fr);gap:4px} .cal-day{min-height:78px;padding:6px 1px} .cal-dishes{display:none} .cal-num{font-size:17px} }
.line-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;margin-top:8px;padding:7px 10px;border-radius:10px;background:var(--accent-soft);font-size:13.5px}
.line-total b{font-size:15px}
.line-total .muted{margin-inline-start:auto}
.code-box{border:1px dashed var(--border);border-radius:12px;padding:12px;margin:12px 0}
.referral-code-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.referral-code-row code{font-size:18px;font-weight:800;letter-spacing:1px;background:var(--surface-2);padding:8px 12px;border-radius:10px}
.badge{display:inline-block;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700}
.badge.approved{background:#DCFCE7;color:#166534}
.badge.pending_review{background:#FEF3C7;color:#92400E}
.mini{font-size:12px;color:var(--muted)}
.rule-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--border)}
.rule-row:last-child{border-bottom:none}

/* ---------- Delivery / pickup, address, invoice, login (2026-11-12) ---------- */
.seg{display:flex;background:var(--surface-2);border-radius:12px;padding:4px;gap:4px;margin:10px 0}
.seg button{flex:1;border:none;background:transparent;border-radius:9px;padding:10px 6px;font-family:inherit;font-size:14.5px;font-weight:700;color:var(--muted);cursor:pointer}
.seg button.active{background:var(--accent);color:#fff}
.addr-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
@media (max-width:560px){ .addr-grid{grid-template-columns:1fr} }
.progress{height:10px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin:6px 0;border:1px solid var(--line)}
.progress > div{height:100%;min-width:8px;background:var(--accent);border-radius:999px;transition:width .3s}

/* ---- Order tracking timeline ---- */
.track-timeline{display:flex;flex-direction:column;gap:0;margin:10px 0}
.track-step{display:flex;align-items:center;gap:10px;padding:6px 0;color:var(--muted)}
.track-step .track-dot{width:26px;height:26px;flex:0 0 26px;border-radius:50%;border:2px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:13px;background:var(--surface)}
.track-step.done{color:var(--ink)}
.track-step.done .track-dot{border-color:var(--green);background:var(--green-bg);color:var(--green)}
.track-step.current{color:var(--ink);font-weight:700}
.track-step.current .track-dot{border-color:var(--brand);background:var(--gold-soft);color:var(--brand)}
.track-step.terminal .track-dot{border-color:var(--red);background:var(--red-bg);color:var(--red)}
.status-select{max-width:260px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
.unlock-banner{background:linear-gradient(135deg,#FEF3C7,#FDE68A);color:#92400E;border-radius:12px;padding:10px 12px;font-weight:700;margin:10px 0}
[data-theme="royal"] .unlock-banner{background:linear-gradient(135deg,#EDE9FE,#DDD6FE);color:#5B21B6}
.total-row.free span:last-child{color:#16A34A;font-weight:700}
.invoice{max-width:640px;margin:0 auto;background:#fff;color:#111;border-radius:14px;padding:22px;font-size:14px}
.invoice h1{font-size:20px;margin:0}
.invoice table{width:100%;border-collapse:collapse;margin:12px 0}
.invoice th,.invoice td{padding:7px 4px;border-bottom:1px solid #eee;text-align:start}
.invoice th:last-child,.invoice td:last-child{text-align:end}
.invoice .inv-total td{font-weight:800;font-size:16px;border-top:2px solid #111}
.login-box{border:1px solid var(--border);border-radius:12px;padding:14px;margin:12px 0}
.login-box h2{margin:0 0 4px;font-size:19px;font-weight:800}
/* ---------- Round 11 (2026-11-26) — ONE Login section, two options side
   by side. Grid: one column on phones (stacked, forms stay usable at
   390px), two equal columns from 768px up. Grid follows document
   direction, so FA (RTL) mirrors automatically — Telegram on the right,
   email/password on the left. Each option is a quiet sub-panel, not a
   second card fighting the outer panel. */
.login-options{display:grid;grid-template-columns:1fr;gap:14px;margin-top:12px}
.login-option{border:1px solid var(--line);border-radius:var(--radius-sm);padding:16px;background:var(--surface-2);min-width:0}
.login-option h3{margin:0 0 6px;font-size:16px;font-weight:800}
.login-option .input-row{display:flex;gap:8px;flex-wrap:wrap}
.login-option .input-row input{flex:1 1 100%;min-width:0}
.login-option .input-row .btn{flex:1 1 auto;justify-content:center}
/* Round 21 integration: the login code rows stack (input above, button
   below) — the long "Send code to my Telegram" button squeezed the
   ID/phone input until its placeholder clipped at 390px. Same pattern
   as the checkout .phone-row. Applies to the Telegram + email code rows. */
/* Round 21: country-code picker sits directly above the phone field in
   phone mode (full width, like Telegram's own login) so the phone input
   and Send button keep their room on phones. */
#loginCountryRow{margin-bottom:8px}
#loginCountryRow select{width:100%}
#loginPhoneHintRow{margin:0 0 8px}
#loginPhoneHintRow p{margin:0 0 6px}
#loginPhoneHintRow .btn{padding:2px 10px;font-size:13px}
/* Round 23 (worker 1, C+E): guest-inside-login + open-the-bot rows.
   The guest option sits INSIDE the login block below the two login
   options, separated by a hairline so it reads as an alternative, not
   a third login method. The bot button appears ONLY under the
   unknown phone/username guidance, full-width so the label never
   clips at 390px. */
.login-guest{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}
.login-guest p{margin:0 0 10px}
.login-guest .btn{width:100%;justify-content:center}
#loginBotBtnRow{margin-top:10px}
#loginBotBtnRow p{margin:0 0 8px}
#loginBotBtnRow .btn{width:100%;justify-content:center}
@media (min-width:768px){
  .login-options{grid-template-columns:1fr 1fr}
}
.demo-badge{display:inline-block;background:#FEF3C7;color:#92400E;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:800}
input:required:invalid{outline:none}
.field-err{color:#DC2626;font-size:12.5px;margin-top:4px}

/* ============================================================
   REDESIGN 2026-11-12 — mobile-first layout, secret admin path,
   events, legal pages, footer, featured, PWA install hint.
   These rules come last so they override the earlier ones. */

/* ---------- Sticky header (shrinks + shadow on scroll) ---------- */
/* FIX 2026-11-15 — the shrink-on-scroll changed the sticky header's height
   (padding 12/10 -> 7/7, h1 font-size, .brand-sub display:none), so crossing
   scrollY 24 moved all page content by ~30px and the scroll position
   oscillated around the threshold: the jumpy/stuck scrolling on mobile.
   The header height must NEVER change on scroll: .scrolled now only adds
   the shadow. No layout property may change here. */
.site-header{position:sticky;top:0;z-index:50;background:linear-gradient(150deg,var(--hero-1) 0%,var(--hero-2) 130%);color:var(--hero-ink);padding:12px 16px 10px;transition:box-shadow .25s ease}
.site-header .topbar{max-width:920px}
.site-header.scrolled{box-shadow:0 10px 28px rgba(0,0,0,.30)}
.hero{padding:6px 18px 22px}

/* ---------- Collapsible hero (2026-11-15) ----------
   Collapsed by default after the first visit (localStorage catering-hero-collapsed);
   the menu must be visible on first paint, so the collapsed hero is one line +
   a small toggle pill. The toggle stays visible in both states. */
.hero-toggle{display:flex;margin:14px auto 0;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:var(--hero-ink);border-radius:999px;padding:6px 14px;cursor:pointer;font-size:12.5px;font-weight:700}
.hero-toggle .hero-chevron{font-size:10px}
.hero-collapsed-line{margin:2px 0 0;text-align:center;font-size:14.5px;font-weight:700;color:var(--hero-ink)}
.hero.collapsed{padding:10px 18px 12px}
.hero.collapsed .hero-toggle{margin-top:8px}

/* ---------- Persian tile-pattern strip (2026-11-15) ----------
   Restrained Iranian character: a thin CSS-only turquoise lattice under the
   header and above the footer. Uses the active theme's --brand, so it reads
   correctly in all 5 themes, light and dark. */
.tile-strip{height:7px;background-color:var(--surface-2);background-image:
  repeating-linear-gradient(45deg,color-mix(in srgb,var(--brand) 42%,transparent) 0 5px,transparent 5px 11px),
  repeating-linear-gradient(-45deg,color-mix(in srgb,var(--brand) 42%,transparent) 0 5px,transparent 5px 11px)}
.count-badge:empty{display:none}

/* ---------- Iranian ornaments — boteh divider + girih footer strip (2026-11-15) ----------
   Restrained, theme-aware (var(--brand)/var(--gold) at low opacity):
   a boteh (paisley) divider under the hero, and a thin girih diamond-lattice
   strip as the footer's top accent. Both are inline SVG, no images, no
   emoji, and sit outside the order flow so they cannot slow it down. */
.orn-divider{display:flex;align-items:center;gap:12px;max-width:920px;margin:16px auto 2px;padding:0 18px;color:color-mix(in srgb,var(--brand) 55%,transparent)}
.orn-divider .ic{flex:none;width:26px;height:26px}
.orn-line{flex:1;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--brand) 45%,transparent) 50%,transparent)}
.foot-orn{display:block;width:100%;height:12px;background:var(--surface-2);color:color-mix(in srgb,var(--brand) 42%,transparent)}
.foot-orn svg{display:block;width:100%;height:12px}

/* ---------- Fixed bottom tab bar — 5 tabs, raised centre cart, CURVED bump (2026-11-15) ----------
   The bar itself curves up around the cart: an inline SVG (.tabs-shape,
   first child of <nav class="tabs">) draws the bar as one filled shape whose
   top edge rises ~19px in a smooth bezier scoop on each side of the centre
   (concave left + right), cradling the 56px cart circle. The path is
   symmetric, so EN (LTR) and FA (RTL) look identical, and it uses
   var(--surface)/var(--line) so it follows all 6 themes, light and dark.
   The SVG is pointer-events:none and sits behind the buttons (z-index 0);
   the buttons stay clickable above it. The hill's peak is the tallest
   element of the bottom stack — re-measure after any change here.
   Measured at 390px (Playwright, fresh profile): tab bar 72px,
   raised cart top 87px above the viewport bottom, hill peak 92px —
   identical in EN and FA, and at 768px and 1280px. Every floating element
   and the footer clear it: cart bar bottom 128px, cookie/install bars
   124px (208px with the cart bar), footer padding 136px (208px with the
   cart bar). */
.tabs{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;display:flex;gap:4px;max-width:none;margin:0;padding:6px 8px calc(8px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));background:transparent;border-top:0;overflow-x:visible}
.tabs-shape{position:absolute;left:0;right:0;bottom:0;top:-20px;width:100%;height:calc(100% + 20px);z-index:0;pointer-events:none;overflow:visible}
.tabs button{position:relative;z-index:1;flex:1 1 0;min-width:0;flex-direction:column;gap:2px;padding:7px 2px 6px;border:0;border-radius:12px;background:transparent;font-size:11.5px;font-weight:700}
/* Active tab: colour only — the tinted pill is now the single shared
   liquid indicator (#tabLiquid, ROUND 9B below), so no per-button
   background (the old rounded-square pill is gone). Icon + label take
   the brand colour; the icon pops a touch. */
.tabs button.active{background:transparent;color:var(--brand);border-color:transparent;box-shadow:none}
.tabs button.active .tab-ic{color:var(--brand)}
/* ---------- ROUND 9B (2026-11-22) — liquid bottom-nav indicator ----------
   Pattern: the "liquid tab bar" (TFE LiquidTabBar) — ONE shared pill that
   slides between tabs, stretches mid-flight and re-forms, instead of a
   per-tab background. Runners-up: Aduok's floating circular indicator
   (single --active-index, spring overshoot — a circle fights the raised
   cart) and bottom_shell_nav's sliding renderer (Flutter-only, not web).
   The SVG goo filter from LiquidTabBar was deliberately NOT used: with a
   single moving pill and no stationary destination blob there is nothing
   for the blur to merge with, and filter:url() risks clipping/artifacts
   in the Telegram WebView — the liquid feel comes from the spring
   cubic-bezier (overshoot y>1) + the mid-slide stretch + width morphing.
   Layering (two-layered, per brief): bar shape z 0 < liquid pill z 0
   (later in DOM, so above the shape) < tab buttons z 1 < raised cart
   button z 2. Buttons are transparent, so the pill shows through them;
   the cart circle (inside the z-2 button) always stays on top of the
   pill, which peeks out ~7px on each side of the 56px circle at 390px.
   Geometry is set by moveTabLiquid() in app.js from getBoundingClientRect
   (physical coords — EN + FA/RTL mirror automatically, no hardcoded
   left offsets). transform + width are the only animated properties
   (GPU-friendly, no layout shift); the stretch runs on the inner blob
   so it never fights the positioning transform. */
.tab-liquid{position:absolute;left:0;top:9px;z-index:0;width:0;height:52px;pointer-events:none;transform:translateX(0);transition:transform .45s cubic-bezier(.34,1.3,.64,1),width .45s cubic-bezier(.34,1.3,.64,1),top .3s ease,height .3s ease,opacity .25s ease}
.tab-liquid-blob{display:block;width:100%;height:100%;border-radius:999px;background:color-mix(in srgb,var(--brand) 18%,var(--surface));border:1px solid color-mix(in srgb,var(--brand) 28%,transparent);box-shadow:0 2px 10px color-mix(in srgb,var(--brand) 22%,transparent)}
.tab-liquid--hidden{opacity:0}
.tab-liquid--instant{transition:none!important}
@keyframes liquidStretch{0%{transform:scaleX(1)}35%{transform:scaleX(1.14)}100%{transform:scaleX(1)}}
.tab-liquid--stretch .tab-liquid-blob{animation:liquidStretch .45s cubic-bezier(.34,1.3,.64,1)}
/* Cart always on top of the liquid pill, in front and bold. */
.tabs button.tab-cart-raised{position:relative;z-index:2}
.tabs button.active:not(.tab-cart-raised) .tab-ic{transform:scale(1.08)}
.tabs button .tab-ic{transition:transform .25s ease}
@media (prefers-reduced-motion:reduce){
  .tab-liquid{transition:none!important}
  .tab-liquid-blob{animation:none!important}
}
/* ---------- END ROUND 9B ---------- */
.tabs button.active .count-badge{background:var(--brand);color:#fff}
/* The cart tab is the way to order: a raised brand circle, unmistakable as
   the cart, with the red count badge on its top corner. */
.tabs button.tab-cart-raised{font-weight:800;overflow:visible}
.tabs button.tab-cart-raised .tab-ic{width:56px;height:56px;margin-top:-28px;border-radius:50%;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(0,0,0,.28);position:relative;border:3px solid var(--surface)}
.tabs button.tab-cart-raised .tab-ic .ic{width:26px;height:26px}
.tabs button.tab-cart-raised .count-badge{position:absolute;top:-5px;inset-inline-end:-5px;background:var(--red);color:#fff;min-width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;border:2px solid var(--surface);padding:0 4px}
.tabs button.tab-cart-raised.active{background:transparent;color:var(--brand)}
.tabs button.tab-cart-raised.active .tab-ic{box-shadow:0 8px 20px rgba(0,0,0,.28),0 0 0 3px color-mix(in srgb,var(--brand) 45%,transparent)}
.tab-ic{display:inline-flex;line-height:0}
main{padding-bottom:24px}
footer{position:static;background:var(--surface-2);border-top:1px solid var(--line);padding:28px 16px calc(136px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));display:block;font-size:13px;color:var(--muted)}
/* With a non-empty cart the floating cart bar (bottom 78px + ~65px tall) sits
   above the tab bar and covered the footer's last line. Extra bottom padding
   while the bar is visible (body.has-cart-bar, toggled in updateCartBar)
   lifts the whole footer above it. */
body.has-cart-bar footer{padding-bottom:calc(208px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
.foot-inner{max-width:920px;margin:0 auto;display:grid;gap:20px}
.foot-col b{font-size:16px;color:var(--ink)}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 18px;align-content:flex-start}
.foot-links a{color:var(--ink-2);text-decoration:none;font-weight:600;font-size:13.5px}
.foot-links a:hover{color:var(--brand)}
.foot-dev{font-size:12px;line-height:1.6;color:var(--muted);text-align:center}
.foot-dev a{color:var(--brand);font-weight:600;text-decoration:none;direction:ltr;unicode-bidi:embed}
.foot-note{margin:0;font-size:12px}
@media (min-width:640px){ .foot-inner{grid-template-columns:1.3fr 1fr} .foot-dev{grid-column:1 / -1} .foot-note{grid-column:1 / -1} }
.cart-bar{bottom:calc(128px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
/* 2026-11-15 nav redesign: was 100px; the raised cart button's top sits
   87px above the viewport bottom at 390px (EN and FA) — the bar clears it
   by 41px. */

/* ---------- Hero stat cards: equal columns, no awkward wrap ---------- */
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{min-width:0;padding:10px;text-align:center}
.stat strong{font-size:14px;white-space:nowrap}
.stat span{display:block;font-size:11.5px;line-height:1.4;margin-top:2px}

/* ---------- Weekly calendar: horizontal strip (no 7-col squeeze) ----------
   NOTE: no scroll-snap on this strip. Mandatory snap forces the scroll
   position onto day boundaries (2, 80, 158, …), but the position that shows
   the selected day fully is often a few px off a snap point (measured: 4px
   cut at 360px) — and re-enabling snap re-snaps even a static position.
   scrollIntoView(inline:"nearest") lands exactly; the strip still scrolls
   freely by swipe. */
.cal-grid{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:none}
.cal-grid::-webkit-scrollbar{display:none}
.cal-day{flex:0 0 78px;min-height:100px;min-width:44px;padding:10px 4px}
.cal-day .cal-dishes{max-height:30px}
@media (max-width:640px){ .cal-grid{gap:6px} .cal-day{flex-basis:72px;min-height:92px} .cal-dishes{display:block;font-size:10px} .cal-num{font-size:18px} }

/* ---------- Delivery-date chips: compact single line, scrollable row ---------- */
.chips{display:flex;gap:6px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;white-space:nowrap;padding:9px 13px}
.chip small{display:none}

/* ---------- Skeleton loaders ---------- */
.skel{border-radius:12px;background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:shimmer 1.2s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}
.skel-card{height:290px;overflow:hidden;padding:0}
.skel-card .skel-img{height:150px;border-radius:0}
.skel-card .skel-line{height:14px;margin:12px 14px 0}
.skel-card .skel-line.short{width:55%}
@media (max-width:560px){ .skel-card{height:230px} .skel-card .skel-img{height:110px} }

/* ---------- Animations (alive, but calm) ---------- */
@keyframes fadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes badgePop{0%{transform:scale(.4)}60%{transform:scale(1.3)}100%{transform:scale(1)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
/* Tab switches: a small elegant fade + slight slide (~200ms). The animation
   runs when a section leaves display:none, so it fires exactly on a tab
   switch. prefers-reduced-motion kills it (global rule below). */
@keyframes tabIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
main>section:not(.hidden){animation:tabIn .2s ease}
.card{animation:fadeUp .3s ease backwards}
/* Round 11: was `both` — the forwards fill kept the final keyframe
   (translateY(0)) applied forever, which sits above :hover in the
   cascade and silently killed the .card:hover lift. `backwards` keeps
   the entrance (first keyframe before the animation starts) and lets
   the hover transform work afterwards. */
.order-card{animation:fadeUp .3s ease both}
.count-badge.pop{animation:badgePop .3s ease}
.btn:active,.qty button:active,.chip:active,.cal-day:active{transform:scale(.96)}
.btn,.qty button,.chip,.cal-day{transition:transform .12s ease,background-color .3s ease,color .3s ease,border-color .3s ease,box-shadow .3s ease}
/* Round 11 (2026-11-26) — tasteful micro-interactions, same calm language:
   hover lift + shadow on buttons, dish cards (the photo zooms gently
   inside the card's overflow:hidden), offer/event cards and theme cards;
   a soft tint on menu-table rows and inactive tab buttons. Nothing moves
   more than a couple of pixels, nothing flashes. :not(:active) keeps the
   press feedback above intact. The prefers-reduced-motion rule below
   kills all of it (animations + transitions) in one place. */
.btn:hover:not(:disabled):not(:active){transform:translateY(-1px);box-shadow:var(--shadow-sm)}
.btn.primary:hover:not(:disabled):not(:active){box-shadow:var(--shadow)}
.card img{transition:transform .35s ease}
.card:hover img{transform:scale(1.04)}
.offer-card,.events-card{transition:transform .25s ease,box-shadow .25s ease,background-color .3s ease,border-color .3s ease}
.offer-card:hover,.events-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.theme-card{transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.theme-card:hover{transform:translateY(-2px);border-color:var(--brand)}
.menu-table-row{transition:background-color .2s ease}
.menu-table-row:hover{background:var(--surface-2)}
.tabs button:hover:not(.active){background:var(--surface-2)}
.reveal{opacity:0;transform:translateY(12px);transition:opacity .45s ease,transform .45s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}

/* ---------- Featured showcase ---------- */
.featured-strip{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 12px;scrollbar-width:none}
.featured-strip::-webkit-scrollbar{display:none}
.featured-strip .card{flex:0 0 262px;scroll-snap-align:start}
.feat-badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;color:#92400E;background:linear-gradient(135deg,#FEF3C7,#FDE68A);border-radius:999px;padding:3px 10px}
/* Round 32 (worker C): member price — struck regular price + member
   price + badge, on menu rows and in the dish popup. Uses the theme
   accent so it reads in light and dark mode alike. */
.member-price-badge{display:inline-flex;align-items:center;gap:3px;font-size:10.5px;font-weight:800;color:var(--accent);border:1px solid var(--accent);border-radius:999px;padding:2px 8px;white-space:nowrap;vertical-align:middle}
.member-price s,.member-price-old{opacity:.55}
.member-price b{color:var(--accent)}
/* ---------- Dietary tag badges + filter (round 3) ---------- */
.tag-badges{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.tag-badges:empty{display:none}
.tag-badge{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:800;border-radius:999px;padding:3px 9px;border:1px solid var(--line);background:var(--surface-2);color:var(--ink-2)}
.tag-badge .ic{width:12px;height:12px}
.tag-halal{color:#166534;background:#DCFCE7;border-color:#BBF7D0}
.tag-vegan{color:#14532D;background:#D1FAE5;border-color:#A7F3D0}
html[data-mode="dark"] .tag-halal{color:#BBF7D0;background:#14532D;border-color:#166534}
html[data-mode="dark"] .tag-vegan{color:#A7F3D0;background:#064E3B;border-color:#065F46}
/* ---------- Allergens + dish options + monthly calendar (round 4) ---------- */
.allergen-badge{color:#92400E;background:#FEF3C7;border-color:#FDE68A}
html[data-mode="dark"] .allergen-badge{color:#FDE68A;background:#451A03;border-color:#92400E}
/* Round 5 custom tags: the badge colour comes from an inline style (the
   operator-picked colour); dark mode brightens it so dark colours stay
   readable on the dark surface. */
.tag-dot{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:-1px;flex:none}
html[data-mode="dark"] .tag-custom{filter:brightness(1.45)}
.tag-colour-input{width:52px;height:38px;padding:2px;flex:none}
.tag-colour-text{max-width:110px}
.allergen-warn{display:flex;gap:8px;align-items:flex-start;background:var(--amber-bg);border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin:12px 0;font-size:13.5px;font-weight:600;line-height:1.7;color:var(--ink)}
.allergen-warn .ic{flex:none;width:18px;height:18px;margin-top:2px;color:#B45309}
html[data-mode="dark"] .allergen-warn .ic{color:#F59E0B}
.opt-chips{display:flex;flex-wrap:wrap;gap:8px}
.opt-chips .chip{white-space:normal;text-align:start}
.fOptRow{display:grid;grid-template-columns:1fr 1fr 110px auto;gap:8px;margin-bottom:8px;align-items:center}
.fOptRow input{min-width:0}
@media (max-width:560px){ .fOptRow{grid-template-columns:1fr 1fr} .fOptRow .fOptDel{justify-self:end} }
.month-cal-panel{margin:4px 0 12px}
/* Round 20 (worker C) — monthly calendar redesign. Research: shadcn
   Calendar + Design Lounge month component. Chosen pattern, adapted to
   this site's language (Vazirmatn/Inter, teal brand, soft fills):
   - month caption centred between two 36px square chevron buttons, plus a
     "Today" pill that jumps back to the current month (shadcn preset idea);
   - a FIXED six-week frame (42 day cells) so the panel never jumps height
     when the month changes (shadcn fixedWeeks);
   - selected day = soft brand fill + 2px brand border (Design Lounge:
     the chosen day uses the soft tint, not a solid circle);
   - today = 2px brand ring + brand-coloured number, distinct from selected;
   - live days carry a teal dot AND the dish count, so a day's menu size is
     visible at a glance; disabled days are dimmed with no hover and no dot;
   - a legend row under the grid explains the three states.
   Skipped: adjacent-month days shown dimmed inside the grid (kept the
   empty leading/trailing cells — the pre-order window already greys most
   of them and showing them would invite taps that explain nothing new);
   month/year dropdowns (chevrons + Today cover the 14-day window);
   range selection (one day at a time is the app's model).
   Data and behaviour are unchanged: same serving-days / pre-order window
   / schedule rules, same tap-a-day flow. */
.month-cal-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.month-cal-head b{flex:1;text-align:center;font-size:17px;font-weight:800;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.month-cal-head .month-cal-nav{flex:none;width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
.month-cal-head .month-cal-nav:disabled{opacity:.35;cursor:default}
.month-cal-today{flex:none;padding:7px 13px;border-radius:999px;font-size:13px;font-weight:700}
.month-cal-today:disabled{opacity:.45;cursor:default}
.month-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.month-cal-wd{text-align:center;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:4px 0 6px;min-width:0;overflow:hidden}
.month-cal-cell{position:relative;min-height:54px;border:1px solid var(--line);background:var(--surface);border-radius:12px;cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 2px;min-width:0;font-family:inherit;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.month-cal-cell:hover{border-color:var(--brand);background:var(--surface-2)}
.month-cal-cell:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.month-cal-num{font-size:15px;font-weight:800;line-height:1.1}
.month-cal-meta{display:inline-flex;align-items:center;gap:4px;line-height:1;min-height:9px}
.month-cal-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);flex:none}
.month-cal-count{font-size:11px;font-weight:700;color:var(--brand)}
.month-cal-cell.today{box-shadow:inset 0 0 0 2px var(--brand)}
.month-cal-cell.today .month-cal-num{color:var(--brand)}
.month-cal-cell.disabled{background:transparent;color:var(--muted);opacity:.5;cursor:default;border-color:transparent}
.month-cal-cell.disabled:hover{background:transparent;border-color:transparent}
.month-cal-cell.selected{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 16%,var(--surface));box-shadow:0 0 0 1px var(--brand);color:var(--brand)}
.month-cal-cell.selected.today{box-shadow:0 0 0 1px var(--brand),inset 0 0 0 2px var(--brand)}
.month-cal-cell.selected .month-cal-dot{background:var(--brand)}
.month-cal-empty{border:0;background:transparent;cursor:default}
.month-cal-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.month-cal-leg{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--muted)}
.month-cal-leg i{display:inline-block;flex:none}
.month-cal-leg .leg-today{width:13px;height:13px;border:2px solid var(--brand);border-radius:4px;background:transparent}
.month-cal-leg .leg-menu{width:7px;height:7px;border-radius:50%;background:var(--brand)}
.month-cal-leg .leg-closed{width:13px;height:13px;border-radius:4px;background:var(--surface-2);border:1px solid var(--line)}
@media (max-width:640px){
  .month-cal-grid{gap:4px}
  .month-cal-cell{min-height:48px;border-radius:10px}
  .month-cal-num{font-size:14px}
  .month-cal-count{font-size:10px}
  .month-cal-head b{font-size:16px}
}
.month-cal-day h3{margin:14px 0 8px;font-size:16px}
.month-cal-day .row{margin-top:10px}
/* ---- Menu tab: Today / Full menu toggle + month calendar (round 5) ---- */
.menu-view-toggle{display:inline-flex;gap:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:4px;margin:2px 0 10px}
.menu-view-toggle .seg-btn{border:0;background:transparent;color:var(--ink-2);font:inherit;font-weight:700;font-size:13px;padding:7px 16px;border-radius:999px;cursor:pointer;min-width:0}
.menu-view-toggle .seg-btn.active{background:var(--brand);color:#fff;box-shadow:var(--shadow-sm)}
/* Round 26: Menu | Supermarket segment — same pill style as the
   Today/Full toggle, centred above the Menu and Supermarket tabs. */
.menu-mode-seg{display:flex;justify-content:center;gap:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:4px;margin:2px auto 10px;width:max-content;max-width:100%}
.menu-mode-seg .seg-btn{border:0;background:transparent;color:var(--ink-2);font:inherit;font-weight:700;font-size:13px;padding:7px 16px;border-radius:999px;cursor:pointer;min-width:0}
.menu-mode-seg .seg-btn.active{background:var(--brand);color:#fff;box-shadow:var(--shadow-sm)}
#menuGrid.menu-grid-grouped{display:block}
.menu-grid-grouped{display:block} /* Round 26: any grouped list (Menu, Supermarket) is a block container of strip+table, never the 2-column .grid itself */
#menuGrid.menu-grid-grouped>.grid{margin-bottom:6px}
.menu-cat-head{margin:18px 0 10px;font-size:16px}
.menu-cat-head:first-child{margin-top:4px}
.not-served-note{display:flex;align-items:center;gap:6px;margin:8px 0 0;padding:8px 10px;border-radius:10px;background:var(--amber-bg);color:var(--ink-2);font-size:12.5px;font-weight:600}
.not-served-note .ic{flex:0 0 auto}
.dish-cooking-days{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:14px}
.dish-cooking-days .ic{color:var(--brand);flex:0 0 auto}
.menu-cal-panel{margin:4px 0 16px}
.menu-cal-list h3{margin:12px 0 6px;font-size:15px}
@media (max-width:640px){ .menu-view-toggle{width:100%} .menu-view-toggle .seg-btn{flex:1} }
.tag-filter{margin:8px 0 2px}
html[data-mode="dark"] .feat-badge{color:#FDE68A;background:#451A03}
@media (max-width:380px){ .featured-strip .card{flex-basis:232px} }

/* ---------- Events ---------- */
.events-card{border:2px dashed var(--gold);background:linear-gradient(135deg,var(--gold-soft),transparent 70%)}
.ev-dish-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ev-dish-row.picked{border-color:var(--gold)}
.ev-group-title{margin:14px 0 4px;font-size:15px;color:var(--brand);border-bottom:1px solid var(--line);padding-bottom:6px}
.ev-group-title:first-child{margin-top:0}
.ev-dish-main{flex:1;min-width:0;display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;cursor:pointer;color:inherit;text-align:start;font:inherit}
.ev-thumb{width:56px;height:56px;min-width:56px;border-radius:12px;object-fit:cover;background:var(--surface-2)}
.ev-dish-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.ev-dish-text b{line-height:1.25}
.ev-dish-row .qty{flex-shrink:0}
.ev-summary{border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-top:14px;background:var(--surface-2)}
.ev-summary h3{margin:0 0 8px;font-size:15px}
.ev-summary-row{display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:14px}
.ev-summary-row b{white-space:nowrap}
.ev-summary-total{border-top:1px solid var(--line);margin-top:6px;padding-top:8px;font-size:15px}
.ev-steps{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:6px 0}
.ev-step{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--muted);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:3px 8px}
.ev-step.done{color:#166534;border-color:#BBF7D0;background:#F0FDF4}
.ev-step.current{color:#92400E;border-color:var(--gold);background:var(--gold-soft)}
.ev-step .ic{width:14px;height:14px}
.ev-step-sep{color:var(--muted);font-size:12px}
.ev-status-box{border:2px solid var(--gold);background:var(--gold-soft);border-radius:16px;padding:14px;margin-top:12px}
.ev-status-box p{margin:8px 0;color:var(--ink-2)}
.ev-pay-row{display:flex;align-items:center;gap:8px;margin:10px 0;cursor:pointer}
.ev-pay-row input{width:18px;height:18px;accent-color:var(--brand)}
.promo-modal.ev-dish-modal{text-align:start}
.ev-dish-modal h2{padding-inline-end:36px}
.ev-modal-photo{width:100%;max-height:240px;object-fit:cover;border-radius:14px;margin-bottom:10px}
.ev-modal-ings{margin:10px 0;color:var(--ink-2);line-height:1.6}
.ev-modal-buy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}

/* ---------- Round 26 (worker B): dish quick-view popup ----------
   Same promo-overlay / promo-modal shell as the event dish popup, but a
   bottom sheet on phones (slides up from the bottom, full width) and a
   centred dialog on desktop. Scoped to .dish-popup-* so the event popup
   and other promos keep their centred layout. */
/* .promo-modal (later in this file) sets text-align:center — the doubled
   selector wins so popup copy aligns to the start like the dish page. */
.promo-modal.dish-popup-modal{text-align:start}
.dish-popup-modal h2{padding-inline-end:36px}
.dish-popup-modal .desc{margin:0 0 10px;color:var(--ink-2);line-height:1.6}
.dish-popup-modal .dish-section{margin-top:12px}
.dish-popup-modal .dish-section h3{margin:0 0 8px;font-size:15px}
.dish-popup-buy{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;flex-wrap:wrap}
.dish-popup-buy .qty{flex-shrink:0}
.dish-popup-full{margin-top:14px;width:100%}
.dish-popup-modal .in-cart-line{margin:8px 0 0}
@media (max-width:560px){
  /* .promo-overlay/.promo-modal (later in this file) would win an
     equal-specificity tie, so these selectors are doubled up to win. */
  .promo-overlay.dish-popup-overlay{align-items:flex-end;padding:0}
  .promo-overlay.dish-popup-overlay .promo-modal.dish-popup-modal{width:100%;max-width:100%;max-height:88vh;border-radius:20px 20px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}

/* ---------- Round 30 (workstream C): CMS dish edit popup ----------
   The CMS dish form lives in this modal (was inline in #dishPanel).
   Same promo-overlay / promo-modal shell as the storefront dish
   quick-view popup above: bottom sheet on phones, centred dialog on
   desktop. Wider than the 420px promo default — the form has long
   label rows and multi-selects. */
.promo-modal.dish-edit-modal{text-align:start;width:min(640px,100%)}
.dish-edit-modal h2{padding-inline-end:36px}
.dish-edit-modal .msg{display:block;margin-top:10px}
@media (max-width:560px){
  .promo-overlay.dish-edit-overlay{align-items:flex-end;padding:0}
  .promo-overlay.dish-edit-overlay .promo-modal.dish-edit-modal{width:100%;max-width:100%;max-height:88vh;border-radius:20px 20px 0 0;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}
}
.ev-status{font-size:12px;font-weight:700}
.ev-status.pending{color:#92400E}
.ev-status.approved{color:#166534}
.ev-status.rejected{color:#991B1B}
.tel-link{color:var(--brand);font-weight:800;text-decoration:none;direction:ltr;unicode-bidi:embed;font-size:16px}

/* ---------- Legal pages ---------- */
.legal-content h2{margin:14px 0 8px;font-size:20px}
.legal-content h3{margin:16px 0 6px;font-size:16px}
.legal-content p,.legal-content li{font-size:14.5px;line-height:1.8;color:var(--ink-2)}
.legal-content ul,.legal-content ol{padding-inline-start:22px;display:grid;gap:6px}
.legal-content .install-steps{display:grid;gap:12px}
.legal-content .install-steps li{background:var(--surface-2);border-radius:12px;padding:10px 12px;list-style:none}
.legal-content .install-steps li b{display:block;color:var(--ink)}

/* ---------- Install hint (dismissible) ---------- */
.install-hint{position:fixed;left:12px;right:12px;bottom:calc(124px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));z-index:45;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:10px 12px;display:flex;gap:8px;align-items:center;box-shadow:var(--shadow);font-size:13.5px;font-weight:600}
.install-hint span{flex:1;min-width:0}
.install-hint .btn{padding:8px 12px;font-size:13px;flex:none}

/* ---------- Admin gate / misc ---------- */
#adminGatePanel{border:2px solid var(--gold)}
.contact-panel .row,.panel .row{flex-wrap:wrap}
@media (max-width:560px){
  .tabs button{font-size:11px}
  .top-actions{gap:6px}
  .hero{padding-left:14px;padding-right:14px}
  .welcome{font-size:21px}
}

/* ---------- Business type + logo preview (CMS Setup, 2026-11-15) ---------- */
.logo-preview-row{display:flex;gap:10px;margin:10px 0}
.logo-preview{flex:1;border-radius:14px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);min-width:0}
.logo-preview.light{background:#FBF7F0}
.logo-preview.dark{background:#171412}
.logo-preview img{width:72px;height:72px;border-radius:14px;object-fit:cover}
.logo-preview span{font-size:12px;color:var(--muted);text-align:center}
.logo-preview.dark span{color:#D6D3D1}

/* ---------- Admin dashboard (business owner) ---------- */
.admin-tabs{margin:4px 0 12px}
.admin-tabs button{white-space:nowrap}
/* Round 15 (worker 4): admin sections — one section open at a time.
   Mobile: the nav is a horizontal scrollable row at the top of the admin
   area (Worker 5's "View site" button sits above it).
   Round 19 (workstream C): every nav item is a proper BOX — surface
   background, 1px border, soft radius, real gaps between items — with an
   unmistakable active state (accent fill + bold label). Labels wrap
   instead of clipping; the section icons (data-icon) render at 18px.
   The mobile row keeps its segmented pill look; only the icon sizing
   and smooth scrolling are shared.
   Round 20 (worker C) — ROOT CAUSE + FIX for the scrolling sidebar:
   the Round 15 sidebar was `position:sticky; top:72px` inside the
   #tab-admin grid (`grid-row:1/span 100`). Sticky is range-limited by its
   containing block, so it could only stick while the grid area lasted:
   measured 1280px EN/FA — the nav sticks at top:72px mid-page, but at
   the bottom of the page its bottom edge hits the grid's bottom edge and
   it scrolls away with the content (nav top -605px at page bottom). Two
   more defects: the nav is 754px tall (max-height calc(100vh - 90px))
   in an 844px viewport, so its own scroll barely helps, and top:72px is
   6px LESS than the real sticky header height (78px measured), so the
   stuck sidebar slid 6px under the header. Short sections collapsed the
   sticky range entirely.
   The fix follows the standard fixed-sidebar dashboard pattern (Tailwind /
   shadcn-style app shell): at >=1024px the admin area is a FIXED shell
   (position:fixed, viewport height, top padding clears the 78px header,
   bottom padding clears the fixed tab bar). The sidebar column and the
   content column are independent scroll containers inside that shell, so
   the sidebar's bounding box NEVER moves while the content scrolls. The
   shell is pure CSS (#tab-admin:not(.hidden)) — no JS toggling — and it
   mirrors main's widths (920px < 1180px viewport, 1180px above).
   Below 1024px the wrappers are display:contents and the section/sidebar
   headers are hidden, so mobile/tablet are exactly the old layout. */
#adminSidebar,#adminContentCol{display:contents}
#adminSectionHead,.admin-side-head{display:none}
#adminSectionTabs{overflow-x:auto;scrollbar-width:thin;scroll-behavior:smooth}
#adminSectionTabs button{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px}
#adminSectionTabs button .ic{width:18px;height:18px;flex:none}
#adminSectionTabs button.needs-setup::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold);margin-inline-start:6px;vertical-align:middle}
@media (min-width:1024px){
  #tab-admin:not(.hidden){position:fixed;top:0;left:0;right:0;z-index:15;margin-inline:auto;width:min(920px,100%);height:100vh;height:100dvh;padding:78px 16px 84px;box-sizing:border-box;background:var(--bg);display:grid;grid-template-columns:248px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);gap:0 20px}
  #tab-admin:not(.hidden)>.admin-switch-row{grid-column:1 / -1;grid-row:1;margin:0 0 10px}
  /* Round 32 (Worker A): the mode switcher is the second top row, right
     under "View site" — sidebar / content / gate move to row 3. */
  #tab-admin:not(.hidden)>.mode-switcher-row{grid-column:1 / -1;grid-row:2;margin:0 0 10px}
  #tab-admin:not(.hidden)>#adminGatePanel{grid-column:1 / -1;grid-row:3;min-width:0;margin:0}
  /* Logged out / bootstrap: no nav, so no sidebar and no content column —
     the gate panel spans the whole shell. */
  #tab-admin:has(#adminSectionTabs.hidden) #adminSidebar,
  #tab-admin:has(#adminSectionTabs.hidden) #adminContentCol{display:none}
  #adminSidebar{display:flex;flex-direction:column;grid-column:1;grid-row:3;min-height:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden}
  .admin-side-head{display:flex;flex-direction:column;gap:2px;padding:16px 16px 12px;border-bottom:1px solid var(--line);flex:none}
  .admin-side-head b{font-size:17px;font-weight:800;color:var(--ink);line-height:1.3;overflow-wrap:anywhere}
  .admin-side-head span{font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
  #adminSidebar .admin-role-row{flex:none;margin:0;padding:10px 12px;border-bottom:1px solid var(--line)}
  #adminSectionTabs{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:8px;background:transparent;padding:10px 12px;margin:0;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin}
  #adminSectionTabs button{flex:none;display:flex;align-items:center;gap:10px;text-align:start;justify-content:flex-start;padding:11px 12px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--surface);color:var(--ink-2);font-weight:600;font-size:14.5px;line-height:1.35;white-space:normal;box-shadow:var(--shadow-sm);cursor:pointer;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
  #adminSectionTabs button .ic{color:var(--brand)}
  #adminSectionTabs button:hover{background:var(--surface-2);border-color:var(--brand)}
  #adminSectionTabs button.active{background:var(--accent);border-color:transparent;color:#fff;font-weight:700;box-shadow:var(--shadow-sm)}
  #adminSectionTabs button.active .ic{color:#fff}
  #adminSectionTabs button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
  /* Content column: its own scroll container. Each section renders inside
     the framed .panel cards below the sticky section header. */
  #adminContentCol{display:flex;flex-direction:column;gap:14px;grid-column:2;grid-row:3;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:2px}
  #adminContentCol>.panel{margin:0}
  #adminSectionHead{display:block;flex:none;position:sticky;top:0;z-index:5;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);padding:14px 16px 12px}
  #adminSectionHead h2{margin:0;font-size:18px;font-weight:800;line-height:1.3}
  #adminSectionHead p{margin:4px 0 0;font-size:13px}
  #adminSectionHead p:empty{display:none}
}
@media (min-width:1180px){
  #tab-admin:not(.hidden){width:min(1180px,100%)}
}
/* ---------- License panel (Round 20, worker C) — view-only ----------
   Rows of label/value pairs plus a red warning box when the license is
   near expiry (< 30 days). No editing controls exist on purpose. */
.lic-rows{display:grid;margin:6px 0 4px}
.lic-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:10px 2px;border-bottom:1px solid var(--line);font-size:14px}
.lic-row:last-child{border-bottom:0}
.lic-row>span:first-child{color:var(--muted);font-weight:600;flex:none}
.lic-row b{text-align:end;overflow-wrap:anywhere;font-weight:700}
.lic-status{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-weight:800}
.lic-status .ic{width:15px;height:15px}
.lic-warn{display:flex;gap:10px;align-items:flex-start;background:#FEF2F2;border:1px solid #FECACA;border-radius:14px;padding:12px 14px;margin:12px 0;color:#991B1B;font-size:14px;line-height:1.6}
.lic-warn .ic{width:19px;height:19px;flex:none;margin-top:2px}
.lic-warn b{display:block;font-size:14.5px}
html[data-mode="dark"] .lic-warn{background:#450A0A;border-color:#7F1D1D;color:#FECACA}
.lic-renew{margin:10px 0 0;font-size:13.5px;color:var(--ink-2);line-height:1.7}
.lic-renew a{color:var(--brand);font-weight:700;text-decoration:none}
.lic-renew .ic{width:15px;height:15px;vertical-align:-3px}
/* ---------- Rich-text editor (legal pages, Round 15 worker 4) ---------- */
.rte{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:6px 0 12px;background:var(--surface)}
.rte-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.rte-toolbar button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:5px 9px;font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;min-height:30px}
.rte-toolbar button:hover{border-color:var(--accent)}
.rte-toolbar button:focus-visible{outline:2px solid var(--hatch-widget-focus,var(--accent));outline-offset:1px}
.rte-linkrow{display:inline-flex;gap:4px;align-items:center}
.rte-linkinput{border:1px solid var(--line);border-radius:8px;padding:5px 8px;font-size:16px;min-width:170px;background:var(--surface);color:var(--ink)}
.rte-ed{min-height:96px;padding:10px 12px;font-size:16px;line-height:1.6;outline:none;overflow-wrap:anywhere}
.rte-ed:focus{box-shadow:inset 0 0 0 2px var(--accent)}
.rte-ed:empty::before{content:"";}
/* ---------- Guide section (Round 15 worker 4) ---------- */
.guide-entry{padding:12px 2px;border-bottom:1px solid var(--line)}
.guide-entry:last-child{border-bottom:none}
.guide-entry h3{font-size:16px;margin:0 0 4px;display:flex;align-items:center;gap:8px}
.guide-entry h3 .ic{width:18px;height:18px;flex:none}
.guide-entry p{margin:0;font-size:14.5px;line-height:1.6;color:var(--ink-2)}
.dash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
.dash-grid div{background:var(--surface-2);border-radius:14px;padding:12px;text-align:center;min-width:0}
.dash-grid strong{display:block;font-size:19px;font-family:var(--font-en);overflow-wrap:anywhere}
.dash-grid span{font-size:12px;color:var(--muted)}
.dash-chart{display:flex;align-items:flex-end;gap:2px;height:96px;padding:6px 2px 0}
.dash-chart .bar{flex:1;background:var(--accent);border-radius:3px 3px 0 0;min-height:2px;opacity:.85}
.dash-chart-labels{display:flex;gap:2px;font-size:10px;color:var(--muted)}
.dash-chart-labels span{flex:1;text-align:center;overflow:hidden;white-space:nowrap}
.dash-row{display:flex;justify-content:space-between;gap:8px;padding:8px 2px;border-bottom:1px solid var(--line);font-size:14px}
.dash-row span:first-child{min-width:0;overflow-wrap:anywhere}
.dash-row span:last-child{flex:none;text-align:end}
/* ---------- Round 26 workstream C/D: dashboard polish + Settings column ----------
   Polish, not rearrangement: same sections in the same order, prettier and
   easier to work with — icons + hover on the stat cards, a pending banner,
   quick-action buttons, hover on every dash row, severity colours on the
   low-stock rows, compact status selects on recent orders. The Settings
   column stacks below the main column on mobile/tablet and sits in a
   right column at desktop widths (>=1024px). */
.dash-main h3{margin:18px 0 6px}
.dash-stat{border:1px solid transparent;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.dash-grid .dash-stat:hover{transform:translateY(-2px);border-color:var(--brand);box-shadow:var(--shadow-sm)}
.dash-stat-ic{display:block;color:var(--brand);margin-bottom:4px}
.dash-stat-ic .ic{width:20px;height:20px}
.dash-pending{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:4px 0 0;font-size:14px}
.dash-pending .ic{color:var(--gold);flex:none}
.dash-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:14px 0 4px}
.dash-qa{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 10px;font-size:14px;min-height:44px}
.dash-qa .ic{flex:none;color:#fff}
.dash-row{transition:background-color .15s ease}
.dash-row:hover{background:var(--surface-2)}
.dash-low .ic{vertical-align:-3px;color:var(--gold)}
.dash-low-out b{color:var(--red)}
.dash-low-warn b{color:var(--gold)}
.dash-recent{align-items:center}
.dash-recent .status-select{max-width:170px;padding:6px 8px;font-size:13.5px}
.dash-recent .mini{color:var(--muted)}
.dash-layout{display:block}
.dash-side{margin-top:20px;border-top:1px solid var(--line);padding-top:6px}
.dash-side h3{margin:14px 0 4px}
.dash-side h4{margin:18px 0 6px;font-size:15px}
.dash-side .mode-seg{margin-top:6px}
.dash-theme-cards{grid-template-columns:repeat(2,1fr)}
.dash-theme-cards .theme-card p{display:none}
.dash-lang-seg{display:flex;gap:8px;margin-top:6px}
.dash-lang-btn.active{background:var(--ink);color:var(--bg);border-color:transparent}
.dash-staff-row{padding:10px 2px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.6}
.dash-staff-row:last-child{border-bottom:0}
.dash-staff-row .mini{color:var(--muted)}
.dash-staff-row .ic{vertical-align:-2px}
#dashStaffBlock .btn{margin-top:10px}
#dashOwnerFields input:disabled{opacity:.65}
@media (min-width:1024px){
  .dash-layout{display:grid;grid-template-columns:minmax(0,1fr) 264px;gap:18px;align-items:start}
  .dash-side{margin-top:0;border-top:0;padding-top:0;position:sticky;top:8px}
  .dash-layout .dash-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1180px){
  .dash-layout{grid-template-columns:minmax(0,1fr) 300px}
  .dash-layout .dash-grid{grid-template-columns:repeat(3,1fr)}
}
.table-wrap{overflow-x:auto;margin:8px 0}
.table-wrap table{width:100%;border-collapse:collapse;font-size:13px;min-width:430px}
.table-wrap th,.table-wrap td{padding:7px 6px;border-bottom:1px solid var(--line);text-align:start;white-space:nowrap}
.table-wrap th{color:var(--muted);font-weight:700}

/* ---------- Promo popup modal (2026-11-15) ---------- */
.promo-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;z-index:100;padding:16px;box-sizing:border-box}
.promo-modal{position:relative;width:min(420px,100%);max-height:85vh;overflow-y:auto;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:20px;box-sizing:border-box;box-shadow:var(--shadow);text-align:center}
.promo-modal h2{margin:4px 0 8px;font-size:20px;padding-inline-end:36px;box-sizing:border-box}
.promo-modal p{margin:0 0 12px;color:var(--ink-2);line-height:1.6}
.promo-img{width:100%;max-height:220px;object-fit:cover;border-radius:14px;margin-bottom:12px;display:block}
.promo-close{position:absolute;top:10px;inset-inline-end:10px;width:32px;height:32px;border-radius:50%;border:0;background:var(--surface-2);color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
.promo-code-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;background:var(--surface-2);border:1px dashed var(--line);border-radius:12px;padding:10px;margin:4px 0 14px}
.promo-code-row code{font-size:17px;font-weight:700;letter-spacing:1px}
/* ---------- Mail server setup guide (CMS, round 10) ---------- */
.mail-rec{border:1px solid var(--line);border-radius:12px;padding:12px;margin:10px 0;background:var(--surface-2)}
.mail-rec-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:6px}
.mail-type{font-weight:800;font-size:12px;background:var(--brand);color:#fff;border-radius:6px;padding:2px 8px}
.mail-name{font-size:14px;font-weight:700}
.mail-val{display:block;font-size:12px;overflow-wrap:anywhere;word-break:break-all;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px;margin:6px 0}
.mail-flag{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 8px}
.mail-flag-warn{display:inline-flex;align-items:center;gap:4px;color:#92400E;border-color:#F59E0B;background:#FFFBEB}
html[data-mode="dark"] .mail-flag-warn{color:#FBBF24;border-color:#92400E;background:#451A03}
.mail-cmd{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:6px 0}
.mail-cmd code{font-size:12px;overflow-wrap:anywhere;word-break:break-all}
.mail-acct{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid var(--line)}
.mail-acct:last-of-type{border-bottom:0}
/* Round 29 workstream B: numbered Gmail steps + the no-copy warning in
   the forwarding form. Long hostnames/addresses wrap anywhere so the
   390px panel never overflows. */
.mail-steps{margin:8px 0;padding-inline-start:22px}
.mail-steps li{margin:6px 0;overflow-wrap:anywhere;word-break:break-word}
.mail-fwd-warn{color:var(--red)}
.mail-line{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:5px 0}
.mail-line code{font-size:13px;overflow-wrap:anywhere;word-break:break-all}
.promo-code-label{font-size:12px;color:var(--muted)}
.promo-ok-btn{width:100%}
/* ---------- User management (admin dashboard) ---------- */
.user-row:hover{background:var(--surface-2)}
.user-detail{margin:12px 0}
.user-detail .badge{font-size:12px}
#userSearch{width:100%;box-sizing:border-box;margin:8px 0}
#dashAnalytics h3{margin-top:18px}

/* ============================================================
   DISH PAGES, SUGGESTIONS, OFFERS (2026-11-15) */
.dish-page{margin:12px 0}
.dish-gallery{position:relative;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:var(--radius);scrollbar-width:none}
.dish-gallery::-webkit-scrollbar{display:none}
.dish-gallery img{flex:0 0 100%;width:100%;height:260px;object-fit:cover;border-radius:var(--radius);scroll-snap-align:start;background:var(--surface-2)}
.dish-gallery-count{position:absolute;top:10px;inset-inline-end:10px;background:rgba(0,0,0,.55);color:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:700}
/* Dish gallery thumbnails (round 5): tap to switch the swipeable gallery */
.dish-thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto;scrollbar-width:none}
.dish-thumbs::-webkit-scrollbar{display:none}
.dish-thumb{flex:0 0 64px;width:64px;height:48px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:var(--surface-2);cursor:pointer}
.dish-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dish-thumb.active{border-color:var(--brand)}
/* CMS gallery thumbnails (round 5) */
.gallery-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.gallery-thumb{position:relative;display:inline-block;width:96px;height:72px;border-radius:10px;overflow:hidden;background:var(--surface-2)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-thumb-x{position:absolute;top:2px;inset-inline-end:2px;width:22px;height:22px;padding:0;border:none;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.gallery-thumb-x .ic{width:14px;height:14px}
.dish-head{padding:14px 2px 0;display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.dish-head h2{margin:0;font-size:22px;font-weight:800;line-height:1.35}
.dish-head .desc{margin:0;color:var(--muted);font-size:14px;line-height:1.7}
.offer-badge{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;font-weight:800;color:#92400E;background:linear-gradient(135deg,#FEF3C7,#FDE68A);border-radius:999px;padding:4px 11px}
html[data-mode="dark"] .offer-badge{color:#FDE68A;background:#451A03}
.dish-section{margin-top:18px}
.dish-section h3{margin:0 0 8px;font-size:15.5px;font-weight:800}
.dish-section p{margin:4px 0;color:var(--ink-2);font-size:14px;line-height:1.7}
.ing-chips{display:flex;flex-wrap:wrap;gap:6px}
.ing-chip{background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:13px}
.dish-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.dish-facts div{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.dish-facts strong{display:block;font-size:15px;font-family:var(--font-en)}
.dish-facts span{font-size:12px;color:var(--muted)}
.dish-buy{margin-top:20px;display:grid;gap:10px}
.dish-buy .qty{justify-content:center}
.dish-buy .btn.big{margin-top:0}
.call-box{background:var(--surface-2);border:1px dashed var(--line);border-radius:16px;padding:14px;margin-top:10px;display:grid;gap:8px}
.call-box p{margin:0}
.sugg-title{margin:18px 0 8px;font-size:16px;font-weight:800}
.sugg-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory;scrollbar-width:none}
.sugg-strip::-webkit-scrollbar{display:none}
.sugg-card{flex:0 0 168px;scroll-snap-align:start;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden;cursor:pointer;box-shadow:var(--shadow-sm)}
.sugg-card img{width:100%;height:96px;object-fit:cover;display:block;background:var(--surface-2)}
.sugg-body{padding:10px;display:grid;gap:4px}
.sugg-body b{font-size:13.5px;line-height:1.4}
.sugg-body .price{font-size:14px}
.sugg-add{padding:8px 10px;font-size:13px;width:100%}
.offers-box{background:var(--green-bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:12px 0;font-size:14px;display:grid;gap:4px}
.offers-box .fineprint{margin:4px 0 0}
.offer-free-row{display:flex;justify-content:space-between;gap:8px;font-size:13.5px}
.offer-free-row b{color:var(--green);white-space:nowrap}
@media (max-width:380px){ .sugg-card{flex-basis:150px} .dish-gallery img{height:220px} }

/* ---------- Inline SVG icons (2026-11-15) ----------
   .ic inherits currentColor; sizes below keep the measured bottom stack
   (tabs 73px, raised cart top 87px, cart bar bottom:128px) — tab icons
   are 22px (raised cart circle 56px),
   the same visual height as the emoji they replace. */
.ic{width:20px;height:20px;flex:none;vertical-align:-4px}
.tab-ic .ic{width:22px;height:22px}
.search-ic .ic{width:18px;height:18px}
.clear-btn{display:inline-flex;align-items:center;justify-content:center}
.clear-btn .ic{width:14px;height:14px}
.btn .ic{width:17px;height:17px;vertical-align:-3px}
.seg button .ic{width:18px;height:18px;vertical-align:-3px}
.mode-seg .ic{width:16px;height:16px;vertical-align:-3px}
.qty button{display:inline-flex;align-items:center;justify-content:center}
.qty button .ic{width:15px;height:15px}
.msg .ic{width:16px;height:16px;vertical-align:-3px;margin-inline-end:2px}
.msg-ok{color:var(--green)}
.msg-err{color:var(--red)}
.msg-warn,.msg-demo{color:#92400E}
html[data-mode="dark"] .msg-warn,html[data-mode="dark"] .msg-demo{color:#FBBF24}
.msg-lock,.msg-info{color:var(--ink-2)}
.field-err .ic{width:14px;height:14px;vertical-align:-2px}
.track-dot .ic{width:14px;height:14px}
.feat-badge .ic,.offer-badge .ic{width:13px;height:13px;vertical-align:-2px}
.loyalty-chip{display:inline-flex;align-items:center;gap:5px}
.loyalty-chip .ic{width:13px;height:13px}
.dish-gallery-count{display:inline-flex;align-items:center;gap:4px}
.dish-gallery-count .ic{width:13px;height:13px}
.unlock-banner .ic,.offers-box .ic{width:17px;height:17px;vertical-align:-3px}
.notice .ic{width:16px;height:16px;vertical-align:-3px}
.hero-chevron .ic{width:11px;height:11px}
.user-row .ic{width:16px;height:16px;vertical-align:-3px}
.promo-close{display:flex;align-items:center;justify-content:center}
.promo-close .ic{width:16px;height:16px}
.rule-row .ic,.admin-item .ic{width:16px;height:16px;vertical-align:-3px}
.admin-item .btn .ic{width:15px;height:15px}
.closed-banner .ic{width:17px;height:17px;vertical-align:-3px}

/* ============================================================
   WAVE 2 (2026-11-15) — cart badge on the icon, EN header one row,
   footer rebuild, contact / working-hours / admin messages. */

/* ---------- Cart badge ON the cart icon (2026-11-15 wave 2) ----------
   Small red circle overlapping the top inline-end corner of the cart icon,
   like a shop badge. The badge span now lives INSIDE .tab-ic (index.html),
   so it is positioned against the icon, not the tab label. :empty keeps it
   hidden when the cart is empty — the explicit :empty rule below must stay
   AFTER the positioning rule (higher specificity wins over display). */
.tabs button[data-tab="cart"] .tab-ic{position:relative}
.tabs button[data-tab="cart"] .tab-ic .count-badge{position:absolute;top:-8px;inset-inline-end:-12px;min-width:19px;height:19px;padding:0 5px;background:#DC2626;color:#fff;border:2px solid var(--surface);border-radius:999px;font-size:11px;font-weight:800;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.tabs button[data-tab="cart"] .tab-ic .count-badge:empty{display:none}

/* ---------- EN header fits on one row at 390px (2026-11-15 wave 2) ----------
   The EN header was 130px tall (vs 78px FA): "Persian catering · London,
   Ontario" + the language toggle wrapped the topbar onto a second row.
   EN-only fix — never wrap the topbar, let the brand text shrink, tighten
   the language buttons at phone widths. FA layout is untouched. */
html[lang="en"] .topbar{flex-wrap:nowrap}
html[lang="en"] .brand-text{min-width:0;flex:1 1 auto}
@media (max-width:640px){
  html[lang="en"] .site-header{padding-left:12px;padding-right:12px}
  html[lang="en"] .lang-btn{padding:7px 8px;font-size:12px}
  html[lang="en"] .brand-sub{font-size:11.5px;letter-spacing:0}
}

/* ---------- Footer rebuild — categorized columns (2026-11-15 wave 2) ----------
   Brand + tagline | Contact | Working hours | Explore | Legal — 5 columns
   (the Explore column was deleted 2026-11-15 as a nav duplicate, then
   re-added in round 11, 2026-11-26, on the footer rule: every main area
   must be reachable from the footer). The footer is a normal in-flow
   block (position:static, set in the 2026-11-12 redesign rules above)
   reached by scrolling; main needs only 24px bottom padding. The Legal
   column keeps class .foot-links so cookie-consent.js can append its
   "Cookie settings" link there. */
.foot-inner{max-width:920px;margin:0 auto;display:grid;gap:24px 20px;grid-template-columns:1fr}
.foot-col{display:flex;flex-direction:column;gap:8px;align-items:flex-start;min-width:0}
.foot-col h3{margin:0 0 2px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--ink)}
.foot-col b{font-size:16px;color:var(--ink)}
.foot-brand p{margin:0}
.foot-links,.foot-nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:8px;align-items:flex-start}
.foot-links a,.foot-nav a{color:var(--ink-2);text-decoration:none;font-weight:600;font-size:13.5px}
.foot-links a:hover,.foot-nav a:hover{color:var(--brand)}
.foot-contact-list{display:grid;gap:6px}
.foot-contact-list a{color:var(--ink-2);text-decoration:none;font-weight:600;font-size:13.5px;display:inline-flex;align-items:center;gap:6px;overflow-wrap:anywhere}
.foot-contact-list a:hover{color:var(--brand)}
.foot-contact-list .ic{width:15px;height:15px}
.foot-contact-btn{margin-top:4px}
.foot-hours-list{display:grid;gap:3px;font-size:13px}
.foot-hours-row{display:flex;justify-content:space-between;gap:14px}
.foot-hours-row b{font-weight:600}
.foot-hours-row .closed{color:var(--muted);font-weight:600}
.foot-dev{font-size:12px;line-height:1.6;color:var(--muted);text-align:center}
.foot-dev a{color:var(--brand);font-weight:600;text-decoration:none;direction:ltr;unicode-bidi:embed}
.foot-note{margin:0;font-size:12px}
@media (min-width:640px){
  .foot-inner{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1 / -1}
  .foot-dev{grid-column:1 / -1}
  .foot-note{grid-column:1 / -1}
}
@media (min-width:1024px){
  /* Round 20 (worker C) — desktop footer rebuild. Baseline at 1280/1440:
     .foot-inner was capped at 920px while main is 1180px, so the footer
     sat as a narrow strip with ~180–260px of dead margin on each side,
     and the five columns (206/158/174/158/143px) were cramped — the
     contact email filled its column edge to edge and "09:00–20:00"
     wrapped mid-time. Desktop now matches main's width (920px below the
     1180px viewport, 1180px above) with rebalanced columns, a wider gap,
     roomier top padding, no-wrap hours times, and the bottom lines
     centred like the "Built with love" line. Mobile/tablet rules above
     are untouched. */
  footer{padding:36px 24px calc(136px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
  .foot-inner{grid-template-columns:1.35fr 1fr 1.05fr .85fr .85fr;gap:28px}
  .foot-brand{grid-column:auto}
  .foot-col h3{margin-bottom:6px}
  .foot-brand p{max-width:34ch;line-height:1.65}
  .foot-hours-row b{white-space:nowrap}
  .foot-copy{grid-column:1 / -1;text-align:center}
  .foot-note{text-align:center}
}
@media (min-width:1180px){
  .foot-inner{max-width:1180px}
}
/* The floating cart bar (bottom:128px + ~65px tall) sits above the tab bar;
   while it is visible the footer needs 208px bottom padding so its last
   line clears the bar's top edge (193px) by 15px. */
body.has-cart-bar footer{padding-bottom:calc(208px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}

/* ---------- Admin contact inbox (2026-11-15 wave 2) ---------- */
.contact-msg{border:1px solid var(--line);border-radius:14px;padding:12px;margin:10px 0;background:var(--surface-2)}
.contact-msg.unread{background:var(--gold-soft);border-color:var(--gold)}
.contact-msg p{margin:6px 0;white-space:pre-wrap}
.contact-msg .row{justify-content:flex-start}

/* ---------- Favorites + Home + copyright (2026-11-15) ---------- */
.card{position:relative}
.fav-btn{position:absolute;top:10px;inset-inline-end:10px;z-index:2;width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:color-mix(in srgb,var(--surface) 88%,transparent);color:var(--ink-2);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
.fav-btn .ic{width:20px;height:20px}
.fav-btn.active{color:var(--red);border-color:var(--red);background:var(--red-bg)}
.dish-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dish-title-row h2{margin:0}
.dish-title-row .fav-btn{position:static;flex:none}
.home-cats{flex-wrap:wrap}
.offer-row{display:flex;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:600}
.offer-row:last-child{border-bottom:0}
.offer-row .ic{width:17px;height:17px;color:var(--brand);flex:none}
.foot-copy{margin:0;font-size:12px;text-align:center;grid-column:1 / -1}

/* ---------- Clear cart (Round 6, 2026-11-16) ---------- */
.clear-cart-btn{display:flex;width:fit-content;margin-block:2px 10px;margin-inline-start:auto;align-items:center;gap:6px;padding:7px 12px;font-size:13.5px;border-radius:999px}
.clear-cart-btn .ic{width:15px;height:15px}
.clear-cart-actions{display:flex;gap:10px;margin-top:6px}
.clear-cart-actions .btn{flex:1}

/* Round 7: cart lines — thumbnail + grouped headings. Headings reuse
   the category dot + count chip language of the strip tabs. */
.cart-line{display:flex;gap:12px;align-items:flex-start}
.cart-thumb{width:56px;height:56px;object-fit:cover;border-radius:12px;flex:0 0 auto;background:var(--surface)}
.cart-line-body{flex:1;min-width:0}
.cart-line-body .row{padding-top:6px}
.cart-line-body .row:first-child{padding-top:0;flex-wrap:nowrap}
.cart-line-body .row:first-child span:first-child{flex:1;min-width:0}
.cart-line-body .row .qty{flex:0 0 auto;margin-inline-start:auto}
.cart-cat-head{display:flex;align-items:center;gap:8px;margin:18px 0 2px;font-size:15px;font-weight:700}
.cart-cat-head:first-child{margin-top:0}
.cart-cat-subhead{display:flex;align-items:center;gap:8px;margin:12px 0 2px 12px;font-size:14px;font-weight:700}
.cart-cat-head .cat-dot,.cart-cat-subhead .cat-dot{width:10px;height:10px;border-radius:50%;flex:none}
.cart-cat-head .cat-group-count,.cart-cat-subhead .cat-group-count{flex:none;font-size:12px;font-weight:600;color:var(--ink-2);background:var(--chip-bg,#00000010);border-radius:999px;padding:2px 8px}
/* ---------- Round 9 (2026-11-22, worker A): category strip + restaurant-menu table ----------
   Replaces the collapsed accordion in the Menu Today / Full lists, the
   Menu calendar day-list and the Home calendar day-list. The strip is a
   centred, horizontally scrollable row of pill tabs (one per category
   with dishes, CMS order, sub-categories indented); the table below it
   is a centred restaurant menu (max-width 760px on tablet/desktop,
   full-width on phone): round thumbnail, name + dotted leader + price,
   short description, stepper. The strip-wrap is sticky within its
   section so the tabs stay on top while the table scrolls. The fade at
   the scroll edge comes from .menu-strip--scrollable (toggled by
   syncMenuStripFade() only when the strip actually overflows, so a
   short strip is never faded). prefers-reduced-motion kills the tab
   transition (global rule + explicit rule below). */
.menu-strip-block{margin:2px 0 8px}
.menu-strip-wrap{position:sticky;top:var(--strip-top,118px);z-index:15;padding:6px 0;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px)}
.menu-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;width:fit-content;max-width:100%;margin-inline:auto;padding:2px}
.menu-strip::-webkit-scrollbar{display:none}
.menu-strip--scrollable{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 20px,#000 calc(100% - 20px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 20px,#000 calc(100% - 20px),transparent 100%)}
.menu-strip-tab{flex:none;display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink-2);font:inherit;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.menu-strip-tab .cat-dot{width:9px;height:9px;border-radius:50%;flex:none}
.menu-strip-tab .cat-group-count{flex:none;font-size:12px;font-weight:600;color:var(--ink-2);background:var(--chip-bg,#00000010);border-radius:999px;padding:2px 8px}
.menu-strip-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
.menu-strip-tab.active .cat-group-count{background:#ffffff2e;color:#fff}
.menu-strip-tab.menu-strip-sub{padding-inline-start:22px;font-size:13.5px}
.menu-strip-tab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.menu-table{max-width:760px;margin:0 auto}
/* Round 18 (2026-11-27, worker A): day-list category tabs — a WRAPPED,
   CENTRED tab strip (not the main menu's horizontal-scroll strip): all
   tabs are visible at a glance, 4–5 per row on desktop, wrapping to a
   second row as needed, centred, never overflowing the box. Tabs reuse
   .menu-strip-tab (same pill, dot + count chip, active = brand fill);
   the wrap is sticky within its section like the main menu's strip.
   Sub-category tabs indent slightly. The table below is the shared
   .menu-table. prefers-reduced-motion kills the tab transition (global
   rule + explicit rule below).
   ROUND 21 (2026-11-27, worker A) — SUPERSEDED, see below: Pooriya's
   phone screenshot (dark, EN, Menu tab, Nov 27) showed the wrap failing
   at 390px: 7 pills wrapped into 4 ragged rows (2/2/2/1, a lone
   "Products 2" pill on its own row), ~250px of strip before any dish,
   and the sticky wrap's 92%-opaque --bg background read as a solid
   black slab inside the lighter panel in dark mode. The wrap was the
   wrong call at phone width — the main menu's single-row horizontal
   scroll strip (Round 9) is the pattern Pooriya already likes, so the
   day strip now uses exactly that: one scrollable row, no wrap, no
   sticky slab. The fade + keep-active-in-view pass (syncMenuStripFade)
   now covers .day-strip too. Behaviour unchanged: same pills, same
   order, same default tab (Main course), same per-view selection.
   ROUND 23 (2026-11-27, worker 2) — STICKY RESTORED: the static wrap
   was the root cause of Pooriya's report (FA dark, Menu day view:
   scrolled down, the strip was gone). The wrap is sticky again with
   the SAME single-row strip and the SAME translucent treatment as the
   main menu strip — no wrapped rows, no opaque slab. The sticky top
   tracks the real header height via --strip-top (set by
   syncStripTop() in app.js; the old fixed 118px left a gap under the
   short header and tucked the strip under the tall FA header at 390px
   — measured EN 87px / FA 130px at 390px, 78px at 768/1280). */
.day-strip-block{margin:2px 0 8px}
.day-strip-wrap{position:sticky;top:var(--strip-top,118px);z-index:15;padding:6px 0;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(10px)}
.day-strip{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;overflow-x:auto;scrollbar-width:none;width:fit-content;max-width:100%;margin-inline:auto;padding:2px}
.day-strip::-webkit-scrollbar{display:none}
.day-strip--scrollable{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 20px,#000 calc(100% - 20px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 20px,#000 calc(100% - 20px),transparent 100%)}
.day-strip-tab{flex:none;min-width:0}
.day-strip-tab.menu-strip-sub{padding-inline-start:22px;font-size:13.5px}
/* Round 23 (Worker 2): swipe hint on the horizontal strips — the edge
   fade alone did not tell users more categories hide off-screen. A
   small chevron pins to the edge with hidden content (inline-end by
   default; inline-start once the strip is scrolled to its end) and
   scrolls the strip on tap. Decorative: aria-hidden + tabindex -1 in
   JS, so no new user-facing strings. The wrap is already positioned
   (sticky), so the chevron anchors to it; the base icon points right
   (chevron-right), flipped for RTL and for the --prev state. */
.strip-hint{position:absolute;top:50%;inset-inline-end:2px;transform:translateY(-50%);z-index:2;width:28px;height:28px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--ink-2);display:none;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--shadow-sm);padding:0}
.strip-hint.show{display:inline-flex}
.strip-hint--prev{inset-inline-end:auto;inset-inline-start:2px}
.strip-hint svg{width:16px;height:16px;flex:none}
html[dir="rtl"] .strip-hint svg{transform:scaleX(-1)}
.strip-hint--prev svg{transform:scaleX(-1)}
html[dir="rtl"] .strip-hint--prev svg{transform:none}
/* Round 17 (worker D): the theme picker lives at the very BOTTOM of My
   Profile now, as the last section, and compact — six small swatch cards
   (no per-theme description), tighter spacing. Same markup/JS
   (renderThemePicker), only the presentation shrinks. */
.theme-panel--bottom .theme-cards{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.theme-panel--bottom .theme-card{padding:8px 10px}
.theme-panel--bottom .theme-card .swatches i{width:18px;height:18px}
.theme-panel--bottom .theme-card b{font-size:12.5px;margin:4px 0 0}
.theme-panel--bottom .theme-card p{display:none}
.theme-panel--bottom .mode-seg{margin-top:10px}
@media (min-width:768px){
  .theme-panel--bottom .theme-cards{grid-template-columns:repeat(6,1fr)}
}
.menu-table-row{display:flex;align-items:flex-start;gap:10px;padding:13px 2px;border-bottom:1px solid var(--line)}
.menu-table-row:last-child{border-bottom:0}
.menu-table-main{flex:1;min-width:0;display:flex;gap:12px;align-items:flex-start;padding:0;background:transparent;border:0;cursor:pointer;font:inherit;color:var(--ink);text-align:start}
.menu-table-thumb{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:0 0 auto;background:var(--surface-2)}
.menu-table-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding-top:2px}
.menu-table-name-row{display:flex;align-items:flex-end;gap:8px}
.menu-table-name{font-weight:800;font-size:15.5px;line-height:1.35}
.menu-table-leader{flex:1;min-width:16px;border-bottom:2px dotted var(--muted);opacity:.55;transform:translateY(-4px)}
.menu-table-price{font-weight:800;font-size:15px;white-space:nowrap}
/* Round 26: supermarket unit ("500g", "1L", "pack") next to the price. */
.menu-table-unit{font-weight:600;font-size:12px;color:var(--ink-2);white-space:nowrap}
.menu-table-desc{color:var(--muted);font-size:13.5px;line-height:1.5}
.menu-table-row .tag-badges{margin-top:1px}
.menu-table-note{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12.5px;font-weight:600;color:var(--ink-2)}
.menu-table-note .ic{flex:0 0 auto}
.menu-table-note.muted{color:var(--muted)}
.menu-table-line-total b{font-weight:800}
.menu-table-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.menu-table-fav{position:static;flex:none;width:30px;height:30px}
.menu-table-fav .ic{width:17px;height:17px}
.menu-table-qty .btn{padding:8px 12px;font-size:13px}
.menu-table-qty .qty button{width:28px;height:28px}
@media (min-width:768px){
  .menu-table-thumb{width:64px;height:64px}
  .menu-table-name{font-size:17px}
  .menu-table-price{font-size:16px}
  .menu-table-row{padding:15px 4px}
}
@media (prefers-reduced-motion:reduce){
  .menu-strip-tab{transition:none}
}

/* ---------- Dish of the Day hero + Special Offer cards (Round 6, 2026-11-16) ----------
   Big hero at the very top of Home (photo, badge, name, price, cooking
   days, Order / Pre-order) and prominent offer cards. Theme-aware via
   the --surface/--line/--ink/--brand variables, so all 6 themes x
   light/dark work without per-theme rules. The badge uses a gentle
   float animation; prefers-reduced-motion disables it (global rule). */
.dod-hero{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);margin:4px 0 18px}
.dod-photo{position:relative;aspect-ratio:3/2;overflow:hidden;background:var(--surface-2)}
.dod-photo img{width:100%;height:100%;object-fit:cover;display:block}
.dod-badge{position:absolute;top:12px;inset-inline-start:12px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:var(--brand);color:#fff;font-size:13px;font-weight:800;box-shadow:var(--shadow-sm)}
.dod-badge .ic{width:15px;height:15px}
.dod-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px}
.dod-body h2{margin:0;font-size:22px;font-weight:800;line-height:1.3}
.dod-desc{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.dod-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dod-days{display:inline-flex;align-items:center;gap:6px;color:var(--ink-2);font-size:13px;font-weight:600}
.dod-days .ic{width:16px;height:16px;color:var(--brand)}
.dod-note{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;border-radius:10px;background:var(--gold-soft);color:var(--ink-2);font-size:13px;font-weight:600}
.dod-note .ic{width:16px;height:16px;flex:none;color:var(--brand)}
.dod-hero .row{margin-top:2px}
@media (min-width:768px){
  .dod-hero{display:grid;grid-template-columns:1.15fr 1fr}
  .dod-photo{aspect-ratio:auto;min-height:280px}
  .dod-body{padding:22px 24px;justify-content:center}
  .dod-body h2{font-size:26px}
}
/* Special Offer cards on Home (replaces the old one-line offer rows). */
#homeOffers{display:flex;flex-direction:column;gap:12px;margin-bottom:6px}
.offer-card{background:var(--surface);border:1px solid var(--line);border-inline-start:4px solid var(--brand);border-radius:var(--radius-sm);padding:14px 16px;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;gap:6px}
.offer-card-badge{display:inline-flex;align-items:center;gap:6px;color:var(--brand);font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.offer-card-badge .ic{width:15px;height:15px}
.offer-card h3{margin:0;font-size:17px;font-weight:800;line-height:1.4}
.offer-card-line{margin:0;font-size:14px;line-height:1.5}
.offer-card .muted{margin:0}
.offer-free-tag{display:inline-block;padding:1px 8px;border-radius:999px;background:var(--green-bg);color:var(--green);font-size:12px;font-weight:800}
/* CMS: one row per free dish (dish select + qty + remove). */
.free-item-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.free-item-row .oFreeDishSel{flex:1;min-width:0}
.free-item-row .oFreeQty{width:76px;flex:none}
.free-item-row .btn{flex:none}
#dishOfDaySelect{flex:1;min-width:0}
/* ---- Visual floor plan / table map (round 8, restaurant mode only) ----
   Positions are % of the canvas, so one layout renders at any width.
   The canvas keeps a 4:3 ratio; tables are buttons (keyboard-focusable,
   aria-pressed for the picker). Dragging is pointer-based in app.js;
   only the table itself opts out of touch scrolling, so the page still
   scrolls from empty canvas space. */
.floor-plan{position:relative;width:100%;aspect-ratio:4/3;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;touch-action:pan-y;margin:8px 0}
.fp-table{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;border:2px solid var(--brand);background:var(--surface);color:var(--ink);border-radius:50%;cursor:pointer;font:inherit;min-width:0;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.fp-table.fp-square{border-radius:12px}
.fp-table.fp-selected{outline:3px solid var(--brand);outline-offset:2px;background:var(--gold-soft)}
.fp-table .fp-label{font-weight:800;font-size:12px;line-height:1.15;text-align:center;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:break-word}
.fp-table .fp-seats{font-size:11px;color:var(--muted);white-space:nowrap}
.fp-resize{position:absolute;right:1px;bottom:1px;width:16px;height:16px;border-radius:4px;background:var(--brand);cursor:nwse-resize;touch-action:none}
.fp-editor .fp-table{cursor:grab}
.fp-editor .fp-table.fp-dragging{cursor:grabbing;opacity:.85;z-index:2}
@media (prefers-reduced-motion:no-preference){
  .fp-table{transition:box-shadow .15s ease,background-color .15s ease}
}

/* ---------- Round 14 (2026-11-27, worker 3) — livelier, still calm ----------
   One delimited block, nothing gaudy, nothing that slows ordering:
   (1) staggered entrances on menu/home grids + menu-table rows + offer/
       event cards (max ~360ms, so the list is fully in almost at once);
   (2) the hero collapses/expands smoothly now (max-height + opacity +
       padding — Round 8 claimed a smooth expand/collapse, but the code
       only toggled .hidden instantly; this is the real one);
   (3) a table-shaped skeleton row (.skel-row) so the loading shimmer
       matches the Round 9 menu-table instead of the old card skeletons;
   (4) smooth scrolling inside the calendar strip / category strip /
       featured strip (the strip's own scrollIntoView calls keep their
       explicit behavior, so the 2026-11-15 page-jump fix is untouched);
   (5) a gentle entrance for the hero banner + Dish of the Day hero.
   The global prefers-reduced-motion rule above already kills every
   animation/transition; the block below only adds what that rule does
   NOT cover (scroll-behavior) plus explicit belt-and-braces. */
@keyframes heroIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.hero{animation:heroIn .5s ease backwards;transition:padding .35s ease}
.dod-hero{animation:heroIn .45s ease backwards}
/* Hero collapse: smooth instead of the instant .hidden toggle. The JS
   (setHeroCollapsed) no longer hides #heroMain — .hero.collapsed drives
   it. r14-noanim suppresses the transition on first paint, so a repeat
   visit never animates shut on load. */
#heroMain{overflow:hidden;max-height:480px;opacity:1;transition:max-height .35s ease,opacity .3s ease,visibility 0s linear 0s}
.hero.collapsed #heroMain{max-height:0;opacity:0;visibility:hidden;transition:max-height .35s ease,opacity .3s ease,visibility 0s linear .35s}
.hero.r14-noanim #heroMain,.hero.r14-noanim{transition:none!important}
.hero-collapsed-line:not(.hidden){animation:fadeIn .25s ease}
/* Staggered entrances. .card already fades up on render; the delay is
   the only addition. Rows/cards past the 10th share the cap delay. */
.grid .card:nth-child(1),.featured-strip .card:nth-child(1),.menu-table-row:nth-child(1),.offer-card:nth-child(1),.events-card:nth-child(1){animation-delay:0ms}
.grid .card:nth-child(2),.featured-strip .card:nth-child(2),.menu-table-row:nth-child(2),.offer-card:nth-child(2),.events-card:nth-child(2){animation-delay:40ms}
.grid .card:nth-child(3),.featured-strip .card:nth-child(3),.menu-table-row:nth-child(3),.offer-card:nth-child(3),.events-card:nth-child(3){animation-delay:80ms}
.grid .card:nth-child(4),.featured-strip .card:nth-child(4),.menu-table-row:nth-child(4),.offer-card:nth-child(4),.events-card:nth-child(4){animation-delay:120ms}
.grid .card:nth-child(5),.featured-strip .card:nth-child(5),.menu-table-row:nth-child(5),.offer-card:nth-child(5),.events-card:nth-child(5){animation-delay:160ms}
.grid .card:nth-child(6),.featured-strip .card:nth-child(6),.menu-table-row:nth-child(6),.offer-card:nth-child(6),.events-card:nth-child(6){animation-delay:200ms}
.grid .card:nth-child(7),.featured-strip .card:nth-child(7),.menu-table-row:nth-child(7),.offer-card:nth-child(7),.events-card:nth-child(7){animation-delay:240ms}
.grid .card:nth-child(8),.featured-strip .card:nth-child(8),.menu-table-row:nth-child(8),.offer-card:nth-child(8),.events-card:nth-child(8){animation-delay:280ms}
.grid .card:nth-child(9),.featured-strip .card:nth-child(9),.menu-table-row:nth-child(9),.offer-card:nth-child(9),.events-card:nth-child(9){animation-delay:320ms}
.grid .card:nth-child(n+10),.featured-strip .card:nth-child(n+10),.menu-table-row:nth-child(n+10),.offer-card:nth-child(n+10),.events-card:nth-child(n+10){animation-delay:360ms}
.menu-table-row{animation:fadeUp .3s ease backwards}
.offer-card,.events-card{animation:fadeUp .3s ease backwards}
/* Table-shaped skeleton: same shimmer as .skel, shaped like a
   menu-table row (round thumb + two text lines). Spans the full width
   even inside the 2-column .grid skeleton container. */
.skel-row{grid-column:1/-1;display:flex;gap:12px;align-items:flex-start;padding:13px 2px;border-bottom:1px solid var(--line)}
.skel-row .skel-thumb{width:56px;height:56px;border-radius:50%;flex:none}
.skel-row .skel-lines{flex:1;min-width:0;padding-top:6px}
.skel-row .skel-line{height:14px;margin:0 0 10px;border-radius:7px}
.skel-row .skel-line.short{width:55%}
/* Smooth scrolling inside the horizontal strips (user swipes + the
   active-tab/day re-seat). Explicit scrollIntoView calls keep their own
   behavior and are unaffected. */
.cal-grid,.menu-strip,.day-strip,.featured-strip{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html,.cal-grid,.menu-strip,.day-strip,.featured-strip{scroll-behavior:auto}
  .hero,.dod-hero,.hero-collapsed-line:not(.hidden),.menu-table-row,.offer-card,.events-card{animation:none!important}
  #heroMain,.hero{transition:none!important}
}

/* ---------- Round 15 (Worker 5): admin-only site ↔ dashboard switch ----------
   Small pill in the header (admins only — created in JS only when a verified
   admin session exists), "View site" row at the top of the admin area, and
   the full-width console button inside My Profile. No animation of its own,
   so prefers-reduced-motion needs no special case here. */
.admin-dash-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);color:#fff;padding:7px 12px;border-radius:999px;cursor:pointer;font-size:13px;font-weight:700;font-family:inherit;white-space:nowrap}
.admin-dash-btn:hover{background:rgba(255,255,255,.22)}
.admin-dash-btn .ic{width:16px;height:16px}
.admin-switch-row{display:flex;justify-content:flex-start;margin:2px 0 12px}
.admin-switch-row .btn{display:inline-flex;align-items:center;gap:6px}
/* Round 32 (Worker A): CMS mode switcher — 7 preset chips at the top of
   the admin area, right under "View site". Chips reuse the global .chip
   (with its .active brand state); the row is a framed box so it reads as
   one control, and wraps cleanly at phone width. */
.mode-switcher-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm);padding:10px 12px;margin:2px 0 12px}
.mode-switcher-row .mode-switcher-title{font-weight:800;font-size:14px;color:var(--ink);white-space:nowrap}
.mode-switcher-row .mode-chips{display:flex;flex-wrap:wrap;gap:8px}
.mode-switcher-row .mode-chip{flex:0 0 auto}
.mode-switcher-row .msg{font-size:12.5px}
/* Round 16: role chip row at the top of the admin area (chip + logout),
   and the staff table controls. The chip is not clickable. */
.admin-role-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 0 12px;flex-wrap:wrap}
.admin-role-row .btn{display:inline-flex;align-items:center;gap:6px}
.role-chip{cursor:default;display:inline-flex;align-items:center;gap:6px}
.role-chip .ic{width:16px;height:16px}
.staff-ctl{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.staff-ctl select{max-width:170px}
.staff-pw{flex-wrap:wrap}
#profileAdminPanel{display:flex;flex-direction:column;gap:8px;align-items:stretch}
#profileAdminPanel .role-chip{align-self:flex-start}
.profile-admin-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}
@media (max-width:480px){
  /* Tightest the pill can go without dropping its label: at 390px it shares
     the topbar with the brand + language toggle, and every pixel it takes
     is one the brand subtitle loses (it wraps instead of overflowing). */
  .admin-dash-btn{padding:6px 9px;font-size:12px;gap:5px}
  .admin-dash-btn .ic{width:15px;height:15px}
}

/* Round 18 (worker C): Menu Studio template picker */
.studio-tpl{cursor:pointer;justify-content:flex-start;flex-wrap:nowrap;align-items:center}
.studio-tpl input{accent-color:var(--accent);flex:none;width:auto}
.studio-swatch{display:inline-block;width:34px;height:34px;border-radius:50%;border:3px solid transparent;flex:none}
/* Round 21 (worker C): Brand Kit colour rows — label + hex text + swatch. */
.studio-brand-row{display:flex;align-items:center;gap:8px;margin:8px 0;flex-wrap:wrap}
.studio-brand-row label{flex:1 1 160px}
.studio-brand-row input[type=text]{flex:0 1 110px}
.studio-brand-row input[type=color]{flex:none;width:44px;height:36px;padding:2px;border:1px solid var(--line);border-radius:8px;background:var(--surface);cursor:pointer}
/* Round 19 fix: the live draft preview dims briefly while a refresh is
   in flight, so the operator can see it is updating. */
#studioPreview.studio-preview--updating{opacity:.55;transition:opacity .2s}
#studioPreview img{max-width:520px}
/* Round 20 (worker D): Studio custom menus / frames / customisation */
.studio-day{border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px}
.studio-day h4{margin:0 0 8px}
.studio-dish-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 12px;margin:4px 0 10px}
@media (max-width:560px){ .studio-dish-grid{grid-template-columns:1fr} }
.studio-frame-row img.studio-frame-thumb{width:64px;height:80px;object-fit:cover;border-radius:8px;flex:none;background:var(--surface-2)}
.studio-frame-row input[type="radio"]{accent-color:var(--accent);flex:none}
#studioCmGenBox img{max-width:520px}

/* Round 19 workstream D: announcement banner + kitchen print */
.announce-banner{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--gold-soft);color:var(--ink);border:1px solid var(--gold);border-radius:12px;padding:10px 12px;margin:0 0 12px;font-weight:600;text-align:center}
.announce-banner .announce-text{display:flex;align-items:center;gap:8px;min-width:0}
.announce-banner .announce-text .ic{flex:none}
.announce-close{flex:none;background:none;border:0;color:var(--ink);cursor:pointer;padding:4px;border-radius:8px;line-height:0}
.announce-close:hover{background:rgba(0,0,0,.08)}
@media (prefers-reduced-motion:reduce){ .announce-banner{transition:none} }
/* Round 19 workstream D (CRM): personal profile greeting, segment chips
   + badges, CRM sort control. Warm but quiet: the greeting is centred,
   accent-coloured, slightly larger than body text — never loud. */
.profile-greeting{margin:0 0 12px;text-align:center;font-size:19px;font-weight:700;color:var(--hero-accent)}
.crm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.crm-chip{border:1px solid var(--border);background:var(--surface);color:var(--ink);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer}
.crm-chip.active{background:var(--accent);border-color:var(--accent);color:#fff}
.crm-sort{display:flex;align-items:center;gap:6px;white-space:nowrap}
.crm-sort select{padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink)}
.seg-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;background:var(--surface-2);color:var(--ink);vertical-align:middle}
.seg-badge.seg-vip{background:var(--gold-soft);color:var(--gold-deep,#7a5b00)}
.seg-badge.seg-at_risk{background:var(--red-bg);color:var(--red)}
.seg-badge.seg-new{background:var(--green-bg);color:var(--green)}
.seg-badge.seg-birthday_month{background:#f3e8ff;color:#6b21a8}
@media print{
  nav.tabs, #adminSectionTabs, .announce-close, #kitchenPanel .row, #broadcastPanel, .no-print{display:none !important}
  #tab-admin > .panel{display:none !important}
  #tab-admin > #kitchenPanel{display:block !important}
  body{background:#fff}
}

/* ---------- Round 22: push notifications ---------- */
.notif-bell{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.12);color:var(--hero-ink);cursor:pointer}
.notif-bell:hover{background:rgba(255,255,255,.22)}
.notif-badge{position:absolute;top:-4px;inset-inline-end:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#DC2626;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.35);box-sizing:border-box}
.push-row{justify-content:space-between;flex-wrap:wrap}
.push-state{display:flex;align-items:center;gap:8px;font-weight:700}
.push-state .ic{color:var(--brand)}
/* Soft opt-in sheet: bottom sheet on phones, centred card on desktop. */
.push-prompt{position:fixed;inset:0;z-index:120;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.45);padding:0}
.push-prompt-card{width:100%;max-width:480px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-bottom:0;border-radius:20px 20px 0 0;padding:22px 20px calc(20px + env(safe-area-inset-bottom));box-shadow:var(--shadow);box-sizing:border-box;text-align:center}
.push-prompt-ic{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:var(--brand);color:#fff}
.push-prompt-card h3{margin:0 0 8px;font-size:19px;font-weight:800}
.push-prompt-card p{margin:0 0 14px;color:var(--ink-2);line-height:1.6}
.push-prompt-actions{justify-content:center;flex-wrap:wrap}
.push-prompt-actions .btn{flex:1;min-width:140px}
.push-prompt .fineprint{margin:12px 0 0}
@media (min-width:640px){
  .push-prompt{align-items:center;padding:20px}
  .push-prompt-card{border-radius:20px;border-bottom:1px solid var(--line);padding:24px}
}
/* Inbox */
.notif-head{justify-content:space-between;flex-wrap:wrap}
.notif-head h2{margin:0}
.notif-item{display:flex;gap:10px;padding:14px 4px;border-bottom:1px solid var(--line);cursor:pointer}
.notif-item:last-child{border-bottom:0}
.notif-dot{flex:none;width:9px;height:9px;margin-top:7px;border-radius:50%;background:transparent}
.notif-item.unread .notif-dot{background:var(--brand)}
.notif-item.unread .notif-body b{font-weight:800}
.notif-body{min-width:0;flex:1}
.notif-body b{display:block;overflow-wrap:anywhere}
.notif-body p{margin:4px 0 0;color:var(--ink-2);line-height:1.55;overflow-wrap:anywhere}
.notif-body .mini{font-size:12.5px}
.notif-body .btn{margin-top:8px}
#pushAdminPanel select,#pushAdminPanel input,#pushAdminPanel textarea{max-width:100%;box-sizing:border-box}
#pushAdminPanel .row{flex-wrap:wrap}
#pushAdminPanel .row label{white-space:nowrap}
#pushAudSearch{flex:1;min-width:140px}
@media print{ .push-prompt,.notif-bell{display:none !important} }

/* Round 24 (worker B): Profile "My devices" rows. */
.device-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.device-row .btn{flex-shrink:0}
#devicesPanel .row{flex-wrap:wrap}

/* Round 29 workstream D: multiple pickup locations — checkout cards +
   CMS hours grid + free-window editor. Theme variables only, so all six
   themes × light/dark stay correct; rows wrap, nothing overflows 390px. */
.pickup-loc-card{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid var(--line);border-radius:14px;margin:8px 0;cursor:pointer;background:var(--surface)}
.pickup-loc-card input{width:auto;margin-top:3px;flex:none}
.pickup-loc-card.sel{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}
.pickup-loc-card.disabled{opacity:.55;cursor:not-allowed}
.pickup-loc-card .pickup-loc-body{flex:1;min-width:0}
.pickup-loc-name{font-weight:700}
.pickup-loc-meta{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.pickup-loc-fee{font-size:13px;font-weight:700;color:var(--green)}
.pickup-loc-row{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.pickup-loc-item{flex:1 1 100%;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}
.pickup-loc-item .row{flex-wrap:wrap}
.pl-hours-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}
.pl-hours-row .wd{flex:1 1 90px;font-weight:600}
.pl-hours-row input[type="time"]{width:112px;flex:none}
.pl-hours-row input[type="checkbox"]{width:auto}
.pl-win-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0}
.pl-win-row select{flex:1 1 130px;min-width:0}
.pl-win-row input[type="time"]{width:106px;flex:none}
