/* ============================================
   БАЛАНС — виджет в шапке, модалка пополнения, покупка подписки, история
   ============================================

   Палитра и радиусы — те же, что у соседей по шапке (см. css/header.css): #1A1A1A на
   подложке, #2A2A2A на рамке, #00E599 акцентом. Никакого backdrop-filter: живое размытие
   заметно тормозит на машине владельца (проверено), поэтому «стекло» здесь плоское.

   Все суммы набираются табличными цифрами: в истории и в списке цен числа стоят столбиком,
   и без tabular-nums разряды не совпадают между строками. */

/* ===== ВИДЖЕТ В ШАПКЕ ===== */
.balance-widget {
    position: relative;
    display: none; /* показывается из balance.js только авторизованным */
    align-items: center;
}
.balance-widget.is-ready { display: flex; }

.balance-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none; /* стал ссылкой на историю операций — подчёркивание тут ни к чему */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 5px 8px 5px 12px;
    cursor: pointer;
    font-family: inherit;
    color: #E8E8E8;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.balance-trigger:hover {
    border-color: rgba(0, 229, 153, 0.4);
    background: rgba(0, 229, 153, 0.06);
}
.balance-trigger:focus-visible {
    outline: 2px solid #00E599;
    outline-offset: 2px;
}
.balance-amounts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}
.balance-primary {
    font-size: 0.88rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.balance-secondary {
    font-size: 0.68rem;
    color: #8A8A8A;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.balance-caret {
    color: #666;
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}
.balance-widget.open .balance-caret { transform: rotate(180deg); }

.balance-topup-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: #00E599;
    color: #05140E;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.balance-topup-btn:hover {
    box-shadow: 0 0 16px rgba(0, 229, 153, 0.45);
    transform: scale(1.06);
}
.balance-topup-btn:focus-visible {
    outline: 2px solid #00E599;
    outline-offset: 2px;
}

/* ----- выпадающее меню ----- */
.balance-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 244px;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 14px;
    padding: 14px 14px 8px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 229, 153, 0.05);
    z-index: 120;
    display: none;
    flex-direction: column;
}
.balance-widget.open .balance-dropdown { display: flex; }

.balance-dropdown-amount {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.balance-dropdown-eq {
    font-size: 0.74rem;
    color: #8A8A8A;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
    margin-bottom: 12px;
}
.balance-menu-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #E8E8E8;
    font-family: inherit;
    font-size: 0.83rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.balance-menu-row:hover { background: rgba(255, 255, 255, 0.05); }
.balance-menu-row.accent { color: #00E599; }
.balance-menu-row.accent:hover { background: rgba(0, 229, 153, 0.1); }
.balance-menu-row .ico { width: 16px; text-align: center; flex-shrink: 0; }
.balance-menu-row .tail { margin-left: auto; color: #666; font-size: 0.75rem; }

/* ===== МОДАЛКА ПОПОЛНЕНИЯ ===== */
.balance-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 20px;
}
.balance-modal.open { display: flex; }

.balance-modal__box {
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}
.balance-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #242424;
}
.balance-modal__title { font-size: 1rem; font-weight: 650; }
.balance-modal__close {
    background: transparent;
    border: none;
    color: #777;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    font-family: inherit;
}
.balance-modal__close:hover { color: #E8E8E8; background: rgba(255, 255, 255, 0.05); }
.balance-modal__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

/* ----- поле суммы ----- */
.balance-amount-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #101110;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s ease;
}
.balance-amount-field:focus-within { border-color: rgba(0, 229, 153, 0.5); }
.balance-amount-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #E8E8E8;
    font-family: inherit;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    /* Стрелки у number-инпута в поле суммы только мешают: шаг в 1 единицу бессмыслен
       и для рублей, и для тенге, а кликать по ним точно никто не станет. */
    -moz-appearance: textfield;
}
.balance-amount-field input::-webkit-outer-spin-button,
.balance-amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.balance-amount-field .cur { color: #666; font-size: 1.05rem; font-weight: 600; flex-shrink: 0; }

.balance-quick { display: flex; gap: 7px; flex-wrap: wrap; }
.balance-chip {
    border: 1px solid #2A2A2A;
    background: transparent;
    color: #9A9A9A;
    border-radius: 9px;
    padding: 7px 13px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.15s ease;
}
.balance-chip:hover { color: #E8E8E8; border-color: #3A3A3A; }
.balance-chip.on {
    background: rgba(0, 229, 153, 0.12);
    border-color: rgba(0, 229, 153, 0.4);
    color: #00E599;
}

/* ----- способы оплаты ----- */
.balance-methods { display: flex; flex-direction: column; gap: 8px; }
.balance-method {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 11px 13px;
    background: #1F211F;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    color: #E8E8E8;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.balance-method:hover:not(:disabled) { border-color: #3A3A3A; }
.balance-method.on {
    border-color: rgba(0, 229, 153, 0.45);
    background: rgba(0, 229, 153, 0.08);
}
.balance-method:disabled { opacity: 0.42; cursor: not-allowed; }
.balance-method .m-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #101110;
    border: 1px solid #262826;
    font-size: 0.95rem;
    flex-shrink: 0;
}
/* Колонка обязательна: name и meta — оба <span>, и без неё они встают в одну строку
   («Заявка на пополнениеПроверим и зачислим вручную»). */
.balance-method .m-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.balance-method .m-name { font-size: 0.85rem; font-weight: 600; }
.balance-method .m-meta { font-size: 0.7rem; color: #777; line-height: 1.35; }
.balance-method .m-soon {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    border: 1px solid #2F2F2F;
    border-radius: 5px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.balance-cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    background: #00E599;
    color: #05140E;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.balance-cta:hover:not(:disabled) { box-shadow: 0 0 26px rgba(0, 229, 153, 0.4); }
.balance-cta:disabled { opacity: 0.45; cursor: not-allowed; }

.balance-note {
    font-size: 0.73rem;
    color: #6E726E;
    line-height: 1.45;
    border-top: 1px solid #242424;
    padding-top: 12px;
    margin: 0;
}

/* ===== ПОКУПКА ПОДПИСКИ (вкладка «Тариф и оплата») ===== */
.buy-block { display: flex; flex-direction: column; gap: 16px; padding: 4px 8px 8px; }

.buy-tiers { display: flex; gap: 7px; flex-wrap: wrap; }
.buy-tier {
    border: 1px solid #2A2A2A;
    background: transparent;
    color: #9A9A9A;
    border-radius: 10px;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.buy-tier:hover { color: #E8E8E8; border-color: #3A3A3A; }
.buy-tier.on {
    background: rgba(0, 229, 153, 0.12);
    border-color: rgba(0, 229, 153, 0.45);
    color: #00E599;
}

.buy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.buy-card {
    position: relative;
    background: #1F211F;
    border: 1px solid #2A2A2A;
    border-radius: 13px;
    padding: 14px;
    text-align: left;
    font-family: inherit;
    color: #E8E8E8;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.buy-card:hover { border-color: #3A3A3A; }
.buy-card.on {
    border-color: rgba(0, 229, 153, 0.45);
    background: rgba(0, 229, 153, 0.08);
}
.buy-card .c-days { font-size: 0.95rem; font-weight: 650; }
.buy-card .c-price {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
}
.buy-card .c-per { font-size: 0.71rem; color: #6E726E; font-variant-numeric: tabular-nums; margin-top: 2px; }
.buy-card .c-tag {
    position: absolute;
    top: -8px;
    right: 10px;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #00E599;
    color: #05140E;
    border-radius: 5px;
    padding: 2px 7px;
}

.buy-custom { display: flex; flex-direction: column; gap: 9px; }
.buy-custom-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    color: #6E726E;
}
.buy-custom-head .days { color: #E8E8E8; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: #2A2A2A;
    outline: none;
    cursor: pointer;
}
.buy-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00E599;
    border: 3px solid #0A0A0A;
    box-shadow: 0 0 0 1px rgba(0, 229, 153, 0.5);
    cursor: pointer;
}
.buy-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00E599;
    border: 3px solid #0A0A0A;
    cursor: pointer;
}
.buy-range:focus-visible { outline: 2px solid #00E599; outline-offset: 4px; }

.buy-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: #101110;
    border: 1px solid #242424;
    border-radius: 13px;
    padding: 14px 16px;
}
.buy-total .t-price {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.buy-total .t-per { font-size: 0.75rem; color: #8A8A8A; font-variant-numeric: tabular-nums; margin-top: 2px; }
.buy-total .t-right { text-align: right; font-size: 0.75rem; color: #8A8A8A; line-height: 1.5; font-variant-numeric: tabular-nums; }
.buy-total .t-save { color: #00E599; font-weight: 600; }

.buy-blocker {
    font-size: 0.8rem;
    color: #FFB347;
    background: rgba(255, 179, 71, 0.08);
    border: 1px solid rgba(255, 179, 71, 0.25);
    border-radius: 11px;
    padding: 11px 14px;
    line-height: 1.45;
}
.buy-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.buy-actions .balance-cta { width: auto; flex: 1; min-width: 200px; }
/* Когда кнопка в ряду одна (карточка кошелька), растягивать её на всю ширину карточки
   незачем — это делает её похожей на баннер, а не на кнопку. */
.buy-actions--single .balance-cta { flex: 0 0 auto; min-width: 0; }
/* Вторичная кнопка. Имя с префиксом: «ghost» слишком общее, чтобы заводить его глобально
   в проекте, где стили страниц лежат вперемешку с общими. */
.bal-ghost {
    background: transparent;
    border: 1px solid #2A2A2A;
    color: #E8E8E8;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}
.bal-ghost:hover { border-color: rgba(0, 229, 153, 0.4); color: #00E599; }

/* ===== ИСТОРИЯ ОПЕРАЦИЙ ===== */
.ops-wrap { overflow-x: auto; }
.ops-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 520px;
}
.ops-table th {
    text-align: left;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6E726E;
    padding: 11px 14px;
    border-bottom: 1px solid #242424;
    white-space: nowrap;
}
.ops-table th.num, .ops-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #1E1E1E;
    vertical-align: middle;
}
.ops-table tr:last-child td { border-bottom: none; }
.ops-op { display: flex; align-items: center; gap: 10px; }
.ops-ico {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #101110;
    border: 1px solid #242424;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.ops-sub { font-size: 0.71rem; color: #6E726E; }
.ops-when { color: #6E726E; font-size: 0.78rem; white-space: nowrap; }
.ops-amt { font-weight: 650; white-space: nowrap; }
.ops-amt.pos { color: #00E599; }
.ops-after { color: #8A8A8A; white-space: nowrap; }
.ops-empty { padding: 30px 16px; text-align: center; color: #6E726E; font-size: 0.85rem; }
.ops-more { margin: 12px auto 0; display: block; }
/* display:block выше перебивает [hidden] из браузерного стиля (класс сильнее тега), и кнопка
   «Показать ещё» висела даже когда показывать нечего. */
.ops-more[hidden] { display: none; }

@media (max-width: 768px) {
    /* В шапке телефона рублёвый эквивалент — первое, чем можно пожертвовать:
       доллар остаётся, а строка перестаёт распирать и без того тесную шапку. */
    .balance-secondary { display: none; }
    .balance-dropdown { right: -10px; width: 230px; }
}

/* ===== СМЕНА ТАРИФА (2026-09-24) ===== */
.buy-days { display: flex; flex-direction: column; gap: 16px; }
.buy-days[hidden], .buy-change[hidden] { display: none; }
.buy-tier { display: inline-flex; align-items: center; gap: 6px; }
.bt-mark {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A8F8A;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    padding: 1px 5px;
}
.bt-dir { font-size: 0.8rem; font-weight: 800; line-height: 1; }
.bt-dir.up { color: #00E599; }
.bt-dir.down { color: #F0B35B; }

.buy-change {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #101110;
    border: 1px solid #242424;
    border-radius: 13px;
    padding: 14px 16px;
}
.buy-change.is-in { animation: chg-in 0.35s cubic-bezier(.2, .8, .2, 1); }
@keyframes chg-in { from { opacity: 0; transform: translateY(6px); } }
.chg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chg-kind {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 99px;
    padding: 4px 10px;
    margin-right: 4px;
}
.chg-kind.up { color: #00E599; background: rgba(0, 229, 153, 0.12); }
.chg-kind.down { color: #F0B35B; background: rgba(240, 179, 91, 0.12); }
.chg-kind.same { color: #7CC4FF; background: rgba(124, 196, 255, 0.12); }
.chg-arrow { color: #6E726E; font-weight: 700; }
.chg-sub { margin: 0; font-size: 0.82rem; color: #9A9F9A; }
.chg-sub b { color: #E8E8E8; }
.chg-lines { list-style: none; margin: 0; padding: 0; }
.chg-lines li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    font-size: 0.84rem;
    color: #9A9F9A;
}
.chg-lines li + li { border-top: 1px solid #1E201E; }
.chg-lines b { color: #E8E8E8; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg-lines b.neg, .chg-lines b.pos { color: #00E599; }
.chg-lines b.fee { color: #F0B35B; }
.chg-lose {
    background: rgba(240, 179, 91, 0.07);
    border: 1px solid rgba(240, 179, 91, 0.22);
    border-radius: 11px;
    padding: 10px 13px;
}
.chg-lose__h { font-size: 0.75rem; font-weight: 700; color: #F0B35B; margin-bottom: 6px; }
.chg-lose ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.chg-lose li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #9A9F9A; }
.chg-lose s { color: #6E726E; }
.chg-lose b { color: #E8E8E8; }
.chg-note {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #A6ABA6;
    background: #151715;
    border: 1px solid #242624;
    border-radius: 10px;
    padding: 9px 12px;
}
.chg-note svg { flex: none; width: 16px; height: 16px; color: #F0B35B; margin-top: 1px; }

.balance-cta { transition: box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease; }
.balance-cta.is-down {
    background: rgba(240, 179, 91, 0.14);
    color: #F5C27A;
    box-shadow: inset 0 0 0 1px rgba(240, 179, 91, 0.4);
}
.balance-cta.is-down:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(240, 179, 91, 0.7), 0 0 22px rgba(240, 179, 91, 0.18); }

/* Окно отмены: снизу по центру, выезжает мягко; кольцо убывает одной анимацией за --dur. */
.undo-toast {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(460px, calc(100vw - 32px));
    padding: 12px 12px 12px 14px;
    border-radius: 16px;
    background: #1A1F1C;
    border: 1px solid #2B312D;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 24px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(.2, .8, .2, 1), visibility 0.35s;
}
.undo-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.undo-ring { position: relative; flex: none; width: 40px; height: 40px; }
.undo-ring svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.undo-ring circle { fill: none; stroke-width: 3; }
.undo-ring .bg { stroke: #2A302D; }
.undo-ring .fg {
    stroke: #00E599;
    stroke-linecap: round;
    stroke-dasharray: 106.8;
    stroke-dashoffset: 0;
}
.undo-toast.is-on .undo-ring .fg { animation: undo-ring var(--dur, 15000ms) linear forwards; }
@keyframes undo-ring { to { stroke-dashoffset: 106.8; } }
.undo-ring span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #E8E8E8;
}
.undo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.undo-txt b { font-size: 0.88rem; color: #F2F2F2; }
.undo-txt span { font-size: 0.78rem; color: #9A9F9A; line-height: 1.4; }
.undo-btn {
    flex: none;
    border: 1px solid #333A36;
    background: #232825;
    color: #E8E8E8;
    border-radius: 11px;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.undo-btn:hover:not(:disabled) { border-color: rgba(0, 229, 153, 0.5); color: #00E599; }
.undo-btn:disabled { opacity: 0.6; cursor: default; }
.undo-done {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 229, 153, 0.12);
    color: #00E599;
    animation: undo-pop 0.4s cubic-bezier(.2, .8, .2, 1);
}
.undo-done svg { width: 20px; height: 20px; }
@keyframes undo-pop { from { transform: scale(0.6); opacity: 0; } }
@media (max-width: 480px) {
    .undo-toast { gap: 11px; }
    .undo-btn { padding: 9px 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .buy-change.is-in, .undo-done { animation: none; }
    .undo-toast { transition: opacity 0.2s ease; }
}
