:root {
  --bg: #0B1120;
  --bg-grad: linear-gradient(135deg, #0B1120 0%, #0F172A 50%, #1E293B 100%);
  --card: rgba(30, 41, 59, 0.75);
  --card-solid: #1E293B;
  --sheet-bg: linear-gradient(to bottom, #1E293B, #0F172A);
  --img-grad: linear-gradient(135deg, #1E293B, #334155);
  --img-grad-2: linear-gradient(135deg, #334155, #1E293B);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --handle: rgba(255, 255, 255, 0.2);
  --cyan: #06B6D4;
  --cyan-glow: rgba(6, 182, 212, 0.3);
  --orange: #F97316;
  --orange-glow: rgba(249, 115, 22, 0.3);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --success: #22C55E;
  --danger: #EF4444;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
}

[data-theme="light"] {
  --bg: #F1F5F9;
  --bg-grad: linear-gradient(135deg, #F8FAFC 0%, #EFF3F8 50%, #E2E8F0 100%);
  --card: rgba(255, 255, 255, 0.85);
  --card-solid: #FFFFFF;
  --sheet-bg: linear-gradient(to bottom, #FFFFFF, #F1F5F9);
  --img-grad: linear-gradient(135deg, #E8EEF5, #D3DCE6);
  --img-grad-2: linear-gradient(135deg, #D3DCE6, #E8EEF5);
  --surface: rgba(15, 23, 42, 0.05);
  --surface-strong: rgba(15, 23, 42, 0.1);
  --border-soft: rgba(15, 23, 42, 0.1);
  --border: rgba(15, 23, 42, 0.16);
  --handle: rgba(15, 23, 42, 0.2);
  --cyan: #0891B2;
  --cyan-glow: rgba(8, 145, 178, 0.22);
  --orange-glow: rgba(249, 115, 22, 0.25);
  --text: #0F172A;
  --muted: #5B6B80;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg-grad);
  color: var(--text);
  overflow-x: hidden;
}

.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-12 { margin-top: 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }

h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }

/* Екрани */
.screen {
  display: none;
  /* Мінус спільний хедер: інакше кожен екран був би на висоту екрана
     ПЛЮС хедер, і з'являлася б зайва прокрутка. */
  min-height: calc(100vh - var(--brand-h, 56px));
  padding: 16px 16px 40px;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.center-col {
  min-height: 90vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 340px; margin: 0 auto;
}
.big-emoji { font-size: 52px; margin-bottom: 14px; }
.big-emoji.sm { font-size: 40px; margin-bottom: 8px; }

/* Splash */
.splash {
  min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.splash-logo {
  width: 110px; height: 110px; border-radius: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; margin-bottom: 28px;
  box-shadow: 0 20px 60px var(--cyan-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.splash-title {
  font-size: 32px; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.splash-subtitle { font-size: 15px; color: var(--muted); margin-bottom: 36px; }
.splash-loader {
  width: 38px; height: 38px;
  border: 3px solid var(--border); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.splash-error { color: var(--danger); font-size: 15px; max-width: 280px; line-height: 1.5; }

/* Кнопки */
.btn {
  width: 100%; padding: 17px 24px; border: none; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--cyan), #0891B2);
  color: #fff; font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; box-shadow: 0 0 20px var(--cyan-glow);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); opacity: 0.9; }
.btn-orange { background: linear-gradient(135deg, var(--orange), #EA580C); box-shadow: 0 0 20px var(--orange-glow); }
/* Градієнтні кнопки — як іконка застосунку (cyan→orange), у дзеркальному
   відображенні одна відносно одної. */
.btn-grad { background: linear-gradient(135deg, var(--cyan), var(--orange)); box-shadow: 0 0 20px var(--cyan-glow); }
.btn-grad-mirror { background: linear-gradient(135deg, var(--orange), var(--cyan)); box-shadow: 0 0 20px var(--orange-glow); }
.btn-secondary {
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: none; color: var(--text); font-weight: 500; font-size: 15px; padding: 15px 24px;
}
.btn-cancel-order { border-color: rgba(239,68,68,0.4); color: #FCA5A5; }

/* Хедер */
.header {
  /* Липне під спільним хедером, а не поверх нього */
  position: sticky; top: var(--brand-h, 56px); z-index: 40;
  padding: 10px 0 12px;
  background: linear-gradient(to bottom, var(--bg) 65%, transparent);
}
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.header-title { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }
.header-title.sm { font-size: 21px; }
.row-header { display: flex; align-items: center; gap: 12px; }
.header-badge {
  background: rgba(6,182,212,0.15); color: var(--cyan);
  padding: 6px 14px; border-radius: 100px; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(6,182,212,0.25);
}
.back-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--text); font-size: 18px; cursor: pointer;
}

/* Категорії */
.categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.categories::-webkit-scrollbar { display: none; }
.category-chip {
  flex-shrink: 0; padding: 9px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer;
  white-space: nowrap; font-family: inherit;
}
.category-chip.active {
  background: linear-gradient(135deg, var(--cyan), #0891B2);
  color: #fff; border-color: transparent; box-shadow: 0 0 16px var(--cyan-glow);
}

/* Меню */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.menu-item {
  background: var(--card-solid); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border-soft); cursor: pointer;
  transition: transform 0.15s ease;
}
.menu-item:active { transform: scale(0.96); }
.menu-item.unavailable { opacity: 0.45; pointer-events: none; }
.menu-item-img {
  width: 100%; height: 120px;
  background: var(--img-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative;
  background-size: cover; background-position: center;
}
.menu-item-add {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #0891B2);
  border: none; color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 0 14px var(--cyan-glow);
}
.menu-item-body { padding: 12px 14px 14px; }
.menu-item-name { font-size: 14px; font-weight: 600; margin-bottom: 5px; line-height: 1.3; }
.menu-item-price { font-size: 16px; font-weight: 700; color: var(--cyan); }
.unavail-label { font-size: 11px; color: var(--danger); font-weight: 600; }
.menu-item-rating { font-size: 12px; margin-top: 5px; color: #EAB308; font-weight: 600; }

/* Оцінка замовлення (зірки) */
.review-item-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border-soft);
}
.review-item-name { font-size: 14px; font-weight: 600; flex: 1; }
.stars-row { display: flex; gap: 6px; }
.star {
  font-size: 26px; cursor: pointer; color: var(--muted);
  transition: transform 0.1s ease; user-select: none;
}
.star.filled { color: #EAB308; }
.star:active { transform: scale(1.2); }
.review-venue { margin-top: 16px; }
.review-done { text-align: center; color: var(--success); font-weight: 600; padding: 8px 0; }

/* Лічильник */
.counter { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 28px 0; }
.counter.sm { margin: 20px 0; }
.counter-btn {
  width: 54px; height: 54px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 24px; cursor: pointer;
}
.counter-btn.sm { width: 44px; height: 44px; font-size: 20px; }
.counter-btn:active { background: var(--surface-strong); }
.counter-value {
  font-size: 52px; font-weight: 800; color: var(--cyan);
  min-width: 76px; text-align: center; text-shadow: 0 0 30px var(--cyan-glow);
}
.dish-qty { font-size: 26px; font-weight: 700; min-width: 40px; text-align: center; }

/* Кошик */
.cart-item {
  display: flex; align-items: center; gap: 13px; padding: 14px;
  background: var(--card-solid); border-radius: var(--r-md); margin-bottom: 10px;
  border: 1px solid var(--border-soft);
}
.cart-item-img {
  width: 56px; height: 56px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--img-grad-2);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background-size: cover; background-position: center;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.cart-item-price { font-size: 14px; color: var(--cyan); font-weight: 600; }
.cart-controls { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 15px; cursor: pointer;
}
.cart-qty { font-weight: 700; min-width: 18px; text-align: center; }
.total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-top: 1px solid var(--border-soft); margin-top: 8px;
}
.total-label { font-size: 15px; color: var(--muted); }
.total-value { font-size: 24px; font-weight: 800; color: var(--cyan); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Оплата */
.glass-card {
  background: var(--card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft); border-radius: var(--r-lg);
}
.total-card { padding: 20px; margin-bottom: 22px; }
.checkout-total { font-size: 34px; font-weight: 800; color: var(--cyan); margin-top: 6px; }
.section-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.payment-method {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--card-solid); border-radius: var(--r-md); margin-bottom: 10px;
  border: 1px solid var(--border-soft); cursor: pointer;
}
.payment-method.selected { border-color: var(--cyan); background: rgba(6,182,212,0.08); }
.payment-method.disabled { opacity: 0.45; cursor: not-allowed; }
.pm-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pm-info { flex: 1; }
.pm-name { font-size: 15px; font-weight: 600; }
.pm-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pm-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--handle);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.payment-method.selected .pm-check { background: var(--cyan); border-color: var(--cyan); }

/* Трекер статусу */
.tracker { position: relative; }
.tracker-line {
  position: absolute; left: 19px; top: 22px; bottom: 22px; width: 2px;
  background: var(--border-soft);
}
.tracker-step { display: flex; align-items: flex-start; gap: 15px; padding: 13px 0; position: relative; }
.tracker-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--card-solid); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  position: relative; z-index: 2;
}
.tracker-step.active .tracker-dot {
  background: linear-gradient(135deg, var(--cyan), var(--orange));
  border-color: transparent; box-shadow: 0 0 18px var(--cyan-glow);
}
.tracker-step.done .tracker-dot { background: var(--success); border-color: transparent; }
.tracker-title { font-size: 15px; font-weight: 600; padding-top: 3px; }
.tracker-time { font-size: 13px; color: var(--muted); }
.tracker-cancelled { color: var(--danger); font-weight: 600; padding: 10px 0; }

/* Історія */
.history-card {
  background: var(--card-solid); border-radius: var(--r-md);
  padding: 13px 16px; margin-bottom: 8px;
  border: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 8px;
}
.history-status { font-size: 12px; font-weight: 700; white-space: nowrap; }
.btn-review-sm {
  background: rgba(234,179,8,0.15); border: 1px solid rgba(234,179,8,0.4);
  color: #EAB308; border-radius: 100px; width: 34px; height: 34px;
  font-size: 15px; cursor: pointer; flex-shrink: 0;
}

/* Плашка активного замовлення під шапкою меню */
.active-order-bar {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 0 0 14px; padding: 12px 16px;
  border: 1px solid rgba(6,182,212,0.35); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(249,115,22,0.12)), var(--card-solid);
  color: var(--text); font-family: inherit; font-size: 14px; text-align: left;
  cursor: pointer; box-shadow: 0 0 18px var(--cyan-glow);
  animation: fadeIn 0.3s ease;
}
.active-order-bar:active { transform: scale(0.99); }
.aob-emoji { font-size: 20px; }
.aob-text { flex: 1; }
.aob-text #aob-status { color: var(--cyan); font-weight: 600; }
.aob-arrow { font-size: 18px; color: var(--cyan); }

/* Плашка встановлення застосунку (на екрані меню) */
.install-bar {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 0 0 14px; padding: 11px 12px 11px 15px;
  border: 1px solid rgba(249,115,22,0.35); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(249,115,22,0.14), rgba(6,182,212,0.1)), var(--card-solid);
  animation: fadeIn 0.3s ease;
}
.install-bar-emoji { font-size: 20px; }
.install-bar-text { flex: 1; font-size: 13px; line-height: 1.35; color: var(--text); text-align: left; }
.install-bar-cta {
  flex-shrink: 0; border: none; border-radius: 100px; cursor: pointer;
  background: linear-gradient(135deg, var(--orange), #EA580C); color: #fff;
  font-family: inherit; font-weight: 700; font-size: 13px; padding: 8px 15px;
}
.install-bar-close {
  flex-shrink: 0; background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; padding: 4px;
}

/* Плашка вхідного квитка — в один ряд з FAB-кнопками */
.ticket-bar {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  height: 58px;
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(6,182,212,0.18), rgba(249,115,22,0.18)), var(--card-solid);
  border: 1px solid rgba(6,182,212,0.35);
  border-radius: 100px;
  padding: 0 12px;
  box-shadow: 0 0 20px var(--cyan-glow), 0 8px 24px rgba(0,0,0,0.35);
  white-space: nowrap;
  max-width: calc(100vw - 176px);
}
.ticket-bar-label { font-size: 20px; }
.ticket-bar .cart-btn { width: 28px; height: 28px; flex-shrink: 0; }
.ticket-qty { font-weight: 800; min-width: 16px; text-align: center; font-size: 15px; }
.ticket-sum { font-size: 12px; font-weight: 700; color: var(--cyan); }

/* FAB */
.fab {
  position: fixed; bottom: 26px; right: 18px;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #EA580C);
  border: none; color: #fff; font-size: 23px; cursor: pointer;
  box-shadow: 0 0 20px var(--orange-glow), 0 8px 24px rgba(0,0,0,0.4);
  z-index: 60;
}
.fab:active { transform: scale(0.92); }
.fab-left {
  left: 18px; right: auto;
  background: linear-gradient(135deg, var(--cyan), #0891B2);
  box-shadow: 0 0 20px var(--cyan-glow), 0 8px 24px rgba(0,0,0,0.4);
}
.fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; border-radius: 100px; padding: 0 5px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}

/* Sticky bottom */
.sticky-bottom {
  position: sticky; bottom: 0; padding: 14px 0 20px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}

/* Bottom sheets */
.sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px); z-index: 80;
}
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 81;
  background: var(--sheet-bg);
  border-radius: 28px 28px 0 0;
  padding: 16px 22px 34px;
  max-width: 480px; margin: 0 auto;
  transform: translateY(105%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 88vh; overflow-y: auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; background: var(--handle);
  border-radius: 100px; margin: 0 auto 20px;
}
.dish-img {
  font-size: 72px; margin-bottom: 6px;
  width: 120px; height: 120px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px; background-size: cover; background-position: center;
}

/* Виклик */
.call-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.reason-chip {
  padding: 10px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; cursor: pointer; font-family: inherit;
}
.reason-chip.selected { border-color: var(--orange); background: rgba(249,115,22,0.12); }
.note-input {
  width: 100%; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text);
  font-family: inherit; font-size: 15px; resize: none; outline: none;
}
.note-input:focus { border-color: var(--cyan); }
.call-active-status { font-size: 17px; font-weight: 600; padding: 14px 0; }

/* Вітальний екран */
.welcome-actions { display: flex; flex-direction: column; gap: 12px; }
/* Логотип замість емодзі на вітальному екрані */
.welcome-logo {
  /* align-self обов'язковий: .center-col — флекс-колонка, і без нього
     картинка розтягується на всю ширину колонки та спотворюється. */
  align-self: center;
  width: auto; height: 104px; max-width: 100%;
  object-fit: contain;
  margin: 0 0 18px;
}
.theme-toggle { font-size: 17px; }
/* Світла тема: кнопки «Всі можливості» (домів) і перемикач теми — акцентні.
   Іконка фарбується currentColor, тож помаранчевим стає і вона, і рамка. */
#welcome-back { margin-bottom: 18px; }

/* Нижнє поле 40px у .screen тримає місце під плавучі кнопки кошика й
   виклику офіціанта. На вітальному екрані їх немає, тож обнуляємо —
   контакти у футері йдуть одразу за кнопками. */
#screen-noqr { padding-bottom: 0; }

[data-theme="light"] #menu-home,
[data-theme="light"] #status-home,
[data-theme="light"] .theme-toggle {
  color: var(--orange);
  border-color: var(--orange);
}
/* Кнопка встановлення застосунку — завжди блакитна з обведенням і свіченням
   (іконка фарбується currentColor, тож теж стає блакитною). */
.btn-install { background: rgba(6,182,212,0.06); border: 1px solid var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); color: var(--cyan); font-weight: 600; }

/* Підказка встановлення (iOS) */
.install-hint {
  position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 120;
  max-width: 456px; margin: 0 auto;
  background: var(--card-solid); border: 1px solid rgba(6,182,212,0.4);
  border-radius: var(--r-lg); padding: 16px 16px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  animation: hintUp 0.4s ease;
}
@keyframes hintUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.install-hint-body { display: flex; gap: 12px; align-items: flex-start; }
.install-hint-icon { font-size: 30px; flex-shrink: 0; }
.install-hint b { font-size: 15px; }
.install-hint .muted { font-size: 13px; margin-top: 4px; line-height: 1.5; }
.ios-share { color: var(--cyan); font-weight: 700; }
.install-hint-close {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 16px; cursor: pointer; padding: 4px;
}
.install-hint-arrow {
  text-align: center; font-size: 24px; color: var(--cyan);
  margin-top: 6px; animation: bounce 1.4s infinite;
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* Переказ на карту */
.card-number-box {
  font-size: 22px; font-weight: 700; letter-spacing: 2px;
  color: var(--cyan); margin: 10px 0 12px; word-break: break-all;
}

/* Бронювання сауни */
.tariff-card {
  display: flex; align-items: center; gap: 14px; padding: 15px 16px;
  background: var(--card-solid); border-radius: var(--r-md); margin-bottom: 10px;
  border: 1px solid var(--border-soft); cursor: pointer;
}
.tariff-card.selected { border-color: var(--cyan); background: rgba(6,182,212,0.08); }
.tariff-card .tc-info { flex: 1; }
.tariff-card .tc-name { font-size: 15px; font-weight: 600; }
.tariff-card .tc-price { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tariff-card .tc-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.tariff-card.selected .tc-check { background: var(--cyan); border-color: var(--cyan); }

.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.time-slot {
  padding: 12px 0; border-radius: var(--r-sm); text-align: center;
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.time-slot.selected {
  background: linear-gradient(135deg, var(--cyan), #0891B2); color: #fff; border-color: transparent;
}
.time-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* Демо-оплата */
.pay-form { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pay-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 5px; }
.pay-input { font-size: 17px; letter-spacing: 1px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* QR-сканер */
.scanner-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.scanner-box {
  width: 100%; max-width: 380px;
  display: flex; flex-direction: column; gap: 14px; text-align: center;
}
#qr-reader {
  width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: #000; min-height: 260px;
}
#qr-reader video { border-radius: var(--r-lg); }
.scanner-hint { font-size: 14px; }

/* Помилки і тости */
.error-box { color: var(--danger); text-align: center; padding: 12px; font-size: 14px; }
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--card-solid); border: 1px solid var(--border);
  padding: 12px 22px; border-radius: 100px; font-size: 14px; font-weight: 600;
  z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease; white-space: nowrap;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ================== Іконки (SVG-маска) ==================
   Одноколірні SVG у /assets/icons красяться поточним кольором тексту/кнопки,
   тож автоматично підлаштовуються під тему. Щоб замінити іконку — просто
   поклади свій SVG у /assets/icons з тим самим імʼям (див. icons/README.txt). */
.ic {
  display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em;
  background-color: currentColor; flex: none;
  -webkit-mask: var(--ic) center / contain no-repeat;
          mask: var(--ic) center / contain no-repeat;
}
.ic-scan{--ic:url(/assets/icons/scan.svg)}
.ic-sauna{--ic:url(/assets/icons/sauna.svg)}
.ic-pizza{--ic:url(/assets/icons/pizza.svg)}
.ic-glass{--ic:url(/assets/icons/glass.svg)}
.ic-install{--ic:url(/assets/icons/install.svg)}
.ic-home{--ic:url(/assets/icons/home.svg)}
.ic-cart{--ic:url(/assets/icons/cart.svg)}
.ic-bell{--ic:url(/assets/icons/bell.svg)}
.ic-menu{--ic:url(/assets/icons/menu.svg)}
.ic-card{--ic:url(/assets/icons/card.svg)}
.ic-cash{--ic:url(/assets/icons/cash.svg)}
.ic-clip{--ic:url(/assets/icons/clip.svg)}
.ic-beach{--ic:url(/assets/icons/beach.svg)}
.ic-water{--ic:url(/assets/icons/water.svg)}
.ic-napkin{--ic:url(/assets/icons/napkin.svg)}
.ic-money{--ic:url(/assets/icons/money.svg)}
.ic-question{--ic:url(/assets/icons/question.svg)}
.ic-star{--ic:url(/assets/icons/star.svg)}
.ic-sun{--ic:url(/assets/icons/sun.svg)}
.ic-moon{--ic:url(/assets/icons/moon.svg)}
.ic-clipboard{--ic:url(/assets/icons/clipboard.svg)}
.ic-clock{--ic:url(/assets/icons/clock.svg)}
.ic-people{--ic:url(/assets/icons/people.svg)}
.ic-chef{--ic:url(/assets/icons/chef.svg)}
.ic-hourglass{--ic:url(/assets/icons/hourglass.svg)}
.ic-bag{--ic:url(/assets/icons/bag.svg)}
.ic-check{--ic:url(/assets/icons/check.svg)}
.ic-reject{--ic:url(/assets/icons/reject.svg)}
.ic-ban{--ic:url(/assets/icons/ban.svg)}
.ic-fire{--ic:url(/assets/icons/fire.svg)}
/* Розміри в контексті */
.back-btn .ic{ width:20px; height:20px; vertical-align:middle; }
.fab .ic{ width:26px; height:26px; vertical-align:middle; }
.pm-icon .ic{ width:26px; height:26px; }
.big-emoji .ic{ width:52px; height:52px; }
.big-emoji.sm .ic{ width:40px; height:40px; }
.splash-logo .ic{ width:60px; height:60px; }
.tracker-dot .ic{ width:20px; height:20px; }
.aob-emoji .ic{ width:20px; height:20px; vertical-align:middle; }
.install-bar-emoji .ic{ width:22px; height:22px; vertical-align:middle; }
