/* IMISTORE: телефон (26.09, по аудиту мобильной витрины). Подключается последним - поверх main/v2/market.
   Главное: первый экран - товар, всё нужное достаётся большим пальцем, ничего не уходит под меню и клавиатуру. */

/* Блокировка прокрутки под шторками: прокручивается окно, поэтому запираем html, а не body */
html:has(body.mk-lock), html:has(body.co-lock), html:has(body.mk-drop) { overflow: hidden; }

/* ---------- поиск: строки коллекций ---------- */
.sr-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.sr-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.sr-row:hover, .sr-row:focus-visible { background: rgba(255, 255, 255, .05); }
.sr-row__pic { width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; background: #1a1a1a; }
.sr-row__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-row__text { display: flex; flex-direction: column; min-width: 0; }
.sr-row__text b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-row__text span { font-size: 12.5px; color: #8A8A8A; margin-top: 2px; }
.search-chips a.search-chip { text-decoration: none; }

/* ---------- шапка: скрывается при листании вниз ---------- */
.header { transition: transform .25s cubic-bezier(.22, .8, .26, 1); }
.header.is-hidden { transform: translateY(-110%); }

@media (max-width: 1023px) {
    /* iPhone увеличивает страницу при фокусе на поле со шрифтом меньше 16px */
    input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 767px) {
    /* Шапка - одна строка 56px: логотип · поиск (иконка) · поддержка (иконка) · вход */
    .header {
        flex-wrap: nowrap !important; align-items: center; gap: 6px !important; min-height: 56px;
        padding: 6px 0 !important; margin-bottom: 14px !important;
    }
    .header__logo { flex: 1 1 auto; min-width: 0; }
    .header__logo-text { font-size: 20px; }
    /* 27.09 (заказчик: «на мобилке глаз убого, зрачок огромный»): все размеры глаза в px, и ужатый до 34x20 глаз
       получал зрачок 24px во всю высоту и прежний блик. Теперь глаз ПК целиком уменьшается пропорционально. */
    .header__logo-eye { width: 58px !important; height: 36px !important; zoom: .6; flex: none; }
    .header__search { order: 2; flex: 0 0 44px !important; max-width: 44px !important; margin: 0 !important; }
    .header__search .search-box { width: 44px; height: 44px !important; padding: 0 !important; justify-content: center; cursor: pointer; }
    .header__search .search-box__input { display: none; }
    .header__search .search-box__icon { margin: 0; }
    .header__actions { order: 3; gap: 6px !important; flex: none; }
    .header__support { width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; }
    .header__support span { display: none; }
    .header .btn--primary#loginBtn { height: 40px; padding: 0 14px !important; font-size: 14px; }
    .header__user-btn { width: 40px !important; height: 40px !important; }

    /* Профиль: три вкладки одним рядом (на 375px «Продажи» уезжали на вторую строку) */
    .profile-tabs-new { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; }
    .profile-tab-new { min-width: 0; min-height: 44px; padding: 0 8px !important; justify-content: center; white-space: nowrap; font-size: 14px; }

    /* Касания: не меньше 44px */
    .bottom-nav__item { min-height: 52px; }
    .footer a { display: inline-block; padding: 10px 0; }
    .to-top { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- /market на телефоне ---------- */
@media (max-width: 767px) {
    .mk-head { margin-bottom: 12px !important; }
    .mk-title { font-size: 24px !important; letter-spacing: -0.02em; }
    .mk-sub { display: none; }
    .mk-tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
    .mk-tabs::-webkit-scrollbar { display: none; }
    .mk-tab { min-height: 44px; white-space: nowrap; }
    /* чипы фильтров - одна прокручиваемая строка, липкая под шапкой */
    .mk-quick {
        position: sticky; top: 0; z-index: 30; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
        margin: 0 -15px 10px !important; padding: 8px 15px !important; background: rgba(10, 10, 10, .92);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    }
    .mk-quick::-webkit-scrollbar { display: none; }
    .mk-chip { height: 44px !important; flex: none; }
    .mk-sort select, .mk-toolbar select { min-height: 44px; max-width: 100%; }
    .mk-toolbar__right, .mk-sort { min-width: 0; max-width: 100%; }   /* 26.09: на 375px select вылезал за край на 10px */
    .mk-tag { min-height: 36px; }
}

@media (max-width: 1023px) {
    /* Фильтр - нижняя шторка поверх всего (раньше раскрывался под кнопками и уходил под нижнее меню) */
    .mk-side {
        position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; z-index: 1150 !important;
        display: flex !important; flex-direction: column; max-height: 86dvh; border-radius: 20px 20px 0 0 !important;
        transform: translateY(24px) !important;
    }
    .mk-side.is-open { transform: none !important; }
    .mk-side::before { content: ""; display: block; flex: none; width: 40px; height: 4px; border-radius: 4px; background: #3a3a3a; margin: 8px auto 2px; }
    .mk-side__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; max-height: none !important; padding: 10px 16px 6px !important; }
    .mk-list { max-height: none !important; }
    .mk-side .mk-find, .mk-side .mk-group input[type="search"] { position: sticky; top: 0; z-index: 2; }
    .mk-side__foot { flex: none; background: var(--mk-surface, #111); padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
    .mk-apply { height: 50px !important; }
    body.mk-drop .bottom-nav, body.mk-drop .to-top { display: none !important; }
    .mk-drop-fog { position: fixed; inset: 0; z-index: 1140; background: rgba(0, 0, 0, .6); animation: mk-fade .2s; }
    .mk-drop-fog[hidden] { display: none; }
}

/* Карточка подарка: цена и «Купить» всегда на экране, крестик не уезжает */
@media (max-width: 800px) {
    .mk-sheet__card { max-height: 92dvh !important; overscroll-behavior: contain; }
    .mk-sheet__media, .mk-sheet__media img { height: min(300px, 36dvh) !important; }
    .mk-sheet__close { position: sticky !important; top: 10px; margin: 10px 10px -54px auto; width: 44px !important; height: 44px !important; }
    .mk-sheet__card { display: block !important; }
    .mk-sheet__price { margin-top: 12px; }
    .mk-sheet__actions {
        position: sticky; bottom: 0; z-index: 3; margin: 12px -18px 0 !important; padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(17, 17, 17, 0), var(--mk-surface, #111) 30%);
        flex-direction: column;
    }
    .mk-buy { height: 52px !important; }
    .mk-open { height: auto !important; padding: 8px 0 !important; justify-content: center; background: none !important; border: 0 !important; color: #9A9A9A !important; text-decoration: underline; text-underline-offset: 3px; }
    .mk-sheet__body { padding-bottom: 0 !important; }
}

/* ---------- главная: плитки разделов вместо заглушки (26.09) ---------- */
/* 29.09: текст слева, настоящий знак раздела справа (подарок из каталога, звёзды, Premium, TON) */
.shop-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shop-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 92px; padding: 16px 16px 16px 18px;
    border-radius: 16px; text-decoration: none; overflow: hidden;
    background: var(--v2-surface, #111); border: 1px solid var(--v2-line, rgba(255,255,255,.06)); color: var(--v2-text, #F5F5F5);
    transition: border-color .2s;
}
.shop-tile:hover { border-color: rgba(255, 255, 255, .2); }
.shop-tile__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-tile b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.shop-tile__text span { font-size: 12.5px; color: #8A8A8A; }
.shop-tile__art { flex: none; width: 52px; height: 52px; object-fit: contain; transition: transform .25s cubic-bezier(0.22, 0.8, 0.26, 1); }
img.shop-tile__art { width: 60px; height: 60px; margin: -4px -4px -4px 0; }
.shop-tile:hover .shop-tile__art { transform: translateY(-2px) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .shop-tile:hover .shop-tile__art { transform: none; } }
@media (max-width: 767px) {
    .shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .shop-tile { min-height: 76px; padding: 12px 10px 12px 14px; gap: 8px; }
    .shop-tile b { font-size: 15px; }
    .shop-tile__text span { font-size: 12px; }
    .shop-tile__art { width: 40px; height: 40px; }
    img.shop-tile__art { width: 48px; height: 48px; }
    /* 3D-блок на телефоне ниже: первый экран - не только украшение */
    .v2-scene { height: 280px !important; margin-bottom: 16px !important; }
    .v2-scene__copy { top: 20px !important; }
    .v2-scene__title { font-size: 23px !important; }
    .v2-scene__text { display: none; }
    .v2-scene__link { margin-top: 14px !important; }
    .hero-slider { margin-bottom: 16px; }
    /* 28.09: лента картинок вместо 3D (слабый телефон, экономия трафика) - в потоке под кнопкой, а не поверх неё */
    .v2-scene.is-flat { height: auto !important; padding: 20px 20px 22px; }
    .v2-scene.is-flat::before { display: none; }
    .v2-scene.is-flat .v2-scene__copy { position: static; transform: none; max-width: none; }
    .v2-scene.is-flat .v2-scene__flat {
        position: static; transform: none; margin-top: 18px;
        grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    }
    .v2-scene.is-flat .v2-scene__flat img { width: 100%; height: auto; aspect-ratio: 1; }
}

/* ---------- окно входа: Telegram первым, крестик (26.09) ---------- */
.login-card { position: relative; }
.login-card__close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none;
    color: #9A9A9A; font-size: 26px; line-height: 1; cursor: pointer; }
.login-card__close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.auth-tg { display: flex; justify-content: center; min-height: 44px; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: #6B6B6B; font-size: 12.5px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.auth-input::placeholder { color: #6B6B6B !important; }

/* ---------- звёзды / Premium / TON: один акцент сайта (26.09, аудит M11) ----------
   Цвет товара остаётся только на иконке; кнопки и выбранные варианты - красные, как везде на сайте. */
.stars-panel__buy, .premium-panel__buy, #tonPanel .stars-panel__buy {
    background: #E50914 !important; color: #fff !important; min-height: 52px;
}
.stars-panel__buy:hover, .premium-panel__buy:hover { background: #F2121E !important; }
.stars-preset:hover, .premium-plan:hover { border-color: rgba(229, 9, 20, .45) !important; }
.stars-preset.active, #tonPanel .stars-preset.active, .premium-plan.active {
    background: rgba(229, 9, 20, .10) !important; border-color: rgba(229, 9, 20, .75) !important; color: #fff !important;
}
.stars-panel__note b { color: #F5F5F5 !important; }
/* иконки панелей: без своих цветов (жёлтый, фиолетовый, голубой) - красный на красной подложке, как плитки главной */
.pay-head__icon--star, .pay-head__icon--premium, .pay-head__icon--ton { background: rgba(229, 9, 20, .10) !important; color: #E50914 !important; }
.stars-preset { min-height: 44px; }

/* ---------- аватарка: ровный круг (26.09) ----------
   Край был зубчатым: у картинки image-rendering: crisp-edges (сглаживание выключено), а сам круг - отдельный слой GPU
   (translateZ(0)), где Chrome режет скругление без сглаживания. Плюс внутренний круг был меньше рамки (52 в 70 px -
   толстое серое кольцо) или больше кнопки (41 в 40 px - подрезанный край). Теперь картинка заполняет круг целиком,
   сглаживание включено, слой не выносится, обводка - тонкая линия. */
.default-avatar, .profile-avatar, .header__user-btn {
    transform: none !important; -webkit-transform: none !important; backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
}
.default-avatar img, .profile-avatar img, .header__user-btn img {
    image-rendering: auto !important; transform: none !important; -webkit-transform: none !important;
    backface-visibility: visible !important; border-radius: 50%;
}
/* 27.09 (пользователь: «до сих пор битые края»): круг обрезался трижды (кнопка, .default-avatar, картинка), у каждого
   слоя свой фон (#1D1D1D, #222, чёрная картинка), и поверх тонкое кольцо в 1px - на экранах обычной плотности это
   лесенка. Теперь обрезает только внешний круг, фон чёрный как у картинки, кольца нет. */
.profile-avatar .default-avatar, .header__user-btn .default-avatar, .settings-avatar-circle .default-avatar {
    width: 100% !important; height: 100% !important; border-radius: 0 !important; overflow: visible !important;
    background: transparent !important;
}
.profile-avatar img, .header__user-btn img, .settings-avatar-circle img { border-radius: 0 !important; display: block; }
.profile-avatar, .header__user-btn, .settings-avatar-circle {
    background: #000 !important; border: 0 !important; border-radius: 50% !important; overflow: hidden !important;
    box-shadow: none !important;
}
.profile-avatar { box-shadow: 0 12px 30px rgba(0, 0, 0, .35) !important; }
.default-avatar { background: #000 !important; }

/* ---------- окна оплаты: без оранжевого (26.09) - комиссия и подсказки серым, как весь вспомогательный текст ---------- */
.payment-method__fee { color: #9A9A9A !important; }
.payment-method.selected .payment-method__fee { color: #F5F5F5 !important; }
.purchase-modal__manual-title { color: #F5F5F5 !important; }
.auth-spam-hint { color: #CFCFCF !important; background: rgba(255, 255, 255, .04) !important; border-color: rgba(255, 255, 255, .08) !important; }
.pwd-strength__fill--weak { background: #E50914 !important; }
.pwd-strength__fill--medium { background: #6B6B6B !important; }
.pwd-strength__fill--good { background: #9A9A9A !important; }
.pwd-strength__fill--strong { background: #F5F5F5 !important; }

/* =====================================================================================================
   26.09 вечер: правки по аудиту маркета (scratchpad market_audit.md, номера пунктов в комментариях)
   ===================================================================================================== */

/* п. 1: выдача поиска - обычный список, а не ячейки сетки по 90px («Sc…», цена по словам) */
#searchGrid { display: block; }
.sr-list, .search-section-title { grid-column: 1 / -1; }
.sr-row__pic--icon { display: grid; place-items: center; color: #F5F5F5; background: #1D1D1D; }
.search-box__close { width: 44px; height: 44px; background: rgba(255, 255, 255, .06); font-size: 22px; }
.search-box__close:hover { background: rgba(255, 255, 255, .12); }
.search-chip.active { border-color: rgba(229, 9, 20, .6); background: rgba(229, 9, 20, .10); box-shadow: none; }
.search-chip { min-height: 44px; }

/* п. 5: крестик окна входа поверх заголовка; п. 12: строка «Войдите, чтобы купить …» */
.login-card__close { z-index: 2; }
.login-card__title { padding: 0 48px; margin-bottom: 14px; }
.login-card__reason { margin: -4px 0 18px; text-align: center; font-size: 14px; line-height: 1.45; color: #9A9A9A; }
.login-card__reason[hidden] { display: none; }
.auth-register-link a, .auth-links a { color: #FF4A53; }
button.auth-back { background: none; border: 0; padding: 0; font: inherit; color: var(--text-gray, #9A9A9A); cursor: pointer; min-height: 44px; }
html.login-open { overflow: hidden; }

/* п. 24: тосты на телефоне - внизу над меню, не поверх окон и кнопок; на ПК - справа сверху, как было */
@media (max-width: 767px) {
    .toast-container { top: auto; right: 12px; left: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); gap: 8px; }
    .toast { min-width: 0; max-width: none; padding: 12px 14px; border-radius: 14px; animation-name: toastUp; }
    @keyframes toastUp { from { opacity: 0; transform: translateY(12px); } }
}
.toast__close { background: none; border: 0; min-width: 32px; min-height: 32px; justify-content: center; }

/* п. 6: чипы фильтров прилипают под шапкой, пока она видна (--hdr-shift ставит main.js) */
@media (max-width: 767px) {
    .mk-quick { top: var(--hdr-shift, 0px); transition: top .25s cubic-bezier(.22, .8, .26, 1); }
}

/* п. 2, 17: карточка подарка на телефоне и планшете - кнопка «Купить» нормального размера, фото целиком */
@media (max-width: 800px) {
    .mk-buy { flex: none !important; min-height: 52px; }
    .mk-sheet__card { width: 100%; max-width: 560px; margin: 0 auto; }
    .mk-sheet__media { display: flex !important; justify-content: center; height: auto !important; min-height: 0 !important;
        padding: 14px 16px 0; background: none !important; }
    .mk-sheet__media img { width: min(100%, 38dvh, 360px) !important; height: auto !important; min-height: 0 !important;
        aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: var(--mk-surface-2, #161616); }
    .mk-sheet__price { display: none; }          /* цена уже на кнопке «Купить за N ₽», вторая уходила под липкий блок */
    .mk-sheet__close { background: rgba(10, 10, 10, .72) !important; }
}

/* п. 14: шторка фильтра знает, что открыто, и закрывается крестиком; «Модель» без коллекции - не тупик */
.mk-side__head { display: none; }
@media (max-width: 1023px) {
    .mk-side__head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 4px 8px 0 16px; }
    .mk-side__head b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
    .mk-side__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px;
        background: none; color: #9A9A9A; cursor: pointer; }
    .mk-side__close:hover { color: #F5F5F5; background: rgba(255, 255, 255, .06); }
    .mk-apply:disabled { opacity: .6; cursor: progress; }
}
.mk-hint p { margin: 0; }
.mk-hint__btn { margin-top: 12px; min-height: 44px; }

/* п. 23: блокировка - не жёлтым, а текстом с замком */
.mk-sheet__state.is-locked::before, .mk-lot__flag--lock::before {
    content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* п. 25: звёзды / Premium / TON без карточек «шаг 1-2-3»; подсказка о количестве под полем */
.stars-panel, .premium-panel { grid-template-columns: minmax(0, 560px) !important; }
.stars-panel__warn { margin-top: 10px; font-size: 13px; color: #FF4A53; }
.stars-panel__warn[hidden] { display: none; }

/* п. 25: оплата - без декоративной карты (плитки разделов на главной - выше, 29.09) */
.v2-tile--rub .v2-methods { margin-top: auto; padding-top: 16px; }

/* п. 29: касания не меньше 44px на телефоне и планшете */
@media (max-width: 1023px) {
    .mk-chip { height: 44px !important; }
    .mk-sort select { min-height: 44px; }
    .mk-tag { min-height: 44px; }
    .modal__close { min-width: 44px; min-height: 44px; }
    .home-section__link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* п. 40: ПК - одна полоса прокрутки у списков фильтров, у колонки своей не видно */
@media (min-width: 1024px) {
    .mk-side__scroll { scrollbar-width: none; }
    .mk-side__scroll::-webkit-scrollbar { display: none; }
}

/* п. 46: круг аватарки в настройках - как в шапке и профиле */
/* круг настроек - в общем правиле аватарки выше (одна обрезка, без кольца) */
.settings-avatar-circle img, .settings-avatar-circle .default-avatar { width: 100% !important; height: 100% !important;
    image-rendering: auto !important; transform: none !important; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
    .mk-quick, .header { transition: none !important; }
}

/* заголовок страницы уже называет вкладку (Звёзды Telegram / Telegram Premium / Купить TON) - в панели не повторяем */
.mk .stars-panel__title, .mk .premium-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mk .pay-head { align-items: center; }

/* п. 34: окно пополнения - пресеты и способы оплаты выбираются с клавиатуры, иконка без своего оттенка */
button.balance-preset { font: inherit; font-weight: 700; min-height: 44px; }
.balance-modal__label { color: #9A9A9A; font-size: 13px; margin-bottom: 15px; }
#balanceModal .modal__title svg { color: #E50914; }
.payment-method:focus-visible, .balance-preset:focus-visible { outline: 2px solid rgba(229, 9, 20, .75); outline-offset: 2px; }

/* 27.09: окно «Выставляем счёт» - сразу по нажатию на оплату криптой, до ответа сервера */
.pay-loading { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px;
    background: rgba(0, 0, 0, .72); animation: mk-fade .15s; }
.pay-loading[hidden] { display: none; }
.pay-loading__card { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 28px 22px 24px; border-radius: 20px; background: #111; border: 1px solid rgba(255, 255, 255, .12);
    text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.pay-loading__spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12);
    border-top-color: #E50914; animation: pay-spin .8s linear infinite; margin-bottom: 6px; }
.pay-loading__title { font-size: 18px; font-weight: 700; color: #F5F5F5; }
.pay-loading__sub { font-size: 14px; line-height: 1.45; color: #9A9A9A; }
.pay-loading.is-error .pay-loading__spin { animation: none; border-color: #E50914; position: relative; }
.pay-loading.is-error .pay-loading__spin::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center;
    color: #E50914; font-weight: 800; font-size: 20px; }
.pay-loading__close { margin-top: 10px; min-height: 44px; padding: 0 22px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14);
    background: #1D1D1D; color: #F5F5F5; font: inherit; font-weight: 600; cursor: pointer; }
html.pay-loading-open { overflow: hidden; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-loading__spin { animation-duration: 2.4s; } }

/* 27.09: карточка проданного подарка */
.mk-sheet.is-sold .mk-sheet__media img { filter: grayscale(.85) brightness(.7); }
.mk-sheet.is-sold .mk-sheet__state { color: #FF4A53; }
.mk-buy:disabled { background: #1D1D1D !important; color: #8A8A8A !important; cursor: not-allowed; }

/* браузеры без zoom (старый Firefox): тот же глаз уменьшаем трансформацией и отдаём место */
@supports not (zoom: 1) {
    @media (max-width: 767px) {
        .header__logo-eye { transform: scale(.6); margin: -7px -12px; }
    }
}

/* 27.09: главные кнопки и выбранные состояния - плоский красный сайта, как на маркете: без градиентов до #990000,
   красных свечений и подпрыгивания при наведении (это читалось как шаблон) */
.btn--primary, .auth-submit-btn, .btn-topup {
    background: #E50914 !important; box-shadow: none !important; border: 0 !important; transform: none !important;
    transition: background .15s !important;
}
.btn--primary:hover, .auth-submit-btn:hover, .btn-topup:hover { background: #F2121E !important; transform: none !important; box-shadow: none !important; }
.btn--primary:active, .auth-submit-btn:active, .btn-topup:active { background: #C40812 !important; transform: none !important; }
.filter-chip.active, .list-option.active { box-shadow: none !important; background: rgba(229, 9, 20, .10) !important; border-color: rgba(229, 9, 20, .75) !important; }
.profile-tab-new.active { background: rgba(229, 9, 20, .10) !important; border-color: rgba(229, 9, 20, .75) !important; box-shadow: none !important; }
.settings-card, .settings-modal { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8) !important; }
.settings-modal { background: #111 !important; border-color: rgba(255, 255, 255, .12) !important; border-radius: 24px !important; }
.page-404__code { text-shadow: none !important; }

/* 27.09: пока проверяется сохранённый вход, кнопка «Войти» не мелькает у залогиненного */
html.auth-pending #loginBtn { visibility: hidden; }

/* 27.09: остальные аватарки (отзывы, выбор аватарки, настройки) - тот же чистый край: чёрный фон как у картинки,
   без внутреннего кольца и вложенных обрезок */
.review-card__avatar-img, .avatar-option__preview, .settings-avatar-img {
    background: #000 !important; box-shadow: none !important; overflow: hidden; border-radius: 50%;
}
.review-card__avatar-img img, .avatar-option__preview img, .settings-avatar-img img { border-radius: 0 !important; display: block; }
.review-card__avatar-img .default-avatar, .avatar-option__preview .default-avatar, .settings-avatar-img .default-avatar {
    border-radius: 0 !important; overflow: visible !important; background: transparent !important;
    width: 100% !important; height: 100% !important;
}

/* 27.09 (аудит п. 42): карточка лота на главной - как карточка маркета */
.nft-card--lot .nft-card__name { font-size: 12px !important; font-weight: 500; color: #8A8A8A !important; }
.nft-card--lot .nft-card__name span { font-variant-numeric: tabular-nums; }
.nft-card--lot .nft-card__model { font-size: 15px; font-weight: 650; color: #F5F5F5; letter-spacing: -0.015em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.nft-card--lot .nft-card__attrs { display: block !important; font-size: 12.5px; color: #9A9A9A; margin-top: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nft-card--lot .nft-card__price { flex: none; height: auto; padding: 0; justify-content: flex-start; border-radius: 0;
    background: none !important; border: 0 !important; box-shadow: none !important; color: #F5F5F5;
    font-size: 17px !important; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* 03.10: v2.css красит цену при наведении в красную плашку (!important, сильнее за счёт :hover) - у карточки лота
   цена без отступов, и плашка липла к цифрам. Как в сетке маркета: при наведении краснеют только цифры. */
.nft-card.nft-card--lot:hover .nft-card__price, .nft-card.nft-card--lot:focus-within .nft-card__price {
    filter: none; background: none !important; color: #FF4A53 !important; }
