/* ==========================================================================
   Customer Mini App. Mobile-first; uses the admin design tokens/components
   (../admin/css/tokens.css, components.css) so the shop's branding applies.
   ========================================================================== */

:root {
  --nav-height: 60px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body { background: var(--bg); overscroll-behavior-y: none; }
/* a full-screen overlay (photo lightbox) is open: the page behind can't scroll or be tapped, on iPhone too */
body.is-locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.lightbox { overscroll-behavior: contain; touch-action: pan-x; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--text-subtle); }

.app { min-height: 100vh; padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + var(--space-4)); }
.app.has-action { padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 76px); }

/* Header */
.shop-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4); background: color-mix(in oklab, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: var(--border-width) solid var(--border); }
.shop-header__title { font-size: var(--text-lg); font-weight: var(--weight-semibold); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-header .brand__logo, .shop-header .brand__mark { width: 32px; height: 32px; border-radius: var(--radius); }
/* 🏠 the logo + name = home · ‹ = back (web shop) */
.shop-header__home { display: flex; align-items: center; gap: var(--space-3); flex: 1; min-width: 0; color: inherit;
  text-decoration: none; -webkit-tap-highlight-color: transparent; border-radius: var(--radius); }
.shop-header__home:hover { text-decoration: none; }  /* a phone keeps :hover after a tap */
.shop-header__home:active { opacity: .7; }
.shop-header__home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-header__back { flex: none; width: 44px; height: 44px; margin-left: calc(var(--space-2) * -1); display: grid; place-items: center;
  border: 0; border-radius: 999px; background: color-mix(in oklab, var(--text) 8%, transparent); color: inherit;
  font-size: 1.6rem; line-height: 1; padding: 0 2px 3px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.shop-header__back:active { transform: scale(.94); }
.shop-header__back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand__mark { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: var(--weight-semibold); }
.brand__logo { object-fit: cover; }

.page { padding: var(--space-4); display: grid; gap: var(--space-4); }
.page__title { font-size: var(--text-xl); }

/* Category chips */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-3) var(--space-4) 0;
  scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: var(--space-2) 0 0; }
.review-pick { display: block; width: 100%; text-align: left; cursor: pointer; }
.chip-btn { flex: none; height: 34px; padding: 0 var(--space-4); border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border); background: var(--surface); color: var(--text-muted);
  font: inherit; font-weight: var(--weight-medium); cursor: pointer; scroll-snap-align: start; }
.chip-btn.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Product card */
.products { display: grid; gap: var(--space-3); }
.category-title { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-subtle);
  margin-top: var(--space-2); }
.product { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-3); align-items: end;
  padding: var(--space-4); background: var(--surface); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg); }
.product__name { font-weight: var(--weight-semibold); font-size: var(--text-md); }
.product__desc { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--text-sm); white-space: pre-line; overflow-wrap: anywhere; }
.product__desc code { font-family: var(--font-mono); }
.product__desc blockquote { margin: 0; padding-left: var(--space-3); border-left: 3px solid var(--accent); }
/* 📦 the shop's own product details (Smart inventory): label and value pairs above the description */
.product__facts { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); font-size: var(--text-sm); }
.product__fact { display: inline-flex; gap: var(--space-1); padding: 2px var(--space-2); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-sm); }
.product__fact dt { color: var(--text-muted); }
.product__fact dd { margin: 0; font-weight: var(--weight-semibold); }
.product__price { display: flex; align-items: baseline; gap: var(--space-2); font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums; }
.product__was { color: var(--text-subtle); text-decoration: line-through; font-weight: var(--weight-regular); font-size: var(--text-sm); }
.product.is-soldout { opacity: 0.6; }
.product__info { display: grid; gap: var(--space-1); }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; border-radius: var(--radius-pill); background: var(--accent-soft); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--accent); font-size: 20px;
  font-weight: var(--weight-semibold); cursor: pointer; border-radius: var(--radius-pill); }
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper__qty { min-width: 24px; text-align: center; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.add-btn { height: 44px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-pill); background: var(--accent);
  color: var(--on-accent); font: inherit; font-weight: var(--weight-semibold); cursor: pointer; }
.add-btn:disabled { background: var(--surface-2); color: var(--text-subtle); cursor: default; }

/* Cart & summary */
.line { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-3); align-items: center;
  padding: var(--space-3) 0; border-bottom: var(--border-width) solid var(--border); }
.line:last-child { border-bottom: 0; }
.line__name { font-weight: var(--weight-medium); }
.line__meta { color: var(--text-muted); font-size: var(--text-sm); }
.panel { background: var(--surface); border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); padding: var(--space-1) var(--space-4); }
.panel--pad { padding: var(--space-4); }
.totals { display: grid; gap: var(--space-2); padding: var(--space-4); }
.totals__row { display: flex; justify-content: space-between; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.totals__row--discount { color: var(--success); }
.totals__row--total { color: var(--text); font-weight: var(--weight-semibold); font-size: var(--text-md);
  padding-top: var(--space-2); border-top: var(--border-width) solid var(--border); }
.inline-form { display: flex; gap: var(--space-2); }
.inline-form .input { flex: 1; }
.notice { font-size: var(--text-sm); color: var(--text-muted); }

/* Sticky action bar above the nav */
.action-bar { position: fixed; z-index: 20; left: 0; right: 0; bottom: calc(var(--nav-height) + var(--safe-bottom));
  padding: var(--space-3) var(--space-4); background: color-mix(in oklab, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.action-bar .btn { width: 100%; height: 48px; font-size: var(--text-md); border-radius: var(--radius-lg); justify-content: space-between; padding: 0 var(--space-5); }
.action-bar .btn--center { justify-content: center; }

/* Bottom navigation */
h1.shop-header__brand, h1.shop-header__title { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom); display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: var(--border-width) solid var(--border); }
.tabbar a { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--text-subtle);
  font-size: var(--text-xs); font-weight: var(--weight-medium); text-decoration: none; }
.tabbar a.is-active { color: var(--accent); }
.tabbar svg { width: 22px; height: 22px; }
.tabbar__badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-size: 11px;
  display: grid; place-items: center; font-weight: var(--weight-semibold); }

/* Orders */
.order-card { display: grid; gap: var(--space-2); padding: var(--space-4); background: var(--surface); text-align: left;
  border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); color: var(--text); font: inherit; width: 100%; cursor: pointer; }
.order-card__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.order-card__code { font-family: var(--font-mono); font-weight: var(--weight-semibold); }
.order-card__meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: var(--text-sm); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.step { display: grid; gap: var(--space-1); font-size: var(--text-xs); color: var(--text-subtle); text-align: center; }
.step::before { content: ""; height: 4px; border-radius: var(--radius-pill); background: var(--border); }
.step.is-done { color: var(--text); }
.step.is-done::before { background: var(--accent); }

.success { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-8) var(--space-4); }
.success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--success-soft); color: var(--success); }
.success__icon svg { width: 32px; height: 32px; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: var(--space-6); text-align: center; }
.gate .state { max-width: 320px; }

/* Checkout workflow steps */
.stack-sm { display: grid; gap: var(--space-3); }
.step { display: grid; gap: var(--space-3); }
.step__prompt { color: var(--text-muted); white-space: pre-wrap; }
.choices { display: grid; gap: var(--space-2); }
.choices--times { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }   /* ⏱ a requested time's times */
.choices--times .choice { text-align: center; padding-inline: var(--space-2); }
.choice { display: grid; gap: 2px; text-align: left; padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  border: var(--border-width) solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.choice.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); background: var(--accent-soft); }
.choice__label { font-weight: var(--weight-semibold); }
.choice__desc { color: var(--text-muted); font-size: var(--text-sm); }

/* Product photos */
.product.has-photo { overflow: hidden; }
.choice__price { color: var(--text-muted); font-weight: var(--weight-regular); }
.step__image { width: 100%; max-height: 320px; object-fit: contain; border-radius: var(--radius); background: var(--surface-2); }
.photo-pick { color: var(--text-muted); font-size: var(--text-sm); }
.photo-pick img { max-width: 100%; max-height: 240px; border-radius: var(--radius); display: block; }
.photo-pick__box { display: grid; gap: 6px; }
.photo-pick__label { margin-top: var(--space-2, 8px); }

/* Mobile web shop sign-in (/m) */
.web-signin { display: grid; gap: var(--space-3); width: min(420px, 100%); text-align: left; }
.web-signin .state__title, .web-signin > p:first-of-type { text-align: center; }
.web-signin .brand__logo, .web-signin .brand__mark { margin: 0 auto; }
.web-signin .input { font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

/* Dashboard preview ribbon (/m/?preview) */
.preview-ribbon { position: fixed; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); left: 10px; z-index: 60; padding: 2px 8px;
  border-radius: 999px; background: color-mix(in oklab, var(--accent) 85%, transparent); color: var(--on-accent);
  font-size: 11px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow-md); pointer-events: none; opacity: .9; }

/* ⭐ rating on a delivered order */
.rating { display: grid; gap: var(--space-2); text-align: center; }
.rating__stars { display: flex; justify-content: center; gap: 6px; }
.rating__star { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--star);
  font-size: 24px; cursor: pointer; }
.rating__star:active { transform: scale(0.92); }

/* My saved details (Orders page) */
.saved summary { cursor: pointer; font-weight: 600; }
.saved { display: grid; gap: var(--space-3); }
.saved-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.saved-row:last-child { border-bottom: 0; }
.saved-row .btn { justify-self: start; }


/* Delivery area & times (Settings → Delivery area & times) */
.delivery { display: grid; gap: 6px; font-size: var(--text-sm); }
.delivery__row { display: flex; gap: 6px; align-items: baseline; }
.delivery__status { font-weight: 600; color: var(--text-muted); }
.delivery__status.is-now { color: var(--success); }
.delivery__note { color: var(--text-muted); }
.delivery--banner { margin: 0 16px 8px; padding: 10px 12px; border-radius: var(--radius, 12px);
  background: var(--surface-2, var(--surface)); border: 1px solid var(--border); }
.delivery--banner summary { cursor: pointer; font-weight: 600; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delivery--banner summary::-webkit-details-marker { display: none; }
.delivery--banner[open] summary { white-space: normal; margin-bottom: 6px; }

/* 📣 The latest announcement (a day at the top of the menu) */
.announce { margin: 0 16px 8px; padding: 10px 12px; border-radius: var(--radius, 12px); display: flex; gap: 8px;
  align-items: flex-start; background: color-mix(in oklab, var(--accent) 8%, var(--surface)); border: 1px solid var(--border);
  font-size: var(--text-sm); }
.announce__text { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.announce__close { border: 0; background: none; color: var(--text-muted); font: inherit; cursor: pointer; padding: 2px 4px;
  min-width: 44px; min-height: 44px; }

/* Product options (1g / 7g / 1 oz…) */
.option-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.product__deal { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--accent); font-weight: var(--weight-medium, 500); }
.product__deal[hidden] { display: none; }
.line__deal { color: var(--accent); }
.option-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.option-chip.is-active { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, var(--surface));
  color: var(--text); font-weight: 600; }
.option-chip:disabled { opacity: .45; text-decoration: line-through; cursor: default; }

/* Owner-marked "Limited stock" */
.limited-badge { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--limited); background: color-mix(in oklab, var(--limited) 12%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.new-badge { margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

::selection { background: color-mix(in oklab, var(--accent) 38%, var(--surface)); color: var(--text); }

/* 💬 Customer chat */
.chat-fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; border: 0;
  border-radius: 999px; padding: 10px 16px; background: var(--accent); color: var(--on-accent-bubble);
  font: inherit; font-weight: var(--weight-medium); box-shadow: var(--shadow-fab); cursor: pointer; }
.chat-panel { position: fixed; z-index: 50; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 24px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-chat); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-link, .chat-close { border: 0; background: none; color: var(--accent); font: inherit; font-size: var(--text-sm); cursor: pointer; }
.chat-close { color: var(--text-muted); font-size: 1.1rem; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: var(--text-sm); line-height: 1.4; }
.chat-msg--me { align-self: flex-end; background: var(--accent); color: var(--on-accent-bubble); border-bottom-right-radius: 4px; }
.chat-msg--them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.chat-msg--staff { border: 1px solid var(--accent); }
.chat-msg__who { font-size: 0.75rem; color: var(--accent); font-weight: var(--weight-medium); margin-bottom: 2px; }
.chat-note { align-self: center; color: var(--text-muted); font-size: 0.8rem; text-align: center; }
/* 👍 / ✅ under the team's reply */
.chat-acks { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 8px; }
.chat-msg--ack { font-size: 0.85rem; opacity: .85; }
/* 🛒 A suggested cart: the helper's suggestion in the chat, or 🔁 same as last time (home, order page) */
.proposal { align-self: stretch; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 14px;
  background: var(--surface-2); font-size: var(--text-sm); text-align: left; }
.proposal__title { font-weight: var(--weight-medium); }
.proposal__note { margin: 0; color: var(--accent); }
.proposal__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.proposal__lines li, .proposal__total { display: flex; justify-content: space-between; gap: 12px; }
.proposal__lines li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.proposal__total { border-top: 1px solid var(--border); padding-top: 6px; }
.proposal .chat-acks { align-self: stretch; }
.reorder-box { display: grid; gap: 8px; }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-input { flex: 1; min-width: 0; resize: none; font: inherit; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg, var(--surface)); color: var(--text); }

/* 🔥 Mix & match */
.mix-offers { grid-column: 1 / -1; display: grid; gap: 6px; }
.mix-offer { display: flex; justify-content: space-between; gap: 8px; align-items: center; width: 100%; padding: 8px 12px;
  border-radius: 12px; border: 1px dashed var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--surface));
  color: var(--text); font: inherit; font-size: var(--text-sm); text-align: left; }
.mix-offer__cta { color: var(--accent); font-weight: var(--weight-medium); white-space: nowrap; }

/* Ordering outside delivery hours */
.after-hours { display: grid; gap: 10px; }
.choices-stack { display: grid; gap: 8px; margin-top: 4px; }
.choice-card { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; font: inherit; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 48px; }
.choice-card span { font-size: var(--text-sm); color: var(--text-muted); }
.choice-card.is-primary { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, var(--surface)); }
.choice-card.is-quiet { background: transparent; }

/* 🎟 Punch card */
.punch-card { display: grid; gap: 8px; }
.punch-card__top { display: flex; justify-content: space-between; align-items: center; }
.punches { display: flex; flex-wrap: wrap; gap: 8px; }
.punch { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--border); }
.punch.is-on { border: 0; background: var(--accent); }

/* ==========================================================================
   Profile page + header chat (all looks)
   ========================================================================== */
.shop-header__text { flex: 1; min-width: 0; display: grid; }
.shop-header__brand { display: none; }
.header-chat { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-sm);
  font-weight: var(--weight-medium); cursor: pointer; flex: none; }
.header-chat__label { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: var(--space-5);
  border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.profile-hero__avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  font-weight: 700; background: var(--accent); color: var(--on-accent); }
.profile-hero__who { display: grid; gap: 6px; min-width: 0; }
.profile-hero__hello { font-size: var(--text-lg); font-weight: 600; }
.profile-hero__credit { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-muted); }
.profile-hero__credit strong { font-size: 1.6rem; color: var(--text); font-variant-numeric: tabular-nums; }
.rank-badge { justify-self: start; padding: 3px 12px; border-radius: 999px; font-size: var(--text-sm); font-weight: 600;
  background: var(--accent-soft); color: var(--accent); }
.profile-next { margin: -4px 4px 0; font-size: var(--text-sm); color: var(--text-muted); }
/* "Tour the shop: perks, ranks, invite friends" wraps on a narrow phone instead of widening the page (320 px, WCAG 1.4.10) */
.profile-tour { white-space: normal; height: auto; min-height: var(--control-height); padding-block: var(--space-2); text-align: center; text-wrap: balance; }
.profile-links { display: grid; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.profile-link { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; text-align: left;
  text-decoration: none; cursor: pointer; min-height: 56px; }
.profile-link:last-child { border-bottom: 0; }
.profile-link__icon { font-size: 20px; width: 28px; text-align: center; }
.profile-link__text { display: grid; gap: 2px; min-width: 0; }
.profile-link__text span { font-size: var(--text-sm); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link__chev { color: var(--text-subtle); font-size: 22px; }
/* 🔔 Get offers: the Profile's one switch (the bot's 🔔 / 🔕 button is the same yes). Its line may wrap: it's the rule */
.profile-link--switch .profile-link__text span { white-space: normal; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0;
  border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: background var(--dur-fast) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--text-muted); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.switch:checked { background: var(--accent); }
.switch:checked::after { background: var(--on-accent); }
.switch:checked::after { transform: translateX(18px); }
[dir="rtl"] .switch:checked::after { transform: translateX(-18px); }
.switch:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.check__help { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }
.rules-text { white-space: pre-wrap; color: var(--text-muted); font-size: var(--text-sm); }
.tabbar { grid-template-columns: repeat(4, 1fr) !important; }

/* ==========================================================================
   LUXE: the standard look. Night sky that never stops moving, smoked-glass
   surfaces with a fine gold edge, serif display type, gold leaf accents.
   ========================================================================== */
:root[data-look="luxe"] {
  background: radial-gradient(1200px 800px at 80% -10%, var(--lux-sky-a) 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 110%, var(--lux-sky-b) 0%, transparent 55%), var(--lux-ink);
  color-scheme: dark;
}
:root[data-look="luxe"] body { background: transparent; color: var(--text); letter-spacing: .01em; }
:root[data-look="luxe"] .backdrop { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
/* a slow nebula glow drifting over the stars */
:root[data-look="luxe"] body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 30% at 20% 30%, var(--lux-nebula), transparent 70%),
    radial-gradient(35% 28% at 80% 70%, color-mix(in oklab, var(--lux-gold) 9%, transparent), transparent 70%);
  animation: lux-nebula 38s ease-in-out infinite alternate; }
@keyframes lux-nebula { to { transform: translate3d(4%, -3%, 0) rotate(6deg) scale(1.08); } }

/* glass + gold hairline on every surface */
:root[data-look="luxe"] :is(.product, .panel, .order-card, .profile-hero, .profile-links, .choice, .delivery, .mix-offer,
  .punch-card, .chat-panel, .after-hours, .choice-card) {
  background: linear-gradient(var(--lux-glass), var(--lux-glass)) padding-box, var(--lux-edge) border-box;
  border: 1px solid transparent; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--lux-card-shadow);
}

/* header: monogram + serif shop name in gold leaf */
:root[data-look="luxe"] .shop-header { background: var(--lux-header-bg);
  border-bottom: 1px solid var(--lux-line-14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-top: max(12px, env(safe-area-inset-top)); }
:root[data-look="luxe"] .shop-header__brand { display: block; font-family: var(--lux-serif); font-size: 1.35rem; font-weight: 600;
  line-height: 1.1; letter-spacing: .04em; background: var(--lux-leaf); -webkit-background-clip: text; background-clip: text;
  color: transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-look="luxe"] .shop-header__title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .28em;
  color: var(--lux-mute); }
:root[data-look="luxe"] .shop-header .brand__mark, :root[data-look="luxe"] .shop-header .brand__logo {
  width: 40px; height: 40px; border-radius: 50%; background: var(--lux-leaf); color: var(--on-accent); font-family: var(--lux-serif);
  font-size: 1.25rem; box-shadow: var(--lux-mark-shadow); }
:root[data-look="luxe"] .header-chat { background: var(--wash-04); border-color: var(--lux-line-35); color: var(--lux-cream); }

/* typography */
:root[data-look="luxe"] :is(.page__title, .section__title, .category-title, .state__title) { font-family: var(--lux-serif); }
:root[data-look="luxe"] .category-title { font-size: 1.25rem; text-transform: none; letter-spacing: .02em; color: var(--lux-cream);
  display: flex; align-items: center; gap: 12px; margin-top: var(--space-4); }
:root[data-look="luxe"] .category-title::after { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--lux-gold) 55%, transparent), transparent); }
:root[data-look="luxe"] .section__title { color: var(--lux-gold-hi); letter-spacing: .08em; }

/* products: photo with a soft vignette, name in serif, price in gold */
:root[data-look="luxe"] .product { border-radius: 22px; padding: 18px; gap: 10px 14px; }
:root[data-look="luxe"] .product__name { font-family: var(--lux-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
:root[data-look="luxe"] .product__price { background: var(--lux-leaf); -webkit-background-clip: text; background-clip: text;
  color: transparent; font-size: 1.05rem; }
:root[data-look="luxe"] .product__price .badge { -webkit-text-fill-color: initial; color: var(--on-accent); }
:root[data-look="luxe"] .product__desc { color: var(--lux-mute); line-height: 1.5; }
:root[data-look="luxe"] .limited-badge { background: transparent; border: 1px solid color-mix(in oklab, var(--limited-line-dark) 60%, transparent);
  color: var(--limited-text-dark); }

/* gold-leaf buttons with a slow shine */
:root[data-look="luxe"] :is(.add-btn, .btn--primary, .chip-btn.is-active, .chat-msg--me, .choice-card.is-primary strong) { position: relative; }
:root[data-look="luxe"] :is(.add-btn, .btn--primary) { background: var(--lux-leaf); color: var(--on-accent); border: 0;
  font-weight: 700; letter-spacing: .02em; overflow: hidden;
  box-shadow: var(--lux-btn-shadow); }
:root[data-look="luxe"] :is(.add-btn, .btn--primary)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, var(--wash-55) 48%, transparent 66%); transform: translateX(-120%);
  animation: lux-shine 5.5s ease-in-out infinite; }
@keyframes lux-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
:root[data-look="luxe"] .add-btn:disabled { background: var(--wash-06); color: var(--text-subtle); box-shadow: none; }
:root[data-look="luxe"] .add-btn:disabled::after { display: none; }
:root[data-look="luxe"] .btn:not(.btn--primary) { background: var(--wash-04); border: 1px solid var(--lux-line-28); color: var(--lux-cream); }
:root[data-look="luxe"] .stepper { background: var(--wash-05); box-shadow: inset 0 0 0 1px var(--lux-line-35); }
:root[data-look="luxe"] .stepper button { color: var(--lux-gold-hi); }

/* chips & option pills */
:root[data-look="luxe"] .chips { padding-top: 14px; }
:root[data-look="luxe"] :is(.chip-btn, .option-chip) { background: var(--wash-03); border: 1px solid var(--lux-line-22);
  color: var(--lux-mute); letter-spacing: .03em; }
:root[data-look="luxe"] :is(.chip-btn, .option-chip).is-active { background: var(--lux-leaf); border-color: transparent; color: var(--on-accent);
  font-weight: 700; box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--lux-gold) 80%, transparent); }

/* delivery banner */
:root[data-look="luxe"] .delivery { border-radius: 18px; padding: 14px 16px; }
:root[data-look="luxe"] .delivery__status { color: var(--lux-gold-hi); }

/* floating glass tab bar with a gold active dot */
:root[data-look="luxe"] .tabbar { left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); height: 64px; border-radius: 22px;
  background: linear-gradient(var(--lux-tabbar-fill), var(--lux-tabbar-fill)) padding-box, var(--lux-edge) border-box;
  border: 1px solid transparent; -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: var(--glass-bar-shadow); }
:root[data-look="luxe"] .tabbar a { color: var(--lux-tab-ink); font-size: 11px; letter-spacing: .06em; }
:root[data-look="luxe"] .tabbar a.is-active { color: var(--lux-gold-hi); }
:root[data-look="luxe"] .tabbar a.is-active::before { content: ""; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--lux-gold); box-shadow: 0 0 10px var(--lux-gold); }
:root[data-look="luxe"] .tabbar__badge { background: var(--lux-leaf); color: var(--on-accent); }
:root[data-look="luxe"] .app { padding-bottom: calc(96px + var(--safe-bottom)); }
:root[data-look="luxe"] .app.has-action { padding-bottom: calc(170px + var(--safe-bottom)); }
:root[data-look="luxe"] .action-bar { bottom: calc(84px + var(--safe-bottom)); background: transparent; border: 0; }

/* profile */
:root[data-look="luxe"] .profile-hero { border-radius: 26px; padding: 22px; }
:root[data-look="luxe"] .profile-hero__avatar { background: var(--lux-leaf); font-family: var(--lux-serif); font-size: 28px;
  box-shadow: var(--lux-avatar-ring); }
:root[data-look="luxe"] .profile-hero__hello { font-family: var(--lux-serif); font-size: 1.45rem; }
:root[data-look="luxe"] .profile-hero__credit strong { font-family: var(--lux-serif); font-size: 2rem; background: var(--lux-leaf);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-look="luxe"] .rank-badge { background: transparent; border: 1px solid color-mix(in oklab, var(--lux-gold) 55%, transparent);
  color: var(--lux-gold-hi); letter-spacing: .06em; }
:root[data-look="luxe"] .punch.is-on { background: var(--lux-leaf); box-shadow: 0 0 12px color-mix(in oklab, var(--lux-gold) 60%, transparent); }
:root[data-look="luxe"] .punch { border-color: var(--lux-line-35); }

/* steps, totals, checkout */
:root[data-look="luxe"] .step::before { background: var(--wash-08); }
:root[data-look="luxe"] .step.is-done::before { background: var(--lux-leaf); }
:root[data-look="luxe"] .choice.is-selected { box-shadow: 0 0 0 1px var(--lux-gold), 0 10px 30px -18px var(--lux-gold); }
:root[data-look="luxe"] .totals__row--total { font-family: var(--lux-serif); font-size: 1.3rem; }
:root[data-look="luxe"] :is(.input, .select, .textarea, .chat-input) { background: var(--wash-04); border-color: var(--lux-line-20);
  color: var(--lux-cream); }
:root[data-look="luxe"] :is(.input, .select, .textarea, .chat-input):focus { border-color: var(--lux-gold); box-shadow: 0 0 0 3px var(--accent-ring); }

/* entrance: content rises in gently */
:root[data-look="luxe"] .page-enter > .page > * { animation: lux-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
:root[data-look="luxe"] .page-enter > .page > *:nth-child(2) { animation-delay: .05s; }
:root[data-look="luxe"] .page-enter > .page > *:nth-child(3) { animation-delay: .1s; }
:root[data-look="luxe"] .page-enter > .page > *:nth-child(n+4) { animation-delay: .15s; }
:root[data-look="luxe"] .products > * { animation: lux-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lux-rise { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  :root[data-look="luxe"] body::before, :root[data-look="luxe"] :is(.add-btn, .btn--primary)::after,
  :root[data-look="luxe"] .page-enter > .page > *, :root[data-look="luxe"] .products > * { animation: none; }
}
:root[data-look="luxe"] .delivery, :root[data-look="luxe"] .delivery * { white-space: normal !important; overflow: visible !important;
  text-overflow: clip !important; }

/* photo review under the stars */
.review { display: grid; gap: var(--space-2); }
.review .btn { width: 100%; }
.review__pick { position: relative; overflow: hidden; cursor: pointer; }
.review__file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.review__img { display: block; max-width: 100%; max-height: 240px; margin: 0 auto; border-radius: var(--radius, 12px); }

/* menu search */
.shop-search-wrap { padding-bottom: 0; }
.shop-search { width: 100%; }

/* ⭐ Reviews */
.reviews-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 14px;
  border-radius: var(--radius, 12px); background: var(--surface); border: var(--border-width, 1px) solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600; }
.reviews-chip__go { color: var(--text-muted); font-weight: 500; font-size: var(--text-sm); }
.reviews-summary { text-align: center; }
.reviews-summary__avg { font-size: 1.8rem; font-weight: 700; }
.review-card { display: grid; gap: 8px; }
.review-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-card__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card__img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--radius, 12px); }

/* social logos (small, at the bottom) */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 18px 16px 8px; }
.socials__link { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-muted);
  border: var(--border-width, 1px) solid var(--border); background: var(--surface); }
.socials__link:hover, .socials__link:focus-visible { color: var(--accent); border-color: var(--accent); }
.socials__link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials__link svg .fill { fill: currentColor; stroke: none; }

/* shop-wide discount banner */
.sale-banner { margin-bottom: 10px; padding: 10px 14px; border-radius: var(--radius, 12px); text-align: center; font-weight: 700;
  background: color-mix(in oklab, var(--accent) 18%, var(--surface)); border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent); }

/* sign-in page: an uploaded logo stays logo-sized, and long text (the SMS consent) wraps instead of running off */
.web-signin .brand__logo, .web-signin .brand__mark { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; font-size: 1.6rem; }
.gate .state.web-signin { max-width: min(420px, 100%); width: 100%; justify-items: stretch; }
.web-signin > * { min-width: 0; max-width: 100%; }
.web-signin .sms-consent { text-align: center; overflow-wrap: anywhere; white-space: normal; line-height: 1.5; }
.web-signin .btn { justify-self: center; }
.gate .web-signin .btn--primary { width: 100%; justify-self: stretch; justify-content: center; }
:root .gate .web-signin .btn.btn--primary { background: var(--accent); background-image: none; color: var(--on-accent);
  border: var(--border-width) solid var(--accent); box-shadow: none; animation: none; }
:root .gate .web-signin .btn.btn--primary::after { content: none; animation: none; }
.web-signin .promo-consent, .stay__row.check { display: flex; align-items: flex-start; gap: 8px; text-align: left; line-height: 1.4; cursor: pointer; }
.web-signin .promo-consent input, .stay__row.check input { margin-top: 3px; flex: none; }

/* categories stacked (one per line) */
.chips--stacked { flex-direction: column; overflow: visible; gap: 6px; }
.chips--stacked .chip-btn { width: 100%; height: 44px; text-align: left; border-radius: var(--radius, 12px); }
/* short delivery box: live status + schedule name */
.delivery--short { margin: 10px 16px 0; padding: 10px 14px; border-radius: var(--radius, 12px); background: var(--surface);
  border: var(--border-width, 1px) solid var(--border); display: grid; gap: 2px; }
.delivery--short .delivery__status { font-weight: 600; }
.delivery__title { color: var(--text-muted); font-size: var(--text-sm); }
/* 💬 Help in the bottom bar */
.tabbar.tabbar--5 { grid-template-columns: repeat(5, 1fr) !important; }
.tabbar__chat { all: unset; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--text-subtle);
  font-size: 11px; cursor: pointer; }
/* typing… bubble */
.chat-typing { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.chat-typing__dots { display: inline-flex; gap: 4px; }
.chat-typing__dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35;
  animation: chat-dot 1.1s infinite ease-in-out; }
.chat-typing__dots i:nth-child(2) { animation-delay: .15s; }
.chat-typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing__dots i { animation: none; opacity: .6; } }

/* ✨ Welcome tour (shop.js welcomePage): full-screen scenes that rise in, gold for what matters ----------------- */
.wl { position: relative; z-index: 1; }
.wl-skip { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 5; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--wash-18); background: var(--shade-35); color: var(--text); font: inherit;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wl-scene { min-height: 100svh; display: grid; place-items: center; padding: 72px 20px 56px; }
.wl-scene__in { width: 100%; max-width: 560px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.wl-scene__in > * { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.wl-scene.is-in .wl-scene__in > * { opacity: 1; transform: none; }
.wl-scene.is-in .wl-scene__in > :nth-child(2) { transition-delay: .12s; }
.wl-scene.is-in .wl-scene__in > :nth-child(3) { transition-delay: .24s; }
.wl-scene.is-in .wl-scene__in > :nth-child(4) { transition-delay: .36s; }
.wl-scene.is-in .wl-scene__in > :nth-child(5) { transition-delay: .48s; }
.wl-scene.is-in .wl-scene__in > :nth-child(n+6) { transition-delay: .6s; }
.wl-kicker { color: var(--accent); font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; }
.wl-title, .wl-big, .wl-huge, .wl-granted__title { font-family: var(--lux-serif, Georgia, serif); margin: 0; }
.wl-title { font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.05; }
.wl-big { font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1.05; }
.wl-huge { font-size: clamp(2.7rem, 12vw, 5rem); line-height: .98; font-weight: 800; }
.wl-big span, .wl-huge span { display: block; }
.wl-word { display: inline-block; opacity: 0; animation: wl-rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.wl-word + .wl-word { animation-delay: .15s; }
.wl-shop, .wl-gold, .wl-reward strong {
  background: var(--lux-leaf, var(--leaf-fallback)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.wl-shop { display: block; opacity: 0; animation: wl-rise 1s .35s cubic-bezier(.2, .8, .2, 1) forwards, wl-shine 5s 1.6s linear infinite; }
.wl-logo { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); animation: wl-pop 1.1s cubic-bezier(.2, 1.4, .3, 1) both, wl-glow 3s 1.1s ease-in-out infinite alternate; }
.wl-logo__img { width: 100%; height: 100%; object-fit: cover; }
.wl-logo__mark { color: var(--accent); font-family: var(--lux-serif, Georgia, serif); font-size: 3rem; }
.wl-lead { margin: 0; max-width: 36ch; color: var(--text-muted); font-size: 1.05rem; }
.wl-scroll { display: grid; gap: 4px; color: var(--text-muted); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.wl-scroll i { font-style: normal; animation: wl-bob 1.6s ease-in-out infinite; }
.wl-rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.wl-reward { min-width: 150px; display: grid; gap: 6px; padding: 18px 22px; border-radius: 20px; background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); box-shadow: 0 0 40px color-mix(in oklab, var(--accent) 18%, transparent); }
.wl-reward strong { font-size: clamp(2.8rem, 13vw, 4.4rem); font-weight: 800; line-height: 1; }
.wl-reward span { color: var(--text-muted); font-size: .9rem; }
.wl-note { margin: 0; max-width: 42ch; color: var(--text-muted); }
.wl-note--gold { color: var(--accent); font-weight: 600; }
.wl-link { width: 100%; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface-2);
  border: 1px dashed color-mix(in oklab, var(--accent) 55%, transparent); }
.wl-link__url { color: var(--text); font-size: .85rem; word-break: break-all; }
.wl-link .btn-row { justify-content: center; }
.wl-ladder { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column-reverse; gap: 10px; }
.wl-rung { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; text-align: left;
  background: var(--surface); border: 1px solid var(--wash-08); opacity: 0; transform: translateX(-24px); }
.wl-scene.is-in .wl-rung { animation: wl-in .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.wl-scene.is-in .wl-rung:nth-child(2) { animation-delay: .1s; }
.wl-scene.is-in .wl-rung:nth-child(3) { animation-delay: .2s; }
.wl-scene.is-in .wl-rung:nth-child(4) { animation-delay: .3s; }
.wl-scene.is-in .wl-rung:nth-child(5) { animation-delay: .4s; }
.wl-scene.is-in .wl-rung:nth-child(n+6) { animation-delay: .5s; }
.wl-rung.is-you { border-color: var(--accent); box-shadow: 0 0 28px color-mix(in oklab, var(--accent) 30%, transparent); }
.wl-rung__emoji { font-size: 1.8rem; }
.wl-rung > div { flex: 1; display: grid; gap: 2px; }
.wl-rung__pts { color: var(--text-muted); font-size: .78rem; }
.wl-rung__perks { color: var(--accent); font-size: .82rem; }
.wl-rung__you { padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .7rem;
  font-style: normal; letter-spacing: .15em; text-transform: uppercase; }
.wl-lock { display: grid; gap: 10px; justify-items: center; }
.wl-lock p { margin: 0; }
.wl-stamps { display: grid; grid-template-columns: repeat(auto-fit, 52px); gap: 10px; justify-content: center; width: 100%; max-width: 340px; }
.wl-stamp { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem;
  border: 2px dashed var(--wash-25); color: transparent; }
.wl-stamp:last-child { color: var(--text); border-color: var(--accent); }
.wl-stamp.is-on { border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); transform: scale(.2); }
.wl-scene.is-in .wl-stamp.is-on { animation: wl-stamp .5s cubic-bezier(.2, 1.6, .3, 1) forwards; }
.wl-scene.is-in .wl-stamp.is-on:nth-child(2) { animation-delay: .12s; }
.wl-scene.is-in .wl-stamp.is-on:nth-child(3) { animation-delay: .24s; }
.wl-scene.is-in .wl-stamp.is-on:nth-child(4) { animation-delay: .36s; }
.wl-scene.is-in .wl-stamp.is-on:nth-child(n+5) { animation-delay: .48s; }
.wl-cards { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.wl-card { display: grid; gap: 6px; padding: 16px; border-radius: 18px; text-align: left; background: var(--surface);
  border: 1px solid var(--wash-08); opacity: 0; transform: translateY(24px) scale(.96); }
.wl-scene.is-in .wl-card { animation: wl-in .6s cubic-bezier(.2, .8, .2, 1) forwards; }
.wl-scene.is-in .wl-card:nth-child(2) { animation-delay: .08s; }
.wl-scene.is-in .wl-card:nth-child(3) { animation-delay: .16s; }
.wl-scene.is-in .wl-card:nth-child(4) { animation-delay: .24s; }
.wl-scene.is-in .wl-card:nth-child(5) { animation-delay: .32s; }
.wl-scene.is-in .wl-card:nth-child(n+6) { animation-delay: .4s; }
.wl-card__icon { font-size: 1.6rem; }
.wl-card > span:last-child { color: var(--text-muted); font-size: .85rem; }
.wl-go .btn { padding: 16px 28px; border-radius: 999px; font-size: 1.1rem; animation: wl-glow 2.4s ease-in-out infinite alternate; }
.wl-portal { position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--portal-glint) 0, var(--accent) 22%, var(--lux-ink, var(--portal-ink)) 72%);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .72s cubic-bezier(.7, 0, .3, 1), opacity .8s ease; }
.wl-portal.is-open { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); }
.wl-portal.is-out { opacity: 0; }
.wl-arrive .app { animation: wl-arrive .95s cubic-bezier(.2, .8, .2, 1) both; }
.wl-granted { display: grid; gap: 12px; justify-items: center; padding: 32px 20px; text-align: center; }
.wl-granted__ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  color: var(--on-accent); font-size: 2.6rem; animation: wl-pop .8s cubic-bezier(.2, 1.6, .3, 1) both, wl-glow 1.6s .8s ease-in-out infinite alternate; }
.wl-granted__title { font-size: 2.2rem; animation: wl-rise .8s .25s cubic-bezier(.2, .8, .2, 1) both; }
.wl-granted p { margin: 0; animation: wl-rise .8s .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wl-rise { from { opacity: 0; transform: translateY(.7em); } to { opacity: 1; transform: none; } }
@keyframes wl-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes wl-glow { from { box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 25%, transparent); }
  to { box-shadow: 0 0 64px color-mix(in oklab, var(--accent) 60%, transparent); } }
@keyframes wl-shine { to { background-position: -200% 0; } }
@keyframes wl-bob { 50% { transform: translateY(6px); } }
@keyframes wl-in { to { opacity: 1; transform: none; } }
@keyframes wl-stamp { to { transform: scale(1); } }
@keyframes wl-arrive { from { opacity: 0; transform: scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .wl *, .wl-granted, .wl-granted *, .wl-arrive .app { animation: none !important; transition: none !important; }
  .wl-scene__in > *, .wl-rung, .wl-card, .wl-word, .wl-shop { opacity: 1 !important; transform: none !important; }
  .wl-stamp.is-on { transform: none; }
}
.copy-row { display: grid; gap: 6px; margin-top: 8px; }
.option-chip__best { margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: var(--on-accent-badge); }
/* 🤖 AI Helper greeting */
.chat-hello { display: grid; gap: 6px; max-width: 92%; }
.chat-hello ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 3px; }
.chat-hello .muted { opacity: .75; font-size: .9em; }

.product__pick { font-size: 13px; font-weight: 500; opacity: .75; }

/* Product photo: tap (or hover on a computer) to see it whole */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: var(--lightbox-bg); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: lightbox-in .18s ease; cursor: zoom-out; }
.lightbox__close { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: var(--lightbox-btn); color: var(--on-photo); font-size: 18px; cursor: pointer; }
.lightbox__name { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; text-align: center;
  color: var(--on-photo); font-weight: 600; opacity: .9; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

/* 🎞 Product gallery: the video and the photo as one swipeable slideshow (the card and full screen) */
.gallery { position: relative; grid-column: 1 / -1; width: calc(100% + 2 * var(--space-4));
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-1); overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-2); }
:root[data-look="luxe"] .gallery { border-radius: 22px 22px 0 0; margin: -18px -18px 4px; width: calc(100% + 36px); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.gallery__slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.gallery__media { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--photo-letterbox); }
.gallery__badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px;
  font-weight: 600; color: var(--on-photo); background: var(--photo-chip); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.gallery__sound { position: absolute; right: 8px; bottom: 26px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--photo-chip); color: var(--on-photo); font-size: 15px; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--photo-chip-nav); color: var(--on-photo); font-size: 22px; line-height: 1;
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .2s; }
.gallery__nav--prev { left: 8px; }
.gallery__nav--next { right: 8px; }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .gallery__nav { display: none; } }  /* phones: swipe */
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px;
  pointer-events: none; }
.gallery__dot { width: 7px; height: 7px; border-radius: 4px; background: var(--photo-dot);
  box-shadow: 0 0 0 1px var(--photo-dot-edge); transition: width .2s, background .2s; }
.gallery__dot.is-on { width: 18px; background: var(--on-photo); }
.lightbox .gallery { width: min(100%, 960px); margin: 0; border-radius: 14px; background: transparent; }
.lightbox .gallery__slide { cursor: default; display: grid; place-items: center; }
.lightbox .gallery__media { aspect-ratio: auto; width: 100%; max-height: calc(100vh - 120px); object-fit: contain;
  background: transparent; border-radius: 14px; }

/* ✨ Add-ons pop-up at the end of checkout */
.addons-pop { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; background: var(--scrim-sheet);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: lightbox-in .18s ease; }
.addons-pop__card { max-height: 85vh; overflow-y: auto; display: grid; gap: 12px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: var(--shadow-sheet);
  animation: addons-up .25s cubic-bezier(.2,.8,.2,1); }
.addons-pop__card { background: var(--bg); }  /* a sheet is solid in every look: the page never shows through it */
:root[data-look="luxe"] .addons-pop__card { background: var(--lux-sheet); }
.addons-pop__head { display: flex; align-items: center; gap: 10px; }
.addons-pop__head h2 { margin: 0; font-size: 18px; flex: 1; }
.addons-pop__head strong { color: var(--accent); }
.addons-pop__close { border: 0; background: transparent; color: inherit; font-size: 18px; cursor: pointer; opacity: .7; }
/* 🛒 Custom add-on (in the add-ons pop-up) */
.custom-addon { display: grid; gap: 8px; }
.custom-addon:has(input) { padding: 12px; border-radius: var(--radius); border: 1px dashed color-mix(in oklab, var(--accent) 70%, transparent);
  background: color-mix(in oklab, var(--accent) 7%, transparent); }
.custom-addon__head { display: flex; align-items: center; gap: 8px; }
.custom-addon__head strong { flex: 1; }
.custom-addon__err { color: var(--danger); margin: 0; }
.custom-addon__err:empty { display: none; }
.notice--warn { border-color: var(--accent); }
@keyframes addons-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ➕ Add to an unclaimed order */
.add-more { display: grid; gap: 10px; }
.add-more__addons { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: inherit;
  font: inherit; font-size: 14px; cursor: pointer; }

/* 🔁 Order my usual */
.usual-btn { display: grid; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: inherit; font: inherit; font-weight: 600; }
.usual-btn span { font-weight: 400; font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* live status: bold headline, details lighter on the next line */
.delivery__head { display: block; font-weight: 800; letter-spacing: .01em; }
.delivery__rest { display: block; margin-top: 4px; font-weight: 500; opacity: .85; font-size: .94em; }
.delivery__title { margin-top: 6px; font-size: 13px; opacity: .7; }
.add-more__custom { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.add-more__custom--est { grid-template-columns: 1fr; }

.drops-btn { display: block; margin: 0 16px 10px; padding: 10px 14px; width: calc(100% - 32px); border-radius: 14px; border: 1px dashed var(--accent); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }

.confirmed-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 600;
  background: var(--success-soft); color: var(--success); border: 1px solid color-mix(in oklab, var(--success) 35%, transparent); }
.access-form { display: grid; gap: var(--space-3); width: 100%; max-width: 340px; text-align: left; margin: var(--space-3) auto; }
/* 🔐 request access: the bot's message and steps, drawn on the web */
.access .access__msg { text-align: left; width: 100%; white-space: pre-wrap; line-height: 1.5; }
.access .access__msg--warn { padding: 10px 12px; border-radius: var(--radius); background: color-mix(in oklab, var(--warning) 14%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--warning) 55%, transparent); }
.access .access__row { justify-content: center; }
.access .btn--block { width: 100%; }
.access .link-btn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.access-form__check { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); }
.profile-unlock { margin: var(--space-3) 0; padding: var(--space-3); border-radius: var(--radius); font-size: var(--text-sm);
  background: var(--accent-soft); border: 1px dashed var(--accent-ring); }

/* 📡 live status board (same sections as the bot's menu) */
.live-board__section + .live-board__section { margin-top: 12px; padding-top: 10px; border-top: 1px solid color-mix(in oklab, currentColor 12%, transparent); }
.live-board__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .55; margin-bottom: 4px; }
.live-board__line { margin-top: 4px; font-size: .95em; opacity: .9; }

.invite-link { display: grid; gap: 4px; margin: 8px 0; }
.invite-link__row { display: flex; gap: 8px; align-items: center; }
.invite-link__row .input { flex: 1; min-width: 0; }

.custom-amount__wrap { margin-top: 6px; }
.custom-amount { display: grid; gap: 8px; margin-top: 8px; }
.custom-amount__result { display: grid; gap: 6px; }

.chat-hello__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.chat-head__photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.chat-hello__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.chat-head__photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* 📲 Tap to Pay: the contactless symbol in the shop's own text color */
.pay-icon { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .4em; vertical-align: -.2em;
  background: currentColor; -webkit-mask: url(/admin/img/contactless.svg) center / contain no-repeat;
  mask: url(/admin/img/contactless.svg) center / contain no-repeat; }

/* 📲 Tap to Pay: the contactless symbol in the shop's own text color */
.pay-icon { display: inline-block; width: 1.15em; height: 1.15em; margin-right: .4em; vertical-align: -.2em;
  background: currentColor; -webkit-mask: url(/admin/img/contactless.svg) center / contain no-repeat;
  mask: url(/admin/img/contactless.svg) center / contain no-repeat; }

/* 📡 LIVE STATUS heading on the board, with a softly pulsing live dot */
.live-board__title { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em; margin-bottom: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live-pulse);
  animation: live-pulse 1.8s ease-out infinite; flex: 0 0 auto; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 var(--live-pulse); } 70% { box-shadow: 0 0 0 8px var(--live-pulse-0); }
  100% { box-shadow: 0 0 0 0 var(--live-pulse-0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* 📡 LIVE STATUS heading on the board, with a softly pulsing live dot */
.live-board__title { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em; margin-bottom: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live-pulse);
  animation: live-pulse 1.8s ease-out infinite; flex: 0 0 auto; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 var(--live-pulse); } 70% { box-shadow: 0 0 0 8px var(--live-pulse-0); }
  100% { box-shadow: 0 0 0 0 var(--live-pulse-0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ✨ How it works: the features customers can use here, as a swipeable rail on the menu (every look) */
.highlights { display: grid; gap: 8px; }
.highlights__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); padding: 0 2px; }
.highlights__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--space-4)); padding: 2px var(--space-4) 6px; }
.highlights__track::-webkit-scrollbar { display: none; }
.hl { flex: 0 0 74%; max-width: 290px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; cursor: pointer; min-height: 96px; }
.hl__icon { font-size: 22px; line-height: 1.2; }
.hl__title { font-weight: 600; }
.hl__text { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.35; }
.hl__icon--big { font-size: 26px; }
.hl-sheet__text { margin: 0; color: var(--text-muted); line-height: 1.55; }
/* 🔥 Spotlight: the promoter's picks */
.spot { flex: 0 0 46%; max-width: 200px; scroll-snap-align: start; display: grid; gap: 8px; align-content: space-between;
  padding: 8px; border-radius: var(--radius-lg); border: var(--border-width) solid var(--border); background: var(--surface); }
.spot__open { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); font: inherit;
  text-align: left; cursor: pointer; }
.spot__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius-lg) - 4px); background: var(--surface-2); }
.spot__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.spot__badge { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-pill); background: var(--surface-2);
  color: var(--text-muted); white-space: nowrap; }
.spot__name { font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.spot__price { font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.spot__cta .add-btn { width: 100%; }
.add-btn--quiet { background: var(--surface-2); color: var(--text); }
:root[data-look="luxe"] .spot { background: linear-gradient(var(--lux-glass), var(--lux-glass)) padding-box, var(--lux-edge) border-box;
  border: 1px solid transparent; }
:root[data-look="luxe"] .hl { background: linear-gradient(var(--lux-glass), var(--lux-glass)) padding-box, var(--lux-edge) border-box;
  border: 1px solid transparent; }
:root[data-look="luxe"] .hl__title { font-family: var(--lux-serif); font-size: 1.1rem; }

/* 📡 HUD panels: the live status board and the order status share one frame (corner brackets, a hairline in the
   shop's accent, a small tracked label). Same in every look; the looks only tint it. */
.hud { position: relative; border-color: color-mix(in oklab, var(--accent) 35%, var(--border)); }
.hud::before, .hud::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--accent); pointer-events: none; opacity: .9; }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.hud__title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent); }
.hud--order .order-card__top { margin-bottom: 10px; }
.live-dot--still { animation: none; opacity: .45; }

/* ✈️ Connect Telegram: web customers keep getting order updates even when texts fail */
.tg-nudge { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); }
.tg-nudge__text strong { display: block; }
.tg-nudge__text p { margin: 4px 0 0; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
.tg-nudge--warn { background: color-mix(in oklab, var(--warning) 14%, var(--surface)); border-color: color-mix(in oklab, var(--warning) 55%, transparent); }
.tg-nudge .btn-row { flex-wrap: wrap; }
.tg-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.45; }
.tg-steps a { color: var(--accent); }

/* ==========================================================================
   🛸 FUTURE: an optional look (Settings → Mobile shop → Look). Deep navy,
   soft glass, the shop's accent as a calm light on prices, labels and the
   HUD frame. Clean type, no gimmicks.
   ========================================================================== */
:root[data-look="future"] {
  background: var(--neo-ink); color-scheme: dark;
}
:root[data-look="future"] body { background: transparent; color: var(--text); }
:root[data-look="future"] .backdrop { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
:root[data-look="future"] body::before { content: ""; position: fixed; inset: -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 30% at 25% 25%, color-mix(in oklab, var(--neo-b) 12%, transparent), transparent 70%),
    radial-gradient(34% 28% at 78% 65%, color-mix(in oklab, var(--neo-a) 10%, transparent), transparent 70%);
  animation: neo-drift 30s ease-in-out infinite alternate; }
@keyframes neo-drift { to { transform: translate3d(-4%, 3%, 0) rotate(-5deg) scale(1.06); } }

/* glass panels with a thin accent hairline */
:root[data-look="future"] :is(.product, .panel, .order-card, .profile-hero, .profile-links, .choice, .delivery, .mix-offer, .punch-card,
  .chat-panel, .after-hours, .choice-card, .hl, .usual-btn, .reviews-chip, .sale-banner, .addons-pop__card, .tg-nudge) {
  background: linear-gradient(var(--neo-glass), var(--neo-glass)) padding-box, var(--neo-edge) border-box;
  border: 1px solid transparent; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--neo-card-shadow);
}
:root[data-look="future"] .delivery { border-radius: 16px; padding: 14px 16px; margin: 12px 16px 0; background: var(--neo-sheet); }
:root[data-look="future"] .addons-pop__card { background: var(--neo-sheet); }
:root[data-look="future"] .page > .delivery { margin: 0; }
:root[data-look="future"] .hud::before, :root[data-look="future"] .hud::after { border-color: var(--neo-a); filter: drop-shadow(0 0 4px var(--neo-glow)); }
:root[data-look="future"] .hud__title { color: var(--neo-a); text-shadow: 0 0 12px var(--neo-glow); }
:root[data-look="future"] .live-dot { background: var(--neo-a); box-shadow: 0 0 0 0 var(--neo-glow); }
:root[data-look="future"] .live-board__label { color: var(--neo-subtle); opacity: 1; }
:root[data-look="future"] .live-board__section + .live-board__section { border-top: 1px dashed color-mix(in oklab, var(--neo-a) 22%, transparent); }
:root[data-look="future"] .delivery__status.is-now { color: var(--success); }

/* header */
:root[data-look="future"] .shop-header { padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 0;
  background: var(--neo-header-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
:root[data-look="future"] .shop-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neo-a) 30%, var(--neo-b) 70%, transparent); opacity: .6; }
:root[data-look="future"] .shop-header__brand { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: .01em; line-height: 1.1;
  background: var(--neo-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root[data-look="future"] .shop-header__title { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--neo-subtle); }
:root[data-look="future"] .shop-header .brand__mark, :root[data-look="future"] .shop-header .brand__logo { width: 40px; height: 40px; border-radius: 12px;
  background: var(--neo-grad); color: var(--on-accent); font-weight: 800; box-shadow: var(--neo-mark-shadow); }
:root[data-look="future"] .header-chat { background: var(--wash-04); border-color: var(--border-strong); color: var(--neo-text); }

/* labels and titles */
:root[data-look="future"] :is(.category-title, .section__title, .highlights__label) { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--neo-a); }
:root[data-look="future"] .category-title { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); }
:root[data-look="future"] .category-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in oklab, var(--neo-a) 45%, transparent), transparent); }
:root[data-look="future"] .hl { border-radius: 18px; min-height: 100px; }
:root[data-look="future"] .hl__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 19px;
  background: color-mix(in oklab, var(--neo-a) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--neo-a) 35%, transparent); margin-bottom: 4px; }
:root[data-look="future"] .hl__title { font-weight: 700; }

/* products */
:root[data-look="future"] .product { border-radius: 22px; padding: 16px; gap: 10px 14px; }
:root[data-look="future"] .gallery { border-radius: 22px 22px 0 0; margin: -16px -16px 4px; width: calc(100% + 32px); }
:root[data-look="future"] .gallery__dot.is-on { background: var(--neo-a); }
:root[data-look="future"] .product__name { font-size: 1.1rem; font-weight: 700; }
:root[data-look="future"] .product__price { font-size: 1.05rem; font-weight: 700; color: var(--neo-a); text-shadow: 0 0 12px var(--neo-glow); }
:root[data-look="future"] .product__was { color: var(--neo-subtle); text-shadow: none; }
:root[data-look="future"] .product__pick { color: var(--neo-mute); text-shadow: none; }
:root[data-look="future"] .product__desc { color: var(--neo-mute); line-height: 1.5; }
:root[data-look="future"] .product__deal, :root[data-look="future"] .line__deal { color: var(--neo-b); }
:root[data-look="future"] .limited-badge { background: transparent; border: 1px solid color-mix(in oklab, var(--limited-line-dark) 60%, transparent); color: var(--limited-text-dark); }
:root[data-look="future"] :is(.add-btn, .btn--primary) { background: var(--neo-grad); color: var(--on-accent); border: 0; font-weight: 700;
  box-shadow: var(--neo-btn-shadow); }
:root[data-look="future"] .add-btn:disabled { background: var(--wash-06); color: var(--neo-subtle); box-shadow: none; }
:root[data-look="future"] .btn:not(.btn--primary) { background: var(--wash-04); border: 1px solid var(--border-strong); color: var(--neo-text); }
:root[data-look="future"] .stepper { background: var(--wash-04); box-shadow: inset 0 0 0 1px var(--border-strong); }
:root[data-look="future"] .stepper button { color: var(--neo-a); }

/* chips */
:root[data-look="future"] .chips--stacked { flex-direction: row; overflow-x: auto; gap: 8px; padding-top: 12px; }
:root[data-look="future"] .chips--stacked .chip-btn { width: auto; min-width: 72px; height: 34px; padding: 0 16px; border-radius: 999px; text-align: center; white-space: nowrap; }
:root[data-look="future"] :is(.chip-btn, .option-chip) { background: var(--wash-03); border: 1px solid var(--border); color: var(--neo-mute); }
:root[data-look="future"] :is(.chip-btn, .option-chip).is-active { background: color-mix(in oklab, var(--neo-a) 14%, transparent); border-color: var(--neo-a);
  color: var(--neo-a); font-weight: 700; }
:root[data-look="future"] .option-chip__best { background: var(--neo-grad); color: var(--on-accent); }
:root[data-look="future"] .drops-btn { border: 1px dashed var(--border-strong); color: var(--neo-mute); border-radius: 14px; }

/* floating glass tab bar */
:root[data-look="future"] .tabbar { left: 12px; right: 12px; bottom: calc(10px + var(--safe-bottom)); height: 64px; border-radius: 22px;
  background: linear-gradient(var(--neo-tabbar-fill), var(--neo-tabbar-fill)) padding-box, var(--neo-edge) border-box; border: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--glass-bar-shadow); }
:root[data-look="future"] .tabbar a, :root[data-look="future"] .tabbar__chat { color: var(--neo-subtle); font-size: 11px; letter-spacing: .04em; }
:root[data-look="future"] .tabbar a.is-active { color: var(--neo-a); }
:root[data-look="future"] .tabbar a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--neo-grad); }
:root[data-look="future"] .tabbar__badge { background: var(--neo-grad); color: var(--on-accent); }
:root[data-look="future"] .app { padding-bottom: calc(96px + var(--safe-bottom)); }
:root[data-look="future"] .app.has-action { padding-bottom: calc(170px + var(--safe-bottom)); }
:root[data-look="future"] .action-bar { bottom: calc(84px + var(--safe-bottom)); background: transparent; border: 0; }
:root[data-look="future"] .action-bar .btn { border-radius: 18px; }

/* forms, checkout, totals, profile, chat */
:root[data-look="future"] :is(.input, .select, .textarea, .chat-input) { background: var(--wash-04); border-color: var(--border); color: var(--neo-text); }
:root[data-look="future"] :is(.input, .select, .textarea, .chat-input):focus { border-color: var(--neo-a); box-shadow: 0 0 0 3px var(--accent-ring); }
:root[data-look="future"] .choice { border-radius: 16px; }
:root[data-look="future"] .choice.is-selected { box-shadow: 0 0 0 1px var(--neo-a); background: color-mix(in oklab, var(--neo-a) 10%, var(--neo-glass)); }
:root[data-look="future"] .totals__row--total { font-size: 1.2rem; font-weight: 800; color: var(--neo-a); }
:root[data-look="future"] .totals__row--discount { color: var(--success); }
:root[data-look="future"] .addons-pop__head strong { color: var(--neo-a); }
:root[data-look="future"] .step::before { background: var(--wash-08); }
:root[data-look="future"] .step.is-done::before { background: var(--neo-grad); }
:root[data-look="future"] .order-card__code { color: var(--neo-a); }
:root[data-look="future"] .success__icon { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
:root[data-look="future"] .profile-hero { border-radius: 24px; padding: 22px; }
:root[data-look="future"] .profile-hero__avatar { background: var(--neo-grad); font-weight: 800; box-shadow: 0 0 0 3px var(--neo-ink), 0 0 0 4px var(--neo-a); }
:root[data-look="future"] .profile-hero__credit strong { font-size: 1.7rem; color: var(--neo-a); }
:root[data-look="future"] .rank-badge { background: transparent; border: 1px solid var(--neo-a); color: var(--neo-a); }
:root[data-look="future"] .punch.is-on { background: var(--neo-grad); }
:root[data-look="future"] .punch { border-color: var(--border-strong); }
:root[data-look="future"] .profile-link__chev { color: var(--neo-a); }
:root[data-look="future"] .chat-msg--me { background: var(--neo-grad); color: var(--on-accent); }
:root[data-look="future"] .chat-msg--them { background: var(--wash-06); }
:root[data-look="future"] .chat-fab { background: var(--neo-grad); color: var(--on-accent); }
:root[data-look="future"] .reviews-chip__go, :root[data-look="future"] .mix-offer__cta { color: var(--neo-a); }
:root[data-look="future"] .socials__link { background: var(--wash-03); border-color: var(--border); color: var(--neo-mute); }
:root[data-look="future"] .socials__link:hover { color: var(--neo-a); border-color: var(--neo-a); }
:root[data-look="future"] .preview-ribbon { background: var(--neo-grad); color: var(--on-accent); }
:root[data-look="future"] ::selection { background: color-mix(in oklab, var(--neo-a) 40%, transparent); color: var(--white); }

/* entrance: panels fade up, one after another (no blur: cheap on every phone) */
:root[data-look="future"] .page-enter > * > *, :root[data-look="future"] .page-enter > .page > *, :root[data-look="future"] .products > * {
  animation: neo-in .5s cubic-bezier(.2, .7, .2, 1) both; }
:root[data-look="future"] .products > *:nth-child(2) { animation-delay: .06s; }
:root[data-look="future"] .products > *:nth-child(3) { animation-delay: .12s; }
:root[data-look="future"] .products > *:nth-child(n+4) { animation-delay: .18s; }
:root[data-look="future"] .hl { animation: neo-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes neo-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  :root[data-look="future"] body::before, :root[data-look="future"] .page-enter > * > *, :root[data-look="future"] .page-enter > .page > *,
  :root[data-look="future"] .products > *, :root[data-look="future"] .hl { animation: none; }
}

/* 💬 the order's thread (team ↔ customer) and the ask box: the bot's 📍 tracker and this page show the same thread */
.thread { display: grid; gap: 10px; }
.thread__list { display: grid; gap: 8px; }
.thread__msg { display: grid; gap: 4px; max-width: 94%; padding: 10px 12px; border-radius: 14px 14px 14px 4px;
  background: var(--surface-2); }
.thread__msg--me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--accent-soft); }
.thread__who { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.thread__at { font-weight: 400; white-space: nowrap; }
.thread__text { white-space: pre-wrap; line-height: 1.4; overflow-wrap: anywhere; }
.ask { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.ask__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ask__input { resize: vertical; min-height: 56px; }
/* 🤝 the meetup spot, pinned in the order status HUD */
.spot { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft);
  border: 1px dashed var(--accent-ring, var(--accent)); }
.spot__where { margin: 0; }

/* 📲 Stay updated: Telegram first, 🔔 this phone, ✉️ e-mail */
.stay__rows { display: grid; gap: 8px; }
.stay__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stay__row--on { font-weight: 600; }
/* 🔔 order alerts: on = what's on, the separate news tick, Turn off; at checkout a calm panel above Place order */
.stay__row--on.alerts { flex-direction: column; align-items: flex-start; }
.alerts .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.alerts .check input { margin-top: 3px; flex: none; }
.alerts-checkout { display: grid; gap: 8px; margin-top: 12px; }
.tg-steps--left { text-align: left; margin: 10px auto; max-width: 360px; }

/* ♿ Touch targets (UI UX Pro Max rule 2, WCAG 2.5.8): chips and the header's chat pill keep their look, but their
   tap area reaches 44px with an invisible edge (no layout shift) */
.chip-btn, .header-chat { position: relative; }
.chip-btn::after { content: ""; position: absolute; inset: -5px 0; }
.header-chat::after { content: ""; position: absolute; inset: -4px 0; }
