/* Shared site header / navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,15,25,.55);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
    gap: 20px;
}

.logo img {
    transition: .3s ease;
}

.logo img:hover {
    transform: scale(1.04);
}

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

.nav a {
    color: rgba(255,255,255,.88);
    font-size: 15px;
    font-weight: 500;
    transition: .25s ease;
    position: relative;
    padding: 6px 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: #fff;
    transition: .25s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.btn-login {
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    color: #fff;
}

.logout-form {
    display: inline;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

@media (max-width: 768px) {
    .header .header-inner {
        min-height: 72px;
    }

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

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: rgba(10,15,25,.96);
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

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

    .nav a,
    .nav .btn-login,
    .nav .logout-form {
        width: 100%;
    }

    .nav a {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .nav a::after {
        display: none;
    }

    .btn-login {
        text-align: center;
    }
}
