/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 1;
    min-width: 0;
}

.nav-logo-mark {
    width: 28px;
    height: 28px;
    background: var(--brand);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-mark svg {
    color: #fff;
}

.nav-logo-img {
    height: auto;
    width: 200px;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color .15s;
}

.nav-links a:hover {
    color: var(--brand);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: 20px;
}

.nav-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 2s infinite;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--text-primary);
    flex-shrink: 0;
}

.nav-toggle:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* NAV DROPDOWNS */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown-trigger svg {
    opacity: .55;
    transition: transform .18s ease, opacity .18s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--brand);
}

.nav-dropdown:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 310px;
    padding: 10px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(13,17,23,.12), 0 4px 14px rgba(13,17,23,.06);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background .15s ease, color .15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--brand-light);
    color: var(--brand);
}

.nav-dropdown-menu span {
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
}

.nav-dropdown-menu small {
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.35;
}

.nav-dropdown-menu a:hover small {
    color: var(--text-secondary);
}

/* MOBILE NAV */
.nav-mobile {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 199;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(18px) saturate(180%);
    padding: 14px 16px 20px;
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 18px 42px rgba(13,17,23,.12);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

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

.nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 2px 8px;
}

.nav-mobile .nav-status-mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: .75rem;
    font-weight: 800;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 5px 11px;
    border-radius: 999px;
}

.nav-mobile-close {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.nav-mobile-close:hover {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-light);
}

.nav-mobile-section {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
}

.nav-mobile-section-light {
    padding: 10px 14px;
    gap: 2px;
}

.nav-mobile-title {
    display: block;
    margin-bottom: 4px;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
}

.nav-mobile-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-primary);
    background: transparent;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-mobile-item:hover {
    background: var(--brand-light);
    color: var(--brand);
    transform: translateX(2px);
}

.nav-mobile-item span {
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
}

.nav-mobile-item small {
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
}

.nav-mobile-item:hover small {
    color: var(--text-secondary);
}

.nav-mobile-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    font-size: .95rem;
    font-weight: 800;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.nav-mobile-simple:last-child {
    border-bottom: none;
}

.nav-mobile-simple:hover {
    color: var(--brand);
}

.nav-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff !important;
    font-size: .95rem;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(91,53,157,.24);
}

.nav-mobile-cta:hover {
    background: var(--brand-2, var(--brand));
    color: #fff !important;
}

/* RESPONSIVE NAV */
@media(max-width:960px) {
    nav {
        padding: 0 10px;
        justify-content: space-between;
        gap: 10px;
        max-width: 100%;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-logo-img {
        width: 140px !important;
    }
}