/* Shared Header Styles */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    width: min(1100px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
    background: rgba(7, 7, 16, 0.55);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    transition: border-color .4s, box-shadow .4s;
}

.nav.lit {
    border-color: rgba(79, 111, 255, .2);
    box-shadow: 0 0 0 1px rgba(79, 111, 255, .06), 0 12px 48px rgba(0, 0, 0, .6);
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-links a {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-2, #8888b8);
    padding: 7px 15px;
    border-radius: 9px;
    text-decoration: none;
    transition: color .2s, background .2s;
    letter-spacing: -.01em;
}

.nav-links a:hover {
    color: var(--text, #eeeeff);
    background: var(--glass, rgba(255, 255, 255, 0.042));
}

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

.nav-login {
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-2, #8888b8);
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 9px;
    transition: color .2s;
}

.nav-login:hover {
    color: var(--text, #eeeeff);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    padding: 9px 20px;
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue, #4f6fff), var(--violet, #9b6dff));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 0 24px var(--glow-blue, rgba(79, 111, 255, 0.5));
    transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 4px 32px var(--glow-blue, rgba(79, 111, 255, 0.5));
}

/* Mobile Menu Button */
.ham {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.ham span {
    width: 20px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)), opacity .3s, width .3s;
}

.ham.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
    width: 22px;
}

.ham.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.ham.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
    width: 22px;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #03030a;
    z-index: 700;
    padding-top: 84px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

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

    .ham {
        display: flex;
    }

    .nav-login {
        display: none;
    }
}

@media (max-width: 500px) {
    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 9px 12px;
    }
}