/* ================= Cibus — warm kitchen theme, mobile-first, with motion ================= */

:root {
  --bg: #fff8f0;
  --surface: #ffffff;
  --tint: #fff3e6;
  --tint-2: #f8ebde;
  --ink: #2a170b;
  --ink-2: #5a3e2c;
  --muted: #8a6e5c;
  --line: #f0dfcf;
  --line-strong: #e5cdb7;

  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-soft: #ffe8d4;
  --turmeric: #f5b301;
  --chili: #b4290f;
  --mint: #2f9e6e;
  --ring: rgba(251, 146, 60, .25);

  --amber-bg: #fef3c7; --amber: #92400e;
  --green-bg: #dcfce7; --green: #15803d;
  --red-bg: #fee2e2;   --red: #b91c1c;
  --purple-bg: #f3e8ff; --purple: #7e22ce;
  --blue-bg: #e0f2fe; --blue: #0369a1;

  --radius-lg: 26px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(80, 40, 10, .06);
  --shadow: 0 1px 2px rgba(80, 40, 10, .05), 0 12px 30px -14px rgba(120, 53, 15, .25);
  --shadow-lg: 0 30px 70px -24px rgba(70, 25, 5, .45);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);

  --appbar-h: 64px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- page-to-page morph transitions (Chrome/Edge/Safari 18+) ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--smooth) both; }
::view-transition-new(root) { animation: vt-in .38s var(--smooth) both; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--smooth); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px) scale(.99); filter: blur(2px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.appbar { view-transition-name: appbar; }
.appbar .brand-mark { view-transition-name: brand; }
.page-title { view-transition-name: page-title; }
.basket-card { view-transition-name: basket; }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  position: relative; min-height: 100vh; margin: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
/* paper grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.015em; }
p { margin: 0; }
a { color: var(--primary-hover); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.center.cta-row { justify-content: center; }

svg[viewBox="0 0 24 24"] {
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- motion primitives ---------- */

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  25% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
  50% { border-radius: 30% 70% 32% 68% / 62% 30% 70% 38%; }
  75% { border-radius: 55% 45% 60% 40% / 40% 65% 35% 60%; }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(4%, -6%) rotate(40deg) scale(1.06); }
  66% { transform: translate(-5%, 4%) rotate(-30deg) scale(.96); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 8deg)); }
}
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.05); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@keyframes bump { 40% { transform: scale(1.25); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, .45); } 100% { box-shadow: 0 0 0 12px rgba(234, 88, 12, 0); } }

.wobble { display: inline-block; animation: wobble 3s ease-in-out infinite; }
.bump { animation: bump .4s var(--spring); }

.morph-blob {
  position: absolute; width: 340px; height: 340px;
  background: radial-gradient(circle at 30% 30%, #fed7aa, #fb923c 55%, #ea580c);
  animation: morph 12s ease-in-out infinite, drift 22s ease-in-out infinite;
  filter: saturate(1.1);
}
.morph-blob.alt { background: radial-gradient(circle at 60% 40%, #fde68a, #f5b301 70%); animation-duration: 15s, 26s; animation-direction: reverse; opacity: .85; }
.morph-blob.small { width: 120px; height: 120px; }

/* scroll reveal */
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: reveal-in .7s var(--smooth) backwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* soft background blobs on every page */
.decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.decor span {
  position: absolute; width: 46vmax; height: 46vmax; opacity: .22; filter: blur(40px);
  background: radial-gradient(circle, #fdba74, transparent 65%);
  animation: morph 18s ease-in-out infinite, drift 30s ease-in-out infinite;
}
.decor span:nth-child(1) { top: -18vmax; right: -12vmax; }
.decor span:nth-child(2) { bottom: -22vmax; left: -16vmax; background: radial-gradient(circle, #fde68a, transparent 65%); animation-delay: -6s; }
.decor span:nth-child(3) { top: 40%; left: 55%; width: 26vmax; height: 26vmax; background: radial-gradient(circle, #fecaca, transparent 65%); animation-delay: -12s; opacity: .14; }

/* ---------- buttons ---------- */

.btn {
  appearance: none; border: 0; cursor: pointer; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .2s var(--spring), box-shadow .2s, border-radius .35s var(--smooth), opacity .2s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .3s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: .85rem; }
.btn-xs { min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: .75rem; }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, #f97316, #ea580c 45%, #c2410c 90%) 0 0 / 200% 100%;
  box-shadow: 0 12px 24px -12px rgba(234, 88, 12, .9);
}
.btn-primary:hover:not(:disabled) {
  background-position: 100% 0; transform: translateY(-2px);
  border-radius: 22px 12px 22px 12px; box-shadow: 0 16px 30px -12px rgba(234, 88, 12, .9);
}
/* shine sweep */
.btn-primary::after, .btn-light::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transition: transform .7s var(--smooth);
}
.btn-primary:hover::after, .btn-light:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn-soft { background: var(--primary-soft); color: var(--primary-hover); }
.btn-soft:hover { background: #fed7aa; border-radius: 18px 10px 18px 10px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fdba74; background: var(--tint); }
.btn-light { background: #fff; color: var(--primary-hover); box-shadow: 0 12px 26px -12px rgba(60, 20, 0, .45); }
.btn-light:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-danger-soft { background: var(--red-bg); color: var(--red); }
.btn-danger-soft:hover { background: #fecaca; }

.icon-btn {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 0; border-radius: var(--radius-sm); background: none; cursor: pointer; color: var(--ink-2);
  transition: background .15s, color .15s, transform .25s var(--spring);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--tint); color: var(--ink); transform: scale(1.08); }
.icon-btn.danger:hover { background: var(--red-bg); color: var(--red); }
.icon-btn.spin svg { animation: spin .8s linear infinite; }

.link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; cursor: pointer;
  padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap;
}
.link-btn:hover { background: var(--tint); color: var(--ink); }
.link-btn.small { font-size: .82rem; padding: 6px 10px; }

/* ---------- app bar ---------- */

.appbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 248, 240, .82);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid rgba(229, 205, 183, .6);
}
.appbar-inner { height: var(--appbar-h); display: flex; align-items: center; gap: 8px; }
.appbar-links { display: flex; gap: 2px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto; flex: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.25rem;
  background: linear-gradient(135deg, #fed7aa, #fb923c 60%, #ea580c);
  border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  animation: morph 9s ease-in-out infinite;
  box-shadow: 0 8px 18px -10px rgba(234, 88, 12, .9);
  transition: transform .4s var(--spring);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 2px; margin-right: 6px; }
.nav-link {
  position: relative; border: 0; background: none; cursor: pointer;
  padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.nav-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--smooth);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--ink); }

.status {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 700; color: var(--muted);
}
.status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #d6c3b4; }
.status.open { color: var(--green); }
.status.open::before { background: #22c55e; animation: pulse-ring 1.8s infinite; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
.status.on-dark { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); color: #fff; }
.status.on-dark.open::before { background: #86efac; }

.help-btn, .icon-pill, .cart-btn {
  position: relative; flex: none;
  height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
  color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: transform .3s var(--spring), border-color .2s, border-radius .35s var(--smooth);
}
.help-btn { padding: 0 14px; color: var(--green); border-color: #bbf7d0; background: #f0fdf4; }
.icon-pill, .cart-btn { width: 44px; }
.help-btn svg, .icon-pill svg, .cart-btn svg { width: 20px; height: 20px; }
.help-btn:hover, .icon-pill:hover, .cart-btn:hover { transform: translateY(-2px); border-color: #fdba74; border-radius: 18px 10px 18px 10px; }
.icon-pill.active { border-color: #fdba74; background: var(--tint); }
.only-mobile { display: none; }

.badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 21px; height: 21px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800;
}

/* ---------- info dialog (About / How it works) ---------- */

.info-dialog {
  width: min(560px, calc(100% - 24px)); max-height: min(88dvh, 760px);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: auto;
}
.info-dialog[open] { animation: dialog-in .45s var(--spring); }
.info-dialog::backdrop { background: rgba(42, 23, 11, .5); backdrop-filter: blur(3px); animation: fade-in .3s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(.94); border-radius: 60px; } }
@keyframes fade-in { from { opacity: 0; } }
.info-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.info-head h2 { font-size: 1.5rem; }
.info-dialog .seg { margin: 6px 22px 0; }
.info-pane { padding: 18px 22px 8px; }
.info-pane p { color: var(--ink-2); }
.info-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 22px 22px; }

/* segmented control with a morphing pill */
.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 0; padding: 4px; border-radius: 14px; background: var(--tint-2); width: fit-content;
}
.seg button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 8px 18px; border-radius: 10px; font-weight: 800; font-size: .88rem; color: var(--ink-2);
  transition: color .25s;
}
.seg button.active { color: var(--ink); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n, 2));
  border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm), 0 4px 12px -6px rgba(120, 53, 15, .3);
  transform: translateX(calc(var(--x, 0) * 100%));
  transition: transform .45s var(--spring), border-radius .45s var(--smooth);
}
.seg:hover .seg-pill { border-radius: 14px 8px 14px 8px; }
.seg-lg button { padding: 10px 22px; font-size: .95rem; }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.how-steps li {
  position: relative; padding: 22px 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--spring), box-shadow .3s, border-radius .5s var(--smooth);
}
.how-steps li:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); border-radius: 30px 18px 30px 18px; }
.how-steps li:hover .how-icon { transform: scale(1.15) rotate(-10deg); }
.how-icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.8rem;
  background: var(--tint); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
  animation: morph 10s ease-in-out infinite; transition: transform .4s var(--spring);
}
.how-num {
  position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 800;
}
.how-steps strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.how-steps p { color: var(--muted); font-size: .9rem; }
.how-steps.compact { grid-template-columns: 1fr; gap: 10px; }
.how-steps.compact li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; padding: 14px 44px 14px 14px; }
.how-steps.compact .how-icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; font-size: 1.5rem; }
.how-steps.compact .how-num { top: 50%; translate: 0 -50%; }

.about-points { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-points li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint); font-weight: 700; font-size: .9rem; }
.about-points span { font-size: 1.3rem; }

/* ---------- footer ---------- */

.footer { margin-top: 32px; border-top: 1px solid var(--line); background: rgba(255, 243, 230, .6); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.footer-brand span:not(.brand-mark) { color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-links a, .footer-links button {
  border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 8px;
  color: var(--ink-2); font-weight: 700; font-size: .88rem; text-decoration: none;
}
.footer-links a:hover, .footer-links button:hover { background: var(--tint); color: var(--primary-hover); }

/* ---------- shared bits ---------- */

.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; color: var(--primary-hover); margin-bottom: 10px; }
.kicker.light { color: rgba(255, 255, 255, .9); }
.squiggle {
  position: relative; white-space: nowrap; color: var(--primary);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c12-6 22 4 34-1s22-6 34 0 22 5 34-1 10-3 14-2' fill='none' stroke='%23f5b301' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") bottom / 100% 12px no-repeat;
  padding-bottom: 6px;
}
.page-title { font-size: clamp(1.8rem, 4.4vw, 2.6rem); }
.section { padding: 56px 0 8px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 26px; }
.notice {
  margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--amber-bg); color: var(--amber); font-weight: 700; font-size: .9rem;
}
.empty { padding: 44px 16px; text-align: center; color: var(--muted); }
.empty span { display: inline-block; font-size: 2.6rem; margin-bottom: 8px; }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
.loading { padding: 44px 16px; text-align: center; color: var(--muted); font-weight: 600; grid-column: 1 / -1; list-style: none; }
.help-line { margin-top: 18px; text-align: center; color: var(--muted); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.status-line { margin-top: 18px; }

.panel { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack h2 { font-size: 1.35rem; }

/* ---------- welcome ---------- */

.welcome-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: 48px 0 40px; }
.welcome-hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 800; }
.lede { margin: 18px 0 28px; max-width: 46ch; font-size: 1.12rem; color: var(--ink-2); }

.plate-stage { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.plate-stage .morph-blob { width: 82%; height: 82%; }
.plate-stage .morph-blob.alt { width: 55%; height: 55%; top: 4%; right: 2%; }
.plate {
  position: relative; width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #fff 0 55%, #fff7ed 56% 70%, #fde7d0 71%);
  box-shadow: 0 30px 50px -24px rgba(124, 45, 18, .6), inset 0 -8px 16px rgba(194, 65, 12, .12);
  animation: float 7s ease-in-out infinite;
}
.plate span { font-size: clamp(4rem, 10vw, 6rem); filter: drop-shadow(0 10px 12px rgba(124, 45, 18, .3)); }
.orbit { position: absolute; font-size: clamp(1.8rem, 4vw, 2.6rem); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 8px 8px rgba(124, 45, 18, .25)); }
.o1 { top: 8%; left: 10%; --rot: -12deg; }
.o2 { top: 4%; right: 18%; --rot: 10deg; animation-delay: -1.5s; }
.o3 { bottom: 14%; left: 4%; --rot: 8deg; animation-delay: -3s; }
.o4 { bottom: 6%; right: 12%; --rot: -6deg; animation-delay: -4.5s; }
.o5 { top: 46%; right: -2%; --rot: 20deg; animation-delay: -2s; }

.marquee {
  overflow: hidden; padding: 14px 0; margin: 10px 0 0;
  background: var(--ink); color: #fff; transform: rotate(-1.2deg) scale(1.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); white-space: nowrap; }
.marquee-chip .emoji, .marquee-chip img { font-size: 1.4rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; }
.marquee-chip em { font-style: normal; color: #fdba74; font-size: .85rem; }

.about-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center;
  padding: 36px; border-radius: 34px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-card .section-title { margin-bottom: 12px; }
.about-card p { color: var(--ink-2); }
.about-art, .login-icon { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.about-art .morph-blob { width: 100%; height: 100%; }
.about-art span { position: relative; font-size: 5rem; animation: float 6s ease-in-out infinite; }

.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 34px 36px; border-radius: 34px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(253, 224, 71, .5), transparent 40%), linear-gradient(120deg, #f97316, #ea580c 50%, #b4290f);
  box-shadow: 0 24px 50px -26px rgba(194, 65, 12, .9);
}
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band p { opacity: .92; margin-top: 4px; }

/* ---------- menu hero ---------- */

.menu-hero { padding-top: 18px; }
.menu-hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 34px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(125deg, #fb923c 0%, #f97316 35%, #ea580c 70%, #c2410c 100%);
  box-shadow: 0 14px 30px -20px rgba(234, 88, 12, .8);
}
.hero-blob { z-index: -1; right: -60px; top: -120px; width: 380px; height: 380px; opacity: .55;
  background: radial-gradient(circle at 40% 40%, #fde68a, #f5b301 50%, transparent 72%); }
.floaters span { position: absolute; z-index: -1; font-size: 2.2rem; opacity: .9; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(80, 20, 0, .3)); }
.floaters span:nth-child(1) { right: 8%; top: 18%; --rot: -10deg; }
.floaters span:nth-child(2) { right: 22%; bottom: 14%; --rot: 15deg; animation-delay: -2s; font-size: 1.6rem; }
.floaters span:nth-child(3) { right: 34%; top: 12%; --rot: 6deg; animation-delay: -4s; font-size: 1.8rem; }
.floaters span:nth-child(4) { right: 3%; bottom: 10%; --rot: -6deg; animation-delay: -1s; font-size: 1.9rem; }
.floaters span:nth-child(5) { right: 46%; bottom: 20%; --rot: 12deg; animation-delay: -5s; font-size: 1.5rem; opacity: .7; }
.menu-hero-text { position: relative; max-width: 30ch; }

/* ---------- layout ---------- */

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 6px 0 40px; }

/* ---------- toolbar: search + chips ---------- */

.toolbar {
  position: sticky; top: var(--appbar-h); z-index: 30;
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 0 12px; background: var(--bg);
}
.toolbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: linear-gradient(var(--bg), rgba(255, 248, 240, 0)); pointer-events: none;
}

.search { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s, transform .3s var(--spring); }
.search:focus-within svg { color: var(--primary); transform: scale(1.15); }
.toolbar .search input[type="search"] { height: 48px; padding-left: 42px; border-radius: 16px; }

.chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font-weight: 700; font-size: .88rem; cursor: pointer;
  transition: background .25s, border-color .2s, color .2s, transform .3s var(--spring), border-radius .4s var(--smooth);
}
.chip:hover { border-color: #fdba74; transform: translateY(-2px); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 14px 999px 999px 14px; }
.chip-veg .veg { margin: 0; }
.chip-veg.active { background: var(--green-bg); border-color: #86efac; color: var(--green); }
.chip-sep { flex: none; width: 1px; height: 22px; background: var(--line-strong); }
.chip-count { font-size: .75rem; opacity: .65; }

/* ---------- menu ---------- */

.menu-group { margin-top: 18px; }
.menu-group h2 { display: flex; align-items: baseline; gap: 8px; font-size: 1.4rem; margin-bottom: 14px; }
.menu-group h2 span { font-family: var(--font-body); font-size: .85rem; font-weight: 700; color: var(--muted); }

.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.dish {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "visual visual" "name name" "desc desc" "price action";
  padding: 10px 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: opacity .6s var(--smooth), box-shadow .3s, transform .45s var(--spring), border-color .3s, border-radius .5s var(--smooth);
}
.dish.reveal.in:hover, .dish:not(.reveal):hover {
  transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); border-color: #fdba74;
  border-radius: 26px 16px 26px 16px;
}

.dish-visual {
  grid-area: visual; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: var(--radius-sm);
  display: grid; place-items: center; font-size: 3.4rem;
  background: radial-gradient(circle at 35% 30%, #fff7ed 0, #ffedd5 45%, #fed7aa 100%);
  transition: border-radius .5s var(--smooth);
}
.dish:hover .dish-visual { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
.dish-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--smooth); }
.dish:hover .dish-visual img { transform: scale(1.08); }
.dish-visual .emoji { filter: drop-shadow(0 8px 10px rgba(124, 45, 18, .22)); transition: transform .5s var(--spring); }
.dish:hover .dish-visual .emoji { transform: scale(1.16) rotate(-10deg) translateY(-4px); }
.dish-visual::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
}
.dish:hover .dish-visual::after { transform: translateX(130%) skewX(-18deg); transition: transform .9s var(--smooth); }

.stock-note {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(180, 41, 15, .92); color: #fff; font-size: .7rem; font-weight: 800;
}

.dish-name { grid-area: name; display: flex; align-items: flex-start; gap: 8px; padding: 0 4px; }
.dish-name h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.dish-name .veg { margin-top: 3px; }
.dish-cook { margin-top: 1px; font-size: .8rem; font-weight: 700; color: var(--primary-hover); }
.dish-info { grid-area: desc; align-self: start; padding: 4px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.dish-allergens { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: .72rem; font-weight: 800; }
.dish-allergens.none { background: var(--green-bg); color: var(--green); }
.dish-desc {
  color: var(--muted); font-size: .85rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-price { grid-area: price; align-self: center; padding: 12px 4px 0; font-weight: 800; }
.dish-action { grid-area: action; justify-self: end; padding-top: 12px; }

.dish.soldout .dish-visual { filter: grayscale(1); opacity: .55; }
.dish.soldout .dish-name, .dish.soldout .dish-price { opacity: .55; }

.veg {
  flex: none; width: 14px; height: 14px;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--green); border-radius: 3px;
}
.veg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.veg.non { border-color: var(--red); }
.veg.non::after { background: var(--red); }

.btn-add {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 84px; height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid #fdba74; background: var(--tint); color: var(--primary-hover);
  font-weight: 800; font-size: .85rem; letter-spacing: .06em; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, border-radius .4s var(--smooth), transform .3s var(--spring);
}
.btn-add i { font-style: normal; font-size: 1.05rem; line-height: 1; transition: transform .4s var(--spring); }
.btn-add:hover { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 999px; transform: scale(1.05); }
.btn-add:hover i { transform: rotate(90deg); }

.stepper {
  display: inline-flex; align-items: center; justify-content: space-between;
  min-width: 84px; height: 36px; border-radius: 999px;
  background: linear-gradient(120deg, #f97316, #ea580c); color: #fff;
  box-shadow: 0 6px 14px -8px rgba(234, 88, 12, .9);
  animation: pop .4s var(--spring);
}
.stepper button {
  width: 30px; height: 100%; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font-size: 1.15rem; font-weight: 800; line-height: 1;
  transition: background .15s, transform .2s var(--spring);
}
.stepper button:hover:not(:disabled) { background: rgba(255, 255, 255, .18); }
.stepper button:active:not(:disabled) { transform: scale(.85); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper span { min-width: 20px; text-align: center; font-weight: 800; font-size: .95rem; }
.stepper.sm { min-width: 76px; height: 30px; box-shadow: none; animation: none; }
.stepper.sm button { width: 26px; font-size: 1rem; }

.soldout-tag {
  display: inline-block; padding: 7px 12px; border-radius: 10px;
  background: var(--tint-2); color: var(--muted);
  font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}

.dish.skeleton {
  min-height: 250px; border: 0;
  background: linear-gradient(90deg, #f8ece1 25%, #fff6ee 40%, #f8ece1 60%);
  background-size: 300% 100%; animation: shimmer 1.3s ease-in-out infinite;
}

/* ---------- basket (menu sidebar + checkout) ---------- */

.basket-side { display: none; }
.basket-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.basket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.basket-head h2 { font-size: 1.3rem; }
.cart-empty { padding: 22px 14px; text-align: center; font-size: .9rem; color: var(--muted); background: var(--tint); border-radius: var(--radius); }
.cart-empty span { font-size: 2.2rem; margin-bottom: 4px; }
.cart-empty strong { color: var(--ink); }
.cart-empty .btn { margin-top: 14px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  animation: pop .35s var(--smooth);
}
.ci-name { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.ci-price { color: var(--muted); font-size: .78rem; }
.ci-total { min-width: 52px; text-align: right; font-weight: 800; font-size: .92rem; }
.bill { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.bill strong { font-family: var(--font-display); font-size: 1.5rem; }

.cart-bar {
  position: fixed; z-index: 50;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 12px 16px; border-radius: 18px;
  background: linear-gradient(120deg, #f97316, #ea580c 50%, #c2410c) 0 0 / 200% 100%;
  color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 18px 34px -12px rgba(194, 65, 12, .8);
  animation: bar-in .5s var(--spring);
  transition: background-position .4s, border-radius .4s var(--smooth);
}
.cart-bar:hover { background-position: 100% 0; border-radius: 26px 14px 26px 14px; }
@keyframes bar-in { from { transform: translateY(120%); } }
.cart-bar-count { padding: 3px 9px; border-radius: 8px; background: rgba(255, 255, 255, .2); font-size: .8rem; }
.cart-bar-total { font-size: 1.05rem; }
.cart-bar-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.cart-bar-cta svg { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .3s var(--spring); }
.cart-bar:hover .cart-bar-cta svg { transform: translateX(4px); }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label, legend, .field-label { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
legend { padding: 0; margin-bottom: 8px; }
.opt { margin-left: 4px; font-weight: 600; font-size: .75rem; color: var(--muted); }

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, border-radius .35s var(--smooth);
}
input::placeholder, textarea::placeholder { color: #bfa592; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #fb923c; box-shadow: 0 0 0 4px var(--ring); border-radius: 16px 10px 16px 10px; }
textarea { resize: vertical; min-height: 64px; }
select {
  appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c2410c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-error { color: var(--red); font-weight: 700; font-size: .88rem; }
.form-error:empty { display: none; }
.pay-note { text-align: center; color: var(--muted); font-size: .82rem; }

.timepick .seg { margin-bottom: 12px; }
.slots { display: flex; flex-direction: column; gap: 12px; }
.slot-label { display: block; margin-bottom: 6px; font-size: .75rem; font-weight: 800; color: var(--muted); }
.slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { position: relative; }
.slot-group.now .slot { grid-column: 1 / -1; }
.slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.slot span {
  display: block; padding: 8px 6px; border-radius: 10px; white-space: nowrap; text-align: center;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 700; font-size: .85rem;
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--spring), border-radius .35s var(--smooth);
}
.slot:hover span { border-color: #fdba74; transform: translateY(-2px); }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 16px 8px 16px 8px; animation: pop .35s var(--spring); }
.slot input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.timepick.invalid .slot span { border-color: #fca5a5; }

/* ---------- order page ---------- */

.order-main, .pay-main { padding: 28px 0 40px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.checkout-form h2 { font-size: 1.35rem; }
.place-bar { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }

.orders-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.track-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.track-list > .empty, .track-list > .center, .track-list > .loading { grid-column: 1 / -1; }
.track-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: opacity .6s var(--smooth), transform .45s var(--spring), box-shadow .3s, border-radius .5s var(--smooth);
}
.track-card.in:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-radius: 30px 20px 30px 20px; }
.track-card.cancelled { opacity: .75; }
.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tc-head strong { display: block; letter-spacing: .03em; }
.tc-cancelled { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint-2); color: var(--ink-2); font-size: .9rem; }

.tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--muted); text-align: center; }
.tracker li span { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); transition: background .4s, border-color .4s; }
.tracker li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--line-strong); }
.tracker li::after { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--smooth); }
.tracker li:first-child::before, .tracker li:first-child::after { display: none; }
.tracker li.done::after, .tracker li.current::after { transform: scaleX(1); }
.tracker li.done, .tracker li.current { color: var(--ink); }
.tracker li.done span { background: var(--primary); border-color: var(--primary); }
.tracker li.current span { border-color: var(--primary); background: #fff; animation: pulse-ring 1.6s infinite; }
.tracker li.current span::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }

.tc-when, .oc-when { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.tc-when svg, .oc-when svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.tc-items, .oc-items { list-style: none; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint); }
.tc-items li, .oc-items li { padding: 2px 0; font-weight: 700; font-size: .95rem; }
.tc-note { padding: 4px 12px; border-left: 3px solid #fdba74; font-style: italic; color: var(--ink-2); font-size: .9rem; }
.tc-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 800; }
.tc-total div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-total strong { font-family: var(--font-display); font-size: 1.3rem; }
.tc-pay { align-self: flex-start; }

.find-card { margin-top: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.find-card summary { padding: 16px 18px; font-weight: 800; cursor: pointer; list-style-position: inside; }
.find-card[open] summary { border-bottom: 1px solid var(--line); }
.find-form { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.find-form .btn { align-self: flex-start; }

.badge-status, .badge-pay {
  flex: none; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  background: var(--amber-bg); color: var(--amber);
}
.badge-status[data-status="Preparing"] { background: var(--primary-soft); color: var(--primary-hover); }
.badge-status[data-status="Out for delivery"] { background: var(--purple-bg); color: var(--purple); }
.badge-status[data-status="Delivered"] { background: var(--green-bg); color: var(--green); }
.badge-status[data-status="Cancelled"] { background: var(--tint-2); color: var(--muted); }
.badge-pay { text-transform: none; letter-spacing: 0; font-size: .75rem; background: var(--tint-2); color: var(--ink-2); }
.badge-pay[data-pay="Paid"] { background: var(--green-bg); color: var(--green); }
.badge-pay[data-pay="UPI (customer says paid)"] { background: var(--blue-bg); color: var(--blue); }
.badge-pay[data-pay="Cash on delivery"] { background: var(--amber-bg); color: var(--amber); }

/* ---------- payment ---------- */

.progress-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: p; }
.progress-steps li {
  counter-increment: p; position: relative; padding-top: 12px; text-align: center;
  font-size: .78rem; font-weight: 800; color: var(--muted);
}
.progress-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 6px; background: var(--line); }
.progress-steps li.done, .progress-steps li.current { color: var(--ink); }
.progress-steps li.done::before { background: var(--primary); }
.progress-steps li.current::before { background: linear-gradient(90deg, var(--primary), #fdba74, var(--primary)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }

.pay-main .page-title { margin-bottom: 8px; }
.pay-summary {
  display: flex; flex-direction: column; gap: 14px; margin: 18px 0;
  padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pay-amount { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--tint); }
.pay-amount span { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pay-amount strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1.1; }
.pay-amount em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .85rem; }

.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pay-option {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--line);
  transition: border-color .25s, transform .35s var(--spring), border-radius .45s var(--smooth), box-shadow .3s;
}
.pay-option:hover { transform: translateY(-3px); border-color: #fdba74; }
.pay-option.active { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); border-radius: 26px 14px 26px 14px; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.po-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.6rem; background: var(--tint); border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
.pay-option.active .po-icon { animation: morph 6s ease-in-out infinite; background: var(--primary-soft); }
.po-text { flex: 1; display: flex; flex-direction: column; }
.po-text span { color: var(--muted); font-size: .85rem; }
.po-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); transition: all .3s var(--spring); }
.pay-option.active .po-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 4px #fff; }

.pay-detail { margin-top: 16px; }
.upi-box, .cash-box { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); animation: pop .4s var(--smooth); }
.upi-id { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--tint); }
.upi-id span { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.upi-id strong { display: block; word-break: break-all; }
.upi-id em { font-style: normal; color: var(--muted); font-size: .85rem; }
.cash-box p { font-size: 1.02rem; }

.pay-done { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 18px; text-align: center; }
.pay-done h2 { font-size: 1.8rem; }
.pay-done .cta-row { margin-top: 12px; }
.success-mark {
  position: relative; width: 76px; height: 76px; margin-bottom: 6px;
  display: grid; place-items: center; background: var(--green-bg); color: var(--green); font-size: 2.2rem; font-weight: 800;
  border-radius: 50%;
}
.success-mark.morph { animation: morph 6s ease-in-out infinite, pop .6s var(--spring); }
.burst { position: absolute; left: 50%; top: 50%; font-size: 1.4rem; pointer-events: none; animation: burst 1.2s var(--smooth) forwards; }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)) scale(1); opacity: 0; }
}

/* ---------- responsive: customer pages ---------- */

@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .basket-side { display: block; position: sticky; top: calc(var(--appbar-h) + 16px); }
  .basket-card { max-height: calc(100vh - var(--appbar-h) - 32px); overflow-y: auto; }
  .cart-bar { display: none !important; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .checkout-grid .basket-card { order: 2; position: sticky; top: calc(var(--appbar-h) + 16px); }
}
@media (max-width: 999px) {
  .cart-bar { view-transition-name: basket; }
  .shop[data-page="menu"] .footer { padding-bottom: 90px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .only-mobile { display: inline-flex; }
  .welcome-hero { grid-template-columns: 1fr; padding-top: 28px; text-align: left; }
  .plate-stage { max-width: 340px; order: -1; }
  .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { grid-template-columns: 1fr; padding: 26px; }
  .about-art { max-width: 160px; }
}

/* phones: dishes become app-style rows */
@media (max-width: 639px) {
  :root { --appbar-h: 58px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.1rem; }
  .help-btn span { display: none; }
  .help-btn { width: 44px; padding: 0; }
  .appbar-inner { gap: 6px; }
  .help-btn, .icon-pill, .cart-btn { height: 40px; width: 40px; border-radius: 12px; }

  .menu-hero { padding-top: 14px; }
  .menu-hero-card { padding: 22px 20px; border-radius: 22px; }
  .floaters span { font-size: 1.6rem; }
  .floaters span:nth-child(3), .floaters span:nth-child(5) { display: none; }
  .menu-group h2 { font-size: 1.25rem; margin-bottom: 0; }

  .dish-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dish {
    grid-template-columns: minmax(0, 1fr) 112px;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas: "name visual" "price visual" "desc visual" "desc action";
    column-gap: 14px; padding: 18px 0 22px;
    background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .dish.reveal.in:hover, .dish:not(.reveal):hover { transform: none; box-shadow: none; border-radius: 0; }
  .dish:last-child { border-bottom: 0; }
  .dish-visual { width: 112px; aspect-ratio: 1; margin: 0; border-radius: 18px; font-size: 3rem; align-self: start; }
  .dish-name, .dish-info, .dish-price { padding-left: 0; padding-right: 0; }
  .dish-price { padding-top: 4px; align-self: start; }
  .dish-info { padding-top: 6px; }
  .dish-desc { -webkit-line-clamp: 3; }
  .dish-action { position: relative; z-index: 1; justify-self: center; padding-top: 0; margin-top: -20px; }
  .dish-action .btn-add { min-width: 92px; background: #fff; box-shadow: 0 6px 14px -6px rgba(120, 53, 15, .35); }
  .dish-action .btn-add:hover { background: var(--primary); }
  .dish-action .stepper { min-width: 92px; }
  .dish-action .soldout-tag { background: #fff; box-shadow: 0 6px 14px -6px rgba(120, 53, 15, .25); }
  .stock-note { left: 50%; translate: -50% 0; bottom: auto; top: 6px; white-space: nowrap; }
  .dish.skeleton { min-height: 140px; margin-bottom: 12px; border-radius: 16px; }

  .how-steps { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .plate-stage { max-width: 250px; }
  .welcome-hero { gap: 12px; padding-top: 16px; }
  .panel { padding: 18px; }
  .basket-card { padding: 18px; }
  .section { padding-top: 40px; }
  .cta-band { padding: 26px 22px; border-radius: 26px; }
  .page-head .seg { width: 100%; }
  .track-list { grid-template-columns: minmax(0, 1fr); }
  .info-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; max-height: 92dvh; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand-text { display: none; }
}
@media (max-width: 359px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ===================== Admin ===================== */

.admin-main { padding: 24px 0 64px; }

.login-card {
  max-width: 380px; margin: 40px auto; padding: 32px 26px;
  text-align: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.login-icon { width: 110px; margin: 0 auto 6px; }
.login-icon .morph-blob { width: 100%; height: 100%; opacity: .5; }
.login-icon span { position: relative; font-size: 2.6rem; }
.login-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.login-card #pin { text-align: center; font-size: 1.25rem; letter-spacing: .3em; height: 52px; }

.warn-banner {
  margin-bottom: 18px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--amber-bg); color: var(--amber); border: 1px solid #fcd34d;
  font-size: .9rem; line-height: 1.55;
}
.warn-banner strong { display: block; }
.warn-banner code { padding: 1px 6px; border-radius: 6px; background: #fde68a; }

.tabs {
  display: inline-flex; gap: 4px; max-width: 100%; overflow-x: auto;
  padding: 5px; margin-bottom: 20px; background: var(--tint-2); border-radius: 14px;
}
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font-weight: 800; font-size: .92rem; color: var(--ink-2); white-space: nowrap;
  transition: background .25s, color .2s, border-radius .4s var(--smooth);
}
.tab svg { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.tab:hover svg { transform: scale(1.15) rotate(-6deg); }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border-radius: 14px 8px 14px 8px; }
.tab-badge {
  min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; animation: pop .4s var(--spring);
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--spring), border-radius .45s var(--smooth);
}
.stat:hover { transform: translateY(-3px); border-radius: 24px 14px 24px 14px; }
.stat span { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat strong { display: block; margin-top: 2px; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; }
.stat.hot { background: linear-gradient(120deg, #f97316, #ea580c); border-color: var(--primary); color: #fff; }
.stat.hot span { color: rgba(255, 255, 255, .85); }

.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 1.4rem; }
.panel-head .chips { flex: 1; min-width: 0; }
.refresh { display: flex; align-items: center; gap: 4px; }

/* orders */
.orders-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.order-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  animation: pop .4s var(--smooth);
}
.order-card.fresh { border-color: #fdba74; box-shadow: 0 0 0 3px var(--ring), var(--shadow); }
.order-card[data-status="Delivered"], .order-card[data-status="Cancelled"] { opacity: .72; }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-id { font-size: .82rem; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.oc-when { font-size: 1.05rem; }
.oc-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-who strong { display: block; line-height: 1.3; }
.oc-who .muted { font-size: .88rem; font-weight: 700; }
.call-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  background: var(--green-bg); color: var(--green);
  font-weight: 800; font-size: .85rem; text-decoration: none;
}
.call-btn svg { width: 16px; height: 16px; }
.oc-note { padding: 8px 12px; border-left: 3px solid #fdba74; font-size: .9rem; font-style: italic; color: var(--ink-2); }
.oc-pay { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.oc-total { font-family: var(--font-display); font-size: 1.3rem; }
.oc-actions { display: flex; align-items: center; gap: 8px; }
.oc-actions select { width: auto; height: 36px; padding: 0 30px 0 10px; font-size: .85rem; font-weight: 700; border-radius: 10px; background-position: right 10px center; }
.oc-placed { margin-top: -4px; }

/* menu list */
.am-group h3 { margin: 20px 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.am-group:first-child h3 { margin-top: 0; }
.am-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin-bottom: 8px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--spring), border-color .2s;
}
.am-row:hover { transform: translateX(3px); border-color: #fdba74; }
.am-visual {
  position: relative; overflow: hidden; width: 52px; height: 52px;
  display: grid; place-items: center; font-size: 1.7rem; border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, #fff7ed 0, #fed7aa 100%);
}
.am-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-name { display: flex; align-items: center; gap: 8px; font-weight: 800; line-height: 1.3; }
.am-sub { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tag-off, .tag-low { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; }
.tag-off { background: var(--red-bg); color: var(--red); }
.tag-low { background: var(--amber-bg); color: var(--amber); }
.am-row.off .am-visual { filter: grayscale(1); opacity: .6; }
.am-row.off .am-name { color: var(--muted); }
.am-controls { display: flex; align-items: center; gap: 6px; }
.stock-ctl { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); }
.stock-ctl input[type="number"] { width: 72px; height: 36px; padding: 0 8px; text-align: center; font-weight: 800; }

.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #e3d2c3; transition: background .25s; }
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
  transition: transform .4s var(--spring), width .2s;
}
.switch input:active + span::after { width: 28px; }
.switch input:checked + span { background: #22c55e; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:checked:active + span::after { transform: translateX(12px); }
.switch input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }

/* cooks */
.cooks-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.cook-card {
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--spring), border-radius .45s var(--smooth), box-shadow .3s;
}
.cook-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-radius: 26px 16px 26px 16px; }
.cook-top { display: flex; align-items: center; gap: 12px; }
.cook-id { flex: 1; min-width: 0; }
.cook-id strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.avatar {
  position: relative; overflow: hidden; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fed7aa, #fb923c); color: #fff;
  font-weight: 800; font-size: 1rem; transition: border-radius .5s var(--smooth);
}
.cook-card:hover .avatar { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint); }
.mini-stats span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mini-stats strong { font-size: 1.05rem; }
.cook-dishes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cook-dishes li { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .82rem; font-weight: 700; }
.cook-dishes li b { color: var(--primary-hover); }
.cook-dishes li small { color: var(--muted); }
.cook-dishes li.off { opacity: .55; text-decoration: line-through; }
.toggle-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink-2); min-height: 44px; }
.commission { padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--red-bg); color: var(--red); width: fit-content; min-height: 0; transition: background .3s, color .3s; }
.commission.paid { background: var(--green-bg); color: var(--green); }

/* settings */
.settings-form { max-width: 640px; }

/* editors (modal) */
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 16px;
  background: rgba(42, 23, 11, .5); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s;
}
.modal.open { opacity: 1; }
.modal-card {
  width: 100%; max-width: 520px; max-height: 100%; overflow-y: auto;
  border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.96); transition: transform .45s var(--spring), border-radius .45s var(--smooth);
}
.modal:not(.open) .modal-card { border-radius: 60px; }
.modal.open .modal-card { transform: none; }
.modal-card.editor { padding: 0; text-align: left; display: flex; flex-direction: column; max-height: min(92dvh, 880px); }
.modal-card.editor.wide { max-width: 860px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.editor-head h2 { font-size: 1.4rem; margin: 0; }
.editor-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 22px 16px; }
.editor-body > * { flex-shrink: 0; }
.dish-editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; align-items: start; }
.dish-editor-body .preview { position: sticky; top: 0; }
.char-count { align-self: flex-end; }
.editor-error { padding: 0 22px; }
.editor-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.editor-foot .btn { margin: 0; }
#cookExtra { display: flex; flex-direction: column; gap: 12px; }
#cookExtra .btn { align-self: flex-start; }
.cook-identity { display: flex; align-items: flex-end; gap: 14px; }
.grow { flex: 1; }
.form-title { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.dish-editor { display: flex; flex-direction: column; gap: 8px; }
.dish-edit-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 100px auto; align-items: center; gap: 8px; }
.row-actions { display: flex; }
.row-actions .icon-btn { width: 34px; height: 34px; }
.am-visual.sm { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 10px; }
.price-input { position: relative; }
.price-input span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; color: var(--muted); font-weight: 700; pointer-events: none; }
.price-input input[type="number"] { padding-left: 28px; }

.preview .dish-grid { grid-template-columns: 1fr; }
.eyebrow-label { margin-bottom: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.emoji-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.emoji-picks button {
  width: 38px; height: 38px; font-size: 1.2rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  transition: transform .3s var(--spring), background .15s;
}
.emoji-picks button:hover { background: var(--tint); transform: scale(1.18) rotate(-8deg); }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg);
  transform: translate(-50%, 16px) scale(.95); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast.error { background: var(--red); }

@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dish-editor-body { grid-template-columns: 1fr; }
  .dish-editor-body .preview { position: static; order: -1; }
}

/* admin on phones: bottom tab bar */
@media (max-width: 720px) {
  .admin .status { display: none; }
  .admin-main { padding-top: 16px; }
  .signed-in .admin-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .signed-in .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); border-radius: 0;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .signed-in .tab { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: .72rem; color: var(--muted); }
  .signed-in .tab svg { width: 22px; height: 22px; }
  .signed-in .tab.active { background: none; box-shadow: none; color: var(--primary); }
  .signed-in .tab.active svg { transform: translateY(-2px) scale(1.1); }
  .signed-in .tab-badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  .signed-in .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .orders-list, .cooks-list { grid-template-columns: minmax(0, 1fr); }
  .panel-head .chips { flex-basis: 100%; order: 2; }
  .am-row { grid-template-columns: 52px minmax(0, 1fr); }
  .am-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .stock-ctl { margin-right: auto; }
  .modal { place-items: end center; padding: 0; }
  .modal-card, .modal-card.editor { max-width: none; border-radius: 26px 26px 0 0; max-height: 94dvh; }
  .modal:not(.open) .modal-card { border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .dish-edit-row { grid-template-columns: 36px minmax(0, 1fr) 84px auto; gap: 6px; }
}

/* ---------- reduced motion: keep everything still ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- allergens ---------- */

.allergy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.allergy-chip { position: relative; }
.allergy-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.allergy-chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .85rem;
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--spring), border-radius .35s var(--smooth);
}
.allergy-chip:hover span { border-color: #fca5a5; transform: translateY(-2px); }
.allergy-chip input:checked + span { background: var(--red-bg); border-color: #f87171; color: var(--red); border-radius: 14px 8px 14px 8px; animation: pop .35s var(--spring); }
.allergy-chip input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.allergy-chip.none-chip input:checked + span { background: var(--green-bg); border-color: #86efac; color: var(--green); }
.allergy-pick > input { margin-top: 10px; }

.allergy-warn { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1.5px solid #fca5a5; background: #fff5f5; animation: pop .35s var(--smooth); }
.allergy-warn.only-unknown { border-color: #fcd34d; background: #fffbeb; }
.allergy-warn strong { display: block; margin-bottom: 4px; }
.allergy-warn ul { margin: 4px 0 10px; padding-left: 18px; }
.allergy-warn li { margin: 2px 0; font-weight: 700; }
.allergy-warn li.clash { color: var(--red); }
.allergy-warn li.unknown { color: var(--amber); }
.allergy-warn p { font-size: .85rem; color: var(--ink-2); }
.allergy-warn .check { margin-top: 10px; font-weight: 800; color: var(--ink); }
.allergy-ok { margin-top: 10px; color: var(--green); font-weight: 700; font-size: .88rem; }
.ci-flag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--red-bg); color: var(--red); font-size: .7rem; font-weight: 800; }
.ci-flag.unknown { background: var(--amber-bg); color: var(--amber); }

.oc-allergy, .tc-allergy { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--amber-bg); color: var(--amber); font-weight: 800; font-size: .88rem; }
.oc-allergy.clash, .tc-allergy.clash { background: var(--red-bg); color: var(--red); }
.am-allergens { color: var(--amber); font-weight: 700; }
.am-allergens.missing { color: var(--red); }

/* ===================== meals, sizes, availability, ratings ===================== */

/* day + meal picker on the menu */
.ctx-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px;
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ctx-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctx-group.grow { flex: 1; }
.ctx-label { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meal-seg { width: 100%; }
.meal-seg button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 8px 12px; }
.meal-seg .meal-ico { grid-row: span 2; font-size: 1.3rem; transition: transform .4s var(--spring); }
.meal-seg button.active .meal-ico { transform: scale(1.15) rotate(-8deg); }
.meal-seg .meal-name { font-weight: 800; line-height: 1.1; }
.meal-seg small { font-size: .7rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.meal-seg button:disabled small::after { content: ' · over'; }
.hidden-note { margin-top: 18px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--tint); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.basket-ctx { margin-top: -4px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--tint); font-weight: 800; font-size: .88rem; }
.basket-ctx .muted { font-weight: 600; }

.dish-price .from { font-size: .72rem; font-weight: 700; color: var(--muted); }
.dish-price .size-count { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--tint-2); color: var(--ink-2); font-size: .68rem; font-weight: 800; vertical-align: middle; }
.btn-add.added { background: var(--primary); border-color: var(--primary); color: #fff; letter-spacing: 0; }
.btn-add.sm { min-width: 70px; height: 30px; font-size: .78rem; }
.btn-add:disabled { opacity: .45; cursor: not-allowed; }
.ci-size { display: inline-block; padding: 0 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-hover); font-size: .7rem; font-weight: 800; vertical-align: middle; }

/* size picker */
.size-dialog {
  width: min(440px, calc(100% - 24px)); padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.size-dialog[open] { animation: dialog-in .45s var(--spring); }
.size-dialog::backdrop { background: rgba(42, 23, 11, .5); backdrop-filter: blur(3px); }
.size-head { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 18px 18px 6px; }
.size-head h2 { font-size: 1.25rem; }
.size-visual { position: relative; overflow: hidden; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.9rem; background: radial-gradient(circle at 35% 30%, #fff7ed 0, #fed7aa 100%); }
.size-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.size-intro { padding: 4px 18px 8px; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.size-list { list-style: none; margin: 0; padding: 0 12px; }
.size-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 8px; border-bottom: 1px dashed var(--line); border-radius: 12px;
  transition: background .2s;
}
.size-row.chosen { background: var(--tint); }
.size-row strong { display: block; }
.size-price { font-weight: 800; }
.size-dialog > .muted { padding: 8px 18px 0; }
.size-dialog > .btn { margin: 14px 18px 18px; width: calc(100% - 36px); }

/* checkout meal summary */
.ctx-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ctx-chip { padding: 8px 12px; border-radius: 12px; background: var(--tint); font-weight: 800; font-size: .9rem; }
.ctx-chip .muted { font-weight: 600; }

/* my orders: status line + rating */
.tc-status { margin-top: -4px; font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.rate-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, #fff7ed, #fef3c7); border: 1px solid #fde68a; }
.star-input { display: flex; gap: 4px; }
.star {
  border: 0; background: none; cursor: pointer; padding: 0 2px;
  font-size: 2rem; line-height: 1; color: #e5d3c2;
  transition: transform .3s var(--spring), color .2s;
}
.star:hover { transform: scale(1.2) rotate(-8deg); }
.star.on { color: var(--turmeric); text-shadow: 0 2px 8px rgba(245, 179, 1, .45); animation: pop .35s var(--spring); }
.star-input:hover .star { color: #e5d3c2; }
.star-input .star:hover, .star-input .star:has(~ .star:hover) { color: var(--turmeric); }
.rate-box .btn { align-self: flex-start; }
.tc-rated { padding: 12px 14px; border-radius: var(--radius); background: var(--green-bg); color: var(--green); font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tc-rated p { flex-basis: 100%; color: var(--ink-2); }
.stars-static { color: var(--turmeric); letter-spacing: 2px; font-size: 1.1rem; }

/* admin: orders */
.meal-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--tint); font-size: .75rem; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.oc-rating { padding: 8px 12px; border-radius: var(--radius-sm); background: #fffbeb; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.rating-inline { color: var(--amber); }

/* admin: dish editor */
.size-editor { display: flex; flex-direction: column; gap: 6px; }
.size-edit-row { display: grid; grid-template-columns: auto 1fr 130px; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; background: var(--tint); cursor: pointer; }
.size-edit-row > input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.size-edit-name { font-weight: 800; font-size: .9rem; color: var(--ink); }
.size-edit-name small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.size-edit-row input[type="number"] { height: 38px; padding-top: 0; padding-bottom: 0; }
.size-edit-row input[type="number"]:disabled { opacity: .45; background: transparent; }
.meal-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.meal-chip input:checked + span { background: var(--primary-soft); border-color: #fdba74; color: var(--primary-hover); }
.am-meals { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .75rem; }

/* admin: cooks */
.cook-card.away { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fdf6ef 12px, #fdf6ef 24px); }
.cook-card.away .avatar { filter: grayscale(1); }
.schedule-summary { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--tint); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.cook-card.away .schedule-summary { background: var(--red-bg); color: var(--red); }
.cook-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-toggle { padding: 4px 12px 4px 4px; border-radius: 999px; min-height: 0; width: fit-content; }
.pill-toggle.on { background: var(--green-bg); color: var(--green); }
.pill-toggle.off { background: var(--tint-2); color: var(--muted); }
.avail-toggle { min-height: 0; }
.schedule-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.schedule-tools .chip { height: 30px; font-size: .8rem; }
.schedule-grid { display: grid; grid-template-columns: 52px repeat(3, 1fr); gap: 6px; transition: opacity .3s; }
.schedule-grid.dim { opacity: .45; }
.sg-head { display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); }
.sg-day { display: flex; align-items: center; font-weight: 800; font-size: .85rem; }
.sg-cell { position: relative; display: block; height: 34px; cursor: pointer; }
.sg-cell input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sg-cell span { position: absolute; inset: 0; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); transition: background .2s, border-color .2s, border-radius .35s var(--smooth); }
.sg-cell input:checked + span { background: var(--primary); border-color: var(--primary); border-radius: 14px 8px 14px 8px; }
.sg-cell input:checked + span::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.sg-cell input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }

/* admin: settings */
.meal-times { display: flex; flex-direction: column; gap: 8px; }
.meal-time-row { display: grid; grid-template-columns: 120px 1fr auto 1fr; align-items: center; gap: 10px; font-weight: 800; }
.meal-time-row input { height: 42px; }

@media (max-width: 639px) {
  .ctx-bar { padding: 12px; gap: 10px; }
  .ctx-group:first-child { width: 100%; }
  .ctx-group:first-child .seg { width: 100%; }
  .meal-seg button { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 6px 4px; }
  .meal-seg .meal-ico { grid-row: auto; font-size: 1.1rem; }
  .meal-seg .meal-name { font-size: .82rem; }
  .meal-seg small { font-size: .62rem; }
  .size-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .size-dialog > .btn { margin-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .size-edit-row { grid-template-columns: auto 1fr 110px; }
  .meal-time-row { grid-template-columns: 1fr 1fr auto 1fr; font-size: .85rem; }
  .meal-time-row > span:first-child { grid-column: 1 / -1; }
}
.ctx-chip .muted, .basket-ctx .muted { white-space: nowrap; }
.ctx-summary { flex-wrap: wrap; }

/* ===================== v18: sections, cakes, Join Cibus, applications ===================== */

/* header: Join Cibus + phone menu */
.join-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; text-decoration: none;
  box-shadow: 0 10px 20px -12px rgba(42, 23, 11, .8);
  transition: transform .3s var(--spring), border-radius .35s var(--smooth), background .2s;
}
.join-btn svg { width: 18px; height: 18px; stroke-width: 2.6; transition: transform .4s var(--spring); }
.join-btn:hover { transform: translateY(-2px); border-radius: 18px 10px 18px 10px; background: #3d2414; }
.join-btn:hover svg { transform: rotate(90deg); }
.join-btn.active { background: var(--primary); }
.join-short { display: none; }
.only-desktop { display: inline-flex; }
.only-desktop[hidden] { display: none !important; }

.more-sheet {
  width: min(420px, calc(100% - 24px)); padding: 10px 14px 16px; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.more-sheet[open] { animation: dialog-in .4s var(--spring); }
.more-sheet::backdrop { background: rgba(42, 23, 11, .5); backdrop-filter: blur(3px); }
.sheet-grab { display: block; width: 44px; height: 5px; margin: 4px auto 12px; border-radius: 99px; background: var(--line-strong); }
.more-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.more-list a, .more-list button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 0 14px;
  border: 0; border-radius: 16px; background: var(--tint); color: var(--ink);
  font: inherit; font-weight: 800; font-size: 1.02rem; text-align: left; text-decoration: none; cursor: pointer;
}
.more-list a span:first-child, .more-list button span:first-child { font-size: 1.4rem; width: 28px; text-align: center; }
.more-list svg { width: 18px; height: 18px; margin-left: auto; color: var(--muted); }
.more-list a.active { background: var(--primary-soft); }
.more-list .more-join { background: var(--ink); color: #fff; }
.more-list .more-join svg { color: #fff; }
.more-list .more-help { background: var(--green-bg); color: var(--green); }

/* menu: section tabs */
.section-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.section-tab {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  text-align: left; transition: border-color .25s, transform .35s var(--spring), border-radius .45s var(--smooth), box-shadow .3s, background .25s;
}
.section-tab:hover { transform: translateY(-2px); border-color: #fdba74; }
.section-tab.active { border-color: var(--primary); background: linear-gradient(135deg, #fff, var(--tint)); box-shadow: 0 0 0 4px var(--ring); border-radius: 24px 14px 24px 14px; }
.st-icon { font-size: 1.8rem; line-height: 1; transition: transform .45s var(--spring); }
.section-tab.active .st-icon { transform: scale(1.15) rotate(-8deg); }
.st-text { display: flex; flex-direction: column; min-width: 0; }
.st-text strong { font-size: .98rem; line-height: 1.2; }
.st-text small { color: var(--muted); font-size: .74rem; font-weight: 700; line-height: 1.3; }
.ctx-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .9rem; font-weight: 700; color: var(--ink-2); min-height: 44px; }
.ctx-info span { display: inline-flex; align-items: center; gap: 6px; }

/* cakes on the menu */
.type-chip {
  position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: .72rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.dish.is-cake .stock-note { top: auto; bottom: 8px; left: 8px; translate: none; }
.notice-tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--purple-bg); color: var(--purple); font-size: .72rem; font-weight: 800; }
.dish.is-cake .dish-visual { aspect-ratio: 1; }
.ci-icon { font-size: 1.1rem; width: 18px; text-align: center; }

/* checkout: cakes */
.cake-date input[type="date"] { max-width: 260px; font-weight: 800; }
.fulfil-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fulfil-option {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, border-radius .4s var(--smooth), box-shadow .3s;
}
.fulfil-option:hover { border-color: #fdba74; }
.fulfil-option:has(input:checked), .fulfil-option.active { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); border-radius: 22px 12px 22px 12px; }
.fulfil-option input { position: absolute; opacity: 0; pointer-events: none; }
.fo-icon { font-size: 1.6rem; }
.fo-text { display: flex; flex-direction: column; }
.fo-text span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.cake-disclaimer {
  margin-top: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: #fee2e2; border: 3px solid #dc2626; color: #7f1d1d;
  animation: pop .35s var(--smooth);
}
.cake-disclaimer strong { display: block; font-size: 1.08rem; color: #b91c1c; margin-bottom: 6px; letter-spacing: .01em; }
.cake-disclaimer p { font-size: .95rem; line-height: 1.5; }
.cake-disclaimer b { color: #991b1b; }
.cake-disclaimer .check { margin-top: 10px; font-weight: 800; color: #7f1d1d; }
.cake-disclaimer .check input { accent-color: #dc2626; }
.bill-fee { display: flex; justify-content: space-between; color: var(--ink-2); font-weight: 700; font-size: .92rem; }
.free-delivery { color: var(--green); font-weight: 800; font-size: .88rem; }
.tc-pickup { padding: 8px 12px; border-radius: var(--radius-sm); background: var(--blue-bg); color: var(--blue); font-weight: 700; font-size: .88rem; }

/* Join Cibus wizard */
.join-main { padding: 26px 0 120px; }
.join-head { margin-bottom: 18px; }
.join-head .page-title { margin: 2px 0 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join-steps { list-style: none; display: flex; gap: 4px; margin: 0 0 14px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; scroll-margin-top: calc(var(--appbar-h) + 12px); }
.join-steps li {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: .72rem; white-space: nowrap; font-weight: 800; color: var(--muted); text-align: center;
}
.join-steps li span {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint-2); color: var(--muted); font-size: .85rem; transition: background .3s, color .3s, transform .4s var(--spring);
}
.join-steps li.done span { background: var(--green-bg); color: var(--green); }
.join-steps li.current { color: var(--ink); }
.join-steps li.current span { background: var(--primary); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 5px var(--ring); }
.join-step { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-title { font-family: var(--font-display); font-size: 1.45rem; }
.join-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint); }

.role-cards { display: grid; gap: 12px; }
.role-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 92px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 22px; background: var(--surface);
  transition: border-color .25s, transform .35s var(--spring), border-radius .45s var(--smooth), box-shadow .3s;
}
.role-card:hover { transform: translateY(-2px); border-color: #fdba74; }
.role-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 5px var(--ring); border-radius: 30px 16px 30px 16px; background: linear-gradient(135deg, #fff, var(--tint)); }
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card:has(input:focus-visible) { outline: 3px solid #fdba74; outline-offset: 3px; }
.rc-icon { font-size: 2.4rem; width: 64px; height: 64px; display: grid; place-items: center; flex: none; border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; background: var(--tint); }
.role-card:has(input:checked) .rc-icon { animation: morph 6s ease-in-out infinite; background: var(--primary-soft); }
.rc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rc-text strong { font-size: 1.1rem; }
.rc-text span { color: var(--muted); font-size: .9rem; font-weight: 600; }
.rc-check { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); transition: all .3s var(--spring); }
.role-card:has(input:checked) .rc-check { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 5px #fff; }

.photo-me { display: flex; }
.me-picker { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 10px 14px 10px 10px; border-radius: 20px; background: var(--tint); width: 100%; }
.me-picker input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.me-picker:focus-within { outline: 3px solid #fdba74; outline-offset: 2px; }
.me-preview { width: 72px; height: 72px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.8rem; background: var(--surface); border: 2px dashed var(--line-strong); }
.me-picker.has-photo .me-preview { border: 3px solid var(--primary); }
.me-preview img { width: 100%; height: 100%; object-fit: cover; }
.me-text { display: flex; flex-direction: column; }
.me-text span { color: var(--muted); font-size: .85rem; font-weight: 600; }

.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; min-height: 56px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--surface); font-size: 1rem;
  transition: border-color .25s, border-radius .4s var(--smooth), box-shadow .3s, background .25s;
}
.choice small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.choice input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); border-radius: 22px 12px 22px 12px; background: var(--tint); }
.choice input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.choice-row.compact .choice > span { flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; min-height: 48px; }

.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: .92rem;
  transition: background .2s, border-color .2s, color .2s, transform .3s var(--spring);
}
.pick:hover span { border-color: #fdba74; }
.pick input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; animation: pop .3s var(--spring); }
.pick input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.chip-mini { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tint-2); color: var(--ink-2); font-weight: 800; font-size: .82rem; cursor: pointer; }
.chip-mini:hover { background: var(--primary-soft); }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-slot { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.photo-slot.filled img { width: 100%; height: 100%; object-fit: cover; animation: pop .4s var(--spring); }
.photo-slot.add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer;
  border: 2px dashed var(--line-strong); background: var(--tint); color: var(--ink-2); font: inherit;
  transition: border-color .2s, background .2s, border-radius .4s var(--smooth);
}
.photo-slot.add:hover { border-color: var(--primary); background: var(--primary-soft); border-radius: 26px 14px 26px 14px; }
.photo-slot.add span { font-size: 2rem; line-height: 1; color: var(--primary); }
.photo-slot.add small { color: var(--muted); font-weight: 700; }
.photo-remove {
  position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(42, 23, 11, .75); color: #fff; font-size: .95rem; cursor: pointer;
}
.photo-badge { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .7rem; font-weight: 800; }

.review { margin: 0; display: flex; flex-direction: column; }
.review > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.review dt { color: var(--muted); font-weight: 800; font-size: .82rem; }
.review dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.review-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.review-photos img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.review-photos img.round { border-radius: 50%; }
.join-promise { padding: 14px; border-radius: var(--radius); background: var(--green-bg); color: var(--green); font-weight: 700; }

#joinError { margin-top: 12px; }
.join-nav {
  position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: space-between;
  margin-top: 14px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 248, 240, 0), var(--bg) 30%);
}
.join-nav .btn { flex: 1; min-height: 54px; font-size: 1.02rem; }
.join-nav .btn-primary { flex: 2; }
.join-nav .btn-send { background: linear-gradient(120deg, #16a34a, #15803d) 0 0 / 200% 100%; box-shadow: 0 12px 24px -12px rgba(21, 128, 61, .9); }
.join-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 20px; text-align: center; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.join-done h2 { font-size: 1.9rem; }
.ref-chip { padding: 6px 14px; border-radius: 999px; background: var(--tint); font-weight: 800; letter-spacing: .04em; }

/* admin: applications */
.tab-short { display: none; }
.apps-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.app-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; min-height: 76px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-align: left; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--spring), border-color .2s, border-radius .4s var(--smooth);
}
.app-card:hover { transform: translateX(3px); border-color: #fdba74; border-radius: 24px 14px 24px 14px; }
.app-card[data-status="Received"] { border-left: 5px solid var(--primary); }
.app-icon { font-size: 1.8rem; width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--tint); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.app-main strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-main > span { color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.app-status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--amber-bg); color: var(--amber); }
.app-status[data-status="Contacted"] { background: var(--blue-bg); color: var(--blue); }
.app-status[data-status="Completed"] { background: var(--green-bg); color: var(--green); }
.app-gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.app-gallery figure { flex: none; margin: 0; width: min(78%, 300px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: var(--tint); position: relative; }
.app-gallery figure.gal-me { width: 130px; border-radius: 50%; align-self: center; aspect-ratio: 1; }
.app-gallery img { width: 100%; height: 100%; object-fit: cover; }
.app-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; color: #fff; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.app-details > div { grid-template-columns: 110px minmax(0, 1fr); }
.status-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.status-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; min-height: 84px; cursor: pointer;
  border: 2px solid var(--line); border-radius: 16px; background: var(--surface); font: inherit; color: inherit; text-align: left;
  transition: border-color .25s, background .25s, border-radius .4s var(--smooth);
}
.status-step small { color: var(--muted); font-size: .72rem; font-weight: 600; line-height: 1.3; }
.ss-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-2); font-size: .75rem; font-weight: 800; margin-bottom: 4px; }
.status-step.done .ss-dot { background: var(--green-bg); color: var(--green); }
.status-step.active { border-color: var(--primary); background: var(--tint); border-radius: 22px 12px 22px 12px; }
.status-step.active .ss-dot { background: var(--primary); color: #fff; }

.contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-row:empty { display: none; }
.contact-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 12px; font-weight: 800; font-size: .88rem; text-decoration: none; transition: transform .25s var(--spring); }
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn.call { background: var(--green-bg); color: var(--green); }
.contact-btn.wa { background: #dcfce7; color: #166534; }
.contact-btn.mail { background: var(--blue-bg); color: var(--blue); }

.section-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.section-pick .choice > span { flex-direction: row; align-items: center; gap: 6px; padding: 10px; min-height: 48px; font-size: .88rem; }
.section-filter { margin: -4px 0 14px; }
.role-tag { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--tint-2); font-family: var(--font-body); font-size: .7rem; font-weight: 800; vertical-align: middle; }
.role-tag.baker { background: var(--purple-bg); color: var(--purple); }
.fee-tag { padding: 3px 10px; border-radius: 999px; background: var(--purple-bg); color: var(--purple); font-size: .75rem; font-weight: 800; }
.tag-pickup { color: var(--blue); }
.meal-tag.cake { background: var(--purple-bg); color: var(--purple); }
.hint-ok { color: var(--green); font-weight: 700; }
.archive-panel { margin-top: 16px; max-width: 640px; }
.archive-panel .btn { align-self: flex-start; }
#archiveMsg { color: var(--green); }

@media (max-width: 960px) {
  .only-desktop { display: none !important; }
}
@media (max-width: 720px) {
  .tab-long { display: none; }
  .tab-short { display: inline; }
  .status-steps { grid-template-columns: 1fr; }
  .status-step { flex-direction: row; align-items: center; min-height: 56px; gap: 10px; }
  .status-step .ss-dot { margin: 0; }
  .status-step small { margin-left: auto; text-align: right; }
}
@media (max-width: 639px) {
  .join-long { display: none; }
  .join-short { display: inline; }
  .join-btn { height: 40px; padding: 0 12px; border-radius: 12px; }
  .more-sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 26px 26px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .section-tabs { gap: 6px; }
  .section-tab { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 10px 4px; min-height: 76px; }
  .st-text small { display: none; }
  .st-text strong { font-size: .84rem; }
  .st-icon { font-size: 1.6rem; }
  .ctx-info { font-size: .82rem; gap: 6px 12px; }
  .fulfil-options { grid-template-columns: 1fr; }
  .join-step { padding: 18px; }
  .role-card { padding: 14px; gap: 12px; }
  .rc-icon { width: 54px; height: 54px; font-size: 2rem; }
  .choice-row { grid-template-columns: 1fr; }
  .choice-row.compact { grid-template-columns: 1fr 1fr; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dt { grid-column: 1 / -1; }
  .app-details > div { grid-template-columns: 1fr; gap: 2px; }
  .section-pick { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .join-btn { padding: 0 10px; }
  .join-btn svg { display: none; }
}

/* =====================================================================
   v19 — ratings, profiles, promos, cancel, offline, credits, legal, admin tools
   + the motion layer (springs, blur-in photos, shimmer, smooth details)
   ===================================================================== */

:root {
  /* a real spring (overshoot + settle) where supported, the cubic-bezier otherwise */
  --spring-soft: cubic-bezier(.34, 1.4, .64, 1);
  --spring-soft: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.106 26.2%, 1.096, 1.072 31.6%, 1.006 38.7%, .983 42.6%, .975 46.4%, .981 53.4%, 1.002 66.2%, 1.002 74.3%, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  interpolate-size: allow-keywords;
}

/* ---------- smoother everything ---------- */
.btn, .chip, .section-tab, .btn-add, .pick span, .choice span, .role-card, .slot span, .fulfil-option { -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled), .btn-add:active, .chip:active, .section-tab:active, .contact-btn:active { transform: scale(.95); transition-duration: .08s; }
.btn-add { transition: transform .35s var(--spring-soft), background .2s, color .2s, box-shadow .25s; }
.btn-add:hover { transform: translateY(-2px); }
.chip { transition: background .2s, color .2s, border-color .2s, transform .35s var(--spring-soft), box-shadow .25s; }
.chip.active { animation: chip-pop .45s var(--spring-soft); }
@keyframes chip-pop { 0% { transform: scale(.92); } 100% { transform: scale(1); } }
.section-tab.active .st-icon { animation: tab-bounce .7s var(--spring-soft); }
@keyframes tab-bounce { 0% { transform: scale(.7) rotate(-14deg); } 100% { transform: none; } }
.stepper span { display: inline-block; animation: num-roll .32s var(--ease-out-expo); }
@keyframes num-roll { from { transform: translateY(-60%); opacity: 0; } }
:focus-visible { outline: 3px solid #fb923c; outline-offset: 2px; transition: outline-offset .2s var(--spring-soft); }
.reveal.in { animation: reveal-in .8s var(--ease-out-expo) backwards, blur-in .6s var(--ease-out-expo) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes blur-in { from { filter: blur(6px); } }

/* the header settles in once you scroll */
.appbar { transition: box-shadow .35s var(--smooth), background .35s var(--smooth), backdrop-filter .35s; }
html.scrolled .appbar { box-shadow: 0 10px 30px -18px rgba(90, 40, 5, .35); background: rgba(255, 250, 245, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }

/* details / summary open and close smoothly (Chrome 131+, others just snap) */
details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out-expo), content-visibility .45s allow-discrete; }
details[open]::details-content { height: auto; }

/* dialogs and sheets glide in and out */
dialog { transition: opacity .3s var(--smooth), transform .45s var(--spring-soft), overlay .45s allow-discrete, display .45s allow-discrete; }
dialog:not([open]) { opacity: 0; }
dialog[open] { opacity: 1; }
@starting-style { dialog[open] { opacity: 0; transform: translateY(24px) scale(.97); } }
dialog::backdrop { background: rgba(42, 23, 11, 0); transition: background .35s, backdrop-filter .35s, overlay .35s allow-discrete, display .35s allow-discrete; }
dialog[open]::backdrop { background: rgba(42, 23, 11, .42); backdrop-filter: blur(4px); }
@starting-style { dialog[open]::backdrop { background: rgba(42, 23, 11, 0); backdrop-filter: blur(0); } }

/* ---------- photos fade in from a soft blur ---------- */
.dish-visual, .chef-avatar { background-color: var(--tint-2); }
img.fade-img { opacity: 0; filter: blur(14px) saturate(1.2); transform: scale(1.06); transition: opacity .6s var(--smooth), filter .8s var(--smooth), transform 1s var(--ease-out-expo); }
img.fade-img.loaded { opacity: 1; filter: none; transform: none; }
.dish:hover .dish-visual img.fade-img.loaded { transform: scale(1.08); }
.dish-visual:has(img.fade-img:not(.loaded))::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%) var(--tint-2); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }

/* ---------- loading skeletons ---------- */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding-top: 8px; }
.sk-card { padding: 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); animation: reveal-in .6s var(--ease-out-expo) backwards; animation-delay: calc(var(--i) * 70ms); }
.sk { border-radius: 10px; background: linear-gradient(100deg, var(--tint-2) 30%, #fffaf4 50%, var(--tint-2) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.sk-img { aspect-ratio: 4 / 3; border-radius: 14px; }
.sk-lines { display: grid; gap: 8px; padding: 12px 4px 4px; }
.sk-line { height: 12px; }
.sk-line.w90 { width: 90%; } .sk-line.w70 { width: 70%; } .sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (max-width: 639px) {
  .skeleton-grid { grid-template-columns: 1fr; gap: 10px; }
  .sk-card { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
  .sk-card .sk-img { order: 2; aspect-ratio: 1; }
  .sk-card .sk-lines { order: 1; padding: 6px 0; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ratings + cook links on dishes ---------- */
.rating-chip { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #fff7d6; color: #8a5a00; font-size: .76rem; font-weight: 800; vertical-align: middle; white-space: nowrap; }
.rating-chip span { color: #f5a400; }
.rating-chip small { font-weight: 700; opacity: .7; }
.rating-chip.big { font-size: .9rem; padding: 5px 12px; margin: 0; }
a.btn-add { text-decoration: none; }
a.dish-cook { display: inline-block; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--smooth); position: relative; z-index: 1; }
a.dish-cook:hover { background-size: 100% 1.5px; }

/* the dish photo arcs into the basket */
.fly-ghost { position: fixed; z-index: 9999; pointer-events: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; box-shadow: 0 12px 30px -8px rgba(120, 53, 15, .5); font-size: 2rem; will-change: transform; }
.fly-ghost img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the "made by two 12-year-olds" credit ---------- */
.made-by { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: linear-gradient(120deg, #fff1db, #ffe4f1 55%, #e5f0ff); color: var(--ink); font-size: .85rem; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(234, 88, 12, .18); white-space: nowrap; }
.made-by b { color: var(--primary-hover); font-weight: 900; }
.mb-faces { display: inline-flex; font-size: 1.1rem; }
.mb-faces { animation: kid-wave 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes kid-wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-10deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
.made-by.big { font-size: 1rem; padding: 9px 18px 9px 12px; }
.made-by.big .mb-faces { font-size: 1.4rem; }
.made-by.ribbon { font-size: .9rem; background: linear-gradient(120deg, #fff, #fff4e6); box-shadow: 0 10px 24px -14px rgba(234, 88, 12, .6), inset 0 0 0 1.5px rgba(234, 88, 12, .25); }

.kids-ribbon { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; text-decoration: none; color: inherit; }
.kids-ribbon .kr-more { font-size: .8rem; font-weight: 800; color: var(--primary-hover); opacity: .8; transition: transform .3s var(--spring-soft), opacity .2s; }
.kids-ribbon:hover .kr-more { transform: translateY(3px); opacity: 1; }
.kids-ribbon:hover .made-by { transform: rotate(-1.5deg) scale(1.03); }
.kids-ribbon .made-by { transition: transform .4s var(--spring-soft); }

.kids-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff 0%, #fff4e6 60%, #ffeefa 100%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kids-card p { margin: 8px 0 0; line-height: 1.6; }
.kids-faces { position: relative; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; background: linear-gradient(140deg, #ffd8a8, #ffb4d0); animation: morph 9s ease-in-out infinite; }
.kids-faces span { position: absolute; font-size: 3.4rem; animation: kid-bob 3s ease-in-out infinite; }
.kids-faces span:first-child { left: 18%; top: 22%; }
.kids-faces span:nth-child(2) { right: 18%; top: 22%; animation-delay: -1.5s; }
.kids-faces i { position: absolute; bottom: 14%; font-style: normal; font-size: 2.4rem; }
@keyframes kid-bob { 50% { transform: translateY(-8px) rotate(4deg); } }
@media (max-width: 639px) {
  .kids-card { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .kids-faces { margin: 0 auto; width: 132px; height: 132px; }
  .kids-faces span { font-size: 2.3rem; }
  .kids-faces span:first-child { left: 10%; top: 20%; }
  .kids-faces span:nth-child(2) { right: 10%; top: 20%; }
  .kids-faces i { font-size: 2rem; }
}

.kids-note { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(120deg, #fff1db, #ffeefa); border: 1px solid #fbd5b5; }
.kids-note p { margin: 0; font-size: .92rem; line-height: 1.5; }
.kn-faces { font-size: 1.7rem; flex: none; animation: kid-wave 2.6s ease-in-out infinite; }
.thanks-credit { display: grid; justify-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); text-align: center; }
.thanks-credit p { margin: 0; color: var(--ink-2); font-size: .92rem; max-width: 36ch; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 0 0 28px; color: var(--muted); font-size: .82rem; }
.sheet-credit { margin: 6px 0 12px; text-align: center; }
.about-kids { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border-radius: var(--radius); background: var(--tint); }
.about-kids p { margin: 0; font-size: .9rem; }
.disclaimer-credit { margin: 10px 0 0; font-size: .8rem; color: #8f2f1c; opacity: .9; }
.legal-credit { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }
.legal-credit p { margin: 0; color: var(--muted); font-size: .9rem; }

.join-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 26px 0; padding: 24px 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px dashed #fdba74; }
.join-band h2 { margin: 2px 0 4px; font-family: var(--font-display); font-size: 1.5rem; }
.join-band p { margin: 0; color: var(--ink-2); }
.jb-art { display: flex; font-size: 2.6rem; }
.jb-art span:last-child { margin-left: -10px; animation: kid-bob 3.2s ease-in-out infinite; }
@media (max-width: 720px) { .join-band { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- checkout: promo codes ---------- */
.promo-box { margin-top: 12px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line-strong); background: var(--tint); }
.promo-box summary { padding: 11px 14px; cursor: pointer; font-weight: 800; font-size: .9rem; list-style: none; display: flex; gap: 8px; align-items: center; }
.promo-box summary::-webkit-details-marker { display: none; }
.promo-box summary::after { content: '+'; margin-left: auto; font-size: 1.2rem; transition: transform .35s var(--spring-soft); }
.promo-box[open] summary::after { transform: rotate(45deg); }
.promo-row { display: flex; gap: 8px; padding: 0 12px 4px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.promo-msg { margin: 6px 14px 12px; font-size: .85rem; min-height: 1em; }
.promo-msg:empty { display: none; }
.promo-msg.good { color: var(--green); animation: reveal-in .5s var(--spring-soft); }
.promo-msg.bad { color: var(--red); }
.bill-discount strong { color: var(--green); }
.bill-discount { animation: reveal-in .5s var(--spring-soft); }
.saved-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .75rem; font-weight: 800; }
.terms-note { margin: 6px 0 0; text-align: center; font-size: .78rem; color: var(--muted); }
.terms-note a { color: inherit; }
.tc-items li.saved { color: var(--green); font-weight: 700; }

/* ---------- my orders: live banner, cancel, actions ---------- */
.live-banner { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding: 14px 18px; border-radius: var(--radius); background: linear-gradient(120deg, #ea580c, #f59e0b); color: #fff; box-shadow: 0 18px 40px -20px rgba(234, 88, 12, .8); animation: reveal-in .7s var(--spring-soft); overflow: hidden; }
.live-banner strong { display: block; font-size: 1.1rem; }
.live-banner span { font-size: .88rem; opacity: .92; }
.lb-road { position: relative; flex: none; width: 82px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.lb-road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .8) 0 8px, transparent 8px 16px); animation: road 0.6s linear infinite; }
.lb-scooter { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; font-size: 1.8rem; animation: scoot 0.5s ease-in-out infinite alternate; }
@keyframes road { to { background-position: -16px 0; } }
@keyframes scoot { to { transform: translateY(-2px) rotate(-3deg); } }

.track-card.flash { animation: card-flash 1.6s var(--smooth); }
@keyframes card-flash { 0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, .55); } 40% { box-shadow: 0 0 0 10px rgba(234, 88, 12, 0); transform: scale(1.015); } 100% { box-shadow: var(--shadow-sm); } }
.tracker li.current span { animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 7px rgba(234, 88, 12, .18); } }

.tc-cancel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cancel-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--red-bg); color: var(--red); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .3s var(--spring-soft); }
.cancel-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #fecaca; transform-origin: left; transform: scaleX(var(--left, 1)); transition: transform 1s linear; }
.cancel-btn .cd { font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .7); }
.tc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-actions:empty { display: none; }
.wa-btn { color: #128c4b; }

.page-toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 9998; max-width: min(92vw, 420px); padding: 13px 20px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 800; text-align: center; box-shadow: var(--shadow-lg); translate: -50% 140%; opacity: 0; transition: translate .55s var(--spring-soft), opacity .3s; pointer-events: none; }
.page-toast.show { translate: -50% 0; opacity: 1; }

/* ---------- payment: placed banner, WhatsApp, cancel hint ---------- */
.placed-banner { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--green-bg); color: #14532d; }
.placed-banner strong { display: block; font-size: 1.05rem; }
.placed-banner span { font-size: .9rem; }
.pb-tick { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; animation: pop .6s var(--spring-soft); }
.btn-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; min-height: 46px; padding: 0 20px; border-radius: 14px; background: #25d366; color: #073b1d; font-weight: 900; text-decoration: none; box-shadow: 0 12px 26px -14px rgba(18, 140, 75, .8); transition: transform .3s var(--spring-soft), box-shadow .3s; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(18, 140, 75, .9); }
.cancel-hint { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- offline ---------- */
.offline-bar { position: fixed; left: 50%; top: calc(var(--appbar-h) + 10px); z-index: 60; max-width: min(94vw, 520px); padding: 10px 16px; border-radius: 14px; background: #2a170b; color: #fff; font-size: .85rem; font-weight: 700; box-shadow: var(--shadow-lg); translate: -50% -30px; opacity: 0; transition: translate .5s var(--spring-soft), opacity .3s; pointer-events: none; }
.offline-bar.show { translate: -50% 0; opacity: 1; }

/* ---------- cook / baker profiles ---------- */
.cook-main { padding-top: 18px; padding-bottom: 30px; }
.back-link { display: inline-flex; margin-bottom: 14px; color: var(--primary-hover); font-weight: 800; text-decoration: none; font-size: .9rem; transition: transform .3s var(--spring-soft); }
.back-link:hover { transform: translateX(-4px); }
.cook-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; margin-bottom: 26px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cook-hero .page-title { margin: 2px 0 8px; }
.chef-avatar { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; font-weight: 900; color: var(--primary-hover); background: var(--primary-soft); }
.chef-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chef-avatar.big { width: 150px; height: 150px; font-size: 2.6rem; border-radius: 44% 56% 52% 48% / 50% 45% 55% 50%; animation: morph 10s ease-in-out infinite; box-shadow: 0 20px 40px -20px rgba(234, 88, 12, .6); }
.cook-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: var(--tint); font-size: .82rem; font-weight: 800; color: var(--ink-2); }
.meta-chip.on { background: var(--green-bg); color: var(--green); }
.meta-chip.off { background: var(--tint-2); color: var(--muted); }
.cook-bio { margin: 0; font-size: 1.02rem; line-height: 1.6; max-width: 60ch; }
.sk-hero { grid-template-columns: auto minmax(0, 1fr); }
.sk-avatar { width: 150px; height: 150px; border-radius: 50%; }
.chef-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 20px 0; }
.chef-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .45s var(--spring-soft), box-shadow .3s, border-color .3s; }
.chef-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #fdba74; }
.cc-text { display: grid; gap: 2px; }
.cc-text span { color: var(--muted); font-size: .85rem; }
.cc-text .rating-chip { margin: 4px 0 0; justify-self: start; }
@media (max-width: 639px) {
  .cook-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px; }
  .cook-meta { justify-content: center; }
  .chef-avatar.big, .sk-avatar { width: 120px; height: 120px; }
}

/* ---------- legal ---------- */
.legal { padding-top: 22px; padding-bottom: 30px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.legal-toc a { padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 800; font-size: .82rem; text-decoration: none; transition: transform .3s var(--spring-soft), border-color .2s; }
.legal-toc a:hover { transform: translateY(-2px); border-color: #fdba74; }
.legal-card { margin-bottom: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: calc(var(--appbar-h) + 16px); }
.legal-card h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.3rem; }
.legal-card ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.6; }
.legal-card:target { animation: card-flash 1.6s var(--smooth); }
.legal-warn { border: 2px solid #f87171; background: #fff5f5; }

/* ---------- admin: uploads, alerts, promos, prep list ---------- */
.upload-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.upload-btn { cursor: pointer; }
.upload-msg:empty { display: none; }
.tg-help { margin: 4px 0 10px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--tint); }
.tg-help summary { cursor: pointer; font-weight: 800; font-size: .9rem; }
.tg-help ol { margin: 10px 0; padding-left: 20px; display: grid; gap: 4px; }
.promo-list { display: grid; gap: 8px; }
.promo-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--tint); transition: opacity .3s; }
.promo-item.off { opacity: .55; }
.promo-item code { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1.5px dashed #fb923c; font-weight: 900; letter-spacing: .05em; color: var(--primary-hover); }
.pi-text { display: grid; gap: 2px; font-size: .88rem; }
.promo-new summary { list-style: none; display: inline-flex; cursor: pointer; }
.promo-new summary::-webkit-details-marker { display: none; }
.promo-new[open] summary { margin-bottom: 12px; }
.promo-value { display: flex; gap: 6px; }
.promo-value input { flex: 1; min-width: 0; }
.promo-once { align-self: end; padding-bottom: 12px; }
.promo-tag { background: var(--green-bg); color: var(--green); }
.prep-filter { padding: 0 22px 8px; }
.prep-cook { padding: 14px 0; border-bottom: 1px dashed var(--line-strong); }
.prep-cook:last-child { border-bottom: 0; }
.prep-cook-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.prep-cook h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.prep-cook h4 { margin: 12px 0 6px; font-size: .9rem; color: var(--primary-hover); }
.prep-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prep-items li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.prep-items small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.5; }
.prep-qty { font-size: 1.3rem; color: var(--primary-hover); }
@media print {
  body.printing-prep > *:not(#prepModal) { display: none !important; }
  body.printing-prep #prepModal { position: static; display: block; background: none; padding: 0; opacity: 1; }
  body.printing-prep .modal-card { box-shadow: none; max-height: none; transform: none; border: 0; }
  body.printing-prep .editor-body { overflow: visible; }
  body.printing-prep .editor-foot, body.printing-prep .prep-filter, body.printing-prep .icon-btn, body.printing-prep .contact-btn { display: none !important; }
  body.printing-prep .prep-items li { background: none; border: 1px solid #ccc; break-inside: avoid; }
}
@media (max-width: 639px) {
  .promo-item { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 8px; }
  .promo-item code { justify-self: start; }
  .promo-item .switch { justify-self: end; }
  .pi-text { grid-column: 1 / -1; grid-row: 2; }
}
