/* ============================================
    Starlight - Premium Navbar System
   Modern Platform-Based Navigation
   Futuristic Dark Glassmorphism
   ============================================ */

/* Navbar Container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 1rem 2rem;
    transition: padding 300ms ease, background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
    background: transparent;
    isolation: isolate;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

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

.navbar-logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.navbar-logo:hover .navbar-logo-img {
    filter: brightness(1.1);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.08);
}

/* Starlight neutral navbar override: keep platform/community icons gray */
.navbar,
.platforms-dropdown,
.community-dropdown,
.user-dropdown,
.mobile-menu {
    --primary: #FFFFFF;
    --primary-light: rgba(255,255,255,0.72);
    --accent: rgba(255,255,255,0.72);
    --glass-border: rgba(255,255,255,0.1);
    --glow-primary: none;
    --gradient-primary: linear-gradient(135deg,#FFFFFF 0%,rgba(255,255,255,0.72) 100%);
}

.navbar,
.platforms-dropdown,
.community-dropdown,
.user-dropdown {
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.55) !important;
}

.nav-link i,
.nav-link svg,
.platform-tab i,
.platform-tab svg,
.platform-link i,
.platform-link svg,
.community-link i,
.community-link svg,
.user-dropdown i,
.user-dropdown svg {
    color: rgba(255,255,255,0.48) !important;
    stroke: rgba(255,255,255,0.48) !important;
}

.nav-link:hover,
.platform-tab:hover,
.platform-tab.active,
.platform-link:hover,
.community-link:hover,
.user-menu-trigger:hover {
    background: rgba(255,255,255,0.055) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.88) !important;
}

.nav-link:hover i,
.nav-link:hover svg,
.platform-tab:hover i,
.platform-tab:hover svg,
.platform-tab.active i,
.platform-tab.active svg,
.platform-link:hover i,
.platform-link:hover svg,
.community-link:hover i,
.community-link:hover svg {
    color: rgba(255,255,255,0.78) !important;
    stroke: rgba(255,255,255,0.78) !important;
}

.nav-link.active::after {
    width: 60%;
}

.nav-link > i:first-child {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-link:hover > i:first-child {
    opacity: 1;
}

.nav-arrow {
    width: 0.85rem !important;
    height: 0.85rem !important;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-arrow,
.nav-item.dropdown-open .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   PLATFORMS MEGA DROPDOWN - NEW DESIGN
   ============================================ */
.platforms-mega {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 720px;
    background: rgba(14, 14, 20, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.1);
    z-index: var(--z-dropdown);
    display: flex;
    overflow: hidden;
}

.nav-item:hover .platforms-mega,
.nav-item.dropdown-open .platforms-mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Left sidebar - Platform categories */
.platforms-sidebar {
    width: 200px;
    background: rgba(10, 10, 15, 0.5);
    padding: 1rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.platform-category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
}

.platform-category i,
.platform-category svg {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.platform-category:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.platform-category:hover i,
.platform-category:hover svg {
    opacity: 1;
    color: var(--text-primary);
}

.platform-category.active {
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
    box-shadow: inset 3px 0 0 rgba(255,255,255,0.45);
}

.platform-category.active i,
.platform-category.active svg {
    opacity: 1;
    color: var(--text-primary);
}

/* Right content - Submenu items */
.platforms-content {
    flex: 1;
    padding: 1.25rem;
    min-height: 220px;
}

.platform-submenu {
    display: none;
    animation: fadeInRight 0.3s ease;
}

.platform-submenu.active {
    display: block;
}

.platform-submenu-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.platform-submenu-items {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.platform-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.platform-submenu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.platform-submenu-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding-left: 1.1rem;
}

.platform-submenu-item:hover::before {
    transform: scaleY(1);
}

.platform-submenu-item i,
.platform-submenu-item svg {
    width: 1.2rem;
    height: 1.2rem;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    opacity: 0.8;
    transition: all 0.25s ease;
}

.platform-submenu-item:hover i,
.platform-submenu-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.platform-submenu-item .item-badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

/* Regular dropdown (Community) */
.dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: rgba(14, 14, 20, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.1);
    z-index: var(--z-dropdown);
}

.nav-item:hover .dropdown,
.nav-item.dropdown-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(14, 14, 20, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding-left: 1rem;
}

.dropdown-item i,
.dropdown-item svg {
    width: 1.2rem;
    height: 1.2rem;
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
}

.dropdown-item .brand-discord,
.dropdown-item .brand-roblox,
.dropdown-item .brand-youtube,
.dropdown-item .brand-tiktok,
.dropdown-item .brand-github,
.dropdown-item .brand-whatsapp { color: rgba(255, 255, 255, 0.55) !important; }

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.lang-btn i {
    width: 1rem;
    height: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: rgba(14, 14, 20, 0.95);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    z-index: var(--z-dropdown);
}

.lang-switcher.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-size: 0.85rem;
    text-align: left;
}

.lang-option:hover,
.lang-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Auth Buttons */
.btn-login {
    padding: 0.55rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-ticket-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.nav-ticket-link[hidden],
[data-auth-guest][hidden],
[data-auth-dashboard][hidden],
[data-auth-admin][hidden],
[data-auth-logout][hidden],
[data-auth-ticket][hidden],
[data-auth-required][hidden],
[data-auth-admin][hidden],
[data-auth-guest][hidden],
[data-auth-dashboard][hidden],
#profile-dropdown-wrap[hidden],
#mobile-profile-section[hidden],
.navbar [hidden],
.mobile-menu [hidden],
[data-ticket-badge][hidden] {
    display: none !important;
}

@media (max-width: 1023px) {
    .mobile-auth {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .mobile-auth .btn-login:not([hidden]),
    .mobile-auth .btn-register:not([hidden]) {
        flex: 1 1 calc(50% - 0.375rem) !important;
        display: inline-flex !important;
    }

    #mobile-profile-section:not([hidden]) {
        flex: 1 1 100% !important;
        width: 100% !important;
        display: grid !important;
    }
}

@media (max-width: 380px) {
    .mobile-auth .btn-login:not([hidden]),
    .mobile-auth .btn-register:not([hidden]) {
        flex-basis: 100% !important;
    }
}

.nav-ticket-badge {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--danger, #ff4757);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.btn-register {
    padding: 0.55rem 1.25rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: calc(var(--z-sticky) + 10);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--navbar-height, 70px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: calc(var(--z-sticky) + 5);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.navbar.mobile-open {
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body.mobile-menu-open {
    /* overflow dibiarkan normal - mobile-menu sudah di body langsung */
}

/* Profile dropdown fallback
   Kept in navbar.css so injected navbar UI is styled on every page,
   even when page-specific CSS is cached or loaded in a different order. */
.profile-dropdown-wrap {
    position: relative;
}

.profile-pill {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.profile-pill:hover,
.profile-pill.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.profile-avatar,
.profile-dropdown-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
}

.profile-avatar img,
.profile-dropdown-avatar img,
.mobile-profile-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.profile-avatar.has-image,
.profile-dropdown-avatar.has-image,
.mobile-profile-av.has-image {
    padding: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}

.profile-chevron {
    transition: transform 0.2s ease;
    opacity: 0.55;
}

.profile-pill.active .profile-chevron {
    transform: rotate(180deg);
}

.profile-dropdown {
    top: 0;
    left: 0;
    width: min(250px, calc(100vw - 24px));
    overflow: hidden;
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    position: fixed;
    z-index: 2147483647;
}

.profile-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-dropdown-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

.profile-dropdown-header > div:last-child {
    min-width: 0;
}

.profile-dropdown-name,
.profile-dropdown-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-name {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.85rem;
    font-weight: 650;
}

.profile-dropdown-email {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.72rem;
}

.profile-dropdown-body,
.profile-dropdown-footer {
    padding: 0.35rem;
}

.profile-dropdown-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-dropdown-item,
.profile-dropdown-logout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 36px;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    text-align: left;
    text-decoration: none;
}

.profile-dropdown-item:hover,
.profile-dropdown-logout:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

.profile-item-arrow,
.profile-ticket-badge {
    margin-left: auto;
}

.profile-ticket-badge {
    min-width: 1.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(248, 113, 113, 0.14);
    color: #fca5a5;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
}

.profile-dropdown-logout {
    color: rgba(248, 113, 113, 0.86);
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mobile-nav-link i:first-child {
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.mobile-nav-link i:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.mobile-nav-item.open .mobile-nav-link i:last-child {
    transform: rotate(180deg);
}

/* Mobile Platform Submenu */
.mobile-platform-submenu {
    padding-left: 2rem;
    display: none;
    background: rgba(10, 10, 15, 0.5);
    border-radius: var(--radius-md);
    margin: 0.25rem 0;
}

.mobile-platform-submenu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: var(--radius-md);
}

.mobile-sub-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-sub-link i,
.mobile-sub-link svg,
.mobile-nav-link i:first-child {
    color: rgba(255, 255, 255, 0.55);
}

.mobile-sub-link i,
.mobile-sub-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Mobile nested submenu (Roblox/GTA/Web subitems) */
.mobile-nested-submenu {
    padding-left: 1.5rem;
    display: none;
}

.mobile-nested-submenu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-auth {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    margin-top: 0.5rem;
}

.mobile-auth .btn-login,
.mobile-auth .btn-register {
    flex: 1 1 calc(50% - 0.375rem);
    min-width: 0;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.72rem 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
    border-radius: 12px;
}

.mobile-profile-section {
    flex: 1 1 100%;
    width: 100%;
    display: grid;
    gap: 0.55rem;
    margin-top: 0.25rem;
    padding: 0.9rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.08), transparent 42%),
        rgba(255,255,255,0.035);
}

.mobile-profile-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0 0 0.75rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-profile-av {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 750;
    overflow: hidden;
}

.mobile-profile-section .profile-dropdown-name,
.mobile-profile-section .profile-dropdown-email {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-profile-section .profile-dropdown-name {
    color: rgba(255,255,255,0.9);
    font-size: 0.92rem;
    font-weight: 750;
}

.mobile-profile-section .profile-dropdown-email {
    margin-top: 0.12rem;
    color: rgba(255,255,255,0.42);
    font-size: 0.76rem;
}

.mobile-profile-link,
.mobile-profile-logout {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.72rem 0.82rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 13px;
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.1;
    text-align: left;
}

.mobile-profile-link:hover,
.mobile-profile-logout:hover {
    background: rgba(255,255,255,0.075);
    border-color: rgba(255,255,255,0.16);
    color: #fff;
}

.mobile-profile-link i,
.mobile-profile-logout i {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: rgba(255,255,255,0.55);
}

.mobile-profile-logout {
    color: rgba(248,113,113,0.85);
    cursor: pointer;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .platforms-mega {
        width: 600px;
    }
    
    .platforms-sidebar {
        width: 170px;
    }
}

@media (max-width: 1023px) {
    .navbar-menu {
        display: none;
    }

    .navbar-actions {
        margin-left: auto;
        gap: 0.5rem;
    }

    .navbar-actions .lang-switcher {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: calc(var(--z-sticky) + 10);
        flex-shrink: 0;
        pointer-events: auto !important;
    }

    .btn-login,
    .btn-register {
        display: none;
    }

    .mobile-auth .btn-login,
    .mobile-auth .btn-register {
        display: inline-flex !important;
    }

    .mobile-menu {
        z-index: calc(var(--z-sticky) + 5);
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar.scrolled {
        padding: 0.6rem 1rem;
    }
    
    .navbar-logo {
        font-size: 1.25rem;
        gap: 0.5rem;
    }
    
    .navbar-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .lang-btn span.current-lang {
        display: none;
    }
}

@media (max-width: 380px) {
    .mobile-auth .btn-login,
    .mobile-auth .btn-register {
        flex-basis: 100%;
    }
}

/* Force neutral navbar/platform/community icons across all pages */
.platform-category i,
.platform-category svg,
.platform-category:hover i,
.platform-category:hover svg,
.platform-category.active i,
.platform-category.active svg,
.platform-submenu-item i,
.platform-submenu-item svg,
.platform-submenu-item:hover i,
.platform-submenu-item:hover svg,
.dropdown-item i,
.dropdown-item svg,
.dropdown-item:hover i,
.dropdown-item:hover svg,
.mobile-nav-link i,
.mobile-nav-link svg,
.mobile-sub-link i,
.mobile-sub-link svg,
.brand-icon,
.brand-discord,
.brand-roblox,
.brand-youtube,
.brand-tiktok,
.brand-github,
.brand-whatsapp {
    color: rgba(255, 255, 255, 0.55) !important;
    stroke: currentColor !important;
}

/* Starlight neutral navbar theme override */
.navbar .logo-icon,
.navbar .btn-register {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
}

.navbar .logo-text {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff !important;
}

.navbar .nav-link::after {
    background: rgba(255,255,255,.72) !important;
}

.navbar .lang-btn,
.navbar .btn-login,
.navbar .profile-pill {
    border-color: rgba(255,255,255,.14) !important;
    background: rgba(255,255,255,.035) !important;
}

.navbar .lang-btn:hover,
.navbar .btn-login:hover,
.navbar .profile-pill:hover,
.navbar .profile-pill.active {
    border-color: rgba(255,255,255,.28) !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: none !important;
}

.navbar .lang-dropdown,
.navbar .profile-dropdown {
    border-color: rgba(255,255,255,.12) !important;
    background: rgba(8,8,8,.96) !important;
}

.navbar .lang-option:hover,
.navbar .lang-option.active,
.navbar .profile-dropdown-item:hover,
.navbar .profile-dropdown-logout:hover,
.mobile-profile-link:hover {
    background: rgba(255,255,255,.07) !important;
}

/* Final neutral override wins over legacy accent rules */
.navbar.scrolled,
.platforms-dropdown,
.community-dropdown,
.user-dropdown,
.mobile-menu {
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,0.55) !important;
}

.platform-tab,
.platform-link,
.community-link,
.user-menu-trigger {
    border-color: rgba(255,255,255,0.08) !important;
}

.nav-link:hover,
.platform-tab:hover,
.platform-tab.active,
.platform-link:hover,
.community-link:hover,
.user-menu-trigger:hover {
    background: rgba(255,255,255,0.055) !important;
    border-color: rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.88) !important;
}

.nav-link i,
.nav-link svg,
.platform-tab i,
.platform-tab svg,
.platform-link i,
.platform-link svg,
.community-link i,
.community-link svg,
.user-menu-trigger i,
.user-menu-trigger svg {
    color: rgba(255,255,255,0.52) !important;
    stroke: rgba(255,255,255,0.52) !important;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .platform-category:hover,
.navbar .platform-category.active,
.navbar .platform-submenu-item:hover,
.navbar .dropdown-item:hover,
.navbar .mobile-nav-link:hover,
.navbar .mobile-nav-link.active,
.navbar .mobile-sub-link:hover,
.navbar .mobile-sub-link.active,
.navbar .lang-option:hover,
.navbar .lang-option.active,
.navbar .profile-dropdown-item:hover {
    background: rgba(255,255,255,0.075) !important;
    border-color: rgba(255,255,255,0.16) !important;
    color: rgba(255,255,255,0.92) !important;
    box-shadow: none !important;
}

.navbar .platforms-mega,
.navbar .platforms-sidebar,
.navbar .platforms-content,
.navbar .community-dropdown,
.navbar .lang-dropdown,
.navbar .profile-dropdown,
.navbar .mobile-menu,
.navbar .mobile-platform-submenu {
    background: rgba(7,7,8,0.96) !important;
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.58) !important;
}

.navbar .platforms-sidebar,
.navbar .platforms-content,
.navbar .platform-section,
.navbar .dropdown-section,
.navbar .mobile-platform-submenu {
    border-color: rgba(255,255,255,0.08) !important;
}

.navbar .platform-submenu-item::before,
.navbar .dropdown-item::before,
.navbar .mobile-sub-link::before,
.navbar .nav-promo-badge,
.navbar .item-badge,
.navbar .profile-role-badge,
.navbar .profile-ticket-badge {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.16) !important;
    color: rgba(255,255,255,0.8) !important;
    box-shadow: none !important;
}

.navbar .platform-submenu-item:hover i,
.navbar .platform-submenu-item:hover svg,
.navbar .dropdown-item:hover i,
.navbar .dropdown-item:hover svg,
.navbar .mobile-sub-link:hover i,
.navbar .mobile-sub-link:hover svg,
.navbar .nav-link.active i,
.navbar .nav-link.active svg {
    color: rgba(255,255,255,0.78) !important;
    stroke: rgba(255,255,255,0.78) !important;
}

/* Single-source navbar lock: page CSS must not restyle navbar differently */
.navbar,
.navbar * {
    --primary: #fff;
    --primary-light: rgba(255,255,255,0.82);
    --accent: rgba(255,255,255,0.72);
    --gradient-primary: linear-gradient(135deg,#fff 0%,rgba(255,255,255,0.72) 100%);
}

.navbar {
    z-index: var(--z-sticky, 200) !important;
    background: rgba(0,0,0,0.78) !important;
    border-bottom: 1px solid rgba(255,255,255,0.055) !important;
    box-shadow: none !important;
}

.navbar.scrolled,
.navbar.mobile-open {
    background: rgba(0,0,0,0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
    box-shadow: none !important;
}

.navbar .nav-link,
.navbar .nav-link-promo,
.navbar .mobile-nav-link,
.navbar .mobile-sub-link,
.navbar .platform-category,
.navbar .platform-submenu-item,
.navbar .dropdown-item,
.navbar .lang-btn,
.navbar .lang-option,
.navbar .profile-pill,
.navbar .profile-dropdown-item,
.navbar .profile-dropdown-logout {
    color: rgba(255,255,255,0.58) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link-promo:hover,
.navbar .nav-link-promo.active,
.navbar .mobile-nav-link:hover,
.navbar .mobile-nav-link.active,
.navbar .mobile-sub-link:hover,
.navbar .mobile-sub-link.active,
.navbar .platform-category:hover,
.navbar .platform-category.active,
.navbar .platform-submenu-item:hover,
.navbar .dropdown-item:hover,
.navbar .lang-option:hover,
.navbar .lang-option.active,
.navbar .profile-pill:hover,
.navbar .profile-pill.active,
.navbar .profile-dropdown-item:hover,
.navbar .profile-dropdown-logout:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.075) !important;
    border-color: rgba(255,255,255,0.16) !important;
    box-shadow: none !important;
}

.navbar .nav-link.active,
.navbar .mobile-nav-link.active {
    background: rgba(255,255,255,0.09) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1) !important;
}

.navbar .nav-link::after,
.navbar .btn-register::before {
    display: none !important;
}

.navbar .platforms-mega,
.navbar .dropdown,
.navbar .community-dropdown,
.navbar .lang-dropdown,
.navbar .profile-dropdown,
.navbar .mobile-menu,
.navbar .mobile-platform-submenu {
    background: rgba(8,8,8,0.97) !important;
    border-color: rgba(255,255,255,0.1) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.62) !important;
}

.navbar .dropdown::before {
    background: rgba(8,8,8,0.97) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.navbar .platforms-sidebar,
.navbar .platforms-content,
.navbar .platform-submenu-header,
.navbar .dropdown-section,
.navbar .mobile-nav-item {
    border-color: rgba(255,255,255,0.075) !important;
}

.navbar i,
.navbar svg,
.navbar .brand-icon,
.navbar .brand-discord,
.navbar .brand-roblox,
.navbar .brand-youtube,
.navbar .brand-tiktok,
.navbar .brand-github,
.navbar .brand-whatsapp {
    color: rgba(255,255,255,0.55) !important;
    stroke: currentColor !important;
}

.navbar a:hover i,
.navbar a:hover svg,
.navbar button:hover i,
.navbar button:hover svg,
.navbar .active i,
.navbar .active svg {
    color: rgba(255,255,255,0.82) !important;
    stroke: currentColor !important;
}

.navbar .btn-login,
.navbar .lang-btn,
.navbar .profile-pill {
    background: rgba(255,255,255,0.035) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.68) !important;
}

.navbar .btn-register {
    background: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
}

.navbar .btn-register:hover {
    background: rgba(255,255,255,0.88) !important;
    color: #000 !important;
    transform: translateY(-1px) !important;
}

.navbar .logo-text,
.navbar .logo-num {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: #fff !important;
}

/* Final auth visibility guard: must stay at the end */
.navbar [hidden],
.mobile-menu [hidden],
.mobile-auth [hidden],
.mobile-auth .btn-login[hidden],
.mobile-auth .btn-register[hidden],
#profile-dropdown-wrap[hidden],
#mobile-profile-section[hidden],
[data-auth-guest][hidden],
[data-auth-ticket][hidden],
[data-auth-dashboard][hidden],
[data-auth-admin][hidden],
[data-auth-logout][hidden],
[data-ticket-badge][hidden] {
    display: none !important;
}
