/* ============================================================
   WHITE PROJECT · GLASS UI
   Глобальный слой дизайна: «стекло» как на iOS / Telegram.
   Подключается ПОСЛЕ стилей страницы (css/<страница>.css),
   поэтому спокойно переопределяет их через !important.
   ============================================================ */

/* ---------- ФОН СТРАНИЦЫ ---------- */
body {
    background: linear-gradient(170deg, #0c1c33 0%, #0a1526 45%, #071122 100%) !important;
}

/* ---------- ХЭДЕР: МАТОВОЕ СТЕКЛО ---------- */
/* v1-правило удалено: статичный фон конфликтует с liquid glass v2 (см. конец файла) */

/* ---------- НАВИГАЦИЯ: ПИЛЮЛИ (как в Telegram) ---------- */
nav ul li a {
    color: rgba(255, 255, 255, 0.72) !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    transition: background 0.25s, color 0.25s !important;
}
nav ul li a::after {
    display: none !important;
}
nav ul li a:hover,
nav ul li a.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

/* ---------- КНОПКИ: GLASS-ПИЛЮЛИ ---------- */
.btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
    backdrop-filter: blur(14px) saturate(150%) !important;
    box-shadow: 0 8px 24px rgba(3, 10, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    transition: transform 0.2s, background 0.25s, box-shadow 0.25s, border-color 0.25s !important;
    text-shadow: none !important;
}
.btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.10)) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 14px 32px rgba(3, 10, 20, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}
.btn:active {
    transform: scale(0.97) !important;
}
.btn:focus-visible {
    outline: 2px solid rgba(126, 200, 255, 0.9) !important;
    outline-offset: 2px !important;
}
.btn-primary {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    box-shadow: 0 10px 26px rgba(47, 128, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn-primary:hover {
    background: linear-gradient(180deg, #5ea8ff, #3b8cf0) !important;
    box-shadow: 0 16px 36px rgba(47, 128, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}
.btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* ---------- КНОПКИ-ФИЛЬТРЫ И ПАКЕТЫ ---------- */
.mode-btn,
.category-btn,
.wraith-package {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #cfe3f7 !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: none !important;
    animation: none !important;
}
.mode-btn:hover,
.category-btn:hover,
.wraith-package:hover {
    background: rgba(255, 255, 255, 0.11) !important;
    border-color: rgba(126, 200, 255, 0.55) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(3, 10, 20, 0.4) !important;
}
.mode-btn.active,
.category-btn.active,
.currency-btn.active,
.wraith-package.active {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(47, 128, 237, 0.42) !important;
    animation: none !important;
}
.currency-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #cfe3f7 !important;
    -webkit-backdrop-filter: blur(12px) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.currency-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.06) !important;
}
.currency-btn.active {
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.45) !important;
    transform: scale(1.05) !important;
}

/* ---------- КАРТОЧКИ: СТЕКЛЯННЫЕ ---------- */
.feature-card,
.shop-item,
.toc-card,
.steps-card,
.promo-block,
.shop-stat,
.hero-banner-stat,
.stat,
.news-item {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    box-shadow: 0 14px 40px rgba(2, 8, 16, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    border-radius: 24px !important;
}
/* блоки правил и новостей сохраняют синий акцент слева */
.rules-block,
.news-item {
    border-left: 6px solid var(--primary) !important;
    border-radius: 22px !important;
}
.feature-card:hover,
.shop-item:hover,
.toc-card:hover,
.steps-card:hover,
.promo-block:hover,
.news-item:hover {
    border-color: rgba(126, 200, 255, 0.5) !important;
    box-shadow: 0 22px 52px rgba(2, 8, 16, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
.rules-block:hover {
    border-left-color: var(--primary) !important;
    box-shadow: 0 18px 44px rgba(2, 8, 16, 0.45) !important;
}

/* ---------- ИКОНКИ БЕЗ НЕОНОВОГО СВЕЧЕНИЯ ---------- */
.feature-card i,
.rules-head h2 i,
.toc-card i,
.steps-card > i,
.currency-btn i {
    filter: none !important;
    text-shadow: none !important;
}

/* ---------- ЧИПЫ НАКАЗАНИЙ И МЕТКИ ---------- */
.punish {
    background: rgba(47, 128, 237, 0.16) !important;
    border: 1px solid rgba(126, 200, 255, 0.35) !important;
    box-shadow: none !important;
}
.punish:hover {
    box-shadow: 0 6px 16px rgba(47, 128, 237, 0.3) !important;
}

/* ---------- МОДАЛЬНОЕ ОКНО ---------- */
.modal-overlay {
    background: rgba(4, 10, 20, 0.55) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}
.modal-content {
    background: linear-gradient(165deg, rgba(21, 40, 70, 0.86), rgba(12, 24, 44, 0.88)) !important;
    -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
    backdrop-filter: blur(30px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-radius: 28px !important;
}

/* ---------- ПЛАВАЮЩИЕ КНОПКИ (наверх, корзина) ---------- */
#back-to-top,
#cart-toggle {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    -webkit-backdrop-filter: blur(16px) saturate(150%) !important;
    backdrop-filter: blur(16px) saturate(150%) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
#back-to-top:hover,
#cart-toggle:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* ---------- ФОРМЫ: СТЕКЛЯННЫЕ ПОЛЯ ---------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="url"],
.promo-row input,
select,
textarea {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
.promo-row input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(126, 200, 255, 0.7) !important;
    box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.28) !important;
    background: rgba(255, 255, 255, 0.11) !important;
}
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.38) !important;
}
input[type="checkbox"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 2px solid rgba(255, 255, 255, 0.30) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}
input[type="checkbox"]:checked {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

/* ---------- ФУТЕР ---------- */
/* v1-правило удалено: статичный фон конфликтует с liquid glass v2 (см. конец файла) */

/* ---------- ЛОАДЕР ---------- */
.loader-spinner {
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent, #7ec8ff);
}

/* ---------- МЕЛОЧИ: ВЫДЕЛЕНИЕ, СКРОЛЛБАР ---------- */
::selection {
    background: rgba(47, 128, 237, 0.55);
    color: #fff;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
    background-clip: padding-box;
}

/* ---------- ДОСТУПНОСТЬ: мягкий фокус ---------- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(126, 200, 255, 0.9) !important;
    outline-offset: 3px !important;
}

/* ============================================================
   ФИНАЛЬНЫЙ БЛОК ПРИОРИТЕТА (грузится последним)
   Перебиваем более специфичные !important-правила css/<страница>.css:
   плоские матовые кнопки #1f5fa8, пиллюли радиуса 8-10px.
   ============================================================ */

/* --- НАВИГАЦИЯ: строгая пилюля 999px вместо 8-10px --- */
nav ul li a {
    border-radius: 999px !important;
}
nav ul li a:hover,
nav ul li a.active {
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
}

/* --- ОСНОВНЫЕ КНОПКИ: синий градиент + мягкая тень (iOS/Telegram) --- */
.btn.btn-primary,
a.btn.btn.btn-primary,
.nav-cta .btn.btn.btn-primary,
.shop-item .btn.btn.btn-primary {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px rgba(47, 128, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}
.btn.btn-primary:hover,
a.btn.btn.btn-primary:hover,
.nav-cta .btn.btn.btn-primary:hover,
.shop-item .btn.btn.btn-primary:hover {
    background: linear-gradient(180deg, #5ea8ff, #3b8cf0) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 16px 36px rgba(47, 128, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}
.btn.btn-primary:disabled,
.shop-item .btn.btn.btn-primary[disabled] {
    background: #163f6e !important;
    box-shadow: none !important;
    transform: none !important;
}

/* --- ПРОЧИЕ КНОПКИ В ШАПКЕ: стеклянная пилюля --- */
html .nav-cta .btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(3, 10, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* ============================================================
   ЭТАП: СЛАЙДИНГ-ПИЛЮЛЯ НАВИГАЦИИ (как в Telegram / iOS)
   ============================================================ */
/* position: относительно — ТОЛЬКО на десктопе: на ≤1024px меню абсолютное
   (index.css), а !important здесь перебивал его и роняло панель в поток → кривизна */
@media (min-width: 1025px) {
    nav ul {
        position: relative !important;
    }
}
nav ul li a {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease !important;
}
nav ul li a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
}
nav ul li a.active {
    background: transparent !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(77, 155, 255, 0.32), rgba(47, 127, 230, 0.22));
    border: 1px solid rgba(140, 200, 255, 0.38);
    box-shadow: 0 6px 18px rgba(47, 128, 237, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
}
.nav-pill.is-ready {
    opacity: 1;
}
/* reduced-motion: глобальное transition-duration:0.01ms «залипает» на opacity — отключаем анимацию пиллюли полностью */
@media (prefers-reduced-motion: reduce) {
    html:not(.wp-force-motion) .nav-pill {
        transition: none !important;
    }
}
nav ul li a {
    position: relative;
    z-index: 1;
}

/* ============================================================
   ЭТАП: ЛОГО → ССЫЛКА НА ГЛАВНУЮ
   ============================================================ */
a.logo {
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
a.logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}
a.logo:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================================
   ЭТАП: HERO-СТАТИСТИКА — стеклянные пилюли вместо «полосок»
   ============================================================ */
.hero-stats .stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 20px !important;
    padding: 14px 24px !important;
    min-width: 118px;
    text-align: center !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(3, 10, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
}
.hero-stats .stat::before {
    display: none !important;
}
.hero-stats .stat:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(140, 200, 255, 0.42) !important;
    box-shadow: 0 16px 34px rgba(3, 10, 20, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.hero-stats {
    gap: 14px !important;
}

/* ============================================================
   ЭТАП: КОРЗИНА — стеклянная карточка вместо чёрного ящика
   ============================================================ */
#cart-panel {
    border-radius: 28px !important;
    background: linear-gradient(180deg, rgba(16, 30, 52, 0.92), rgba(9, 18, 34, 0.94)) !important;
    backdrop-filter: blur(30px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 30px 70px rgba(2, 8, 18, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    overflow: hidden !important;
}
#cart-panel .cart-panel-head {
    border-radius: 28px 28px 0 0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#cart-panel .cart-panel-foot {
    border-radius: 0 0 28px 28px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#cart-panel .cart-item {
    border-radius: 18px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)) !important;
}
#cart-panel .cart-item::before {
    display: none !important;
}
#cart-panel .close-cart,
#cart-panel .checkout-btn,
#cart-panel .clear-cart-btn {
    border-radius: 999px !important;
}

/* ============================================================
   ЭТАП: ТОСТЫ — стекло + пружинное появление
   ============================================================ */
.toast {
    background: linear-gradient(180deg, rgba(22, 40, 66, 0.92), rgba(13, 26, 46, 0.94)) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: none !important;
    border-radius: 18px !important;
    padding: 14px 22px !important;
    box-shadow: 0 18px 44px rgba(2, 8, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    align-items: center;
    gap: 12px;
    animation: wpToastIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
.toast i {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
}
.toast.toast-fade-out {
    animation: wpToastOut 0.4s cubic-bezier(0.4, 0, 1, 1) both !important;
}
@keyframes wpToastIn {
    0% { opacity: 0; transform: translateX(48px) scale(0.94); }
    60% { opacity: 1; transform: translateX(-6px) scale(1.01); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes wpToastOut {
    to { opacity: 0; transform: translateX(36px) scale(0.96); }
}

/* ============================================================
   ЭТАП: ИКОНКИ РЕЖИМОВ — аккуратное стекло вместо серого квадрата
   ============================================================ */
.mode-icon {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 16px !important;
    color: #cfe3f7 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(3, 10, 20, 0.3) !important;
    filter: none !important;
}
.mode-btn.active .mode-icon {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 20px rgba(47, 128, 237, 0.4) !important;
}

/* ============================================================
   ЭТАП: КАРТОЧКИ МАГАЗИНА — гласс + мягкий hover
   ============================================================ */
.shop-item {
    border-radius: 26px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 16px 40px rgba(3, 10, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.5s ease !important;
}
.shop-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: rgba(140, 200, 255, 0.4) !important;
    box-shadow: 0 30px 60px rgba(3, 10, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
.shop-item .badge,
.shop-item .discount-chip {
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 6px 16px rgba(3, 10, 20, 0.35) !important;
}

/* ============================================================
   ЭТАП: НАСТРОЙКИ СНЕГА — кнопка и панель
   ============================================================ */
#wp-snow-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    color: #dbe9fa;
    font-size: 18px;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(2, 8, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}
#wp-snow-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(180deg, rgba(77, 155, 255, 0.3), rgba(47, 127, 230, 0.18));
}
#wp-snow-btn:active {
    transform: scale(0.95);
}
#wp-snow-panel {
    position: fixed;
    left: 18px;
    bottom: 74px;
    width: 258px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(16, 30, 52, 0.94), rgba(9, 18, 34, 0.96));
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 60px rgba(2, 8, 18, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 9991;
    color: #dbe9fa;
    font-size: 14px;
    animation: wpPanelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#wp-snow-panel[hidden] {
    display: none;
}
#wp-snow-panel .wp-snow-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
}
#wp-snow-panel .wp-snow-row.wp-snow-col {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
}
#wp-snow-panel .wp-snow-row span {
    display: flex;
    align-items: center;
    gap: 8px;
}
#wp-snow-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: #8cc8ff;
}
.wp-switch {
    position: relative;
    width: 46px;
    height: 27px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.wp-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.wp-switch > span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.wp-switch.is-on,
.wp-switch:has(input:checked) {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6);
    border-color: rgba(255, 255, 255, 0.4);
}
.wp-switch.is-on > span,
.wp-switch:has(input:checked) > span {
    transform: translateX(19px);
}
#wp-snow-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    cursor: pointer;
}
#wp-snow-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4d9bff, #2f7fe6);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.5);
    cursor: pointer;
    transition: transform 0.25s ease;
}
#wp-snow-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
#wp-snow-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4d9bff, #2f7fe6);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.5);
    cursor: pointer;
}
.wp-range-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.85;
}
@keyframes wpPanelIn {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   ЭТАП: ПОЯВЛЕНИЕ БЛОКОВ (reveal) — satisfying, не «мини-прокрутка»
   ============================================================ */
.reveal {
    opacity: 0 !important;
    transform: translateY(36px) scale(0.965) !important;
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ============================================================
   LIQUID GLASS v2 · iOS 26-стиль + прозрачность интерфейса (--wp-t)
   Жидкое стекло: сильный blur, насыщенность, световая кромка,
   глянцевый блик сверху, полупрозрачные тинты через --wp-t (0…0.5).
   ============================================================ */
:root {
    --wp-t: 0;
}

/* --- ХЭДЕР --- */
/* Правила css/<страница>.css задают .header-inner { padding:0 !important }
   (убивают отступы контейнера → логотип прилипал к краю). Возвращаем. */
.header-inner {
    padding: 8px 20px !important;
}
@media (max-width: 768px) {
    .header-inner {
        padding: 6px 14px !important;
    }
}
/* background-color (longhand): shorthand `background` с max()+var() внутри rgba()
   не парсится и молча отбрасывается. transition: none — иначе pending CSSTransition
   (reduced-motion 1e-05s) намертво прибивает computed-значение к старому. */
header {
    background-color: rgba(9, 18, 34, max(0.10, calc(0.55 - var(--wp-t, 0) * 0.9))) !important;
    /* глянцевая кромка сверху — «жидкое» стекло, а не плоская полоса */
    background-image: linear-gradient(180deg,
        rgba(255, 255, 255, 0.10),
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.005)) !important;
    transition: none !important;
    -webkit-backdrop-filter: blur(50px) saturate(220%) !important;
    backdrop-filter: blur(50px) saturate(220%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20) !important;
    /* «обыгрываем» прямоугольник: скруглённый низ шапки как у iOS-панели */
    border-radius: 0 0 22px 22px !important;
    box-shadow: 0 14px 40px rgba(2, 8, 16, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10) !important;
}

/* Внутренний контейнер шапки: в css/<страница>.css остался
   анимированный градиентный бордер borderSweep (::before) и blur —
   при слабом/выключенном стекле это читается как квадратная рамка
   вокруг логотипа и меню. Шапка уже сама стеклянная (header выше),
   поэтому внутреннюю рамку убираем полностью. */
header .header-inner {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transition: none !important;
}
header .header-inner::before,
header .header-inner::after {
    display: none !important;
    content: none !important;
}

/* --- ФУТЕР --- */
footer {
    background-color: rgba(7, 14, 26, max(0.15, calc(0.9 - var(--wp-t, 0) * 1.6))) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%) !important;
    transition: none !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
    backdrop-filter: blur(40px) saturate(200%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* --- КНОПКИ-ФИЛЬТРЫ РЕЖИМОВ (ГРИФ / АНАРХИЯ) --- */
.mode-btn,
.category-btn,
.wraith-package {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, max(0.025, calc(0.07 - var(--wp-t, 0) * 0.13))),
        rgba(255, 255, 255, max(0.01, calc(0.03 - var(--wp-t, 0) * 0.06)))) !important;
    -webkit-backdrop-filter: blur(18px) saturate(170%) !important;
    backdrop-filter: blur(18px) saturate(170%) !important;
    box-shadow: 0 8px 22px rgba(3, 10, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
/* Активная кнопка — СИНЕЕ СТЕКЛО, а не сплошной прямоугольник */
.mode-btn.active,
.category-btn.active,
.wraith-package.active {
    background: linear-gradient(180deg, rgba(77, 155, 255, 0.30), rgba(47, 127, 230, 0.14)) !important;
    border-color: rgba(150, 205, 255, 0.55) !important;
    color: #fff !important;
    -webkit-backdrop-filter: blur(18px) saturate(190%) !important;
    backdrop-filter: blur(18px) saturate(190%) !important;
    box-shadow: 0 10px 26px rgba(47, 128, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    animation: none !important;
}

/* --- ИКОНКИ РЕЖИМОВ: круглая liquid-glass плитка (не белый квадрат) --- */
.mode-icon {
    border-radius: 50% !important;
    background: linear-gradient(180deg, rgba(8, 16, 32, 0.55), rgba(8, 16, 32, 0.35)) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #9fd0ff !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(3, 10, 20, 0.35) !important;
    filter: none !important;
}
.mode-btn.active .mode-icon {
    background: linear-gradient(180deg, #4d9bff, #2f7fe6) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(47, 128, 237, 0.45) !important;
}

/* --- КОРЗИНА: жидкое стекло как в iOS --- */
#cart-panel {
    border-radius: 30px !important;
    background: linear-gradient(180deg,
        rgba(16, 30, 52, max(0.18, calc(0.66 - var(--wp-t, 0) * 1.1))),
        rgba(9, 18, 34, max(0.2, calc(0.72 - var(--wp-t, 0) * 1.2)))) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 30px 70px rgba(2, 8, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
}
#cart-panel .cart-panel-head {
    border-radius: 30px 30px 0 0 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
}
#cart-panel .cart-panel-foot {
    border-radius: 0 0 30px 30px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* --- ТОСТЫ: жидкое стекло --- */
.toast {
    background: linear-gradient(180deg,
        rgba(22, 40, 66, max(0.2, calc(0.74 - var(--wp-t, 0) * 1.0))),
        rgba(13, 26, 46, max(0.22, calc(0.78 - var(--wp-t, 0) * 1.0)))) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 18px 44px rgba(2, 8, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

/* --- КАРТОЧКИ МАГАЗИНА: настоящее liquid glass --- */
.shop-item {
    background: linear-gradient(165deg,
        rgba(255, 255, 255, max(0.035, calc(0.11 - var(--wp-t, 0) * 0.2))),
        rgba(255, 255, 255, max(0.012, calc(0.045 - var(--wp-t, 0) * 0.09)))) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 16px 40px rgba(3, 10, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
}
.shop-item:hover {
    background: linear-gradient(165deg,
        rgba(255, 255, 255, max(0.06, calc(0.16 - var(--wp-t, 0) * 0.24))),
        rgba(255, 255, 255, max(0.02, calc(0.07 - var(--wp-t, 0) * 0.11)))) !important;
    box-shadow: 0 30px 60px rgba(3, 10, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
}
/* Глянцевый блик по диагонали при наведении (перебиваем display:none из shop.css) */
html .shop-item {
    position: relative !important;
}
html .shop-item::after {
    display: block !important;
    content: '' !important;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg,
        transparent 32%,
        rgba(255, 255, 255, 0.10) 46%,
        rgba(255, 255, 255, 0.03) 54%,
        transparent 68%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 3;
}
html .shop-item:hover::after {
    opacity: 1;
}

/* --- ПАНЕЛЬ НАСТРОЕК: жидкое стекло + --wp-t --- */
#wp-snow-panel {
    background: linear-gradient(180deg,
        rgba(16, 30, 52, max(0.2, calc(0.8 - var(--wp-t, 0) * 1.4))),
        rgba(9, 18, 34, max(0.22, calc(0.84 - var(--wp-t, 0) * 1.4)))) !important;
    -webkit-backdrop-filter: blur(32px) saturate(180%) !important;
    backdrop-filter: blur(32px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 26px 60px rgba(2, 8, 18, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}
#wp-snow-panel .wp-snow-row + .wp-snow-row {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}
#wp-snow-panel .wp-snow-row.wp-snow-col {
    margin-top: 12px !important;
}
/* Слайдер интерфейса — те же стили, что у слайдера снега */
#wp-ui-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    outline: none;
    cursor: pointer;
}
#wp-ui-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4d9bff, #2f7fe6);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.5);
    cursor: pointer;
    transition: transform 0.25s ease;
}
#wp-ui-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
#wp-ui-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4d9bff, #2f7fe6);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.5);
    cursor: pointer;
}
#wp-ui-val {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: #8cc8ff;
}

/* --- МОДАЛКА: --wp-t --- */
.modal-content {
    background: linear-gradient(165deg,
        rgba(21, 40, 70, max(0.25, calc(0.86 - var(--wp-t, 0) * 1.2))),
        rgba(12, 24, 44, max(0.27, calc(0.88 - var(--wp-t, 0) * 1.2)))) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* --- ПЛАВАЮЩИЕ КНОПКИ --- */
#back-to-top,
#cart-toggle {
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border-color: rgba(255, 255, 255, 0.26) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

/* --- SLIDING-PILL: пружинный слайд как в TG на iOS ---
   ВАЖНО: без !important — иначе inline transition:none в ui.js (handoff
   при SPA-переходе) не работает и пилюля «прилетает» из угла (0,0). */
.nav-pill {
    transition: transform 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
                width 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
                opacity 0.3s ease;
}

/* --- НОВОГОДНЯЯ ПЛАШКА: не наезжает на кнопку настроек (слева внизу) --- */
.ny-year {
    bottom: 76px !important;
    left: 18px !important;
}
@media (max-width: 600px) {
    .ny-year {
        left: 10px !important;
        bottom: 74px !important;
    }
}

/* --- SPA-ПЕРЕХОД: мягкий fade вместо перезагрузки --- */
body {
    transition: opacity 0.28s ease;
}
html.wp-leave body {
    opacity: 0 !important;
    transition: opacity 0.13s ease !important;
}
@media (prefers-reduced-motion: reduce) {
    html.wp-leave body {
        opacity: 1 !important;
        transition: none !important;
    }
    body {
        transition: none;
    }
}

/* --- КУРТИНА SPA-ПЕРЕХОДА: лёгкое стекло вместо «страшной» вспышки --- */
#wp-curtain {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    background: rgba(4, 10, 22, 0.58);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    backdrop-filter: blur(16px) saturate(1.35);
    transition: opacity 0.12s ease;
    will-change: opacity;
}
#wp-curtain.is-on {
    opacity: 1;
    pointer-events: auto;
}
#wp-curtain.is-off {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.wp-curtain-box {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 21px;
    border-radius: 999px;
    background: rgba(14, 28, 48, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.wp-curtain-ring {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.13);
    border-top-color: #6fb4ff;
    animation: wpCurtainSpin 0.62s linear infinite;
    box-shadow: 0 0 18px rgba(90, 170, 255, 0.35);
}
.wp-curtain-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(235, 245, 255, 0.82);
}
@keyframes wpCurtainSpin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .wp-curtain-ring { animation-duration: 1.6s; }
}

/* ============================================================
   LIQUID GLASS v2.1 · мобильное меню, кривизна, усиление стекла
   ============================================================ */

/* --- МОБИЛЬНОЕ/ПЛАНШЕТНОЕ МЕНЮ: liquid-glass панель вместо
       прямоугольника #0a1526 с radius:0 (index.css ≤1024/≤768) --- */
@media (max-width: 1024px) {
    nav ul {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        box-sizing: border-box !important;
        background: linear-gradient(180deg,
            rgba(16, 30, 52, max(0.35, calc(0.86 - var(--wp-t, 0) * 1.2))),
            rgba(9, 18, 34, max(0.38, calc(0.9 - var(--wp-t, 0) * 1.2)))) !important;
        -webkit-backdrop-filter: blur(36px) saturate(200%) !important;
        backdrop-filter: blur(36px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18) !important;
        border-radius: 26px !important;
        padding: 14px !important;
        gap: 8px !important;
        box-shadow: 0 30px 70px rgba(2, 8, 18, 0.55),
            inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
        z-index: 1002 !important;
    }
    nav ul.active {
        display: flex !important;
    }
    nav ul li a {
        justify-content: center !important;
        border-radius: 999px !important;
        padding: 11px 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        background: rgba(255, 255, 255, 0.05) !important;
    }
    nav ul li a:hover,
    nav ul li a.active {
        background: linear-gradient(180deg, rgba(77, 155, 255, 0.30), rgba(47, 127, 230, 0.16)) !important;
        border-color: rgba(150, 205, 255, 0.5) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    }
    /* пилюля в колоночном меню — своя позиция, не мешаем десктопной */
    .nav-pill {
        display: none !important;
    }
}
@media (max-width: 600px) {
    nav ul {
        left: 8px !important;
        right: 8px !important;
        padding: 12px !important;
    }
}

/* --- ДЕСКТОП: лёгкая стеклянная подложка под пунктами меню,
       чтобы кнопки не «висели» на голом фоне --- */
@media (min-width: 1025px) {
    nav ul {
        background: linear-gradient(180deg,
            rgba(255, 255, 255, max(0.02, calc(0.06 - var(--wp-t, 0) * 0.1))),
            rgba(255, 255, 255, max(0.008, calc(0.025 - var(--wp-t, 0) * 0.05)))) !important;
        -webkit-backdrop-filter: blur(20px) saturate(170%) !important;
        backdrop-filter: blur(20px) saturate(170%) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        border-radius: 999px !important;
        padding: 6px 10px !important;
        gap: 6px !important;
        box-shadow: 0 10px 30px rgba(3, 10, 20, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    }
}

/* --- УСИЛЕНИЕ LIQUID GLASS: ярче кромки, глубже тени, чище глянец --- */
.shop-item {
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 18px 46px rgba(3, 10, 20, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10) !important;
}
#cart-panel {
    box-shadow: 0 34px 80px rgba(2, 8, 18, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(255, 255, 255, 0.10) !important;
}
.toast {
    box-shadow: 0 20px 50px rgba(2, 8, 18, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}
#wp-snow-panel {
    box-shadow: 0 30px 70px rgba(2, 8, 18, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.30) !important;
}
.modal-content {
    box-shadow: 0 40px 90px rgba(2, 8, 18, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}
.nav-pill {
    box-shadow: 0 8px 22px rgba(47, 128, 237, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.40) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    backdrop-filter: blur(12px) saturate(180%) !important;
}

/* ============================================================
   МОБИЛЬНАЯ ЗАЩИТА ОТ ГОРИЗОНТАЛЬНОГО СДВИГА
   Новогодние снежинки и декор футера выходят за правый край,
   из-за чего страницу можно было утащить вбок на телефоне
   (body{overflow-x:hidden} не обрезает сам документ).
   Обрезаем по горизонтали на уровне html, вертикаль не трогаем.
   ============================================================ */
html {
    overflow-x: clip;
}

/* ============================================================
   НАВИГАЦИЯ: liquid-glass пилюля в стиле магазина
   Существующую .nav-pill (ui.js) только перекрашиваем — вторую
   пилюлю не создаём. transition без !important: ui.js на время
   handoff ставит inline transition:none, иначе пилюля «прыгает».
   ============================================================ */
.nav-pill {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(77, 155, 255, 0.22), transparent 70%),
        linear-gradient(165deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    box-shadow:
        0 10px 30px rgba(2, 8, 18, 0.50),
        0 0 22px rgba(47, 128, 237, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.60),
        inset 0 -1px 0 rgba(255, 255, 255, 0.12) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    transition: transform 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
                width 0.42s cubic-bezier(0.34, 1.25, 0.5, 1),
                opacity 0.3s ease;
}
nav ul li a {
    transition: color 0.2s ease,
                scale 0.18s cubic-bezier(0.34, 1.5, 0.5, 1);
}
nav ul li a:active {
    scale: 0.95;
}


/* ==========================================================================
   ПЛАВНЫЙ ПЕРЕХОД СТРАНИЦ (SPA) · как переключение в магазине
   ========================================================================== */
@keyframes wpPageIn {
    from { opacity: 0; transform: translateY(8px) scale(0.995); filter: blur(6px); }
    to   { opacity: 1; transform: none;                         filter: none; }
}
/* Анимируем только контентные секции: внутри <main> лежат fixed-элементы
   корзины/модалки/тостов, и transform/filter на самом <main> ломал бы их. */
main > .page-section,
main > .hero {
    animation: wpPageIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

/* ==========================================================================
   ПРАВИЛА · стеклянные секции в стиле iPhone / liquid glass
   ========================================================================== */
html .rules-block {
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025) 100%),
        radial-gradient(ellipse at 100% 0%, rgba(47, 128, 237, 0.12), transparent 52%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 24px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.30),
        inset 2px 0 0 rgba(47, 128, 237, 0.45),
        0 16px 44px rgba(2, 8, 16, 0.40) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
    backdrop-filter: blur(22px) saturate(170%) !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease !important;
}
html .rules-block:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(140, 200, 255, 0.30) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 2px 0 0 rgba(47, 128, 237, 0.65),
        0 24px 60px rgba(2, 8, 16, 0.50) !important;
}
html .rules-head {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}
html .rules-warn {
    background: rgba(255, 255, 255, 0.045) !important;
    border-color: rgba(47, 128, 237, 0.45) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}
html .punish {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
    color: #d9ecff !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

/* ==========================================================================
   НОВОСТИ · стеклянные карточки
   ========================================================================== */
html .news-item {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 24px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 16px 44px rgba(2, 8, 16, 0.40) !important;
    -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
    backdrop-filter: blur(22px) saturate(170%) !important;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                background 0.35s ease !important;
}
html .news-item:hover {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(140, 200, 255, 0.32) !important;
    border-left-color: rgba(140, 200, 255, 0.32) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 26px 60px rgba(2, 8, 16, 0.50) !important;
    transform: translateY(-6px) !important;
}
html .news-card-media {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(47, 128, 237, 0.18), transparent 62%),
        #0b1524 !important;
}
html .news-date-chip {
    background: rgba(10, 18, 34, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.20) !important;
    -webkit-backdrop-filter: blur(12px) saturate(170%) !important;
    backdrop-filter: blur(12px) saturate(170%) !important;
}

/* ?????? ????????? ?????? ????????????? ? ??? ????????? reduce-motion:
   html.wp-force-motion ???????? ???????? ?????????????. ?????????? ???????
   * { transition-duration: 0.01ms !important } ?? page-CSS ????? ???????
   ????? ????? ??????? / ??????? / ???????. */
html.wp-force-motion .nav-pill {
    transition-property: transform, width, opacity !important;
    transition-duration: 0.42s, 0.42s, 0.3s !important;
    transition-timing-function: cubic-bezier(0.34, 1.25, 0.5, 1),
                                cubic-bezier(0.34, 1.25, 0.5, 1),
                                ease !important;
}

/* ============================================================
   VIEW TRANSITIONS — мягкий fallback для жёстких переходов.
   SPA (js/spa.js) по-прежнему перехватывает внутренние ссылки и
   работает быстрее; это срабатывает только при полной навигации:
   JS выключен, ссылка с target/download, прямой переход и т.п.
   Внешний instant.page не подключаем: CSP разрешает только 'self'.
   ============================================================ */
@view-transition {
    navigation: auto;
}
@keyframes wpVtOut {
    to { opacity: 0; }
}
@keyframes wpVtIn {
    from { opacity: 0; }
}
::view-transition-old(root) {
    animation: wpVtOut 0.18s ease both;
}
::view-transition-new(root) {
    animation: wpVtIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (prefers-reduced-motion: reduce) {
    html:not(.wp-force-motion)::view-transition-old(root),
    html:not(.wp-force-motion)::view-transition-new(root) {
        animation: none !important;
    }
}

/* ============================================================
   ПРОМОКОД НА ГЛАВНОЙ · кликабельный тикет
   ============================================================ */
.hero .promo-banner,
.promo-banner {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding-right: 22px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.28s cubic-bezier(0.34, 1.3, 0.5, 1),
                background 0.28s ease,
                border-color 0.28s ease,
                box-shadow 0.28s ease;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.promo-banner:hover::before {
    left: 130%;
}

.promo-banner:hover {
    transform: translateY(-2px) scale(1.012);
    background: rgba(47, 128, 237, 0.2);
    border-color: rgba(111, 180, 255, 0.65);
    box-shadow: 0 16px 44px rgba(47, 128, 237, 0.22), 0 0 0 1px rgba(111, 180, 255, 0.12) inset;
}

.promo-banner:focus-visible {
    outline: 2px solid rgba(111, 180, 255, 0.85);
    outline-offset: 3px;
}

.promo-banner .promo-copy-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #bfe6ff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.24s, border-color 0.24s, color 0.24s;
}

.promo-banner .promo-copy-state i {
    font-size: 0.72rem;
}

.promo-banner.is-copied {
    border-color: rgba(61, 220, 151, 0.55) !important;
    background: rgba(61, 220, 151, 0.1) !important;
    box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.2) inset, 0 16px 44px rgba(61, 220, 151, 0.12);
}

.promo-banner.is-copied .promo-copy-state {
    color: #a9f2cd;
    border-color: rgba(61, 220, 151, 0.4);
    background: rgba(61, 220, 151, 0.12);
}

.promo-banner.is-copied #promoCodeText {
    color: #a9f2cd;
    border-color: rgba(61, 220, 151, 0.4);
}

@media (max-width: 600px) {
    .promo-banner {
        padding-right: 20px;
    }

    .promo-banner .promo-copy-state {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-banner,
    .promo-banner::before {
        transition: none;
    }

    .promo-banner:hover {
        transform: none;
    }
}
