﻿/* =========================================================================
   TifinBox design system — light & dark, mobile first, desktop friendly
   ========================================================================= */
:root {
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-xs: 8px; --radius-sm: 12px; --radius: 16px; --radius-lg: 22px; --radius-xl: 30px;

  --bg: #F5F7F2;
  --bg-grad: radial-gradient(1200px 500px at 10% -10%, #E6F2DF 0%, transparent 60%), radial-gradient(900px 500px at 100% 0%, #FFF1D6 0%, transparent 55%);
  --surface: #FFFFFF;
  --surface-2: #F0F4EC;
  --surface-3: #E6EDE0;
  --text: #17261B;
  --text-2: #3C4F41;
  --muted: #66786B;
  --border: #E1E8DB;
  --border-strong: #CBD7C3;

  --brand: #2E7D32;
  --brand-600: #27702B;
  --brand-700: #1F5E24;
  --brand-50: #E8F5E9;
  --brand-100: #D3EBD5;
  --on-brand: #FFFFFF;
  --accent: #F2A516;
  --accent-50: #FFF4DB;
  --accent-700: #9A6500;
  --danger: #D2443F;
  --danger-50: #FDECEA;
  --info: #2563EB;
  --info-50: #E8F0FE;
  --warn: #D97706;
  --warn-50: #FFF3E0;
  --success: #2E7D32;
  --success-50: #E8F5E9;

  --shadow-sm: 0 1px 2px rgba(20, 40, 24, .06), 0 1px 1px rgba(20, 40, 24, .04);
  --shadow: 0 6px 20px -8px rgba(20, 50, 28, .18), 0 2px 6px rgba(20, 40, 24, .06);
  --shadow-lg: 0 24px 60px -20px rgba(15, 45, 25, .35);
  --ring: 0 0 0 3px rgba(46, 125, 50, .25);
  --hero: linear-gradient(135deg, #2E7D32 0%, #1B5E20 55%, #124618 100%);
  --hero-accent: linear-gradient(135deg, #F2A516 0%, #E8780C 100%);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0D1310;
  --bg-grad: radial-gradient(1000px 500px at 0% -10%, #12301A 0%, transparent 60%), radial-gradient(800px 500px at 100% 0%, #2B2008 0%, transparent 55%);
  --surface: #151D18;
  --surface-2: #1B2620;
  --surface-3: #22302A;
  --text: #E9F1EB;
  --text-2: #C5D3C9;
  --muted: #92A598;
  --border: #25332B;
  --border-strong: #324439;

  --brand: #4CAF50;
  --brand-600: #43A047;
  --brand-700: #388E3C;
  --brand-50: #14301A;
  --brand-100: #1C4224;
  --on-brand: #06200A;
  --accent: #FFB84D;
  --accent-50: #33260C;
  --accent-700: #FFCB7A;
  --danger: #FF7A74;
  --danger-50: #3A1816;
  --info: #7AA7FF;
  --info-50: #15233F;
  --warn: #FFB04D;
  --warn-50: #3A2810;
  --success: #6FCF74;
  --success-50: #14301A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 24px -10px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --ring: 0 0 0 3px rgba(76, 175, 80, .35);
  --hero: linear-gradient(135deg, #1E5A22 0%, #144218 55%, #0C2E10 100%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
html { overscroll-behavior-y: none; }      /* no browser pull-to-refresh: the app refreshes its own data instead */
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
  background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; } h2 { font-size: 1.25rem; font-weight: 750; } h3 { font-size: 1.05rem; font-weight: 700; } h4 { font-size: .95rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
::selection { background: var(--brand-100); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-xs); }
.muted { color: var(--muted); } .text-2 { color: var(--text-2); }
.small { font-size: .82rem; } .xs { font-size: .74rem; } .large { font-size: 1.1rem; }
.bold { font-weight: 700; } .center { text-align: center; } .right { text-align: right; }
.nowrap { white-space: nowrap; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.hidden { display: none !important; }
.danger-text { color: var(--danger); } .success-text { color: var(--success); } .brand-text { color: var(--brand); } .warn-text { color: var(--warn); }

/* ---------- layout helpers ---------- */
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .row.center { justify-content: center; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack.sm { gap: 6px; } .stack.lg { gap: 20px; }
.grow { flex: 1 1 0; min-width: 0; }
.gap-0 { gap: 0; } .gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.auto-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid.auto-lg { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 720px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hide-sm { display: none !important; } }
@media (min-width: 721px) { .show-sm { display: none !important; } }
.page { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 24px); max-width: 1100px; margin: 0 auto; animation: fadeUp .25s ease both; }
.page.narrow { max-width: 560px; } .page.wide { max-width: 1400px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; }
.section-title h3 { font-size: 1.05rem; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; }
.card.flat { box-shadow: none; } .card.pad-0 { padding: 0; overflow: hidden; } .card.pad-sm { padding: 12px; }
.card.clickable { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.card.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card.clickable:active { transform: scale(.99); }
.card-hero { background: var(--hero); color: #fff; border: 0; border-radius: var(--radius-lg); padding: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.card-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); }
.card-hero .muted { color: rgba(255,255,255,.75); }
.card-accent { background: var(--hero-accent); color: #2A1A00; border: 0; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.card-title { font-weight: 700; margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat .label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.stat .hint { font-size: .8rem; color: var(--muted); }
.stat.brand { background: var(--brand-50); border-color: var(--brand-100); } .stat.accent { background: var(--accent-50); } .stat.danger { background: var(--danger-50); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 42px; border-radius: 999px; border: 1px solid transparent;
  background: var(--surface-2); color: var(--text); font-weight: 650; cursor: pointer; transition: transform .1s ease, background .15s, box-shadow .15s, opacity .15s; user-select: none; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--surface-3); } .btn:active { transform: scale(.97); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px rgba(46,125,50,.6); } .btn-primary:hover { background: var(--brand-600); }
.btn-accent { background: var(--accent); color: #2A1A00; } .btn-accent:hover { filter: brightness(1.05); background: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: var(--danger); filter: brightness(1.08); }
.btn-danger-soft { background: var(--danger-50); color: var(--danger); border: 1.5px solid var(--danger); font-weight: 700; } .btn-danger-soft:hover { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); } .btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; } .btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-50); color: var(--brand); } .btn-soft:hover { background: var(--brand-100); }
.btn-sm { min-height: 34px; padding: 6px 13px; font-size: .86rem; } .btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; } .btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: transparent; border: 0; cursor: pointer; color: var(--text-2); position: relative; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn.solid { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
.spinner.lg { width: 36px; height: 36px; border-width: 3.5px; color: var(--brand); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; } .field > label, .label { font-size: .82rem; font-weight: 650; color: var(--text-2); }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea {
  width: 100%; padding: 11px 14px; min-height: 44px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s; }
.field textarea, .textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field .hint { font-size: .78rem; color: var(--muted); } .field .error { font-size: .8rem; color: var(--danger); font-weight: 600; }
.search { position: relative; } .search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .search input { padding-left: 40px !important; border-radius: 999px !important; }
.switch { position: relative; width: 48px; height: 28px; flex: none; } .switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: var(--border-strong); transition: background .2s; } .switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); } .switch input:checked + .track::after { transform: translateX(20px); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.otp { display: flex; gap: 8px; justify-content: center; } .otp input { width: 46px; height: 56px; text-align: center; font-size: 1.5rem; font-weight: 800; border: 2px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); padding: 0; }
.otp input:focus { border-color: var(--brand); box-shadow: var(--ring); outline: none; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 650; font-size: .88rem; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.seg button.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.seg.block { display: flex; } .seg.block button { flex: 1; justify-content: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.qty { display: inline-flex; align-items: center; background: var(--brand); color: var(--on-brand); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.qty button:active { background: rgba(255,255,255,.2); } .qty span { min-width: 22px; text-align: center; font-weight: 800; }
.qty.light { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.success { background: var(--success-50); color: var(--success); } .chip.warn { background: var(--warn-50); color: var(--warn); } .chip.danger { background: var(--danger-50); color: var(--danger); }
.chip.info { background: var(--info-50); color: var(--info); } .chip.brand { background: var(--brand-50); color: var(--brand); } .chip.accent { background: var(--accent-50); color: var(--accent-700); }
.chip.solid { background: var(--brand); color: var(--on-brand); } .chip.outline { background: transparent; border: 1px solid var(--border-strong); }
.veg { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.8px solid #1E8E3E; border-radius: 3px; background: #fff; flex: none; }
.veg::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1E8E3E; } .veg.lg { width: 22px; height: 22px; border-width: 2.2px; } .veg.lg::after { width: 11px; height: 11px; }
.veg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: #E6F5EA; color: #176B32; font-weight: 750; font-size: .76rem; }
html[data-theme="dark"] .veg-pill { background: #14301A; color: #7ED58A; }
.badge-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: inline-grid; place-items: center; }
.pill-wallet { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-weight: 800; border: 1px solid var(--brand-100); cursor: pointer; }

/* ---------- lists & tables ---------- */
.list { display: flex; flex-direction: column; } .list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); } .list-item:last-child { border-bottom: 0; }
.list-item.clickable { cursor: pointer; } .list-item.clickable:hover { background: var(--surface-2); border-radius: var(--radius-sm); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-100); color: var(--brand); display: inline-grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; } .avatar.sm { width: 30px; height: 30px; font-size: .8rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; } .table th { text-align: left; padding: 11px 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid var(--border); vertical-align: middle; } .table tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table tr.clickable { cursor: pointer; } .table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; font-weight: 600; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; } .divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); } .empty .big { font-size: 3rem; margin-bottom: 8px; } .empty h3 { color: var(--text); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: var(--radius-sm); }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), #7BC47F); border-radius: 99px; transition: width .5s ease; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid transparent; }
.alert.info { background: var(--info-50); color: var(--info); } .alert.warn { background: var(--warn-50); color: var(--warn); } .alert.danger { background: var(--danger-50); color: var(--danger); } .alert.success { background: var(--success-50); color: var(--success); }

/* ---------- food ---------- */
.food-img { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--surface-3); overflow: hidden; border-radius: var(--radius); }
.food-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; } .clickable:hover .food-img img { transform: scale(1.04); }
.food-img .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, #CDE7C8, #F8E3B0); }
html[data-theme="dark"] .food-img .fallback { background: linear-gradient(135deg, #1E3A25, #3B2E12); }
.food-img.sq { aspect-ratio: 1; } .food-img.wide { aspect-ratio: 16 / 9; } .food-img.round { border-radius: 50%; aspect-ratio: 1; }
.food-img .tl { position: absolute; left: 10px; top: 10px; } .food-img .tr { position: absolute; right: 10px; top: 10px; } .food-img .bl { position: absolute; left: 10px; bottom: 10px; }
.food-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.food-card .food-img { border-radius: 0; aspect-ratio: 16 / 11; } .food-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.food-card .name { font-weight: 750; display: flex; gap: 8px; align-items: flex-start; } .food-card .desc { color: var(--muted); font-size: .84rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.food-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.price { font-weight: 800; } .price .was { color: var(--muted); font-weight: 500; text-decoration: line-through; margin-left: 6px; font-size: .85em; }
.menu-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 200px; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.menu-hero .bg { position: absolute; inset: 0; z-index: -2; } .menu-hero .bg img { width: 100%; height: 100%; object-fit: cover; } .menu-hero .bg .fallback { position: absolute; inset: 0; background: var(--hero); }
.menu-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.78) 100%); }
.menu-hero .content { padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; gap: 6px; } .menu-hero .dishes { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-hero .dishes span { background: rgba(255,255,255,.2); backdrop-filter: blur(6px); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.special-ribbon { background: var(--hero-accent); color: #2A1A00; font-weight: 800; font-size: .72rem; padding: 4px 11px; border-radius: 99px; letter-spacing: .03em; display: inline-flex; gap: 5px; align-items: center; box-shadow: 0 4px 12px -4px rgba(232,120,12,.7); }
.slot-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; }
.hscroll { scroll-padding: 0 16px; display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 12px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; } .hscroll > * { scroll-snap-align: start; flex: none; }
.day-chip { min-width: 62px; padding: 9px 6px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); text-align: center; cursor: pointer; display: flex; flex-direction: column; gap: 1px; user-select: none; }
.day-chip .d { font-size: .7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; } .day-chip .n { font-size: 1.15rem; font-weight: 800; }
.day-chip.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .day-chip.active .d { color: rgba(255,255,255,.8); } .day-chip.today { border-color: var(--accent); }
.day-chip.disabled { opacity: .45; pointer-events: none; } .day-chip.special:not(.active) { background: var(--accent-50); border-color: var(--accent); }
.sticky-cart { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 30; background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); cursor: pointer; max-width: 760px; margin: 0 auto; animation: fadeUp .25s ease both; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .cal .dow { text-align: center; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal-day { aspect-ratio: 1 / 1.08; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; user-select: none; position: relative; transition: transform .1s, background .15s, border-color .15s; font-weight: 700; min-width: 0; }
.cal-day .num { font-size: 1rem; } .cal-day .sub { font-size: .68rem; font-weight: 700; color: var(--muted); line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.cal-day:active { transform: scale(.94); } .cal-day.out { visibility: hidden; } .cal-day.disabled { opacity: .4; cursor: not-allowed; background: var(--surface-2); } .cal-day.holiday { background: var(--danger-50); border-color: transparent; color: var(--danger); }
.cal-day.selected { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -6px rgba(46,125,50,.7); } .cal-day.selected .sub { color: rgba(255,255,255,.85); }
.cal-day.booked { background: var(--brand-50); border-color: var(--brand); color: var(--brand); } .cal-day.skipped { background: var(--warn-50); border-color: var(--warn); color: var(--warn); text-decoration: line-through; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); } .cal-day.special::after { content: "★"; position: absolute; top: 3px; right: 5px; font-size: .68rem; color: var(--accent); }
.cal-day.selected.special::after { color: #FFE08A; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--border-strong); }

/* ---------- navigation shells ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 14px 8px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 850; font-size: 1.08rem; letter-spacing: -.02em; color: var(--text); text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--hero); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -6px rgba(31,94,36,.7); flex: none; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--border); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: .68rem; font-weight: 700; text-decoration: none !important; position: relative; }
.bottom-nav a.active { color: var(--brand); } .bottom-nav a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.bottom-nav .badge-count { position: absolute; top: 6px; left: calc(50% + 6px); }
.side-nav { display: none; }
@media (min-width: 900px) {
  .customer-shell { display: grid; grid-template-columns: 240px 1fr; } .customer-shell .bottom-nav { display: none; }
  .customer-shell .side-nav { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); }
  .customer-shell .page { padding-bottom: 40px; } .sticky-cart { bottom: 20px; }
}
.side-nav a, .admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--text-2); font-weight: 650; text-decoration: none !important; position: relative; }
.side-nav a:hover, .admin-nav a:hover { background: var(--surface-2); } .side-nav a.active, .admin-nav a.active { background: var(--brand-50); color: var(--brand); }
.admin-nav .count { margin-left: auto; }
.admin-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.admin-side .nav-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 14px 14px 4px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.admin-main .page { padding-bottom: 40px; max-width: 1500px; margin: 0; width: 100%; }
.admin-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.admin-top .search { max-width: 380px; flex: 1; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; } .menu-btn { display: inline-grid; }
  .admin-side { position: fixed; z-index: 70; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .admin-shell.open .admin-side { transform: none; } .admin-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 65; }
  .admin-top { padding: 8px 12px; } .admin-main .page { padding: 14px 12px 40px; }
}
@media (min-width: 901px) { .admin-scrim { display: none; } }
.delivery-shell .page { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 20px); }

/* ---------- overlays ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 10, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .15s ease; }
.modal { width: 100%; max-width: 560px; max-height: 92vh; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); animation: slideUp .22s ease; padding-bottom: var(--safe-b); }
.modal.lg { max-width: 860px; } .modal.xl { max-width: 1100px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; } .modal-head h3 { font-size: 1.1rem; }
.modal-body { padding: 6px 18px 16px; overflow-y: auto; } .modal-foot { padding: 12px 18px 16px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (min-width: 700px) { .modal-backdrop { align-items: center; padding: 20px; } .modal { border-radius: var(--radius-lg); } }
.toast-host { position: fixed; z-index: 200; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; max-width: 520px; width: 100%; padding: 12px 16px; border-radius: 14px; background: var(--text); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; animation: slideDown .22s ease; }
.toast.success { background: #1E6B26; color: #fff; } .toast.error { background: #B83B36; color: #fff; } .toast.warning { background: #B76A00; color: #fff; }
@media (min-width: 900px) { .toast-host { left: auto; right: 20px; align-items: flex-end; } }

/* ---------- auth / splash ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-hero { background: var(--hero); color: #fff; padding: calc(36px + var(--safe-t)) 24px 56px; position: relative; overflow: hidden; border-radius: 0 0 36px 36px; }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.auth-hero::before { width: 260px; height: 260px; right: -70px; top: -60px; } .auth-hero::after { width: 200px; height: 200px; left: -60px; bottom: -80px; }
.auth-hero h1 { font-size: 1.9rem; margin: 14px 0 6px; } .auth-hero p { opacity: .85; max-width: 420px; }
.auth-card { margin: -34px 16px 24px; padding: 20px; max-width: 460px; width: calc(100% - 32px); justify-self: center; position: relative; z-index: 2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) {
  .auth-wrap { grid-template-columns: 1.1fr 1fr; } .auth-hero { border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
  .auth-hero h1 { font-size: 2.6rem; } .auth-card { margin: auto; box-shadow: var(--shadow); }
}
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; } .pin-pad button { height: 64px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 1.5rem; font-weight: 700; cursor: pointer; } .pin-pad button:active { background: var(--brand-100); transform: scale(.94); }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 18px 0; } .pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); } .pin-dots i.on { background: var(--brand); border-color: var(--brand); } .pin-dots.shake { animation: shake .4s; }
.google-btn { background: #fff; color: #1F1F1F; border: 1px solid #DADCE0; } .google-btn:hover { background: #F7F8F8; } html[data-theme="dark"] .google-btn { background: #fff; }

/* ---------- misc ---------- */
.qr-box { background: #fff; padding: 14px; border-radius: var(--radius); display: inline-block; box-shadow: var(--shadow); } .qr-box svg { display: block; }
.timeline { position: relative; padding-left: 26px; } .timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.timeline .step { position: relative; padding: 4px 0 16px; } .timeline .step::before { content: ""; position: absolute; left: -23px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--border-strong); }
.timeline .step.done::before { background: var(--brand); border-color: var(--brand); } .timeline .step.current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-50); }
.map { width: 100%; height: 360px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; z-index: 1; background: var(--surface-3); } .map.tall { height: 520px; }
.hk-pin { background: var(--brand); color: #fff; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.hk-pin span { transform: rotate(45deg); font-weight: 800; font-size: .8rem; } .hk-pin.done { background: #7A8B7E; } .hk-pin.kitchen { background: var(--accent); color: #2A1A00; } .hk-pin.rider { background: #2563EB; }
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; } .chart-bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; align-items: center; }
.chart-bars .bar i { width: 100%; max-width: 26px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7BC47F, var(--brand)); min-height: 3px; } .chart-bars .bar i.c { background: linear-gradient(180deg, #FFD27A, var(--accent)); } .chart-bars small { font-size: .62rem; color: var(--muted); }
.vote-option { position: relative; overflow: hidden; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; display: flex; gap: 12px; padding: 10px; align-items: center; transition: border-color .15s, transform .1s; }
.vote-option:active { transform: scale(.985); } .vote-option.mine { border-color: var(--brand); } .vote-option .fill { position: absolute; inset: 0; background: var(--brand-50); z-index: 0; transition: width .6s ease; transform-origin: left; } .vote-option > * { position: relative; z-index: 1; }
.vote-option.winner { border-color: var(--accent); background: var(--accent-50); }
.level-bar { display: flex; align-items: center; gap: 10px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; } .confetti i { position: absolute; top: -12px; width: 9px; height: 14px; opacity: .9; animation: confetti 1.8s ease-in forwards; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.print-only { display: none; }
@media print { .no-print, .topbar, .bottom-nav, .side-nav, .admin-side, .admin-top { display: none !important; } .print-only { display: block; } body { background: #fff; } .page { padding: 0; } }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes confetti { to { transform: translateY(110vh) rotate(720deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Blazor defaults */
/* the "unhandled error" notice: a clear card in the middle of the screen (the framework switches the container on; the card centres itself) */
#blazor-error-ui { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(8,12,9,.55); }
#blazor-error-ui .beu-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box;
  padding: 24px 22px 20px; border-radius: 20px; text-align: center; background: var(--surface, #fff); color: var(--text, #17261B); border: 1px solid var(--border, #e1e8db); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
#blazor-error-ui .beu-icon { font-size: 2.4rem; line-height: 1; }
#blazor-error-ui h2 { margin: 8px 0 6px; font-size: 1.3rem; }
#blazor-error-ui p { margin: 0 0 12px; color: var(--muted, #66786b); }
#blazor-error-ui .beu-more { text-align: left; margin: 0 0 14px; font-size: .8rem; color: var(--muted, #66786b); }
#blazor-error-ui .beu-more summary { cursor: pointer; }
#blazor-error-ui pre { white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; margin: 6px 0 0; padding: 8px; border-radius: 10px; background: rgba(0,0,0,.06); font-size: .72rem; }
#blazor-error-ui .beu-actions { display: flex; gap: 10px; justify-content: center; }
#blazor-error-ui .beu-btn { display: inline-block; padding: 10px 22px; border-radius: 12px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--brand, #1f9d55); color: #fff; }
#blazor-error-ui .beu-btn.alt { background: transparent; color: var(--text, #17261B); border: 1px solid var(--border, #e1e8db); }
.leaflet-container { font-family: var(--font); }

/* ---------- additions ---------- */
.otp-single { text-align: center; font-size: 1.9rem !important; font-weight: 800; letter-spacing: .5em; padding-left: .5em !important; min-height: 60px !important; }
@media (min-width: 900px) { .customer-shell .topbar .brand { display: none; } }
.hero-illustration { display: flex; gap: 8px; margin-top: 18px; font-size: 1.6rem; }
.feature-list { display: grid; gap: 10px; margin-top: 22px; } .feature-list div { display: flex; gap: 10px; align-items: center; opacity: .92; font-weight: 600; font-size: .95rem; }
.feature-list .ic { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }

/* =========================================================================
   PREMIUM LAYER — glass surfaces, depth, glow and motion
   (Cred / Zomato inspired). Cheap shadows on cards; blur only on chrome.
   ========================================================================= */
:root {
  --radius-xs: 10px; --radius-sm: 14px; --radius: 20px; --radius-lg: 28px; --radius-xl: 36px;
  --glass-bg: rgba(255, 255, 255, .66);
  --glass-bg-strong: rgba(255, 255, 255, .82);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-edge: rgba(24, 56, 34, .07);
  --glass-blur: blur(22px) saturate(160%);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.82));
  --card-border: rgba(24, 56, 34, .07);
  --card-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(18, 48, 28, .05), 0 12px 28px -14px rgba(18, 48, 28, .28), 0 28px 60px -34px rgba(18, 48, 28, .22);
  --card-shadow-hover: 0 1px 0 rgba(255,255,255,.95) inset, 0 4px 10px rgba(18, 48, 28, .07), 0 22px 44px -16px rgba(18, 48, 28, .34), 0 40px 80px -40px rgba(18, 48, 28, .3);
  --brand-grad: linear-gradient(135deg, #34A85F 0%, #1F8A4C 50%, #166A3A 100%);
  --brand-glow: 0 10px 26px -8px rgba(31, 138, 76, .55), 0 2px 6px rgba(31, 138, 76, .3);
  --accent-grad: linear-gradient(135deg, #FFC24A 0%, #F59E0B 55%, #E8780C 100%);
  --accent-glow: 0 10px 26px -8px rgba(245, 158, 11, .6), 0 2px 6px rgba(232, 120, 12, .3);
  --hero: linear-gradient(140deg, #2FA05A 0%, #1B7F45 38%, #12562F 100%);
  --bg: #F3F6F0;
  --bg-grad:
    radial-gradient(900px 520px at 8% -8%, rgba(76, 175, 110, .28), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(255, 196, 80, .26), transparent 58%),
    radial-gradient(700px 600px at 50% 110%, rgba(120, 200, 150, .18), transparent 60%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-theme="dark"] {
  --bg: #070B09;
  --bg-grad:
    radial-gradient(900px 560px at 6% -10%, rgba(52, 168, 95, .22), transparent 60%),
    radial-gradient(760px 520px at 100% 4%, rgba(245, 158, 11, .14), transparent 58%),
    radial-gradient(700px 600px at 50% 115%, rgba(30, 120, 80, .16), transparent 60%);
  --surface: #0F1612; --surface-2: rgba(255,255,255,.05); --surface-3: rgba(255,255,255,.09);
  --text: #F1F7F3; --text-2: #CBD9D0; --muted: #8CA094;
  --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.16);
  --brand: #46D07A; --brand-600: #3BC06D; --brand-700: #2FA85C; --on-brand: #04170B;
  --brand-50: rgba(70, 208, 122, .12); --brand-100: rgba(70, 208, 122, .2);
  --accent: #FFC24A; --accent-50: rgba(255, 194, 74, .13); --accent-700: #FFD27A;
  --success-50: rgba(70, 208, 122, .13); --warn-50: rgba(255, 176, 77, .14); --danger-50: rgba(255, 122, 116, .14); --info-50: rgba(122, 167, 255, .14);
  --glass-bg: rgba(18, 26, 21, .62);
  --glass-bg-strong: rgba(16, 24, 19, .84);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-edge: rgba(255, 255, 255, .06);
  --card-bg: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  --card-border: rgba(255, 255, 255, .09);
  --card-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 14px 34px -14px rgba(0,0,0,.85), 0 30px 70px -36px rgba(0,0,0,.9);
  --card-shadow-hover: 0 1px 0 rgba(255,255,255,.1) inset, 0 22px 48px -16px rgba(0,0,0,.95), 0 0 0 1px rgba(70,208,122,.25);
  --brand-grad: linear-gradient(135deg, #5BE08C 0%, #38C06B 55%, #25A058 100%);
  --brand-glow: 0 10px 30px -8px rgba(70, 208, 122, .5), 0 0 0 1px rgba(255,255,255,.08) inset;
  --accent-glow: 0 10px 30px -8px rgba(255, 194, 74, .45);
  --hero: linear-gradient(140deg, #1F6B3C 0%, #124A28 45%, #0A2E19 100%);
  --ring: 0 0 0 3px rgba(70, 208, 122, .35);
}

body { letter-spacing: -.005em; text-rendering: optimizeLegibility; }
h1 { font-size: 1.75rem; font-weight: 850; letter-spacing: -.03em; }
h2 { font-weight: 800; letter-spacing: -.02em; }
.page-title h1 { background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 70%, var(--brand))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .value, .price, .countdown, .kv dd { font-variant-numeric: tabular-nums; }

/* ---------- surfaces: depth without heavy blur ---------- */
.card, .stat, .food-card, .slot-card, .table-wrap {
  background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.card.clickable:hover, .food-card:hover, .stat:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; }

/* glass: reserved for floating chrome */
.topbar, .admin-top, .bottom-nav, .modal, .toast, .sticky-cart, .auth-card, .admin-side, .customer-shell .side-nav {
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.topbar, .admin-top { background: var(--glass-bg); border-bottom: 1px solid var(--glass-edge); box-shadow: 0 8px 30px -22px rgba(10, 30, 18, .5); }
.admin-side, .customer-shell .side-nav { background: var(--glass-bg-strong); border-right: 1px solid var(--glass-edge); }

/* floating pill navigation (mobile) */
.bottom-nav {
  left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: 68px; padding: 0 6px; border-radius: 26px;
  background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 18px 40px -12px rgba(10, 40, 22, .35), 0 2px 8px rgba(10, 40, 22, .1), 0 1px 0 rgba(255,255,255,.6) inset;
}
html[data-theme="dark"] .bottom-nav { box-shadow: 0 18px 44px -10px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06) inset; }
.bottom-nav a { border-radius: 20px; margin: 7px 2px; font-size: .66rem; transition: color .2s, background .25s var(--ease), transform .2s; }
.bottom-nav a::before { display: none !important; }
.bottom-nav a.active { color: var(--brand); background: var(--brand-50); }
.bottom-nav a.active svg { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--brand) 55%, transparent)); transform: translateY(-1px) scale(1.06); }
.bottom-nav a svg { transition: transform .3s var(--ease); }
:root { --nav-h: 90px; }
.sticky-cart { bottom: calc(var(--nav-h) + var(--safe-b) - 6px); background: var(--brand-grad); border: 1px solid rgba(255,255,255,.25); box-shadow: var(--brand-glow), 0 24px 50px -16px rgba(10,60,30,.55); border-radius: 22px; }
@media (min-width: 900px) { :root { --nav-h: 0px; } .sticky-cart { bottom: 24px; } }

/* ---------- hero cards: glossy, embossed ---------- */
.card-hero {
  background: var(--hero); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); position: relative; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -30px 60px -40px rgba(0,0,0,.5) inset, 0 26px 50px -20px rgba(14, 80, 40, .7), 0 8px 18px -8px rgba(14, 80, 40, .5);
}
.card-hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%), radial-gradient(420px 220px at 100% 0%, rgba(255,214,120,.28), transparent 70%); }
.card-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 70%); z-index: -1; animation: float 9s ease-in-out infinite; }
.card-accent { background: var(--accent-grad); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--accent-glow); border: 1px solid rgba(255,255,255,.35); }

.stat { position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-grad); opacity: .85; }
.stat.accent::before { background: var(--accent-grad); } .stat.danger::before { background: linear-gradient(180deg, #FF8A80, #D2443F); }
.stat .value { font-size: 1.7rem; font-weight: 850; letter-spacing: -.03em; }
.stat.brand, .stat.accent, .stat.danger { background: var(--card-bg); }

/* ---------- buttons ---------- */
.btn { font-weight: 700; letter-spacing: -.005em; transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, filter .2s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--brand-grad); color: #fff; border: 1px solid rgba(255,255,255,.22); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, var(--brand-glow); }
html[data-theme="dark"] .btn-primary { color: #03160A; }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.07); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 30px -8px rgba(31,138,76,.7); }
.btn-accent { background: var(--accent-grad); color: #2A1A00; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, var(--accent-glow); }
.btn-accent:hover { background: var(--accent-grad); filter: brightness(1.06); }
.btn-danger { background: linear-gradient(135deg, #F0605A, #D2443F); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 24px -10px rgba(210,68,63,.7); }
.btn-soft { background: var(--brand-50); color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); }
.btn-outline { background: var(--glass-bg); border: 1.5px solid var(--border-strong); backdrop-filter: blur(8px); }
.btn-lg { min-height: 56px; border-radius: 18px; font-size: 1.05rem; } .btn { border-radius: 16px; } .btn-sm { border-radius: 12px; }
.icon-btn.solid { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: var(--card-shadow); }
.pill-wallet { background: var(--glass-bg-strong); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand) 55%, transparent); text-decoration: none !important; }

/* ---------- forms ---------- */
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea {
  background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1.5px solid var(--border-strong); border-radius: 16px; box-shadow: 0 1px 2px rgba(10,30,18,.04) inset;
}
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: var(--ring), 0 1px 2px rgba(10,30,18,.04) inset; background: var(--surface); }
.seg { background: color-mix(in srgb, var(--surface-2) 90%, transparent); border: 1px solid var(--card-border); box-shadow: 0 1px 2px rgba(10,30,18,.06) inset; }
.seg button.active { background: var(--surface); box-shadow: 0 6px 16px -8px rgba(10,40,22,.45), 0 1px 0 rgba(255,255,255,.8) inset; color: var(--brand); }
html[data-theme="dark"] .seg button.active { background: rgba(255,255,255,.1); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset; }

/* ---------- chips ---------- */
.chip { border: 1px solid color-mix(in srgb, currentColor 14%, transparent); font-weight: 750; }
.chip.solid { background: var(--brand-grad); border-color: rgba(255,255,255,.2); box-shadow: var(--brand-glow); }
.veg-pill { background: color-mix(in srgb, #1E8E3E 12%, var(--surface)); border: 1px solid color-mix(in srgb, #1E8E3E 22%, transparent); }
.special-ribbon { background: var(--accent-grad); box-shadow: 0 8px 18px -8px rgba(232,120,12,.85), 0 1px 0 rgba(255,255,255,.55) inset; border: 1px solid rgba(255,255,255,.35); }

/* ---------- food: Zomato style cards ---------- */
.food-card { border-radius: 22px; overflow: hidden; }
.food-card .food-img { border-radius: 0; }
.food-img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.28)); pointer-events: none; }
.food-card .body { padding: 14px 16px 16px; }
.food-card .name { font-size: 1.02rem; letter-spacing: -.01em; }
.food-card .price { font-size: 1.1rem; }
.food-card .btn-soft { background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand); box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--brand) 70%, transparent); text-transform: uppercase; letter-spacing: .06em; font-weight: 850; font-size: .8rem; padding: 7px 20px; }
.food-card .btn-soft:hover { background: var(--brand-50); }
.qty { background: var(--brand-grad); box-shadow: var(--brand-glow); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; }
.qty.light { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border); color: var(--text); }
.menu-hero { border-radius: 26px; box-shadow: 0 26px 50px -24px rgba(10, 40, 22, .65), 0 6px 14px -6px rgba(10,40,22,.35); border: 1px solid rgba(255,255,255,.12); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.menu-hero:hover { transform: translateY(-3px); }
.menu-hero .bg .fallback { background: radial-gradient(500px 260px at 90% 0%, rgba(255,214,120,.35), transparent 70%), var(--hero); }
.menu-hero .dishes span { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.22); }
.day-chip { border-radius: 20px; border: 1.5px solid var(--card-border); background: var(--card-bg); box-shadow: var(--card-shadow); min-width: 66px; transition: transform .25s var(--ease), box-shadow .25s; }
.day-chip:active { transform: scale(.95); }
.day-chip.active { background: var(--brand-grad); border-color: rgba(255,255,255,.25); box-shadow: var(--brand-glow); transform: translateY(-2px); }

/* ---------- calendar ---------- */
.cal-day { border-radius: 16px; background: var(--card-bg); border: 1.5px solid var(--card-border); box-shadow: 0 6px 14px -10px rgba(10,40,22,.35); }
.cal-day.selected { background: var(--brand-grad); border-color: rgba(255,255,255,.3); box-shadow: var(--brand-glow); transform: translateY(-2px) scale(1.03); }
.cal-day.booked { background: var(--brand-50); }

/* ---------- overlays ---------- */
.modal-backdrop { background: rgba(5, 14, 9, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); box-shadow: 0 40px 90px -30px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.5) inset; }
.toast { background: rgba(14, 22, 17, .88); color: #F1F7F3; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.toast.success { background: linear-gradient(135deg, rgba(40,150,80,.95), rgba(22,100,52,.95)); } .toast.error { background: linear-gradient(135deg, rgba(220,80,74,.95), rgba(170,46,42,.95)); }

/* ---------- auth ---------- */
.auth-hero { background: var(--hero); border-radius: 0 0 44px 44px; box-shadow: 0 30px 60px -30px rgba(14,80,40,.7); }
.auth-hero::before { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255,214,120,.3), transparent 70%); animation: float 10s ease-in-out infinite; }
.auth-hero::after { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); animation: float 12s ease-in-out infinite reverse; }
.auth-card { background: var(--glass-bg-strong); border: 1px solid var(--glass-border); border-radius: 30px; box-shadow: 0 40px 80px -30px rgba(10,50,28,.55), 0 1px 0 rgba(255,255,255,.7) inset; }
.feature-list .ic { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.pin-pad button { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); transition: transform .15s var(--ease), background .2s; }

/* ---------- tables & lists ---------- */
.table-wrap { border-radius: 20px; overflow: auto; }
.table th { background: color-mix(in srgb, var(--surface-2) 80%, transparent); backdrop-filter: blur(6px); }
.table tr:hover td { background: var(--brand-50); }
.avatar { background: linear-gradient(135deg, var(--brand-100), var(--brand-50)); border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 60%, transparent); }
.admin-nav a.active, .side-nav a.active { background: linear-gradient(90deg, var(--brand-100), var(--brand-50)); box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.admin-nav a, .side-nav a { transition: background .2s, transform .2s var(--ease); } .admin-nav a:hover, .side-nav a:hover { transform: translateX(2px); }
.brand-mark { background: var(--brand-grad); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 10px 22px -8px rgba(31,138,76,.8), 0 1px 0 rgba(255,255,255,.45) inset; }

/* ---------- motion ---------- */
.grid > *, .stack > .card, .hscroll > * { animation: fadeUp .5s var(--ease) both; }
.grid > *:nth-child(2) { animation-delay: .04s; } .grid > *:nth-child(3) { animation-delay: .08s; } .grid > *:nth-child(4) { animation-delay: .12s; }
.grid > *:nth-child(5) { animation-delay: .16s; } .grid > *:nth-child(6) { animation-delay: .2s; } .grid > *:nth-child(n+7) { animation-delay: .24s; }
.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-3) 70%, white) 50%, var(--surface-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s ease infinite; }
.progress { box-shadow: 0 1px 2px rgba(0,0,0,.12) inset; } .progress > div { box-shadow: 0 0 14px color-mix(in srgb, var(--brand) 60%, transparent); }
.vote-option { border-radius: 20px; background: var(--card-bg); box-shadow: var(--card-shadow); } .vote-option.mine { box-shadow: var(--brand-glow); }
.timeline .step.current::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-14px, 18px, 0); } }
@media (prefers-reduced-transparency: reduce) {
  .topbar, .admin-top, .bottom-nav, .modal, .toast, .sticky-cart, .auth-card, .admin-side, .customer-shell .side-nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  :root { --glass-bg: var(--surface); --glass-bg-strong: var(--surface); }
}
@media (max-width: 720px) { .page { padding-left: 14px; padding-right: 14px; } }

/* =========================================================================
   PROFESSIONAL GEOMETRY — crisp rounded rectangles instead of pills/ovals
   ========================================================================= */
:root { --radius-xs: 8px; --radius-sm: 10px; --radius: 16px; --radius-lg: 20px; --radius-xl: 24px; }

.btn, .btn-lg { border-radius: 12px; }
.btn-sm { border-radius: 10px; }
.btn-lg { min-height: 54px; border-radius: 14px; font-size: 1.02rem; }
.btn-block { border-radius: 14px; }
.icon-btn, .icon-btn.solid { border-radius: 12px; }
.pill-wallet { border-radius: 12px; padding: 7px 12px 7px 10px; }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea { border-radius: 12px; }
.search input { border-radius: 12px !important; }
.otp input { border-radius: 12px; }
.otp-single { border-radius: 14px !important; }

.seg { border-radius: 14px; padding: 4px; }
.seg button { border-radius: 10px; }
.tabs button { border-radius: 8px 8px 0 0; }
.chip { border-radius: 8px; padding: 3px 9px; }
.veg-pill { border-radius: 10px; }
.special-ribbon { border-radius: 8px; }
.qty { border-radius: 12px; overflow: hidden; }
.qty button { border-radius: 0; }

.card, .stat, .table-wrap { border-radius: 16px; }
.card-hero, .card-accent { border-radius: 20px; }
.food-card { border-radius: 18px; }
.menu-hero { border-radius: 20px; }
.food-img { border-radius: 14px; }
.vote-option { border-radius: 16px; }
.alert { border-radius: 12px; }
.toast { border-radius: 14px; }
.modal { border-radius: 20px 20px 0 0; }
@media (min-width: 700px) { .modal { border-radius: 20px; } }
.auth-card { border-radius: 22px; }
.auth-hero { border-radius: 0 0 28px 28px; }
.sticky-cart { border-radius: 16px; }
.brand-mark { border-radius: 12px; }

.bottom-nav { border-radius: 20px; }
.bottom-nav a { border-radius: 14px; }
.side-nav a, .admin-nav a { border-radius: 12px; }
.day-chip { border-radius: 14px; }
.cal-day { border-radius: 12px; }

/* icon tiles and avatars become rounded squares (profile photos too) */
.avatar { border-radius: 12px; }
.avatar.lg { border-radius: 18px; }
.avatar.sm { border-radius: 9px; }

/* PIN pad: solid, evenly sized keys */
.pin-pad { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; width: 100%; }
.pin-pad button, .pin-pad span { height: 60px; width: 100%; border-radius: 16px; font-size: 1.45rem; font-weight: 700; display: grid; place-items: center; }
.pin-pad button { background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: var(--card-shadow); color: var(--text); }
.pin-pad button:active { transform: scale(.96); background: var(--brand-50); }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; }

/* address / settings map pin */
.hk-pin.pick { background: var(--danger); }
.hk-pin span:empty::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: rotate(45deg); }

/* ===== No sideways movement: the app only scrolls vertically =====
   (overflow-x: clip, not hidden: it never turns html/body into a scroll container, which breaks touch scrolling in Android WebView) */
html, body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
.auth-layout { touch-action: pan-y; }
.auth-wrap { grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
.auth-hero, .auth-card { min-width: 0; max-width: 100%; }
.auth-card { box-sizing: border-box; }
.seg.block button { min-width: 0; padding: 8px 6px; font-size: .82rem; gap: 4px; }
@media (max-width: 380px) { .seg.block button .icon { display: none; } }
@media (min-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
/* Phones: keep the sign-in form on the first screen (the selling points stay on tablets / desktop) */
@media (max-width: 720px) {
  .feature-list { display: none; }
  .auth-hero { padding: calc(22px + var(--safe-t)) 22px 52px; }
  .auth-hero h1 { font-size: 1.55rem; margin: 10px 0 4px; }
  .auth-hero p { font-size: .9rem; }
  .auth-hero .mt-4 { margin-top: 10px; }
  .auth-card { margin-top: -30px; }
}

/* ===== BRAND LOGO ===== */
.brand-mark { background: #FBF5E8 !important; border: 1px solid rgba(0,0,0,.08) !important; padding: 3px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.45) !important; }
.brand-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-full { display: block; max-width: 100%; height: auto; background: #FBF5E8; border-radius: 22px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.auth-logo { height: 96px; width: auto; align-self: flex-start; object-fit: contain; }
@media (min-width: 900px) { .auth-logo { height: 140px; } }

/* Photos must paint above the absolutely positioned emoji fallback (it comes first in the markup). */
.food-img img { position: relative; z-index: 1; display: block; }
.food-img::after { z-index: 2; }
.food-img .tl, .food-img .tr, .food-img .bl { z-index: 3; }


/* ===== OFFLINE BANNER ===== */
.offline-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: .88rem; }
.offline-banner .btn { flex: none; }


/* ===== SEGMENTED TABS THAT FIT THE SCREEN (no sideways scrolling) ===== */
.seg.fit { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); width: 100%; overflow: visible; }
.seg.fit button { min-width: 0; padding: 8px 4px; justify-content: center; flex-direction: column; gap: 3px; font-size: .84rem; line-height: 1.1; }
.seg.fit button .chip { font-size: .7rem; min-width: 0; padding: 1px 8px; }
@media (min-width: 700px) { .seg.fit { width: auto; display: inline-grid; } .seg.fit button { flex-direction: row; gap: 8px; padding: 8px 18px; } }


/* ===== MEAL COLOURS: breakfast amber, lunch sky blue, dinner violet ===== */
:root {
  --slot-b: #F59E0B; --slot-b-bg: #FEF3C7; --slot-b-fg: #92400E;
  --slot-l: #0EA5E9; --slot-l-bg: #E0F2FE; --slot-l-fg: #075985;
  --slot-d: #8B5CF6; --slot-d-bg: #EDE9FE; --slot-d-fg: #5B21B6;
}
html[data-theme="dark"] {
  --slot-b-bg: rgba(245,158,11,.2); --slot-b-fg: #FCD34D;
  --slot-l-bg: rgba(14,165,233,.2); --slot-l-fg: #7DD3FC;
  --slot-d-bg: rgba(139,92,246,.24); --slot-d-fg: #C4B5FD;
}
.slot-b { --sc: var(--slot-b); --sbg: var(--slot-b-bg); --sfg: var(--slot-b-fg); }
.slot-l { --sc: var(--slot-l); --sbg: var(--slot-l-bg); --sfg: var(--slot-l-fg); }
.slot-d { --sc: var(--slot-d); --sbg: var(--slot-d-bg); --sfg: var(--slot-d-fg); }
.slot-x { --sc: var(--brand); --sbg: var(--brand-50); --sfg: var(--brand); }

.chip.slot { background: var(--sbg); color: var(--sfg); border: 1px solid color-mix(in srgb, var(--sc) 45%, transparent); font-weight: 700; }
.chip.solid.slot { background: var(--sc); color: #fff; border-color: transparent; }
.avatar.slot { background: var(--sbg); color: var(--sfg); }

.seg button.slot { color: var(--muted); }
.seg button.slot.active { background: var(--sbg); color: var(--sfg); box-shadow: 0 0 0 1.5px var(--sc) inset; }
.seg button.slot .icon, .seg button.slot svg { color: var(--sc); }
.seg button.slot.active .chip { background: var(--sc); color: #fff; }

.mp-meal.slot { border-left: 4px solid var(--sc); }
.mp-meal.slot.empty-slot { color: var(--sfg); background: var(--sbg); border-style: dashed; border-color: var(--sc); }


/* ===== MEAL RATING STARS ===== */
.rate-star { border: 0; background: transparent; font-size: 2rem; line-height: 1; color: var(--border-strong, #C9D6CB); cursor: pointer; padding: 2px 4px; min-width: 40px; min-height: 44px; transition: transform .12s ease, color .12s ease; }
.rate-star.on { color: #F59E0B; }
.rate-star:active { transform: scale(1.18); }


/* ===== DESKTOP / WIDE SCREEN PASS (owner console) ===== */
.search > svg:first-child { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search > input { width: 100%; }
button.stat { text-align: left; align-items: flex-start; font: inherit; color: inherit; }
button.stat:hover { border-color: var(--brand); transform: translateY(-1px); transition: transform .12s ease, border-color .12s ease; }
.rates-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: start; }
.dash-lower { grid-template-columns: minmax(0, 1fr); }
.mp-day-head { flex-wrap: wrap; }
.mp-day-head > div:first-child { min-width: 0; }
td .chip, td .badge { white-space: nowrap; }

@media (min-width: 1100px) {
  .dash-lower { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); align-items: start; }
  .admin-main .page.wide { max-width: none; }
  .admin-main .grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (min-width: 1500px) {
  .admin-main .page { padding-left: 28px; padding-right: 28px; }
  .admin-main .grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .mp-grid { gap: 14px; }
}
@media (min-width: 1800px) { html { font-size: 17px; } }

/* ===== LOGIN ON WIDE SCREENS: a centred, web-style sign-in panel instead of a full-width split ===== */
@media (min-width: 900px) {
  .auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 32px 24px; box-sizing: border-box; }
  .auth-wrap {
    width: min(1020px, 100%); min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px -35px rgba(10, 50, 28, .55), 0 0 0 1px rgba(128, 128, 128, .14);
  }
  .auth-hero { border-radius: 0; box-shadow: none; padding: 48px 44px; justify-content: center; }
  .auth-hero h1 { font-size: 2.1rem; }
  .auth-logo { height: 104px; }
  .auth-card { margin: 0; max-width: none; width: 100%; border-radius: 0; box-shadow: none; border: 0; align-self: stretch; justify-content: center; padding: 40px 44px; background: var(--surface, var(--glass-bg-strong)); }
}
/* Blazor focuses the page heading after navigation; no outline box around it. */
h1:focus, h1:focus-visible { outline: none; box-shadow: none !important; }

/* ===== GUIDED WORKFLOW (owner, customer, delivery partner) ===== */
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wf-step { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 14px; position: relative; }
.wf-step + .wf-step::before { content: ""; position: absolute; left: 22px; top: -8px; height: 12px; width: 2px; background: var(--border, rgba(128,128,128,.25)); }
.wf-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; border: 2px solid var(--border, rgba(128,128,128,.35)); color: var(--muted, #777); background: var(--surface, transparent); }
.wf-title { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wf-detail { font-size: .85rem; color: var(--muted, #6b7280); margin-top: 2px; }
.wf-step.done .wf-dot { background: var(--brand, #2E7D32); border-color: var(--brand, #2E7D32); color: #fff; }
.wf-step.done .wf-title { color: var(--muted, #6b7280); font-weight: 600; }
.wf-step.attn .wf-dot { background: var(--danger, #d64545); border-color: var(--danger, #d64545); color: #fff; }
.wf-step.attn { background: var(--danger-50, rgba(214,69,69,.08)); }
.wf-step.wait .wf-dot { border-style: dashed; }
.wf-step.wait .wf-title { color: var(--muted, #6b7280); }
.wf-step.next { background: var(--brand-50, rgba(46,125,50,.1)); box-shadow: inset 0 0 0 1.5px var(--brand, #2E7D32); }
.wf-step.next .wf-dot { border-color: var(--brand, #2E7D32); color: var(--brand, #2E7D32); }
.wf-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1100px) { .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .wf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wf-step { grid-template-columns: 30px 1fr; } .wf-step .btn { grid-column: 2; justify-self: start; } }
.wf-card, .wf-hero-text { text-align: left; }
.wf-card .section-title { justify-content: flex-start; }

.wf-details > summary { cursor: pointer; list-style: none; padding: 4px 2px; }
.wf-details > summary::-webkit-details-marker { display: none; }

@media (max-width: 520px) { .wf-step.done .btn { display: none; } }
.wf-card h3, section[aria-label="Your next steps"] h3 { text-align: left; }

.wf-card h2, .wf-card .xs { text-align: left !important; margin: 0; }
.wf-card .row.between > div:first-child { text-align: left; }

/* ===== MENU PLANNER: swap button on each meal card ===== */
.mp-cell { position: relative; }
.mp-swap { position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.92); color: #1f3d2a; box-shadow: 0 4px 12px -4px rgba(0,0,0,.5); opacity: .95; }
.mp-swap:hover { background: #fff; transform: scale(1.08); }
@media (min-width: 900px) { .mp-swap { opacity: 0; } .mp-cell:hover .mp-swap, .mp-swap:focus-visible { opacity: 1; } }
/* Orders grouped by area */
.table tr.area-head > td { background: var(--brand-50); border-top: 2px solid var(--brand); padding-top: 10px; padding-bottom: 10px; }

.wf-progress .progress { height: 12px; }
.wf-progress:hover { border-color: var(--brand); }
.table tr.area-head > td, .wf-progress .grow, .wf-progress { text-align: left; }

/* ===== PIN / UNLOCK SCREEN: who is signing in, clearly visible ===== */
.who { display: flex; gap: 18px; align-items: center; }
.who-avatar { flex: none; width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; font-weight: 800; font-size: 2rem; letter-spacing: .02em;
  color: #fff; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.who-hello { font-size: 1rem; opacity: .9; font-weight: 600; }
.who-name { margin: 2px 0 8px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); overflow-wrap: anywhere; }
.who-role { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .95rem; background: #fff; color: #14532d; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.who-mail { margin-top: 8px; font-size: .95rem; opacity: .85; }
@media (max-width: 520px) { .who-avatar { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 20px; } .who { gap: 14px; } }
@media (min-width: 900px) {
  .auth-card h2 { font-size: 1.6rem; }
  .auth-card .pin-pad button { height: 68px; font-size: 1.6rem; }
  .auth-card .btn-ghost.btn-sm { font-size: .95rem; padding: 10px 14px; font-weight: 700; }
}
/* ===== BIGGER LOGO ===== */
.auth-logo { height: 128px; }
@media (min-width: 900px) { .auth-logo { height: 210px !important; } }
@media (max-width: 380px) { .auth-logo { height: 108px; } }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; padding: 3px; }
.admin-side .brand, .customer-shell .side-nav .brand { font-size: 1.3rem; gap: 12px; }
.admin-side .brand-mark, .customer-shell .side-nav .brand-mark { width: 54px; height: 54px; border-radius: 16px; }
.who-name { background: none !important; text-shadow: none !important; box-shadow: none !important; padding: 0 !important; }

/* ===== ALTERNATING CARD COLOURS (green / amber / blue / violet) on every list, grid and table ===== */
:root { --violet: #7B5CD6; --tint-pct: 10%; }
html[data-theme="dark"] { --violet: #A58BFF; --tint-pct: 16%; }

.page :is(.grid, .stack, .hscroll, .wf-grid, .mp-grid) > :is(.card, .stat, .mp-day):not(.flat):not(.card-hero):not(.card-accent):not(.skeleton):not(.stat.brand):not(.stat.accent):not(.stat.danger):not(.alert) {
  --tint: var(--brand);
  background: linear-gradient(color-mix(in srgb, var(--tint) var(--tint-pct), transparent), color-mix(in srgb, var(--tint) var(--tint-pct), transparent)), var(--card-bg, var(--surface));
  border-color: color-mix(in srgb, var(--tint) 30%, var(--border));
  box-shadow: var(--card-shadow, var(--shadow-sm));
}
.page :is(.grid, .stack, .hscroll, .wf-grid, .mp-grid) > :is(.card, .stat, .mp-day):not(.flat):not(.card-hero):not(.card-accent):not(.skeleton):not(.stat.brand):not(.stat.accent):not(.stat.danger):not(.alert):nth-child(4n+2) { --tint: var(--accent, #F59E0B); }
.page :is(.grid, .stack, .hscroll, .wf-grid, .mp-grid) > :is(.card, .stat, .mp-day):not(.flat):not(.card-hero):not(.card-accent):not(.skeleton):not(.stat.brand):not(.stat.accent):not(.stat.danger):not(.alert):nth-child(4n+3) { --tint: var(--info, #2563EB); }
.page :is(.grid, .stack, .hscroll, .wf-grid, .mp-grid) > :is(.card, .stat, .mp-day):not(.flat):not(.card-hero):not(.card-accent):not(.skeleton):not(.stat.brand):not(.stat.accent):not(.stat.danger):not(.alert):nth-child(4n) { --tint: var(--violet); }

/* Tables: every other row tinted, hover a little stronger */
.table tbody tr:nth-child(even) > td { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.table tbody tr:hover > td { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.table tr.area-head > td { background: var(--brand-50) !important; }
.admin-side .brand { font-size: 1.12rem; gap: 9px; } .admin-side .brand-mark { width: 48px; height: 48px; flex: none; } .admin-side .brand .chip { font-size: .68rem; padding: 2px 8px; }

/* a chip that happens to be coloured brand must not inherit the logo-lockup (.brand) typography */
.chip.brand { font-size: .76rem; font-weight: 750; letter-spacing: 0; gap: 5px; }

/* ===== IN-APP PDF VIEWER (invoices, reports) ===== */
.pdf-viewer { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg, #f3f5f1); }
.pdf-bar { display: flex; align-items: center; gap: 8px; padding: calc(8px + var(--safe-t, 0px)) 12px 8px; background: var(--surface, #fff); border-bottom: 1px solid var(--border, rgba(128,128,128,.25)); box-shadow: 0 2px 10px -6px rgba(0,0,0,.4); }
.pdf-title { flex: 1; min-width: 0; font-weight: 800; }
.pdf-pages { flex: 1; overflow: auto; padding: 14px 12px calc(24px + var(--safe-b, 0px)); background: color-mix(in srgb, var(--text, #222) 12%, var(--bg, #eee)); -webkit-overflow-scrolling: touch; }
.pdf-page { display: block; margin: 0 auto 14px; background: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.55); border-radius: 4px; max-width: none; }
.pdf-msg { text-align: center; padding: 40px 16px; color: var(--muted, #666); }
@media (max-width: 560px) { .pdf-lbl { display: none; } .pdf-bar { gap: 4px; } .pdf-bar .btn { padding: 8px 10px; } }

/* browser print of a PDF: only the rendered pages */
#pdf-print-area { display: none; }
@media print {
  body.printing-pdf > *:not(#pdf-print-area) { display: none !important; }
  body.printing-pdf #pdf-print-area { display: block !important; }
  body.printing-pdf #pdf-print-area img { display: block; width: 100%; page-break-after: always; }
}
/* ===== MENU CARDS: each card gets its own colour; neighbours complement each other (green, amber, blue, violet) ===== */
.menu-hero { --mh: #2E8B4F; --mh-dark: #0B3A1E; }
:is(.grid, .hscroll, .stack) > .menu-hero:nth-child(4n+2) { --mh: #F59E0B; --mh-dark: #5E3205; }
:is(.grid, .hscroll, .stack) > .menu-hero:nth-child(4n+3) { --mh: #3B82F6; --mh-dark: #0F2A5C; }
:is(.grid, .hscroll, .stack) > .menu-hero:nth-child(4n+4) { --mh: #8B5CF6; --mh-dark: #2B1A63; }
.menu-hero::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--mh) 12%, transparent) 0%, color-mix(in srgb, var(--mh-dark) 50%, transparent) 45%, color-mix(in srgb, var(--mh-dark) 94%, transparent) 100%);
}
.menu-hero .bg .fallback { background: radial-gradient(500px 260px at 90% 0%, color-mix(in srgb, var(--mh) 55%, white 10%), transparent 70%), linear-gradient(160deg, var(--mh), var(--mh-dark)); }
.menu-hero { border: 2px solid color-mix(in srgb, var(--mh) 60%, white 10%); box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--mh-dark) 85%, transparent), 0 6px 14px -6px color-mix(in srgb, var(--mh-dark) 55%, transparent); }
.menu-hero .dishes span { background: color-mix(in srgb, var(--mh) 38%, rgba(255,255,255,.12)); border-color: color-mix(in srgb, var(--mh) 55%, rgba(255,255,255,.3)); }
.menu-hero .content::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--mh), color-mix(in srgb, var(--mh) 40%, white)); }
/* the photo must paint above the colour fallback, otherwise only the fallback colour is visible */
.menu-hero .bg img { position: relative; z-index: 1; display: block; }

/* extra items ordered on a calendar day: a count that is visible without tapping */
.cal-day .xtra { position: absolute; top: 3px; left: 4px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .66rem; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(135deg, #F59E0B, #E8590C); box-shadow: 0 2px 6px -2px rgba(0,0,0,.45); cursor: pointer; }
.cal-day .xtra:hover { transform: scale(1.12); }
.cal-day .xtra { top: -7px; left: -5px; min-width: 19px; height: 17px; font-size: .62rem; border: 2px solid var(--surface, #fff); box-sizing: content-box; z-index: 2; }

/* browser QR scanner overlay */
.qr-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; }
.qr-scan { width: min(94vw, 520px); background: #111; color: #fff; border-radius: 22px; padding: 14px; text-align: center; position: relative; }
.qr-scan video { width: 100%; max-height: 60vh; object-fit: cover; border-radius: 16px; background: #000; }
.qr-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.qr-msg { margin: 10px 0; font-size: .9rem; opacity: .85; }
.qr-frame { position: absolute; left: 50%; top: 52%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid #7BE495; border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0,0,0,.25); pointer-events: none; }
.qr-cancel { background: #fff; color: #111; }
/* ---------- menu card showcase (login screen + customer home) ---------- */
.menu-show { margin-top: 22px; width: 100%; }
.menu-show .ms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.menu-show .ms-title { display: flex; flex-direction: column; line-height: 1.25; }
.menu-show .ms-sub { font-size: .78rem; opacity: .8; }
.ms-tools { display: inline-flex; gap: 6px; align-items: center; }
.ms-vbar .ms-tools { display: flex; flex-wrap: wrap; width: 100%; }
.ms-btn { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14); color: inherit; font: inherit; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ms-btn:hover:not(:disabled) { background: rgba(255,255,255,.26); }
.ms-btn:disabled { opacity: .4; cursor: default; }
.ms-btn.wide { min-width: 78px; }
.ms-window { --mh: 300px; overflow: hidden; border-radius: 16px; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ms-window.s0 { --mh: 220px; } .ms-window.s2 { --mh: 400px; }
.ms-track { display: flex; gap: 14px; width: max-content; animation: ms-scroll 38s linear infinite; padding: 4px 0; }
.ms-track.paused, .ms-window:hover .ms-track { animation-play-state: paused; }
.ms-page { flex: none; padding: 0; border: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); transition: transform .2s; }
.ms-page:hover { transform: translateY(-3px); }
.ms-page img { display: block; height: var(--mh); width: auto; aspect-ratio: 768 / 1029; transition: height .2s; }
@keyframes ms-scroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .ms-track { animation: none; overflow-x: auto; } .ms-window { overflow-x: auto; } }
.menu-show.compact { margin-top: 16px; color: var(--text); }
.menu-show.compact .ms-btn { border-color: var(--border); background: var(--surface); }
.menu-show.compact .ms-btn:hover:not(:disabled) { background: var(--surface-2, var(--border)); }
.menu-show.compact .ms-window { --mh: 240px; } .menu-show.compact .ms-window.s0 { --mh: 180px; } .menu-show.compact .ms-window.s2 { --mh: 340px; }
.auth-hero .menu-show { color: #fff; }

.ms-viewer { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: 3000; background: #080c09; display: flex; flex-direction: column; color: #fff; outline: 0; padding: var(--safe-t, 0) 0 var(--safe-b, 0); }
.ms-vbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.ms-canvas { flex: 1; overflow: auto; padding: 4px 12px 12px; touch-action: pan-x pan-y pinch-zoom; }
.ms-canvas img { display: block; margin: 0 auto; background: #fff; border-radius: 8px; max-width: none; height: auto; width: calc(min(100%, (100dvh - 130px) * .7464) * var(--z, 1)); box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.ms-hint { text-align: center; font-size: .75rem; opacity: .7; padding: 0 12px 10px; }
.auth-menu-desktop { display: none; }
.auth-menu-mobile { padding: 0 16px 28px; max-width: 520px; width: 100%; justify-self: center; }
@media (min-width: 900px) {
  .auth-menu-desktop { display: block; margin-top: 8px; }
  .auth-menu-mobile { display: none; }
  .auth-hero .menu-show .ms-window { --mh: 270px; } .auth-hero .menu-show .ms-window.s0 { --mh: 200px; } .auth-hero .menu-show .ms-window.s2 { --mh: 380px; }
}
@media (min-width: 900px) {
  .auth-hero { padding: 32px 48px; }
  .auth-hero .menu-show { margin-top: 14px; }
  .auth-hero .menu-show .ms-window { --mh: 230px; } .auth-hero .menu-show .ms-window.s0 { --mh: 170px; } .auth-hero .menu-show .ms-window.s2 { --mh: 330px; }
}
@media (min-width: 900px) and (max-height: 980px) { .auth-hero .feature-list { display: none; } }
/* planner: lunch and dinner of one day are the same box - stays highlighted until one of them is changed */
.mp-day.dup { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn); }
.mp-dup-note { display: flex; gap: 8px; align-items: center; padding: 8px 10px; margin: 8px 0; border-radius: var(--radius-sm, 10px); background: var(--warn-50); color: var(--warn); font-size: .82rem; font-weight: 600; border: 1px solid var(--warn); }
.mp-cell.dup .mp-meal { background: var(--warn-50); box-shadow: inset 0 0 0 2px var(--warn); }
.mp-cell.dup .mp-title { color: var(--warn); }
/* ---------- notification centre ---------- */
.ntf-bell { position: relative; }
.ntf-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--surface); }
.ntf-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border-strong); border-radius: var(--radius-sm, 12px); position: relative; }
.ntf-card.clickable { cursor: pointer; }
.ntf-card.clickable:hover { box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.08)); }
.ntf-card.unread { background: var(--accent-50); }
.ntf-card.sev-success { border-left-color: var(--brand, #2E7D32); }
.ntf-card.sev-warning { border-left-color: var(--warn); }
.ntf-card.sev-danger { border-left-color: var(--danger); }
.ntf-card.sev-info { border-left-color: var(--border-strong); }
.ntf-ic { flex: none; }
.ntf-body { white-space: pre-line; word-break: break-word; }
.ntf-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.ntf-x { flex: none; width: 32px; height: 32px; min-height: 32px; opacity: .5; }
.ntf-x:hover { opacity: 1; }

/* ---------- the single timeline of an order ---------- */
/* the order journey: one row, an icon and ONE short word per step, the time under it */
.tl { display: flex; align-items: flex-start; margin: 6px 0; }
.tl-step { flex: 1 1 0; min-width: 0; text-align: center; position: relative; padding: 0; }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--border-strong); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before { background: var(--brand, #2E7D32); }
.tl-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 4px; display: grid; place-items: center; font-size: 1.05rem; line-height: 1; background: var(--surface); border: 2px solid var(--border-strong); }
.tl-step:not(.done):not(.current) .tl-dot { filter: grayscale(1); opacity: .5; }
.tl-step.done .tl-dot { background: color-mix(in srgb, var(--brand, #2E7D32) 18%, var(--surface)); border-color: var(--brand, #2E7D32); }
.tl-step.current .tl-dot { border-color: var(--accent); animation: tl-pulse 1.6s ease-in-out infinite; }
.tl-step.bad .tl-dot { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); border-color: var(--danger); }
.tl-label { font-size: .62rem; font-weight: 800; line-height: 1.15; white-space: nowrap; letter-spacing: -.2px; }
.tl-step:not(.done):not(.current) .tl-label { color: var(--muted); font-weight: 600; }
.tl-time { font-size: .64rem; color: var(--muted); white-space: nowrap; min-height: 1em; }
.tl.compact .tl-dot { width: 28px; height: 28px; font-size: .95rem; margin-bottom: 0; } .tl.compact .tl-step::before { top: 13px; }
.tl.compact .tl-label, .tl.compact .tl-time { display: none; }
.tl-now { margin-top: 6px; font-size: .9rem; }
.tl-clock { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: .85rem; background: var(--surface-2); }
.tl-clock.live { background: var(--accent-50); color: var(--accent-700); }
.tl-clock.stopped { background: color-mix(in srgb, var(--brand, #2E7D32) 12%, var(--surface)); }
@keyframes tl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,165,22,.5); } 50% { box-shadow: 0 0 0 6px rgba(242,165,22,0); } }
@media (prefers-reduced-motion: reduce) { .tl-step.current .tl-dot { animation: none; } }
.rate-star.sm { font-size: 1.4rem; min-width: 34px; min-height: 36px; }
.text-bad { color: var(--danger); font-weight: 700; } .text-good { color: var(--brand, #2E7D32); font-weight: 700; }
.row-bad td { background: var(--danger-50); }
.stat { padding: 14px 16px; } .stat-v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
/* "Install the Android app" on the website sign-in page */
.auth-app { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius, 14px); background: var(--surface-2); }
.auth-app-qr { flex: none; line-height: 0; }
@media (max-width: 520px) { .auth-app { flex-direction: column; text-align: center; } }
/* (i) help bubbles */
.info-tip { position: relative; display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; cursor: help; outline: none; }
.info-tip-i { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--primary, #1f9d55); color: var(--primary, #1f9d55); font: 700 11px/14px Georgia, serif; text-align: center; background: transparent; user-select: none; }
.info-tip:hover .info-tip-i, .info-tip:focus .info-tip-i { background: var(--primary, #1f9d55); color: #fff; }
.info-tip-text { position: absolute; z-index: 60; left: -8px; top: calc(100% + 8px); width: max-content; max-width: min(300px, 78vw); padding: 10px 12px; border-radius: 10px; background: var(--surface-inverse, #1c2b22); color: var(--on-inverse, #f4faf6); font: 500 12.5px/1.45 var(--font, system-ui); box-shadow: 0 10px 30px rgba(0,0,0,.28); white-space: normal; text-align: left; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .12s, transform .12s; pointer-events: none; font-weight: 500; }
.info-tip.right .info-tip-text { left: auto; right: -8px; }
.info-tip:hover .info-tip-text, .info-tip:focus .info-tip-text, .info-tip:focus-within .info-tip-text { opacity: 1; visibility: visible; transform: none; }
[data-theme="dark"] .info-tip-text, .dark .info-tip-text { background: #e8f3ec; color: #14231a; }
/* page titles that carry an (i) help bubble keep it next to the title */
h1.page-title { justify-content: flex-start; gap: 2px; }

/* ---------- the MCB (operations kill switch) ---------- */
.mcb-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.mcb { font-size: 11px; appearance: none; border: 0; padding: 0; background: none; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; gap: .35em; width: 5.6em; padding: .55em .5em .6em; border-radius: .9em;
  background: linear-gradient(180deg, #f4f6f5, #d5dbd8); box-shadow: inset 0 .15em 0 #fff, inset 0 -.2em .4em rgba(0,0,0,.12), 0 .4em 1em rgba(0,0,0,.2); outline: 2px solid #9aa5a0; outline-offset: -2px; color: #243029; }
.mcb:focus-visible { outline: 3px solid var(--brand, #1f9d55); }
.mcb:disabled { opacity: .6; cursor: wait; }
.mcb-top { font: 800 1.05em/1 var(--font, system-ui); letter-spacing: .08em; }
.mcb.on .mcb-top { color: #12823f; } .mcb.off .mcb-top { color: #c62d22; }
.mcb-slot { position: relative; display: block; width: 3.2em; height: 5.4em; border-radius: .5em; background: #1f2623; box-shadow: inset 0 .25em .5em rgba(0,0,0,.7); }
.mcb-lever { position: absolute; left: .3em; right: .3em; top: .3em; height: 2.5em; border-radius: .4em; transition: top .2s cubic-bezier(.3,1.5,.5,1), background .2s;
  background: linear-gradient(180deg, #6fdc97, #1f9d55); box-shadow: 0 .2em .35em rgba(0,0,0,.5), inset 0 .1em 0 rgba(255,255,255,.5); }
.mcb-lever::after { content: ""; position: absolute; left: 25%; right: 25%; top: 50%; height: .25em; border-radius: .2em; background: rgba(255,255,255,.55); }
.mcb.off .mcb-lever { top: 2.6em; background: linear-gradient(180deg, #ff8a80, #d93a2f); }
.mcb-led { width: .7em; height: .7em; border-radius: 50%; background: #1fd16b; box-shadow: 0 0 .7em #1fd16b; }
.mcb.off .mcb-led { background: #ff3b30; box-shadow: 0 0 .9em #ff3b30; animation: mcb-blink 1.2s ease-in-out infinite; }
@keyframes mcb-blink { 50% { opacity: .35; } }
.mcb.large { font-size: 20px; }
.mcb-caption { font: 800 .95rem/1 var(--font, system-ui); letter-spacing: .12em; padding: .45em .9em; border-radius: 999px; color: #fff; }
.mcb-caption.on { background: #1f9d55; } .mcb-caption.off { background: #d93a2f; }
.admin-top .mcb { font-size: 5.5px; }
.customer-shell.has-cart-bar .page { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 96px); }
.ops-banner { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin: 0 0 12px; border-radius: 12px; background: #d93a2f; color: #fff; box-shadow: 0 4px 14px rgba(217,58,47,.35); }
.ops-banner .small { opacity: .95; }
.ops-icon { font-size: 1.6rem; line-height: 1; }
/* ---------- carrier picker (subscription) ---------- */
.carrier-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.carrier { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: center; color: inherit; }
.carrier img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #fff; }
.carrier.on { border-color: var(--brand, #1f9d55); box-shadow: 0 6px 18px -10px var(--brand, #1f9d55); background: var(--brand-50, #eaf7ee); }
@media (max-width: 520px) { .carrier-pick { gap: 8px; } .carrier img { width: 64px; height: 64px; } }
/* ---------- offers on the first screens ---------- */
.offers { display: grid; gap: 8px; margin: 0 0 12px; }
.offer-card { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 16px; color: #3d2600; background: linear-gradient(135deg, #ffd27a, #f6a722); box-shadow: 0 8px 20px -12px rgba(200,120,0,.8); animation: offer-glow 3.5s ease-in-out infinite alternate; }
.offer-gift { font-size: 1.6rem; line-height: 1; }
@keyframes offer-glow { to { box-shadow: 0 10px 26px -8px rgba(246,167,34,.95); } }
@media (prefers-reduced-motion: reduce) { .offer-card { animation: none; } }
.auth-offers { padding: 10px 16px 0; max-width: 1020px; margin: 0 auto; }
@media (min-width: 900px) { .auth-offers { padding-top: 16px; } }

.auth-offers { width: min(1020px, 100%); box-sizing: border-box; }

/* ---------- monthly plans, coupons and the launching-offers rail ---------- */
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.plan-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 12px 12px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: inherit; cursor: pointer; text-align: left; }
.plan-card.on { border-color: var(--brand, #1f9d55); background: var(--brand-50, #eaf7ee); box-shadow: 0 6px 18px -10px var(--brand, #1f9d55); }
.plan-card:focus-visible { outline: 3px solid var(--brand, #1f9d55); outline-offset: 2px; }
.plan-badge { position: absolute; top: -9px; right: 10px; padding: 1px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: #f6a722; color: #3d2600; }
.plan-price { font-size: 1.05rem; margin-top: 4px; } .plan-price b { font-size: 1.35rem; font-weight: 850; } .plan-price s { opacity: .6; margin-right: 4px; }
.plan-code { color: #b36b00; font-weight: 750; }
[data-theme="dark"] .plan-code, .dark .plan-code { color: #ffc766; }
.coupon-box { padding: 12px; border-radius: 14px; border: 1px dashed #e2a93a; background: rgba(246,167,34,.08); }
.coupon-chip { padding: 5px 12px; border-radius: 999px; border: 1px dashed #d99a1f; background: #fff7e0; color: #7a4a00; font-size: .8rem; cursor: pointer; }
.coupon-chip.on { background: #f6a722; color: #3d2600; border-style: solid; }
.coupon-code { padding: 3px 10px; border-radius: 8px; border: 1px dashed #d99a1f; background: #fff7e0; color: #7a4a00; font: 800 .9rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.coupon-row { padding: 10px 0; border-top: 1px solid var(--border); } .coupon-row.off { opacity: .6; }
.chk { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer; }
/* menu card */
.menu-card-btn { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--brand, #1f9d55); background: var(--surface, #fff); color: var(--brand, #1f9d55); font-weight: 750; cursor: pointer; }
.menu-card-btn.wide { display: flex; width: 100%; justify-content: center; }
.mc-pages { display: grid; gap: 18px; } .mc-page { margin: 0; }
.mc-view { margin-top: 6px; overflow: auto; max-height: 78vh; border-radius: 14px; border: 1px solid var(--border); background: #fff; cursor: zoom-in; -webkit-overflow-scrolling: touch; }
.mc-view img { display: block; width: 100%; height: auto; } .mc-view.zoom { cursor: zoom-out; } .mc-view.zoom img { width: 220%; max-width: none; }
.mc-row { display: flex; gap: 14px; align-items: flex-start; } .mc-row.off { opacity: .65; }
.mc-thumb { flex: none; width: 110px; height: 140px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: block; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 520px) { .mc-row { flex-direction: column; } .mc-thumb { width: 100%; height: 180px; } }
/* ---------- "Offers for you": a plain row of coupon cards you swipe by hand (no moving parts) ---------- */
.offers-for-you { margin: 0 0 14px; }
.ofy-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.ofy-head h2 { font-size: 1.05rem; margin: 0; }
.ofy-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ofy-row::-webkit-scrollbar { display: none; }
.ofy-tile { flex: 0 0 min(72%, 220px); scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border-radius: 16px; text-align: left; color: #3d2600; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ffe3a3, #ffc15a); box-shadow: 0 6px 16px -10px rgba(200,120,0,.8); font: inherit; }
.ofy-tile:disabled { cursor: default; background: var(--surface, #fff); color: inherit; border: 1px solid var(--border, #e3e8e5); box-shadow: var(--shadow-sm); opacity: 1; }
.ofy-meals { font-size: 1.15rem; line-height: 1; }
.ofy-name { font-weight: 800; font-size: .95rem; line-height: 1.2; }
.ofy-price { font-size: .95rem; margin-top: 2px; } .ofy-price b { font: 900 1.5rem/1.1 var(--font, system-ui); } .ofy-price s { opacity: .6; margin-right: 4px; }
.ofy-save { font-size: .8rem; font-weight: 700; }
.ofy-code { margin-top: 3px; padding: 2px 10px; border-radius: 8px; border: 1.5px dashed rgba(61,38,0,.55); font: 800 .8rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.ofy-tile:focus-visible { outline: 3px solid var(--brand, #1f9d55); outline-offset: 2px; }
@media (min-width: 900px) { .ofy-tile { flex: 1 1 0; min-width: 200px; } }
/* ---------- menu tile: the photo stays fully visible, the details sit below it ---------- */
.menu-tile { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.menu-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mt-photo { position: relative; aspect-ratio: 16 / 10; background: var(--brand-50); overflow: hidden; }
.mt-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; opacity: .5; }
.mt-photo img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.mt-slot { position: absolute; z-index: 2; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.mt-special { position: absolute; z-index: 2; top: 10px; right: 10px; }
.mt-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.mt-title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.mt-dishes { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-dishes span { padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--brand-50); color: var(--text); border: 1px solid var(--border); }
.mt-price { margin-top: 2px; } .mt-price b { font-size: 1.1rem; }
/* the monthly plans card follows the light / dark theme like every other card */
.plans-card { border: 1px solid color-mix(in srgb, #f6a722 55%, var(--border)); box-shadow: 0 8px 22px -16px rgba(246,167,34,.8); }
.plans-card .plan-card { background: var(--surface); color: var(--text); }
.plans-card .plan-card.on { background: var(--brand-50); }
.plans-card .coupon-box { background: color-mix(in srgb, #f6a722 10%, var(--surface)); color: var(--text); }
.plans-card .coupon-chip { background: color-mix(in srgb, #f6a722 18%, var(--surface)); color: var(--text); }
.plans-card .coupon-chip.on { background: #f6a722; color: #3d2600; }
/* menu card viewer: "Fit width" makes the page fill the whole screen width (scroll down to read), whatever the screen */
.ms-canvas.fitw img { width: calc((100% - 0px) * var(--z, 1)); }
.ms-viewer:fullscreen { background: #080c09; }
.ms-vbar { position: sticky; top: 0; z-index: 2; background: #080c09; }
/* waiting company on slow connections */
.loading-wait { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 18px auto 0; padding: 12px 16px; max-width: 420px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--border, #e1e8db); box-shadow: var(--shadow-sm); text-align: left; }
.offline-banner .spinner { flex: none; }
/* the loader: tiffin icon in the middle of a round progress ring */
.tb-loader-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 0; }
.tb-loader { position: relative; width: 76px; height: 76px; }
.tb-ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--brand, #1f9d55) 18%, transparent); border-top-color: var(--brand, #1f9d55); animation: spin .9s linear infinite; }
.tb-icon { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; border-radius: 12px; animation: tb-pulse 1.6s ease-in-out infinite; }
.tb-loading-text { font-size: .85rem; color: var(--muted, #66786b); letter-spacing: .04em; }
@keyframes tb-pulse { 50% { transform: scale(.92); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .tb-ring, .tb-icon { animation: none !important; } }
/* today's meals: where each one is */
.mt-status { position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mt-status.done { background: #1f9d55; } .mt-status.go { background: #e8590c; } .mt-status.soon { background: #3b82f6; } .mt-status.warn { background: #d93a2f; }
/* my orders: rich cards, and (wide screens) the chosen order with its timeline on the right */
.order-card { padding: 12px 14px; }
.oc-row { display: flex; gap: 12px; align-items: flex-start; }
.oc-thumb { flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; font-size: 2rem; background: var(--brand-50, #e8f5e9); }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.oc-title { display: flex; gap: 6px; align-items: center; font-weight: 750; }
.oc-dishes { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-foot { margin-top: 2px; }
.order-card.selected { border-color: var(--brand, #1f9d55); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #1f9d55) 35%, transparent), var(--shadow-sm); }
.orders-pane { display: none; }
@media (min-width: 1000px) {
  .orders-split { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 22px; align-items: start; }
  .orders-pane { display: block; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; }
  .order-pane > .card:first-of-type, .order-pane > .row:first-child { margin-top: 0; }
}
@media (max-width: 520px) { .oc-thumb { width: 72px; height: 72px; } }.oc-thumb { position: relative; }
.oc-emoji { position: absolute; inset: 0; display: grid; place-items: center; }
.oc-thumb img { position: relative; z-index: 1; }
/* home, in the manner of a food-delivery app: delivery place + search, then "What's on your mind?" */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.home-loc { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; color: inherit; padding: 6px 10px 6px 6px; border-radius: 14px; }
.home-loc:hover { background: var(--brand-50, #e8f5e9); }
.home-loc > svg:first-child { color: var(--brand, #1f9d55); flex: none; }
.home-loc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .home-loc-text b { max-width: 46vw; }
.home-search { position: relative; margin: 0 0 14px; }
.home-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted, #66786b); display: grid; }
.home-search input { width: 100%; box-sizing: border-box; padding: 13px 16px 13px 44px; border-radius: 16px; border: 1px solid var(--border, #e1e8db); background: var(--surface, #fff); color: inherit; font: inherit; box-shadow: var(--shadow-sm); }
.home-search input:focus { outline: 3px solid color-mix(in srgb, var(--brand, #1f9d55) 40%, transparent); border-color: var(--brand, #1f9d55); }
.cat-row { margin: 4px 0 14px; } .cat-title { font-size: 1.05rem; margin: 0 2px 8px; }
.cat-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.cat-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); transition: transform .12s ease; }
.cat:hover .cat-icon, .cat:focus-visible .cat-icon { transform: translateY(-2px) scale(1.04); }
.cat-label { font-size: .78rem; font-weight: 650; text-align: center; line-height: 1.15; }
[data-theme="dark"] .cat-icon, .dark .cat-icon { filter: saturate(.85) brightness(.92); }
.home-search input[type=search] { padding-left: 48px; }
/* amber: something repeats from yesterday's menu */
.chip.amber { background: var(--accent-50); color: var(--warn); border: 1px solid var(--accent); }
.alert.amber { background: var(--accent-50); border: 1px solid var(--accent); color: inherit; }
.rep-dish { background: color-mix(in srgb, var(--accent) 35%, transparent); color: inherit; font-weight: 700; border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* Attention hover: any card (catalogue, ala-carte, snacks, dashboards, lists...) pops up and is highlighted for as long as the pointer is on it.
   Not in the weekly menu planner (it has its own behaviour for overlapping meals, page class no-pop) and not inside dialogs. Only for devices that can hover. */
@media (hover: hover) {
  :is(.food-card, .menu-tile, .stat, .order-card, .ntf-card, .card.clickable, .card-accent.clickable, .card.flat, .grid > .card, .grid > .stat):not(.no-pop *, .modal *, [role="dialog"] *):hover {
    transform: translateY(-6px) scale(1.025);
    position: relative; z-index: 5;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent), 0 0 26px 3px color-mix(in srgb, var(--brand) 45%, transparent), 0 20px 36px -12px rgba(0, 0, 0, .35);
  }
  :is(.food-card, .menu-tile, .stat, .order-card, .ntf-card, .card, .card-accent):not(.no-pop *, .modal *, [role="dialog"] *) { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; animation-fill-mode: backwards; }   /* the entrance animation must not keep holding the transform once it has finished */
}

/* the green vegetarian mark on every food photo (bottom right); smaller on thumbnails */
.food-img .veg-on-photo { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 20px; height: 20px; border-radius: 4px; box-shadow: 0 1px 5px rgba(0,0,0,.4); }
.food-img .veg-on-photo::after { width: 10px; height: 10px; }
.food-img.sq .veg-on-photo, .food-img.round .veg-on-photo { right: 3px; bottom: 3px; width: 13px; height: 13px; border-width: 1.5px; border-radius: 3px; }
.food-img.sq .veg-on-photo::after, .food-img.round .veg-on-photo::after { width: 6px; height: 6px; }
.veg-note { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .72rem; letter-spacing: .02em; }

/* ===== Colour themes (palettes). Classic Green is the default and needs no attribute. Each palette sets only its main and second colour; everything else is derived.
   The green vegetarian mark (.veg) and the "pure veg" pills keep their own green in every theme. ===== */
html[data-palette="saffron"] { --brand: #E8740C; --accent: #2E7D32; --on-brand: #FFFFFF; }
html[data-palette="ocean"]   { --brand: #1565C0; --accent: #F2A516; --on-brand: #FFFFFF; }
html[data-palette="royal"]   { --brand: #6A3DB8; --accent: #F2A516; --on-brand: #FFFFFF; }
html[data-palette="rose"]    { --brand: #C2185B; --accent: #F2A516; --on-brand: #FFFFFF; }
html[data-palette="slate"]   { --brand: #455A64; --accent: #F2A516; --on-brand: #FFFFFF; }
html[data-palette="saffron"][data-theme="dark"] { --brand: #FF9A3C; --accent: #58C25D; --on-brand: #1A0E00; }
html[data-palette="ocean"][data-theme="dark"]   { --brand: #5AA9FF; --accent: #FFC24A; --on-brand: #04122A; }
html[data-palette="royal"][data-theme="dark"]   { --brand: #B39DFF; --accent: #FFC24A; --on-brand: #140A2E; }
html[data-palette="rose"][data-theme="dark"]    { --brand: #FF6FA3; --accent: #FFC24A; --on-brand: #2B0613; }
html[data-palette="slate"][data-theme="dark"]   { --brand: #A9BDC7; --accent: #FFC24A; --on-brand: #0B1418; }

html[data-palette] {
  --brand-600: color-mix(in srgb, var(--brand) 88%, #000);
  --brand-700: color-mix(in srgb, var(--brand) 72%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --brand-100: color-mix(in srgb, var(--brand) 20%, var(--surface));
  --accent-50: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --accent-700: color-mix(in srgb, var(--accent) 60%, #000);
  --bg: color-mix(in srgb, var(--brand) 5%, #F6F6F3);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
  --brand-grad: linear-gradient(135deg, color-mix(in srgb, var(--brand) 80%, #fff) 0%, var(--brand) 50%, var(--brand-700) 100%);
  --brand-glow: 0 10px 26px -8px color-mix(in srgb, var(--brand) 55%, transparent), 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent);
  --accent-grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 80%, #000) 100%);
  --accent-glow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  --hero: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 60%, color-mix(in srgb, var(--brand-700) 65%, #000) 100%);
  --bg-grad: radial-gradient(900px 520px at 8% -8%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%), radial-gradient(800px 480px at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 58%);
  --success: #2E7D32; --success-50: #E8F5E9;
}
html[data-palette][data-theme="dark"] {
  --brand-600: color-mix(in srgb, var(--brand) 90%, #fff);
  --brand-700: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-50: color-mix(in srgb, var(--brand) 14%, transparent);
  --brand-100: color-mix(in srgb, var(--brand) 24%, transparent);
  --accent-50: color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-700: color-mix(in srgb, var(--accent) 70%, #fff);
  --bg: color-mix(in srgb, var(--brand) 7%, #060606);
  --surface: color-mix(in srgb, var(--brand) 5%, #101010);
  --hero: linear-gradient(140deg, color-mix(in srgb, var(--brand) 55%, #000) 0%, color-mix(in srgb, var(--brand) 38%, #000) 55%, color-mix(in srgb, var(--brand) 22%, #000) 100%);
  --bg-grad: radial-gradient(900px 560px at 6% -10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%), radial-gradient(760px 520px at 100% 4%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%);
  --success: #6FCF74; --success-50: rgba(70, 208, 122, .13);
}
html[data-palette][data-theme="dark"] .card-hero, html[data-palette][data-theme="dark"] .btn-primary { color: var(--on-brand); }

/* the owner's console can be enlarged for big monitors (Appearance > Size of the console) */
.admin-main > main { zoom: var(--ui-zoom, 1); }

.palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.palette-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: inherit; cursor: pointer; font: inherit; }
.palette-tile:hover { border-color: var(--brand); }
.palette-tile.active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.palette-swatch { display: block; width: 100%; height: 36px; border-radius: 8px; }
.seg.wrap { flex-wrap: wrap; }

/* menu card viewer on small screens: the Close button has a row of its own, so it can never be pushed off the screen; the tools wrap below */
.ms-viewer { width: 100%; max-width: 100%; overflow: hidden; }
.ms-vbar { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ms-vtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.ms-close { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: #111; font: inherit; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: none; }

/* the tiffin-carrier choice: two equal columns that can shrink, long lines wrap instead of pushing the page wider than the screen */
.carrier-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carrier { min-width: 0; overflow-wrap: anywhere; }
.carrier .chip { white-space: normal; text-align: center; max-width: 100%; }

/* ===== The sign-in and unlock screens fit the screen: no scrolling. The offers are shown after sign-in (Home), not here. ===== */
.auth-app-mini { display: none; }
@media (min-width: 900px) {
  .auth-layout { height: 100dvh; min-height: 0; padding: clamp(8px, 2.2vh, 28px) 24px; overflow: hidden; }
  .auth-layout .auth-wrap { height: 100%; max-height: 900px; }
  .auth-layout .auth-hero { padding: clamp(14px, 3.6vh, 48px) 40px; overflow: hidden; }
  .auth-layout .auth-logo { height: clamp(64px, 17vh, 170px) !important; }
  .auth-layout .auth-hero h1 { font-size: clamp(1.4rem, 3.7vh, 2.1rem); margin: clamp(6px, 1.4vh, 14px) 0 4px; }
  .auth-layout .auth-hero .menu-show { margin-top: clamp(8px, 1.6vh, 22px); }
  .auth-layout .auth-hero .menu-show .ms-window { --mh: clamp(100px, 20vh, 230px); }
  .auth-layout .auth-hero .menu-show .ms-window.s0 { --mh: clamp(80px, 15vh, 170px); }
  .auth-layout .auth-hero .menu-show .ms-window.s2 { --mh: clamp(130px, 27vh, 330px); }
  .auth-layout .auth-card { padding: clamp(14px, 3vh, 40px) 40px; gap: clamp(8px, 1.6vh, 16px); overflow-y: auto; }
  .auth-layout .auth-card .qr-box { transform-origin: left center; }
  .auth-layout .auth-app { padding: clamp(8px, 1.6vh, 14px); }
  .auth-layout .auth-app-qr svg { width: clamp(70px, 15vh, 132px); height: auto; }
  .auth-layout .auth-app-qr .qr-box { width: auto !important; padding: clamp(6px, 1.2vh, 14px); }
}
@media (min-width: 900px) and (max-height: 820px) {
  .auth-layout .auth-card .alert.info { display: none; }
  .auth-layout .auth-app .small.muted { display: none; }
  .auth-layout .auth-hero p { display: none; }
}
@media (max-width: 899px) {
  .auth-layout { height: 100dvh; min-height: 0; overflow: hidden; }
  .auth-layout .auth-wrap { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .auth-layout .auth-hero { flex: none; padding: calc(10px + var(--safe-t, 0px)) 18px 36px; }
  .auth-layout .auth-logo { height: clamp(44px, 8dvh, 64px) !important; }
  .auth-layout .auth-hero h1 { font-size: 1.2rem; margin: 6px 0 0; }
  .auth-layout .auth-hero p { display: none; }
  .auth-layout .auth-hero .mt-4 { margin-top: 6px; }
  .auth-layout .auth-card { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: -26px 12px 6px; padding: 14px; gap: 10px; width: auto; max-width: none; }
  .auth-layout .auth-card .alert.info { display: none; }
  .auth-layout .auth-app { display: none; }
  .auth-layout .auth-menu-mobile { display: grid; gap: 4px; flex: none; padding: 0 12px calc(8px + var(--safe-b, 0px)); max-width: none; width: 100%; box-sizing: border-box; }
  .auth-layout .auth-app-mini { display: inline-flex; }
}

/* ===== Quick actions on the customer Home: proper buttons ===== */
.qa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa-btn { --c1: var(--brand); --c2: var(--brand-700); --fg: #fff; position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--fg);
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c1) 80%, #000), 0 1px 0 rgba(255,255,255,.35) inset; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.qa-btn::after { content: ""; position: absolute; right: -26px; top: -26px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); pointer-events: none; }
.qa-btn:hover, .qa-btn:focus-visible { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 30px -12px color-mix(in srgb, var(--c1) 90%, #000), 0 0 0 3px color-mix(in srgb, var(--c1) 35%, transparent); filter: saturate(1.1); }
.qa-btn:active { transform: scale(.98); }
.qa-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.22); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset; }
.qa-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.qa-tx b { font-size: 1.02rem; font-weight: 800; letter-spacing: .01em; }
.qa-tx small { font-size: .74rem; font-weight: 600; opacity: .88; margin-top: 2px; }
.qa-go { margin-left: auto; flex: none; opacity: .85; }
.qa-brand  { --c1: var(--brand); --c2: var(--brand-700); }
.qa-accent { --c1: #F5A524; --c2: #E8780C; --fg: #2A1600; }
.qa-info   { --c1: #3B82F6; --c2: #1D4ED8; }
.qa-violet { --c1: #8B5CF6; --c2: #6D28D9; }
html[data-theme="dark"] .qa-brand { --fg: var(--on-brand); }
@media (max-width: 420px) { .qa-btn { padding: 10px 10px; gap: 8px; min-height: 68px; } .qa-ic { width: 38px; height: 38px; } .qa-tx b { font-size: .92rem; } .qa-tx small { display: none; } .qa-go { display: none; } }

/* website QR card (Profile / account pages in the app) */
.web-card { display: flex; gap: 16px; align-items: center; }
.web-qr { flex: none; line-height: 0; }
.web-tx { min-width: 0; flex: 1; }
@media (max-width: 460px) { .web-card { flex-direction: column; text-align: center; align-items: center; } .web-tx { align-items: center; } }

/* Unlock screen: the install QR sits in the left (green) panel on computers, a small button under the card on phones */
.auth-hero-app { display: none; }
@media (min-width: 900px) {
  .auth-hero-app { display: block; margin-top: clamp(10px, 3vh, 28px); max-width: 460px; }
  .auth-hero-app .auth-app { background: rgba(255,255,255,.95); color: #1b2a1f; border-style: solid; border-color: rgba(255,255,255,.6); }
  .auth-hero-app .auth-app .muted { color: #55655a; }
  .auth-layout .auth-menu-mobile:has(.auth-app-mini) { display: none; }
}

/* food information: allergens, Jain, calories */
.diet { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; }
.diet.compact .chip { font-size: .68rem; padding: 2px 8px; }
.diet .chip.danger { box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 40%, transparent); }

/* help requests */
.ticket-thread { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.tt-msg { max-width: 88%; display: flex; flex-direction: column; gap: 3px; }
.tt-msg.left { align-self: flex-start; } .tt-msg.right { align-self: flex-end; align-items: flex-end; }
.tt-who { font-size: .72rem; color: var(--text-3, var(--text-2)); }
.tt-body { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tt-msg.staff .tt-body { background: var(--brand-50); color: var(--text); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.tt-msg.right:not(.staff) .tt-body { background: var(--surface); border: 1px solid var(--border-strong); }

/* keyboard focus on cards and calendar days that act as buttons, and on the dialog itself */
[role=button]:focus-visible { border-radius: inherit; }
.cal-day:focus-visible { position: relative; z-index: 1; }
.modal:focus, .modal:focus-visible { outline: none; box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.25)); }

/* update offer for the Android app */
.update-banner { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.25)); }

/* the running plan at the top of My tiffin plan */
.active-plan { border-color: var(--brand); box-shadow: var(--brand-glow, none); }
.ap-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-stat { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }

/* pull down to refresh */
.ptr { position: fixed; top: env(safe-area-inset-top, 0px); left: 50%; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; z-index: 400; opacity: 0; transform: translate(-50%, -60px); pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 6px 20px rgba(0,0,0,.2); transition: opacity .15s; }
.ptr-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--brand); transition: transform .15s; }
.ptr.ready .ptr-dot { border-color: var(--brand); transform: scale(1.15); }
.ptr.loading { transition: opacity .15s, transform .2s; } .ptr.loading .ptr-dot { border-top-color: var(--brand); animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr.loading .ptr-dot { animation-duration: 2s; } }

/* text-like buttons for links that open the public website */
.linklike { background: none; border: 0; padding: 4px 2px; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike:hover { color: var(--accent, var(--brand)); }

/* sign-in screens: the light card as always, on a near-black backdrop with a soft green and saffron glow */
.auth-layout { background: radial-gradient(900px 560px at 88% -8%, rgba(255,138,61,.16), transparent 60%), radial-gradient(900px 600px at -8% 104%, rgba(76,192,111,.18), transparent 62%), #060908; }
.auth-layout .auth-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.web-qr-img { display: block; width: 178px; height: 178px; background: #fff; border-radius: 16px; padding: 8px; box-sizing: border-box; image-rendering: pixelated; }
.app-ver { position: fixed; right: 14px; bottom: calc(8px + var(--safe-b, 0px)); font-size: .7rem; letter-spacing: .02em; color: rgba(255,255,255,.62); pointer-events: none; z-index: 5; font-variant-numeric: tabular-nums; }

/* complimentary gifts */
.gift-banner { display: flex; align-items: center; gap: 8px; padding: 9px 14px; margin-bottom: -10px; border-radius: 16px 16px 0 0; font-size: .88rem; color: #5a3a00; background: linear-gradient(90deg, #ffe9b8, #ffd98a); position: relative; z-index: 1; }
html[data-theme="dark"] .gift-banner { color: #ffe9b8; background: linear-gradient(90deg, #4a3508, #5d4410); }
.gift-line { margin: 4px 0; font-size: .84rem; color: var(--text); background: color-mix(in srgb, #f2a516 18%, transparent); border-radius: 10px; padding: 3px 10px; width: fit-content; max-width: 100%; }
.gift-card { border: 1px solid color-mix(in srgb, #f2a516 55%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, #f2a516 10%, var(--surface)), var(--surface)); }
.gift-ico { font-size: 1.8rem; }
.gift-row + .gift-row { border-top: 1px dashed var(--border); padding-top: 12px; }
.gift-stars { color: #f2a516; letter-spacing: 1px; }

/* renewal card */
.renew-card { border: 1px solid color-mix(in srgb, var(--brand) 50%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface)); margin: 12px 0; }
.renew-card.ended { border-color: color-mix(in srgb, #f2a516 60%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, #f2a516 10%, var(--surface)), var(--surface)); }
.renew-ico { font-size: 1.9rem; line-height: 1; }

/* the day board: a timeline of what happened, what is happening and what must not be missed */
.day-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .6rem; }
.day-line { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; padding: .55rem .6rem; border-radius: var(--radius-sm, 10px); border: 1px solid var(--border); background: var(--surface); }
.day-line .day-dot { font-size: 1.35rem; line-height: 2rem; text-align: center; }
.day-line.done { opacity: .72; }
.day-line.now { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.day-line.attention { border-color: var(--warn); background: var(--warn-50); }
.day-line.info { background: transparent; }
.day-board, .day-board h2, .day-board .day-body { text-align: left; }
.food-img .tl { flex-direction: row; margin: 0; }

/* ===== Lock screens: PIN set-up and unlock always fit the screen (nothing scrolls) ===== */
.lock-screen { height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2dvh, 18px); padding: calc(10px + var(--safe-t, 0px)) 16px calc(10px + var(--safe-b, 0px)); box-sizing: border-box; overflow: hidden; }
.lock-head { flex: none; }
.lock-mark { width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 14px; }
.lock-head h1 { font-size: 1.3rem; margin: 0; }
.lock-note { margin: 2px 0 0; font-size: .85rem; }
.lock-card { flex: 0 1 auto; padding: 12px; min-height: 0; }
.lock-screen .stack.lg { gap: clamp(4px, 1.2dvh, 12px); }
.lock-screen .pin-dots { margin: 4px 0; }
.lock-screen .pin-pad { gap: 8px; }
.lock-screen .pin-pad button, .lock-screen .pin-pad span { height: clamp(40px, 6.6dvh, 62px); }
@media (max-height: 700px) { .lock-note { display: none; } }

.auth-layout .unlock-screen .auth-hero { padding: calc(8px + var(--safe-t, 0px)) 18px 34px; }
.auth-layout .unlock-screen .auth-logo { height: 38px !important; }
.auth-layout .unlock-screen .who { margin-top: 8px !important; gap: 12px; }
.auth-layout .unlock-screen .who-avatar { width: 48px; height: 48px; font-size: 1.2rem; border-radius: 16px; }
.auth-layout .unlock-screen .who-hello, .auth-layout .unlock-screen .who-mail { display: none; }
.auth-layout .unlock-screen .who-name { font-size: 1.25rem; margin: 0 0 4px; }
.auth-layout .unlock-screen .who-role { padding: 3px 10px; font-size: .8rem; }
.auth-layout .unlock-screen .auth-card { overflow: hidden; gap: clamp(4px, 1.2dvh, 10px); padding: 12px; justify-content: space-evenly; }
.auth-layout .unlock-screen .auth-card h2 { font-size: 1.05rem; margin: 0; }
.auth-layout .unlock-screen .unlock-bio { display: none; }
.auth-layout .unlock-screen .pin-dots { margin: 2px 0; }
.auth-layout .unlock-screen .pin-pad { gap: 8px; }
.auth-layout .unlock-screen .pin-pad button { height: clamp(40px, 6.6dvh, 62px); font-size: 1.35rem; }
.auth-layout .unlock-screen .auth-menu-mobile { display: none; }

/* ===== Needs you today: compact, aligned, readable on a phone ===== */
.ac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ac-title { min-width: 0; } .ac-title .page-title { margin: 0; justify-content: flex-start; gap: 6px; flex-wrap: nowrap; } .ac-title .sub { font-size: .85rem; margin-top: 2px; }
.btn.icon-only { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; flex: none; border-radius: 12px; }
.ac-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ac-stat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: none !important; text-align: center; }
.ac-stat b { font-size: 1.6rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; } .ac-stat span { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ac-stat.bad { background: var(--danger-50); border-color: var(--danger); } .ac-stat.bad b { color: var(--danger); }
.ac-stat.warn { background: var(--warn-50); border-color: var(--warn); } .ac-stat.warn b { color: var(--warn); }
.ac-h { font-size: 1rem; font-weight: 800; margin: 16px 0 8px; display: flex; align-items: center; gap: 8px; text-align: left; }
.ac-n { font-size: .75rem; padding: 2px 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.ac-meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ac-meal, .ac-item { text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; box-shadow: none !important; }
.ac-meal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-meal-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.02rem; white-space: nowrap; } .ac-emoji { font-size: 1.25rem; line-height: 1; }
.ac-counts { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 4px; }
.ac-counts div { display: flex; flex-direction: column; gap: 1px; } .ac-counts b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; } .ac-counts span { font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ac-times { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); } .ac-times span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ac-items { display: flex; flex-direction: column; gap: 10px; }
.ac-item { position: relative; padding-left: 20px; border-radius: 14px; }
.ac-item::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 4px; border-radius: 4px; background: var(--brand); }
.ac-item.danger::before { background: var(--danger); } .ac-item.warn::before { background: var(--warn); }
.ac-item-top { display: flex; align-items: flex-start; gap: 8px; } .ac-dot { display: none; } .ac-item-title { font-weight: 800; font-size: 1rem; line-height: 1.25; }
.ac-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ac-item-meta .xs { display: inline-flex; align-items: center; gap: 4px; }
.ac-item-detail { font-size: .9rem; line-height: 1.35; }
.ac-tip { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); } .ac-tip svg { flex: none; margin-top: 2px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; } .ac-actions .btn { white-space: nowrap; }
.ac-snz { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-timings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: none !important; }
.ac-timings .field { min-width: 0; } .ac-timings .field label { font-size: .8rem; font-weight: 700; }
.ac-save { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .ac-timings { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; } .ac-save { grid-column: auto; } }
.lock-head h1 { color: var(--text); background: none; -webkit-text-fill-color: currentColor; outline: none; }h1:focus, h1:focus-visible, .page-title:focus { outline: none; }

/* ===== Polish found by the layout audit ===== */
h1:focus, h1:focus-visible, .page-title:focus, .page-title:focus-visible { outline: none !important; box-shadow: none !important; }
.stat::before { display: none; }                                  /* the 3px bar made a crescent on the rounded corner */
.chart-bars small { font-size: .7rem; }
.food-img.sq { font-size: 1.4rem; }
/* ===== Unlock screen: frosted glass on a green and saffron glow (same idea as the WealthVault lock screen, in the TifinBox colours) ===== */
.auth-layout:has(.unlock-screen) { background: #04120a; padding: 0; }
.auth-layout .auth-wrap.unlock-screen {
  --k: clamp(52px, 9.4dvh, 74px);
  position: relative; isolation: isolate; width: 100%; max-width: none; height: 100dvh; max-height: none; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(6px, 2dvh, 22px);
  background: linear-gradient(155deg, #0b3d22 0%, #17653a 34%, #0c3a2f 62%, #04120a 100%); color: #fff;
}
.auth-layout .unlock-screen::before, .auth-layout .unlock-screen::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.auth-layout .unlock-screen::before { width: 340px; height: 340px; top: -90px; right: -110px; background: rgba(255, 166, 64, .5); animation: float 11s ease-in-out infinite; }
.auth-layout .unlock-screen::after { width: 400px; height: 400px; bottom: -150px; left: -120px; background: rgba(110, 224, 140, .38); animation: float 13s ease-in-out infinite reverse; }
.auth-layout .unlock-screen > .auth-hero { background: none; box-shadow: none; border-radius: 0; padding: 0 18px; overflow: visible; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; }
.auth-layout .unlock-screen > .auth-hero::before, .auth-layout .unlock-screen > .auth-hero::after { display: none; }
.auth-layout .unlock-screen .who { flex-direction: column; text-align: center; gap: 8px; margin-top: clamp(4px, 1.4dvh, 14px) !important; }
.auth-layout .unlock-screen .who-avatar { width: clamp(52px, 8dvh, 68px); height: clamp(52px, 8dvh, 68px); border-radius: 50%; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 0 26px rgba(255, 184, 90, .35); }
.auth-layout .unlock-screen .who-name { font-size: 1.3rem; margin: 0; }
.auth-layout .unlock-screen .who-role { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.26); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.auth-layout .unlock-screen > .auth-card { flex: 0 1 auto; width: min(100%, 380px); margin: 0; padding: 0 12px; background: none !important; border: 0; box-shadow: none; border-radius: 0; overflow: visible; justify-content: center; align-self: auto; gap: clamp(6px, 1.8dvh, 16px); }
.auth-layout .unlock-screen .auth-card h2 { color: rgba(255,255,255,.92); font-size: 1.05rem; font-weight: 600; margin: 0; }
.auth-layout .unlock-screen .pin-dots { gap: 12px; margin: 0 auto; padding: 13px 24px; width: fit-content; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.auth-layout .unlock-screen .pin-dots i { width: 11px; height: 11px; border: 0; background: rgba(255,255,255,.26); transition: background .13s, box-shadow .13s, transform .13s; }
.auth-layout .unlock-screen .pin-dots i.on { background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.85); transform: scale(1.12); }
.auth-layout .unlock-screen .danger-text { color: #ffd2ae; }
.auth-layout .unlock-screen .pin-pad { grid-template-columns: repeat(3, var(--k)); justify-content: center; gap: clamp(9px, 2dvh, 18px) clamp(20px, 7vw, 34px); max-width: none; }
.auth-layout .unlock-screen .pin-pad button { width: var(--k); height: var(--k); padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: calc(var(--k) * .44); font-weight: 400; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 8px 22px -12px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.auth-layout .unlock-screen .pin-pad button:active:not(:disabled) { background: rgba(255,255,255,.3); transform: scale(.94); }
.auth-layout .unlock-screen .pin-pad button:disabled { opacity: .6; }
.auth-layout .unlock-screen .pin-pad button.pin-bio { background: linear-gradient(145deg, rgba(255, 207, 120, .95), rgba(120, 226, 150, .85)); border-color: rgba(255,255,255,.7); color: #0b3d22; box-shadow: 0 0 22px rgba(255, 196, 100, .65), 0 0 44px rgba(110, 224, 140, .35); animation: bio-glow 2.6s ease-in-out infinite; }
.auth-layout .unlock-screen .pin-pad button.pin-bio:disabled { visibility: hidden; }
.auth-layout .unlock-screen .pin-pad button.pin-del { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-layout .unlock-screen .pin-pad button svg { width: calc(var(--k) * .42); height: calc(var(--k) * .42); }
.auth-layout .unlock-screen .pin-pad button.pin-bio svg { width: calc(var(--k) * .5); height: calc(var(--k) * .5); }
@keyframes bio-glow { 0%, 100% { box-shadow: 0 0 18px rgba(255,196,100,.5), 0 0 36px rgba(110,224,140,.25); } 50% { box-shadow: 0 0 28px rgba(255,196,100,.85), 0 0 56px rgba(110,224,140,.5); } }
.auth-layout .unlock-screen .unlock-bio { display: inline-flex; background: linear-gradient(145deg, rgba(255, 207, 120, .95), rgba(120, 226, 150, .85)); color: #0b3d22; border: 1px solid rgba(255,255,255,.6); box-shadow: 0 0 24px rgba(255,196,100,.55); }
.auth-layout .unlock-screen .auth-card .btn-ghost { color: rgba(255,255,255,.86); }
.auth-layout .unlock-screen .auth-card .btn-ghost:hover { background: rgba(255,255,255,.12); }
.auth-layout .unlock-screen > .auth-menu-mobile { display: none; }
.auth-layout .unlock-screen .auth-hero-app { display: none; }
@media (min-width: 900px) {
  .auth-layout .auth-wrap.unlock-screen { --k: 72px; }
  .auth-layout .unlock-screen > .auth-card { width: 400px; padding: clamp(14px, 3dvh, 30px) 24px; border-radius: 28px; background: rgba(255,255,255,.09) !important; border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.65); }
  .auth-layout .unlock-screen .auth-hero-app { display: block; margin-top: 8px; max-width: 360px; }
}.auth-layout .unlock-screen .auth-logo { height: clamp(58px, 10dvh, 86px) !important; width: auto; align-self: center; border-radius: 20px; background: #fff; padding: 4px 8px; box-shadow: 0 0 30px rgba(255, 190, 100, .35); }
@media (min-width: 900px) {
  .auth-layout .auth-wrap.unlock-screen { flex-direction: row; gap: clamp(40px, 7vw, 110px); }
  .auth-layout .unlock-screen > .auth-hero { width: 380px; padding: 0; }
  .auth-layout .unlock-screen .auth-logo { height: 96px !important; }
  .auth-layout .unlock-screen .who-name { font-size: 1.8rem; }
  .auth-layout .unlock-screen .auth-hero-app { margin-top: 26px; }
}.auth-layout .unlock-screen .pin-field { position: relative; width: fit-content; margin: 0 auto; }
.auth-layout .unlock-screen .pin-eye { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.auth-layout .unlock-screen .pin-eye:active { background: rgba(255,255,255,.3); }
.auth-layout .unlock-screen .pin-dots i.digit { width: 12px; height: auto; background: none; box-shadow: none; transform: none; border-radius: 0; font-size: 1.25rem; font-weight: 600; line-height: 1; color: #fff; text-align: center; font-variant-numeric: tabular-nums; }
.auth-layout .unlock-screen .pin-pad button.pin-bio-big { width: 112px; height: 112px; margin: 0 auto; }
.auth-layout .unlock-screen .pin-pad button.pin-bio svg, .auth-layout .unlock-screen button.pin-bio-big svg { width: 52%; height: 52%; }
.auth-layout .unlock-screen button.pin-bio-big { display: grid; place-items: center; border-radius: 50%; cursor: pointer; background: linear-gradient(145deg, rgba(255,207,120,.95), rgba(120,226,150,.85)); border: 1px solid rgba(255,255,255,.7); color: #0b3d22; animation: bio-glow 2.6s ease-in-out infinite; }.auth-layout .unlock-screen .pin-dots { min-height: 46px; box-sizing: border-box; align-items: center; }
.auth-layout .unlock-screen .pin-dots i.digit { font-style: normal; width: 11px; }
/* ===== Signing in: the icon in its ring over the whole screen while a fingerprint, PIN or code is being completed ===== */
.auth-busy { position: fixed; inset: 0; z-index: 260; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(4, 18, 10, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fadeUp .15s ease both; }
.auth-busy-text { color: #fff; font-weight: 600; letter-spacing: .02em; opacity: .92; }
/* a notification that arrives while the app is open: title and one short line, always inside the screen */
.toast.banner { align-items: flex-start; max-width: min(92vw, 420px); }
.toast.banner span { min-width: 0; overflow-wrap: anywhere; }
.toast.banner b { font-weight: 800; }
/* the bell swings and the number pops when a notification arrives while the app is open */
@keyframes bell-swing { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(18deg); } 28% { transform: rotate(-16deg); } 44% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 76% { transform: rotate(4deg); } }
@keyframes badge-pop { 0% { transform: scale(1); } 30% { transform: scale(1.55); } 60% { transform: scale(.9); } 100% { transform: scale(1); } }
.ntf-bell.ring .icon { transform-origin: 50% 12%; animation: bell-swing 1.2s ease-in-out 2; color: var(--brand); }
.ntf-bell.ring { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.ntf-badge.pop { animation: badge-pop .6s ease-out 2; }
@media (prefers-reduced-motion: reduce) { .ntf-bell.ring .icon, .ntf-badge.pop { animation: none; } }
/* nothing may run off the screen: a long chip wraps inside its box instead of being cut (messages are kept short, this is the safety net) */
.chip { max-width: 100%; min-width: 0; }
.chip.success, .chip.warn, .chip.danger, .chip.info, .chip.outline { white-space: normal; text-align: left; line-height: 1.25; }
.alert, .toast { overflow-wrap: anywhere; }
/* English / Hindi switch on the sign-in and unlock screens */
.lang-pick { margin: 14px 0 0; display: flex; }
.lang-pick .seg button { min-width: 84px; }

/* red power button: log off at once, next to the notification bell */
.power-btn { border-radius: 50% !important; width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; aspect-ratio: 1; color: #fff !important; background: var(--danger) !important; border: 0 !important; box-shadow: 0 4px 12px -4px rgba(210,68,63,.7); }
.power-btn:hover { filter: brightness(1.1); background: var(--danger) !important; }
.power-btn:active { transform: scale(.94); }
.power-btn svg { stroke: #fff; }

@media (max-width: 400px) { .topbar .brand > span:not(.brand-mark) { display: none; } .topbar .pill-wallet { padding-inline: 10px; } }

/* plan day rows: extras of the day, and the round progress while a day is skipped or added back */
.day-row { align-items: flex-start; }
.day-row.pending { opacity: .75; }
.day-row.is-skipped b { color: var(--text-2); }
.day-extra { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--brand-50); color: inherit; text-decoration: none; font-size: .85rem; min-width: 0; }
.day-extra > .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-act { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.day-wait { color: var(--brand); }
.modal-foot { flex-wrap: wrap; }

/* label on the corner of a catalogue picture (Coming soon, On order, Served...) */
.food-img .img-tag { position: absolute; left: 0; top: 10px; max-width: 82%; padding: 4px 12px 4px 10px; border-radius: 0 999px 999px 0; font-size: .74rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2; color: #fff; box-shadow: 0 3px 10px -3px rgba(0,0,0,.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 2; }
.food-img.sq .img-tag { top: 4px; padding: 2px 7px 2px 5px; font-size: .58rem; }
.img-tag.tone-info { background: #2563EB; } .img-tag.tone-success { background: #1E8A4C; } .img-tag.tone-warn { background: #D97706; } .img-tag.tone-danger { background: #D2443F; } .img-tag.tone-brand { background: linear-gradient(135deg, #1E8A4C, #F08A24); }

/* the website's information pages inside the app (how it works, FAQ, areas, safety, refunds, story, contact, policies) */
.info-list .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.info-doc { font-size: .97rem; line-height: 1.6; color: var(--text); }
.info-doc .phead { padding: 4px 0 14px; } .info-doc .phead .wrap, .info-doc .wrap { max-width: none; padding: 0; width: 100%; }
.info-doc .kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.info-doc h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 6px; } .info-doc h2 { font-size: 1.2rem; margin: 22px 0 8px; } .info-doc h3 { font-size: 1.02rem; margin: 0 0 4px; } .info-doc h4 { margin: 0; font-size: .95rem; }
.info-doc .phead p, .info-doc .head p { color: var(--text-2); margin: 0; }
.info-doc .section { padding: 10px 0; } .info-doc .head { margin: 16px 0 10px; }
.info-doc .grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.info-doc .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.info-doc .card .ico { font-size: 1.5rem; margin-bottom: 4px; } .info-doc .card p { margin: 0; color: var(--text-2); }
.info-doc .note { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-50); border: 1px solid var(--border); margin: 10px 0; } .info-doc .note.warm { background: var(--warn-50); }
.info-doc .prose { max-width: none; } .info-doc .prose ul { padding-left: 20px; margin: 6px 0 12px; } .info-doc .prose li { margin: 4px 0; } .info-doc .updated { color: var(--text-3, var(--text-2)); font-size: .8rem; }
.info-doc details.q { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin: 8px 0; background: var(--surface); } .info-doc details.q summary { cursor: pointer; font-weight: 700; } .info-doc details.q .a { padding-top: 6px; color: var(--text-2); }
.info-doc .areas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .info-doc .area { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; }
.info-doc .city-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; } .info-doc .city-head > div { flex: 1; min-width: 0; } .info-doc .city-head p { margin: 0; color: var(--text-2); font-size: .85rem; }
.info-doc .badge-live, .info-doc .badge-soon { font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; } .info-doc .badge-live { background: var(--success-50); color: var(--success); } .info-doc .badge-soon { background: var(--warn-50); color: var(--warn); }
.info-doc ol.steps { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 8px; } .info-doc ol.steps li { display: flex; gap: 10px; align-items: flex-start; }
.info-doc ol.steps .sn { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; } .info-doc ol.steps small { display: block; color: var(--text-2); }
.info-doc .flow-note { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: .85rem; margin: 6px 0; }
.info-doc .band, .info-doc .cta-band, .info-doc .cta { display: none; }
.info-doc .btn { display: inline-flex; margin: 8px 8px 0 0; } .info-doc a { color: var(--brand); } .info-doc .big { display: block; font-weight: 800; font-size: 1.05rem; word-break: break-all; }
.info-doc .contact-cards .card { text-align: center; } .info-doc .story { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; } .info-doc .mission { font-style: italic; padding: 10px 0; }
.info-doc img { max-width: 100%; height: auto; } .info-doc svg { max-width: 24px; max-height: 24px; }
@media (min-width: 700px) { .info-doc .grid.g2, .info-doc .grid.g3, .info-doc .grid.g4 { grid-template-columns: repeat(2, 1fr); } }
