
/* ── TOPBAR ── */
.nav-topbar {
    background: rgba(10, 22, 40, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    padding: 0 40px;
    height: 34px;
    display: flex;
    align-items: center;
}

.nav-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
}

.ntb-right {
    display: flex;
    gap: 20px;
}

.ntb-right a {
    color: rgba(255, 255, 255, .45);
    transition: color .15s;
    font-size: 12px;
    text-decoration: none;
}

.ntb-right a:hover {
    color: rgba(255, 255, 255, .8);
}

@media (max-width: 768px) {
    .nav-topbar {
        display: none;
    }
}

/* ── NAV (updated) ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(10, 22, 40, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.nav-logo svg {
    height: 30px;
    width: auto;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 2px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .55);
    transition: color .15s, background .15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, .08);
}

.nav-item.has-dropdown:hover .nav-link, .nav-item.has-dropdown:focus-within .nav-link {
    color: white;
    background: rgba(255, 255, 255, .08);
}

/* Dropdown */
.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 12px !important;
    background: var(--navy2);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    min-width: 280px;
    z-index: 300;
    gap: 24px;
    display: none;
}

.nav-item.has-dropdown.open .nav-dropdown {
    display: flex;
}

/* Dropdown hover bridge — prevents gap between link and menu */
.nav-item.has-dropdown {
    padding-bottom: 0;
}

.nav-item.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 14px;
    display: block;
}

.nav-dropdown {
    margin-top: 0 !important;
}

.nd-wide {
    min-width: 560px;
}

.nd-col {
    flex: 1;
}

.nd-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .3);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav-dropdown a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    padding: 6px 8px;
    border-radius: 7px;
    transition: background .15s, color .15s;
    text-decoration: none;
}

.nav-dropdown a:hover {
    color: white;
    background: rgba(255, 255, 255, .07);
}

/* Actions */
.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-btn-ghost {
    padding: 7px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .18);
    transition: border-color .15s, color .15s;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn-ghost:hover {
    border-color: rgba(255, 255, 255, .5);
    color: white;
}

.nav-btn-green {
    padding: 8px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    background: var(--green);
    color: white;
    box-shadow: 0 4px 16px rgba(0, 201, 141, .35);
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
    text-decoration: none;
}

.nav-btn-green:hover {
    opacity: .88;
    transform: translateY(-1px);
}

@media (max-width: 1000px) {
    .nav-btn-ghost {
        display: none;
    }
}

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, .7);
    border-radius: 2px;
    transition: all .25s;
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-actions .nav-btn-green {
        font-size: 12px;
        padding: 8px 14px;
    }

    .nav-burger {
        display: flex;
    }
}

/* Mobile menu */
.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy2);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    z-index: 190;
    padding: 16px 20px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}

.nav-mobile.open {
    display: block;
}

.nav-mobile a {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    transition: color .15s;
    text-decoration: none;
}

.nav-mobile a:hover {
    color: white;
}

.nm-sep {
    height: 1px;
    background: rgba(255, 255, 255, .1);
    margin: 12px 0;
}

.nm-login {
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 8px;
}

.nm-reg {
    background: var(--green) !important;
    border-radius: 10px;
    text-align: center;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(0, 201, 141, .3);
}

/* Burger animation */
.nav-burger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
