/* =========================================================================
   Файл: /_assets/_css/app.css (Часть 1 из 3)
   Описание: Сброс стилей, базовая типографика и фиксированная верхняя панель (Topbar)
   ========================================================================= */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    line-height: 1.5;
    overflow-x: clip;
    transition: background-color 0.25s ease, color 0.25s ease;
    padding-top: 60px;
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
}

body.drawer-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

.mt8 { margin-top: 8px; }
.text-success { color: var(--success); }

/* =========================================================================
   1. ФИКСИРОВАННАЯ ВЕРХНЯЯ ШАПКА (TOPBAR)
   ========================================================================= */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    width: 100%;
    height: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 0 12px;
}

.topbar-inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
    height: 36px;
    transition: opacity 0.2s ease, transform 0.15s ease;
}
.brand-logo:hover {
    opacity: 0.92;
}
.brand-logo:active {
    transform: scale(0.97);
}
.brand-logo-img {
    display: block;
    height: 30px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 480px) {
    .brand-logo-img {
        height: 25px;
    }
}
@media (max-width: 375px) {
    .brand-logo-img {
        height: 22px;
    }
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
}

.icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.icon-btn:active {
    transform: scale(0.94);
}

.burger-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--bg-surface);
}

.topbar-wallet-btn {
    width: auto;
    padding: 0 9px;
    gap: 5px;
}

.wallet-sum {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.topbar-counter-btn {
    color: var(--text-primary);
}

.badge-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.badge-dot--msg {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.badge-dot--notif {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.55);
}

.badge-dot[hidden] {
    display: none;
}

/* =========================================================================
   2. ВЫДВИЖНОЕ БУРГЕР-МЕНЮ СЛЕВА (MOBILE DRAWER) И ДЕСКТОПНЫЙ САЙДБАР
   ========================================================================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.app-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 12px;
    overflow-x: clip;
}

.app-main {
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 150px);
}

@media (max-width: 959px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 100;
        width: min(310px, 84vw);
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .drawer-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        padding: 0 14px 0 18px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .sidebar-scroll {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}

@media (min-width: 960px) {
    body {
        padding-bottom: 24px;
    }

    .topbar {
        left: calc(max(0px, (100% - 1280px) / 2) + 272px);
        right: calc(max(0px, (100% - 1280px) / 2) + 24px);
        width: auto;
        border-right: 1px solid var(--border-color);
        border-bottom-right-radius: 20px;
    }

    .topbar-inner {
        max-width: none;
        padding: 0 16px;
    }

    .burger-btn,
    .drawer-mobile-head,
    .drawer-backdrop,
    .mobile-tabbar {
        display: none !important;
    }

    .app-shell {
        max-width: 1280px;
        margin: 0 auto;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 20px 24px 0 calc(272px + 24px);
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: max(0px, (100% - 1280px) / 2);
        bottom: 0;
        z-index: 65;
        width: 272px;
        height: 100dvh;
        background: var(--bg-surface);
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
    }

    .sidebar-scroll {
        position: relative;
        z-index: 2;
        flex: 1;
        overflow-y: auto;
        padding: 0 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body[data-auth="0"] .app-sidebar {
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        border-radius: 0;
        box-shadow: none;
    }

    body[data-auth="0"] .sidebar-scroll {
        padding: 14px;
        gap: 14px;
    }

    body[data-auth="0"] .sidebar-guest-box {
        background: var(--bg-elevated);
        border-radius: 16px;
        padding: 14px;
        box-shadow: none;
    }
}

/* =========================================================================
   ШАПКА ЛЕВОГО МЕНЮ С ВОЛНОЙ И СНЕГОПАДОМ
   ========================================================================= */
.app-sidebar {
    overflow: hidden;
}

.sidebar-snow-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sidebar-snow-layer span {
    position: absolute;
    top: -12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
    animation: sidebarSnowFall linear infinite;
}

.sidebar-snow-layer span:nth-child(1)  { left: 6%;  width: 3px; height: 3px; animation-duration: 9s;  animation-delay: -1s; }
.sidebar-snow-layer span:nth-child(2)  { left: 14%; width: 5px; height: 5px; animation-duration: 12s; animation-delay: -4s; }
.sidebar-snow-layer span:nth-child(3)  { left: 22%; width: 3px; height: 3px; animation-duration: 8s;  animation-delay: -2s; }
.sidebar-snow-layer span:nth-child(4)  { left: 31%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: -7s; }
.sidebar-snow-layer span:nth-child(5)  { left: 39%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: -3s; opacity: 0.55; }
.sidebar-snow-layer span:nth-child(6)  { left: 47%; width: 3px; height: 3px; animation-duration: 9.5s; animation-delay: -6s; }
.sidebar-snow-layer span:nth-child(7)  { left: 55%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: -2.5s; }
.sidebar-snow-layer span:nth-child(8)  { left: 63%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: -8s; }
.sidebar-snow-layer span:nth-child(9)  { left: 71%; width: 3px; height: 3px; animation-duration: 8.5s; animation-delay: -5s; }
.sidebar-snow-layer span:nth-child(10) { left: 79%; width: 4px; height: 4px; animation-duration: 12.5s; animation-delay: -1.5s; }
.sidebar-snow-layer span:nth-child(11) { left: 87%; width: 5px; height: 5px; animation-duration: 11.5s; animation-delay: -9s; }
.sidebar-snow-layer span:nth-child(12) { left: 94%; width: 3px; height: 3px; animation-duration: 9.2s; animation-delay: -3.5s; }
.sidebar-snow-layer span:nth-child(13) { left: 10%; width: 4px; height: 4px; animation-duration: 13.5s; animation-delay: -10s; }
.sidebar-snow-layer span:nth-child(14) { left: 28%; width: 3px; height: 3px; animation-duration: 10.5s; animation-delay: -4.5s; }
.sidebar-snow-layer span:nth-child(15) { left: 44%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: -6.5s; opacity: 0.5; }
.sidebar-snow-layer span:nth-child(16) { left: 60%; width: 3px; height: 3px; animation-duration: 8.8s; animation-delay: -7.5s; }
.sidebar-snow-layer span:nth-child(17) { left: 75%; width: 4px; height: 4px; animation-duration: 11.2s; animation-delay: -2.2s; }
.sidebar-snow-layer span:nth-child(18) { left: 90%; width: 4px; height: 4px; animation-duration: 12.8s; animation-delay: -5.8s; }

@keyframes sidebarSnowFall {
    0%   { transform: translate3d(0, -10px, 0); opacity: 0; }
    10%  { opacity: 0.85; }
    50%  { transform: translate3d(8px, 48dvh, 0); }
    90%  { opacity: 0.75; }
    100% { transform: translate3d(-6px, 102dvh, 0); opacity: 0; }
}

.sidebar-hero-header {
    position: relative;
    margin: 0 -14px 2px;
    padding: 18px 14px 32px;
    background:
        radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--accent) 44%, transparent), transparent 62%),
        linear-gradient(155deg, color-mix(in srgb, var(--accent) 30%, var(--bg-elevated)) 0%, var(--bg-surface) 92%);
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 959px) {
    .sidebar-hero-header {
        margin-top: -14px;
    }
}

.sidebar-hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-hero-avatar {
    flex-shrink: 0;
    display: inline-flex;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s ease;
}
.sidebar-hero-avatar:hover {
    transform: scale(1.03);
}

.sidebar-hero-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.sidebar-hero-name-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-surface) 74%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border-color));
    backdrop-filter: blur(6px);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent);
}

.sidebar-hero-name-txt {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-gender-ico.is-male {
    color: #38bdf8;
}

.sidebar-gender-ico.is-female {
    color: #f472b6;
}

.sidebar-hero-wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--bg-surface) 82%, transparent);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    transition: border-color 0.18s ease;
}
.sidebar-hero-wallet-pill:hover {
    border-color: var(--accent);
}
.sidebar-hero-wallet-pill .ico {
    color: var(--accent);
}

.sidebar-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.sidebar-hero-action {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.78;
    transition: color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.16s ease;
}

.sidebar-hero-action:hover:not(:disabled) {
    opacity: 1;
    color: var(--text-primary);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border-color));
    transform: scale(1.08);
}

.sidebar-hero-action:active:not(:disabled) {
    transform: scale(0.94);
}

.sidebar-hero-action.is-active {
    opacity: 1;
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border-color));
}

.sidebar-hero-action.is-disabled,
.sidebar-hero-action:disabled {
    cursor: default;
    opacity: 0.55;
}

.sidebar-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 24px;
    display: block;
    pointer-events: none;
    z-index: 2;
}
.sidebar-hero-wave .wave-glow {
    fill: color-mix(in srgb, var(--accent) 42%, transparent);
}
.sidebar-hero-wave .wave-fill {
    fill: var(--bg-surface);
}

.sidebar-guest-box { background: var(--bg-elevated); border: 1px solid var(--border-color); border-radius: 16px; padding: 14px; }
.sidebar-guest-title { font-size: 14px; font-weight: 700; }

.nav-section { display: flex; flex-direction: column; gap: 3px; }
.nav-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 4px 10px; }

.nav-link {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px;
    border-radius: 12px; color: var(--text-secondary); font-size: 14px; font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}
.nav-link:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-link.is-active { background: var(--accent-grad); color: #fff; box-shadow: var(--accent-glow); }

.nav-link.nav-link-clean,
.nav-link.nav-link-clean.is-active {
    background: transparent;
    box-shadow: none;
    color: var(--text-secondary);
}
.nav-link.nav-link-clean:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.nav-link.nav-link-clean.is-active {
    color: var(--text-primary);
}

.nav-link-danger:hover { color: var(--danger); }

.nav-badge { margin-left: auto; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; }
.nav-badge.is-muted { background: var(--bg-elevated); color: var(--text-secondary); }
.nav-link.is-active .nav-badge { background: rgba(255, 255, 255, 0.24); color: #fff; }
.nav-badge[hidden] { display: none; }

.social-pill,
.oauth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    transition: transform 0.18s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.oauth-pill {
    background: var(--bg-surface);
}
.social-pill .ico,
.oauth-pill .ico {
    transition: transform 0.18s ease;
}
.social-pill:hover .ico,
.oauth-pill:hover .ico {
    transform: scale(1.08);
}

.social-pill:active,
.oauth-pill:active {
    transform: scale(0.95);
}

/* Фирменные цвета иконок и деликатная подсветка при наведении */
.social-pill--vk,
.oauth-pill--vk { color: #0077FF; }
.social-pill--vk:hover,
.oauth-pill--vk:hover {
    border-color: rgba(0, 119, 255, 0.55);
    background: rgba(0, 119, 255, 0.10);
}

.social-pill--ok,
.oauth-pill--ok { color: #EE8208; }
.social-pill--ok:hover,
.oauth-pill--ok:hover {
    border-color: rgba(238, 130, 8, 0.55);
    background: rgba(238, 130, 8, 0.10);
}

.social-pill--tg { color: #24A1DE; }
.social-pill--tg:hover {
    border-color: rgba(36, 161, 222, 0.55);
    background: rgba(36, 161, 222, 0.10);
}

.social-pill--max { color: #7B5BF2; }
.social-pill--max:hover {
    border-color: rgba(123, 91, 242, 0.55);
    background: rgba(123, 91, 242, 0.10);
}

.oauth-pill--mail { color: #005FF9; }
.oauth-pill--mail:hover {
    border-color: rgba(0, 95, 249, 0.55);
    background: rgba(0, 95, 249, 0.10);
}

.oauth-pill--ya { color: #FC3F1D; }
.oauth-pill--ya:hover {
    border-color: rgba(252, 63, 29, 0.55);
    background: rgba(252, 63, 29, 0.10);
}

/* =========================================================================
   3. SPA-ЛОАДЕР, ФИКСИРОВАННЫЙ МОБИЛЬНЫЙ ТАББАР, ПОДВАЛ, COOKIE И КНОПКА НАВЕРХ
   ========================================================================= */
.spa-loader {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-grad);
    z-index: 200;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}
.spa-loader.is-loading { opacity: 1; transform: scaleX(0.75); }

.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    width: 100%;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.22);
    display: flex;
    justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}

.tab-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-width: 54px; min-height: 42px;
    color: var(--text-secondary); font-size: 11px; font-weight: 600; transition: color 0.2s;
}
.tab-item.is-active { color: var(--accent); }

.app-footer { margin-top: auto; padding-top: 28px; }
.footer-top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 16px;
    background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 18px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 6px 0; font-size: 12px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

.scroll-top-btn {
    position: fixed; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 55;
    width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border-color);
    background: var(--bg-elevated); color: var(--text-primary); box-shadow: var(--card-shadow);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.scroll-top-btn[hidden] { display: none; }
@media (min-width: 960px) { .scroll-top-btn { bottom: 24px; right: 24px; } }

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 80;
    max-width: 720px;
    margin: 0 auto;
    padding: 13px 16px;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 12px;
    color: var(--text-secondary);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }

@media (max-width: 959px) {
    body[data-auth="1"] .cookie-banner {
        bottom: calc(74px + env(safe-area-inset-bottom));
    }
}

@media (min-width: 960px) {
    .cookie-banner {
        left: 296px;
        right: 24px;
        bottom: 18px;
    }
}

/* =========================================================================
   4. КАРТОЧКИ, КНОПКИ, ФОРМЫ И VIEW-КОМПОНЕНТЫ ПОЛЬЗОВАТЕЛЯ
   ========================================================================= */
.card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px; padding: 18px; box-shadow: var(--card-shadow); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: var(--accent-glow); }
.btn-ghost { background: var(--bg-elevated); border-color: var(--border-color); color: var(--text-primary); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

.input {
    width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px;
    border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-primary);
    outline: none; transition: border-color 0.2s;
}
.input:focus { border-color: var(--border-focus); }

.u-avatar { position: relative; display: inline-block; border-radius: 50%; flex-shrink: 0; background: var(--bg-elevated); }
.u-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.u-avatar-xs { width: 28px; height: 28px; }
.u-avatar-sm { width: 38px; height: 38px; }
.u-avatar-md { width: 46px; height: 46px; }
.u-avatar-lg { width: 72px; height: 72px; }
.u-avatar-xl { width: 112px; height: 112px; }

.u-avatar.is-vip { padding: 2px; background: var(--vip-grad); }
.u-avatar.is-premium { padding: 2px; background: var(--prem-grad); }
.u-avatar-online {
    position: absolute; right: 0; bottom: 0; width: 11px; height: 11px;
    border-radius: 50%; background: var(--success); border: 2px solid var(--bg-surface);
}

.u-nick-wrap { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.u-nick { font-weight: 700; }
.u-badge-verified { color: #38bdf8; }
.u-tag-vip, .u-tag-prem { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #fff; letter-spacing: 0.4px; }
.u-tag-vip { background: var(--vip-grad); }
.u-tag-prem { background: var(--prem-grad); }

.toast-stack { position: fixed; top: 12px; right: 12px; z-index: 2600; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.toast-stack .toast { pointer-events: auto; }

.toast { background: var(--bg-elevated); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); color: var(--text-primary); padding: 12px 16px; border-radius: 14px; box-shadow: var(--card-shadow); font-size: 13px; font-weight: 600; }
.toast.is-success { border-left-color: var(--success); }
.toast.is-error   { border-left-color: var(--danger); }

/* =========================================================================
   Единый кастомный выпадающий список (.cselect) в стиле сайта
   ========================================================================= */
.cselect-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.cselect {
    position: relative;
    width: 100%;
    user-select: none;
}

.cselect-trigger {
    width: 100%;
    min-height: 44px;
    padding: 0 34px 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.cselect-trigger.is-placeholder {
    color: var(--text-muted);
}
.cselect-trigger:hover,
.cselect.is-open .cselect-trigger {
    border-color: var(--accent);
}
.cselect.is-open .cselect-trigger {
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.cselect-trigger::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s;
    pointer-events: none;
}
.cselect.is-open .cselect-trigger::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: var(--accent);
}

.cselect-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cselect-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    max-height: 220px;
    overflow-y: auto;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-elevated);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 1400;
    animation: cselectPop 0.16s ease forwards;
}
.cselect.is-dropup .cselect-menu {
    top: auto;
    bottom: calc(100% + 6px);
}

.cselect-menu::-webkit-scrollbar {
    width: 5px;
}
.cselect-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 99px;
}

.cselect-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 9px 11px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-primary);
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.cselect-option:hover {
    background: var(--bg-hover);
}
.cselect-option.is-selected {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}
.cselect-option.is-selected::after {
    content: '✓';
    font-size: 12px;
    font-weight: 800;
}

@keyframes cselectPop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes cselectPopUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cselect.is-dropup .cselect-menu {
    animation: cselectPopUp 0.16s ease forwards;
}

@media (max-width: 640px) {
    .auth-modal-card .cselect-trigger {
        min-height: 40px;
        height: 40px;
        padding: 0 26px 0 10px;
        font-size: 13px;
    }
    .auth-modal-card .cselect-trigger::after {
        right: 10px;
    }
    .cselect-menu {
        max-height: 176px;
    }
}

/* =========================================================================
   5. ПРАВОВЫЕ И ИНФОРМАЦИОННЫЕ СТРАНИЦЫ (/cookies, /privacy, /rules, /offer)
   ========================================================================= */
.legal-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.legal-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.legal-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.legal-date {
    font-size: 12px;
    color: var(--text-muted);
}

.legal-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.25;
}

.legal-lead {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.legal-nav-link {
    padding: 7px 13px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.legal-nav-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.legal-nav-link.is-active {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.legal-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-section h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.legal-section p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-section code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    color: var(--text-primary);
}

.legal-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.legal-list li::marker {
    color: var(--accent);
}

.legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-top: 4px;
}

.legal-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.legal-table th {
    padding: 11px 14px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.legal-table td {
    padding: 11px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.5;
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

.legal-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.legal-tag.is-req {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.legal-tag.is-func {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
}

.legal-tag.is-stat {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
}

.legal-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.legal-callout .ico {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-requisites {
    margin-top: 6px;
    padding: 16px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
}

.legal-req-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.legal-req-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.legal-req-grid span {
    color: var(--text-muted);
    margin-right: 4px;
}

.sidebar-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar-scroll::-webkit-scrollbar {
    display: none;
}

.pop-plus-btn {
    border: none;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.2s ease, color 0.2s ease;
}
.pop-plus-btn:hover {
    transform: scale(1.08);
    background: var(--accent-grad);
    color: #fff;
}
.pop-plus-btn:active {
    transform: scale(0.94);
}

/* =========================================================================
   Единый глобальный тултип (.app-tooltip)
   ========================================================================= */
.app-tooltip {
    position: fixed;
    z-index: 2500;
    max-width: min(280px, calc(100vw - 16px));
    padding: 7px 11px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.app-tooltip.is-bottom {
    transform: translateY(-4px);
}
.app-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   6. ЕДИНЫЙ ГЛОБАЛЬНЫЙ КОНТРОЛЛЕР ОКОН LAFRUM UI (POPOVER / SHEET / CARD)
   ========================================================================= */
.app-popover {
    position: fixed;
    z-index: 1600;
    min-width: 224px;
    max-width: min(300px, calc(100vw - 24px));
    padding: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.94);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    will-change: transform, opacity;
}

.app-popover.is-open {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
}

.app-popover[hidden] {
    display: none;
}

.app-pop-item {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.app-pop-item:hover {
    background: var(--bg-hover);
}

.app-pop-item.is-danger {
    color: var(--danger);
}

.app-pop-item.is-danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

.app-pop-divider {
    height: 1px;
    margin: 5px 6px;
    background: var(--border-color);
}

.app-pop-meta {
    padding: 6px 10px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-pop-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Общая подложка для Bottom Sheet и Center Card */
.app-overlay {
    position: fixed;
    inset: 0;
    z-index: 1700;
    background: rgba(5, 7, 14, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    display: flex;
    justify-content: center;
}

.app-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.app-overlay[hidden] {
    display: none;
}

.app-card-box {
    width: 100%;
    max-width: 460px;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.62);
    will-change: transform;
}

.app-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.app-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Вариант 2: Bottom Sheet (свайп вниз на мобильных) */
.app-overlay.mode-sheet {
    align-items: flex-end;
}

.app-overlay.mode-sheet .app-card-box {
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
    transform: translate3d(0, 100%, 0);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-overlay.mode-sheet.is-open .app-card-box {
    transform: translate3d(0, 0, 0);
}

.app-overlay.mode-sheet .app-card-box.is-dragging {
    transition: none;
}

.app-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color);
    margin: 0 auto 10px;
}

/* Вариант 3: Center Card (строго по центру экрана) */
.app-overlay.mode-center {
    align-items: center;
    padding: 16px;
}

.app-overlay.mode-center .app-card-box {
    border-radius: 20px;
    padding: 18px 20px 22px;
    transform: translate3d(0, 14px, 0) scale(0.95);
    transition: transform 0.2s ease;
}

.app-overlay.mode-center.is-open .app-card-box {
    transform: translate3d(0, 0, 0) scale(1);
}

.app-overlay.mode-center .app-sheet-handle {
    display: none;
}

/* Вариант 4: Inline Confirm состояние на кнопке */
.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: var(--danger);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-danger.is-confirming {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
}

/* Кастомная карточка подтверждения выхода */
.app-card-box.is-logout-card {
    position: relative;
    overflow: hidden;
    max-width: 390px;
    padding: 26px 22px 22px;
}

.app-card-box.is-logout-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
    border-top: 3px solid #f43f5e;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, rgba(244, 63, 94, 0.16) 0%, transparent 100%);
    pointer-events: none;
}

.app-card-box.is-logout-card .app-card-header {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    z-index: 2;
}

.app-card-box.is-logout-card .app-card-title {
    display: none;
}

.app-card-box.is-logout-card .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.logout-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.logout-modal-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(244, 63, 94, 0.14);
    border: 1px solid rgba(244, 63, 94, 0.34);
    color: #f43f5e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.18);
}

.logout-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.logout-modal-sub {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 290px;
}

.logout-modal-check {
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.logout-modal-check:hover {
    border-color: rgba(244, 63, 94, 0.45);
    color: var(--text-primary);
}

.logout-modal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.btn-logout-confirm {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
}

.btn-logout-confirm:hover {
    filter: brightness(1.06);
}

/* =========================================================================
   7. ПЛЁНКА И ШТАМПЫ МОДЕРАЦИИ НА ФОТО И АВАТАРАХ ВЛАДЕЛЬЦА
   ========================================================================= */
.media-stamp-film {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(6, 9, 18, 0.42);
    pointer-events: none;
}

@keyframes stampSpinCW {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes stampSpinCCW {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

@keyframes wavePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.06); opacity: 0.45; }
}

.cp-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(104px, 26vw, 124px);
    height: clamp(104px, 26vw, 124px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    pointer-events: none;
    z-index: 3;
}

.cp-stamp.is-compact {
    width: clamp(118px, 30vw, 142px);
    height: clamp(118px, 30vw, 142px);
}

.cp-stamp-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cp-ring-text {
    font-size: 6.8px;
    font-weight: 800;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

.cp-center-text {
    position: absolute;
    font-size: clamp(8.8px, 2.2vw, 10.2px);
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    transform: rotate(-12deg);
    z-index: 2;
}

.cp-pending .cp-spin-cw,
.cp-pending .cp-spin-wave,
.cp-pending .cp-soundwave,
.cp-rejected .cp-spin-cw,
.cp-rejected .cp-spin-wave,
.cp-rejected .cp-soundwave {
    transform-origin: 50px 50px;
}

/* ШТАМП 1: НА ПРОВЕРКЕ */
.cp-pending {
    background: radial-gradient(circle, rgba(11, 14, 30, 0.94) 50%, rgba(7, 9, 20, 0.82) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.55);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.32), inset 0 0 14px rgba(168, 85, 247, 0.28);
}

.cp-pending .cp-outer {
    fill: none;
    stroke: #fbbf24;
    stroke-width: 2;
    stroke-dasharray: 2 2.5;
}

.cp-pending .cp-soundwave {
    fill: none;
    stroke: #c084fc;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.cp-pending .cp-ring-text {
    fill: #fef08a;
}

.cp-pending .cp-center-text {
    color: #fde047;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(250, 204, 21, 0.75);
}

/* ШТАМП 2: ОТКЛОНЕНО */
.cp-rejected {
    background: radial-gradient(circle, rgba(22, 8, 13, 0.94) 50%, rgba(11, 4, 7, 0.82) 100%);
    border: 1.5px solid rgba(244, 63, 94, 0.55);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.34), inset 0 0 14px rgba(244, 63, 94, 0.24);
}

.cp-rejected .cp-outer {
    fill: none;
    stroke: #fb7185;
    stroke-width: 2;
    stroke-dasharray: 2 2.5;
}

.cp-rejected .cp-soundwave {
    fill: none;
    stroke: #fb7185;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.cp-rejected .cp-ring-text {
    fill: #fecdd3;
}

.cp-rejected .cp-center-text {
    color: #ff4d6d;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 77, 109, 0.8);
    transform: rotate(-10deg);
}

@media (min-width: 768px) {
    .cp-stamp {
        backdrop-filter: blur(5px);
    }
    .cp-pending .cp-spin-cw {
        animation: stampSpinCW 22s linear infinite;
    }
    .cp-pending .cp-spin-wave {
        animation: stampSpinCCW 16s linear infinite;
    }
    .cp-pending .cp-outer {
        filter: drop-shadow(0 0 3px #f59e0b);
    }
    .cp-pending .cp-soundwave {
        filter: drop-shadow(0 0 4px #a855f7);
        animation: wavePulse 1.8s ease-in-out infinite;
    }
    .cp-pending .cp-ring-text {
        filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.95));
    }
    .cp-rejected .cp-spin-cw {
        animation: stampSpinCW 20s linear infinite;
    }
    .cp-rejected .cp-spin-wave {
        animation: stampSpinCCW 14s linear infinite;
    }
    .cp-rejected .cp-outer {
        filter: drop-shadow(0 0 3px #f43f5e);
    }
    .cp-rejected .cp-soundwave {
        filter: drop-shadow(0 0 4px #f43f5e);
        animation: wavePulse 1.4s ease-in-out infinite;
    }
    .cp-rejected .cp-ring-text {
        filter: drop-shadow(0 0 2px #f43f5e);
    }
}
/* Поповер баланса при наведении в сайдбаре */
.wallet-hover-pop {
    width: 236px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wallet-hover-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-hover-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-hover-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.wallet-hover-amount {
    margin-top: 2px;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
}

.wallet-hover-btn {
    width: 100%;
    justify-content: center;
}
