/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--bg-sidebar);
    overflow-y: auto;
    z-index: 200;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.side-brand {
    padding: 24px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.side-brand h1 {
    font-family: var(--f-brand);
    font-size: 22px;
    color: var(--accent);
    line-height: 1.2;
}
.side-brand p {
    font-family: var(--f-head);
    font-size: 11px;
    color: var(--txt-side);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.side-nav {
    padding: 12px 0;
    flex: 1;
}
.nav-domain {
    font-family: var(--f-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 16px 20px 6px;
    color: var(--txt-side);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.nav-domain .dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}
.nav-domain .chevron {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--txt-side);
}
.nav-domain.collapsed .chevron {
    transform: rotate(-90deg);
}
.nav-group {
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 600px;
}
.nav-domain.collapsed + .nav-group {
    max-height: 0;
}
.nav-item {
    font-family: var(--f-head);
    font-size: 13.5px;
    font-weight: 400;
    padding: 7px 20px 7px 36px;
    color: var(--txt-side);
    cursor: pointer;
    transition: all 0.15s;
    display: block;
    border-left: 3px solid transparent;
}
.nav-item:hover {
    color: var(--txt-side-a);
    background: var(--bg-sidebar-item);
}
.nav-item.active {
    color: var(--txt-side-a);
    background: var(--bg-sidebar-item);
    border-left-color: var(--accent);
    font-weight: 600;
}
.nav-item .nav-icon {
    margin-right: 8px;
    width: 18px;
    display: inline-block;
    text-align: center;
    font-size: 13px;
}

.side-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--f-head);
    font-size: 11px;
    color: var(--txt-side);
}