/* Header Nexus — compacto e sticky */
.nexus-header-wrapper {
    font-family: 'Inter', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.top-bar {
    background-color: #05050a;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    padding: 6px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 16px;
}

.top-bar-place {
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.top-bar-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px 18px;
}

.top-bar-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.top-bar-links a:hover {
    color: var(--dourado, #D4AF37);
}

.top-bar-links .login-btn {
    color: var(--dourado, #D4AF37);
}

.main-header {
    background-color: rgba(17, 17, 17, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-container {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 8px 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links > li > a {
    color: #c8c8c8;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 6px 0;
}

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

.dropdown {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    background: #141414;
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 18px;
    display: block;
    text-transform: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #ccc;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--dourado, #D4AF37);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 12px;
    padding: 0 !important;
    pointer-events: none;
}

.header-cta {
    background: var(--bordo-dark, #800020);
    color: #fff !important;
    padding: 9px 16px !important;
    border-radius: 8px;
    font-weight: 800 !important;
    transition: 0.25s;
    white-space: nowrap;
    letter-spacing: 0.3px !important;
}

.header-cta:hover {
    background: var(--dourado, #D4AF37);
    color: #111 !important;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    line-height: 0;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.menu-toggle-bars {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
}

.menu-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.2s ease;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 6px; }
.menu-toggle-bars span:nth-child(3) { top: 12px; }

.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

@media (max-width: 980px) {
    .top-bar {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        padding: 16px 0 20px;
        border-top: 1px solid #222;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > li {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 4px 0;
    }

    .nav-links > li > a {
        display: block;
        padding: 12px 16px;
    }

    .dropdown {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #0a0a0a;
        min-width: 0;
        border-radius: 0;
        margin: 0;
    }

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

    .header-cta {
        display: inline-block;
        margin-top: 8px;
    }
}
