.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--nav-height);
    background: rgba(167, 199, 216, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.nav-inner {
    width: min(1274px, 94%);
    min-height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    color: #ffffff;
}

.brand img:not(.signature) {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.brand img.signature {
    height: 26px;
    width: auto;
    object-fit: contain;
    margin-top: 4px;
    opacity: 0.95;
}

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

.nav-links a {
    position: relative;
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-links a.active {
    color: #ffffff;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #EC4899, #7C3AED);
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.28);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 820px) {
    .menu-button {
        align-items: center;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        align-content: start;
        padding: 24px 5% 40px;
        background: rgba(167, 199, 216, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .menu-toggle:checked ~ .nav-links {
        display: grid;
        gap: 2px;
    }

    .nav-links a {
        padding: 18px 24px;
        border-radius: 12px;
        font-size: 18px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
}
