        :root {
            --accent: #00d2ff; --accent-glow: rgba(0, 210, 255, 0.15);
            --bg-master: #010102; --bg-obsidian: rgba(12, 12, 16, 0.6); --bg-glass: rgba(10, 10, 15, 0.7);
            --border: rgba(255, 255, 255, 0.06); --border-highlight: rgba(255, 255, 255, 0.15); 
            --text-main: #ffffff; --text-dim: rgba(255, 255, 255, 0.45);
            --success: #2ecc71; --error: #ff4757; --gold: #ffd700;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
        html { scroll-behavior: smooth; }
        body { background: var(--bg-master); color: var(--text-main); font-family: 'Montserrat', sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
        ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: var(--bg-master); } ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
        .bg-grid { position: fixed; inset: 0; z-index: -4; pointer-events: none; background-image: linear-gradient(to right, rgba(255,255,255,0.015) 1px, rgba(255,255,255,0) 1px), linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, rgba(255,255,255,0) 1px); background-size: 50px 50px; -webkit-mask-image: radial-gradient(ellipse at top, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 80%); mask-image: radial-gradient(ellipse at top, rgba(255,255,255,1) 20%, rgba(255,255,255,0) 80%); }
        #magic-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
        #preloader { position: fixed; inset: 0; background: var(--bg-master); z-index: 1000000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
        .cube-wrapper { perspective: 800px; margin-bottom: 40px; }
        .cube { width: 50px; height: 50px; position: relative; transform-style: preserve-3d; animation: spinCube 4s infinite linear; }
        .cube-face { position: absolute; width: 50px; height: 50px; background: rgba(255,255,255,0.02); border: 1px solid var(--accent); box-shadow: 0 0 10px var(--accent-glow) inset, 0 0 15px var(--accent-glow); }
        .cube-face.front { transform: translateZ(25px); } .cube-face.back { transform: rotateY(180deg) translateZ(25px); }
        .cube-face.right { transform: rotateY(90deg) translateZ(25px); } .cube-face.left { transform: rotateY(-90deg) translateZ(25px); }
        .cube-face.top { transform: rotateX(90deg) translateZ(25px); } .cube-face.bottom { transform: rotateX(-90deg) translateZ(25px); }
        @keyframes spinCube { 0% { transform: rotateX(0deg) rotateY(0deg); } 50% { transform: rotateX(180deg) rotateY(180deg); } 100% { transform: rotateX(360deg) rotateY(360deg); } }
        .loader-content { width: 300px; display: flex; flex-direction: column; gap: 15px; }
        .loader-bar-container { width: 100%; height: 2px; background: rgba(255,255,255,0.05); overflow: hidden; position: relative; border-radius: 2px; }
        .loader-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s ease; box-shadow: 0 0 10px var(--accent); }
        .loader-info { display: flex; justify-content: space-between; align-items: center; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-dim); font-weight: 700; }
        .loader-perc { color: #fff; font-weight: 800; font-family: 'Outfit', sans-serif; font-size: 14px; }
        header { position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 80px; background: var(--bg-glass); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 1000; display: flex; justify-content: center; transition: background 0.4s ease; }
        .nav-container { width: 100%; max-width: 1400px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
        .logo { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 900; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: -0.5px; z-index: 4001; }
        .logo span { color: var(--accent); }
        .nav-links { display: flex; gap: 35px; align-items: center; }
        .nav-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s ease; position: relative; display: flex; align-items: center; gap: 6px; }
        .nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0%; height: 2px; background: var(--accent); transition: 0.3s ease; box-shadow: 0 0 10px var(--accent); }
        .nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px var(--accent-glow); }
        .nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
        .header-icons { display: flex; align-items: center; gap: 20px; border-left: 1px solid var(--border); padding-left: 20px; margin-left: 10px; z-index: 4001;}
        .icon-btn { color: var(--text-dim); cursor: pointer; transition: 0.3s; position: relative; text-decoration: none; display: flex; align-items: center; justify-content: center;}
        .icon-btn:hover { color: #fff; transform: translateY(-2px); }
        .icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
        .icon-discord:hover { color: #5865F2; filter: drop-shadow(0 0 8px rgba(88,101,242,0.4)); }
        .notification-dot { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--error); border-radius: 50%; border: 2px solid var(--bg-glass); display: none; }
        .notif-dropdown { position: absolute; top: 180%; right: -10px; width: 300px; background: var(--bg-obsidian); backdrop-filter: blur(25px); border: 1px solid var(--border); border-top: 1px solid var(--border-highlight); border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); opacity: 0; visibility: hidden; transform: translateY(15px); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); z-index: 1100; cursor: default; overflow: hidden; }
        .notif-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
        .notif-header { padding: 15px 20px; border-bottom: 1px solid var(--border); font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2);}
        .notif-body { padding: 30px 20px; text-align: center; }
        .notif-body.has-items { padding: 0; text-align: left; }
        .notif-empty { color: var(--text-dim); font-size: 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 10px;}
        .notif-empty svg { width: 32px; height: 32px; fill: var(--border); }
        .notif-list { display: flex; flex-direction: column; }
        .notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); text-decoration: none; transition: 0.3s; }
        .notif-item:hover { background: rgba(255,255,255,0.03); }
        .notif-item:last-child { border-bottom: none; }
        .notif-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 4px; }
        .notif-text { font-size: 11px; color: var(--text-dim); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .notif-time { font-size: 9px; color: rgba(255,255,255,0.3); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
        .notif-pagination { display: flex; justify-content: center; gap: 6px; padding: 12px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border); }
        .notif-page-btn { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: var(--text-dim); width: 26px; height: 26px; border-radius: 6px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 11px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
        .notif-page-btn:hover { border-color: var(--text-dim); color: #fff; }
        .notif-page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
        .btn-login { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: #ccc; padding: 12px 26px; border-radius: 12px; font-family: 'Outfit', sans-serif; font-weight: 800; text-transform: uppercase; text-decoration: none; transition: 0.3s ease; font-size: 13px; letter-spacing: 1px; display: inline-block; cursor: pointer; margin-left: 20px;}
        .btn-login:hover { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-2px); }
        .user-menu { position: relative; margin-left: 20px;}
        .user-trigger { display: flex; align-items: center; gap: 15px; cursor: pointer; padding: 6px 12px; border-radius: 12px; transition: 0.3s ease; border: 1px solid transparent; }
        .user-trigger:hover { background: rgba(255,255,255,0.03); border-color: var(--border); }
        .user-avatar-wrap { position: relative; width: 42px; height: 42px; }
        .user-avatar { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; background: var(--bg-master); transition: 0.3s ease; }
        .user-trigger:hover .user-avatar { border-color: var(--home-role-color); box-shadow: 0 0 10px rgba(var(--home-role-rgb), 0.4); }
        .user-name { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 15px; color: #fff; }
        .user-rank { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--home-role-color); text-shadow: 0 0 10px rgba(var(--home-role-rgb), 0.5); }
        .profile-dropdown { position: absolute; top: 120%; right: 0; width: 280px; background: var(--bg-obsidian); backdrop-filter: blur(25px); border: 1px solid var(--border); border-top: 1px solid var(--border-highlight); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.9); opacity: 0; visibility: hidden; transform: translateY(15px); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); z-index: 1100; overflow: hidden; }
        .profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 15px; background: rgba(0, 0, 0, 0.2); }
        .dh-avatar { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--home-role-color); object-fit: cover; background: var(--bg-master); }
        .dh-info h4 { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; margin-bottom: 4px; color: #fff;}
        .dh-info span { font-size: 10px; color: var(--home-online-color); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 5px; }
        .dh-info span::before { content: ''; width: 6px; height: 6px; background: var(--home-online-dot); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px var(--home-online-dot); }
        .mc-stats-grid { display: flex; justify-content: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.15); flex-wrap: wrap;}
        .mc-stat-box { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 30%; justify-content: center;}
        .mc-stat-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); }
        .mc-stat-icon.gold { color: var(--gold); }
        .mc-stat-icon svg { width: 14px; height: 14px; fill: currentColor; }
        .mc-stat-info { display: flex; flex-direction: column; justify-content: center; }
        .mc-stat-val { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; color: #fff; line-height: 1; }
        .mc-stat-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 2px; }
        .dropdown-actions { padding: 10px; background: rgba(10, 10, 14, 0.9); display: flex; flex-direction: column; gap: 2px; }
        .dropdown-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; text-align: left; background: transparent; border: none; color: #ccc; font-weight: 600; font-size: 13px; border-radius: 8px; cursor: pointer; transition: 0.2s ease; text-decoration: none; }
        .dropdown-btn svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.7; transition: 0.2s; }
        .dropdown-btn:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 20px; }
        .dropdown-btn:hover svg { opacity: 1; color: var(--accent); }
        .dropdown-btn.admin-btn:hover svg { color: var(--gold); }
        .dropdown-btn.logout-btn:hover { background: rgba(255, 71, 87, 0.1); color: var(--error); }
        .dropdown-btn.logout-btn:hover svg { color: var(--error); }
        
        .hero { height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; position: relative; text-align: center; padding: 0 20px; }
        .hero-content { position: relative; z-index: 10; max-width: 900px; transform: translateY(-5%); }
        .hero-badge { display: inline-block; padding: 8px 24px; background: rgba(0,210,255,0.05); border: 1px solid rgba(0, 210, 255, 0.3); border-radius: 50px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 30px; backdrop-filter: blur(5px);}
        .hero h1 { font-family: 'Outfit', sans-serif; font-size: 52px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; margin-bottom: 25px; text-transform: uppercase; color: #fff; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
        .hero p { font-size: 18px; color: var(--text-dim); line-height: 1.7; margin-bottom: 50px; font-weight: 500; max-width: 650px; margin-left: auto; margin-right: auto; text-shadow: 0 5px 15px rgba(0,0,0,0.8);}
        .hero-actions { display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap;}
        .btn-primary { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: #ccc; padding: 18px 45px; border-radius: 14px; font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: 0.3s ease; display: inline-block; cursor: pointer; backdrop-filter: blur(10px);}
        .btn-primary:hover { transform: translateY(-3px); background: var(--accent); border-color: var(--accent); color: #000; box-shadow: 0 10px 30px var(--accent-glow); }
        .ip-box { display: flex; align-items: center; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 8px 25px; cursor: pointer; transition: 0.3s ease; backdrop-filter: blur(10px); }
        .ip-box:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
        .ip-text { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; margin-right: 25px; }
        .ip-copy { background: rgba(255,255,255,0.05); padding: 14px 25px; border-radius: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); transition: 0.3s ease; }
        .ip-box:hover .ip-copy { background: var(--accent); color: #000; }
        
        /* ИНДИКАТОР ПРОКРУТКИ */
        .scroll-down-hint {
            position: absolute;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            color: var(--text-dim);
            cursor: pointer;
            transition: 0.3s ease;
            animation: bounce 2s infinite;
            z-index: 20;
        }
        .scroll-down-hint:hover { color: #fff; }
        .scroll-down-hint span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
        .scroll-down-hint svg { width: 24px; height: 24px; fill: currentColor; }
        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
            40% { transform: translateY(-10px) translateX(-50%); }
            60% { transform: translateY(-5px) translateX(-50%); }
        }

        .section-separator { display: flex; align-items: center; justify-content: center; max-width: 800px; margin: 0 auto 80px auto; gap: 20px; position: relative; z-index: 5; }
        .section-separator .line { flex: 1; height: 1px; }
        .section-separator .line.left { background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4)); }
        .section-separator .line.right { background: linear-gradient(270deg, transparent, rgba(0, 210, 255, 0.4)); }
        .section-separator .icon { color: var(--accent); font-size: 24px; text-shadow: 0 0 15px var(--accent-glow); user-select: none; }
        .main-container { max-width: 1480px; margin: 0 auto 100px auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
        .news-wrapper { background: linear-gradient(180deg, rgba(22, 22, 30, 0.5) 0%, rgba(10, 10, 15, 0.8) 100%); backdrop-filter: blur(25px); border: 1px solid var(--border); border-top: 1px solid var(--border-highlight); border-radius: 40px; padding: 40px; box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 40px rgba(0, 210, 255, 0.02); }
        .section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px; }
        .section-title { display: flex; align-items: center; gap: 15px; font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 900; letter-spacing: -1px; text-transform: uppercase; color: #fff; }
        .section-title span { color: var(--accent); }
        .section-title svg { width: 24px; height: 24px; fill: var(--accent); flex-shrink: 0; }
        .btn-admin { background: rgba(255, 215, 0, 0.05); border: 1px solid rgba(255, 215, 0, 0.3); color: var(--gold); padding: 12px 24px; border-radius: 12px; font-family: 'Outfit', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; transition: 0.3s ease; display: flex; align-items: center; gap: 8px; font-size: 12px; }
        .btn-admin:hover { background: var(--gold); color: #000; box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2); transform: translateY(-2px); border-color: var(--gold); }
        .btn-admin svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
        .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
        .news-card { background: linear-gradient(145deg, rgba(25, 25, 32, 0.8), rgba(15, 15, 20, 0.9)); border: 1px solid var(--border); border-top: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; display: flex; flex-direction: column; cursor: pointer; transition: 0.4s ease; position: relative; overflow: hidden; }
        .news-card:hover { transform: translateY(-4px); border-color: var(--border-highlight); box-shadow: 0 15px 30px rgba(0,0,0,0.8); background: linear-gradient(145deg, rgba(30, 30, 38, 0.9), rgba(20, 20, 25, 1)); }
        .nc-image-wrap { width: 100%; height: 140px; position: relative; z-index: 1; overflow: hidden; border-bottom: 1px solid var(--border); }
        .nc-image { width: 100%; height: 100%; } 
        .nc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; } 
        .news-card:hover .nc-image img { transform: scale(1.05); }
        .nc-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); border-radius: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #fff; border-bottom: 2px solid var(--tag-color); z-index: 5; transition: 0.3s; }
        .nc-tag:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
        .btn-delete-news { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,71,87,0.3); border-radius: 8px; padding: 6px; cursor: pointer; transition: 0.3s ease; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(10px); z-index: 10; color: var(--error); }
        .btn-delete-news svg { width: 12px; height: 12px; fill: currentColor; }
        .btn-delete-news:hover { background: var(--error); border-color: var(--error); transform: scale(1.1); color: #fff; }
        .nc-content { padding: 15px 20px; display: flex; flex-direction: column; flex: 1; z-index: 10; } 
        .nc-date { font-size: 10px; color: var(--text-dim); font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 1px; } 
        .nc-date::before { content: ''; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; box-shadow: 0 0 10px var(--accent-glow);} 
        .nc-title { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; color: #fff; transition: 0.3s; letter-spacing: -0.5px; } 
        .news-card:hover .nc-title { color: var(--accent); } 
        .nc-text { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; word-break: break-word; } 
        .nc-footer { margin-top: auto; font-size: 10px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; transition: 0.3s; } 
        .nc-footer-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
        .nc-footer svg { width: 12px; height: 12px; fill: currentColor; transition: 0.3s ease; transform: translateX(0); } 
        .news-card:hover .nc-footer { color: #fff; }
        .news-card:hover .nc-footer-right svg { transform: translateX(4px); color: var(--accent); }
        .sidebar-right { display: flex; flex-direction: column; gap: 30px; position: sticky; top: 100px; }
        .leaderboard-box { background: var(--bg-obsidian); border: 1px solid var(--border); border-top: 1px solid var(--border-highlight); border-radius: 24px; padding: 25px; backdrop-filter: blur(25px); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
        .lb-header { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -0.5px; margin-bottom: 25px; }
        .lb-header svg { width: 22px; height: 22px; fill: var(--error); filter: drop-shadow(0 0 8px rgba(255,71,87,0.5)); }
        .lb-list { display: flex; flex-direction: column; gap: 12px; }
        .lb-item { display: flex; align-items: center; gap: 15px; padding: 12px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.02); border-radius: 16px; transition: 0.3s; text-decoration: none; }
        .lb-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); transform: translateX(5px); }
        .lb-rank { width: 24px; font-family: 'Outfit'; font-size: 16px; font-weight: 900; color: var(--text-dim); text-align: center; }
        .lb-item:nth-child(1) .lb-rank { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
        .lb-item:nth-child(2) .lb-rank { color: #bdc3c7; text-shadow: 0 0 10px rgba(189,195,199,0.5); }
        .lb-item:nth-child(3) .lb-rank { color: #cd7f32; text-shadow: 0 0 10px rgba(205,127,50,0.5); }
        .lb-avatar-wrap { position: relative; width: 36px; height: 36px; }
        .lb-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
        .lb-badge { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 50%; background: #111; border: 1px solid var(--ach-color); color: var(--ach-color); font-size: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit'; font-weight: 900; }
        .lb-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
        .lb-name { font-size: 13px; font-weight: 800; color: #fff; }
        .lb-score { font-size: 11px; color: var(--text-dim); font-weight: 600; }
        .lb-score span { color: var(--error); font-weight: 800; }
        .sidebar-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); z-index: 2999; opacity: 0; visibility: hidden; transition: 0.4s ease; }
        .sidebar-overlay.show { opacity: 1; visibility: visible; }
        .news-sidebar { position: fixed; top: 0; right: 0; width: 100%; max-width: 500px; height: 100vh; background: rgba(10, 10, 14, 0.98); border-left: 1px solid var(--border); z-index: 3000; transform: translateX(100%); transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); padding: 40px; display: flex; flex-direction: column; box-shadow: -30px 0 60px rgba(0,0,0,0.9); }
        .news-sidebar.show { transform: translateX(0); }
        .sidebar-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; border-bottom: 1px solid var(--border); margin-bottom: 30px; flex-shrink: 0; }
        .sidebar-header h2 { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
        .sidebar-close { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s ease; }
        .sidebar-close:hover { color: #fff; border-color: #fff; transform: rotate(90deg); }
        .sidebar-close svg { width: 22px; height: 22px; fill: currentColor; }
        .sidebar-content { overflow-y: auto; flex: 1; padding-right: 10px; scroll-behavior: smooth; }
        .sidebar-content::-webkit-scrollbar { width: 4px; }
        .ns-cover { width: 100%; height: 240px; border-radius: 16px; overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border); position: relative; }
        .ns-cover img { width: 100%; height: 100%; object-fit: cover; }
        .ns-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
        .ns-tag { padding: 6px 12px; background: rgba(255,255,255,0.05); border-radius: 8px; font-size: 10px; font-weight: 800; text-transform: uppercase; color: #fff; border-bottom: 2px solid var(--tag-color); }
        .ns-date { font-size: 12px; color: var(--text-dim); font-weight: 600; display: flex; align-items: center; gap: 8px; }
        .ns-date::before { content: ''; width: 4px; height: 4px; background: var(--text-dim); border-radius: 50%; display: block; }
        .ns-title { font-family: 'Outfit', sans-serif; font-size: 30px; font-weight: 900; line-height: 1.2; margin-bottom: 25px; letter-spacing: -1px; color: #fff; }
        .ns-text { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.7; font-weight: 500; white-space: pre-wrap; word-break: break-word; }
        .comments-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
        .comments-title { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
        .comments-title svg { width: 22px; height: 22px; fill: var(--accent); flex-shrink: 0; display: block; }
        .input-group { margin-top: 25px; position: relative; }
        .input-group textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 16px 20px 30px 20px; border-radius: 12px; color: #fff; transition: 0.3s ease; font-size: 14px; font-family: 'Montserrat', sans-serif; resize: none; height: 100px; }
        .input-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }
        .char-counter { position: absolute; bottom: 12px; right: 15px; font-size: 10px; font-weight: 800; color: var(--text-dim); pointer-events: none; transition: 0.3s; }
        .btn-submit { width: 100%; padding: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; color: #ccc; font-family: 'Outfit'; font-weight: 900; font-size: 13px; cursor: pointer; transition: 0.3s ease; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 15px;}
        .btn-submit:hover:not(:disabled) { background: var(--accent); color: #000; border-color: var(--accent); transform: translateY(-2px); }
        .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
        .comment-form-box { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 30px; }
        .comment-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 15px; transition: 0.3s; }
        .comment-item:hover { border-color: var(--border-highlight); background: rgba(255,255,255,0.05); }
        .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; }
        .c-avatar-wrap { position: relative; width: 32px; height: 32px; }
        .c-avatar { width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--border); object-fit: cover; background: var(--bg-master); transition: 0.3s ease; }
        .c-badge { position: absolute; bottom: -4px; right: -4px; width: 16px; height: 16px; border-radius: 50%; background: #111; border: 1px solid var(--ach-color); color: var(--ach-color); font-size: 8px; display: flex; align-items: center; justify-content: center; font-family: 'Outfit'; font-weight: 900; z-index: 5;}
        .c-role-badge { padding: 4px 8px; border-radius: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-left: 8px; border: 1px solid currentColor;}
        .comment-date { font-size: 10px; color: var(--text-dim); }
        .comment-body-wrap { position: relative; }
        .comment-body { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.6; word-break: break-word; overflow: hidden; transition: max-height 0.4s ease; max-height: none; }
        .comment-body blockquote { border-left: 3px solid var(--accent); padding: 10px 15px; margin: 0 0 10px 0; background: rgba(0,0,0,0.3); border-radius: 0 8px 8px 0; color: var(--text-dim); font-style: italic; font-size: 12px; }
        .read-more-btn { display: none; color: var(--accent); font-size: 10px; font-weight: 800; cursor: pointer; margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
        .read-more-btn:hover { color: #fff; }
        .comment-actions { display: flex; gap: 15px; margin-top: 15px; }
        .comment-action-btn { background: transparent; border: none; font-size: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 5px; color: var(--text-dim); }
        .comment-action-btn:hover { color: #fff; }
        .comment-action-btn.edit:hover { color: var(--accent); }
        .comment-action-btn.delete { color: rgba(255,71,87,0.5); }
        .comment-action-btn.delete:hover { color: var(--error); }
        .comments-placeholder { text-align: center; padding: 30px; color: var(--text-dim); font-size: 13px; font-weight: 600; border: 1px dashed var(--border); border-radius: 12px; margin-bottom: 20px; }
        .pagination-container { display: flex; justify-content: center; gap: 8px; margin-top: 20px; margin-bottom: 20px; flex-wrap: wrap;}
        .page-btn { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: var(--text-dim); width: 32px; height: 32px; border-radius: 8px; font-family: 'Outfit'; font-weight: 800; font-size: 13px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
        .page-btn:hover { border-color: var(--text-dim); color: #fff; }
        .page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); }
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.4s ease; z-index: 6000;}
        .modal-overlay.show { opacity: 1; visibility: visible; }
        .modal-box { width: 100%; max-width: 450px; background: rgba(10,10,14,0.95); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: 0 40px 100px rgba(0,0,0,0.9); transform: scale(0.95); transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
        .modal-overlay.show .modal-box { transform: scale(1); }
        .modal-title { font-family: 'Outfit'; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 20px; text-align: center; }
        .modal-buttons { display: flex; gap: 15px; margin-top: 25px; }
        #toast-box { position: fixed; bottom: 40px; right: 40px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; } 
        .magic-msg { padding: 18px 25px; background: rgba(10, 10, 15, 0.95); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; backdrop-filter: blur(30px); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,0.8); display: flex; align-items: center; gap: 15px; animation: slideUpToast 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards; } 
        .magic-msg.success { border-left-color: var(--success); }
        .magic-msg svg { width: 20px; height: 20px; flex-shrink: 0; }
        .magic-msg.success svg { fill: var(--success); }
        .magic-msg.error { border-left-color: var(--error); }
        .magic-msg.error svg { fill: var(--error); }
        @keyframes slideUpToast { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .custom-context-menu { 
            position: fixed; z-index: 10000; width: 220px; 
            background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); 
            border: 1px solid var(--border); border-top: 1px solid rgba(255,255,255,0.15); border-radius: 16px; 
            padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05); 
            opacity: 0; visibility: hidden; transform: scale(0.95); 
            transition: opacity 0.2s, transform 0.2s, visibility 0.2s; transform-origin: top left; 
        }
        .custom-context-menu.active { opacity: 1; visibility: visible; transform: scale(1); }
        .cm-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-dim); font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 10px; transition: 0.2s; text-decoration: none; }
        .cm-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
        .cm-item svg { width: 16px; height: 16px; fill: currentColor; }
        .cm-divider { height: 1px; background: var(--border); margin: 6px 0; }
        .cm-item.cm-accent:hover { background: rgba(0, 210, 255, 0.1); color: var(--accent); }
        #scrollTopBtn {
            position: fixed; bottom: 40px; left: 40px; width: 50px; height: 50px;
            background: rgba(10, 10, 15, 0.8); border: 1px solid var(--border); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; color: var(--text-dim);
            cursor: pointer; opacity: 0; visibility: hidden; transition: 0.4s ease; z-index: 1000;
            backdrop-filter: blur(10px); box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        }
        #scrollTopBtn.show { opacity: 1; visibility: visible; transform: translateY(0); }
        #scrollTopBtn:hover { background: var(--accent); color: #000; border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-glow); transform: translateY(-5px); }
        #scrollTopBtn svg { width: 24px; height: 24px; fill: currentColor; }

        /* ─── КНОПКА ГАМБУРГЕРА (ДЛЯ МОБИЛОК) ─── */
        .mobile-nav-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-between;
            width: 24px;
            height: 18px;
            background: transparent;
            border: none;
            cursor: pointer;
            z-index: 5000;
        }
        .mobile-nav-toggle .line {
            width: 100%;
            height: 2px;
            background-color: #fff;
            transition: 0.3s ease;
            border-radius: 2px;
        }
        .mobile-nav-toggle.open .line:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--accent); }
        .mobile-nav-toggle.open .line:nth-child(2) { opacity: 0; }
        .mobile-nav-toggle.open .line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--accent); }

        /* ВЫЕЗЖАЮЩАЯ МОБИЛЬНАЯ ПАНЕЛЬ НАВИГАЦИИ */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: rgba(5, 5, 8, 0.98);
            backdrop-filter: blur(30px);
            z-index: 4500;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 25px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-20px);
            transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
        }
        .mobile-menu.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .mobile-menu a {
            font-family: 'Outfit', sans-serif;
            font-size: 22px;
            font-weight: 800;
            color: var(--text-dim);
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: 0.3s ease;
        }
        .mobile-menu a:hover, .mobile-menu a.active {
            color: #fff;
            text-shadow: 0 0 15px var(--accent);
        }

        @media (max-width: 1100px) {
            .main-container { 
                grid-template-columns: 1fr !important; 
                padding: 0 16px !important; 
                gap: 24px !important;
            }
            .nav-links { 
                display: none !important; 
            }
            .mobile-nav-toggle {
                display: flex !important;
                margin-left: auto;
            }
            header {
                height: 70px !important;
            }
            .nav-container {
                padding: 0 20px !important;
            }
            .hero {
                min-height: 500px !important;
                height: auto !important;
                padding: 100px 16px 60px 16px !important;
            }
            .hero h1 { 
                font-size: 32px !important; 
                line-height: 1.3 !important;
                margin-bottom: 16px !important;
            } 
            .hero p {
                font-size: 14px !important;
                margin-bottom: 32px !important;
            }
            .hero-actions { 
                flex-direction: column !important; 
                width: 100% !important; 
                gap: 12px !important;
            } 
            .btn-primary, .ip-box { 
                width: 100% !important; 
                justify-content: center !important; 
                padding: 14px 20px !important;
            } 
            .ip-text {
                margin-right: auto !important;
            }
            .news-wrapper { 
                padding: 24px 16px !important; 
                border-radius: 24px !important;
            } 
            .section-title { 
                font-size: 22px !important; 
            } 
            .news-grid {
                grid-template-columns: 1fr !important;
                gap: 16px !important;
            }
            .news-card {
                border-radius: 16px !important;
            }
            .nc-image-wrap {
                height: 160px !important;
            }
            .news-sidebar { 
                width: 100% !important; 
                max-width: 100% !important; 
                padding: 24px 16px !important;
            }
            .ns-title {
                font-size: 22px !important;
                margin-bottom: 16px !important;
            }
            .ns-cover {
                height: 180px !important;
                margin-bottom: 20px !important;
            }
            .ns-text {
                font-size: 14px !important;
            }
            .comment-form-box {
                padding: 16px !important;
            }
            .comment-item {
                padding: 16px !important;
            }
            #scrollTopBtn {
                bottom: 20px !important;
                left: 20px !important;
                width: 44px !important;
                height: 44px !important;
            }
            #toast-box {
                bottom: 20px !important;
                right: 20px !important;
                left: 20px !important;
            }
            .magic-msg {
                padding: 14px 18px !important;
                font-size: 13px !important;
            }
            .scroll-down-hint {
                bottom: 20px !important;
            }
        }

        /* Phone-specific comfort and safe-area support */
        @media (max-width: 600px) {
            html { -webkit-text-size-adjust: 100%; }
            body { min-width: 0; }

            header {
                padding-top: env(safe-area-inset-top);
                height: calc(64px + env(safe-area-inset-top)) !important;
            }
            .nav-container { padding: 0 14px !important; }
            .logo { font-size: 21px !important; }
            .header-icons {
                gap: 10px !important;
                padding-left: 0 !important;
                margin-left: 0 !important;
                border-left: 0 !important;
            }
            .icon-discord, .user-trigger-text { display: none !important; }
            .user-menu { margin-left: 0 !important; }
            .user-trigger { padding: 4px !important; }
            .user-avatar-wrap { width: 38px !important; height: 38px !important; }
            .mobile-nav-toggle {
                width: 44px !important;
                height: 44px !important;
                padding: 13px 10px !important;
            }

            .mobile-menu {
                height: 100dvh;
                padding: calc(80px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
                gap: 12px;
                overflow-y: auto;
            }
            .mobile-menu a {
                display: flex;
                width: min(100%, 320px);
                min-height: 48px;
                align-items: center;
                justify-content: center;
                font-size: 18px;
                border-radius: 12px;
            }

            .notif-dropdown {
                position: fixed !important;
                top: calc(70px + env(safe-area-inset-top)) !important;
                left: 12px !important;
                right: 12px !important;
                width: auto !important;
                max-height: calc(100dvh - 90px - env(safe-area-inset-top));
                overflow-y: auto;
            }
            .profile-dropdown {
                position: fixed !important;
                top: calc(70px + env(safe-area-inset-top)) !important;
                left: 12px !important;
                right: 12px !important;
                width: auto !important;
                max-height: calc(100dvh - 90px - env(safe-area-inset-top));
                overflow-y: auto;
            }

            .hero {
                min-height: 100svh !important;
                padding: calc(92px + env(safe-area-inset-top)) 14px calc(48px + env(safe-area-inset-bottom)) !important;
            }
            .hero-badge { font-size: 9px !important; letter-spacing: 1px !important; }
            .hero h1 { font-size: clamp(30px, 10vw, 40px) !important; }
            .hero p { line-height: 1.7 !important; }
            .hero-actions { max-width: 100% !important; }
            .btn-primary, .ip-box, .btn-submit { min-height: 48px; }

            .main-container { padding: 0 10px !important; }
            .news-wrapper { padding: 20px 12px !important; border-radius: 18px !important; }
            .section-header { align-items: flex-start !important; gap: 14px !important; }
            .section-title { font-size: 20px !important; }
            .btn-admin { min-height: 44px; }
            .nc-content { padding: 18px !important; }
            .nc-title { font-size: 18px !important; }
            .leaderboard-box { padding: 18px 12px !important; border-radius: 18px !important; }

            .news-sidebar {
                height: 100dvh !important;
                padding: calc(18px + env(safe-area-inset-top)) 12px calc(14px + env(safe-area-inset-bottom)) !important;
            }
            .sidebar-header { margin-bottom: 14px !important; }
            .sidebar-close { width: 44px !important; height: 44px !important; flex-shrink: 0; }
            .sidebar-content { padding-right: 2px !important; overscroll-behavior: contain; }
            .ns-cover { height: 160px !important; border-radius: 12px !important; }
            .ns-title { overflow-wrap: anywhere; }
            .input-group textarea { font-size: 16px !important; }
            .comment-item { padding: 14px !important; }
            .replies-container { margin-left: 6px !important; padding-left: 8px !important; }
            .comment-actions { gap: 6px !important; }
            .comment-action-btn { min-height: 40px; padding: 8px 4px; }

            .modal-overlay { padding: 14px; }
            .modal-box {
                padding: 22px 16px !important;
                max-height: calc(100dvh - 28px);
                overflow-y: auto;
            }
            .modal-buttons { flex-direction: column-reverse; }
            .modal-buttons .btn-submit { width: 100%; }
            #toast-box {
                bottom: calc(12px + env(safe-area-inset-bottom)) !important;
                left: 12px !important;
                right: 12px !important;
            }
            #scrollTopBtn {
                bottom: calc(14px + env(safe-area-inset-bottom)) !important;
                left: 14px !important;
            }
            #cookie-banner { padding-bottom: calc(15px + env(safe-area-inset-bottom)) !important; }
            #policy-modal { padding: 12px !important; }
            #policy-modal .modal-content { max-height: calc(100dvh - 24px); }

            a, button, .icon-btn, .news-card, .ip-box, .cm-item {
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }
        }

        @media (hover: none), (pointer: coarse) {
            .news-card:hover, .lb-item:hover, .btn-primary:hover, .icon-btn:hover {
                transform: none !important;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                scroll-behavior: auto !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            #magic-canvas { display: none !important; }
        }
