/* ========================================
   🎌 CYBER ANIME — Киберпанк + Аниме
   Полная замена стилей для AnimeForum
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111122;
    --bg-card: rgba(20, 20, 50, 0.85);
    --border-color: rgba(0, 255, 255, 0.15);
    --text-primary: #e0e8ff;
    --text-secondary: #8899cc;
    --text-muted: #445577;
    
    --neon-cyan: #00f0ff;
    --neon-pink: #ff3b8a;
    --neon-purple: #a855f7;
    --neon-green: #00ff88;
    --neon-orange: #ff6b35;
    --neon-red: #ff1744;
    --neon-yellow: #ffd700;
    
    --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.15);
    --glow-pink: 0 0 30px rgba(255, 59, 138, 0.15);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Courier New', 'Fira Code', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- СКРОЛЛ --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); box-shadow: var(--glow-cyan); border-radius: 4px; }

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 20px rgba(255, 59, 138, 0.3);
}

/* --- ФОН С СЕТКОЙ --- */
.anime-bg-fixed, .bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--bg-primary);
    overflow: hidden;
}
.anime-bg-fixed .grid-overlay, .bg-fixed .grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.anime-bg-fixed .scanline, .bg-fixed .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.01) 2px,
        rgba(0, 240, 255, 0.01) 4px
    );
    pointer-events: none;
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.anime-bg-fixed .neon-circle, .bg-fixed .neon-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.05);
    animation: pulseRing 15s ease-in-out infinite;
}
.anime-bg-fixed .neon-circle:nth-child(3), .bg-fixed .neon-circle:nth-child(3) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    border-color: rgba(255, 59, 138, 0.04);
    animation-delay: -3s;
}
.anime-bg-fixed .neon-circle:nth-child(4), .bg-fixed .neon-circle:nth-child(4) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    border-color: rgba(168, 85, 247, 0.04);
    animation-delay: -7s;
}
.anime-bg-fixed .neon-circle:nth-child(5), .bg-fixed .neon-circle:nth-child(5) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 255, 136, 0.03);
    animation-delay: -11s;
}
@keyframes pulseRing {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 1; }
}

/* --- ПРИЛОЖЕНИЕ --- */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.app-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 0 20px 20px 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* --- БОКОВАЯ ПАНЕЛЬ --- */
.sidebar-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 64px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.92);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    scrollbar-width: thin;
}
.sidebar-left:hover {
    width: 230px;
}
.sidebar-left::-webkit-scrollbar { width: 2px; }
.sidebar-left::-webkit-scrollbar-track { background: transparent; }
.sidebar-left::-webkit-scrollbar-thumb { background: var(--neon-cyan); }

.sidebar-left .sidebar-item {
    width: 100%;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    border-left: 2px solid transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.sidebar-left .sidebar-item:hover {
    background: rgba(0, 240, 255, 0.04);
    color: var(--text-primary);
    border-left-color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
.sidebar-left .sidebar-item.active {
    color: var(--neon-cyan);
    border-left-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}
.sidebar-left .sidebar-item .icon {
    font-size: 18px;
    min-width: 28px;
    text-align: center;
}
.sidebar-left .sidebar-item .label {
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 600;
}
.sidebar-left:hover .sidebar-item .label {
    opacity: 1;
}

.sidebar-left .sidebar-divider {
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 6px 0;
}

.sidebar-left .top-users {
    width: 100%;
    padding: 4px 16px;
}
.sidebar-left .top-users .top-label {
    color: var(--text-muted);
    font-size: 8px;
    padding: 6px 0 4px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}
.sidebar-left .top-users .top-user {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: var(--text-secondary);
    font-size: 10px;
    font-family: 'Courier New', monospace;
}
.sidebar-left .top-users .top-user .avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--border-color);
    border: 1px solid var(--neon-cyan);
}
.sidebar-left .top-users .top-user .rank {
    color: var(--neon-yellow);
    font-weight: 700;
    min-width: 18px;
    font-size: 9px;
}
.sidebar-left .top-users .top-user .points {
    color: var(--text-muted);
    font-size: 8px;
    margin-left: auto;
}

/* --- ШАПКА --- */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-nav .logo h1 {
    font-size: 20px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}
.header-nav .logo h1 .bracket {
    color: var(--neon-pink);
    -webkit-text-fill-color: var(--neon-pink);
}

.header-nav .nav {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}
.header-nav .nav a {
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.header-nav .nav a:hover {
    background: rgba(0, 240, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.header-nav .nav a.active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.15);
    background: rgba(0, 240, 255, 0.04);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
.header-nav .nav .create-btn {
    color: var(--neon-pink) !important;
    border-color: rgba(255, 59, 138, 0.15) !important;
    background: rgba(255, 59, 138, 0.04) !important;
}
.header-nav .nav .create-btn:hover {
    background: rgba(255, 59, 138, 0.08) !important;
}
.header-nav .nav .logout {
    color: var(--neon-red) !important;
}
.header-nav .nav .logout:hover {
    background: rgba(255, 23, 68, 0.06) !important;
    border-color: rgba(255, 23, 68, 0.15) !important;
}

.header-nav .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: 'Courier New', monospace;
}
.header-nav .user-info .mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--neon-cyan);
    background: var(--border-color);
}

/* --- ОБОДКИ ДЛЯ АВАТАРОВ --- */
.avatar.frame-1, .profile-avatar.frame-1 { border: 1px solid var(--text-muted); }
.avatar.frame-2, .profile-avatar.frame-2 { border: 1px solid var(--neon-green); box-shadow: 0 0 15px rgba(0, 255, 136, 0.2); }
.avatar.frame-3, .profile-avatar.frame-3 { border: 1px solid var(--neon-orange); box-shadow: 0 0 15px rgba(255, 107, 53, 0.2); }
.avatar.frame-4, .profile-avatar.frame-4 { border: 1px solid var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
.avatar.frame-5, .profile-avatar.frame-5 { border: 1px solid var(--neon-pink); box-shadow: 0 0 25px rgba(255, 59, 138, 0.3); }
.avatar.frame-6, .profile-avatar.frame-6 {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
    animation: cyberPulse 2s ease-in-out infinite;
}
@keyframes cyberPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.3); }
    50% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.6); }
}

/* --- ЛЕНТА --- */
.feed {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 40px;
}

/* --- СОРТИРОВКА --- */
.sort-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.sort-btns a {
    padding: 6px 18px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.sort-btns a:hover {
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}
.sort-btns a.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.04);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* --- ПОСТЫ --- */
.post {
    width: 100%;
    max-width: 780px;
    margin: 0 auto 18px;
    padding: 20px 24px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.post:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), var(--glow-cyan);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.post-header .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    transition: var(--transition);
    background: var(--border-color);
}
.post-header .avatar:hover {
    transform: scale(1.08) rotate(-10deg);
}
.post-header .username {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}
.post-header .username .role-badge {
    font-size: 8px;
    color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
    padding: 1px 8px;
    border-radius: 2px;
    margin-left: 6px;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    border: 1px solid rgba(168, 85, 247, 0.1);
}
.post-header .username .admin-badge {
    font-size: 8px;
    color: var(--neon-red);
    background: rgba(255, 23, 68, 0.1);
    padding: 1px 8px;
    border-radius: 2px;
    margin-left: 6px;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 23, 68, 0.1);
}
.post-header .time {
    color: var(--text-muted);
    font-size: 10px;
    margin-left: auto;
    font-family: 'Courier New', monospace;
}
.post-header .online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    margin-left: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    animation: blinkDot 1.5s ease-in-out infinite;
}
@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.post-header .pinned-badge {
    color: var(--neon-yellow);
    font-size: 10px;
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

.post-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}
.post-title a {
    color: var(--text-primary);
}
.post-title a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.post-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 13px;
    padding: 4px 0 10px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

.post-media {
    border-radius: 4px;
    overflow: hidden;
    margin: 14px 0;
    background: var(--bg-primary);
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.post-media img,
.post-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 8px 0 14px;
}
.post-tags .tag {
    background: rgba(0, 240, 255, 0.04);
    color: var(--neon-cyan);
    padding: 2px 12px;
    border-radius: 2px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 240, 255, 0.06);
    transition: var(--transition);
    text-transform: lowercase;
}
.post-tags .tag:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.15);
}

.post-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.post-actions .like-btn,
.post-actions .dislike-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
}
.post-actions .like-btn:hover,
.post-actions .dislike-btn:hover {
    background: rgba(0, 240, 255, 0.04);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.post-actions .like-btn.active {
    color: var(--neon-green);
    border-color: rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.04);
}
.post-actions .dislike-btn.active {
    color: var(--neon-red);
    border-color: rgba(255, 23, 68, 0.15);
    background: rgba(255, 23, 68, 0.04);
}
.post-actions .views {
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'Courier New', monospace;
}
.post-actions .save-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    padding: 4px 8px;
}
.post-actions .save-btn:hover {
    color: var(--neon-yellow);
}
.post-actions .save-btn.saved {
    color: var(--neon-yellow);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.post-actions .edit-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Courier New', monospace;
}
.post-actions .edit-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.04);
}

.follow-btn {
    padding: 2px 12px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 9px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.follow-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
}
.follow-btn.following {
    color: var(--neon-green);
    border-color: rgba(0, 255, 136, 0.15);
    background: rgba(0, 255, 136, 0.04);
}

/* --- ПУСТОЕ СОСТОЯНИЕ --- */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty .empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}
.empty .create-btn {
    display: inline-block;
    margin-top: 12px;
    color: var(--neon-pink);
    padding: 10px 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 59, 138, 0.15);
    transition: var(--transition);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}
.empty .create-btn:hover {
    background: rgba(255, 59, 138, 0.06);
    border-color: rgba(255, 59, 138, 0.3);
}

/* --- ПАГИНАЦИЯ --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.pagination a {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}
.pagination a:hover {
    color: var(--text-primary);
    border-color: var(--neon-cyan);
}
.pagination a.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.04);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.back-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 20px rgba(255, 59, 138, 0.2);
}

/* --- УВЕДОМЛЕНИЯ --- */
.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 18px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    animation: slideIn 0.4s ease;
    display: none;
}
.notification-popup.show { display: block; }
.notification-popup .notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.notification-popup .notif-header .notif-title { color: var(--neon-cyan); font-weight: 600; font-size: 14px; font-family: 'Courier New', monospace; }
.notification-popup .notif-header .notif-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}
.notification-popup .notif-header .notif-close:hover { color: var(--text-primary); }
.notification-popup .notif-body { color: var(--text-secondary); font-size: 13px; font-family: 'Courier New', monospace; line-height: 1.4; }
.notification-popup .notif-body a { color: var(--neon-cyan); }
.notification-popup .notif-time { color: var(--text-muted); font-size: 11px; margin-top: 4px; font-family: 'Courier New', monospace; }

@keyframes slideIn {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100px); opacity: 0; }
}
.notification-popup.hide { animation: slideOut 0.3s ease; }

.notif-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--neon-red);
    color: #fff;
    font-size: 8px;
    border-radius: 2px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}
.notif-counter-badge.zero { display: none; }
.notif-link { position: relative; }

/* --- МОБИЛЬНОЕ МЕНЮ --- */
.mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    background: rgba(10, 10, 15, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    font-family: 'Courier New', monospace;
}
.mobile-toggle:hover {
    border-color: var(--neon-cyan);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .sidebar-left {
        position: fixed;
        top: 0;
        left: -240px;
        width: 220px;
        height: 100vh;
        z-index: 998;
        transition: left 0.3s ease;
        background: rgba(10, 10, 15, 0.95);
        border-right: 1px solid var(--border-color);
    }
    .sidebar-left.open { left: 0; }
    .sidebar-left .sidebar-item .label { opacity: 1 !important; }
    .app-content { padding: 0 12px 12px 12px; }
    .header-nav { padding: 10px 16px; }
    .header-nav .nav a { font-size: 10px; padding: 4px 10px; }
    .header-nav .logo h1 { font-size: 16px; letter-spacing: 2px; }
    .post { padding: 16px 18px; }
}

@media (max-width: 480px) {
    .header-nav .nav a { font-size: 9px; padding: 3px 8px; letter-spacing: 0.5px; }
    .header-nav .logo h1 { font-size: 14px; letter-spacing: 1px; }
    .post { padding: 12px 14px; }
    .post-title { font-size: 16px; }
}

/* --- ГЛИТЧ-ЭФФЕКТ --- */
.glitch-text {
    animation: glitch 3s infinite;
}
@keyframes glitch {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    95% { text-shadow: 0 0 0 transparent; }
    96% { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-cyan); }
    97% { text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-cyan); }
    98% { text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-cyan); }
    99% { text-shadow: 0 0 0 transparent; }
}

/* --- ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ --- */

/* Админ панель */
.admin-container { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-stats .stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 14px 16px; text-align: center; backdrop-filter: blur(10px); }
.admin-stats .stat-card .number { font-size: 24px; font-weight: 700; color: var(--neon-cyan); }
.admin-stats .stat-card .label { color: var(--text-muted); font-size: 12px; font-family: 'Courier New', monospace; }
.admin-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px 25px; margin-bottom: 20px; backdrop-filter: blur(10px); }
.admin-section h2 { color: var(--text-primary); font-size: 18px; font-family: 'Courier New', monospace; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.admin-section table { width: 100%; border-collapse: collapse; font-size: 12px; font-family: 'Courier New', monospace; }
.admin-section th { text-align: left; color: var(--text-muted); padding: 6px 4px; border-bottom: 1px solid var(--border-color); }
.admin-section td { padding: 6px 4px; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.admin-section .badge { font-size: 9px; padding: 1px 8px; border-radius: 2px; color: #fff; }
.admin-section .badge-admin { background: var(--neon-red); }
.admin-section .badge-banned { background: var(--neon-red); }
.admin-section .badge-muted { background: var(--neon-orange); color: #000; }
.admin-section .badge-normal { background: var(--text-muted); }
.admin-section .actions { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-section .actions a { padding: 1px 6px; border-radius: 2px; font-size: 9px; text-decoration: none; font-family: 'Courier New', monospace; }
.admin-section .actions .act-danger { color: var(--neon-red); background: rgba(255, 23, 68, 0.1); }
.admin-section .actions .act-danger:hover { background: rgba(255, 23, 68, 0.2); }
.admin-section .actions .act-success { color: var(--neon-green); background: rgba(0, 255, 136, 0.1); }
.admin-section .actions .act-success:hover { background: rgba(0, 255, 136, 0.2); }
.admin-section .actions .act-warning { color: var(--neon-orange); background: rgba(255, 107, 53, 0.1); }
.admin-section .actions .act-warning:hover { background: rgba(255, 107, 53, 0.2); }

/* Профиль */
.profile-container { max-width: 700px; margin: 40px auto; padding: 30px 35px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.profile-container h1 { text-align: center; margin-bottom: 24px; color: var(--text-primary); font-family: 'Courier New', monospace; }
.profile-container label { display: block; margin: 14px 0 6px; color: var(--text-muted); font-size: 12px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; }
.profile-container input, .profile-container textarea { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-size: 14px; font-family: 'Courier New', monospace; }
.profile-container input:focus, .profile-container textarea:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.05); }
.profile-container .btn-save { width: 100%; padding: 12px; margin-top: 20px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); font-size: 14px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--transition); }
.profile-container .btn-save:hover { background: rgba(0, 240, 255, 0.08); }
.profile-stats { display: flex; justify-content: space-around; padding: 15px 0; margin-top: 20px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.profile-stats .stat { text-align: center; }
.profile-stats .stat .number { color: var(--neon-cyan); font-size: 20px; font-weight: 700; font-family: 'Courier New', monospace; }
.profile-stats .stat .label { color: var(--text-muted); font-size: 10px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; }
.role-box { text-align: center; padding: 12px; margin: 8px 0 16px; border-radius: var(--radius); background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); }
.role-box .role-icon { font-size: 32px; }
.role-box .role-name { font-weight: 700; font-size: 18px; font-family: 'Courier New', monospace; margin: 4px 0; }
.role-box .points { color: var(--text-muted); font-size: 12px; font-family: 'Courier New', monospace; }
.role-box .online-status { font-size: 12px; margin-top: 4px; font-family: 'Courier New', monospace; }
.role-box .online-status.online { color: var(--neon-green); }
.role-box .online-status.offline { color: var(--text-muted); }
.follow-stats { display: flex; justify-content: center; gap: 30px; padding: 8px 0; font-size: 12px; color: var(--text-muted); font-family: 'Courier New', monospace; }
.follow-stats .num { color: var(--text-primary); font-weight: 600; }
.profile-avatar-wrapper { text-align: center; margin-bottom: 25px; }
.profile-avatar-wrapper .profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.avatar-form { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.avatar-form .btn-secondary { padding: 6px 18px; border-radius: var(--radius); border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 11px; font-family: 'Courier New', monospace; transition: var(--transition); }
.avatar-form .btn-secondary:hover { background: rgba(0, 240, 255, 0.04); color: var(--text-primary); border-color: var(--neon-cyan); }
.avatar-form .btn-primary { padding: 6px 18px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; font-size: 11px; font-family: 'Courier New', monospace; transition: var(--transition); }
.avatar-form .btn-primary:hover { background: rgba(0, 240, 255, 0.08); }

/* Личные сообщения */
.pm-container { max-width: 1000px; margin: 20px auto; padding: 0 20px; }
.pm-grid { display: flex; gap: 20px; align-items: flex-start; }
.pm-list { width: 280px; flex-shrink: 0; }
.pm-list .pm-item { padding: 10px 14px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 6px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; text-decoration: none; transition: var(--transition); backdrop-filter: blur(10px); }
.pm-list .pm-item:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.04); }
.pm-list .pm-item.active { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.06); }
.pm-list .pm-item .avatar-wrap { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.pm-list .pm-item .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pm-list .pm-item .info { flex: 1; overflow: hidden; }
.pm-list .pm-item .name { color: var(--text-primary); font-weight: 600; font-size: 13px; font-family: 'Courier New', monospace; }
.pm-list .pm-item .last { color: var(--text-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'Courier New', monospace; }
.pm-list .pm-item .unread { background: var(--neon-red); color: #fff; font-size: 9px; border-radius: 2px; padding: 1px 6px; min-width: 18px; text-align: center; font-family: 'Courier New', monospace; }
.pm-chat { flex: 1; background: var(--bg-card); border-radius: var(--radius); padding: 16px; min-height: 400px; display: flex; flex-direction: column; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.pm-chat .messages { flex: 1; max-height: 400px; overflow-y: auto; margin-bottom: 12px; padding-right: 4px; }
.pm-chat .messages::-webkit-scrollbar { width: 4px; }
.pm-chat .messages::-webkit-scrollbar-track { background: transparent; }
.pm-chat .messages::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.pm-chat .msg { display: flex; gap: 10px; padding: 6px 0; align-items: flex-start; }
.pm-chat .msg .avatar-wrap { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.pm-chat .msg .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.pm-chat .msg .msg-user { font-weight: 600; color: var(--neon-cyan); font-size: 12px; font-family: 'Courier New', monospace; }
.pm-chat .msg .msg-time { color: var(--text-muted); font-size: 10px; margin-left: 8px; font-family: 'Courier New', monospace; }
.pm-chat .msg .msg-text { color: var(--text-secondary); font-size: 13px; font-family: 'Courier New', monospace; word-break: break-word; }
.pm-chat .msg.own { flex-direction: row-reverse; text-align: right; }
.pm-chat .msg.own .msg-text { color: var(--neon-pink); }
.pm-chat .pm-empty { flex: 1; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--text-muted); text-align: center; font-family: 'Courier New', monospace; }
.pm-input { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.pm-input input { flex: 1; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; }
.pm-input input:focus { outline: none; border-color: var(--neon-cyan); }
.pm-input button { padding: 8px 20px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; transition: var(--transition); font-family: 'Courier New', monospace; }
.pm-input button:hover { background: rgba(0, 240, 255, 0.08); }
.pm-new { display: flex; gap: 8px; margin-bottom: 12px; }
.pm-new select { flex: 1; padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; }
.pm-new select option { background: var(--bg-secondary); }
.pm-new button { padding: 6px 16px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; transition: var(--transition); font-family: 'Courier New', monospace; }
.pm-new button:hover { background: rgba(0, 240, 255, 0.08); }

/* Чат */
.chat-container { max-width: 900px; margin: 20px auto; padding: 0 20px; }
.chat-messages { max-height: 500px; overflow-y: auto; padding: 16px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-color); margin-bottom: 16px; backdrop-filter: blur(10px); }
.chat-msg { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; }
.chat-msg .avatar-small { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-color); }
.chat-msg .msg-user { font-weight: 600; color: var(--neon-cyan); font-size: 13px; font-family: 'Courier New', monospace; }
.chat-msg .msg-time { font-size: 10px; color: var(--text-muted); margin-left: 8px; font-family: 'Courier New', monospace; }
.chat-msg .msg-text { color: var(--text-secondary); font-size: 13px; margin-top: 2px; font-family: 'Courier New', monospace; }
.chat-msg.own { flex-direction: row-reverse; }
.chat-msg.own .msg-text { color: var(--neon-pink); }
.chat-input-wrapper { display: flex; gap: 10px; width: 100%; align-items: center; background: var(--bg-card); border-radius: var(--radius); padding: 4px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.chat-input-wrapper input[type="text"] { flex: 1; padding: 10px 16px; border-radius: var(--radius); border: none; background: transparent; color: var(--text-primary); font-family: 'Courier New', monospace; font-size: 13px; }
.chat-input-wrapper input[type="text"]:focus { outline: none; }
.chat-input-wrapper input[type="text"]::placeholder { color: var(--text-muted); }
.chat-input-buttons { display: flex; gap: 4px; align-items: center; padding-right: 4px; }
.chat-input-buttons .file-btn { padding: 8px 12px; border-radius: var(--radius); cursor: pointer; color: var(--text-muted); font-size: 16px; transition: var(--transition); background: none; border: none; font-family: 'Courier New', monospace; }
.chat-input-buttons .file-btn:hover { color: var(--neon-cyan); }
.chat-input-buttons button { padding: 8px 20px; border-radius: var(--radius); border: none; background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; font-size: 16px; transition: var(--transition); font-family: 'Courier New', monospace; }
.chat-input-buttons button:hover { background: rgba(0, 240, 255, 0.08); }

/* Беседы */
.conv-container { max-width: 1100px; margin: 20px auto; padding: 0 20px; }
.conv-grid { display: flex; gap: 20px; align-items: flex-start; }
.conv-list { width: 300px; flex-shrink: 0; }
.conv-list .conv-item { padding: 12px 14px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 6px; border: 1px solid var(--border-color); text-decoration: none; display: block; transition: var(--transition); backdrop-filter: blur(10px); }
.conv-list .conv-item:hover { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.04); }
.conv-list .conv-item.active { border-color: var(--neon-cyan); background: rgba(0, 240, 255, 0.06); }
.conv-list .conv-item .name { color: var(--text-primary); font-weight: 600; font-size: 14px; font-family: 'Courier New', monospace; }
.conv-list .conv-item .meta { color: var(--text-muted); font-size: 10px; font-family: 'Courier New', monospace; display: flex; gap: 12px; margin-top: 2px; flex-wrap: wrap; }
.conv-create { display: flex; gap: 8px; margin-bottom: 14px; background: var(--bg-card); padding: 10px; border-radius: var(--radius); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.conv-create input { flex: 1; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; }
.conv-create input:focus { outline: none; border-color: var(--neon-cyan); }
.conv-create button { padding: 8px 20px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; transition: var(--transition); font-family: 'Courier New', monospace; }
.conv-create button:hover { background: rgba(0, 240, 255, 0.08); }
.conv-chat { flex: 1; background: var(--bg-card); border-radius: var(--radius); padding: 18px; min-height: 450px; display: flex; flex-direction: column; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.conv-chat .messages { flex: 1; max-height: 400px; overflow-y: auto; margin-bottom: 14px; padding-right: 6px; }
.conv-chat .msg { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; border-bottom: 1px solid var(--border-color); }
.conv-chat .msg .avatar-small { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-chat .msg .msg-user { font-weight: 600; color: var(--neon-cyan); font-size: 12px; font-family: 'Courier New', monospace; }
.conv-chat .msg .msg-time { color: var(--text-muted); font-size: 10px; margin-left: 8px; font-family: 'Courier New', monospace; }
.conv-chat .msg .msg-text { color: var(--text-secondary); font-size: 13px; font-family: 'Courier New', monospace; word-break: break-word; }
.conv-chat .msg.own { flex-direction: row-reverse; text-align: right; }
.conv-chat .msg.own .msg-text { color: var(--neon-pink); }
.conv-input { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 12px; }
.conv-input input { flex: 1; padding: 10px 16px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; }
.conv-input input:focus { outline: none; border-color: var(--neon-cyan); }
.conv-input button { padding: 10px 24px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); cursor: pointer; transition: var(--transition); font-family: 'Courier New', monospace; }
.conv-input button:hover { background: rgba(0, 240, 255, 0.08); }

/* Авторизация */
.auth-container { max-width: 400px; margin: 60px auto; background: var(--bg-card); border: 1px solid var(--border-color); padding: 36px 40px; border-radius: var(--radius); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.auth-container h1 { text-align: center; margin-bottom: 4px; font-size: 24px; font-weight: 900; font-family: 'Courier New', monospace; letter-spacing: 4px; background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.auth-container .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: 12px; font-family: 'Courier New', monospace; }
.auth-container input { width: 100%; padding: 12px 16px; margin: 6px 0; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; font-size: 13px; }
.auth-container input:focus { outline: none; border-color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.05); }
.auth-container button { width: 100%; padding: 12px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); font-size: 14px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--transition); margin-top: 10px; }
.auth-container button:hover { background: rgba(0, 240, 255, 0.08); }
.auth-container p { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 12px; font-family: 'Courier New', monospace; }
.auth-container a { color: var(--neon-cyan); }
.auth-container a:hover { text-shadow: 0 0 20px rgba(0, 240, 255, 0.2); }
.error { color: var(--neon-red); text-align: center; padding: 10px; background: rgba(255, 23, 68, 0.04); border-radius: var(--radius); margin-bottom: 14px; font-size: 12px; border: 1px solid rgba(255, 23, 68, 0.1); font-family: 'Courier New', monospace; }
.success-msg { color: var(--neon-green); text-align: center; padding: 10px; background: rgba(0, 255, 136, 0.04); border-radius: var(--radius); margin-bottom: 14px; font-size: 12px; border: 1px solid rgba(0, 255, 136, 0.1); font-family: 'Courier New', monospace; }

/* Уведомления */
.notif-container { max-width: 700px; margin: 0 auto; padding: 0; }
.notif-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border-radius: var(--radius); margin-bottom: 6px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); transition: var(--transition); }
.notif-item:hover { border-color: var(--neon-cyan); }
.notif-item .notif-icon { font-size: 18px; }
.notif-item a { flex: 1; color: var(--text-secondary); font-size: 13px; font-family: 'Courier New', monospace; }
.notif-item a:hover { color: var(--neon-cyan); }
.notif-item .notif-time { color: var(--text-muted); font-size: 10px; font-family: 'Courier New', monospace; }

/* Создание поста */
.create-container { max-width: 700px; margin: 40px auto; padding: 30px 35px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.create-container h1 { text-align: center; margin-bottom: 24px; color: var(--text-primary); font-family: 'Courier New', monospace; }
.create-container label { display: block; margin: 14px 0 6px; color: var(--text-muted); font-size: 12px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 1px; }
.create-container input[type="text"], .create-container textarea, .create-container select { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border-color); background: rgba(0,0,0,0.3); color: var(--text-primary); font-family: 'Courier New', monospace; font-size: 13px; }
.create-container input[type="text"]:focus, .create-container textarea:focus, .create-container select:focus { outline: none; border-color: var(--neon-cyan); }
.create-container textarea { min-height: 130px; resize: vertical; }
.create-container input[type="file"] { width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1px dashed var(--border-color); background: rgba(0,0,0,0.15); color: var(--text-muted); font-family: 'Courier New', monospace; cursor: pointer; }
.create-container .btn-submit { width: 100%; padding: 12px; margin-top: 20px; border-radius: var(--radius); border: 1px solid rgba(0, 240, 255, 0.15); background: rgba(0, 240, 255, 0.04); color: var(--neon-cyan); font-size: 14px; font-family: 'Courier New', monospace; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: var(--transition); }
.create-container .btn-submit:hover { background: rgba(0, 240, 255, 0.08); }

/* Сохраненные посты */
.saved-container { max-width: 800px; margin: 20px auto; padding: 0 20px; }
.saved-container h1 { color: var(--text-primary); font-size: 24px; font-family: 'Courier New', monospace; margin-bottom: 20px; }

/* Общие утилиты */
.bg-fixed img, .anime-bg-fixed img {
    display: none;
}
/* ========================================
   УВЕДОМЛЕНИЯ ПОПАП
   ======================================== */

.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 380px;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow);
    animation: slideInNotif 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: none;
}
.notification-popup.show {
    display: block;
}
.notification-popup .notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.notification-popup .notif-header .notif-title {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}
.notification-popup .notif-header .notif-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}
.notification-popup .notif-header .notif-close:hover {
    color: var(--text-primary);
}
.notification-popup .notif-body {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    padding: 4px 0;
}
.notification-popup .notif-body a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: var(--transition);
}
.notification-popup .notif-body a:hover {
    color: var(--neon-pink);
}
.notification-popup .notif-time {
    color: var(--text-muted);
    font-size: 10px;
    font-family: 'Courier New', monospace;
    margin-top: 2px;
}

@keyframes slideInNotif {
    0% { transform: translateX(80px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutNotif {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(80px); opacity: 0; }
}
.notification-popup.hide {
    animation: slideOutNotif 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
/* ========================================
   МИНИ-ПРОФИЛЬ ПРИ НАВЕДЕНИИ
   ======================================== */

.mini-profile {
    position: fixed;
    z-index: 9999;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 20px;
    min-width: 220px;
    max-width: 280px;
    box-shadow: var(--shadow);
    display: none;
    animation: miniProfileIn 0.2s ease;
    pointer-events: none;
}

.mini-profile.show {
    display: block;
    pointer-events: auto;
}

@keyframes miniProfileIn {
    0% { opacity: 0; transform: scale(0.95) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.mini-profile .mp-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--neon-cyan);
    margin-bottom: 6px;
}

.mini-profile .mp-username {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
}

.mini-profile .mp-role {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--text-muted);
}

.mini-profile .mp-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.mini-profile .mp-ach {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    border: 2px solid var(--border-color);
    background: rgba(0,0,0,0.2);
    cursor: help;
    transition: var(--transition);
    position: relative;
}

.mini-profile .mp-ach:hover {
    transform: scale(1.2);
    border-color: var(--neon-cyan);
}

.mini-profile .mp-ach .ach-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 8px 12px;
    min-width: 150px;
    max-width: 200px;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    box-shadow: var(--shadow);
    z-index: 10000;
    pointer-events: none;
    white-space: normal;
}

.mini-profile .mp-ach:hover .ach-tooltip {
    display: block;
}

.mini-profile .mp-ach .ach-tooltip .ach-name {
    color: var(--text-primary);
    font-weight: 600;
}

.mini-profile .mp-ach .ach-tooltip .ach-desc {
    color: var(--text-muted);
    font-size: 10px;
}

/* ========================================
   СТИЛИ ДЛЯ ДОСТИЖЕНИЙ В ПРОФИЛЕ
   ======================================== */
.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0,0,0,0.2);
    cursor: help;
    transition: var(--transition);
}
.achievement-badge:hover {
    transform: scale(1.05);
}
.achievement-badge .ach-icon {
    font-size: 18px;
}
.achievement-badge .ach-name {
    font-size: 11px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* ========================================
   СТИЛИ ДЛЯ ОПРОСОВ
   ======================================== */
.poll-container {
    margin: 16px 0;
    padding: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.poll-container .poll-question {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 15px;
    margin-bottom: 10px;
}
.poll-container .poll-option {
    margin-bottom: 8px;
}
.poll-container .poll-option .poll-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}
.poll-container .poll-option .poll-bar {
    width: 100%;
    height: 4px;
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.poll-container .poll-option .poll-bar .poll-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
}
.poll-container .poll-vote-btn {
    padding: 4px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    transition: var(--transition);
}
.poll-container .poll-vote-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}
.poll-container .poll-voted {
    color: var(--neon-green);
    font-size: 11px;
    font-family: 'Courier New', monospace;
    margin-top: 8px;
}

/* ========================================
   СТИЛИ ДЛЯ ОПРОСА В СОЗДАНИИ ПОСТА
   ======================================== */
.poll-section {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.poll-section label {
    color: var(--neon-cyan);
    font-size: 12px;
}
.poll-section .poll-option {
    margin-bottom: 4px;
}
.poll-section .poll-option input {
    width: 100%;
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 12px;
}
.poll-section .add-option-btn {
    padding: 4px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}
.poll-section .add-option-btn:hover {
    border-color: var(--neon-cyan);
    color: var(--text-primary);
}

/* ========================================
   СТИЛИ ДЛЯ УПРАВЛЕНИЯ ДОСТИЖЕНИЯМИ В АДМИНКЕ
   ======================================== */
.admin-section .achievement-form {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.admin-section .achievement-form input,
.admin-section .achievement-form textarea {
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}
.admin-section .achievement-form .ach-submit {
    padding: 8px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,240,255,0.15);
    background: rgba(0,240,255,0.04);
    color: var(--neon-cyan);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: var(--transition);
}
.admin-section .achievement-form .ach-submit:hover {
    background: rgba(0,240,255,0.08);
}
.admin-section .give-ach-form {
    display: none;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius);
}
.admin-section .give-ach-form.show {
    display: block;
}
.admin-section .give-ach-form .give-ach-title {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    margin-bottom: 8px;
}
.admin-section .give-ach-form .give-ach-title span {
    color: var(--neon-cyan);
}
.admin-section .give-ach-form select {
    padding: 6px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    flex: 1;
    min-width: 150px;
}
.admin-section .give-ach-form .give-btn {
    padding: 6px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(0,240,255,0.15);
    background: rgba(0,240,255,0.04);
    color: var(--neon-cyan);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}
.admin-section .give-ach-form .give-btn:hover {
    background: rgba(0,240,255,0.08);
}
.admin-section .give-ach-form .cancel-btn {
    padding: 6px 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,23,68,0.1);
    background: rgba(255,23,68,0.04);
    color: var(--neon-red);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: var(--transition);
}
.admin-section .give-ach-form .cancel-btn:hover {
    background: rgba(255,23,68,0.08);
}
/* ========================================
   МАЛЕНЬКИЕ АЧИВКИ-МОНЕТКИ
   ======================================== */

.achievement-coin-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), rgba(0,0,0,0.3));
    cursor: help;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-align: center;
    flex-shrink: 0;
}

.achievement-coin-small:hover {
    transform: scale(1.2) translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2) !important;
    z-index: 10;
}

.achievement-coin-small {
    animation: coinAppearSmall 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.achievement-coin-small:nth-child(1) { animation-delay: 0.00s; }
.achievement-coin-small:nth-child(2) { animation-delay: 0.05s; }
.achievement-coin-small:nth-child(3) { animation-delay: 0.10s; }
.achievement-coin-small:nth-child(4) { animation-delay: 0.15s; }
.achievement-coin-small:nth-child(5) { animation-delay: 0.20s; }
.achievement-coin-small:nth-child(6) { animation-delay: 0.25s; }
.achievement-coin-small:nth-child(7) { animation-delay: 0.30s; }
.achievement-coin-small:nth-child(8) { animation-delay: 0.35s; }
.achievement-coin-small:nth-child(9) { animation-delay: 0.40s; }
.achievement-coin-small:nth-child(10) { animation-delay: 0.45s; }
.achievement-coin-small:nth-child(11) { animation-delay: 0.50s; }
.achievement-coin-small:nth-child(12) { animation-delay: 0.55s; }
.achievement-coin-small:nth-child(13) { animation-delay: 0.60s; }
.achievement-coin-small:nth-child(14) { animation-delay: 0.65s; }
.achievement-coin-small:nth-child(15) { animation-delay: 0.70s; }

@keyframes coinAppearSmall {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@media (max-width: 480px) {
    .achievement-coin-small {
        width: 30px;
        height: 30px;
    }
    .achievement-coin-small span {
        font-size: 13px !important;
    }
}