/* ========== BASE HEADER ========== */
/* Header top note */
.header-top-note-wrap {
    width: 100%;
    padding: 8px 5% 0;
    box-sizing: border-box;
}

.header-top-note {
    max-width: 1400px;
    margin: 0 auto;
    color: rgba(18, 18, 28, 0.72);
    font-size: 0.8rem;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
}

.header-top-note__desktop {
    display: block;
}

.header-top-note__mobile {
    display: none;
    overflow: hidden;
}

.header-top-note__marquee {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    width: max-content;
    min-width: 100%;
    margin: 0;
}

.header-top-note__item {
    white-space: nowrap;
}

.header-top-note__item--desktop {
    display: inline;
}

.header-top-note__item--mobile {
    display: none;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 0 5%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(255, 0, 128, 0.18);
    box-shadow: 0 2px 32px rgba(128, 0, 255, 0.15);
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    position: fixed;
    box-shadow: 0 8px 40px rgba(128, 0, 255, 0.22);
    border-bottom: 1px solid rgba(255, 0, 128, 0.28);

}

/* ========== NAV ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 0;
    position: relative;
}

/* ========== LOGO ========== */
.logo {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.logo:hover {
    filter: drop-shadow(0 0 16px rgba(255, 0, 128, 0.7));
}

/* ========== DESKTOP NAV LINKS ========== */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    list-style: none;
}

.nav-links > li > a {
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 10px 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff0080, #00ff80);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }

.nav-links > li > a:hover,
.nav-links > li > a.active { color: #ff0080; }

/* ========== DESKTOP DROPDOWN ========== */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(8, 0, 25, 0.97);
    border: 1px solid rgba(128, 0, 255, 0.2);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 220px;
    box-shadow: 0 12px 35px rgba(128, 0, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1001;
    list-style: none;
}

.nav-links li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li { list-style: none; }

.dropdown-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    padding: 11px 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    color: #ff0080;
    background: rgba(255, 0, 128, 0.12);
    padding-left: 26px;
}

/* ========== HAMBURGER ========== */
.menu-toggle {
    display: none;
    font-size: 1.7rem;
    color: #1a1a2e;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    line-height: 1;
    z-index: 1002;
}

/* ========== LOGIN ========== */
#login-toggle {
    display: flex;
    align-items: center;
    color: #1a1a2e !important;
    padding: 4px;
    text-decoration: none;
}

/* ==========================================
   MOBILE — max-width: 992px  (ONE block only)
   ========================================== */
@media (max-width: 992px) {

    /* Show hamburger */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1a1a2e;
    }

    /* Slide-down nav drawer */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 0, 15, 0.98);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
        z-index: 997;
        display: block;
        /* ✅ FIX: clip dropdown inside nav-menu bounds */
        overflow-x: hidden;
    }

    .nav-menu.active {
        max-height: 1000px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Stack links vertically */
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 6px 0 14px;
        width: 100%;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.07);
        width: 100%;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    /* Links white */
    .nav-links > li > a {
        color: #ffffff !important;
        padding: 13px 24px !important;
        font-size: 1rem !important;
        justify-content: center;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        color: #ff0080 !important;
        background: rgba(255, 0, 128, 0.07);
    }

    .nav-links > li > a::after { display: none; }

    /* Chevron rotation */
    .fa-chevron-down {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 0.7em;
    }

    .has-dropdown.active > a .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* ✅ MOBILE DROPDOWN — fully inside screen, no overflow */
    .has-dropdown > .dropdown-menu {
        display: none;
        position: static !important;   /* ✅ not absolute — stays in flow */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255,255,255,0.05) !important;
        border: none !important;
        border-top: 1px solid rgba(255,255,255,0.06) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 4px 0 8px !important;
        min-width: unset !important;
        width: 100% !important;         /* ✅ full width, stays inside */
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        overflow: visible !important;
        backdrop-filter: none !important;
    }

    .has-dropdown.active > .dropdown-menu {
        display: block;
    }

    /* Dropdown list items */
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        width: 100%;
        list-style: none;
    }

    .dropdown-menu a {
        color: rgba(255,255,255,0.75) !important;
        padding: 11px 24px 11px 44px !important;
        font-size: 0.88rem !important;
        text-align: left !important;
        white-space: normal !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dropdown-menu a:hover {
        color: #ff0080 !important;
        background: rgba(255, 0, 128, 0.09) !important;
        padding-left: 52px !important;
    }

    /* Login icon white on mobile */
    #login-toggle {
        color: #ffffff !important;
        justify-content: center;
        padding: 13px 24px !important;
        width: 100%;
    }

#login-toggle svg path { stroke: #ffffff; }
}

/* ========== PLATFORM NOTICE ========== */
.platform-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.platform-notice__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
    opacity: 0.85;
}

/* .platform-notice__text {
    margin: 0;
    flex: 1;
} */

.platform-notice--light {
    color: rgba(18, 18, 28, 0.72);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.platform-notice--dark {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: none;
}

.platform-notice--dark .platform-notice__icon {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .platform-notice {
        padding: 9px 12px;
        border-radius: 14px;
        font-size: 0.77rem;
    }
}

/* ========== 768px ========== */
@media (max-width: 768px) {
    .header-top-note-wrap {
        /* padding: 8px 0 0; */
        overflow: hidden;
    }

    .header-top-note {
        max-width: none;
        padding: 0;
        font-size: 0.76rem;
        line-height: 1.45;
    }

    .header-top-note__desktop {
        display: none;
    }

    .header-top-note__mobile {
        display: block;
    }

    .header-top-note__marquee {
        animation: headerTopMarquee 24s linear infinite;
        will-change: transform;
    }

    header { padding: 0 4%; }
    nav    { padding: 10px 0; }
    .logo img { height: 50px; }
    .nav-menu { top: 100%; }
}

@keyframes headerTopMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== 480px ========== */
@media (max-width: 480px) {
    .logo img { height: 44px; }
    .menu-toggle { font-size: 1.5rem; }
}
