/* ===== Тема: нежно-розовая («Розовая пантера», градиент + лапки) ===== */
:root {
  --bg: #ffe3ee;
  --bg-secondary: #fff3f8;
  --text: #40242b;
  --hint: #a38086;
  --link: #ff5964;
  --btn: #ff5964;
  --btn-text: #ffffff;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(64, 36, 43, 0.09);
  --accent1: #ff5964;
  --accent2: #ff9e7d;
  --danger: #e63950;
  --success: #2faf7f;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px rgba(190, 60, 70, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cg fill='%23ffffff'%3E%3Cg transform='translate(30 30) rotate(-15)' fill-opacity='0.26'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3Cg transform='translate(152 85) rotate(18) scale(0.8)' fill-opacity='0.20'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3Cg transform='translate(80 162) rotate(-30) scale(0.9)' fill-opacity='0.23'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cg fill='%23ffffff'%3E%3Cg transform='translate(240 42) rotate(25) scale(0.7)' fill-opacity='0.18'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3Cg transform='translate(42 242) rotate(-8) scale(0.85)' fill-opacity='0.21'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3Cg transform='translate(172 190) rotate(40) scale(0.6)' fill-opacity='0.15'%3E%3Cellipse cx='0' cy='9' rx='13' ry='10'/%3E%3Ccircle cx='-16' cy='-8' r='5.5'/%3E%3Ccircle cx='0' cy='-15' r='5.5'/%3E%3Ccircle cx='16' cy='-8' r='5.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, 0.38), transparent 60%),
    radial-gradient(100% 55% at 100% 0%, rgba(255, 143, 190, 0.35), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(255, 190, 220, 0.45), transparent 60%),
    linear-gradient(160deg, #ffeef5 0%, #ffd6e7 45%, #ffc2da 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
  overscroll-behavior-y: none;
}

#app { max-width: 720px; margin: 0 auto; min-height: 100vh; padding-bottom: 40px; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}

input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus { border-color: var(--accent1); background: var(--surface-strong); }
input::placeholder, textarea::placeholder { color: var(--hint); }
textarea { resize: none; min-height: 72px; }

/* ===== Шапка (glassmorphism) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
}
.glass {
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.header__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header__logo {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(255, 89, 100, 0.35));
}

/* ===== Чипы категорий ===== */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 18px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--hint);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.chip:active { transform: scale(0.94); }
.chip--active {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 89, 100, 0.35);
}

/* Подразделы — второй ряд чипов, компактнее */
.chips--sub { padding-top: 2px; }
.chip--sub { padding: 6px 13px; font-size: 13px; }

/* ===== Сетка товаров ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 14px 18px;
}
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 12px; }
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  animation: cardIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card:active { transform: scale(0.97); }

.card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface);
}
.card__placeholder {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
}
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__price { font-size: 15px; font-weight: 700; color: var(--accent2); margin-top: auto; }

.card__add {
  margin-top: 4px;
  padding: 9px 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s var(--ease), filter 0.2s, opacity 0.2s;
}
.card__add:hover { filter: brightness(1.12); }
.card__add:active { transform: scale(0.95); }
.card__add:disabled { opacity: 0.55; pointer-events: none; }

/* ===== Скелетоны ===== */
.skeleton {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  animation: cardIn 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.skeleton__img, .skeleton__line,
.skeleton-line, .skeleton-circle {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-strong) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton__img { aspect-ratio: 1 / 1; }
.skeleton__body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton__line { height: 12px; border-radius: 6px; }
.skeleton__line--short { width: 55%; }
.skeleton-line { height: 12px; border-radius: 6px; width: 70%; }
.skeleton-line--short { width: 45%; margin-top: 6px; }
.skeleton-line--input { height: 45px; border-radius: 12px; width: 100%; margin-bottom: 6px; }
.skeleton-circle { width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Пустое состояние */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--hint);
  padding: 48px 20px;
  font-size: 15px;
  animation: cardIn 0.4s var(--ease) both;
}

/* Инфо-разделы (FAQ / Работа) */
.page {
  grid-column: 1 / -1;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  animation: cardIn 0.4s var(--ease) both;
}
.page__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.page__text { font-size: 15px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }

/* ===== Демо-плашка ===== */
.demo-note {
  margin: 4px 18px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: #f0c94a;
  font-size: 13px;
  text-align: center;
}

/* ===== Оверлеи / модалки ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.overlay[hidden] { display: none; }
.overlay--full { align-items: stretch; background: var(--bg); animation: fadeIn 0.25s ease both; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Модалка товара */
.product-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: sheetUp 0.35s var(--ease) both;
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.product-modal__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.product-modal__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
}
.product-modal__body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.product-modal__name { font-size: 20px; font-weight: 700; }
.product-modal__desc { font-size: 14px; line-height: 1.5; color: var(--hint); white-space: pre-wrap; }
.product-modal__price { font-size: 22px; font-weight: 700; color: var(--accent2); }

/* Позиции покупки (варианты количества) */
.product-modal__options { display: flex; flex-direction: column; gap: 8px; }
.option-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 15px; color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.option-row--active {
  border-color: var(--accent1);
  background: var(--surface-strong);
  box-shadow: 0 4px 14px rgba(255, 89, 100, 0.18);
}
.option-row__qty { font-weight: 600; }
.option-row__price { font-weight: 700; color: var(--accent2); }
.product-modal__buy { width: 100%; }

/* Промокод в окне товара */
.promo { display: flex; gap: 8px; }
.promo__input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  text-transform: uppercase;
}
.promo__btn {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  transition: border-color 0.2s;
}
.promo__btn:active { border-color: var(--accent1); }
.promo__note { font-size: 13px; min-height: 0; }
.promo__note--ok { color: var(--success); }
.promo__note--err { color: var(--danger); }
.product-modal__row { display: flex; align-items: center; gap: 14px; }

/* Счётчик количества */
.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.qty__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-strong);
  transition: transform 0.15s var(--ease), background 0.2s;
}
.qty__btn:active { transform: scale(0.85); background: var(--accent1); color: #fff; }
.qty__val { min-width: 34px; text-align: center; font-weight: 700; font-size: 16px; }

/* Основная кнопка */
.btn-primary {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 89, 100, 0.35);
  transition: transform 0.15s var(--ease), filter 0.2s, opacity 0.2s;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.55; pointer-events: none; }
.btn-secondary {
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.btn-secondary:active { transform: scale(0.97); background: var(--surface); }

/* ===== Экран оплаты ===== */
.pay-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.pay-screen__header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.pay-screen__back {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.15s var(--ease), background 0.2s;
  flex: 0 0 auto;
}
.pay-screen__back svg { width: 18px; height: 18px; }
.pay-screen__back:active { transform: scale(0.9); background: var(--surface-strong); }
.pay-screen__title {
  font-size: 17px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-screen__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.pay-step-anim { animation: payStepIn 0.35s var(--ease) both; }
@keyframes payStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Список валют */
.currency-list { display: flex; flex-direction: column; gap: 8px; }
.currency-divider {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hint);
  padding: 8px 4px 2px;
}
.currency-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: transform 0.15s var(--ease), border-color 0.2s, background 0.2s;
  animation: cardIn 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.currency-row:active { transform: scale(0.98); background: var(--surface-strong); }
.currency-row--busy { opacity: 0.55; pointer-events: none; }
.currency-row--skeleton { pointer-events: none; background: var(--bg-secondary); }
.currency-row__info { flex: 1; min-width: 0; }
.currency-row__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--surface);
  flex: 0 0 auto;
}
.currency-row__icon--ph {
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
}
.currency-row__name { font-size: 15px; font-weight: 600; }
.currency-row__ticker { font-size: 13px; color: var(--hint); margin-top: 2px; }
.currency-row__chevron { width: 18px; height: 18px; color: var(--hint); flex: 0 0 auto; }

/* Оплата недоступна */
.pay-unavailable {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 64px 24px;
  animation: cardIn 0.4s var(--ease) both;
}
.pay-unavailable__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--hint);
}
.pay-unavailable__icon svg { width: 34px; height: 34px; }
.pay-unavailable__title { font-size: 18px; font-weight: 700; }
.pay-unavailable__text { font-size: 14px; color: var(--hint); line-height: 1.5; max-width: 300px; }

/* Реквизиты оплаты */
.pay-amount { text-align: center; padding: 8px 0 4px; }
.pay-amount__label { font-size: 13px; color: var(--hint); font-weight: 500; }
.pay-amount__value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 4px;
  background: linear-gradient(90deg, var(--text), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-amount__value span { font-size: 20px; }
.pay-amount__network { font-size: 13px; color: var(--hint); margin-top: 4px; }

.pay-qr {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}
.pay-qr img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow);
}

.pay-field {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-field__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hint);
}
.pay-field__row { display: flex; align-items: center; gap: 10px; }
.pay-field__value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  line-height: 1.45;
}
.pay-field__copy {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s var(--ease), filter 0.2s;
}
.pay-field__copy:active { transform: scale(0.94); filter: brightness(1.12); }
.pay-field--memo { border-color: rgba(255, 193, 7, 0.35); }
.pay-field__warn {
  font-size: 12px;
  line-height: 1.45;
  color: #f0c94a;
  background: rgba(255, 193, 7, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
}

.pay-timer { text-align: center; font-size: 14px; color: var(--hint); }
.pay-timer b {
  font-size: 18px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pay-timer__expired { color: var(--danger); font-weight: 600; }

/* Прогресс этапов */
.pay-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 4px 0;
}
.pay-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  width: 64px;
}
.pay-progress__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 2px solid var(--border);
  transition: all 0.3s var(--ease);
}
.pay-progress__step.done .pay-progress__dot {
  background: var(--success);
  border-color: var(--success);
}
.pay-progress__step.active .pay-progress__dot {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-color: transparent;
  box-shadow: 0 0 0 0 rgba(255, 89, 100, 0.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 89, 100, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(255, 89, 100, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 89, 100, 0); }
}
.pay-progress__label {
  font-size: 11px;
  color: var(--hint);
  text-align: center;
  line-height: 1.25;
}
.pay-progress__step.active .pay-progress__label,
.pay-progress__step.done .pay-progress__label { color: var(--text); }
.pay-progress__bar {
  flex: 1;
  height: 2px;
  margin-top: 7px;
  background: var(--border);
  border-radius: 1px;
}

/* Строка статуса */
.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--hint);
  padding: 4px 0;
  text-align: center;
}
.pay-status--failed { color: var(--danger); font-weight: 600; }
.pay-status__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent2);
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Экран выдачи / успеха ===== */
.delivery-screen, .success-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: safe center;
  gap: 16px;
  padding: 32px 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  text-align: center;
  animation: cardIn 0.45s var(--ease) both;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.success-screen__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 12px 36px rgba(255, 89, 100, 0.4);
  animation: pop 0.5s var(--ease) 0.1s both;
}
.success-screen__icon svg { width: 42px; height: 42px; stroke: #fff; }
@keyframes pop {
  0% { transform: scale(0); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.success-screen__title { font-size: 22px; font-weight: 700; }
.success-screen__text { color: var(--hint); font-size: 14px; line-height: 1.5; max-width: 300px; }
.delivery-screen__text {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  max-width: 420px;
  width: 100%;
  text-align: left;
}
.delivery-screen__photo {
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: contain;
}
.delivery-screen .btn-primary, .success-screen .btn-primary { flex: 0 0 auto; min-width: 200px; margin-top: 8px; }

/* ===== Тост ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 48px);
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(30, 32, 44, 0.92);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s var(--ease) both;
}
.toast--error { border-color: rgba(255, 92, 108, 0.5); color: #ffb3ba; }
.toast.hide { animation: toastOut 0.25s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translate(-50%, 0); }
  to { opacity: 0; transform: translate(-50%, 16px); }
}
