/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(232, 0, 45, 0.35);
    overflow: hidden;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 400;
}

/* Nav */
.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.2s;
}

.nav-item i {
    font-size: 18px;
    flex-shrink: 0;
}

.nav-item:hover {
    background: var(--nav-hover);
    color: var(--red);
}

.nav-item.active {
    background: var(--nav-active-bg);
    color: var(--red);
    font-weight: 600;
}

/* Auth Card */
.sidebar-auth-card {
    margin: 12px;
    background: var(--surface-2);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
}

.auth-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--red);
    background: rgba(232, 0, 45, 0.08);
    padding: 3px 8px;
    border-radius: 99px;
    display: inline-block;
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 12px;
}

.auth-desc strong {
    color: var(--text);
}

.btn-auth {
    width: 100%;
    background: var(--red);
    color: white;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-auth:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.btn-auth i {
    font-size: 16px;
}

.auth-logged {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.auth-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--red);
}

.auth-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-email {
    font-size: 11px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   SIDEBAR OVERLAY (mobile)
   ============================================= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 99;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}