/* Маркетплейс aulov — библиотека компонентов.
 * Всё, что переиспользуется больше чем на одном экране, описано здесь.
 */

/* ============================ КНОПКИ ============================
 * Требование к продукту — крупные и удобные, но не раздутые. Основная
 * кнопка 54px, вторичная 48px, компактная 40px. Меньше 44px не бывает
 * ничего, на что нужно попасть пальцем.
 */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--btn-h-md);
  padding: 0 var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-body);
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
  transition: transform var(--t-fast) var(--ease-spring),
              background var(--t-fast) var(--ease-out),
              opacity var(--t-fast) linear,
              box-shadow var(--t-base) var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.965); }
.btn:disabled, .btn.is-disabled { opacity: .45; pointer-events: none; }

.btn--lg { min-height: var(--btn-h-lg); font-size: 16px; border-radius: var(--r-lg); padding: 0 var(--sp-6); }
.btn--sm { min-height: var(--btn-h-sm); font-size: var(--fs-sm); padding: 0 var(--sp-4); border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }
.btn--pill { border-radius: var(--r-full); }

.btn--primary {
  background: var(--accent-grad);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}
.btn--primary:active:not(:disabled) { box-shadow: 0 4px 12px rgba(124, 92, 255, .3); }

.btn--secondary { background: var(--brand-soft); color: var(--brand-text); }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn--danger { background: var(--danger-500); color: #fff; }
.btn--danger-soft { background: var(--danger-bg); color: var(--danger-500); }
.btn--success { background: var(--success-500); color: #fff; }
.btn--plain { background: transparent; color: var(--brand-text); padding: 0 var(--sp-2); }

/* Состояние загрузки: подпись гаснет, поверх крутится спиннер — ширина
   кнопки не прыгает, а значит не прыгает и вся форма. */
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  color: var(--text-on-brand);
  animation: spin .7s linear infinite;
}
.btn--ghost.is-loading::after,
.btn--secondary.is-loading::after,
.btn--outline.is-loading::after { color: var(--brand); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  opacity: .28;
  transform: scale(0);
  animation: ripple-out .62s var(--ease-out) forwards;
  pointer-events: none;
}

/* Панель действий, прилипшая к низу экрана. */
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-3) + var(--safe-bottom));
  margin-top: auto;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}
body.has-nav .action-bar { bottom: calc(var(--nav-h) + var(--safe-bottom)); padding-bottom: var(--sp-3); }

/* ============================ КАРТОЧКИ ============================ */

.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card--pad { padding: var(--sp-4); }
.card--raised { box-shadow: var(--shadow-md); border-color: transparent; }
.card--tap {
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t-base) var(--ease-out);
  cursor: pointer;
}
.card--tap:active { transform: scale(.98); }

/* Карточка товара (.wbcard*) переехала в css/views/catalog.css — она нужна
   только разделу «Каталог», а не всему приложению целиком. */

/* ============================ ЗНАЧКИ И ЧИПЫ ============================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.badge--brand { background: var(--brand-soft); color: var(--brand-text); }
.badge--success { background: var(--success-bg); color: var(--success-500); }
.badge--warning { background: var(--warning-bg); color: var(--warning-500); }
.badge--danger { background: var(--danger-bg); color: var(--danger-500); }
.badge--info { background: var(--info-bg); color: var(--info-500); }
.badge--muted { background: var(--surface-2); color: var(--text-muted); }
.badge--solid { background: var(--accent-grad); color: #fff; }

.badge--float {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  box-shadow: var(--shadow-sm);
}

/* Чипы фильтров — горизонтальная лента над лентой товаров. */
.chips {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: var(--sp-1) var(--sp-4) var(--sp-3);
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-spring), background var(--t-fast) linear, color var(--t-fast) linear;
}
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--brand); color: #fff; }
.chip__count { opacity: .7; font-weight: 500; }
/* Маленький крестик-удаление внутри чипа (например, истории поиска) — span,
   а не вложенная кнопка (кнопка в кнопке невалидна и ведёт себя странно).
   stopPropagation в обработчике клика обязателен, иначе сработает и клик
   по всему чипу тоже. */
.chip__remove {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  margin-left: 2px;
  margin-right: -6px; /* компенсирует правый padding чипа */
  border-radius: 50%;
  opacity: .55;
}
.chip__remove:active { opacity: 1; background: rgba(0, 0, 0, .08); }

/* ============================ ФОРМЫ ============================ */

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: var(--fs-sm);
  font-weight: 620;
  color: var(--text-2);
  padding-left: 2px;
}
.field__hint { font-size: var(--fs-xs); color: var(--text-muted); padding-left: 2px; }
.field__error { font-size: var(--fs-xs); color: var(--danger-500); padding-left: 2px; }

.input, .textarea, .select {
  width: 100%;
  min-height: var(--btn-h-md);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  color: var(--text);
  font-size: 16px; /* меньше 16px — и Safari зумит страницу на фокусе */
  transition: border-color var(--t-fast) var(--ease-out), background var(--t-fast) linear;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.45; }
.field.has-error .input,
.field.has-error .textarea { border-color: var(--danger-500); }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-left: 46px; }
.input-group__icon {
  position: absolute;
  left: var(--sp-4);
  color: var(--text-muted);
  pointer-events: none;
}
.input-group__clear {
  position: absolute;
  right: 8px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  color: var(--text-muted);
}

.search-bar { padding: 0 var(--sp-4) var(--sp-3); }

/* Переключатель-сегмент. */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--r-md);
  position: relative;
}
.segmented__item {
  min-height: 40px;
  border-radius: calc(var(--r-md) - 4px);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: color var(--t-base) var(--ease-out);
  position: relative;
  z-index: 1;
}
.segmented__item.is-active { color: var(--text); }
.segmented__thumb {
  position: absolute;
  top: 3px; bottom: 3px;
  border-radius: calc(var(--r-md) - 4px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-spring), width var(--t-base) var(--ease-spring);
  z-index: 0;
}

.switch {
  position: relative;
  width: 52px; height: 31px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  flex: none;
  transition: background var(--t-base) var(--ease-out);
}
.switch::after {
  content: '';
  position: absolute;
  top: 2.5px; left: 2.5px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease-spring);
}
.switch.is-on { background: var(--brand); }
.switch.is-on::after { transform: translateX(21px); }

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stepper__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  transition: background var(--t-fast) linear;
}
.stepper__btn:active { background: var(--surface-3); }
.stepper__value { min-width: 44px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================ СПИСКИ ============================ */

.list { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.list-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 58px;
  padding: var(--sp-3) var(--sp-4);
  position: relative;
  transition: background var(--t-fast) linear;
}
.list-item + .list-item::before {
  content: '';
  position: absolute;
  top: 0; left: var(--sp-4); right: 0;
  height: 1px;
  background: var(--border);
}
.list-item:active { background: var(--surface-2); }
/* Пункт списка часто бывает <button>, а кнопка ведёт себя не как блок:
   текст у неё по центру, а ширина — по содержимому, сколько ей ни ставь
   display:flex. Отсюда разъезжались подписи и разделители между пунктами
   обрывались каждый на своей длине. */
.list-item { text-align: left; width: 100%; }
/* Недоступный пункт не прячем: продавцу важно видеть, что действие есть,
   и прочитать в подписи, почему сейчас нельзя. */
.list-item:disabled { opacity: 0.45; cursor: default; }
.list-item:disabled:active { background: none; }
.list-item__icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex: none;
}
/* Миниатюра товара вместо нейтральной иконки-лупы в подсказках поиска —
   это фото, а не пиктограмма, заливку-подложку убираем. */
.list-item__icon--img { background: var(--surface-2); overflow: hidden; }
.list-item__icon--img img { width: 100%; height: 100%; object-fit: cover; }
.list-item__body { flex: 1; min-width: 0; }
.list-item__title { font-weight: 600; font-size: var(--fs-body); }
.list-item__title b { color: var(--brand-text); font-weight: 700; }
.list-item__sub { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 1px; }
.list-item__right { color: var(--text-muted); flex: none; display: flex; align-items: center; gap: var(--sp-2); }

/* Лёгкая типографская метка группы внутри .list (товары/категории/запросы) —
   не полновесный .section__head, чтобы не перевешивать 2-3 строки под ней. */
.list__label {
  padding: var(--sp-3) var(--sp-4) var(--sp-1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================ АВАТАРЫ И РЕЙТИНГ ============================ */

.avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  background: var(--brand);
  position: relative;
}
.avatar img { width: 100%; height: 100%; }
.avatar--sm { width: 34px; height: 34px; font-size: var(--fs-xs); }
.avatar--lg { width: 68px; height: 68px; font-size: var(--fs-h2); }
.avatar--xl { width: 92px; height: 92px; font-size: var(--fs-h1); }
.avatar__online {
  position: absolute;
  right: 0; bottom: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success-500);
  border: 2.5px solid var(--surface);
}
/* Кольцо вокруг аватара продавца в ленте «сторис». */
.avatar-ring {
  padding: 2.5px;
  border-radius: var(--r-full);
  background: var(--accent-grad);
  display: inline-block;
}
.avatar-ring--seen { background: var(--border-strong); }
.avatar-ring .avatar { border: 2.5px solid var(--surface); }

.rating { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-sm); font-weight: 650; }
.rating .icon { color: #FFB020; }
.stars { display: inline-flex; gap: 2px; }
.stars .icon { color: var(--border-strong); }
.stars .icon.is-on { color: #FFB020; }

/* Уровень продавца. */
.level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.level--new { background: var(--surface-2); color: var(--text-muted); }
.level--verified { background: var(--info-bg); color: var(--info-500); }
.level--pro { background: var(--brand-soft); color: var(--brand-text); }
.level--top { background: linear-gradient(135deg, #FFB020, #FF7A00); color: #fff; }

/* ============================ ШТОРКА ============================ */

.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: var(--backdrop);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
  backdrop-filter: blur(2px);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-spring);
  box-shadow: var(--shadow-lg);
  padding-bottom: var(--safe-bottom);
  overflow: hidden;
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__panel--full { height: 92dvh; max-height: 92dvh; }
.sheet__grip {
  width: 40px; height: 4px;
  border-radius: var(--r-full);
  background: var(--border-strong);
  margin: var(--sp-3) auto var(--sp-1);
  flex: none;
}
.sheet__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  flex: none;
}
.sheet__title { font-size: var(--fs-h2); font-weight: 720; letter-spacing: -0.02em; flex: 1; }
.sheet__close {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid; place-items: center;
  flex: none;
}
.sheet__body { padding: var(--sp-2) var(--sp-4) var(--sp-4); overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--border);
  flex: none;
}

.dialog__text { color: var(--text-2); line-height: 1.5; }

/* ============================ ТОСТЫ ============================ */

.toast-host {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(var(--safe-top) + var(--sp-3));
  z-index: var(--z-toast);
  width: min(100% - 32px, calc(var(--maxw) - 32px));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  font-weight: 550;
  transform: translateY(-140%);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-spring), opacity var(--t-base) var(--ease-out);
}
.toast.is-in { transform: translateY(0); opacity: 1; }
.toast__icon { flex: none; display: grid; place-items: center; }
.toast__text { flex: 1; line-height: 1.35; }
.toast--success .toast__icon { color: var(--success-500); }
.toast--error .toast__icon { color: var(--danger-500); }
.toast--warning .toast__icon { color: var(--warning-500); }
.toast--info .toast__icon { color: var(--info-500); }

/* ============================ СКЕЛЕТОНЫ ============================ */

.sk {
  background: var(--skeleton);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--r-xs);
  height: 13px;
}
.sk--img { height: auto; aspect-ratio: 1; border-radius: var(--r-md); margin-bottom: var(--sp-2); }
.sk--line { margin-bottom: 7px; }
.sk--avatar { width: 44px; height: 44px; border-radius: var(--r-full); flex: none; }
.skeleton-group--product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); padding: 0 var(--sp-4); }
.sk-row { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); align-items: center; }
.sk-row__body { flex: 1; }
.sk-card { padding: var(--sp-4); background: var(--surface); border-radius: var(--r-lg); margin: 0 var(--sp-4) var(--sp-3); }

/* ============================ СУММА К ОПЛАТЕ ============================ */

/* Сколько спишет касса: крупно — в USDT, ниже — доллары и курс, ещё ниже —
   подсказка в валюте человека. Одна вёрстка для оформления, счёта,
   пополнения и вывода, чтобы цифры везде читались одинаково. */
.quote {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--brand-soft);
}
.quote__label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.quote__coin {
  font-size: var(--fs-h2);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.quote__line { font-size: var(--fs-sm); color: var(--text-muted); }
.quote__hint { font-size: var(--fs-xs); color: var(--text-muted); }

/* Вторая строка записи в истории: метка статуса и дата. */
.tx-row__sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 3px;
  min-width: 0;
}

/* Статус заявки на вывод или заказа — в строке истории. */
.tx-status {
  display: inline-block;
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  vertical-align: 1px;
}
.tx-status--pending { background: var(--warning-bg); color: var(--warning-500); }
.tx-status--done { background: var(--success-bg); color: var(--success-500); }
.tx-status--failed { background: var(--danger-bg); color: var(--danger-500); }
.tx-status--hold { background: var(--brand-soft); color: var(--brand-text); }
/* Оплата снаружи: баланс не менялся, поэтому сумма без знака и приглушена. */
.tx-row__sum.is-external { color: var(--text-muted); }
.tx-row--tap { cursor: pointer; }
.tx-row--tap:active { opacity: .7; }

/* ============================ ПУСТЫЕ СОСТОЯНИЯ ============================ */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-8) var(--sp-6);
  gap: var(--sp-3);
  animation: fade-up var(--t-slow) var(--ease-out);
  /* Пустое состояние часто попадает внутрь сетки товаров и становится её
     ячейкой — тогда оно занимало одну колонку из двух и уезжало влево, а
     текст ломался по три слова. Растягиваем на всю ширину; вне сетки
     grid-column просто ни на что не влияет. */
  grid-column: 1 / -1;
  width: 100%;
}
.empty__art { color: var(--brand); animation: float-soft 3.4s var(--ease-in-out) infinite; }
.empty__title { font-size: var(--fs-h3); font-weight: 700; }
.empty__text { color: var(--text-muted); font-size: var(--fs-sm); max-width: 30ch; line-height: 1.5; }
.empty__btn { margin-top: var(--sp-2); }
.empty--error .empty__art { color: var(--warning-500); animation: none; }

/* ============================ ПРОЧЕЕ ============================ */

/* Таймлайн заказа. */
.timeline { display: flex; flex-direction: column; gap: 0; padding-left: var(--sp-2); }
.tl-item { display: flex; gap: var(--sp-3); position: relative; padding-bottom: var(--sp-5); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: 13px; top: 28px; bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-item__dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-muted);
  display: grid; place-items: center;
  flex: none;
  z-index: 1;
  border: 2px solid var(--bg);
}
.tl-item--done .tl-item__dot { background: var(--success-bg); color: var(--success-500); }
.tl-item--current .tl-item__dot {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-soft);
  animation: pulse-ring 2s var(--ease-in-out) infinite;
}
.tl-item__body { flex: 1; padding-top: 3px; }
.tl-item__title { font-weight: 620; font-size: var(--fs-body); }
/* Комментарий продавца к шагу — ради него шаги и сделаны, поэтому он
   читается как текст, а не как подпись мелким серым. */
.tl-item__note {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tl-item__time { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 4px; }

/* Индикатор эскроу. */
.escrow {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--accent-grad-soft);
  border: 1px solid var(--brand-soft-2);
}
.escrow__bar {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  overflow: hidden;
  margin-top: var(--sp-3);
}
.escrow__fill {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--accent-grad);
  transition: width var(--t-slow) var(--ease-spring);
}

/* Таймер аукциона. */

/* Загрузчик «ещё» внизу бесконечной ленты. */
.load-more { display: grid; place-items: center; padding: var(--sp-5); }
.spinner {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}

/* Тянуть-чтобы-обновить. */
.ptr {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  height: 56px;
  color: var(--brand);
  opacity: 0;
  pointer-events: none;
}

/* Плитка статистики в панели продавца. */
.stat {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.stat__label { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.stat__value {
  font-size: var(--fs-h1);
  font-weight: 780;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.stat__delta { font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; }
.stat__delta--up { color: var(--success-500); }
.stat__delta--down { color: var(--danger-500); }

/* ====================== ПЛАВАЮЩАЯ КНОПКА ====================== */
/* Жила в стилях убранного раздела; сам раздел убрали, а кнопка «добавить
   товар» в панели продавца осталась — место ей среди общих компонентов. */

.fab {
  position: fixed;
  right: var(--sp-4);
  bottom: calc(var(--nav-h) + var(--safe-bottom) + var(--sp-4));
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-fast) var(--ease-spring);
}
.fab:active { transform: scale(.9); }
/* На узких экранах кнопка не должна вылезать за пределы контентной колонки. */
@media (min-width: 641px) {
  .fab { right: calc(50vw - var(--maxw) / 2 + var(--sp-4)); }
}

/* ====================== ВЫБОР ЗНАЧЕНИЯ ====================== */
/* Строка-кнопка «поле: значение ›», открывающая лист выбора. Тоже пришла
   из убранного раздела, но используется формой товара. */

.picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: var(--btn-h-md);
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-body);
  text-align: left;
  transition: background var(--t-fast) linear;
}
.picker:active { background: var(--surface-3); }
.picker__value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* «Где взять USDT»: ссылка у суммы к оплате и шаги в листе. */
.usdt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.usdt-link .icon { flex: none; }
.usdt-step { display: flex; gap: 12px; align-items: flex-start; }
.usdt-step__n {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand);
  background: var(--brand-soft);
}

/* Иконка в кнопке не сжимается, даже когда кнопке тесно: раньше в
   «В корзину» на узком экране корзина сплющивалась до полоски. */
.btn > .icon { flex: none; }

/* Выплата одобрена, но ждёт получателя: он ещё не запускал @CryptoBot. */
.tx-status--waiting { background: var(--info-bg); color: var(--info-500, #3b82f6); }
.cb-note .usdt-link { margin-top: 4px; }
