:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --bg2: #f4f2ee;
  --card: #ffffff;
  --text: #17151c;
  --hint: #86828f;
  --line: rgba(23, 21, 28, .08);
  --accent: #ffb800;
  --accent2: #ff7a00;
  --on-accent: #1b1300;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(40, 24, 0, .08), 0 1px 3px rgba(40, 24, 0, .06);
  --shadow-lg: 0 14px 34px rgba(40, 24, 0, .14);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Manrope", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg2: #121116; --card: #1d1b23; --text: #f4f2f7; --hint: #9a96a3;
    --line: rgba(255, 255, 255, .08);
    --shadow: 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg2: #121116; --card: #1d1b23; --text: #f4f2f7; --hint: #9a96a3;
  --line: rgba(255, 255, 255, .08);
  --shadow: 0 8px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 14px 34px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg2); color: var(--text);
  font: 500 15px/1.45 var(--font);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.has-bar { padding-bottom: 92px; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button, .item { transition: transform .15s ease; }
button:active, .item:active { transform: scale(.97); }
.wrap { max-width: 680px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120px 120px at 92% 8%, rgba(255,255,255,.45), transparent 70%),
    radial-gradient(220px 160px at 110% 90%, rgba(255,90,0,.55), transparent 70%),
    linear-gradient(135deg, #ffd000 0%, #ffb800 45%, #ff8a00 100%);
  color: var(--on-accent);
  padding: 18px 16px 22px;
  border-radius: 0 0 32px 32px;
}
.hero .wrap { position: relative; }
.hero-deco {
  position: absolute; right: -6px; top: 58px; font-size: 76px; transform: rotate(-12deg);
  filter: drop-shadow(0 10px 16px rgba(120, 50, 0, .3)); pointer-events: none;
}
.hero-courier {
  position: absolute; right: -14px; top: 40px; width: 150px; height: auto; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(120, 50, 0, .28));
}
.hero-top { display: flex; align-items: center; gap: 10px; position: relative; }
.logo {
  width: 44px; height: 44px; border-radius: 14px; background: #1b1300;
  display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff; }
.ic { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: #fff; vertical-align: -5px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.brand { font: 800 18px/1.1 var(--display); }
.brand-sub { font-size: 13px; font-weight: 700; opacity: .7; }
.hero h1 {
  font: 700 24px/1.18 var(--display); margin: 20px 0 14px; max-width: 72%; position: relative; letter-spacing: -.02em;
}
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.pill {
  background: rgba(255,255,255,.62); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800;
}
.status { display: inline-flex; align-items: center; gap: 7px; background: #fff; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: pulse 2s infinite; }
.status.closed i { background: #9ca3af; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.pill.promo { background: #1b1300; color: #ffd000; }
.search { margin-top: 16px; position: relative; }
.search input {
  width: 100%; border: 0; outline: 0; background: #fff; color: #17151c;
  border-radius: 16px; padding: 15px 14px 15px 44px; font: 600 15px var(--font);
  box-shadow: 0 8px 20px rgba(120, 50, 0, .18);
}
.search input::placeholder { color: #9a96a3; }
.search::before { content: "🔍"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: .55; z-index: 1; }

/* ---------- Бета ---------- */
.beta {
  margin: 14px 16px 0; padding: 11px 14px; border-radius: 16px; display: flex; gap: 10px; align-items: flex-start;
  background: color-mix(in srgb, #8b5cf6 12%, var(--card)); border: 1.5px dashed color-mix(in srgb, #8b5cf6 45%, transparent);
  font-size: 13px; font-weight: 600; line-height: 1.4;
}
.beta b { flex: none; background: #8b5cf6; color: #fff; border-radius: 8px; padding: 2px 8px; font-size: 12px; }

/* ---------- Кур'єри онлайн ---------- */
.couriers { margin: 4px 16px 0; }
.couriers .row-head { margin: 16px 0 8px; }
.couriers .upd { color: var(--hint); font-size: 12px; font-weight: 700; }
.cour { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); margin-bottom: 8px; }
.cour .cv { width: 40px; height: 40px; border-radius: 12px; background: var(--bg2); display: grid; place-items: center; font-size: 22px; flex: none; }
.cour .cv img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cour b { display: block; font-size: 15px; }
.cour small { color: var(--hint); font-weight: 600; font-size: 13px; }
.cour .dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
.cour.none { color: var(--hint); font-size: 13.5px; font-weight: 600; }

/* ---------- Довіра ---------- */
.trust { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 0; scrollbar-width: none; }
.trust::-webkit-scrollbar { display: none; }
.trust span { flex: none; background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow); }

/* ---------- Категорії ---------- */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 18px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 68px; font-size: 12px; font-weight: 800; }
.chip .ic {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 28px;
  background: color-mix(in srgb, var(--cc, #ffb800) 16%, var(--card));
  border: 2px solid transparent; box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.chip .ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.chip .ic:has(img) { background: #fff; overflow: hidden; }
.chip.on .ic { border-color: var(--cc, #ffb800); background: color-mix(in srgb, var(--cc, #ffb800) 28%, var(--card)); transform: translateY(-2px); }
.chip.on { color: var(--cc, var(--text)); }

/* ---------- Банер ---------- */
.banner {
  margin: 14px 16px 4px; border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden;
  color: #fff; text-align: left; width: calc(100% - 32px); display: block;
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(255,255,255,.28), transparent 70%),
    linear-gradient(120deg, #6d28d9, #db2777 70%, #f97316);
  box-shadow: 0 12px 28px rgba(109, 40, 217, .3);
}
.banner b { font: 700 16px/1.3 var(--display); display: block; max-width: 72%; }
.banner span { display: block; font-size: 13px; opacity: .92; margin-top: 6px; max-width: 70%; font-weight: 600; }
.banner .go { display: inline-block; margin-top: 12px; background: #fff; color: #6d28d9; font-weight: 800; font-size: 13px; padding: 8px 14px; border-radius: 999px; max-width: none; opacity: 1; }
.banner.photo {
  background: linear-gradient(90deg, rgba(20, 10, 40, .88) 0%, rgba(20, 10, 40, .6) 55%, rgba(20, 10, 40, .05) 100%), var(--bg) center / cover no-repeat;
  box-shadow: 0 12px 28px rgba(40, 20, 0, .25);
}
.banner.photo .big { display: none; }
.banner.photo .go { color: #1b1300; background: linear-gradient(135deg, #ffc400, #ff9500); }
.banner.sub { background: radial-gradient(160px 120px at 100% 0%, rgba(255,255,255,.25), transparent 70%), linear-gradient(120deg, #0f172a, #1e3a8a 60%, #0ea5e9); box-shadow: 0 12px 28px rgba(30, 58, 138, .3); }
.banner.sub .go { color: #1e3a8a; }
.banner .big { position: absolute; right: 6px; bottom: -4px; font-size: 76px; transform: rotate(10deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
.banner img.big { width: 84px; height: 84px; right: 14px; bottom: 14px; border-radius: 22px; object-fit: cover; }

/* ---------- Секції на головній ---------- */
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 16px 10px; }
.h2 { font: 700 17px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.h2-ic { width: 28px; height: 28px; border-radius: 9px; object-fit: cover; vertical-align: -7px; margin-right: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.row-all { font-size: 13px; font-weight: 800; color: var(--accent2); }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 12px; scroll-snap-type: x mandatory; scroll-padding: 16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .venue { flex: none; width: 248px; scroll-snap-align: start; }
.rail .venue:only-child { width: 100%; }
.venues { display: grid; gap: 14px; padding: 4px 16px 18px; }
@media (min-width: 560px) { .venues { grid-template-columns: 1fr 1fr; } }

/* ---------- Картка закладу ---------- */
.venue { text-align: left; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.cover { height: 118px; position: relative; display: grid; place-items: center; background-size: cover; background-position: center; overflow: hidden; }
/* Лого-монограма магазину: біла "іконка застосунку" на кольоровому фоні */
.mono {
  position: relative; z-index: 1; min-width: 70px; height: 70px; padding: 0 14px; border-radius: 22px;
  background: #fff; display: grid; place-items: center;
  font: 800 30px/1 var(--display); letter-spacing: -.03em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
.cover .mono { margin-top: 26px; }
/* Фото замість кольору: легке затемнення, щоб бейдж і кнопка "назад" читались */
.cover.has-photo::before, .v-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,0) 40%);
}
.v-hero .mono { min-width: 96px; height: 96px; border-radius: 30px; font-size: 40px; }
.venue { animation: rise .45s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.emo { font-size: 58px; line-height: 1; transform: rotate(-8deg); filter: drop-shadow(0 8px 12px rgba(0,0,0,.28)); position: relative; z-index: 1; }
.cover .emo { margin-top: 30px; font-size: 54px; }
.cover .badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; background: rgba(255,255,255,.94); color: #17151c;
  font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.venue-body { padding: 12px 14px 14px; }
.venue-name { font: 800 17px/1.25 var(--font); letter-spacing: -.01em; }
.venue-tags { color: var(--hint); font-size: 13px; font-weight: 600; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venue-meta { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.meta { background: var(--bg2); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 800; }

/* ---------- Як це працює ---------- */
.how { margin: 26px 16px 0; }
.how .h2 { margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step { background: var(--card); border-radius: 18px; padding: 14px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.step .n {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(135deg, #ffc400, #ff9500); color: var(--on-accent); font: 800 14px var(--display);
}
.step b { font-size: 14px; font-weight: 800; }
.step small { color: var(--hint); font-size: 12px; font-weight: 600; line-height: 1.35; }
.foot small { display: block; margin-top: 6px; font-weight: 600; font-size: 11px; line-height: 1.4; opacity: .8; }
.support-btn { display: block; width: calc(100% - 32px); margin: 22px 16px 0; padding: 15px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 15px; }
.foot { text-align: center; color: var(--hint); font-size: 12.5px; font-weight: 700; padding: 22px 16px 26px; }
.note.warn { color: #b45309; margin-bottom: 8px; }

.empty { text-align: center; color: var(--hint); padding: 44px 16px; font-weight: 600; }

/* Кольори категорій (якщо в закладу немає свого "color") */
.g-pizza    { background: linear-gradient(135deg, #f97316, #facc15); }
.g-burger   { background: linear-gradient(135deg, #b45309, #fbbf24); }
.g-sushi    { background: linear-gradient(135deg, #ec4899, #fda4af); }
.g-cafe     { background: linear-gradient(135deg, #78350f, #f59e0b); }
.g-pharmacy { background: linear-gradient(135deg, #059669, #34d399); }
.g-shop     { background: linear-gradient(135deg, #2563eb, #38bdf8); }
.g-parcel   { background: linear-gradient(135deg, #e11d48, #fb7185); }
.g-default  { background: linear-gradient(135deg, #7c3aed, #c084fc); }

/* ---------- Сторінка закладу ---------- */
.v-hero { height: 200px; position: relative; display: grid; place-items: center; background-size: cover; background-position: center; overflow: hidden; }
.v-hero .emo { font-size: 92px; }
.back {
  position: absolute; left: 12px; top: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 14px;
  background: rgba(255,255,255,.94); color: #17151c; font-size: 20px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.v-card { background: var(--card); margin: -28px 12px 0; position: relative; z-index: 2; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-lg); }
.v-title { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }

.sections { display: flex; gap: 8px; overflow-x: auto; padding: 14px 12px 6px; scrollbar-width: none; position: sticky; top: 0; background: var(--bg2); z-index: 4; }
.sections::-webkit-scrollbar { display: none; }
.sec-btn { flex: none; padding: 8px 15px; border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 800; box-shadow: var(--shadow); }
.sec-btn.on { background: var(--text); color: var(--card); }

.section-title { font: 700 16px var(--display); margin: 20px 16px 10px; scroll-margin-top: 60px; }
.items { background: var(--card); margin: 0 12px; border-radius: var(--radius); box-shadow: var(--shadow); }
.item { display: flex; gap: 12px; padding: 14px 16px 14px 14px; width: 100%; text-align: left; align-items: center; cursor: pointer; }
.item + .item { border-top: 1px solid var(--line); }
.item-text { flex: 1; min-width: 0; }
.item-name { font-weight: 800; font-size: 15.5px; }
.item-desc { color: var(--hint); font-size: 13px; font-weight: 600; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-weight: 800; margin-top: 8px; font-size: 16px; }
.item-price small { color: var(--hint); font-weight: 600; margin-left: 6px; font-size: 13px; }
.thumb {
  width: 96px; height: 96px; flex: none; border-radius: 18px; position: relative;
  display: grid; place-items: center; background-size: cover; background-position: center;
}
.thumb .emo { font-size: 44px; }
.add, .qty-badge {
  position: absolute; right: -6px; bottom: -6px; z-index: 2; height: 34px; min-width: 34px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.22);
}
.add { background: linear-gradient(135deg, #ffc400, #ff9500); color: var(--on-accent); font-size: 22px; line-height: 1; }
.qty-badge { background: var(--text); color: var(--card); font-size: 15px; padding: 0 10px; }

/* ---------- Плитки товарів (магазин) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 12px; }
@media (min-width: 520px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.ptile { background: var(--card); border-radius: 20px; padding: 8px 8px 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform .15s; }
.ptile:active { transform: scale(.97); }
.pimg { position: relative; aspect-ratio: 1; border-radius: 15px; display: grid; place-items: center; background: var(--bg2) center / cover no-repeat; }
.pimg .emo { font-size: 52px; transform: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.pimg .add, .pimg .qty-badge { right: 6px; bottom: 6px; }
.pprice { font-weight: 800; font-size: 16px; margin: 10px 4px 2px; }
.pname { font-weight: 700; font-size: 13.5px; line-height: 1.3; margin: 0 4px; }
.pweight { color: var(--hint); font-size: 12px; font-weight: 600; margin: 2px 4px 0; }

/* ---------- Замовлення текстом ---------- */
.text-order { background: var(--card); margin: 16px 12px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.text-order p { margin: 0 0 12px; color: var(--hint); font-size: 14px; font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.quick button.has-img { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; }
.quick button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.quick button { background: var(--bg2); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 700; }
textarea {
  width: 100%; min-height: 130px; resize: vertical; border: 2px solid var(--line); outline: 0;
  border-radius: 16px; padding: 13px; font: 600 15px/1.45 var(--font); background: var(--bg2); color: var(--text);
}
textarea:focus { border-color: var(--accent); }

/* ---------- Stepper ---------- */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg2); border-radius: 14px; padding: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 11px; background: var(--card); font-size: 20px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stepper span { min-width: 28px; text-align: center; font-weight: 800; font-size: 16px; }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 8, 14, .5); z-index: 20; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; max-height: 92vh; overflow-y: auto;
  background: var(--card); border-radius: 28px 28px 0 0; animation: up .28s cubic-bezier(.2, .9, .3, 1);
  max-width: 680px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom);
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-img { height: 250px; position: relative; display: grid; place-items: center; background-size: cover; background-position: center; overflow: hidden; }
.sheet-img .emo { font-size: 110px; }
.sheet-body { padding: 20px 16px 22px; }
.sheet-name { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.sheet-desc { color: var(--hint); margin-top: 8px; font-weight: 600; }
.sheet-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 13px; background: rgba(255,255,255,.94); color: #17151c; font-size: 16px; font-weight: 800; }
.btn-primary {
  flex: 1; background: linear-gradient(135deg, #ffc400, #ff9500); color: var(--on-accent); font-weight: 800; border-radius: 16px;
  padding: 16px; font-size: 16px; box-shadow: 0 8px 18px rgba(255, 150, 0, .35);
}

/* ---------- Кошик ---------- */
.cart-head { display: flex; align-items: center; gap: 12px; padding: 16px; }
.cart-head .back { position: static; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.cart-title { font: 800 22px var(--display); }
.cart-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.cart-row + .cart-row { border-top: 1px solid var(--line); }
.cart-row .thumb { width: 58px; height: 58px; border-radius: 14px; }
.cart-row .thumb .emo { font-size: 28px; }
.cart-row .item-text { font-size: 14px; }
.totals { background: var(--card); margin: 14px 12px; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-weight: 600; }
.totals .sum { font: 800 18px var(--display); border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; }
.approx-note { margin-top: 12px; padding: 10px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--hint); background: var(--bg2); }
.cart-note { margin-top: 12px; }
.cart-note textarea { min-height: 80px; }
.note { color: var(--hint); font-size: 13px; font-weight: 600; padding: 0 16px; }

/* ---------- Нижня кнопка (поза Telegram) ---------- */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg2) 65%, transparent); }
.bottom-btn {
  display: block; width: 100%; max-width: 648px; margin: 0 auto; background: linear-gradient(135deg, #ffc400, #ff9500); color: var(--on-accent);
  font-weight: 800; font-size: 16px; padding: 17px; border-radius: 18px; box-shadow: 0 10px 24px rgba(255, 150, 0, .4);
}
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 30;
  background: rgba(23, 21, 28, .94); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 700;
  max-width: calc(100% - 32px); text-align: center; animation: fade .2s;
}

/* Товар закінчився (партнер позначив у боті) */
.item.off, .ptile.off { opacity: .45; filter: grayscale(.8); }
.na { position: absolute; right: 6px; bottom: 6px; background: #1b1300; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 16px 0; }
.perk { display: flex; align-items: center; gap: 8px; text-align: left; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; min-width: 0; }
.perk small { display: block; font-size: 11.5px; font-weight: 600; opacity: .7; margin-top: 2px; }
.perk .ic, .perk .tag { width: 30px; height: 30px; flex: none; margin: 0; }
.perk .tag { display: grid; place-items: center; font-size: 20px; }
.invite-btn { background: linear-gradient(135deg, #ffc400, #ff9500); color: #1b1300; }
