/* Header */
.header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 12px;
}
.brand { text-align: center; display: flex; justify-content: center; }
/* Логотип по оригиналу из Shelta image, адаптирован под приложение:
   заливка фирменным зелёным — контур на мелком кегле давал рваный край */
.shelta-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  user-select: none;
}
/* Домик-логотип: дыхание свечения, блик-проблеск, вьющийся пар */
.mark-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-m);
  margin-bottom: 4px;
  animation: mark-glow 3.6s ease-in-out infinite;
}
.mark-wrap::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-12deg);
  animation: shine-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine-sweep {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}
.shelta-mark {
  display: block;
  width: 56px;
  height: auto;
  color: var(--green);
}
@keyframes mark-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(25, 63, 50, 0)); opacity: 0.9; }
  50% { filter: drop-shadow(0 0 14px rgba(62, 122, 94, 0.65)); opacity: 1; }
}
.mark-steam {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
  animation: steam-puff 3s ease-out infinite;
}
.mark-steam.s2 { animation-delay: 1s; }
.mark-steam.s3 { animation-delay: 2s; }
@keyframes steam-puff {
  0% { opacity: 0; transform: translateY(4px) scale(0.9); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-7px) scale(1.05); }
}
.shelta-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: 54px;
  letter-spacing: 0.01em;
  color: var(--green);
  display: block;
}
.shelta-word span { display: inline; }
.shelta-sub {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.3em;
  text-transform: lowercase;
  color: var(--green);
  opacity: 0.85;
  margin-top: 6px;
  padding-left: 0.3em;
  white-space: nowrap;
}

/* Mode switch */
.mode {
  margin: 6px 16px 0;
  background: var(--pill);
  border-radius: var(--radius-m);
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mode-btn {
  min-height: 52px;
  border-radius: var(--radius-s);
  font-size: 19px;
  color: var(--text);
}
.mode-btn[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  font-weight: 500;
}

/* Address */
.address {
  margin: 12px 16px 0;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  text-align: left;
  min-height: 64px;
}
.address svg { flex: none; }
.address-text { flex: 1; min-width: 0; }
.address-title {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address-sub { font-size: 15px; color: var(--muted); }

/* Menu head */
.menu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 24px 0 12px;
}
.menu-head h1 {
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 0.95;
  margin: 0;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.menu-head h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 99px;
  background: var(--green);
  margin-top: 8px;
  opacity: 0.9;
}
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.icon-btn:active { transform: scale(0.92); }
.search-wrap { margin: 0 0 12px; }
.search-wrap[hidden] { display: none; }
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0 14px;
  min-height: 52px;
}
.search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-height: 50px;
  min-width: 0;
  font-size: 16px;
  color: var(--text);
}

/* Categories */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 10px;
  margin: 0 -16px;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(var(--bg) 78%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pill);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.2s ease;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-pop);
}

/* Grid + cards */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.card {
  background: var(--surface);
  border: 1px solid rgba(231, 228, 220, 0.9);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
  animation: card-in 0.45s ease both;
}
.card:active { transform: scale(0.98); }
.grid .card:nth-child(2n) { animation-delay: 0.05s; }
.grid .card:nth-child(3n) { animation-delay: 0.1s; }
@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
/* Арт без фото: градиент + монограмма */
.card-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.96);
  isolation: isolate;
}
.card-art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.28), transparent 55%),
    radial-gradient(100% 100% at 85% 90%, rgba(0,0,0,0.24), transparent 60%);
  z-index: 0;
}
.card-art[data-art="classic"], .psheet-art[data-art="classic"], .mini-art[data-art="classic"] { background: linear-gradient(145deg, #2A1E14 0%, #5A3E2B 55%, #8A6242 100%); }
.card-art[data-art="author"], .psheet-art[data-art="author"], .mini-art[data-art="author"] { background: linear-gradient(145deg, #0F2A21 0%, #193F32 55%, #3E7A5E 100%); }
.card-art[data-art="cold"], .psheet-art[data-art="cold"], .mini-art[data-art="cold"] { background: linear-gradient(145deg, #132A3A 0%, #2E5A74 60%, #7FB3C8 100%); }
.card-art[data-art="smoothie"], .psheet-art[data-art="smoothie"], .mini-art[data-art="smoothie"] { background: linear-gradient(145deg, #4A1E2E 0%, #8A3A52 55%, #E08AA0 100%); }
.card-art[data-art="cacao"], .psheet-art[data-art="cacao"], .mini-art[data-art="cacao"] { background: linear-gradient(145deg, #1E120B 0%, #4A2C1A 60%, #8A5A36 100%); }
.card-art[data-art="cocktail"], .psheet-art[data-art="cocktail"], .mini-art[data-art="cocktail"] { background: linear-gradient(145deg, #4A2A0E 0%, #8A5A1E 55%, #E8B04B 100%); }
.card-art[data-art="tea"], .psheet-art[data-art="tea"], .mini-art[data-art="tea"] { background: linear-gradient(145deg, #1A2E1E 0%, #3E5E3E 60%, #9AB88A 100%); }
/* Арт-шапка шита товара */
.psheet-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.96);
  isolation: isolate;
}
.psheet-art::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.35), transparent 55%),
    radial-gradient(100% 100% at 85% 90%, rgba(0,0,0,0.28), transparent 60%);
  z-index: 0;
}
.psheet-art .card-mono { font-size: 96px; transform: none; z-index: 1; }
.psheet-art .card-brand { left: 14px; bottom: 12px; }
/* Мини-арт в корзине */
.mini-art {
  width: 72px; height: 72px;
  border-radius: var(--radius-s);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
}
/* Счётчик поиска */
.search-count {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.card-mono {
  font-family: var(--font-serif);
  font-size: 66px;
  line-height: 1;
  font-weight: 500;
  opacity: 0.9;
  text-shadow: 0 2px 14px rgba(0,0,0,0.22);
  z-index: 1;
  transform: translateY(-4px);
}
.card-cup {
  position: absolute;
  right: 12px;
  bottom: 28px;
  width: 26px;
  height: 26px;
  opacity: 0.45;
  z-index: 1;
}
.card-brand {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.65;
  z-index: 1;
}
.card-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--pill);
}
.psheet-photo {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  background: #EFE7D6;
}
.mini-photo {
  width: 72px; height: 72px;
  border-radius: var(--radius-s);
  object-fit: cover;
  flex: none;
  display: block;
  background: #EFE7D6;
}
.card.is-off .card-photo { filter: grayscale(0.7); opacity: 0.6; }
.card-body {
  padding: 12px 10px 12px 13px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}
.card-info { min-width: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.card-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 650;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card-bottom { margin-top: auto; padding-top: 6px; }
.card-meta {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta strong { color: var(--text); font-weight: 800; font-size: 16px; }
.vol-pills { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 8px; }
.vol-pill {
  flex: 1 1 0;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) ease, border-color var(--dur-1) ease;
}
.vol-pill:active { transform: scale(0.94); }
.vol-pill.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.vol-pill:disabled { opacity: 0.45; }
.add-btn {
  flex: none;
  align-self: flex-end;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px -2px rgba(25, 63, 50, 0.45);
  transition: transform 0.15s ease, background 0.2s ease;
}
.add-btn svg { width: 14px; height: 14px; stroke-width: 2; }
.add-btn:active { background: var(--green-press); transform: scale(0.92); }

.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
  background: rgba(255,255,255,0.6);
}
.empty[hidden] { display: none; }

/* Tabbar */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--app-max);
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 52px;
  justify-content: center;
  border-radius: var(--radius-s);
  font-size: 13px;
  color: #5a5650;
  position: relative;
  transition: transform var(--dur-1) var(--ease-out);
}
.tab:active { transform: scale(0.94); }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--green); font-weight: 600; }
.tab-badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 2px);
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}
.tab-badge[hidden] { display: none; }

/* Modal */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.overlay[hidden] { display: none; }
.sheet {
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px 20px 20px;
  text-align: center;
  animation: pop-in var(--dur-2) var(--ease-out) both;
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.sheet h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin: 0 0 8px;
  font-weight: 600;
}
.sheet p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.sheet-btn {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-m);
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

/* Экраны (виды) */
#view-menu[hidden], #view-qr[hidden] { display: none; }

/* Экран «Мой QR» — гость */
.qr-guest-head { padding: 20px 20px 0; }
.qr-guest-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}
.qr-club {
  margin: 6px 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--green);
}
.qr-guest {
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-guest-box {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(16px, 4vh, 32px);
  padding-bottom: 16px;
}
.gift-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.qr-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  margin: 24px 0 0;
  color: var(--text);
  text-wrap: balance;
}
.qr-text {
  margin: 12px 0 0;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.perk {
  width: 100%;
  background: var(--green-soft);
  border-radius: var(--radius-l);
  padding: 16px;
  margin: 20px 0 0;
}
.perk-main {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
}
.perk-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.btn-primary.qr-cta {
  min-height: 52px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 20px;
}
.qr-via {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.qr-skip {
  margin-top: 4px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.btn-primary {
  width: 100%;
  min-height: 56px;
  border-radius: var(--radius-m);
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  margin-top: 22px;
  padding: 0 18px;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) ease;
}
.btn-primary:active { background: var(--green-press); transform: scale(0.97); }
.btn-secondary {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius-m);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  padding: 0 18px;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) ease;
}
.btn-secondary:active { transform: scale(0.97); }

/* Группы каталога */
.group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 22px 0 2px;
  color: var(--text);
}
.group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  transform: translateY(-5px);
}
.group-count {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  background: var(--pill);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
}
h2.group-title:first-child { margin-top: 6px; }
main .group-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 22px 0 6px;
}

/* Карточка товара каталога */
.card-imgwrap { position: relative; }
.card-badge {
  position: absolute;
  left: 8px; bottom: 8px;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  color: var(--text);
}
.card.is-off .card-art { filter: grayscale(0.7); opacity: 0.6; }
.card.is-off { background: #F6F3EC; }

/* Панель корзины над навигацией (удалена: счётчик переехал на таб «Заказы») */

/* Страницы */
.page-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 4px;
}
.page-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.back-btn {
  min-width: 40px; min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pill);
  color: var(--text);
  border: 0;
  padding: 0;
}
.back-btn svg { width: 20px; height: 20px; }
.empty-lg {
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.empty-art {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 4px;
}
.empty-art svg { width: 44px; height: 44px; }
.empty-lg p { font-size: 17px; margin: 0 0 8px; }
.center { text-align: center; }

/* Блоки, поля, строки */
.blk {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--surface);
  padding: 16px;
  margin-top: 12px;
}
.blk h2 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.blk-addr { font-size: 16px; margin: 0; }
.blk-addr span { color: var(--text-2); }
.fld { display: block; margin-top: 12px; }
.fld > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.fld input, .fld select {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0 14px;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
.fld-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
.fld-grid > * { min-width: 0; }
.fld-err { color: var(--accent); font-size: 14px; margin: 8px 0 0; }
.btn-primary:disabled { opacity: 0.45; }
.code-input {
  text-align: center;
  font-size: 24px !important;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding-left: 0.3em;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 16px;
}
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.link-btn {
  color: var(--green);
  font-weight: 600;
  font-size: 15px;
  min-height: 44px;
}
.link-btn.danger, .danger { color: var(--accent); }
.fine { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.mini-list { margin: 0; padding-left: 18px; font-size: 15px; }
.mini-list li { margin: 4px 0; }
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 16px;
  margin-top: 8px;
}
.total-row.grand { font-size: 18px; font-weight: 700; }
.warn-box {
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 12px;
}
.docs-note { margin-top: 16px; }

/* Сегменты */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--pill);
  border-radius: var(--radius-m);
  padding: 4px;
  margin-top: 12px;
}
.seg-btn {
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
}
.seg-btn.is-on { background: var(--green); color: #fff; font-weight: 600; }

/* Степпер */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.stepper button {
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: 16px; }

/* Карточка напитка */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 18, 0.4);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
  animation: fade-in var(--dur-2) ease-out both;
}
.psheet {
  width: 100%;
  max-width: var(--app-max);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
  position: relative;
  animation: sheet-up var(--dur-3) var(--ease-out) both;
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { opacity: 0.4; transform: translateY(32px); } }
/* Медиа (фото/арт) — в аккуратной рамке с полями, как на референсе */
.psheet .psheet-photo,
.psheet .psheet-art {
  width: calc(100% - 24px);
  margin: 16px 12px 0;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
/* Контент шита — с боковыми полями */
.psheet .psheet-name,
.psheet .psheet-cat,
.psheet .psheet-sub,
.psheet .psheet-desc,
.psheet .psheet-singlevol,
.psheet .psheet-soon,
.psheet .opt-label,
.psheet .opt-row,
.psheet .opt-list,
.psheet .vol-line,
.psheet .add-list,
.psheet .qty-row {
  margin-left: 20px;
  margin-right: 20px;
}
.psheet .opt-label.main { margin-left: 20px; margin-right: 20px; }
.psheet-grip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 5px;
  border-radius: 99px;
  background: rgba(25, 63, 50, 0.25);
  z-index: 3;
}
.psheet-close {
  position: sticky;
  top: 16px;
  display: flex;
  margin: 28px 12px -72px auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  color: #222;
  font-size: 17px;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.psheet-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 18px 0 0;
  color: var(--text);
  text-wrap: balance;
}
.psheet-cat {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.psheet-sub { color: var(--text-2); font-size: 15px; margin: 4px 0 0; }
.psheet-desc {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #5b564e;
}
.notes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.note-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(25, 63, 50, 0.15);
  border-radius: 999px;
  padding: 6px 13px;
}
.psheet-soon {
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
  padding: 18px;
  text-align: center;
  color: var(--text-2);
  margin: 16px 0 8px;
}
.psheet-singlevol { font-size: 16px; font-weight: 600; margin: 12px 0 0; }
.opt-label { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 10px; }
.opt-label.main { font-size: 15px; font-weight: 700; color: var(--text); margin: 22px 0 10px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
}
.opt-btn.is-on { border-color: var(--green); background: var(--green-soft); font-weight: 700; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.qty-row .opt-label { margin: 0; }
.qty-row .opt-label.main { margin: 0; }
.qty-row .stepper { border: 0; padding: 0; gap: 14px; }
.qty-row .stepper button {
  width: 48px; height: 48px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 22px;
  font-weight: 400;
}
.qty-row .stepper span { font-size: 17px; min-width: 18px; font-weight: 600; }
.psheet-foot {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  padding: 14px 20px calc(0px + env(safe-area-inset-bottom));
  margin-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.psheet-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.psheet-total span { font-size: 14px; color: var(--muted); }
.psheet-total strong { font-size: 27px; font-weight: 800; color: var(--text); }
.psheet-foot .btn-primary { min-height: 58px; font-size: 17px; }
.foot-add { flex: 1; }
.foot-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.foot-stepper button {
  width: 32px; height: 100%;
  min-height: 56px;
  font-size: 22px;
  color: var(--text);
  background: none;
  border: 0;
}
.foot-stepper span { font-size: 17px; min-width: 18px; text-align: center; font-weight: 700; }
/* Объём в шторке: пиллы + цена справа */
.vol-line { display: flex; align-items: center; gap: 10px; }
.vol-segs { display: flex; gap: 8px; flex: 1; min-width: 0; }
.vol-seg {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  background: var(--pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) ease;
}
.vol-seg:active { transform: scale(0.96); }
.vol-seg.is-on { background: var(--green); color: #fff; font-weight: 700; }
.vol-seg:disabled { opacity: 0.45; }
.vol-price { font-size: 22px; font-weight: 800; color: var(--text); white-space: nowrap; }
/* Дополнительно: строки с чекбоксами и раскрывающиеся группы */
.add-list { display: flex; flex-direction: column; }
.add-row, .add-subrow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}
.add-row .box, .add-subrow .box {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid #C6C0B2;
  background: transparent;
  position: relative;
}
.add-row.is-on .box, .add-subrow.is-on .box { background: var(--green); border-color: var(--green); }
.add-row.is-on .box::after, .add-subrow.is-on .box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.add-ic { flex: none; width: 26px; display: inline-flex; align-items: center; justify-content: center; color: var(--stone); font-size: 18px; }
.add-ic svg { width: 22px; height: 22px; }
.add-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.add-price { flex: none; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.add-row .chev { flex: none; font-size: 22px; font-weight: 400; color: var(--sand); line-height: 1; transition: transform 0.2s ease; }
.add-row.open .chev { transform: rotate(90deg); }
.add-sub { padding: 2px 0 8px 36px; }
.add-hint { font-size: 12.5px; color: var(--muted); margin: 8px 0 2px; }
/* Точка самовывоза */
.point-head {
  position: relative;
  margin: 16px 12px 0;
  padding: 14px 16px 16px;
  border-radius: var(--radius-l);
  min-height: 96px;
  background: linear-gradient(145deg, #0F2A21 0%, #193F32 55%, #3E7A5E 100%);
  overflow: hidden;
}
.point-head::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.3), transparent 55%);
}

.point-status {
  position: static;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F2A21;
  background: #8FD6A4;
  border-radius: 999px;
  padding: 5px 12px;
}
.point-status.is-closed {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.point-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #fff;
}
.point-brand strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.14em;
  line-height: 1;
}
.point-brand span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.3em;
  opacity: 0.75;
  margin-top: 6px;
}
.point-cup {
  position: static;
  transform: none;
  flex: none;
  width: 46px;
  height: 46px;
  color: rgba(255, 255, 255, 0.55);
}
.point-sub {
  margin: 6px 20px 0;
  font-size: 15px;
  color: var(--muted);
}
.point-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 20px 0;
}
.point-line svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
}
.point-line strong { display: block; font-size: 17px; color: var(--text); }
.point-line span { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.point-line-text { font-size: 16px; padding-top: 2px; }
.point-how {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--green-soft);
  border-radius: var(--radius-l);
  padding: 16px;
  margin: 16px 20px 0;
}
.point-how svg { flex: none; width: 30px; height: 30px; color: var(--green); }
.point-how strong { display: block; font-size: 16px; }
.point-how span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.point-actions2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 20px 0;
}
.point-btn2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  background: var(--surface);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.point-btn2 svg { width: 22px; height: 22px; flex: none; }
@media (min-width: 560px) {
  .sheet-overlay { align-items: center; padding: 24px; }
  .psheet { border-radius: 24px; max-width: 440px; }
}

/* Тосты, диалоги */
#toast-region {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 76px);
  z-index: 80;
  width: calc(100% - 48px);
  max-width: 400px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-s);
  padding: 12px 18px;
  font-size: 15px;
  text-align: center;
}
.dialog-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.dialog-actions .btn-secondary { min-height: 52px; }
.dialog-html { font-size: 15px; text-align: left; margin-bottom: 12px; white-space: pre-line; }

/* Корзина */
.cart-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.cart-item {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 12px;
}
.cart-info { flex: 1; min-width: 0; }
.cart-info h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cart-desc { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.cart-unit { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.cart-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-sum { font-size: 16px; }
.cart-links { display: flex; gap: 16px; margin-top: 4px; }
.cart-links button { font-size: 14px; color: var(--green); font-weight: 600; min-height: 44px; }
.cart-foot {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding: 12px 0 8px;
}
.undo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-soft);
  border-radius: var(--radius-s);
  padding: 8px 8px 8px 16px;
  margin-top: 12px;
  font-size: 15px;
}
.undo-bar[hidden] { display: none; }
.undo-bar button { font-weight: 700; color: var(--green); min-height: 44px; padding: 0 12px; }

/* Заказы */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 14px 16px;
  margin-top: 12px;
}
/* Трекинг-карточка текущего заказа */
.ord-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 18px 16px 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}
.ord-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ord-no { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.ord-pill {
  flex: none;
  background: var(--beige);
  color: var(--clay-deep);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
}
.ord-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F4EFE4;
  border-radius: var(--radius-m);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 15px;
}
.ord-banner-ic {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #E7DFCE;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ord-banner-ic svg { width: 22px; height: 22px; }
.ord-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 18px 6px 4px;
}
.ord-steps::before {
  content: "";
  position: absolute;
  left: 18px; right: 18px; top: 11px;
  height: 2px;
  background: #E3DCCB;
}
.ord-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #A8A29A;
  min-width: 56px;
}
.ord-step:first-child { align-items: flex-start; }
.ord-step:last-child { align-items: flex-end; }
.ord-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #D8D2C0;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ord-step.done .ord-dot { background: var(--green); border-color: var(--green); }
.ord-step.done .ord-dot svg { width: 13px; height: 13px; }
.ord-step.done .ord-step-lbl, .ord-step.now .ord-step-lbl { color: var(--text); font-weight: 700; }
.ord-step.now .ord-dot { border-color: var(--green); box-shadow: 0 0 0 4px rgba(25, 63, 50, 0.12); }
.ord-items { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.ord-item { display: flex; align-items: center; gap: 12px; }
.ord-cup {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #F4EFE4;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ord-cup svg { width: 26px; height: 26px; }
.ord-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ord-item-txt strong { font-size: 15.5px; }
.ord-addr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
}
.ord-pin { flex: none; color: var(--stone); margin-top: 2px; }
.ord-pin svg { width: 22px; height: 22px; }
.btn-track { margin-top: 14px; }
.ord-details { display: block; margin: 10px auto 0; color: var(--green); font-weight: 600; font-size: 14.5px; }
.ord-det { margin-top: 8px; }
.ord-help {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
  padding: 12px 2px 0;
  font-size: 14.5px;
  color: var(--text);
  text-align: left;
}
.ord-help svg { width: 22px; height: 22px; color: var(--stone); flex: none; }
.ord-help .chev { margin-left: auto; }
.ord-tabs { margin-top: 12px; }
.order-top { display: flex; justify-content: space-between; align-items: baseline; }
.order-status { font-size: 14px; font-weight: 700; color: var(--green); }
.order-comp { font-size: 15px; margin: 6px 0 0; }
.order-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.stage-row { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
/* Таймлайн заказа */
.timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 18px 0;
  font-size: 15px;
  color: var(--muted);
}
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: -2px;
  width: 2px;
  background: var(--border);
}
.timeline li:last-child::before { display: none; }
.t-dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.timeline li.done { color: var(--text); }
.timeline li.done::before { background: var(--green); }
.timeline li.done .t-dot { background: var(--green); border-color: var(--green); }
.timeline li.now { color: var(--text); font-weight: 700; }
.timeline li.now .t-dot {
  border-color: var(--green);
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 162, 75, 0.25);
}
.stage {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text-2);
}
.stage.is-on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.order-status-lg { font-size: 20px; font-weight: 700; margin: 12px 0 0; }
.pay-err { color: var(--accent); font-size: 15px; }
.pay-state { margin-top: 8px; }

/* Лояльность */
.club-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0C231B 0%, #193F32 58%, #2E6B52 100%);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 22px 22px 20px;
  margin-top: 14px;
  box-shadow: var(--shadow-pop);
  isolation: isolate;
}
.club-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(60% 50% at 85% 15%, rgba(201, 162, 75, 0.45), transparent 60%),
    radial-gradient(80% 70% at 10% 100%, rgba(255, 255, 255, 0.12), transparent 60%);
  z-index: 0;
}
.club-card::after {
  content: "S";
  position: absolute;
  right: 6px;
  bottom: -38px;
  font-family: var(--font-serif);
  font-size: 170px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  z-index: 0;
}
.club-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.club-balance {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.05;
  margin: 10px 0 0;
}
.club-sub {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.club-id {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
}
.loyal-balance {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 38px;
  text-align: center;
  margin: 8px 0 0;
}
.qr-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.qr-box svg { width: 100%; max-width: 260px; height: auto; }
.qr-cap { text-align: center; font-size: 15px; font-weight: 600; margin: 12px 0 0; }
.qr-token { font-size: 22px; font-weight: 700; letter-spacing: 0.08em; text-align: center; }
.ledger { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ledger li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  font-size: 15px;
}
.plus { color: var(--green); }
.minus { color: var(--accent); }

/* Профиль */
.menu-list { display: flex; flex-direction: column; margin-top: 12px; }
.menu-list button {
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
}
.addr-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
/* Карточка адреса как на макете: иконка, текст, разделитель, действия */
.page-title.serif { font-family: var(--font-serif); font-weight: 600; letter-spacing: 0; }
.addr-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 14px;
  box-shadow: var(--shadow-card);
}
.addr-ic {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.addr-ic svg { width: 24px; height: 24px; }
.addr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: break-word; }
.addr-txt strong { font-size: 16px; }
.addr-acts {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.addr-btn svg { width: 19px; height: 19px; }
.addr-btn.edit { color: var(--green); }
.addr-btn.del { color: #B3373E; }
/* Поля с иконкой слева */
.afld { display: block; margin-top: 12px; }
.afld-cap { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.afld-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0 16px;
  min-height: 56px;
}
.afld-box:focus-within { border-color: var(--green); }
.afld-ic { flex: none; display: inline-flex; color: var(--stone); }
.afld-ic svg { width: 22px; height: 22px; }
.afld-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  min-height: 54px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.afld-box input::placeholder { color: #76716A; }
/* Широкая тёмная кнопка со стрелкой */
.btn-primary.btn-go {
  background: var(--green-press);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.btn-primary.btn-go:active { background: #0D211A; }
.btn-primary.btn-go svg { width: 22px; height: 22px; }
.adm-prod { margin-top: 12px; }
.adm-prod summary { min-height: 48px; font-size: 15px; cursor: pointer; }

/* Профиль гостя */
.pf-head { display: flex; align-items: center; justify-content: space-between; }
.pf-head .page-title { margin: 0; }
.pf-gear { width: 40px; height: 40px; border: 0; background: none; color: var(--text); padding: 6px; }
.pf-gear svg { width: 100%; height: 100%; }
.pf-user { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; text-align: left; padding: 6px 0; margin-top: 12px; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #E9E2D3; color: #6B5F4C; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; }
.pf-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: break-word; }
.pf-id strong { font-size: 17px; }
.chev { color: var(--sand); font-size: 24px; line-height: 1; flex: none; }
.bonus-card { margin-top: 14px; border-radius: var(--radius-l); padding: 20px; color: #fff; background: linear-gradient(150deg, #0C231B 0%, #193F32 58%, #2E6B52 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; overflow: hidden; position: relative; }
.bonus-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%); }
.bonus-eyebrow { font-size: 13px; opacity: 0.85; margin: 0 0 4px; }
.bonus-sum { font-size: 34px; font-weight: 800; margin: 0; }
.bonus-sub { font-size: 12.5px; line-height: 1.45; opacity: 0.85; margin: 6px 0 0; }
.bonus-qr { flex: none; background: #fff; color: var(--green); font-weight: 700; font-size: 14px; border: 0; border-radius: 999px; padding: 10px 16px; position: relative; z-index: 1; }
.gift-card { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 12px 12px 12px 14px; text-align: left; }
.gift-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: #F6E9E4; color: #B3373E; display: inline-flex; align-items: center; justify-content: center; }
.gift-ic svg { width: 24px; height: 24px; }
.gift-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gift-info strong { font-size: 14.5px; }
.gift-bar { display: block; height: 6px; border-radius: 99px; background: #EEE9DD; margin-top: 6px; overflow: hidden; }
.gift-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.cups { display: flex; gap: 8px; margin-top: 7px; }
.cup { color: #D9D2BF; display: inline-flex; }
.cup svg { width: 23px; height: 23px; fill: none; }
.cup.on { color: var(--green); }
.cup.on svg { fill: currentColor; }
.gift-cup { width: 52px; height: 52px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.tile-grid { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tile-grid::-webkit-scrollbar { display: none; }
.tile-grid .tile { flex: 1 0 0; min-width: 96px; }
.tile { background: var(--pill); border: 0; border-radius: var(--radius-m); padding: 12px 4px 10px; font-size: 10.5px; line-height: 1.3; font-weight: 600; color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; text-align: center; transition: transform var(--dur-1) var(--ease-out); }
.tile:active { transform: scale(0.95); }
.tile-ic { display: inline-flex; color: var(--text); }
.tile-ic svg { width: 24px; height: 24px; }
.prof-list button { display: flex; align-items: center; gap: 12px; }
.row-ic { width: 24px; text-align: center; font-size: 18px; flex: none; display: inline-flex; color: var(--text); }
.row-ic svg { width: 22px; height: 22px; }
.prof-list button .chev { margin-left: auto; }
.promo-banner { margin-top: 14px; width: 100%; border: 0; border-radius: var(--radius-l); overflow: hidden; display: flex; align-items: stretch; background: linear-gradient(120deg, #F3E9D6 0%, #EAD9BE 60%, #DFC9A4 100%); text-align: left; padding: 0; }
.promo-txt { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.promo-eyebrow { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: #8A7A5C; }
.promo-txt strong { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; font-weight: 500; }
.promo-banner img { width: 42%; min-height: 130px; object-fit: cover; }

/* Админ-статистика */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card strong { font-size: 22px; font-weight: 800; }
.stat-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 12px 12px 8px; margin-top: 8px; }
.stat-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.stat-bar-fill { width: 100%; max-width: 28px; border-radius: 6px; background: var(--green); min-height: 0; }
.stat-bar span { font-size: 10.5px; color: var(--muted); }

/* Сканер QR */
.scan-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #111; margin-top: 12px; }
.scan-frame video { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }
.scan-corner { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: var(--radius-l); pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35); }

/* Офлайн, скрытие таббара */
#offline-bar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  z-index: 90;
}
#offline-bar[hidden] { display: none; }

/* Способы входа */
.method-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 14px 12px 14px 16px;
  font-size: 16px;
}
.method-card:active { border-color: var(--green); }
.method-card svg { flex: none; color: var(--green); }
.method-card strong { font-size: 17px; font-weight: 600; }
.method-card .fine { display: block; margin-top: 2px; }
.method-card > span:nth-child(2) { flex: 1; min-width: 0; }
.method-go { font-size: 26px; line-height: 1; color: var(--text-2); padding: 0 4px; }
.max-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  padding: 0 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  border-radius: 999px;
}
body.no-tabbar .tabbar { display: none; }
.tabbar[hidden] { display: none; }
#view-dynamic[hidden] { display: none; }
#view-dynamic > main { animation: view-in var(--dur-2) var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 400px) {
  .grid { gap: 8px; }
  .card-body { padding: 10px 8px 12px 10px; gap: 6px; }
  .card-name { font-size: 14px; }
  .vol-pills { gap: 4px; }
  .vol-pill { min-height: 26px; padding: 0 7px; font-size: 11px; }
  .card-meta { font-size: 12.5px; }
  .add-btn { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .menu-head h1 { font-size: 34px; }
  .vol-pills { flex-wrap: wrap; }
  .mode-btn { font-size: 17px; }
  .chip { padding: 0 18px; font-size: 16px; min-height: 42px; }
  .grid { gap: 10px; }
  .card-name { font-size: 15px; }
  .card-meta { font-size: 13px; }
  .card-meta strong { font-size: 15px; }
  .add-btn { width: 36px; height: 36px; }
  .card-mono { font-size: 48px; }
  .psheet-name { font-size: 24px; }
  .vol-row .vol-btn { min-height: 54px; font-size: 14px; }
  .club-balance { font-size: 40px; }
  .page-title { font-size: 23px; }
}

/* ---------- SHELTA CLUB: экраны после сканирования и оплаты ---------- */
.club-head { text-align: center; }
.club-head .fine { margin-top: 2px; }
.pill { display: flex; width: max-content; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; margin: 10px auto; }
.pill.ok { background: #E3EFE4; color: #1E5B3A; }
.pill.ok::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #1E5B3A; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; }
.club-hero { margin: 6px auto 2px; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: #EFE9DB; }
.club-hero img { width: 100%; height: 100%; object-fit: cover; }
.club-title { text-align: center; font-size: 32px; line-height: 1.15; margin: 12px 0 6px; font-weight: 800; }
.club-plus { color: var(--green); font-size: 48px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.sum-row strong { font-size: 19px; }
.sum-row.sub { color: var(--muted); font-size: 14px; border-top: 1px dashed #E5E0D2; margin-top: 4px; padding-top: 10px; }
.dots { display: inline-flex; gap: 5px; margin-right: 8px; vertical-align: middle; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dots i:nth-child(2), .dots i:nth-child(3) { background: #D9D2BF; }

/* ---------- Шторка автопредложения уведомлений ---------- */
#pushSheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,0.35)); }
.push-sheet-card { background: #fff; border-radius: var(--radius-l); padding: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.push-sheet-title { font-weight: 800; font-size: 17px; margin-bottom: 2px; }
.push-sheet-card .fine { margin-bottom: 10px; }
.push-sheet-card .link-btn { width: 100%; margin-top: 4px; }
