/* ============================================================
   НАВИГАЦИЯ В ШАПКЕ (Файлы / VIP / FAQ) — единый стиль
   ============================================================ */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    flex-wrap: wrap;
}

.header-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: 'Special Elite Cyrillic', cursive, sans-serif;
}

.header-nav-btn:hover {
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-nav-btn:active { transform: translateY(0); }

.header-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    width: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease;
}

.header-nav-btn:hover .header-nav-icon { color: #fff; }

.header-nav-label {
    font-size: 0.78rem;
    line-height: 1;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 991px) {
    .header-auth {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }
    .header-nav {
        order: -1;
        width: 100%;
        justify-content: flex-start;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .header-nav-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 0.74rem;
        gap: 5px;
    }
    .header-nav-icon { font-size: 0.78rem; width: 12px; }
    .header-nav-label { font-size: 0.74rem; }
}

/* Очень узкие экраны: только иконки */
@media (max-width: 420px) {
    .header-nav-label { display: none; }
    .header-nav-btn {
        padding: 0;
        width: 32px;
        height: 32px;
        justify-content: center;
        border-radius: 9px;
    }
    .header-nav-icon { font-size: 0.85rem; width: auto; }
}

/* Тёмная тема */
[data-theme="dark"] .header-nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}