       /* ============================================
           БАЗОВЫЕ СТИЛИ
           ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: transparent;
            color: #ffffff;
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            padding-top: 90px;
            min-height: 100vh;
        }
        
        html {
            scroll-behavior: smooth;
            background: #0a0a0a;
        }

        :root {
            --cod-black: #0a0a0a;
            --cod-dark: #1a1a2e;
            --cod-gray: #2d2d3a;
            --cod-accent: #3fa9f5;
            --cod-accent-dark: #2d8cd6;
            --cod-accent-light: #63b7ff;
            --cod-white: #ffffff;
            --cod-red: #e74c3c;
            --cod-green: #2ecc71;
            --cod-blue: #3498db;
        }

        /* ============================================
           АНИМИРОВАННЫЙ ФОН (из index.php)
           ============================================ */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -3;
            overflow: hidden;
            background: #0a0a0a;
        }

        .bg-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(63, 169, 245, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(63, 169, 245, 0.03) 1px, transparent 1px);
            background-size: 60px 60px;
            animation: gridPulse 8s ease-in-out infinite;
        }

        @keyframes gridPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.8; }
        }

        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .particle {
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(63, 169, 245, 0.4), transparent 70%);
            animation: floatParticle linear infinite;
            opacity: 0;
        }

        .particle:nth-child(1) { width: 150px; height: 150px; left: 10%; top: 20%; animation-duration: 25s; animation-delay: 0s; background: radial-gradient(circle, rgba(63, 169, 245, 0.2), transparent 70%); }
        .particle:nth-child(2) { width: 80px; height: 80px; left: 70%; top: 60%; animation-duration: 20s; animation-delay: 3s; background: radial-gradient(circle, rgba(63, 169, 245, 0.3), transparent 70%); }
        .particle:nth-child(3) { width: 200px; height: 200px; left: 50%; top: 30%; animation-duration: 30s; animation-delay: 5s; background: radial-gradient(circle, rgba(63, 169, 245, 0.15), transparent 70%); }
        .particle:nth-child(4) { width: 60px; height: 60px; left: 20%; top: 70%; animation-duration: 18s; animation-delay: 2s; background: radial-gradient(circle, rgba(63, 169, 245, 0.35), transparent 70%); }
        .particle:nth-child(5) { width: 120px; height: 120px; left: 85%; top: 15%; animation-duration: 22s; animation-delay: 7s; background: radial-gradient(circle, rgba(63, 169, 245, 0.2), transparent 70%); }
        .particle:nth-child(6) { width: 100px; height: 100px; left: 35%; top: 85%; animation-duration: 28s; animation-delay: 4s; background: radial-gradient(circle, rgba(63, 169, 245, 0.25), transparent 70%); }
        .particle:nth-child(7) { width: 180px; height: 180px; left: 5%; top: 50%; animation-duration: 26s; animation-delay: 6s; background: radial-gradient(circle, rgba(63, 169, 245, 0.12), transparent 70%); }
        .particle:nth-child(8) { width: 70px; height: 70px; left: 60%; top: 5%; animation-duration: 16s; animation-delay: 1s; background: radial-gradient(circle, rgba(63, 169, 245, 0.3), transparent 70%); }

        @keyframes floatParticle {
            0% { transform: translate(0, 0) scale(1); opacity: 0; }
            10% { opacity: 0.6; }
            90% { opacity: 0.6; }
            100% { transform: translate(100px, -200px) scale(1.5); opacity: 0; }
        }

        .tracers {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .tracer {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(63, 169, 245, 0.5), transparent);
            animation: tracerMove linear infinite;
            opacity: 0;
        }

        .tracer:nth-child(1) { width: 300px; top: 15%; left: -300px; animation-duration: 8s; animation-delay: 0s; }
        .tracer:nth-child(2) { width: 250px; top: 35%; left: -250px; animation-duration: 10s; animation-delay: 2s; height: 2px; background: linear-gradient(90deg, transparent, rgba(63, 169, 245, 0.3), transparent); }
        .tracer:nth-child(3) { width: 350px; top: 55%; left: -350px; animation-duration: 7s; animation-delay: 4s; }
        .tracer:nth-child(4) { width: 200px; top: 75%; left: -200px; animation-duration: 12s; animation-delay: 1s; height: 2px; background: linear-gradient(90deg, transparent, rgba(63, 169, 245, 0.4), transparent); }
        .tracer:nth-child(5) { width: 280px; top: 90%; left: -280px; animation-duration: 9s; animation-delay: 6s; }
        .tracer:nth-child(6) { width: 220px; top: 5%; left: -220px; animation-duration: 11s; animation-delay: 3s; height: 2px; background: linear-gradient(90deg, transparent, rgba(63, 169, 245, 0.35), transparent); }

        @keyframes tracerMove {
            0% { transform: translateX(0) scaleX(1); opacity: 0; }
            10% { opacity: 0.8; }
            90% { opacity: 0.8; }
            100% { transform: translateX(120vw) scaleX(1.5); opacity: 0; }
        }

        .stars {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }

        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: #ffffff;
            border-radius: 50%;
            animation: twinkle ease-in-out infinite;
        }

        .star:nth-child(1) { left: 5%; top: 10%; animation-duration: 3s; animation-delay: 0s; }
        .star:nth-child(2) { left: 15%; top: 25%; animation-duration: 4s; animation-delay: 1s; width: 3px; height: 3px; }
        .star:nth-child(3) { left: 25%; top: 5%; animation-duration: 2.5s; animation-delay: 0.5s; }
        .star:nth-child(4) { left: 35%; top: 40%; animation-duration: 3.5s; animation-delay: 2s; }
        .star:nth-child(5) { left: 45%; top: 15%; animation-duration: 4.5s; animation-delay: 0.3s; width: 3px; height: 3px; }
        .star:nth-child(6) { left: 55%; top: 60%; animation-duration: 3s; animation-delay: 1.5s; }
        .star:nth-child(7) { left: 65%; top: 8%; animation-duration: 5s; animation-delay: 0.7s; }
        .star:nth-child(8) { left: 75%; top: 45%; animation-duration: 2.8s; animation-delay: 2.5s; width: 3px; height: 3px; }
        .star:nth-child(9) { left: 85%; top: 20%; animation-duration: 3.2s; animation-delay: 1.2s; }
        .star:nth-child(10) { left: 92%; top: 70%; animation-duration: 4.2s; animation-delay: 0.8s; }
        .star:nth-child(11) { left: 8%; top: 80%; animation-duration: 3.8s; animation-delay: 1.8s; }
        .star:nth-child(12) { left: 48%; top: 90%; animation-duration: 2.2s; animation-delay: 0.2s; }
        .star:nth-child(13) { left: 78%; top: 85%; animation-duration: 3.6s; animation-delay: 2.2s; width: 3px; height: 3px; }
        .star:nth-child(14) { left: 20%; top: 55%; animation-duration: 4.8s; animation-delay: 1.6s; }
        .star:nth-child(15) { left: 60%; top: 35%; animation-duration: 2.6s; animation-delay: 0.9s; }

        @keyframes twinkle {
            0%, 100% { opacity: 0.2; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.5); }
        }

        .bg-noise {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.03;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
            background-repeat: repeat;
            background-size: 256px 256px;
            animation: noiseAnimation 0.5s steps(2) infinite;
            pointer-events: none;
        }

        @keyframes noiseAnimation {
            0% { transform: translate(0, 0); }
            10% { transform: translate(-5%, -5%); }
            20% { transform: translate(5%, 5%); }
            30% { transform: translate(-10%, 0); }
            40% { transform: translate(10%, -5%); }
            50% { transform: translate(-5%, 10%); }
            60% { transform: translate(5%, -10%); }
            70% { transform: translate(-10%, 5%); }
            80% { transform: translate(10%, 0); }
            90% { transform: translate(0, -5%); }
            100% { transform: translate(0, 0); }
        }

        .bg-gradient-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at 20% 50%, rgba(63, 169, 245, 0.05) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(63, 169, 245, 0.03) 0%, transparent 60%),
                linear-gradient(180deg, 
                    rgba(10, 10, 10, 0.85) 0%,
                    rgba(10, 10, 10, 0.6) 20%,
                    rgba(10, 10, 10, 0.4) 40%,
                    rgba(10, 10, 10, 0.3) 60%,
                    rgba(10, 10, 10, 0.4) 80%,
                    rgba(10, 10, 10, 0.85) 100%
                );
            pointer-events: none;
            z-index: 1;
        }

        .light-rays {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
        }

        .light-ray {
            position: absolute;
            width: 1px;
            height: 100%;
            background: linear-gradient(180deg, 
                transparent 0%, 
                rgba(63, 169, 245, 0.05) 30%, 
                rgba(63, 169, 245, 0.15) 50%, 
                rgba(63, 169, 245, 0.05) 70%, 
                transparent 100%
            );
            animation: rayPulse ease-in-out infinite;
        }

        .light-ray:nth-child(1) { left: 10%; animation-duration: 4s; animation-delay: 0s; }
        .light-ray:nth-child(2) { left: 25%; animation-duration: 5s; animation-delay: 1s; }
        .light-ray:nth-child(3) { left: 40%; animation-duration: 3.5s; animation-delay: 0.5s; }
        .light-ray:nth-child(4) { left: 55%; animation-duration: 4.5s; animation-delay: 2s; }
        .light-ray:nth-child(5) { left: 70%; animation-duration: 3s; animation-delay: 0.3s; }
        .light-ray:nth-child(6) { left: 85%; animation-duration: 5.5s; animation-delay: 1.5s; }

        @keyframes rayPulse {
            0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
            50% { opacity: 1; transform: scaleY(1.2); }
        }

        /* ============================================
           ХЕДЕР (из index.php)
           ============================================ */

/* ============================================
           ВЫПАДАЮЩЕЕ МЕНЮ "ЕЩЕ" (из index.php)
           ============================================ */

@keyframes pulse-badge {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

/* ============================================
           МЕНЮ ПОЛЬЗОВАТЕЛЯ
           ============================================ */

/* ============================================
           ОСТАЛЬНЫЕ СТИЛИ НАВИГАЦИИ
           ============================================ */

/* ============================================
           СТИЛИ ФОРУМА
           ============================================ */

        /* common.css uses flex+center for homepage heroes; forum nests .container inside */
        .content-section {
            display: block;
            align-items: stretch;
            overflow: visible;
            min-height: 0;
        }

        .content-section > .container {
            width: 100%;
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem 2rem;
        }

        .forum-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid rgba(63, 169, 245, 0.1);
        }

        .forum-stat {
            text-align: center;
        }

        .forum-stat .stat-number {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: #3fa9f5;
        }

        .forum-stat .stat-label {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.4);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .forum-category {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid rgba(63, 169, 245, 0.1);
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .forum-category:hover {
            border-color: rgba(63, 169, 245, 0.2);
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 1rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .category-icon {
            font-size: 1.5rem;
            color: #3fa9f5;
        }

        .category-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.3rem;
            color: #3fa9f5;
        }

        .category-description {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.85rem;
        }

        .category-stats {
            margin-left: auto;
            text-align: right;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .forum-sections {
            display: grid;
            gap: 0.8rem;
        }

        .forum-section {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 8px;
            padding: 0.8rem 1rem;
            border: 1px solid rgba(255, 255, 255, 0.03);
            transition: all 0.3s ease;
            display: grid;
            grid-template-columns: 1fr auto auto;
            gap: 1rem;
            align-items: center;
        }

        .forum-section:hover {
            border-color: rgba(63, 169, 245, 0.1);
            background: rgba(0, 0, 0, 0.3);
        }

        .section-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-icon {
            font-size: 1.2rem;
            color: #3fa9f5;
            width: 30px;
            text-align: center;
        }

        .section-details h3 {
            font-size: 1rem;
            margin-bottom: 2px;
        }

        .section-details h3 a {
            color: var(--cod-white);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .section-details h3 a:hover {
            color: #3fa9f5;
        }

        .section-details p {
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.8rem;
        }

        .section-stats {
            text-align: center;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .section-stats .stat-number {
            font-size: 1.1rem;
            font-weight: 700;
            color: #3fa9f5;
        }

        .section-last-activity {
            text-align: right;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .section-last-activity .last-topic a {
            color: var(--cod-white);
            text-decoration: none;
        }

        .section-last-activity .last-topic a:hover {
            color: #3fa9f5;
        }

        .latest-topics-section {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .section-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.3rem;
            color: #3fa9f5;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .topics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .topic-notification {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 1rem;
            display: flex;
            gap: 0.8rem;
            align-items: flex-start;
            transition: all 0.3s ease;
        }

        .topic-notification:hover {
            border-color: rgba(63, 169, 245, 0.15);
            transform: translateY(-2px);
        }

        .topic-avatar {
            flex-shrink: 0;
            text-decoration: none;
        }

        .avatar-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3fa9f5, #2d8cd6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .avatar-circle:hover {
            transform: scale(1.05);
        }

        .topic-info {
            flex: 1;
            min-width: 0;
        }

        .topic-title {
            margin: 0 0 0.3rem 0;
            font-size: 0.95rem;
        }

        .topic-title a {
            color: var(--cod-white);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .topic-title a:hover {
            color: #3fa9f5;
        }

        .topic-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.3);
        }

        .topic-meta span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .topic-meta i {
            color: #3fa9f5;
        }

        .topic-arrow {
            flex-shrink: 0;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(63, 169, 245, 0.1);
            border-radius: 50%;
            color: #3fa9f5;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .topic-arrow:hover {
            background: rgba(63, 169, 245, 0.2);
            transform: translateX(3px);
        }

        .btn {
            background: #3fa9f5;
            color: var(--cod-black);
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .btn:hover {
            background: #2d8cd6;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(63, 169, 245, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: #3fa9f5;
            border: 1px solid #3fa9f5;
        }

        .btn-secondary:hover {
            background: rgba(63, 169, 245, 0.1);
            color: #3fa9f5;
        }

        .btn-danger {
            background: rgba(231, 76, 60, 0.15);
            color: #e74c3c;
            border: 1px solid rgba(231, 76, 60, 0.2);
        }

        .btn-danger:hover {
            background: rgba(231, 76, 60, 0.25);
        }

        .btn-success {
            background: rgba(46, 204, 113, 0.15);
            color: #2ecc71;
            border: 1px solid rgba(46, 204, 113, 0.2);
        }

        .btn-success:hover {
            background: rgba(46, 204, 113, 0.25);
        }

        .admin-panel {
            margin-top: 2rem;
            background: rgba(231, 76, 60, 0.05);
            border: 1px solid rgba(231, 76, 60, 0.1);
            border-radius: 12px;
            padding: 1.5rem;
        }

        .admin-title {
            font-family: 'Orbitron', sans-serif;
            color: #e74c3c;
            font-size: 1.2rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .admin-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 0.8rem;
        }

        .admin-btn {
            background: rgba(0, 0, 0, 0.2);
            color: var(--cod-white);
            padding: 0.7rem 1rem;
            border-radius: 8px;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.03);
        }

        .admin-btn:hover {
            border-color: rgba(231, 76, 60, 0.3);
            background: rgba(231, 76, 60, 0.1);
            transform: translateY(-2px);
        }

        .admin-btn i {
            color: #e74c3c;
        }

        .empty-state {
            text-align: center;
            padding: 3rem;
            color: rgba(255, 255, 255, 0.2);
        }

        .empty-state i {
            font-size: 3rem;
            display: block;
            margin-bottom: 1rem;
        }

        .back-to-top-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 45px;
            height: 45px;
            background: linear-gradient(45deg, #3fa9f5, #2d8cd6);
            color: #000000;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: bold;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 4px 15px rgba(63, 169, 245, 0.3);
            backdrop-filter: blur(10px);
        }

        .back-to-top-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(63, 169, 245, 0.5);
            background: linear-gradient(45deg, #63b7ff, #3fa9f5);
        }

        .back-to-top-btn.show {
            display: flex;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 60px, 0);
            }
            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        .forum-footer {
            text-align: center;
            padding: 2rem;
            color: rgba(255, 255, 255, 0.2);
            font-size: 0.8rem;
            border-top: 1px solid rgba(255, 255, 255, 0.03);
            margin-top: 2rem;
        }

        /* ============================================
           СТИЛИ МОДАЛЬНОГО ОКНА
           ============================================ */
        .auth-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 10001;
            align-items: center;
            justify-content: center;
        }

        .auth-modal.active {
            display: flex;
        }

        .auth-modal-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(15px);
        }

        .auth-modal-content {
            position: relative;
            background: linear-gradient(145deg, rgba(20, 20, 35, 0.98), rgba(10, 10, 20, 0.99));
            border: 1px solid rgba(63, 169, 245, 0.2);
            border-radius: 16px;
            padding: 2.5rem 2.5rem 2rem;
            max-width: 440px;
            width: 92%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
            z-index: 1;
        }

        .auth-modal-content::-webkit-scrollbar {
            width: 4px;
        }
        .auth-modal-content::-webkit-scrollbar-thumb {
            background: rgba(63, 169, 245, 0.3);
            border-radius: 2px;
        }

        .auth-modal-close {
            position: absolute;
            top: 12px;
            right: 16px;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.3);
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .auth-modal-close:hover {
            color: #fff;
            transform: rotate(90deg);
        }

        .auth-modal-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-bottom: 1.5rem;
        }
        .auth-modal-logo img {
            height: 52px;
            width: auto;
            max-width: 72px;
            object-fit: contain;
            display: block;
            animation: bearGlow 3s ease-in-out infinite;
        }

.auth-modal-logo:hover img { animation: glitchBear 0.4s steps(2, end) 1; }
        @keyframes neonPulse {
            0%, 100% { text-shadow: 0 0 5px rgba(63,169,245,0.6), 0 0 15px rgba(63,169,245,0.4), 0 0 30px rgba(63,169,245,0.2); filter: brightness(1); }
            50% { text-shadow: 0 0 8px rgba(63,169,245,0.9), 0 0 25px rgba(63,169,245,0.6), 0 0 50px rgba(63,169,245,0.4), 0 0 80px rgba(63,169,245,0.15); filter: brightness(1.15); }
        }
        @keyframes subtitleFlicker {
            0%, 45%, 55%, 75%, 100% { opacity: 0.7; }
            50% { opacity: 1; }
            70% { opacity: 0.85; }
        }
        @keyframes bearGlow {
            0%, 100% { filter: drop-shadow(0 0 6px rgba(63,169,245,0.35)); transform: scale(1); }
            50% { filter: drop-shadow(0 0 14px rgba(63,169,245,0.7)); transform: scale(1.02); }
        }
        @keyframes glitchText {
            0% { transform: translate(0); }
            20% { transform: translate(-2px, 1px); text-shadow: -2px 0 0 rgba(255,0,80,0.8), 2px 0 0 rgba(0,255,255,0.8); }
            40% { transform: translate(2px, -1px); text-shadow: 2px 0 0 rgba(255,0,80,0.8), -2px 0 0 rgba(0,255,255,0.8); }
            100% { transform: translate(0); }
        }
        @keyframes glitchBear {
            0%, 100% { transform: translate(0) scale(1); }
            20% { transform: translate(-3px, 1px) scale(1.02); }
            40% { transform: translate(3px, -1px) scale(1.02); }
        }

        .auth-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 1.8rem;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            padding: 4px;
            border: 1px solid rgba(255, 255, 255, 0.03);
        }
        .auth-tab {
            flex: 1;
            padding: 10px 16px;
            background: none;
            border: none;
            border-radius: 8px;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Orbitron', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .auth-tab:hover {
            color: rgba(255, 255, 255, 0.7);
        }
        .auth-tab.active {
            background: rgba(63, 169, 245, 0.15);
            color: #3fa9f5;
        }

        .auth-form-container {
            display: none;
        }
        .auth-form-container.active {
            display: block;
        }

        .auth-form-group {
            margin-bottom: 1.2rem;
        }
        .auth-form-group label {
            display: block;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.4rem;
            font-family: 'Orbitron', sans-serif;
        }
        .auth-form-group label i {
            color: rgba(63, 169, 245, 0.4);
            margin-right: 6px;
        }
        .auth-form-group input {
            width: 100%;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(63, 169, 245, 0.1);
            border-radius: 8px;
            color: #fff;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            font-family: 'Roboto', sans-serif;
        }
        .auth-form-group input:focus {
            outline: none;
            border-color: rgba(63, 169, 245, 0.4);
        }
        .auth-form-group input::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .auth-password-wrapper {
            position: relative;
        }
        .auth-password-wrapper input {
            padding-right: 44px;
        }
        .auth-password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: color 0.3s ease;
            font-size: 0.95rem;
            padding: 4px;
        }
        .auth-password-toggle:hover {
            color: #3fa9f5;
        }

        .auth-form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 1.2rem 0 1.5rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .auth-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            cursor: pointer;
        }
        .auth-checkbox input {
            display: none;
        }
        .auth-checkmark {
            width: 18px;
            height: 18px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(63, 169, 245, 0.15);
            border-radius: 4px;
            position: relative;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }
        .auth-checkbox input:checked + .auth-checkmark {
            background: #3fa9f5;
            border-color: #3fa9f5;
        }
        .auth-checkbox input:checked + .auth-checkmark::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 1px;
            width: 6px;
            height: 11px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }
        .auth-forgot {
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.8rem;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .auth-forgot:hover {
            color: #3fa9f5;
        }

        .auth-submit-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, rgba(63, 169, 245, 0.15), rgba(45, 140, 214, 0.05));
            border: 1px solid rgba(63, 169, 245, 0.25);
            border-radius: 8px;
            color: #fff;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        .auth-submit-btn:hover {
            background: rgba(63, 169, 245, 0.2);
            border-color: rgba(63, 169, 245, 0.4);
            transform: translateY(-2px);
        }
        .auth-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .auth-error {
            margin-top: 1rem;
            padding: 12px 16px;
            background: rgba(231, 76, 60, 0.08);
            border: 1px solid rgba(231, 76, 60, 0.2);
            border-radius: 8px;
            color: #ff6b6b;
            font-size: 0.85rem;
            display: none;
            align-items: center;
            gap: 10px;
        }
        .auth-error.show {
            display: flex;
        }
        .auth-error i {
            color: #e74c3c;
        }

        .auth-back-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 6px;
            font-family: 'Roboto', sans-serif;
        }
        .auth-back-btn:hover {
            color: #3fa9f5;
            background: rgba(63, 169, 245, 0.05);
        }

        @media (max-width: 480px) {
            .auth-modal-content {
                padding: 1.8rem 1.5rem 1.5rem;
                width: 95%;
            }
            .auth-modal-logo img {
                height: 44px;
            }
            
            .auth-tab {
                font-size: 0.7rem;
                padding: 8px 10px;
            }
            .auth-form-group input {
                font-size: 0.85rem;
                padding: 10px 14px;
            }
            .auth-form-options {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        /* ============================================
           ФУТЕР (из index.php)
           ============================================ */
        .cod-footer {
            background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, #0a0a0a 100%);
            color: #c9d1d9;
            border-top: 1px solid rgba(63, 169, 245, 0.15);
            position: relative;
            z-index: 4;
            padding: 0;
            margin-top: 0;
        }

        .cod-footer::before {
            content: '';
            position: absolute;
            top: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(63, 169, 245, 0.1) 15%,
                rgba(63, 169, 245, 0.4) 30%,
                rgba(63, 169, 245, 0.6) 50%,
                rgba(63, 169, 245, 0.4) 70%,
                rgba(63, 169, 245, 0.1) 85%,
                transparent 100%
            );
            box-shadow: 0 0 40px rgba(63, 169, 245, 0.15), 0 0 80px rgba(63, 169, 245, 0.05);
            z-index: 1;
        }

        .cod-footer::after {
            content: '';
            position: absolute;
            top: 1px;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(63, 169, 245, 0.05) 50%,
                transparent 100%
            );
            z-index: 1;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 4rem 2rem 2rem;
            position: relative;
            z-index: 2;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
            padding-bottom: 3rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-section h4 {
            font-family: 'Orbitron', sans-serif;
            color: rgba(63, 169, 245, 0.7);
            margin-bottom: 1.5rem;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            padding-bottom: 0.8rem;
        }

        .footer-section h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 30px;
            height: 2px;
            background: linear-gradient(90deg, rgba(63, 169, 245, 0.6), transparent);
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 1.2rem;
            font-family: 'Orbitron', sans-serif;
            font-weight: 900;
            font-size: 1.5rem;
            color: #3fa9f5;
            text-shadow: 0 0 30px rgba(63, 169, 245, 0.15);
        }

        .footer-logo img {
            filter: drop-shadow(0 0 10px rgba(63, 169, 245, 0.2));
        }

        .footer-section p {
            color: #8b949e;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section ul li {
            margin-bottom: 0.6rem;
        }

        .footer-section ul li a {
            color: #8b949e;
            text-decoration: none;
            transition: all 0.3s ease;
            display: block;
            padding: 0.2rem 0;
            font-size: 0.85rem;
            position: relative;
            padding-left: 0;
        }

        .footer-section ul li a::before {
            content: '›';
            position: absolute;
            left: -12px;
            opacity: 0;
            transition: all 0.3s ease;
            color: #3fa9f5;
        }

        .footer-section ul li a:hover {
            color: #3fa9f5;
            padding-left: 16px;
        }

        .footer-section ul li a:hover::before {
            opacity: 1;
            left: 0;
        }

        .social-links {
            display: flex;
            gap: 0.8rem;
            margin-top: 1rem;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.04);
            color: #8b949e;
            border-radius: 8px;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            text-decoration: none;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .social-links a:hover {
            background: rgba(63, 169, 245, 0.15);
            color: #3fa9f5;
            transform: translateY(-3px);
            border-color: rgba(63, 169, 245, 0.3);
            box-shadow: 0 8px 25px rgba(63, 169, 245, 0.15);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-legal {
            color: #6e7681;
            font-size: 0.75rem;
        }

        .footer-legal p {
            margin-bottom: 0.3rem;
        }

        .footer-links {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: #6e7681;
            text-decoration: none;
            font-size: 0.75rem;
            transition: color 0.3s ease;
            position: relative;
        }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 1px;
            background: #3fa9f5;
            transition: width 0.3s ease;
        }

        .footer-links a:hover {
            color: #3fa9f5;
        }

        .footer-links a:hover::after {
            width: 100%;
        }

        .footer-back-to-top {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6e7681;
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
            padding: 8px 16px;
            border-radius: 6px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            background: rgba(255, 255, 255, 0.02);
        }

        .footer-back-to-top:hover {
            color: #3fa9f5;
            border-color: rgba(63, 169, 245, 0.2);
            background: rgba(63, 169, 245, 0.05);
            transform: translateY(-2px);
        }

        .footer-back-to-top i {
            font-size: 0.9rem;
        }

        /* ============================================
           АДАПТИВНОСТЬ
           ============================================ */
        @media (max-width: 1200px) {
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
        }

        @media (max-width: 768px) {

.container {
                padding: 0 1rem;
            }

            .forum-section {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .section-info {
                flex-direction: column;
                text-align: center;
            }

            .section-stats,
            .section-last-activity {
                text-align: center;
            }

            .category-header {
                flex-direction: column;
                text-align: center;
            }

            .category-stats {
                margin-left: 0;
                text-align: center;
            }

            .topics-grid {
                grid-template-columns: 1fr;
            }

            .topic-notification {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }

            .topic-meta {
                justify-content: center;
            }

            .forum-stats {
                grid-template-columns: repeat(2, 1fr);
            }

            .admin-actions {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            
            .footer-bottom {
                flex-direction: column;
                text-align: center;
            }
            
            .footer-links {
                justify-content: center;
            }
            
            .footer-section h4::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .footer-section ul li a {
                text-align: center;
            }
            
            .footer-section ul li a::before {
                display: none;
            }
            
            .footer-section ul li a:hover {
                padding-left: 0;
            }
            
            .social-links {
                justify-content: center;
            }
            
            .footer-logo {
                justify-content: center;
            }
            
            .footer-section p {
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .forum-stats {
                grid-template-columns: 1fr;
            }

}
        
/* ============================================
   FORUM MODALS
   ============================================ */
.forum-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.forum-modal.active { display: flex; }

.forum-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modalFadeIn 0.25s ease;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.forum-modal-dialog {
    position: relative;
    background: linear-gradient(145deg, rgba(20,20,35,0.98), rgba(10,10,20,0.99));
    border: 1px solid rgba(63, 169, 245, 0.2);
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.forum-modal-dialog--narrow { max-width: 440px; }

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.forum-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.forum-modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #3fa9f5;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.forum-modal-title--danger { color: #e74c3c; }

.forum-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.forum-modal-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    transform: rotate(90deg);
}

.forum-modal-form {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.forum-modal-form .form-group { margin-bottom: 1.2rem; }
.forum-modal-form label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.forum-modal-form input[type="text"],
.forum-modal-form select,
.forum-modal-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(63, 169, 245, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease;
}
.forum-modal-form input:focus,
.forum-modal-form select:focus,
.forum-modal-form textarea:focus {
    outline: none;
    border-color: #3fa9f5;
    box-shadow: 0 0 20px rgba(63, 169, 245, 0.15);
}
.forum-modal-form select option { background: #1a1a2e; color: #fff; }

.forum-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.modal-error {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 0.85rem;
    display: none;
}
.modal-error.show { display: block; }

.delete-confirm-body {
    padding: 1rem 0;
}

@media (max-width: 600px) {
    .forum-modal { padding: 0.8rem; }
    .forum-modal-dialog { max-height: 95vh; border-radius: 12px; }
    .forum-modal-header { padding: 1rem 1.2rem; }
    .forum-modal-title { font-size: 1rem; }
    .forum-modal-form { padding: 1.2rem; }
    .forum-modal-actions { flex-direction: column-reverse; }
    .forum-modal-actions .btn { width: 100%; justify-content: center; }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(63,169,245,0.15);
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    min-width: 42px;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
}
.pagination a:hover {
    border-color: #3fa9f5;
    color: #3fa9f5;
    background: rgba(63,169,245,0.05);
}
.pagination .active {
    background: rgba(63,169,245,0.15);
    color: #3fa9f5;
    border-color: rgba(63,169,245,0.4);
    box-shadow: 0 0 15px rgba(63,169,245,0.2);
}
.pagination .dots {
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: default;
}

/* ============================================
   EDITOR TOOLBAR — FIX LAYOUT
   ============================================ */
.editor-toolbar,
.editor-wrapper .editor-toolbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(63, 169, 245, 0.15) !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.editor-toolbar .toolbar-group,
.editor-wrapper .toolbar-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.25rem !important;
    padding-right: 0.5rem !important;
    margin-right: 0.5rem !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.editor-toolbar .toolbar-group:last-child {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.editor-toolbar button,
.editor-toolbar .smile-btn,
.editor-toolbar .upload-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-size: 0.85rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: 'Roboto', sans-serif !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.editor-toolbar button:hover,
.editor-toolbar .smile-btn:hover,
.editor-toolbar .upload-label:hover {
    background: rgba(63, 169, 245, 0.12) !important;
    border-color: rgba(63, 169, 245, 0.3) !important;
    color: #3fa9f5 !important;
    transform: translateY(-1px) !important;
}

.editor-toolbar .upload-label {
    gap: 4px !important;
    padding: 0 10px !important;
}

.editor-toolbar select {
    display: inline-block !important;
    width: auto !important;
    min-width: 110px !important;
    height: 32px !important;
    padding: 0 28px 0 10px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.75rem !important;
    font-family: 'Roboto', sans-serif !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fa9f5' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 6px center !important;
    background-size: 14px !important;
}

.editor-toolbar select:hover {
    border-color: rgba(63, 169, 245, 0.3) !important;
}

.editor-toolbar select option {
    background: #1a1a2e !important;
    color: #fff !important;
}

html[data-theme="light"] .editor-toolbar select option {
    background: #ffffff !important;
    color: #1a2332 !important;
}

.editor-toolbar input[type="color"] {
    width: 40px !important;
    height: 32px !important;
    padding: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.editor-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0 !important;
}
.editor-toolbar input[type="color"]::-webkit-color-swatch {
    border: none !important;
    border-radius: 4px !important;
}

/* Light theme — forum surfaces + text (loads after common.css) */
html[data-theme="light"] body {
    background: transparent;
    color: var(--theme-text, #1a2332);
}

html[data-theme="light"] .animated-bg {
    background: var(--theme-bg, #e8eef5);
}

html[data-theme="light"] .content-section {
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

html[data-theme="light"] .content-layer {
    background: rgba(255, 255, 255, 0.42) !important;
    border-color: rgba(45, 140, 214, 0.28) !important;
    color: #1a2332 !important;
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[data-theme="light"] .forum-container,
html[data-theme="light"] .forum-section,
html[data-theme="light"] .forum-category,
html[data-theme="light"] .topic-item,
html[data-theme="light"] .post-item,
html[data-theme="light"] .forum-sidebar,
html[data-theme="light"] .forum-stats-box,
html[data-theme="light"] .reply-box,
html[data-theme="light"] .create-topic-form,
html[data-theme="light"] .forum-table,
html[data-theme="light"] .section-block,
html[data-theme="light"] .forum-modal,
html[data-theme="light"] .forum-modal-content,
html[data-theme="light"] .editor-toolbar,
html[data-theme="light"] .latest-topics-section {
    background: #ffffff !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
    color: #1a2332;
    box-shadow: 0 10px 28px rgba(26, 48, 72, 0.1);
}

/* Nested chrome inside content-layer — text only, no nested cards */
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .content-layer .empty-state,
html[data-theme="light"] .content-layer .forum-empty {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

html[data-theme="light"] .forum-stat .stat-label,
html[data-theme="light"] .category-description,
html[data-theme="light"] .category-stats,
html[data-theme="light"] .section-details p,
html[data-theme="light"] .section-stats,
html[data-theme="light"] .section-last-activity,
html[data-theme="light"] .topic-meta,
html[data-theme="light"] .post-meta,
html[data-theme="light"] .breadcrumb,
html[data-theme="light"] .breadcrumbs,
html[data-theme="light"] .forum-empty,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .section-description,
html[data-theme="light"] .topic-stats,
html[data-theme="light"] .topic-last-post {
    color: #5a6a7c !important;
}

html[data-theme="light"] .topics-table th {
    color: #6a7a8c !important;
    border-bottom-color: rgba(26, 35, 50, 0.12) !important;
}

html[data-theme="light"] .topics-table td {
    border-bottom-color: rgba(26, 35, 50, 0.08) !important;
}

html[data-theme="light"] .topics-table tr:hover td {
    background: rgba(63, 169, 245, 0.04) !important;
}

html[data-theme="light"] .topic-title-cell .topic-title-link,
html[data-theme="light"] .section-title {
    color: #1568a8 !important;
}

html[data-theme="light"] .empty-state i {
    color: rgba(45, 140, 214, 0.45) !important;
}

html[data-theme="light"] .empty-state h3 {
    color: #1a2332 !important;
}

html[data-theme="light"] .btn-secondary {
    background: #ffffff !important;
    color: #1a5f96 !important;
    border: 1px solid rgba(45, 140, 214, 0.35) !important;
}

html[data-theme="light"] .section-details h3 a,
html[data-theme="light"] .section-last-activity .last-topic a,
html[data-theme="light"] .topic-title a,
html[data-theme="light"] .post-content,
html[data-theme="light"] .post-author,
html[data-theme="light"] .topic-item,
html[data-theme="light"] .post-item {
    color: #1a2332 !important;
}

html[data-theme="light"] .forum-container a,
html[data-theme="light"] .topic-item a,
html[data-theme="light"] .post-item a,
html[data-theme="light"] .breadcrumb a {
    color: #1a5f96 !important;
}

html[data-theme="light"] .forum-section:hover {
    background: #f4f7fb !important;
}

html[data-theme="light"] .category-header,
html[data-theme="light"] .forum-section {
    border-color: rgba(26, 35, 50, 0.1) !important;
}

html[data-theme="light"] .editor-toolbar select option,
html[data-theme="light"] .forum-modal-form select option {
    background: #f4f7fb !important;
    color: #1a2332 !important;
}

html[data-theme="light"] .forum-modal-form input,
html[data-theme="light"] .forum-modal-form textarea,
html[data-theme="light"] .forum-modal-form select,
html[data-theme="light"] .reply-box textarea,
html[data-theme="light"] .create-topic-form input,
html[data-theme="light"] .create-topic-form textarea {
    background: #ffffff !important;
    color: #1a2332 !important;
    border-color: rgba(45, 140, 214, 0.32) !important;
}