/* ================================================================
   1. ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СБРОСЫ
   ================================================================ */
:root {
    --np-red: #cd412b;
    --np-red-hover: #b33521;
    --np-dark: #16171b;
    --np-bg: #111215;
    --np-border: #262930;
    --text-gray: #9aa0a6;
    --text-light: #e0e0e6;
    --success-green: #2ecc71;
    --warning-orange: #f39c12;
    --danger-red: #e74c3c;
    --info-blue: #3498db;
    --card-bg: #15161a;
    --input-bg: #1c1e24;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --gap-sm: 6px;
    --gap-md: 10px;
    --gap-lg: 15px;
    --gap-xl: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--np-bg);
    color: var(--text-light);
    scrollbar-gutter: stable;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--np-bg); }
::-webkit-scrollbar-thumb { background: var(--np-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--np-red); }

/* Общий контейнер контента */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основной контент растягивается, чтобы футер прижимался к низу */
.page-content {
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ================================================================
   2. ШАПКА (HEADER)
   ================================================================ */
header {
    flex: 0 0 auto;
    background-color: var(--np-dark);
    border-bottom: 2px solid var(--np-border);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Логотип сайта: NP (красный) + party (белый) */
.logo {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}
.logo .logo-np { color: var(--np-red); }
.logo .logo-party { color: #ffffff; text-transform: lowercase; }

nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
nav a {
    margin: 0 16px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-gray);
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: color 0.2s;
    position: relative;
    white-space: nowrap;
}
nav a:hover { color: #fff; }
nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--np-red);
    transition: width 0.2s ease;
    transform: translateX(-50%);
}
nav a:hover::after { width: 100%; }

/* ================================================================
   2.1. БУРГЕР-МЕНЮ
   ================================================================ */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--np-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.burger-btn:hover {
    background: var(--input-bg);
    border-color: var(--np-red);
}
.burger-btn span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; }
.burger-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================================================
   3. АВТОРИЗАЦИЯ И ДРОПДАУН
   ================================================================ */
.auth-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 40px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.auth-block.loaded { visibility: visible; opacity: 1; }

/* Официальная кнопка входа через Steam */
.steam-login-btn-official {
    display: inline-block;
    line-height: 0;
}
.steam-login-btn-official img {
    display: block;
    height: 35px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: opacity 0.2s;
}
.steam-login-btn-official:hover img { opacity: 0.85; }

/* Блок текущего пользователя в шапке */
.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    user-select: none;
    white-space: nowrap;
}
.user-profile-trigger:hover { background-color: #202227; }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--np-red);
    background-color: var(--input-bg);
    object-fit: cover;
    flex-shrink: 0;
}
.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}
.dropdown-arrow {
    border: solid var(--text-gray);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Выпадающее меню профиля */
.profile-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--np-dark);
    border: 1px solid var(--np-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 220px;
    overflow: hidden;
    z-index: 100;
}
.profile-dropdown.show { display: block; }

.dropdown-user-info {
    padding: 15px;
    border-bottom: 1px solid var(--np-border);
    background-color: var(--input-bg);
    display: flex;
    align-items: center;
    gap: 12px;
}
.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--np-red);
    object-fit: cover;
}
.dropdown-name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown-hours { font-size: 12px; color: var(--text-gray); }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
}
.dropdown-item:hover { background-color: #202227; color: var(--np-red); }
.dropdown-item.logout-item {
    border-top: 1px solid var(--np-border);
    color: #ff4d4d;
}

/* ================================================================
   3.2. ВХОД: КНОПКА «ВОЙТИ» И ДРОПДАУН ПРОВАЙДЕРОВ
   ================================================================ */
.auth-login-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: var(--np-red);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
    transition: background 0.2s, transform 0.15s;
}
.auth-login-trigger:hover {
    background: var(--np-red-hover);
    transform: translateY(-1px);
}
.auth-login-trigger .dropdown-arrow {
    border-color: #fff;
    transform: rotate(45deg);
}

/* Дропдаун со списком провайдеров */
.login-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background-color: var(--np-dark);
    border: 1px solid var(--np-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 240px;
    padding: 6px;
    overflow: hidden;
    z-index: 100;
}
.login-dropdown.show { display: block; }

/* Кнопка провайдера внутри дропдауна */
.provider-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: var(--input-bg);
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.provider-btn:hover {
    background: #202227;
    transform: translateX(2px);
}
.provider-btn .provider-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    color: #fff;
}
.provider-btn .provider-label { flex: 1; }

/* Фирменные цвета провайдеров */
.provider-btn-steam .provider-icon { background: #1b2838; }
.provider-btn-vk .provider-icon { background: #0077ff; }
.provider-btn-yandex .provider-icon { background: #fc3f1d; }
.provider-btn-mailru .provider-icon { background: #005ff9; }
.provider-btn-ok .provider-icon { background: #ee8208; }

/* ================================================================
   3.3. СТАТУС-БЕЙДЖИ ИГР
   ================================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: #fff;
}
/* Цветовые индикаторы статусов: live — зелёный, beta — жёлтый,
   coming_soon — синий, planned — серый */
.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.status-live {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(46, 204, 113, 0.35);
}
.status-beta {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning-orange);
    border: 1px solid rgba(243, 156, 18, 0.35);
}
.status-soon {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info-blue);
    border: 1px solid rgba(52, 152, 219, 0.35);
}
.status-planned {
    background: rgba(154, 160, 166, 0.12);
    color: var(--text-gray);
    border: 1px solid rgba(154, 160, 166, 0.3);
}


/* ================================================================
   3.1. УВЕДОМЛЕНИЯ (колокольчик и дропдаун)
   ================================================================ */
.notification-trigger {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    color: var(--text-gray);
    margin-left: 6px;
}
.notification-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.notification-trigger .notification-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* Бейдж с количеством непрочитанных */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--np-red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    padding: 1px 6px;
    min-width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    box-shadow: 0 0 8px rgba(205, 65, 43, 0.4);
    border: 2px solid var(--np-dark);
    display: none;
    align-items: center;
    justify-content: center;
}

/* Дропдаун уведомлений */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 460px;
    background: var(--np-dark);
    border: 1px solid var(--np-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    z-index: 999;
    overflow: hidden;
    display: none;
    animation: slideDown 0.2s ease;
}
.notification-dropdown.show { display: block; }

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

.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--np-border);
    background: var(--np-bg);
}
.notification-dropdown-header span {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.notification-dropdown-header .btn {
    font-size: 11px;
    padding: 4px 12px;
    background: transparent;
    border: 1px solid var(--np-border);
    color: var(--text-gray);
}
.notification-dropdown-header .btn:hover {
    background: var(--np-border);
    color: #fff;
}

.notification-dropdown-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 4px 0;
}
.notification-dropdown-list::-webkit-scrollbar { width: 4px; }
.notification-dropdown-list::-webkit-scrollbar-track { background: var(--np-bg); }
.notification-dropdown-list::-webkit-scrollbar-thumb { background: var(--np-border); border-radius: 4px; }

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.notification-item:hover { background: rgba(255, 255, 255, 0.03); }
.notification-item.unread {
    background: rgba(205, 65, 43, 0.05);
    border-left: 3px solid var(--np-red);
}
.notification-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; width: 28px; text-align: center; }
.notification-content { flex: 1; min-width: 0; }
.notification-text {
    color: #cdd2d9;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.notification-item.unread .notification-text { color: #fff; }
.notification-time { color: var(--text-gray); font-size: 11px; margin-top: 4px; display: block; }


/* ================================================================
   4. КНОПКИ (ЕДИНЫЙ UI-KIT)
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--np-red); border-color: var(--np-red); }
.btn-primary:hover { background: var(--np-red-hover); border-color: var(--np-red-hover); }

.btn-secondary { background: #262930; border-color: #363a44; }
.btn-secondary:hover { background: #363a44; border-color: #363a44; }

.btn-success { background: var(--success-green); border-color: var(--success-green); }
.btn-success:hover { background: #27ae60; border-color: #27ae60; }

.btn-danger { background: var(--danger-red); border-color: var(--danger-red); }
.btn-danger:hover { background: #c0392b; border-color: #c0392b; }

.btn-warning { background: var(--warning-orange); border-color: var(--warning-orange); color: #000; }
.btn-warning:hover { background: #e67e22; border-color: #e67e22; }

.btn-info { background: var(--info-blue); border-color: var(--info-blue); }
.btn-info:hover { background: #2980b9; border-color: #2980b9; }

.btn-sm { padding: 6px 12px; font-size: 11px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }

/* ================================================================
   5. МОДАЛЬНЫЕ ОКНА (использует showConfirmModal из helpers.js)
   ================================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 8, 0.82);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal {
    background: var(--np-dark);
    border: 1px solid var(--np-border);
    border-radius: var(--radius-xl);
    padding: 30px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--np-border);
    padding-bottom: 15px;
}
.modal-header h3 { color: #fff; font-size: 18px; font-weight: 800; margin: 0; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { color: #fff; }
.modal-body { margin-bottom: 20px; color: var(--text-light); }
.modal-footer {
    display: flex;
    gap: var(--gap-md);
    justify-content: flex-end;
    border-top: 1px solid var(--np-border);
    padding-top: 15px;
}


/* ================================================================
   6. ТОСТЫ (всплывающие уведомления)
   ================================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 999999;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--np-dark);
    border: 1px solid var(--np-border);
    border-left: 4px solid var(--info-blue);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 600;
    max-width: 360px;
    min-width: 240px;
    cursor: pointer;
    word-break: break-word;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-item .toast-icon { font-size: 20px; }
.toast-item.toast-success { border-left-color: var(--success-green); }
.toast-item.toast-error { border-left-color: var(--danger-red); }
.toast-item.toast-warning { border-left-color: var(--warning-orange); }
.toast-item.toast-info { border-left-color: var(--info-blue); }
.toast-item.toast-hide { opacity: 0; transform: translateY(-20px); }

/* ================================================================
   7. ФУТЕР
   ================================================================ */
footer {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
    background: var(--np-dark);
    border-top: 2px solid var(--np-border);
    padding: 20px 40px;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: auto;
}
footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}
footer .footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
footer .footer-links a:hover { color: #fff; }

/* ================================================================
   8. СТРАНИЦА 404
   ================================================================ */
.not-found {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}
.not-found h1 {
    font-size: 100px;
    font-weight: 900;
    color: var(--np-red);
    margin: 0;
    line-height: 1;
}
.not-found p { font-size: 20px; color: var(--text-gray); margin: 16px 0 8px; }
.not-found p.sub { font-size: 14px; margin-bottom: 30px; }
.not-found-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }


/* ================================================================
   9. АДАПТИВ (RESPONSIVE)
   ================================================================ */
@media (max-width: 1400px) {
    header { padding: 0 20px; }
    nav a { margin: 0 8px; font-size: 12px; letter-spacing: 0.4px; }
    .auth-block { width: 160px; min-width: 160px; }
}

@media (max-width: 992px) {
    header { padding: 0 16px; }
    nav a { margin: 0 8px; font-size: 11px; }
    .logo { font-size: 30px; }
    .auth-block { width: 150px; min-width: 150px; }
}

/* Мобильные и планшеты: включаем бургер, навигация становится выпадающей */
@media (max-width: 1100px) {
    header {
        flex-wrap: nowrap;
        height: 60px;
        padding: 0 14px;
        gap: 12px;
    }
    .logo {
        font-size: 27px;
        margin-right: auto;
        max-width: 290px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .burger-btn { display: inline-flex; }

    nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--np-dark);
        border-bottom: 2px solid var(--np-border);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s 0.35s;
        z-index: 100;
        flex: none;
        width: 100%;
    }
    nav.open {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    nav a {
        margin: 0;
        padding: 13px 20px;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        white-space: nowrap;
        text-transform: none;
        letter-spacing: 0.3px;
        display: flex;
        align-items: center;
        color: var(--text-gray);
    }
    nav a:hover { background: var(--input-bg); color: #fff; }
    nav a::after { display: none; }

    .auth-block { width: auto; min-width: 0; flex-shrink: 0; }
    .user-name { max-width: 90px; font-size: 13px; }
    .user-profile-trigger { gap: 6px; padding: 4px 6px; }
    .user-avatar { width: 28px; height: 28px; }
    .dropdown-arrow { display: none; }
    .notification-trigger { padding: 4px 6px; }
    .notification-dropdown { right: -60px; width: calc(100vw - 20px); max-width: 380px; }
    .steam-login-btn-official img { height: 30px; }
    .auth-login-trigger { padding: 6px 12px; font-size: 12px; }
    .login-dropdown { width: 220px; }
}


/* Очень маленькие телефоны (до 360px) */
@media (max-width: 360px) {
    header { height: 52px; padding: 0 8px; gap: 6px; }
    .logo { font-size: 21px; max-width: 150px; }
    .burger-btn { width: 32px; height: 32px; padding: 7px; }
    .burger-btn span { width: 16px; height: 2px; }
    .burger-btn.active span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
    .burger-btn.active span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
    nav { top: 52px; }
    nav.open { max-height: calc(100vh - 52px); }
    nav a { padding: 11px 14px; font-size: 12px; }
    .user-name { display: none; }
    .user-profile-trigger { gap: 0; padding: 4px; }
}

/* Телефоны (до 480px) */
@media (max-width: 480px) {
    header { height: 54px; padding: 0 10px; gap: 8px; }
    .logo { font-size: 24px; max-width: 225px; }
    .burger-btn { width: 36px; height: 36px; padding: 8px; gap: 4px; }
    .burger-btn span { width: 18px; }
    .burger-btn.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .burger-btn.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    nav { top: 54px; }
    nav.open { max-height: calc(100vh - 54px); }
    nav a { padding: 12px 16px; font-size: 13px; }

    .auth-block { height: 36px; }
    .user-avatar { width: 26px; height: 26px; }
    .user-name { max-width: 65px; font-size: 12px; }
    .notification-trigger { margin-left: 2px; padding: 4px; }
    .notification-badge { min-width: 16px; height: 16px; font-size: 9px; line-height: 16px; }
    .toast-container { left: 20px; right: 20px; align-items: stretch; }
    .toast-item { min-width: 0; max-width: none; }
}

