/* ============================================
   HEADER
   ============================================ */

.topbar {
    background: #0a0a0a;
    color: #fff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.toprow {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand:hover {
    color: #60a5fa;
}

.menutoggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: none;
    padding: 4px 8px;
}

#headermenu {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

#headermenu a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

#headermenu a:hover {
    color: #fff;
    background: #1a1a1a;
}

#headermenu a.active {
    color: #fff;
    background: #1a1a1a;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .menutoggle {
        display: block;
    }

    #headermenu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        background: #111;
        flex-direction: column;
        padding: 70px 20px 20px;
        gap: 4px;
        transition: left 0.3s ease;
        border-right: 1px solid #222;
        margin: 0;
        overflow-y: auto;
    }

    #headermenu.open {
        left: 0;
    }

    #headermenu a {
        font-size: 15px;
        padding: 10px 12px;
        width: 100%;
        border-radius: 4px;
    }

    #headermenu a:hover {
        background: #1a1a1a;
    }
}