:root {
    --nav-bg: rgba(22, 29, 47, 0.85); 
    --dropdown-bg: rgba(11, 14, 20, 0.95);
    
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --blue: #3b82f6;
    --hover-bg: rgba(255, 255, 255, 0.104);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

body {
    margin: 0;
    padding: 0;
    background-color: #1a3a8a;
    background-image: radial-gradient(circle at top, #1e40af 0%, #0f172a 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: 120px; 
}

.navbar {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    isolation: isolate;
    
    padding-top: 35px;
    padding-bottom: 30px;
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.navbar.scrolled {
    padding-top: 15px;
    padding-bottom: 10px;
}

.navbar-inner {
    pointer-events: auto; 
    background: rgba(22, 29, 47, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    align-items: center;
    padding: 8px 12px;
    width: 95%;
    max-width: 1175px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;

    box-shadow: 0 10px 30px rgba(51, 49, 49, 0.4);
    transition: all 0.4s ease;
    grid-template-columns: 1fr auto 1fr;
}

.navbar.scrolled .navbar-inner {
    background: rgba(15, 23, 42, 0.85);
    padding: 8px 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3); 
}

.nav-center { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    flex-grow: 0; 
    justify-content: center; 
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: 0.2s;
    background: none; 
    border: none; 
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: white;
    background: var(--hover-bg);
}

.nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.2); 
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dropdown-container:hover > .nav-link,
.dropdown-container:hover > .dropdown-trigger .nav-link {
    color: white;
    background: var(--hover-bg);
}

.nav-right { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    justify-content: flex-end;
    margin-left: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

.logo img {
    width: 35px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3)); 
}

.logo-text {
    display: inline; 
}

.dropdown-container { 
    position: relative; 
    padding-bottom: 25px; 
    margin-bottom: -25px;
}

.nav-link.active, 
.menu-item.active {
    pointer-events: none;
}

.dropdown-container .nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.menu-item.active {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.menu-item.active .icon-box {
    background: #3b82f6;
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.menu-item.active .item-info strong {
    color: #3b82f6;
}

.nav-link.active,
.dropdown-container .nav-link.active {
    color: white;
    background: rgba(59, 130, 246, 0.25); 
    border: 1px solid rgba(59, 130, 246, 0.4);
    opacity: 1;
}

.dropdown-container:has(.menu-item.active) > .nav-link {
    color: white;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dropdown-container:hover > .nav-link.active {
    background: rgba(59, 130, 246, 0.3);
}

.dropdown-trigger .arrow-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.dropdown-container:hover .arrow-icon {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--blue);
}

.mega-menu {
    position: absolute;
    top: 92%;; 
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    width: 620px;
    max-width: 95vw; 
    background: linear-gradient(145deg, rgba(22, 29, 47, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    visibility: hidden; 
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transition-delay: 0.05s;
    z-index: 2000;
}

.dropdown-container:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.menu-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-title { color: white; font-weight: 800; font-size: 1.1rem; letter-spacing: 0.5px; }
.menu-subtitle { font-size: 0.8rem; color: var(--text-gray); opacity: 0.8; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.3);
}

.menu-item.active {
    background: rgba(59, 130, 246, 0.15) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.menu-item.active .icon-box {
    background: var(--blue) !important;
    color: white !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.menu-item.active strong { color: var(--blue) !important; }

.icon-box {
    flex-shrink: 0;
    width: 42px; height: 42px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--blue);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    transition: all 0.2s ease;
}

.menu-item:hover .icon-box {
    background: var(--blue);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

.item-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.item-info strong { display: block; color: #fff; font-size: 0.95rem; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.item-info span { display: block; color: var(--text-gray); font-size: 0.8rem; line-height: 1.3; opacity: 0.7; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container, .notif-container { 
    position: relative; 
}

.search-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    background: rgba(0, 0, 0, 0.4);
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    font-size: 0.85rem;
    width: 100%;
}

.search-results {
    position: absolute;
    top: 145%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 350px; 
    max-width: 92vw; 
    
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 18px;
    padding: 12px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .search-results {
    top: 130%;
    background: rgba(10, 15, 28, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

.search-results.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: 0.6; 
    border: 1px solid transparent; 
    transition: all 0.2s ease;
}

.search-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.01);
}

.search-icon-preview {
    width: 34px;
    height: 34px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.item-info strong {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    font-weight: 500;
}

.item-info small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-results::-webkit-scrollbar {
    width: 3px;
}
.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.search-results .search-item,
.search-results .search-item:visited,
.search-results .search-item:hover,
.search-results .search-item:focus,
.search-results .search-item:active {
    color: inherit;
    text-decoration: none;
}

html {
    scroll-padding-top: 70px;
}

section[id] {
    scroll-margin-top: 70px;
}

.highlight-flash {
    position: relative;
    z-index: 10;
    border-radius: inherit; 
    animation: smart-flash 1.5s cubic-bezier(0.2, 1, 0.2, 1) forwards;
    
    border: 1px solid rgba(59, 130, 246, 1) !important;
}

@keyframes smart-flash {
    0% {
        filter: brightness(1) saturate(100%);
        box-shadow: 0 0 0px rgba(59, 130, 246, 0);
    }
    15% {
        filter: brightness(1.3) saturate(150%);
        box-shadow: 
            0 0 50px rgba(59, 130, 246, 0.6), 
            inset 0 0 30px rgba(59, 130, 246, 0.3);
    }
    100% {
        filter: brightness(1) saturate(100%);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0);
    }
}

.notif-wrapper { 
    position: relative; 
    cursor: pointer; 
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.notif-wrapper:hover {
    background: rgba(59, 130, 246, 0.2); 
    color: white;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notif-wrapper:hover,
.notif-wrapper.active {
    background: rgba(59, 130, 246, 0.2) !important; 
    color: white;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notif-wrapper:hover i,
.notif-wrapper.active i {
    color: white;
}

.notif-wrapper .badge {
    z-index: 11; 
}

.news-dropdown.visible {
    display: block !important;
}

.notif-wrapper .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4655;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 2px solid #0f172a;
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.4);
    z-index: 10;
}

.mark-read {
    color: #3b82f6;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.1); 
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.mark-read:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    transform: translateY(-1px);
}

.news-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.4; 
    transition: all 0.2s ease;
    
    margin-left: auto; 
    display: flex;
    align-items: center;
}

.news-item:hover .news-link {
    opacity: 1;
    transform: translateX(3px);
}

.news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    background: transparent;
}

.news-item:hover {
    background: rgba(59, 130, 246, 0.08) !important;
}

.news-item.unread {
    background: rgba(59, 130, 246, 0.03);
    border-left: 3px solid #3b82f6;
}

.item-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-text strong { color: white; font-size: 0.85rem; margin-bottom: 2px; }
.item-text small { color: #94a3b8; font-size: 0.75rem; }
.time-display { color: #64748b !important; font-style: italic; margin-top: 2px; }

.notif-container {
    position: relative;
}

.news-dropdown {
    position: absolute;
    top: 135%;
    right: 0;
    width: 320px;
    
    background: rgba(15, 23, 42, 0.45); 
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.news-header {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-header strong {
    color: white;
    font-size: 0.95rem;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.news-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.item-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.88rem;
    display: block;
    margin-bottom: 3px;
}

.item-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
}

.time-display {
    color: #3b82f6;
    font-size: 0.7rem;
    margin-top: 5px;
    display: block;
}

.news-dropdown.dropdown-visible {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled .notif-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.navbar.scrolled .news-dropdown {
    top: 120%;
    background: rgba(15, 23, 42, 0.85);; 
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
}


.navbar.scrolled .mega-menu { top: 80%; }

.navbar.scrolled .news-header {
    background: rgba(59, 130, 246, 0.05);
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.news-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.4;
    transition: all 0.2s;
}

.news-item:hover .news-link {
    opacity: 1;
    transform: translateX(3px);
}

.main-footer {
    width: 100%;
    background-color: #05070a;
    margin: 0; 
    padding: 80px 0 40px 0;
}

.main h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    font-weight: 800; 
    margin-bottom: 20px; 
}

.main p { 
    color: var(--text-gray); 
    font-size: 1.1rem; 
    margin-bottom: 40px; 
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.show { 
    display: block !important; 
    animation: fadeInDropdown 0.2s ease-out;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active, 
.menu-item.active {
    pointer-events: auto; 
    cursor: pointer;
}

.nav-link.active .arrow-icon {
    opacity: 1;
    color: var(--blue);
}

.dropdown-container.open .arrow-icon {
    transform: rotate(180deg);
}

.profile-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
    flex-shrink: 0;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 142px;
    height: 42px;
    padding: 0 12px;
    background: rgba(59, 130, 246, 0.15); 
    border: 1px solid rgba(59, 130, 246, 0.3); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    animation: profileFadeIn 0.5s ease forwards;
}

.login-button {
    background: rgba(59, 130, 246, 0.1);
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0 20px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.login-button:hover, .profile-card:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.avatar-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-name {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1350px) {
    .login-button, .profile-card {
        height: 38px;
        font-size: 0.8rem;
    }
    
    .profile-container {
        margin-left: 8px;
    }

    .profile-card {
        width: auto; 
        max-width: 135px;
        padding: 0 10px;
    }
    
    .user-name {
        max-width: 75px;
    }

    #mainNavbar .search-results {
        position: fixed; 
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: 92%;      
        max-width: 500px;
        top: 75px;      
        background: rgba(15, 23, 42, 0.85); 
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.15); 
        border-radius: 24px;
        z-index: 999999;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    #mainNavbar .search-results.active {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
    }
}
@media (max-width: 1024px) {


    .notif-wrapper {
        width: 38px;
        height: 38px;
    }
    
    #mainNavbar .news-dropdown {
        position: fixed;
        top: 85px;
        right: 2.5%;
        width: 95%;
        max-width: none;
        border-radius: 20px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .news-item {
        padding: 18px 20px;
    }

    .item-text strong {
        font-size: 0.95rem;
    }

    .notif-wrapper:hover {
        transform: none;
    }

    #mainNavbar .nav-right .search-container { 
        display: flex;
        margin-right: 15px;
        flex: 1;
        max-width: 165px;
        min-width: 120px;
    }

    .mobile-toggle { 
        display: flex; 
    }

    .navbar-inner {
        width: 95%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navbar .navbar-inner .nav-center {
        display: none; 
        flex-direction: column;
        position: fixed; 
        top: 80px;
        left: 2.5%;
        width: 95%;
        
        background: rgba(10, 15, 25, 0.98);
        backdrop-filter: blur(25px);
        border-radius: 24px;
        border: 1px solid rgba(59, 130, 246, 0.2);
        z-index: 1000;
        box-sizing: border-box;

        max-height: calc(100vh - 100px); 
        overflow-y: auto; 
        overflow-x: hidden;
        
        padding: 20px 20px 100px 20px; 
        -webkit-overflow-scrolling: touch;
    }

    .navbar-inner .nav-center.mobile-active { 
        display: flex; 
    }

    .navbar-inner .nav-center .nav-link {
        width: 100%;
        justify-content: flex-start; 
        padding: 14px 20px;
        color: white;
        text-decoration: none;
        display: flex;
        text-align: left;
        font-size: 1.05rem;
        background: transparent;
        border: none;
    }

    .navbar-inner .nav-center .nav-link.active, 
    .navbar-inner .nav-center .menu-item.active {
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
        border-left: 3px solid #3b82f6;
    }

    .dropdown-container { 
        width: 100%; 
    }

    .navbar-inner .nav-center .mega-menu {
        display: none;
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.02);
        padding: 10px 0 10px 20px;
        transform: none;
        opacity: 1;
        border-radius: 16px;
        box-shadow: none;
        pointer-events: auto;
    }

    .dropdown-container.open .mega-menu { 
        display: block; 
    }

    .menu-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border-left: 2px solid #3b82f6;
        padding-left: 15px;
    }

    .menu-item {
        color: #ccd6f6;
        text-decoration: none;
        width: 100%;
        display: flex;
        padding: 12px;
        border-radius: 12px;
        transition: 0.2s;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed; 
        width: 100%;
    }

    .mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-toggle.open span:nth-child(2) { opacity: 0; }
    .mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


@media (max-width: 768px) {
    header#mainNavbar .navbar-inner .nav-group .logo span.logo-text {
        display: none;
    }

    #mainNavbar .nav-right .search-container { 
        display: flex;
        margin-right: 15px;
        flex: 1;
        max-width: 125px;
        min-width: 65px;
    }

    .login-button {
        width: 38px;
        padding: 0;
        justify-content: center;
    }

    .login-button span {
        display: none;
    }


    .profile-card {
        width: 38px;
        padding: 0;
        justify-content: center;
        gap: 0;
    }

    .user-name {
        display: none; 
    }

    .user-dropdown {
        width: 200px;
        right: -5px;
        top: calc(100% + 10px);
    }
}


@media (max-width: 480px) {
    .profile-container {
        margin-left: 5px;
    }

    .search-box {
        width: 100% !important;
        min-width: 40px;
    }
    .user-dropdown {
        width: 200px;
        right: -5px;
        position: fixed;
        top: 70px;
    }
    
    .profile-container {
        margin-left: 8px;
    }

}

@keyframes profileFadeIn {
    from { 
        opacity: 0; 
        filter: blur(8px); 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        filter: blur(0); 
        transform: scale(1); 
    }
}