.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: #090909;
    border-bottom: 1px solid #222;
    z-index: 9999;
}

.sidebar-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #292929;
    border-radius: 11px;
    background: #121212;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.sidebar-toggle:hover {
    background: #1a1a1a;
    border-color: #e52b2b;
}

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

.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
}

.header-brand .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e52b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.header-brand strong {
    color: #fff;
}

.header-brand .brand-text {
    color: #e52b2b;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    background: #090909;
    border-right: 1px solid #252525;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-top {
    min-height: 82px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #202020;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e52b2b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.sidebar-brand strong {
    display: block;
    color: #fff;
    font-size: 13px;
    letter-spacing: 1px;
}

.sidebar-brand span {
    display: block;
    margin-top: 4px;
    color: #777;
    font-size: 11px;
}

.sidebar-close {
    width: 38px;
    height: 38px;
    border: 1px solid #292929;
    border-radius: 10px;
    background: #121212;
    color: #aaa;
    font-size: 25px;
    cursor: pointer;
}

.sidebar-close:hover {
    color: #fff;
    background: #e52b2b;
    border-color: #e52b2b;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 13px;
}

.sidebar-section {
    margin-bottom: 26px;
}

.sidebar-label {
    display: block;
    padding: 0 12px 9px;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.sidebar-link {
    position: relative;
    min-height: 46px;
    margin: 3px 0;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 11px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.sidebar-link:hover {
    color: #fff;
    background: #151515;
    transform: translateX(4px);
}

.sidebar-link:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    background: #e52b2b;
}

.sidebar-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #777;
    flex-shrink: 0;
}

.sidebar-link:hover .sidebar-icon {
    color: #e52b2b;
}

.external-arrow {
    margin-left: auto;
    color: #444;
}

.sidebar-link:hover .external-arrow {
    color: #e52b2b;
}

.logout-link:hover {
    color: #ff5555;
}

.sidebar-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #202020;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9500;
    transition: .25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    .site-header {
        padding: 0 15px;
    }

    .sidebar {
        width: 88vw;
        max-width: 310px;
    }

}