/*
 * rBAR UI
 * A bar & gastropub ordering system — customer app + staff till
 * Single source of truth for all styles. No build step.
 *
 * Themes: citrus (default), charcoal, espresso, matcha, berry, chili, blueberry, cream
 * Theming is driven entirely by the CSS variables in :root, swapped at runtime.
 */

:root {
  --bg:      #fcf4e1;   /* warm buttermilk */
  --ink:     #2b1d12;   /* deep cocoa */
  --accent:  #f0531c;   /* persimmon */
  --surface: #fffdf8;   /* warm white */
  --muted:   #927b63;   /* taupe-brown */
  --border:  #ebdfc8;   /* warm sand */
  --overlay: rgba(43,29,18,0.5);

  --danger:        #c0392b;
  --danger-bg:     #fdf2f1;
  --danger-border: #f5c6c1;
  --success:        #1f8a4c;
  --success-bg:     #eefaf1;
  --success-border: #bfe8cd;
  --spice:          #e8612a;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent),
                 0 14px 30px -22px color-mix(in srgb, var(--ink) 40%, transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

:focus-visible {
  outline: 2.5px solid color-mix(in srgb, var(--accent) 70%, var(--ink));
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: 'Space Mono', ui-monospace, monospace; }
.display { font-family: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif; }

/* ── Ambient background ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 12% -8%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 95% 8%, color-mix(in srgb, var(--accent) 7%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--ink) 5%, transparent) 1.1px, transparent 1.1px);
  background-size: auto, auto, 22px 22px;
  transition: background-color 0.4s ease;
}
.bg-canvas::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='280' height='280' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.shell {
  position: relative; z-index: 1;
  max-width: 940px; margin: 0 auto;
  padding: 90px 22px max(env(safe-area-inset-bottom), 40px);
}

/* ── Top bar ── */
.top-bar {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.top-bar > * { pointer-events: auto; }
.bar-card {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: 0 4px 18px -10px color-mix(in srgb, var(--ink) 45%, transparent);
}

/* brand + martini-glass logo */
.brand { display: flex; align-items: center; gap: 9px; border-radius: 14px; padding: 7px 13px 7px 9px; }
.rbar-logo { width: 26px; height: 30px; flex: none; display: block; }
.brand-logo { height: 26px; max-width: 80px; flex: none; display: block; object-fit: contain; border-radius: 4px; }
.rbar-logo .lid { fill: var(--accent); }
.rbar-logo .tin { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); stroke-width: 2.2; }
.rbar-logo .handle { stroke: var(--accent); stroke-width: 2.4; fill: none; }
.brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-name b { color: var(--accent); }

/* address selector */
.addr-btn {
  display: flex; align-items: center; gap: 9px; border-radius: 14px;
  padding: 7px 14px; max-width: 230px; min-width: 0;
}
.addr-btn .ph { color: var(--accent); font-size: 17px; flex: none; }
.addr-text { min-width: 0; text-align: left; line-height: 1.15; }
.addr-text .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.addr-text .val { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.addr-text .val .ph { font-size: 13px; color: var(--muted); }

.bar-spacer { flex: 1; }

/* cart button */
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 9px;
  border-radius: 14px; padding: 9px 16px 9px 14px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.16s ease, filter 0.16s ease;
}
.cart-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cart-btn:active { transform: translateY(0); }
.cart-btn .ph { font-size: 18px; }
.cart-total { font-family: 'Space Mono', monospace; font-weight: 700; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; padding: 0 6px;
  background: var(--ink); color: var(--bg);
  border: 2px solid var(--bg);
  border-radius: 11px; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Mono', monospace;
  transition: transform 0.2s cubic-bezier(.34,1.7,.5,1);
}
.cart-count.bump { transform: scale(1.45); }

/* theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; flex: none;
  position: relative;
}
.theme-dot { width: 17px; height: 17px; border-radius: 50%; border: 2.5px solid var(--accent); background: var(--bg); }
.theme-picker {
  position: absolute; top: 52px; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  box-shadow: var(--shadow-card);
  display: none; grid-template-columns: repeat(4, 1fr); gap: 10px;
  width: 232px; z-index: 200;
}
.theme-picker.open { display: grid; animation: pop 0.18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.theme-picker .tp-title { grid-column: 1 / -1; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.swatch-chip {
  width: 40px; height: 40px; border-radius: 12px; position: relative;
  border: 2px solid var(--border); overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch:hover .swatch-chip { transform: scale(1.08); }
.swatch.active .swatch-chip { border-color: var(--ink); }
.swatch.active .swatch-chip::after {
  content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px; text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.swatch-chip .accent-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 13px; }
.swatch-name { font-size: 10px; font-weight: 600; color: var(--muted); }

/* ── Section scaffolding ── */
.section { margin-bottom: 46px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 5px;
}
.eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 27px; letter-spacing: -0.02em; line-height: 1.05; }
.section-more { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; transition: color 0.15s, gap 0.15s; }
.section-more:hover { color: var(--accent); gap: 8px; }

/* ── Hero ── */
.hero {
  position: relative; overflow: visible;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 38px 34px;
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 26px; align-items: center;
  box-shadow: var(--shadow-card); margin-bottom: 46px;
}
.hero::before {
  content: ''; position: absolute; right: 10px; top: 10px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 14px; }
.hero-eyebrow .pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
.hero h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 52px); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { font-size: 16px; color: var(--muted); max-width: 40ch; margin-bottom: 22px; }
.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 13px 16px; max-width: 380px; transition: border-color 0.18s, box-shadow 0.18s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.hero-search .ph { font-size: 19px; color: var(--muted); }
.hero-search input { border: none; background: none; outline: none; width: 100%; font-size: 15px; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search kbd { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; }

/* steaming featured dish (signature ambient touch) */
.hero-dish { position: relative; justify-self: center; }
.dish-plate {
  width: 200px; height: 200px; border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, color-mix(in srgb, #fff 55%, transparent), transparent 42%),
    conic-gradient(from 210deg, color-mix(in srgb, var(--accent) 30%, var(--surface)), color-mix(in srgb, var(--accent) 14%, var(--surface)), color-mix(in srgb, var(--accent) 30%, var(--surface)));
  border: 8px solid var(--surface);
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--ink) 55%, transparent), inset 0 0 0 2px var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 96px; line-height: 1;
}
.steam { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); display: flex; gap: 18px; pointer-events: none; }
.steam span {
  display: block; width: 7px; height: 42px; border-radius: 50%;
  background: linear-gradient(to top, transparent, color-mix(in srgb, var(--ink) 22%, transparent));
  filter: blur(3px); opacity: 0; transform-origin: bottom center;
  animation: steam 3.4s ease-in-out infinite;
}
.steam span:nth-child(2) { animation-delay: 1.1s; height: 52px; }
.steam span:nth-child(3) { animation-delay: 2.1s; height: 38px; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(8px) scaleX(1); }
  30%  { opacity: 0.7; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-30px) scaleX(1.7); }
}
.hero-badge {
  position: absolute; bottom: 6px; right: -8px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 12px;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--ink) 70%, transparent);
  display: flex; align-items: center; gap: 6px;
}
.hero-badge .ph { color: #ffc24b; font-size: 14px; }

/* ── Category pills ── */
.cat-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex: none; scroll-snap-align: start; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 600; font-size: 14px;
  transition: all 0.16s ease; white-space: nowrap;
}
.cat-pill .emoji { font-size: 18px; }
.cat-pill:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-2px); }
.cat-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-pill .ct { font-family: 'Space Mono', monospace; font-size: 11px; opacity: 0.6; }

/* ── Promo / chef's picks ── */
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 22px;
  border: 1.5px solid var(--border); background: var(--surface);
  min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.promo .promo-art { position: absolute; top: -10px; right: 4px; font-size: 76px; opacity: 0.9; transform: rotate(8deg); }
.promo .promo-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); margin-bottom: 6px; }
.promo h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }
.promo p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.promo.feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.promo.feature .promo-tag { color: #ffc24b; }
.promo.feature p { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* ── Menu grid ── */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dish {
  display: flex; gap: 16px; padding: 16px;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.dish:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); box-shadow: var(--shadow-card); }
.dish-thumb {
  width: 88px; height: 88px; flex: none; border-radius: var(--r-sm);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--bg)));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 46px;
  position: relative;
}
.dish-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.dish-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 7px; }
.dish-desc { font-size: 13px; color: var(--muted); margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.dish-price { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 15px; }
.dish-rating { font-size: 12px; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.dish-rating .ph { color: #f6b01e; font-size: 13px; }

/* dietary + spice tags */
.tag { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; letter-spacing: 0.02em; line-height: 1.4; }
.tag-veg { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.tag-gf { background: color-mix(in srgb, #3b6fe0 12%, var(--surface)); color: #3b6fe0; border: 1px solid color-mix(in srgb, #3b6fe0 30%, transparent); }
.spice { display: inline-flex; gap: 1px; color: var(--spice); font-size: 12px; }
.spice .off { opacity: 0.22; }

/* add control + stepper */
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.add-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 13.5px;
  transition: all 0.15s ease;
}
.add-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.add-btn .ph { font-size: 15px; }

.stepper { display: inline-flex; align-items: center; gap: 0; background: var(--accent); border-radius: 999px; padding: 3px; box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.stepper button { width: 30px; height: 30px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background 0.15s; }
.stepper button:hover { background: color-mix(in srgb, #fff 20%, transparent); }
.stepper .qty { min-width: 26px; text-align: center; color: #fff; font-weight: 700; font-family: 'Space Mono', monospace; font-size: 14px; }

/* ── Customize panel ── */
.customize { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.cz-head { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.cz-thumb { width: 76px; height: 76px; flex: none; border-radius: var(--r-md); background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 20%, var(--surface)), color-mix(in srgb, var(--accent) 8%, var(--bg))); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 42px; }
.cz-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.cz-head p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.cz-group { margin-bottom: 20px; }
.cz-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; }
.cz-label .name { font-weight: 700; font-size: 14.5px; }
.cz-label .req { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cz-label .req.required { color: var(--accent); }

/* segmented control */
.segmented { display: inline-flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px; padding: 4px; gap: 3px; width: 100%; }
.seg-btn { flex: 1; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); transition: all 0.16s ease; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg-btn .px { font-family: 'Space Mono', monospace; font-size: 11px; opacity: 0.7; }
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -3px color-mix(in srgb, var(--ink) 30%, transparent); }
.seg-btn.active .px { color: var(--accent); opacity: 1; }

/* add-on checkboxes */
.addon { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.addon:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.addon.checked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.check-box { width: 22px; height: 22px; flex: none; border: 2px solid var(--border); border-radius: 7px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.check-box .ph { font-size: 14px; color: #fff; opacity: 0; transition: opacity 0.12s; }
.addon.checked .check-box { background: var(--accent); border-color: var(--accent); }
.addon.checked .check-box .ph { opacity: 1; }
.addon .a-name { font-weight: 600; font-size: 14px; flex: 1; }
.addon .a-price { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); font-weight: 700; }

/* textarea */
.cz-note textarea {
  width: 100%; min-height: 76px; resize: vertical;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14px; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
}
.cz-note textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.cz-note textarea::placeholder { color: var(--muted); }

.cz-foot { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--border); margin-top: 4px; }
.cta-add {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; border-radius: var(--r-md); padding: 15px;
  font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: transform 0.15s, filter 0.15s;
}
.cta-add:hover { filter: brightness(1.05); transform: translateY(-1px); }
.cta-add .cta-price { font-family: 'Space Mono', monospace; }

/* ── Signature: the order ticket ── */
.ticket-wrap { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 420px; }
.ticket {
  background: var(--surface); color: var(--ink);
  padding: 26px 24px 6px;
  --scallop: 8px;
  -webkit-mask:
    radial-gradient(circle at 9px 0, transparent var(--scallop), #000 calc(var(--scallop) + 0.5px)) top left / 18px 50.5% repeat-x,
    radial-gradient(circle at 9px 100%, transparent var(--scallop), #000 calc(var(--scallop) + 0.5px)) bottom left / 18px 50.5% repeat-x;
          mask:
    radial-gradient(circle at 9px 0, transparent var(--scallop), #000 calc(var(--scallop) + 0.5px)) top left / 18px 50.5% repeat-x,
    radial-gradient(circle at 9px 100%, transparent var(--scallop), #000 calc(var(--scallop) + 0.5px)) bottom left / 18px 50.5% repeat-x;
  filter: drop-shadow(0 14px 30px color-mix(in srgb, var(--ink) 18%, transparent));
}
.tk-head { text-align: center; padding-bottom: 16px; border-bottom: 2px dashed var(--border); margin-bottom: 16px; }
.tk-logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: 0.04em; }
.tk-logo b { color: var(--accent); }
.tk-sub { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: 0.02em; }
.tk-meta { display: flex; justify-content: space-between; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 8px; }

.tk-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.tk-qty { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; color: var(--accent); flex: none; }
.tk-name { font-weight: 600; font-size: 14px; }
.tk-name small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.tk-dots { flex: 1; border-bottom: 2px dotted color-mix(in srgb, var(--muted) 50%, transparent); transform: translateY(-4px); min-width: 14px; }
.tk-amt { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13.5px; flex: none; }

.tk-promo { display: flex; gap: 8px; margin: 16px 0; }
.tk-promo input { flex: 1; background: var(--bg); border: 1.5px dashed var(--border); border-radius: var(--r-sm); padding: 10px 12px; font-family: 'Space Mono', monospace; font-size: 12px; outline: none; text-transform: uppercase; letter-spacing: 0.05em; }
.tk-promo input:focus { border-color: var(--accent); border-style: solid; }
.tk-promo input::placeholder { letter-spacing: 0.05em; }
.tk-promo button { background: var(--ink); color: var(--bg); border-radius: var(--r-sm); padding: 0 16px; font-weight: 700; font-size: 13px; }

.tk-totals { border-top: 2px dashed var(--border); padding-top: 14px; margin-top: 4px; }
.tk-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.tk-row .mono { color: var(--ink); }
.tk-row.discount { color: var(--success); }
.tk-row.discount .mono { color: var(--success); }
.tk-grand { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; margin-top: 6px; border-top: 2px solid var(--ink); }
.tk-grand .lbl { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 17px; }
.tk-grand .amt { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 21px; color: var(--accent); }
.tk-foot-note { text-align: center; font-family: 'Space Mono', monospace; font-size: 10.5px; color: var(--muted); padding: 16px 0 10px; letter-spacing: 0.04em; }
.tk-barcode { height: 34px; margin: 6px auto 2px; width: 80%;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px);
  opacity: 0.85; }

/* ── Checkout ── */
.checkout { display: grid; grid-template-columns: 1fr; gap: 18px; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.co-block { }
.co-block > .co-title { font-weight: 700; font-size: 14.5px; margin-bottom: 11px; display: flex; align-items: center; gap: 8px; }
.co-block > .co-title .ph { color: var(--accent); font-size: 17px; }
.tip-row { display: flex; gap: 9px; flex-wrap: wrap; }
.tip-pill { flex: 1; min-width: 64px; text-align: center; padding: 12px 8px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-weight: 700; transition: all 0.15s; }
.tip-pill .pct { font-size: 14px; }
.tip-pill .amt { display: block; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.tip-pill:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.tip-pill.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.tip-pill.active .amt { color: var(--accent); }

.pay-method { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.pay-method:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.pay-method.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.radio-dot { width: 21px; height: 21px; flex: none; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.radio-dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.15s; }
.pay-method.active .radio-dot { border-color: var(--accent); }
.pay-method.active .radio-dot::after { transform: scale(1); }
.pay-method .pm-icon { font-size: 20px; color: var(--muted); }
.pay-method .pm-name { font-weight: 600; font-size: 14px; flex: 1; }
.pay-method .pm-meta { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); }

/* ── Order tracking ── */
.track { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); }
.track-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.track-eta { }
.track-eta .lbl { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.track-eta .time { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -0.02em; line-height: 1; margin-top: 3px; }
.track-eta .time span { color: var(--accent); }
.track-order { text-align: right; font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); }
.track-order b { color: var(--ink); }

/* progress stepper */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; }
.steps::before { content: ''; position: absolute; top: 17px; left: 12%; right: 12%; height: 3px; background: var(--border); border-radius: 3px; }
.steps .steps-fill { position: absolute; top: 17px; left: 12%; height: 3px; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.step .node { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--muted); z-index: 1; transition: all 0.3s; }
.step.done .node { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.active .node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); animation: nodepulse 2s ease-in-out infinite; }
@keyframes nodepulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 6%, transparent); } }
.step .st-name { font-size: 12px; font-weight: 700; }
.step .st-time { font-family: 'Space Mono', monospace; font-size: 10.5px; color: var(--muted); }
.step:not(.done):not(.active) .st-name { color: var(--muted); }

.courier { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-md); }
.courier .avatar { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 30%, var(--surface)), color-mix(in srgb, var(--accent) 12%, var(--bg))); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.courier .c-info { flex: 1; min-width: 0; }
.courier .c-info .c-name { font-weight: 700; font-size: 14.5px; }
.courier .c-info .c-role { font-size: 12.5px; color: var(--muted); }
.courier .c-act { width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); transition: all 0.15s; }
.courier .c-act:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Forms style guide ── */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md); padding: 20px; }
.form-card > h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 16px; }
.field { margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field .ctrl { display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; transition: border-color 0.18s, box-shadow 0.18s; }
.field .ctrl .ph { color: var(--muted); font-size: 17px; }
.field .ctrl input { border: none; background: none; outline: none; width: 100%; font-size: 14px; }
.field .ctrl input::placeholder { color: var(--muted); }
.field .ctrl:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); }
.field .ctrl.is-error { border-color: var(--danger); background: var(--danger-bg); }
.field .ctrl.is-success { border-color: var(--success); background: var(--success-bg); }
.field .hint { font-size: 11.5px; margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.field .hint.err { color: var(--danger); }
.field .hint.ok { color: var(--success); }

/* toggle switch */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.switch-row .sw-label { font-size: 14px; font-weight: 600; }
.switch-row .sw-sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.toggle { width: 46px; height: 27px; border-radius: 999px; background: var(--border); position: relative; flex: none; transition: background 0.2s; cursor: pointer; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s; }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(19px); }

/* radio list (compact) */
.radio-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.radio-row .rd { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.radio-row .rd::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.15s; }
.radio-row.active .rd { border-color: var(--accent); }
.radio-row.active .rd::after { transform: scale(1); }
.radio-row .rr-name { font-size: 14px; font-weight: 600; }

/* qty stepper (outline variant for forms) */
.qty-out { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; }
.qty-out button { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--accent); }
.qty-out button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.qty-out .v { min-width: 30px; text-align: center; font-family: 'Space Mono', monospace; font-weight: 700; }

/* ── Cart drawer ── */
.backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.28s ease; backdrop-filter: blur(2px); }
.backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 310;
  background: var(--bg); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px var(--overlay);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.drawer-head .closex { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); transition: background 0.15s; }
.drawer-head .closex:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-body .ticket { max-width: none; margin: 0 auto; }
.drawer-foot { padding: 16px 18px max(env(safe-area-inset-bottom), 18px); border-top: 1px solid var(--border); }
.drawer-checkout { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent); color: #fff; border-radius: var(--r-md); padding: 16px 20px; font-weight: 700; font-size: 15.5px; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); transition: filter 0.15s, transform 0.15s; }
.drawer-checkout:hover { filter: brightness(1.05); transform: translateY(-1px); }
.drawer-checkout .dc-total { font-family: 'Space Mono', monospace; }

/* empty cart state */
.cart-empty { text-align: center; padding: 50px 24px; }
.cart-empty .ce-art { font-size: 64px; margin-bottom: 14px; filter: grayscale(0.3); opacity: 0.8; }
.cart-empty h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 6px; }
.cart-empty p { font-size: 14px; color: var(--muted); max-width: 26ch; margin: 0 auto 18px; }
.cart-empty .ce-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 14px; }

/* ── Footer ── */
.foot { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); margin-top: 20px; }
.foot .rbar-logo { width: 30px; height: 35px; margin: 0 auto 10px; }
.foot p { font-size: 13px; color: var(--muted); }
.foot .mono { font-size: 11px; margin-top: 8px; opacity: 0.7; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .shell { padding: 78px 16px 40px; }
  .hero { grid-template-columns: 1fr; padding: 28px 22px; text-align: left; }
  .hero-dish { display: none; }
  .promo-row { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .forms-grid { grid-template-columns: 1fr; }
  .brand-name, .addr-text { display: none; }
  .brand { padding: 7px; }
  .addr-btn { padding: 9px 11px; }
  .addr-btn .addr-text { display: none; }
  .cart-btn .cart-label { display: none; }
  .section-title { font-size: 23px; }
  .steps .st-time { display: none; }
}
@media (max-width: 420px) {
  .step .st-name { font-size: 10px; }
  .tip-pill { min-width: 56px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; scroll-behavior: auto !important; }
  .steam { display: none; }
}
/* ── Staff till (POS quick-order grid) ── */
.till { border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.till-bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; background: var(--ink); color: var(--bg); }
.till-bar .tb-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 4px 9px; border-radius: 7px; }
.till-bar .tb-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15px; }
.till-bar .tb-spacer { flex: 1; }
.till-bar .tb-clock { font-family: 'Space Mono', monospace; font-size: 13px; opacity: 0.8; }
.till-bar .tb-staff { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.till-bar .tb-staff .av { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

.till-wrap { display: grid; grid-template-columns: 1fr 320px; }
.till-main { padding: 16px; border-right: 1px solid var(--border); min-width: 0; }
.till-cats { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.till-cats::-webkit-scrollbar { display: none; }
.till-cat { flex: none; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--muted); background: var(--bg); border: 1.5px solid var(--border); transition: all 0.14s; white-space: nowrap; }
.till-cat.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.till-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.till-tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-height: 104px; padding: 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--border); text-align: left;
  transition: transform 0.08s ease, border-color 0.14s, box-shadow 0.14s, background 0.14s;
}
.till-tile:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.till-tile:active { transform: scale(0.955); }
.till-tile.in { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.till-tile .t-emoji { font-size: 30px; line-height: 1; }
.till-tile .t-name { font-weight: 700; font-size: 13px; line-height: 1.15; margin-top: auto; }
.till-tile .t-price { font-family: 'Space Mono', monospace; font-size: 12px; color: var(--muted); font-weight: 700; }
.till-tile .t-count {
  position: absolute; top: 8px; right: 8px; min-width: 24px; height: 24px; padding: 0 6px;
  background: var(--accent); color: #fff; border-radius: 12px; font-family: 'Space Mono', monospace;
  font-weight: 700; font-size: 13px; display: none; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px -2px color-mix(in srgb, var(--accent) 70%, transparent);
}
.till-tile.in .t-count { display: flex; animation: tcount 0.2s cubic-bezier(.34,1.7,.5,1); }
@keyframes tcount { from { transform: scale(0.4); } }

/* order panel */
.till-order { display: flex; flex-direction: column; background: var(--bg); min-width: 0; }
.till-tabs { display: flex; align-items: center; gap: 8px; padding: 13px 16px 10px; }
.till-tabs .ot-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.table-chips { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.table-chips::-webkit-scrollbar { display: none; }
.table-chip { flex: none; width: 30px; height: 30px; border-radius: 9px; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; color: var(--muted); background: var(--surface); border: 1.5px solid var(--border); transition: all 0.14s; }
.table-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.till-lines { flex: 1; overflow-y: auto; padding: 4px 16px; min-height: 150px; max-height: 380px; }
.till-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.till-line .ln-name { flex: 1; min-width: 0; }
.till-line .ln-name .nm { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till-line .ln-name .pr { font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); }
.mini-step { display: inline-flex; align-items: center; gap: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; }
.mini-step button { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent); }
.mini-step button:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mini-step .q { min-width: 22px; text-align: center; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; }
.till-line .ln-total { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px; min-width: 48px; text-align: right; }

.till-empty { text-align: center; color: var(--muted); padding: 46px 20px; }
.till-empty .ph { font-size: 34px; opacity: 0.5; display: block; margin-bottom: 10px; }
.till-empty p { font-size: 13.5px; }

.till-foot { padding: 16px 16px max(env(safe-area-inset-bottom), 20px); border-top: 1px solid var(--border); }
.till-sum { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.till-sum .s-lbl { font-size: 13px; color: var(--muted); }
.till-sum .s-lbl b { color: var(--ink); font-family: 'Space Mono', monospace; }
.till-sum .s-total { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.till-actions { display: flex; gap: 9px; }
.send-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--accent); color: #fff; border-radius: var(--r-md); padding: 15px; font-weight: 700; font-size: 15px; box-shadow: 0 9px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform 0.14s, filter 0.14s, background 0.2s; }
.send-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.send-btn .ph { font-size: 18px; }
.send-btn.sent { background: var(--success); }
.clear-btn { width: 52px; flex: none; border-radius: var(--r-md); border: 1.5px solid var(--border); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.14s; }
.clear-btn:hover { color: var(--danger); border-color: var(--danger); }

@media (max-width: 760px) {
  .till-wrap { grid-template-columns: 1fr; }
  .till-main { border-right: none; border-bottom: 1px solid var(--border); }
  .till-lines { max-height: 240px; }
  .till-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
}

/* ── Staff order board (KDS ticket rail) ── */
.board { border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.board-cols { display: flex; overflow-x: auto; scrollbar-width: thin; }
.board-cols::-webkit-scrollbar { height: 8px; }
.board-cols::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.kb-col { flex: 1 0 0; min-width: 208px; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.kb-col:last-child { border-right: none; }
.kb-col-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--ink) 4%, var(--surface)); position: sticky; top: 0; z-index: 1; }
.kb-col-head .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kb-col-head .kb-title { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.kb-col-head .kb-ct { margin-left: auto; font-family: 'Space Mono', monospace; font-weight: 700; font-size: 11px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 1px 7px; }
.kb-col-body { padding: 9px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; max-height: 460px; overflow-y: auto; scrollbar-width: thin; }
.kb-col-body::-webkit-scrollbar { width: 6px; }
.kb-col-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

.kb-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 9px 10px; }
.kb-card.rush { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.kb-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.kb-id { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px; }
.kb-tbl { font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 5px; padding: 1px 5px; }
.kb-rush { font-size: 12px; color: var(--accent); }
.kb-time { margin-left: auto; font-family: 'Space Mono', monospace; font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.kb-time.warn { color: #c47a12; }
.kb-time.late { color: var(--danger); font-weight: 700; }
.kb-items { display: flex; flex-direction: column; gap: 2px; margin-bottom: 9px; }
.kb-item { display: flex; gap: 7px; font-size: 12.5px; line-height: 1.35; align-items: baseline; }
.kb-item .q { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--accent); flex: none; font-size: 12px; }
.kb-item .nm { font-weight: 600; }
.kb-item .mod { color: var(--muted); font-size: 11px; font-weight: 400; }
.kb-foot { display: flex; gap: 6px; }
.kb-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px; border-radius: 8px; font-weight: 700; font-size: 12px; color: #fff; transition: filter 0.14s, transform 0.08s; }
.kb-btn:active { transform: scale(0.97); }
.kb-btn:hover { filter: brightness(1.06); }
.kb-btn.start { background: #3b6fe0; }
.kb-btn.ready { background: var(--success); }
.kb-btn.serve { background: var(--accent); }
.kb-btn.clear { background: var(--surface); border: 1.5px solid var(--border); color: var(--muted); }
.kb-btn.clear:hover { filter: none; color: var(--danger); border-color: var(--danger); }
.kb-back { width: 32px; flex: none; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all 0.14s; }
.kb-back:hover { color: var(--ink); border-color: var(--muted); }
.kb-empty { text-align: center; font-size: 11.5px; color: var(--muted); padding: 26px 8px; opacity: 0.7; }
.kb-empty .ph { display: block; font-size: 22px; margin-bottom: 6px; opacity: 0.6; }

@media (max-width: 760px) {
  .kb-col { min-width: 178px; }
  .kb-col-body { max-height: 360px; }
}

/* ── Main menu drawer (left, triggered by logo) ── */
.section, .hero { scroll-margin-top: 88px; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); z-index: 310;
  background: var(--surface); border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: 20px 0 50px -20px var(--overlay);
}
.nav-drawer.open { transform: translateX(0); }
.nav-head { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border); }
.nav-head .rbar-logo { width: 26px; height: 30px; flex: none; }
.nav-head .nav-brand { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav-head .nav-brand b { color: var(--accent); }
.nav-head .closex { margin-left: auto; }
.nav-body { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group { margin-bottom: 10px; }
.nav-group-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 14.5px; transition: background 0.14s, color 0.14s; }
.nav-link:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-link > .ph { font-size: 19px; color: var(--muted); width: 22px; text-align: center; flex: none; transition: color 0.14s; }
.nav-link:hover > .ph { color: var(--accent); }
.nav-link .nl-text { flex: 1; }
.nav-link .nl-chev { color: var(--muted); opacity: 0.45; font-size: 14px; }
.nav-link .nl-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 6px; padding: 2px 6px; }
.nav-foot { padding: 14px 18px max(env(safe-area-inset-bottom), 16px); border-top: 1px solid var(--border); }
.nav-status { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; }
.nav-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); flex: none; }
.nav-status .ns-sub { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.brand { cursor: pointer; }

/* ── Search autocomplete ── */
.search-wrap { position: relative; max-width: 380px; z-index: 20; }
.search-wrap .hero-search { max-width: none; }
.ac {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 18px 44px -16px var(--overlay), 0 2px 8px -4px color-mix(in srgb, var(--ink) 30%, transparent);
  max-height: 366px; overflow-y: auto; overflow-x: hidden; padding: 6px;
  animation: acIn 0.15s cubic-bezier(.4,0,.2,1);
}
.ac[hidden] { display: none; }
@keyframes acIn { from { opacity: 0; transform: translateY(-6px); } }
.ac-group-label { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 9px 10px 5px; }
.ac-clear { font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 2px 4px; border-radius: 6px; }
.ac-clear:hover { color: var(--accent); }
.ac-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--r-sm); transition: background 0.1s;
}
.ac-item:hover, .ac-item.active { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.ac-emoji { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--bg); border: 1px solid var(--border); }
.ac-emoji .ph { font-size: 16px; color: var(--muted); }
.ac-main { flex: 1; min-width: 0; }
.ac-main .t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ac-main .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.ac-main .t mark { background: color-mix(in srgb, var(--accent) 24%, transparent); color: inherit; font-weight: 800; border-radius: 3px; padding: 0 1px; }
.ac-price { font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; color: var(--muted); flex: none; }
.ac-go { font-size: 14px; color: var(--muted); opacity: 0.5; flex: none; }
.ac-empty { padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.ac-empty b { color: var(--ink); font-weight: 700; }

/* ── Category tree browser (drill-down + breadcrumbs) ── */
.tree { border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; }
.tree-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.tree-back { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: all 0.14s; }
.tree-back:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tree-back:disabled { opacity: 0.38; cursor: default; }
.crumbs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.crumbs::-webkit-scrollbar { display: none; }
.crumb { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; transition: color 0.14s, background 0.14s; }
.crumb:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.crumb.current { color: var(--ink); font-weight: 800; pointer-events: none; }
.crumb-sep { color: var(--muted); opacity: 0.5; font-size: 13px; flex: none; }
.tree-view { position: relative; overflow: hidden; padding: 10px; }
.tree-list { display: flex; flex-direction: column; gap: 7px; }
.tree-list.in  { animation: treeIn  0.22s cubic-bezier(.4,0,.2,1); }
.tree-list.out { animation: treeOut 0.22s cubic-bezier(.4,0,.2,1); }
@keyframes treeIn  { from { opacity: 0; transform: translateX(26px); } }
@keyframes treeOut { from { opacity: 0; transform: translateX(-22px); } }
.t-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); transition: border-color 0.14s, transform 0.12s, box-shadow 0.14s; }
.t-row:not(.is-item):hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.t-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, var(--accent) 6%, var(--bg))); border: 1px solid var(--border); }
.t-img { width: 44px; height: 44px; flex: none; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); }
.t-main { flex: 1; min-width: 0; }
.t-main .t-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.t-main .t-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.t-chev { color: var(--muted); font-size: 17px; flex: none; }
.t-row:hover .t-chev { color: var(--accent); }
.t-price { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px; flex: none; }
.t-add { flex: none; display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); border: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 13px; transition: all 0.14s; }
.t-add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.t-add.added { background: var(--success); color: #fff; border-color: var(--success); }
@media (prefers-reduced-motion: reduce) { .tree-list.in, .tree-list.out { animation: none; } }
@media (max-width: 760px) { .t-ico { width: 40px; height: 40px; font-size: 21px; } .t-add .ph + * { display: none; } }

