/* ===== ХЕДЕР / НАВБАР ===== */
.navbar {
    padding: 14px 0;
    background: rgba(11, 14, 20, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand {
    color: white !important;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #f0b31c, #d48f1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(240, 179, 28, 0.3));
}

.nav-link {
    color: #94a3b8 !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    margin: 0 4px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f0b31c, #d48f1a);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: #ffffff !important;
}

.nav-link.active {
    color: #f0b31c !important;
}

/* ===== ПАНЕЛЬ ПОЛЬЗОВАТЕЛЯ ===== */
.nav-balance-pill {
    background: rgba(240, 179, 28, 0.08);
    border: 1px solid rgba(240, 179, 28, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    color: #f0b31c !important;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(240, 179, 28, 0.05);
}

.nav-balance-pill:hover {
    background: rgba(240, 179, 28, 0.15);
    border-color: rgba(240, 179, 28, 0.4);
    box-shadow: 0 0 15px rgba(240, 179, 28, 0.15);
    transform: translateY(-1px);
}

.nav-balance-pill i {
    font-size: 0.95rem;
}

.nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #e8edf5 !important;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px 6px 8px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nav-user-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.nav-avatar-container {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.nav-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(240, 179, 28, 0.4);
    background: #1a2236;
}

.nav-status-online {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    border: 2px solid #0b0e14;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4);
}

.nav-username {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .navbar-nav {
        padding: 16px 0;
        gap: 10px;
    }
    .nav-link::after {
        display: none;
    }
    .nav-balance-pill {
        margin-top: 8px;
        margin-bottom: 4px;
        width: 100%;
        justify-content: center;
    }
    .nav-user-toggle {
        width: 100%;
        justify-content: center;
    }
}
