.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    max-width: calc(100% - 24px);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(8,12,17,.76);
    box-shadow: 0 16px 48px rgba(0,0,0,.28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
    overflow: hidden;
}

.navbar::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(87,184,255,.06), transparent);
    background-size: 200% 100%;
    animation: navSweep 8s linear infinite;
    pointer-events: none;
}

.navbar a {
    position: relative;
    z-index: 1;
    color: #7e8b98;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    padding: 10px 14px;
    border-radius: 10px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0;
    height: 1px;
    border-radius: 99px;
    background: var(--blue-bright);
    transform: translateX(-50%);
    transition: width .22s ease;
}

.navbar a:hover {
    color: #eef6fa;
    background: rgba(255,255,255,.045);
    transform: translateY(-1px);
}

.navbar a:hover::after { width: 18px; }

.navbar.transparent {
    background: rgba(8,12,17,.32);
    border-color: rgba(255,255,255,.045);
    box-shadow: 0 10px 28px rgba(0,0,0,.10);
}

@keyframes navSweep {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

@media (max-width: 700px) {
    .navbar {
        top: 10px;
        width: calc(100% - 18px);
        padding: 6px;
        border-radius: 14px;
        gap: 0;
        justify-content: space-between;
    }

    .navbar a {
        font-size: 10px;
        padding: 9px 7px;
    }

    .navbar a:hover { transform: none; }
}
