* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        .light-theme {
            --bg-primary: #f0f2f5;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f8f9fa;
            --text-primary: #1a1a1a;
            --text-secondary: #666;
            --text-muted: #999;
            --border-color: #e0e0e0;
            --hover-color: #f5f5f5;
            --shadow-color: rgba(0,0,0,0.1);
            --accent-color: #ff6b00;
            --accent-hover: #ff8533;
            --online-color: #28a745;
            --private-badge: #fff3cd;
            --private-color: #856404;
            --hidden-badge: #e2e3e5;
            --hidden-color: #383d41;
            --tooltip-bg: #ffffff;
            --tooltip-border: #e0e0e0;
            --tooltip-header: linear-gradient(135deg, #ff6b00, #ff8533);
            --chat-bg: #ffffff;
            --chat-message-received: #f0f2f5;
            --chat-message-sent: #d9edff;
            --notification-hover: #f5f5f5;
            --admin-panel-bg: #f8f9fa;
            --admin-panel-border: #e0e0e0;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
            --support-color: #17a2b8;
            --support-hover: #138496;
            --bg-message-user: #e3f2fd;
            --bg-message-staff: #f0f2f5;
            --bg-message-system: #fff3cd;
            --music-color: #1db954;
            --music-hover: #1ed760;
            --info-color: #17a2b8;
            --test-color: #6f42c1;
            --test-hover: #8551d9;
        }

        .dark-theme {
            --bg-primary: #1a1a1a;
            --bg-secondary: #2d2d2d;
            --bg-tertiary: #363636;
            --text-primary: #fff;
            --text-secondary: #b0b0b0;
            --text-muted: #808080;
            --border-color: #404040;
            --hover-color: #3d3d3d;
            --shadow-color: rgba(0,0,0,0.3);
            --accent-color: #ff6b00;
            --accent-hover: #ff8533;
            --online-color: #28a745;
            --private-badge: #332e1f;
            --private-color: #ffc107;
            --hidden-badge: #3d3d3d;
            --hidden-color: #adb5bd;
            --tooltip-bg: #2d2d2d;
            --tooltip-border: #404040;
            --tooltip-header: linear-gradient(135deg, #ff6b00, #b34d00);
            --chat-bg: #2d2d2d;
            --chat-message-received: #363636;
            --chat-message-sent: #2d6296;
            --notification-hover: #3d3d3d;
            --admin-panel-bg: #363636;
            --admin-panel-border: #404040;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
            --support-color: #17a2b8;
            --support-hover: #138496;
            --bg-message-user: #1e3a5f;
            --bg-message-staff: #363636;
            --bg-message-system: #4a3e2a;
            --music-color: #1db954;
            --music-hover: #1ed760;
            --info-color: #17a2b8;
            --test-color: #6f42c1;
            --test-hover: #8551d9;
        }

        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: all 0.3s;
            overflow-x: hidden;
            min-height: 100vh;
            -webkit-tap-highlight-color: transparent;
        }

        .wrapper {
            max-width: 1400px;
            margin: 0 auto;
            padding: 15px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ========== АДАПТИВНОСТЬ ========== */
        @media (min-width: 1400px) {
            .wrapper { padding: 20px; }
        }

        @media (max-width: 992px) {
            .wrapper { padding: 12px; }
        }

        @media (max-width: 768px) {
            .wrapper { padding: 10px; }
        }

        @media (max-width: 480px) {
            .wrapper { padding: 8px; }
        }

        /* ========== СТРАНИЦА БЛОКИРОВКИ ========== */
        .banned-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
        }

        .banned-card {
            max-width: 500px;
            width: 100%;
            background: var(--bg-secondary);
            border-radius: 30px;
            padding: 40px 30px;
            box-shadow: 0 10px 40px var(--shadow-color);
            border: 1px solid var(--border-color);
            text-align: center;
            animation: fadeIn 0.5s ease;
        }

        @media (max-width: 480px) {
            .banned-card {
                padding: 30px 20px;
                border-radius: 24px;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .banned-icon {
            font-size: 70px;
            color: var(--danger-color);
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

        @media (max-width: 480px) {
            .banned-icon {
                font-size: 60px;
                margin-bottom: 15px;
            }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .banned-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--danger-color);
            margin-bottom: 10px;
        }

        @media (max-width: 480px) {
            .banned-title {
                font-size: 24px;
            }
        }

        .banned-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 25px;
        }

        @media (max-width: 480px) {
            .banned-subtitle {
                font-size: 14px;
                margin-bottom: 20px;
            }
        }

        .banned-info {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            margin-bottom: 25px;
            text-align: left;
        }

        @media (max-width: 480px) {
            .banned-info {
                padding: 15px;
                border-radius: 12px;
            }
        }

        .banned-info-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .banned-info-item:last-child {
            border-bottom: none;
        }

        @media (max-width: 480px) {
            .banned-info-item {
                flex-wrap: wrap;
                gap: 8px;
            }
        }

        .banned-info-item i {
            width: 20px;
            color: var(--accent-color);
            font-size: 16px;
        }

        .banned-info-item span {
            color: var(--text-secondary);
            flex: 1;
            font-size: 14px;
        }

        .banned-info-item strong {
            color: var(--text-primary);
            min-width: 110px;
            font-size: 14px;
        }

        @media (max-width: 480px) {
            .banned-info-item strong {
                min-width: 100%;
            }
        }

        .banned-admin {
            color: var(--forum-index-ban-admin-color, var(--accent-color));
            font-weight: 600;
            text-decoration: none;
        }

        .banned-admin:hover {
            text-decoration: underline;
        }

        .banned-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        @media (max-width: 480px) {
            .banned-actions {
                flex-direction: column;
                gap: 10px;
            }
        }

        .banned-notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: var(--danger-color);
            color: white;
            padding: 15px 25px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            z-index: 10001;
            animation: slideInRight 0.3s ease;
        }

        @media (max-width: 480px) {
            .banned-notification {
                left: 20px;
                right: 20px;
                border-radius: 30px;
                text-align: center;
                padding: 12px 20px;
                font-size: 13px;
            }
        }

        @keyframes slideInRight {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* ========== СТРАНИЦА ЗАКРЫТОГО ФОРУМА ========== */
        .closed-container {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 15px;
        }

        .closed-card {
            max-width: 500px;
            width: 100%;
            background: var(--bg-secondary);
            border-radius: 30px;
            padding: 40px 30px;
            box-shadow: 0 10px 40px var(--shadow-color);
            border: 1px solid var(--border-color);
            text-align: center;
            animation: fadeIn 0.5s ease;
        }

        @media (max-width: 480px) {
            .closed-card {
                padding: 30px 20px;
                border-radius: 24px;
            }
        }

        .closed-icon {
            font-size: 70px;
            color: var(--warning-color);
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

        .closed-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--warning-color);
            margin-bottom: 10px;
        }

        @media (max-width: 480px) {
            .closed-title {
                font-size: 24px;
            }
        }

        .closed-message {
            font-size: 16px;
            color: var(--text-secondary);
            margin-bottom: 25px;
            padding: 15px;
            background: var(--bg-tertiary);
            border-radius: 12px;
        }

        .closed-footer {
            margin-top: 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .btn {
            padding: 12px 25px;
            border-radius: 50px;
            font-size: 15px;
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        @media (max-width: 480px) {
            .btn {
                padding: 12px 20px;
                font-size: 14px;
                justify-content: center;
            }
        }

        .btn-primary {
            background: var(--accent-color);
            color: white;
        }

        .btn-primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--bg-tertiary);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .btn-secondary:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .btn-support {
            background: var(--support-color);
            color: white;
        }

        .btn-support:hover {
            background: var(--support-hover);
            transform: translateY(-2px);
        }

        .btn-music {
            background: var(--music-color);
            color: white;
        }

        .btn-music:hover {
            background: var(--music-hover);
        }

        .btn-test {
            background: var(--test-color);
            color: white;
        }

        .btn-test:hover {
            background: var(--test-hover);
            transform: translateY(-2px);
        }

        /* Верхняя панель для модераторов/администраторов */
        .admin-top-panel {
            background: var(--admin-panel-bg);
            border: 1px solid var(--admin-panel-border);
            border-radius: 20px;
            margin-bottom: 15px;
            padding: 10px 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
            box-shadow: 0 2px 10px var(--shadow-color);
            animation: slideDown 0.3s ease;
        }

        @media (max-width: 768px) {
            .admin-top-panel {
                flex-direction: column;
                align-items: stretch;
                padding: 15px;
                gap: 10px;
            }
        }

        .admin-panel-title {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 600;
            padding-right: 15px;
            border-right: 1px solid var(--border-color);
        }

        @media (max-width: 768px) {
            .admin-panel-title {
                border-right: none;
                padding-right: 0;
                border-bottom: 1px solid var(--border-color);
                padding-bottom: 10px;
                justify-content: center;
            }
        }

        .admin-panel-title i {
            color: var(--accent-color);
            font-size: 16px;
        }

        .admin-panel-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1;
        }

        @media (max-width: 768px) {
            .admin-panel-buttons {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .admin-panel-buttons {
                flex-direction: column;
                gap: 8px;
            }
        }

        .admin-panel-btn {
            padding: 8px 16px;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            text-decoration: none;
            color: white;
        }

        @media (max-width: 480px) {
            .admin-panel-btn {
                justify-content: center;
            }
        }

        .admin-panel-btn i {
            font-size: 14px;
        }

        .admin-panel-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.1);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .admin-panel-btn.admin {
            background: #ff4444;
        }

        .admin-panel-btn.moder {
            background: #ff6b00;
        }

        .admin-panel-btn.support {
            background: #17a2b8;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Шапка */
        .header {
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 12px 20px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }

        @media (max-width: 992px) {
            .header {
                padding: 10px 15px;
            }
        }

        @media (max-width: 768px) {
            .header {
                flex-wrap: wrap;
                gap: 10px;
            }
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        @media (max-width: 480px) {
            .logo {
                gap: 4px;
            }
        }

        .logo-just {
            font-size: 24px;
            font-weight: 900;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            animation: shake 3s infinite;
        }

        @media (max-width: 768px) {
            .logo-just {
                font-size: 22px;
            }
        }

        @media (max-width: 480px) {
            .logo-just {
                font-size: 20px;
            }
        }

        .logo-forum {
            font-size: 18px;
            font-weight: 800;
            color: var(--accent-color);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        @media (max-width: 768px) {
            .logo-forum {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .logo-forum {
                font-size: 14px;
            }
        }

        @keyframes shake {
            0%,100%{transform:translate(0,0)}
            10%{transform:translate(-1px,1px)}
            20%{transform:translate(1px,-1px)}
            30%{transform:translate(-1px,-1px)}
            40%{transform:translate(1px,1px)}
            50%{transform:translate(-1px,1px)}
        }

        .nav-center {
            display: flex;
            gap: 15px;
        }

        @media (max-width: 992px) {
            .nav-center {
                gap: 10px;
            }
        }

        @media (max-width: 768px) {
            .nav-center {
                order: 3;
                width: 100%;
                justify-content: center;
                margin-top: 5px;
            }
        }

        @media (max-width: 560px) {
            .nav-center {
                flex-wrap: wrap;
                row-gap: 8px;
            }
        }

        @media (max-width: 480px) {
            .nav-center {
                gap: 8px;
            }
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 12px;
            transition: all 0.3s;
            font-weight: 500;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        @media (max-width: 992px) {
            .nav-link {
                padding: 8px 14px;
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .nav-link {
                padding: 6px 12px;
                font-size: 13px;
            }
        }

        .nav-link:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .nav-link.active {
            background: var(--accent-color);
            color: white;
        }

        .nav-link.music {
            background: var(--music-color);
            color: white;
        }

        .nav-link.music:hover {
            background: var(--music-hover);
        }

        .nav-link.music.active {
            background: var(--music-hover);
            color: white;
        }

        .nav-link.banned {
            position: relative;
            opacity: 0.7;
            cursor: pointer;
        }

        .nav-link.banned:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        @media (max-width: 480px) {
            .user-menu {
                gap: 8px;
            }
        }

        /* Кнопка уведомлений */
        .notifications-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 12px;
            position: relative;
            transition: all 0.3s;
            -webkit-tap-highlight-color: transparent;
        }

        @media (max-width: 480px) {
            .notifications-btn {
                font-size: 16px;
                padding: 6px;
            }
        }

        .notifications-btn:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .notifications-btn:active {
            background: var(--hover-color);
            transform: scale(0.95);
        }

        .notification-badge {
            position: absolute;
            top: 3px;
            right: 3px;
            background: #ff4444;
            color: white;
            font-size: 9px;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            animation: pulse 1s infinite;
        }

        /* Модальное окно уведомлений */
        .notifications-modal {
            position: absolute;
            top: 50px;
            right: 0;
            width: 350px;
            max-height: 400px;
            background: var(--bg-secondary);
            border-radius: 15px;
            box-shadow: 0 10px 30px var(--shadow-color);
            border: 1px solid var(--border-color);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 10000;
            animation: slideDown 0.3s ease;
        }

        @media (max-width: 768px) {
            .notifications-modal {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 90%;
                max-width: 350px;
                max-height: 80vh;
            }
        }

        .notifications-modal.active {
            display: flex;
        }

        .notifications-header {
            padding: 15px;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (max-width: 480px) {
            .notifications-header {
                padding: 12px;
            }
        }

        .notifications-header h3 {
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mark-read-btn {
            background: none;
            border: none;
            color: var(--accent-color);
            font-size: 12px;
            cursor: pointer;
        }

        .notifications-list {
            flex: 1;
            overflow-y: auto;
            max-height: 300px;
        }

        .notification-item {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        @media (max-width: 480px) {
            .notification-item {
                padding: 12px;
                gap: 10px;
            }
        }

        .notification-item:hover {
            background: var(--notification-hover);
        }

        .notification-item.unread {
            background: rgba(255,107,0,0.05);
        }

        .notification-icon {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            flex-shrink: 0;
        }

        @media (max-width: 480px) {
            .notification-icon {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
        }

        .notification-content {
            flex: 1;
        }

        .notification-text {
            font-size: 13px;
            margin-bottom: 3px;
        }

        @media (max-width: 480px) {
            .notification-text {
                font-size: 12px;
            }
        }

        .notification-time {
            font-size: 10px;
            color: var(--text-muted);
        }

        .no-notifications {
            padding: 30px;
            text-align: center;
            color: var(--text-muted);
        }

        @media (max-width: 480px) {
            .no-notifications {
                padding: 25px;
            }
        }

        .no-notifications i {
            font-size: 40px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        .user-profile {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 4px 12px 4px 4px;
            border-radius: 30px;
            background: var(--hover-color);
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid var(--border-color);
        }

        @media (max-width: 480px) {
            .user-profile {
                padding: 3px 8px 3px 3px;
            }
        }

        .user-profile:hover {
            background: var(--border-color);
            transform: translateY(-2px);
        }

        .user-profile:active {
            transform: scale(0.98);
        }

        .user-profile.banned {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .user-profile.banned:hover {
            transform: none;
            background: var(--hover-color);
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            overflow: hidden;
            border: 2px solid var(--accent-color);
            position: relative;
        }

        @media (max-width: 480px) {
            .avatar {
                width: 32px;
                height: 32px;
            }
        }

        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar .online-status {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--online-color);
            border: 2px solid var(--bg-secondary);
        }

        @media (max-width: 480px) {
            .avatar .online-status {
                width: 8px;
                height: 8px;
                border-width: 1.5px;
            }
        }

        .user-info {
            display: flex;
            flex-direction: column;
        }

        @media (max-width: 480px) {
            .user-info {
                display: none;
            }
        }

        .username {
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
        }

        .username.banned {
            color: #808080 !important;
            text-decoration: line-through;
        }

        .user-role {
            font-size: 10px;
            color: var(--text-muted);
        }

        .user-role.banned {
            color: #808080;
        }

        .logout-btn {
            background: none;
            border: none;
            color: var(--text-secondary);
            font-size: 18px;
            cursor: pointer;
            padding: 8px;
            border-radius: 12px;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.3s;
        }

        @media (max-width: 480px) {
            .logout-btn {
                font-size: 16px;
                padding: 6px;
            }
        }

        .logout-btn:hover {
            background: var(--hover-color);
            color: #ff4444;
        }

        .logout-btn:active {
            transform: scale(0.95);
        }

        .login-btn, .register-btn {
            padding: 8px 16px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s;
        }

        @media (max-width: 480px) {
            .login-btn, .register-btn {
                padding: 6px 12px;
                font-size: 13px;
            }
        }

        .login-btn {
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .login-btn:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .register-btn {
            background: var(--accent-color);
            color: white;
        }

        .register-btn:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        /* Основной контент */
        .main-content {
            display: flex;
            gap: 20px;
            flex: 1;
            margin-bottom: 20px;
        }

        @media (max-width: 992px) {
            .main-content {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Левая колонка - форум */
        .forum-content {
            flex: 1;
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 4px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }

        @media (max-width: 768px) {
            .forum-content {
                padding: 15px;
                border-radius: 16px;
            }
        }

        @media (max-width: 480px) {
            .forum-content {
                padding: 12px;
                border-radius: 14px;
            }
        }

        .forum-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        @media (max-width: 480px) {
            .forum-header {
                margin-bottom: 15px;
            }
        }

        .forum-header h1 {
            font-size: 24px;
            color: var(--accent-color);
        }

        @media (max-width: 768px) {
            .forum-header h1 {
                font-size: 22px;
            }
        }

        @media (max-width: 480px) {
            .forum-header h1 {
                font-size: 20px;
            }
        }

        /* Категории - ТОЛЬКО КОРНЕВЫЕ РАЗДЕЛЫ */
        .category {
            background: var(--bg-secondary);
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        @media (max-width: 480px) {
            .category {
                border-radius: 10px;
                margin-bottom: 15px;
            }
        }

        .category-header {
            background: var(--bg-tertiary);
            padding: 12px 16px;
            border-bottom: 1px solid var(--border-color);
        }

        @media (max-width: 768px) {
            .category-header {
                padding: 10px 14px;
            }
        }

        @media (max-width: 480px) {
            .category-header {
                padding: 8px 12px;
            }
        }

        .category-header h2 {
            font-size: 18px;
            color: var(--accent-color);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        @media (max-width: 768px) {
            .category-header h2 {
                font-size: 17px;
            }
        }

        @media (max-width: 480px) {
            .category-header h2 {
                font-size: 16px;
            }
        }

        .sections-list {
            padding: 8px;
        }

        @media (max-width: 480px) {
            .sections-list {
                padding: 5px;
            }
        }

        .section-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            border-bottom: 1px solid var(--border-color);
        }

        @media (max-width: 992px) {
            .section-item {
                padding: 10px;
            }
        }

        @media (max-width: 768px) {
            .section-item {
                flex-wrap: wrap;
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            .section-item {
                padding: 8px;
            }
        }

        .section-item:last-child {
            border-bottom: none;
        }

        .section-item:hover {
            background: var(--hover-color);
            transform: translateX(5px);
        }

        @media (max-width: 768px) {
            .section-item:hover {
                transform: translateX(3px);
            }
        }

        .section-item:active {
            background: var(--hover-color);
            transform: scale(0.99);
        }

        .section-icon {
            width: 45px;
            height: 45px;
            background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-right: 12px;
            font-size: 20px;
            box-shadow: 0 4px 10px rgba(255,107,0,0.3);
            flex-shrink: 0;
        }

        @media (max-width: 768px) {
            .section-icon {
                width: 40px;
                height: 40px;
                font-size: 18px;
                margin-right: 10px;
            }
        }

        @media (max-width: 480px) {
            .section-icon {
                width: 35px;
                height: 35px;
                font-size: 16px;
                margin-right: 8px;
            }
        }

        .section-info {
            flex: 1;
            min-width: 0;
        }

        @media (max-width: 768px) {
            .section-info {
                width: calc(100% - 110px);
            }
        }

        @media (max-width: 480px) {
            .section-info {
                width: calc(100% - 90px);
            }
        }

        .section-name {
            font-weight: 600;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        @media (max-width: 480px) {
            .section-name {
                font-size: 14px;
            }
        }

        .visibility-badge {
            font-size: 10px;
            padding: 3px 6px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .visibility-private {
            background: var(--private-badge);
            color: var(--private-color);
        }

        .visibility-hidden {
            background: var(--hidden-badge);
            color: var(--hidden-color);
        }

        .section-description {
            font-size: 12px;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 300px;
        }

        @media (max-width: 768px) {
            .section-description {
                max-width: 200px;
            }
        }

        @media (max-width: 480px) {
            .section-description {
                max-width: 150px;
                font-size: 11px;
            }
        }

        .section-meta-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            margin-top: 6px;
            min-width: 0;
        }

        .section-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            color: var(--text-secondary);
            font-size: 10.5px;
            margin: 0;
            flex: 0 0 auto;
        }

        .section-stats span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 7px;
            border-radius: 999px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            line-height: 1;
        }

        .section-stats i {
            color: var(--accent-color);
            font-size: 10px;
        }

        .section-last-message {
            min-width: 0;
            max-width: 360px;
            display: flex;
            align-items: flex-start;
            gap: 9px;
            color: var(--text-muted);
            text-align: left;
            flex: 1 1 280px;
            padding: 8px 10px;
            border-radius: 12px;
            background: color-mix(in srgb, var(--bg-tertiary) 88%, transparent);
            border: 1px solid color-mix(in srgb, var(--border-color) 86%, transparent);
        }

        .last-message-avatar {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            position: relative;
            flex: 0 0 34px;
        }

        .last-message-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid rgba(255, 107, 0, 0.22);
        }

        .last-message-avatar .online-status {
            position: absolute;
            bottom: -1px;
            right: -1px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--online-color);
            border: 2px solid var(--bg-secondary);
        }

        .last-message-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .last-message-topic {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 700;
            font-size: 11.5px;
            line-height: 1.2;
            white-space: normal;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .last-message-topic:hover {
            color: var(--accent-color);
        }

        .last-message-meta {
            display: flex;
            align-items: center;
            gap: 5px;
            flex-wrap: wrap;
            min-width: 0;
        }

        .last-message-author {
            text-decoration: none;
            font-weight: 700;
            font-size: 10.5px;
            line-height: 1.2;
            min-width: 0;
            max-width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .last-message-author:hover {
            text-decoration: underline;
        }

        .last-message-info .time {
            font-size: 9.5px;
            color: var(--text-muted);
            line-height: 1.2;
            white-space: normal;
            margin: 0;
        }

        .section-last-empty {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: var(--text-muted);
            font-size: 11px;
            line-height: 1.2;
        }

        .section-last-empty i {
            color: var(--accent-color);
            font-size: 10px;
        }

        @media (max-width: 768px) {
            .section-meta-row {
                flex-direction: row;
                flex-wrap: wrap;
                align-items: center;
                gap: 8px;
            }

            .section-stats {
                gap: 7px;
                font-size: 10.5px;
            }

            .section-last-message {
                max-width: none;
                flex: 1 1 220px;
                padding: 7px 8px;
                border-radius: 10px;
                background: var(--bg-tertiary);
                border: 1px solid var(--border-color);
            }
        }

        @media (max-width: 480px) {
            .section-stats {
                gap: 6px;
            }

            .section-stats span {
                padding: 4px 6px;
            }

            .last-message-avatar {
                width: 30px;
                height: 30px;
                flex-basis: 30px;
            }

            .last-message-topic {
                font-size: 10.5px;
            }
        }

        /* Правая колонка - общая */
        .right-panel {
            width: 280px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        @media (max-width: 992px) {
            .right-panel {
                width: 100%;
            }
        }

        /* Блок "Сейчас на форуме" */
        .online-panel {
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 18px;
            box-shadow: 0 4px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }

        @media (max-width: 992px) {
            .online-panel {
                padding: 16px;
            }
        }

        @media (max-width: 480px) {
            .online-panel {
                padding: 14px;
                border-radius: 16px;
            }
        }

        .online-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        @media (max-width: 480px) {
            .online-header {
                margin-bottom: 10px;
                padding-bottom: 8px;
            }
        }

        .online-header h3 {
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        @media (max-width: 480px) {
            .online-header h3 {
                font-size: 15px;
            }
        }

        .online-header h3 i {
            color: var(--online-color);
            font-size: 10px;
        }

        .online-count {
            background: var(--accent-color);
            color: white;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .users-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 400px;
            overflow-y: auto;
        }

        @media (max-width: 992px) {
            .users-list {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .users-list {
                gap: 6px;
                max-height: 250px;
            }
        }

        .users-list::-webkit-scrollbar {
            width: 4px;
        }

        .users-list::-webkit-scrollbar-track {
            background: var(--bg-tertiary);
            border-radius: 10px;
        }

        .users-list::-webkit-scrollbar-thumb {
            background: var(--border-color);
            border-radius: 10px;
        }

        .online-user {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 6px;
            border-radius: 12px;
            transition: all 0.3s;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .online-user:hover {
            background: var(--hover-color);
            border-color: var(--border-color);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px var(--shadow-color);
        }

        @media (max-width: 992px) {
            .online-user:hover {
                transform: translateY(-1px);
            }
        }

        .online-user:active {
            background: var(--hover-color);
            transform: scale(0.98);
        }

        .online-user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            position: relative;
            flex-shrink: 0;
        }

        @media (max-width: 480px) {
            .online-user-avatar {
                width: 34px;
                height: 34px;
            }
        }

        .online-user-avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent-color);
        }

        .online-status-dot {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--online-color);
            border: 2px solid var(--bg-secondary);
        }

        @media (max-width: 480px) {
            .online-status-dot {
                width: 8px;
                height: 8px;
            }
        }

        .online-user-info {
            flex: 1;
            min-width: 0;
        }

        .online-user-name {
            font-weight: 600;
            font-size: 14px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            margin-bottom: 2px;
        }

        @media (max-width: 480px) {
            .online-user-name {
                font-size: 13px;
            }
        }

        .online-user-role {
            font-size: 9px;
            color: var(--text-muted);
            display: inline-block;
            padding: 2px 5px;
            background: var(--bg-tertiary);
            border-radius: 4px;
        }

        .online-user-status {
            display: none;
        }

        .online-user-status i {
            display: none;
        }

        .no-users {
            text-align: center;
            padding: 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .no-users i {
            font-size: 32px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        /* Блок Мини-приложения */
        .mini-apps-panel {
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 18px;
            box-shadow: 0 4px 15px var(--shadow-color);
            border: 1px solid var(--border-color);
        }

        @media (max-width: 992px) {
            .mini-apps-panel {
                padding: 16px;
            }
        }

        @media (max-width: 480px) {
            .mini-apps-panel {
                padding: 14px;
                border-radius: 16px;
            }
        }

        .mini-apps-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }

        .mini-apps-header i {
            color: var(--accent-color);
            font-size: 16px;
        }

        .mini-apps-header h3 {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .mini-apps-grid {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .mini-app-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border-radius: 12px;
            transition: all 0.3s;
            cursor: pointer;
            text-decoration: none;
            background: var(--bg-tertiary);
            border: 1px solid transparent;
        }

        .mini-app-item:hover {
            background: var(--hover-color);
            border-color: var(--border-color);
            transform: translateX(-3px);
        }

        .mini-app-item:active {
            transform: scale(0.98);
        }

        .mini-app-icon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .mini-app-item:hover .mini-app-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .mini-app-icon i {
            color: white;
            font-size: 20px;
        }

        .mini-app-info {
            flex: 1;
        }

        .mini-app-title {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 3px;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .mini-app-desc {
            font-size: 11px;
            color: var(--text-muted);
        }

        .mini-app-badge {
            background: #28a745;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 20px;
            text-align: center;
            animation: pulse-badge 2s infinite;
        }

        @keyframes pulse-badge {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .mini-app-locked {
            padding: 20px;
            background: var(--bg-tertiary);
            border-radius: 12px;
            text-align: center;
        }

        .mini-app-locked i {
            color: var(--text-muted);
            font-size: 24px;
            margin-bottom: 10px;
        }

        .mini-app-locked p {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 15px;
        }

        .mini-app-locked .btn-small {
            display: inline-block;
            padding: 6px 12px;
            background: var(--accent-color);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 12px;
            transition: all 0.3s;
        }

        .mini-app-locked .btn-small:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
        }

        /* ВСПЛЫВАЮЩИЙ МИНИ-ПРОФИЛЬ */
        .member-tooltip {
            position: fixed;
            background: var(--tooltip-bg);
            border: 1px solid var(--tooltip-border);
            border-radius: 20px;
            box-shadow: 0 20px 50px var(--shadow-color);
            width: 320px;
            z-index: 10000;
            display: none;
            overflow: hidden;
            transition: opacity 0.2s, transform 0.2s;
            transform: translateY(10px);
        }

        @media (max-width: 480px) {
            .member-tooltip {
                width: 280px;
                border-radius: 16px;
            }
        }

        .member-tooltip.show {
            display: block;
            transform: translateY(0);
        }

        .member-tooltip-header {
            height: 60px;
            background: var(--tooltip-header);
            position: relative;
        }

        @media (max-width: 480px) {
            .member-tooltip-header {
                height: 50px;
            }
        }

        .tooltip-moderator-tool {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--bg-secondary);
            border: 2px solid var(--accent-color);
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            z-index: 20;
            box-shadow: 0 2px 10px var(--shadow-color);
        }

        @media (max-width: 480px) {
            .tooltip-moderator-tool {
                width: 30px;
                height: 30px;
                top: 10px;
                right: 10px;
            }
        }

        .tooltip-moderator-tool:hover {
            transform: rotate(90deg);
            background: var(--accent-color);
        }

        .tooltip-moderator-tool:hover i {
            color: white;
        }

        .tooltip-moderator-tool i {
            color: var(--accent-color);
            font-size: 16px;
            transition: all 0.3s;
        }

        @media (max-width: 480px) {
            .tooltip-moderator-tool i {
                font-size: 14px;
            }
        }

        .member-tooltip-avatar-container {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
        }

        @media (max-width: 480px) {
            .member-tooltip-avatar-container {
                top: 15px;
            }
        }

        .member-tooltip-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            border: 4px solid var(--tooltip-bg);
            background: var(--bg-tertiary);
            overflow: hidden;
            box-shadow: 0 8px 20px var(--shadow-color);
            position: relative;
        }

        @media (max-width: 480px) {
            .member-tooltip-avatar {
                width: 75px;
                height: 75px;
                border-width: 3px;
            }
        }

        .member-tooltip-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .member-tooltip-avatar .online-status {
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: var(--online-color);
            border: 3px solid var(--tooltip-bg);
        }

        @media (max-width: 480px) {
            .member-tooltip-avatar .online-status {
                width: 14px;
                height: 14px;
                border-width: 2px;
            }
        }

        .member-tooltip-content {
            padding: 60px 20px 20px;
            text-align: center;
        }

        @media (max-width: 480px) {
            .member-tooltip-content {
                padding: 50px 15px 15px;
            }
        }

        .member-tooltip-name {
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 15px;
            cursor: pointer;
            display: inline-block;
            transition: all 0.3s;
        }

        @media (max-width: 480px) {
            .member-tooltip-name {
                font-size: 20px;
                margin-bottom: 12px;
            }
        }

        .member-tooltip-name:hover {
            color: var(--accent-color);
            text-decoration: underline;
        }

        .role-banner-container {
            max-width: 100%;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid var(--border-color);
            background: var(--bg-tertiary);
            margin: 10px 0 20px 0;
        }

        .role-banner-container img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: contain;
            max-height: 60px;
        }

        @media (max-width: 480px) {
            .role-banner-container img {
                max-height: 50px;
            }
        }

        .member-tooltip-stats {
            display: flex;
            justify-content: space-between;
            margin: 20px 0;
            padding: 15px 0;
            border-top: 2px solid var(--border-color);
            border-bottom: 2px solid var(--border-color);
        }

        @media (max-width: 480px) {
            .member-tooltip-stats {
                margin: 15px 0;
                padding: 12px 0;
            }
        }

        .member-tooltip-stat {
            text-align: center;
            flex: 1;
            position: relative;
        }

        .member-tooltip-stat:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 10%;
            height: 80%;
            width: 1px;
            background: var(--border-color);
        }

        .member-tooltip-stat-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--accent-color);
            line-height: 1.2;
        }

        @media (max-width: 480px) {
            .member-tooltip-stat-value {
                font-size: 20px;
            }
        }

        .member-tooltip-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }

        @media (max-width: 480px) {
            .member-tooltip-stat-label {
                font-size: 10px;
            }
        }

        .member-tooltip-registered {
            font-size: 12px;
            color: var(--text-muted);
            margin-bottom: 20px;
            padding: 8px;
            background: var(--bg-tertiary);
            border-radius: 30px;
            display: inline-block;
            padding: 8px 20px;
        }

        @media (max-width: 480px) {
            .member-tooltip-registered {
                font-size: 11px;
                padding: 6px 15px;
                margin-bottom: 15px;
            }
        }

        .member-tooltip-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }

        @media (max-width: 480px) {
            .member-tooltip-actions {
                gap: 8px;
            }
        }

        .member-tooltip-btn {
            flex: 1;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 30px;
            padding: 12px;
            font-size: 13px;
            color: var(--text-primary);
            cursor: pointer;
            text-decoration: none;
            text-align: center;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 500;
        }

        @media (max-width: 480px) {
            .member-tooltip-btn {
                padding: 10px;
                font-size: 12px;
            }
        }

        .member-tooltip-btn:hover {
            background: var(--hover-color);
            border-color: var(--accent-color);
            color: var(--accent-color);
            transform: translateY(-2px);
        }

        .member-tooltip-btn.primary {
            background: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        .member-tooltip-btn.primary:hover {
            background: var(--accent-hover);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255,107,0,0.3);
        }

        /* Плавающие кнопки */
        .floating-buttons {
            position: fixed;
            bottom: 25px;
            right: 25px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 9995;
        }

        @media (max-width: 768px) {
            .floating-buttons {
                bottom: 20px;
                right: 20px;
                gap: 10px;
            }
        }

        @media (max-width: 480px) {
            .floating-buttons {
                bottom: 15px;
                right: 15px;
                gap: 8px;
            }
        }

        .floating-btn {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
            border: none;
            box-shadow: 0 4px 20px rgba(255,107,0,0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            position: relative;
            animation: float 3s ease-in-out infinite;
            text-decoration: none;
            -webkit-tap-highlight-color: transparent;
        }

        @media (max-width: 768px) {
            .floating-btn {
                width: 50px;
                height: 50px;
            }
        }

        @media (max-width: 480px) {
            .floating-btn {
                width: 44px;
                height: 44px;
            }
        }

        .floating-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(255,107,0,0.5);
        }

        .floating-btn:active {
            transform: scale(0.95);
        }

        .floating-btn.support {
            animation-delay: 0.5s;
            background: linear-gradient(135deg, var(--support-color), var(--support-hover));
        }

        .floating-btn i {
            font-size: 26px;
            color: white;
        }

        @media (max-width: 768px) {
            .floating-btn i {
                font-size: 24px;
            }
        }

        @media (max-width: 480px) {
            .floating-btn i {
                font-size: 22px;
            }
        }

        .floating-btn .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ff4444;
            color: white;
            font-size: 11px;
            min-width: 20px;
            height: 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            animation: pulse 1s infinite;
        }

        @media (max-width: 480px) {
            .floating-btn .badge {
                font-size: 10px;
                min-width: 18px;
                height: 18px;
            }
        }

        .floating-btn.banned {
            opacity: 0.7;
            cursor: pointer;
            position: relative;
        }

        .floating-btn.banned:hover {
            opacity: 1;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        @media (max-width: 480px) {
            @keyframes float {
                0%, 100% { transform: translateY(0); }
                50% { transform: translateY(-5px); }
            }
        }

        /* Модальное окно поддержки */
        .support-modal {
            position: fixed;
            bottom: 95px;
            right: 25px;
            width: 380px;
            max-height: 550px;
            background: var(--bg-secondary);
            border-radius: 20px;
            box-shadow: 0 10px 40px var(--shadow-color);
            border: 1px solid var(--border-color);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 9997;
            animation: slideIn 0.3s ease;
        }

        @media (max-width: 768px) {
            .support-modal {
                width: 340px;
                max-height: 500px;
                bottom: 85px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            .support-modal {
                width: calc(100% - 30px);
                max-width: 350px;
                max-height: 70vh;
                bottom: 70px;
                right: 15px;
                left: 15px;
                margin: 0 auto;
            }
        }

        .support-modal.active {
            display: flex;
        }

        .support-modal.expanded {
            width: 600px;
            height: 600px;
            max-height: 80vh;
        }

        @media (max-width: 768px) {
            .support-modal.expanded {
                width: 90%;
                height: 80vh;
                right: 5%;
                left: 5%;
            }
        }

        .support-header {
            padding: 15px 20px;
            background: linear-gradient(135deg, var(--support-color), var(--support-hover));
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .support-header h3 {
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .support-header h3 i {
            font-size: 20px;
        }

        .support-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .support-close:hover {
            opacity: 1;
            background: rgba(255,255,255,0.2);
            transform: rotate(90deg);
        }

        .support-close:active {
            transform: rotate(90deg) scale(0.95);
        }

        .support-content {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Форма создания тикета */
        .ticket-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .ticket-form h4 {
            font-size: 16px;
            color: var(--support-color);
            margin-bottom: 5px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            color: var(--text-secondary);
            margin-bottom: 5px;
            font-size: 13px;
            font-weight: 500;
        }

        .form-group label i {
            color: var(--support-color);
            margin-right: 5px;
        }

        .form-control {
            width: 100%;
            padding: 12px 15px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 14px;
            transition: all 0.3s;
        }

        .form-control:focus {
            border-color: var(--support-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(23,162,184,0.1);
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .ticket-categories {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        @media (max-width: 480px) {
            .ticket-categories {
                grid-template-columns: 1fr;
            }
        }

        .category-option {
            position: relative;
        }

        .category-option input[type="radio"] {
            display: none;
        }

        .category-option label {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s;
            text-align: center;
        }

        .category-option label i {
            font-size: 24px;
            color: var(--support-color);
            margin-bottom: 5px;
        }

        .category-option label span {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .category-option input[type="radio"]:checked + label {
            background: var(--support-color);
            border-color: var(--support-color);
        }

        .category-option input[type="radio"]:checked + label i,
        .category-option input[type="radio"]:checked + label span {
            color: white;
        }

        .ticket-info {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            padding: 15px;
            margin: 15px 0;
            font-size: 13px;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .ticket-info i {
            color: var(--support-color);
            font-size: 18px;
        }

        /* Чат тикета */
        .ticket-chat {
            display: flex;
            flex-direction: column;
            height: 450px;
        }

        .ticket-header {
            padding: 15px;
            background: var(--bg-tertiary);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .ticket-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .status-badge {
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
        }

        .ticket-messages {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .message {
            display: flex;
            gap: 10px;
            max-width: 80%;
        }

        @media (max-width: 480px) {
            .message {
                max-width: 95%;
            }
        }

        .message.own {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .message.system {
            align-self: center;
            max-width: 90%;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }

        .message-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .message-content {
            flex: 1;
        }

        .message-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
            font-size: 11px;
        }

        .message-author {
            font-weight: 600;
        }

        .message-time {
            color: var(--text-muted);
        }

        .message-body {
            background: var(--bg-message-staff);
            padding: 8px 12px;
            border-radius: 15px;
            border-top-left-radius: 5px;
            word-break: break-word;
            font-size: 13px;
            line-height: 1.5;
        }

        .message.own .message-body {
            background: var(--bg-message-user);
            border-top-left-radius: 15px;
            border-top-right-radius: 5px;
        }

        .message.system .message-body {
            background: var(--bg-message-system);
            text-align: center;
            font-size: 11px;
            color: var(--text-secondary);
            border-radius: 20px;
        }

        .staff-badge {
            background: var(--support-color);
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 8px;
            margin-left: 5px;
        }

        .ticket-input {
            padding: 15px;
            border-top: 1px solid var(--border-color);
            background: var(--bg-tertiary);
        }

        .ticket-form-chat {
            display: flex;
            gap: 10px;
        }

        .ticket-form-chat input {
            flex: 1;
            padding: 12px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            color: var(--text-primary);
            font-size: 13px;
        }

        .ticket-form-chat input:focus {
            border-color: var(--support-color);
            outline: none;
        }

        .ticket-form-chat button {
            width: 45px;
            height: 45px;
            border-radius: 10px;
            background: var(--support-color);
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
        }

        .ticket-form-chat button:hover {
            background: var(--support-hover);
            transform: scale(1.05);
        }

        .ticket-form-chat button:active {
            transform: scale(0.95);
        }

        .ticket-form-chat button:disabled {
            background: var(--border-color);
            cursor: not-allowed;
        }

        .ticket-closed-message {
            text-align: center;
            padding: 20px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .ticket-closed-message i {
            font-size: 30px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        .alert {
            padding: 12px 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .alert.error {
            background: rgba(220, 53, 69, 0.1);
            border: 1px solid var(--danger-color);
            color: var(--danger-color);
        }

        .alert.success {
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid #28a745;
            color: #28a745;
        }

        .alert i {
            font-size: 16px;
        }

        /* Модальное окно чата */
        .mini-chat {
            position: fixed;
            bottom: 95px;
            right: 25px;
            width: 350px;
            height: 500px;
            background: var(--chat-bg);
            border-radius: 20px;
            box-shadow: 0 10px 30px var(--shadow-color);
            border: 1px solid var(--border-color);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 9996;
            animation: slideIn 0.3s ease;
        }

        @media (max-width: 768px) {
            .mini-chat {
                width: 320px;
                height: 480px;
                bottom: 85px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            .mini-chat {
                width: calc(100% - 30px);
                max-width: 350px;
                height: 70vh;
                bottom: 70px;
                right: 15px;
                left: 15px;
                margin: 0 auto;
            }
        }

        .mini-chat.active {
            display: flex;
        }

        .mini-chat-header {
            padding: 15px;
            background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: default;
        }

        @media (max-width: 480px) {
            .mini-chat-header {
                padding: 12px;
            }
        }

        .mini-chat-header h3 {
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .mini-chat-close {
            background: none;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s;
        }

        .mini-chat-close:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .mini-chat-close:active {
            transform: scale(0.95);
        }

        .mini-chat-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-tertiary);
        }

        .mini-chat-tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            color: var(--text-secondary);
            font-size: 14px;
        }

        @media (max-width: 480px) {
            .mini-chat-tab {
                padding: 10px;
                font-size: 13px;
            }
        }

        .mini-chat-tab:hover {
            background: var(--hover-color);
            color: var(--accent-color);
        }

        .mini-chat-tab.active {
            color: var(--accent-color);
            border-bottom: 2px solid var(--accent-color);
        }

        .mini-chat-content {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        @media (max-width: 480px) {
            .mini-chat-content {
                padding: 12px;
            }
        }

        .chat-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .chat-list-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            background: var(--bg-tertiary);
            border: 1px solid transparent;
        }

        @media (max-width: 480px) {
            .chat-list-item {
                padding: 10px;
                gap: 10px;
            }
        }

        .chat-list-item:hover {
            background: var(--hover-color);
            border-color: var(--border-color);
        }

        .chat-list-item:active {
            background: var(--hover-color);
            transform: scale(0.98);
        }

        .chat-list-item.active {
            border-color: var(--accent-color);
        }

        .chat-list-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 16px;
            flex-shrink: 0;
            position: relative;
            overflow: visible;
        }

        .chat-list-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: inherit;
        }

        .chat-list-status-dot {
            position: absolute;
            right: -1px;
            bottom: -1px;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid var(--bg-secondary);
            background: var(--text-muted);
            box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
        }

        .chat-list-status-dot.online {
            background: var(--online-color);
        }

        .chat-list-status-dot.offline {
            background: var(--text-muted);
        }

        @media (max-width: 480px) {
            .chat-list-avatar {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }
        }

        .chat-list-info {
            flex: 1;
            min-width: 0;
        }

        .chat-list-name {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 3px;
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 8px;
        }

        .chat-list-name > span:first-child {
            flex: 1 1 auto;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .chat-list-name > span:last-child {
            flex: 0 0 auto;
            color: var(--text-muted);
            font-size: 10px;
        }

        .chat-list-last-msg {
            color: var(--text-muted);
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .chat-list-unread {
            background: var(--accent-color);
            color: white;
            font-size: 10px;
            min-width: 18px;
            height: 18px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-messages {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 350px;
            overflow-y: auto;
            padding: 5px;
        }

        .chat-message {
            display: flex;
            gap: 8px;
            max-width: 80%;
        }

        .chat-message.sent {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .chat-message-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
        }

        .chat-message-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .chat-message-content {
            background: var(--chat-message-received);
            padding: 10px 12px;
            border-radius: 15px;
            border-bottom-left-radius: 5px;
        }

        .chat-message.sent .chat-message-content {
            background: var(--chat-message-sent);
            border-bottom-left-radius: 15px;
            border-bottom-right-radius: 5px;
        }

        .chat-message-info {
            display: flex;
            gap: 8px;
            margin-bottom: 3px;
            font-size: 10px;
        }

        .chat-message-author {
            font-weight: 600;
            color: var(--accent-color);
        }

        .chat-message-time {
            color: var(--text-muted);
        }

        .chat-message-text {
            color: var(--text-primary);
            font-size: 12px;
            line-height: 1.4;
            word-break: break-word;
        }

        .chat-input {
            display: flex;
            gap: 8px;
            padding: 15px;
            border-top: 1px solid var(--border-color);
        }

        @media (max-width: 480px) {
            .chat-input {
                padding: 12px;
            }
        }

        .chat-input input {
            flex: 1;
            padding: 10px 15px;
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--text-primary);
            outline: none;
            font-size: 13px;
        }

        .chat-send-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-color);
            border: none;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
        }

        .chat-send-btn:hover {
            background: var(--accent-hover);
            transform: scale(1.1);
        }

        .chat-send-btn:active {
            transform: scale(0.95);
        }

        .no-chat-selected {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            text-align: center;
        }

        .no-chat-selected i {
            font-size: 50px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        /* Модальное окно модератора */
        .tooltip-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 10001;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(5px);
        }

        .tooltip-modal.active {
            display: flex;
            animation: modalFadeIn 0.3s;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.9);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .tooltip-modal-content {
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px var(--shadow-color);
        }

        @media (max-width: 480px) {
            .tooltip-modal-content {
                padding: 20px;
                border-radius: 16px;
            }
        }

        .tooltip-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .tooltip-modal-header h2 {
            font-size: 24px;
            color: var(--accent-color);
        }

        @media (max-width: 480px) {
            .tooltip-modal-header h2 {
                font-size: 20px;
            }
        }

        .tooltip-modal-close {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: var(--bg-tertiary);
            border: none;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .tooltip-modal-close:hover {
            background: #ff4444;
            color: white;
            transform: rotate(90deg);
        }

        .tooltip-modal-close:active {
            transform: rotate(90deg) scale(0.95);
        }

        /* Пустое состояние */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        @media (max-width: 480px) {
            .empty-state {
                padding: 30px 15px;
            }
        }

        .empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        @media (max-width: 480px) {
            .empty-state i {
                font-size: 40px;
            }
        }

        /* Дополнительные адаптивные улучшения */
        @media (max-width: 360px) {
            .logo-just {
                font-size: 18px;
            }
            
            .logo-forum {
                font-size: 12px;
            }
            
            .nav-link {
                padding: 5px 8px;
                font-size: 12px;
            }
            
            .online-user-name {
                font-size: 12px;
            }
            
            .online-user-role {
                font-size: 8px;
            }
        }

        /* Улучшение touch-событий для мобильных */
        @media (hover: none) and (pointer: coarse) {
            .section-item:hover,
            .online-user:hover,
            .user-profile:hover,
            .nav-link:hover,
            .admin-panel-btn:hover,
            .chat-list-item:hover,
            .notification-item:hover,
            .mini-app-item:hover {
                transform: none;
            }
            
            .floating-btn:hover {
                transform: scale(1);
            }
            
            .btn:hover,
            .member-tooltip-btn:hover {
                transform: none;
            }
            
            .section-item:active,
            .online-user:active,
            .user-profile:active,
            .nav-link:active,
            .admin-panel-btn:active,
            .chat-list-item:active,
            .floating-btn:active,
            .btn:active,
            .mini-app-item:active {
                transform: scale(0.98);
            }
        }

@media (max-width: 420px) {
    .nav-link {
        text-align: center;
    }
}

        /* Адаптация для планшетов в landscape ориентации */
        @media (max-width: 992px) and (orientation: landscape) {
            .mini-chat {
                height: 70vh;
            }
            
            .support-modal {
                height: 70vh;
            }
            
            .users-list {
                max-height: 250px;
            }
        }
