.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: none;
    padding: 12px 24px;
}

.nav-wrapper.nav-scrolled {
    box-shadow: none;
}

.nav-wrapper.nav-scrolled {
    box-shadow: none;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.3s;
}

.nav-wrapper.nav-scrolled .nav-container {
    box-shadow: var(--shadow);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo img {
    width: auto;
    height: 50px;
}

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links > li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 600;
    transition:
        color 0.2s,
        background 0.2s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: none;
}

.nav-link i {
    font-size: 12px;
}

.nav-link:hover,
.nav-link.nav-active {
    color: var(--brand);
    background: rgba(5, 173, 143, 0.07);
}

.nav-link .nav-chevron {
    font-size: 10px;
    transition: transform 0.25s;
    margin-left: 2px;
}

.nav-link.nav-open .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    z-index: 200;
}

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

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition:
        background 0.18s,
        color 0.18s;
}

.nav-dropdown-item:hover {
    background: rgba(5, 173, 143, 0.07);
    color: var(--brand);
}

.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.nav-dropdown-icon.green {
    background: rgba(5, 173, 143, 0.12);
    color: var(--brand);
}

.nav-dropdown-icon.purple {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-purple);
}

.nav-dropdown-icon.cyan {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
}

.nav-dropdown-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-dropdown-title {
    font-size: 13px;
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-weight: 700;
}

.nav-dropdown-sub {
    font-size: 11px;
    color: var(--text-light);
    font-family: var(--font-ui);
    font-weight: 400;
}

/* CTA buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-btn-ghost {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: none;
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color 0.2s,
        color 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.nav-btn-primary {
    padding: 9px 20px;
    border-radius: 8px;
    border: none;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.15s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
    transition:
        border-color 0.2s,
        color 0.2s;
    flex-shrink: 0;
}

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

/* ===== MOBILE DRAWER ===== */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.nav-show {
    opacity: 1;
}

.nav-drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100vw;
    height: calc(100dvh - var(--nav-h));
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-drawer.nav-open {
    transform: translateX(0);
}

.nav-drawer-body {
    padding: 16px 0 24px;
    flex: 1;
}

.nav-drawer-section {
    padding: 0 16px;
}

.nav-drawer-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 0;
}

.nav-drawer-ctas .nav-btn-ghost,
.nav-drawer-ctas .nav-btn-primary {
    justify-content: center;
    padding: 13px;
    font-size: 14px;
    border-radius: 12px;
}

.nav-drawer-ctas .nav-btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent-cyan));
}

.nav-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.18s,
        color 0.18s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-drawer-item:hover {
    background: rgba(5, 173, 143, 0.07);
    color: var(--brand);
}

.nav-drawer-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-drawer-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-drawer-chevron {
    font-size: 11px;
    color: var(--text-light);
    transition: transform 0.25s;
}

.nav-drawer-item.nav-sub-open .nav-drawer-chevron {
    transform: rotate(180deg);
}

.nav-drawer-sub {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 16px;
}

.nav-drawer-sub.nav-sub-visible {
    max-height: 400px;
}

.nav-drawer-sub-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-family: var(--font-ui);
    font-weight: 600;
    transition:
        background 0.18s,
        color 0.18s;
    margin-bottom: 2px;
}

.nav-drawer-sub-item:hover {
    background: rgba(5, 173, 143, 0.07);
    color: var(--brand);
}

.nav-drawer-sub-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.nav-drawer-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px;
}

@media (max-width: 1090px) {
    .nav-wrapper {
        padding: 0;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    .nav-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0 16px;
    }

    .nav-wrapper.nav-scrolled .nav-container {
        box-shadow: none;
    }

    .nav-wrapper.nav-scrolled {
        box-shadow: var(--shadow);
    }
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-overlay.nav-show {
        pointer-events: all;
    }
}

@media (max-width: 500px) {
    .nav-container {
        padding: 0 16px;
    }
}

