/* YappiBar — Sentient/Switzer, terracotta+ochre on warm dark. No italic, no glow. */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg-0: #1a1410;
  --bg-1: #241b15;
  --bg-2: #2e231b;
  --bg-3: #382b21;
  --bg-glass: rgba(244,234,216,0.045);
  --bg-blur: rgba(26,20,16,0.85);

  --text-0: #f4ead8;
  --text-1: #c0b094;
  --text-mute: #897a62;

  --terra: #c8533a;
  --terra-hi: #e36e52;
  --terra-deep: #6b2a1c;
  --ochre: #d99c3f;
  --ochre-hi: #ecb35a;
  --green-veg: #7cb05a;
  --neon-new: #f3e275;

  --border: rgba(244,234,216,0.10);
  --border-strong: rgba(244,234,216,0.18);
  --shadow-warm: 0 12px 40px -10px rgba(200,83,58,0.40);
  --shadow-card: 0 4px 16px -4px rgba(0,0,0,0.55);

  --display: 'Sentient', 'PP Editorial', 'GT Sectra', Georgia, serif;
  --sans: 'Switzer', 'PP Neue Montreal', system-ui, -apple-system, sans-serif;
  --num: 'Switzer', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html, body {
  background: var(--bg-0);
  color: var(--text-0);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overscroll-behavior-y: contain;
}

body {
  background: var(--bg-0);
  padding-bottom: calc(160px + var(--safe-bottom));
  position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.92 0 0 0 0 0.85 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 1; mix-blend-mode: overlay;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
input, textarea, select { font-family: inherit; }

.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; }
.num { font-variant-numeric: tabular-nums; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 18px 10px;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(20,15,11,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 28px; width: auto; opacity: 0.92; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.lang-switch { display: flex; gap: 2px; padding: 2px; background: var(--bg-glass); border: 1px solid var(--border); border-radius: 999px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-1); border-radius: 999px; padding: 0 8px;
  transition: all 0.15s ease;
}
.lang.active { background: var(--terra); color: #fff; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-0); transition: all 0.15s ease;
}
.icon-btn:hover, .icon-btn:active { background: var(--bg-2); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.item-topbar { display: grid; grid-template-columns: 38px 1fr 38px; gap: 12px; align-items: center; }
.brand-min { display: inline-flex; justify-self: center; }
.brand-min img { height: 26px; opacity: 0.9; }
.topbar-title { font-size: 20px; text-align: center; }

/* ===== Hero — asymmetric, ambient bar photo bg, no glow ===== */
.hero {
  position: relative; min-height: min(86dvh, 760px);
  display: flex; align-items: flex-end;
  padding: 24px 22px 36px; margin-top: -64px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: #1a1410;
}
.hero-bg::before {
  content: ''; position: absolute; inset: -20px;
  background: url("/static/hero-bar.jpg") center / cover no-repeat;
  filter: blur(8px) saturate(1.05) brightness(0.78);
  transform: scale(1.06);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,20,16,0.35) 0%, rgba(26,20,16,0.55) 50%, rgba(26,20,16,0.96) 100%),
    radial-gradient(80% 60% at 20% 80%, rgba(200,83,58,0.18), transparent 70%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.92  0 0 0 0 0.85  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
  max-width: 560px;
}
.hero-logo {
  width: clamp(96px, 22vw, 140px); height: auto;
  margin-bottom: 4px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--ochre);
  letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
}
.hero-kicker::before {
  content: ''; width: 28px; height: 1px; background: var(--ochre);
}
.hero-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 9vw, 68px); line-height: 0.98;
  color: var(--text-0); letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero-sub { font-size: 16px; color: var(--text-1); max-width: 420px; text-wrap: pretty; line-height: 1.45; }
.hero-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.hero-table {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 6px;
  background: rgba(244,234,216,0.06); border: 1px solid var(--border-strong);
  font-size: 13px; letter-spacing: 0.04em; color: var(--text-1);
}
.hero-table b { font-weight: 600; color: var(--ochre); font-variant-numeric: tabular-nums; }
.hero-cta { margin-top: 4px; align-self: flex-start; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; min-height: 50px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px; transition: all 0.2s ease; user-select: none;
}
.btn-primary {
  background: var(--terra);
  color: #fff;
}
.btn-primary:hover { background: var(--terra-hi); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 18px 32px; font-size: 16px; width: 100%; }
.btn-disabled { background: var(--bg-2); color: var(--text-mute); cursor: not-allowed; }

/* ===== Collections ===== */
.collections {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 78vw);
  gap: 12px; padding: 16px 18px 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 18px;
}
.collections::-webkit-scrollbar { display: none; }
.collection-card {
  scroll-snap-align: start;
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  background-size: cover; background-position: center;
  border: 1px solid var(--border);
}
.collection-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.collection-kicker { font-size: 13px; color: var(--ochre); }
.collection-title { font-size: 26px; color: var(--text-0); line-height: 1.05; }
.collection-count { font-size: 12px; color: var(--text-1); margin-top: 4px; }

/* ===== Category nav ===== */
.cat-nav {
  position: sticky; top: calc(54px + var(--safe-top)); z-index: 40;
  background: var(--bg-blur);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  margin: 16px 0 0;
}
.cat-nav-inner {
  display: flex; gap: 8px; padding: 10px 18px; overflow-x: auto;
  scroll-snap-type: x proximity;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 8px 16px; min-height: 36px;
  font-size: 14px; font-weight: 500;
  color: var(--text-1);
  background: var(--bg-glass); border: 1px solid var(--border);
  border-radius: 999px; transition: all 0.15s ease;
  display: inline-flex; align-items: center;
}
.cat-chip.active { color: #fff; background: var(--terra); border-color: var(--terra); }

/* ===== Menu / categories ===== */
.menu { padding: 16px 16px 80px; max-width: 1320px; margin: 0 auto; }
.cat-nav-inner { max-width: 1320px; margin: 0 auto; }
.collections { max-width: 1320px; margin: 0 auto; }
.pairs { max-width: 1320px; margin: 0 auto; }
.item-hero { max-width: 980px; margin: 0 auto; }
@media (min-width: 900px) {
  .item-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 32px 24px; align-items: start; }
  .item-hero-photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1/1; }
  .item-detail { margin-top: 0; border-radius: var(--r-xl); padding: 24px 28px; background: var(--bg-1); border: 1px solid var(--border); }
}
.cat-section { margin-top: 32px; scroll-margin-top: 120px; }
.cat-title { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 5vw, 38px); margin-bottom: 14px; padding: 0 4px; color: var(--text-0); letter-spacing: -0.015em; }
.cat-section { padding-top: 8px; }
.cat-title::after { content: ''; display: block; width: 36px; height: 2px; background: var(--terra); margin-top: 12px; opacity: 0.8; }
.cat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (min-width: 720px) { .cat-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.item-card {
  background: var(--bg-1);
  border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease;
  position: relative;
}
.item-card:active { transform: scale(0.985); }
.item-card.is-off { opacity: 0.55; }
.item-photo-link { display: block; }
.item-photo {
  position: relative; aspect-ratio: 1/1;
  background: var(--bg-2); overflow: hidden;
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-photo-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  color: var(--terra); font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 64px;
}
.item-photo-empty.big { font-size: 120px; }
.item-card.is-off .item-photo img { filter: grayscale(1) brightness(0.7); }

.item-badges {
  position: absolute; top: 8px; left: 8px; right: 8px;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.item-badges-big { top: 14px; left: 14px; right: 14px; gap: 6px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; height: 22px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px;
  backdrop-filter: blur(6px);
}
.badge-new { background: var(--neon-new); color: #2b2207; }
.badge-hit { background: var(--terra); color: #fff; }
.badge-age { background: rgba(0,0,0,0.65); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.badge-icon { background: rgba(0,0,0,0.55); padding: 4px 6px; backdrop-filter: blur(6px); }
.badge-icon i { font-size: 13px; color: var(--text-0); line-height: 1; display: inline-flex; }

.off-stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-6deg);
  padding: 6px 16px; background: rgba(0,0,0,0.7); color: var(--text-0);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px; border: 2px solid var(--terra);
}

.item-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-name { font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--text-0); letter-spacing: -0.005em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-name a { color: inherit; }
.item-desc {
  font-size: 12px; color: var(--text-1); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-weight { font-size: 11px; color: var(--text-mute); }
.item-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.item-price {
  font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--text-0);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.item-price .cur { font-size: 13px; color: var(--text-1); margin-left: 2px; font-weight: 500; }
.add-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-glass); color: var(--text-0);
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.add-btn:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.add-btn:active { transform: scale(0.92); }
.add-btn svg { width: 16px; height: 16px; }

/* ===== Item detail page ===== */
.page-item { padding-bottom: 200px; }
.item-hero { display: flex; flex-direction: column; }
.item-hero-photo {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: var(--bg-2); overflow: hidden;
}
.item-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-detail {
  padding: 24px 22px 32px;
  background: var(--bg-0);
  border-top-left-radius: var(--r-xl); border-top-right-radius: var(--r-xl);
  margin-top: -28px; position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.item-cat { font-size: 12px; color: var(--ochre); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.item-detail-name { font-size: clamp(28px, 7vw, 38px); line-height: 1.08; color: var(--text-0); }
.item-detail-desc { font-size: 15px; color: var(--text-1); line-height: 1.55; }
.item-detail-meta {
  display: flex; gap: 18px; padding: 12px 0; margin-top: 4px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.item-detail-meta div { display: flex; flex-direction: column; gap: 2px; }
.meta-k { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; }
.meta-v { font-size: 14px; color: var(--text-0); font-weight: 500; }

.modifiers { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.mod-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer;
}
.mod-row input { width: 18px; height: 18px; accent-color: var(--terra); }
.mod-name { flex: 1; font-size: 14px; }
.mod-delta { font-size: 13px; color: var(--ochre); font-weight: 600; }

.item-detail-foot {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
  position: sticky; bottom: calc(20px + var(--safe-bottom)); z-index: 5;
}
.qty {
  display: inline-flex; align-items: center; gap: 0;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px;
}
.qty-btn {
  width: 36px; height: 36px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-0); font-size: 18px; font-weight: 500;
}
.qty-btn:hover { background: var(--bg-2); }
.qty-val { min-width: 28px; text-align: center; font-weight: 600; }
.add-detail { flex: 1; }
.add-price { margin-left: auto; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.2); }

/* ===== Pairs ===== */
.pairs { padding: 24px 16px 8px; }
.pairs-title { font-size: 24px; padding: 0 6px 12px; color: var(--text-0); }
.pairs-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; gap: 12px; overflow-x: auto; padding: 0 6px 8px; }
.pairs-rail::-webkit-scrollbar { display: none; }
.pair-card { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.pair-photo { aspect-ratio: 1/1; background: var(--bg-2); }
.pair-photo img { width: 100%; height: 100%; object-fit: cover; }
.pair-name { padding: 8px 10px 2px; font-size: 12px; color: var(--text-0); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pair-price { padding: 0 10px 10px; font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--ochre); }

/* ===== Cart page ===== */
.page-cart { padding-bottom: 60px; }
.cart-page { padding: 18px 18px 80px; max-width: 600px; margin: 0 auto; }
.cart-table-tag {
  display: inline-flex; gap: 6px; padding: 6px 14px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; margin-bottom: 18px;
}
.cart-table-tag b { color: var(--ochre); }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md);
}
.cart-photo { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.cart-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 14px; font-weight: 500; color: var(--text-0); }
.cart-price { font-size: 13px; color: var(--ochre); margin-top: 2px; }
.cart-qty { display: inline-flex; gap: 0; align-items: center; background: var(--bg-2); border-radius: 999px; padding: 2px; }
.cart-qty .qty-btn { width: 30px; height: 30px; font-size: 16px; }
.cart-qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-1); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cart-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.cart-form textarea {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-0); padding: 14px 16px; font-size: 15px; resize: vertical;
}
.cart-form textarea:focus { outline: none; border-color: var(--terra); }
.cart-summary { padding: 14px 16px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md); }
.cart-sum-line { display: flex; justify-content: space-between; align-items: baseline; }
.cart-sum-line b { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 24px; color: var(--text-0); }

/* ===== Floating cart fab ===== */
.cart-fab {
  position: fixed; left: 16px; right: 90px; bottom: calc(20px + var(--safe-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px; height: 56px;
  background: var(--terra);
  color: #fff; border-radius: 8px;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.15s ease;
}
.cart-fab:hover { background: var(--terra-hi); }
.cart-fab.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cart-count {
  min-width: 26px; height: 26px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.cart-label { font-size: 14px; font-weight: 600; flex: 1; }
.cart-total { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

/* ===== Waiter fab ===== */
.waiter-fab {
  position: fixed; right: 16px; bottom: calc(20px + var(--safe-bottom)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-1); color: var(--ochre);
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.5);
  transition: all 0.18s ease;
}
.waiter-fab:hover { background: var(--ochre); color: #1a1410; border-color: var(--ochre); }
.waiter-fab:active { transform: scale(0.92); }
.waiter-fab svg { width: 24px; height: 24px; }
.waiter-fab i { font-size: 26px; line-height: 1; }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadein 0.18s ease;
}
.modal-sheet {
  position: relative; width: 100%; max-width: 540px;
  padding: 14px 22px calc(28px + var(--safe-bottom));
  background: var(--bg-1);
  border-top-left-radius: var(--r-xl); border-top-right-radius: var(--r-xl);
  border-top: 1px solid var(--border-strong);
  display: flex; flex-direction: column; gap: 16px;
  animation: slideup 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-handle { width: 40px; height: 4px; background: var(--text-mute); border-radius: 2px; margin: 0 auto 4px; }
.modal-title { font-size: 24px; text-align: center; }
.modal-text { text-align: center; color: var(--text-1); }
.success-mark {
  width: 64px; height: 64px; margin: 8px auto 0;
  background: var(--terra); color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(200,83,58,0.45);
}
.success-mark i { font-size: 36px; }
@keyframes fadein { from {opacity:0;} to {opacity:1;} }
@keyframes slideup { from {transform: translateY(100%);} to {transform: translateY(0);} }

.reason-list { display: flex; flex-direction: column; gap: 8px; }
.reason-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; min-height: 56px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  color: var(--text-0); font-size: 15px; font-weight: 500; text-align: left;
  transition: all 0.15s ease;
}
.reason-btn:hover { background: var(--bg-3); border-color: var(--terra); }
.reason-btn span:first-child { font-size: 22px; }
.reason-btn i { font-size: 22px; color: var(--accent-ochre); flex-shrink: 0; width: 28px; display: inline-flex; justify-content: center; }

/* ===== Search overlay ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg-0); display: flex; flex-direction: column;
  animation: fadein 0.15s ease;
}
.search-bar {
  display: flex; gap: 8px; padding: calc(12px + var(--safe-top)) 16px 12px;
  border-bottom: 1px solid var(--border);
}
.search-bar input {
  flex: 1; padding: 12px 16px; background: var(--bg-1);
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text-0); font-size: 16px;
}
.search-bar input:focus { outline: none; border-color: var(--terra); }
.search-results { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.search-result {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md);
}
.search-result-photo { width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.search-result-photo img { width: 100%; height: 100%; object-fit: cover; }
.search-result-name { font-size: 14px; color: var(--text-0); }
.search-result-price { font-family: var(--sans); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 16px; color: var(--ochre); }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); z-index: 200;
  transform: translateX(-50%);
  padding: 12px 22px; background: var(--text-0); color: var(--bg-0);
  border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastpop 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes toastpop {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== Footer ===== */
.footer {
  padding: 70px 20px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-logo { height: 44px; width: auto; opacity: 0.85; margin-bottom: 4px; }
.footer-sub { font-size: 14px; color: var(--text-1); }
.footer-socials { display: flex; gap: 10px; margin-top: 10px; }
.social-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass); border: 1px solid var(--border);
  color: var(--text-0); transition: all 0.18s ease;
}
.social-btn i { font-size: 20px; line-height: 1; }
.social-btn:hover { background: var(--terra); color: #fff; border-color: var(--terra); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(200,83,58,0.35); }
.footer-tiny { font-size: 11px; color: var(--text-mute); margin-top: 18px; letter-spacing: 0.05em; }

/* ===== Empty state ===== */
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-1); }
.empty-state a { color: var(--ochre); text-decoration: underline; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
