/* Glass Header Design System */
:root {
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --primary-glow: rgba(0, 168, 255, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --nav-height: 100px;
}

/* Base Navbar Structure */
.ultra-modern-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.3s ease;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

/* Elegant Top Line (More subtle than before) */
.ultra-modern-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 168, 255, 0.5),
            rgba(0, 210, 211, 0.5),
            transparent);
    opacity: 0.8;
}

/* Logo & Branding */
.navbar-brand {
    padding: 0;
    margin-right: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.brand-logo {
    height: 70px !important;
    /* Slightly adjusted for better proportion */
    filter: drop-shadow(0 0 10px rgba(0, 168, 255, 0.2));
    transition: transform 0.3s ease;
}

.modern-brand:hover .brand-logo {
    transform: scale(1.05) rotate(5deg);
}

.brand-text {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    /* Prefer Outfit if available */
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 168, 255, 0.3);
}

/* Navigation Links */
.navbar-nav {
    gap: 5px;
}

.nav-link {
    position: relative;
    padding: 12px 22px !important;
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link span {
    position: relative;
    z-index: 2;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

/* Active Indicator */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #00a8ff;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Special "Buy" Button */
.nav-link.nav-btn {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 168, 255, 0.05));
    border: 1px solid rgba(0, 168, 255, 0.2);
    color: #00a8ff !important;
    padding: 8px 24px !important;
    margin-left: 10px;
}

.nav-link.nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.2), rgba(0, 168, 255, 0.1));
    border-color: rgba(0, 168, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.15);
}

.nav-link.nav-btn::after {
    display: none;
}

/* Social Icons */
.nav-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-social:hover {
    background: #5865F2;
    /* Discord color */
    border-color: #5865F2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

/* Cart Icon */
.cart-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* 
   -------------------------------------------------------------------------
   USER DROPDOWN STYLES (PRESERVED & REFINED)
   -------------------------------------------------------------------------
*/

.user-dropdown {
    position: relative;
}

.user-profile-btn {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px 8px 8px;
    /* Optimized padding */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-profile-btn:hover,
.user-profile-btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.avatar-container {
    position: relative;
    width: 38px;
    height: 38px;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-profile-btn:hover .user-avatar {
    border-color: var(--primary-glow);
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #2ed573;
    border: 2px solid #0d1117;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(46, 213, 115, 0.5);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.username {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.dropdown-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-profile-btn[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
    color: #fff;
}

/* Dropdown Menu Body */
.modern-dropdown {
    background: rgba(18, 22, 30, 0.95);
    /* Slightly darker/more solid for readability */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 6px;
    min-width: 260px;
    margin-top: 10px;
    animation: dropdownSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modern-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.modern-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(2px);
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Icon Colors */
.dashboard-icon {
    background: rgba(0, 168, 255, 0.1);
    color: #00a8ff;
}

.modern-item:hover .dashboard-icon {
    background: #00a8ff;
    color: #fff;
}

.settings-icon {
    background: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

.modern-item:hover .settings-icon {
    background: #ff9f43;
    color: #fff;
}

.help-icon {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
}

.modern-item:hover .help-icon {
    background: #6c5ce7;
    color: #fff;
}

.logout-icon {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.modern-item:hover .logout-icon {
    background: #ff4757;
    color: #fff;
}

.item-content {
    display: flex;
    flex-direction: column;
}

.item-title {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
}

.item-desc {
    font-size: 0.75rem;
    opacity: 0.6;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

/* Role Glows (Preserved) */
.role-admin-glow {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3) !important;
    border-color: rgba(255, 215, 0, 0.5) !important;
}

.role-youtuber-glow {
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3) !important;
    border-color: rgba(255, 0, 0, 0.5) !important;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .ultra-modern-nav {
        height: auto;
        padding: 10px 0;
    }

    .navbar-collapse {
        background: rgba(13, 17, 23, 0.98);
        padding: 20px;
        border-radius: 16px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-right {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    .user-info {
        display: none;
        /* Hide text on mobile to save space */
    }
}