.top-nav {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    min-height: 52px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-brand img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}

.nav-links a:hover {
    background: #fff3e0;
    color: #ff8c00;
}

.nav-links a.active {
    background: #ff8c00;
    color: #fff;
}

@media (max-width: 680px) {
    .top-nav {
        padding: 0 14px;
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 0 14px;
    }

    .top-nav.menu-open .nav-links {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 12px;
        text-align: left;
    }

    .top-nav.menu-open .nav-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .top-nav.menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .top-nav.menu-open .nav-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}