:root {
    --bg-dark: #0a0514;
    --bg-card: #140d24;
    --accent: #9d4edf;
    --accent-glow: #bd5eff;
    --text-main: #f3effa;
    --text-muted: #8c7fa6;
    --border-color: #2b1a4a;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    background-image: radial-gradient(circle at 50% -20%, #39135a 0%, var(--bg-dark) 60%);
    background-attachment: fixed;
}
.navbar {
    background-color: rgba(20, 13, 36, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 22px; font-weight: bold; text-shadow: 0 0 10px rgba(157, 78, 223, 0.3); }
.logo span { color: var(--accent-glow); text-shadow: 0 0 15px var(--accent-glow); }
.nav-links a { color: var(--text-muted); text-decoration: none; margin-left: 20px; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); text-shadow: 0 0 8px var(--accent-glow); }
.container { max-width: 1200px; margin: 30px auto; display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 0 20px; }
.sidebar { background-color: var(--bg-card); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); }
.btn-new-topic { width: 100%; background: linear-gradient(135deg, var(--accent) 0%, #7b2cbf 100%); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: bold; cursor: pointer; margin-bottom: 20px; transition: 0.3s; box-shadow: 0 4px 15px rgba(157, 78, 223, 0.3); }
.btn-new-topic:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }
.categories h3 { font-size: 13px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.cat-item { display: block; color: var(--text-muted); text-decoration: none; padding: 12px; border-radius: 8px; margin-bottom: 5px; }
.cat-item.active, .cat-item:hover { background-color: rgba(157, 78, 223, 0.1); color: var(--text-main); border-left: 3px solid var(--accent); }
.forum-card { background-color: var(--bg-card); padding: 25px; border-radius: 16px; margin-bottom: 20px; border: 1px solid var(--border-color); transition: 0.3s; }
.forum-card:hover { border-color: rgba(157, 78, 223, 0.4); box-shadow: 0 10px 30px rgba(157, 78, 223, 0.08); transform: translateY(-2px); }
.user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #c77dff 0%, var(--accent) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.post-title { margin-bottom: 10px; font-size: 20px; }
.post-content { color: #c3b9d6; line-height: 1.6; margin-bottom: 15px; }
.post-actions button { background: none; border: none; color: var(--text-muted); margin-right: 15px; cursor: pointer; }
.post-actions button:hover { color: var(--accent-glow); }

