/* ===== ОБЩИЕ СТИЛИ САЙДБАРА ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: linear-gradient(160deg, #24283b, #1f2335);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.sidebar-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.6;
}

.sidebar-title {
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--panel-border);
    letter-spacing: 1px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: rgba(122, 162, 247, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateX(3px);
}

.sidebar-link.active {
    background: rgba(122, 162, 247, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(122, 162, 247, 0.2);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--panel-border);
    font-size: 12px;
}

.stat-item:last-child { border-bottom: none; }
.stat-label { color: var(--text-dim); }
.stat-value { color: var(--accent-green); font-family: monospace; font-weight: bold; }

.user-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(115, 218, 202, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: 8px;
    margin-bottom: 15px;
}

.user-avatar-sidebar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0f14;
    font-weight: bold;
    font-size: 18px;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name-sidebar {
    color: var(--accent-green);
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
}

.sidebar-btn {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, #414868, #292e42);
    color: var(--text-main);
    margin-bottom: 8px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 0 #16161e, 0 4px 6px rgba(0,0,0,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.sidebar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 #16161e, 0 6px 8px rgba(0,0,0,0.4);
    color: var(--text-main);
}

.sidebar-btn:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 #16161e, inset 0 2px 4px rgba(0,0,0,0.5);
}

.sidebar-btn.primary {
    background: linear-gradient(180deg, var(--accent-cyan), #5a82d4);
    color: #0f0f14;
    border-color: #3b5998;
    box-shadow: 0 3px 0 #3b5998, 0 4px 6px rgba(0,0,0,0.3);
}

.sidebar-btn.primary:hover {
    box-shadow: 0 4px 0 #3b5998, 0 6px 10px rgba(122, 162, 247, 0.4);
    color: #0f0f14;
}

.sidebar-btn.danger {
    background: linear-gradient(180deg, var(--accent-pink), #d45a6e);
    color: #0f0f14;
    border-color: #a83a4e;
    box-shadow: 0 3px 0 #a83a4e, 0 4px 6px rgba(0,0,0,0.3);
}

.sidebar-text {
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Опрос */
.sidebar-poll {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.poll-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    padding: 4px 0;
}

.poll-option input[type="radio"] {
    accent-color: var(--accent-cyan);
}

/* Соцсети */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(15, 15, 20, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.sidebar-social:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    transform: translateX(3px);
}

/* ===== LAYOUT ДЛЯ СТРАНИЦ С САЙДБАРОМ ===== */
.chassis-wide {
    max-width: 1200px;
}

.page-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    padding: 30px;
}

.main-content {
    min-width: 0;
}

@media (max-width: 900px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}