﻿@font-face { font-family: 'Phudu'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/Phudu-CyrillicExt.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Phudu'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/Phudu-Vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Phudu'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/Phudu-LatinExt.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Phudu'; font-style: normal; font-weight: 300 900; font-display: swap; src: url('fonts/Phudu-Latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

        /* ===== Local MDI icons (icons/*.svg mask = currentColor) ===== */
        .mdi { display: inline-block; width: 1em; height: 1em; line-height: 1; flex-shrink: 0; background-color: currentColor; -webkit-mask: var(--mdi-icon) center / contain no-repeat; mask: var(--mdi-icon) center / contain no-repeat; vertical-align: -0.125em; }
        .mdi-spin { animation: mdiSpin 1s linear infinite; }
        @keyframes mdiSpin { to { transform: rotate(360deg); } }
        .mdi-clipboard-text-outline { --mdi-icon: url('icons/clipboard-text-outline.svg'); }
        .mdi-pin { --mdi-icon: url('icons/pin.svg'); }
        .mdi-podium-gold { --mdi-icon: url('icons/podium-gold.svg'); }
        .mdi-podium-silver { --mdi-icon: url('icons/podium-silver.svg'); }
        .mdi-podium-bronze { --mdi-icon: url('icons/podium-bronze.svg'); }
        .mdi-cash { --mdi-icon: url('icons/cash.svg'); }
        .mdi-circle { --mdi-icon: url('icons/circle.svg'); }
        .mdi-account { --mdi-icon: url('icons/account.svg'); }
        .mdi-account-check { --mdi-icon: url('icons/account-check.svg'); }
        .mdi-account-circle { --mdi-icon: url('icons/account-circle.svg'); }
        .mdi-account-clock { --mdi-icon: url('icons/account-clock.svg'); }
        .mdi-account-group { --mdi-icon: url('icons/account-group.svg'); }
        .mdi-account-multiple { --mdi-icon: url('icons/account-multiple.svg'); }
        .mdi-advertisements { --mdi-icon: url('icons/advertisements.svg'); }
        .mdi-alert { --mdi-icon: url('icons/alert.svg'); }
        .mdi-arrow-down { --mdi-icon: url('icons/arrow-down.svg'); }
        .mdi-arrow-right { --mdi-icon: url('icons/arrow-right.svg'); }
        .mdi-arrow-up { --mdi-icon: url('icons/arrow-up.svg'); }
        .mdi-bomb { --mdi-icon: url('icons/bomb.svg'); }
        .mdi-bug { --mdi-icon: url('icons/bug.svg'); }
        .mdi-bullhorn { --mdi-icon: url('icons/bullhorn.svg'); }
        .mdi-calculator { --mdi-icon: url('icons/calculator.svg'); }
        .mdi-calendar-plus { --mdi-icon: url('icons/calendar-plus.svg'); }
        .mdi-card-account-details { --mdi-icon: url('icons/card-account-details.svg'); }
        .mdi-chart-bar { --mdi-icon: url('icons/chart-bar.svg'); }
        .mdi-chart-line { --mdi-icon: url('icons/chart-line.svg'); }
        .mdi-check { --mdi-icon: url('icons/check.svg'); }
        .mdi-check-circle { --mdi-icon: url('icons/check-circle.svg'); }
        .mdi-chevron-down { --mdi-icon: url('icons/chevron-down.svg'); }
        .mdi-chevron-right { --mdi-icon: url('icons/chevron-right.svg'); }
        .mdi-clock-outline { --mdi-icon: url('icons/clock-outline.svg'); }
        .mdi-close { --mdi-icon: url('icons/close.svg'); }
        .mdi-close-circle { --mdi-icon: url('icons/close-circle.svg'); }
        .mdi-cloud { --mdi-icon: url('icons/cloud.svg'); }
        .mdi-code-tags { --mdi-icon: url('icons/code-tags.svg'); }
        .mdi-coffee { --mdi-icon: url('icons/coffee.svg'); }
        .mdi-cog { --mdi-icon: url('icons/cog.svg'); }
        .mdi-comment { --mdi-icon: url('icons/comment.svg'); }
        .mdi-comment-multiple { --mdi-icon: url('icons/comment-multiple.svg'); }
        .mdi-comment-off { --mdi-icon: url('icons/comment-off.svg'); }
        .mdi-content-copy { --mdi-icon: url('icons/content-copy.svg'); }
        .mdi-cookie { --mdi-icon: url('icons/cookie.svg'); }
        .mdi-credit-card { --mdi-icon: url('icons/credit-card.svg'); }
        .mdi-crosshairs { --mdi-icon: url('icons/crosshairs.svg'); }
        .mdi-crown { --mdi-icon: url('icons/crown.svg'); }
        .mdi-delete { --mdi-icon: url('icons/delete.svg'); }
        .mdi-delete-outline { --mdi-icon: url('icons/delete-outline.svg'); }
        .mdi-discord { --mdi-icon: url('icons/discord.svg'); }
        .mdi-dna { --mdi-icon: url('icons/dna.svg'); }
        .mdi-email { --mdi-icon: url('icons/email.svg'); }
        .mdi-fire { --mdi-icon: url('icons/fire.svg'); }
        .mdi-flag { --mdi-icon: url('icons/flag.svg'); }
        .mdi-gamepad-variant { --mdi-icon: url('icons/gamepad-variant.svg'); }
        .mdi-handshake { --mdi-icon: url('icons/handshake.svg'); }
        .mdi-headset { --mdi-icon: url('icons/headset.svg'); }
        .mdi-heart { --mdi-icon: url('icons/heart.svg'); }
        .mdi-information { --mdi-icon: url('icons/information.svg'); }
        .mdi-leaf { --mdi-icon: url('icons/leaf.svg'); }
        .mdi-lightning-bolt { --mdi-icon: url('icons/lightning-bolt.svg'); }
        .mdi-loading { --mdi-icon: url('icons/loading.svg'); }
        .mdi-logout { --mdi-icon: url('icons/logout.svg'); }
        .mdi-magnify { --mdi-icon: url('icons/magnify.svg'); }
        .mdi-map { --mdi-icon: url('icons/map.svg'); }
        .mdi-music { --mdi-icon: url('icons/music.svg'); }
        .mdi-play { --mdi-icon: url('icons/play.svg'); }
        .mdi-plus { --mdi-icon: url('icons/plus.svg'); }
        .mdi-plus-circle { --mdi-icon: url('icons/plus-circle.svg'); }
        .mdi-power-plug { --mdi-icon: url('icons/power-plug.svg'); }
        .mdi-refresh { --mdi-icon: url('icons/refresh.svg'); }
        .mdi-send { --mdi-icon: url('icons/send.svg'); }
        .mdi-server { --mdi-icon: url('icons/server.svg'); }
        .mdi-shield-account { --mdi-icon: url('icons/shield-account.svg'); }
        .mdi-shield-check { --mdi-icon: url('icons/shield-check.svg'); }
        .mdi-shield-half-full { --mdi-icon: url('icons/shield-half-full.svg'); }
        .mdi-silverware-fork-knife { --mdi-icon: url('icons/silverware-fork-knife.svg'); }
        .mdi-star { --mdi-icon: url('icons/star.svg'); }
        .mdi-star-outline { --mdi-icon: url('icons/star-outline.svg'); }
        .mdi-steam { --mdi-icon: url('icons/steam.svg'); }
        .mdi-tag-multiple { --mdi-icon: url('icons/tag-multiple.svg'); }
        .mdi-telegram { --mdi-icon: url('icons/telegram.svg'); }
        .mdi-thumb-up { --mdi-icon: url('icons/thumb-up.svg'); }
        .mdi-timer-sand { --mdi-icon: url('icons/timer-sand.svg'); }
        .mdi-tools { --mdi-icon: url('icons/tools.svg'); }
        .mdi-video { --mdi-icon: url('icons/video.svg'); }
        .mdi-vk { --mdi-icon: url('icons/vk.svg'); }
        .mdi-volume-high { --mdi-icon: url('icons/volume-high.svg'); }
        .mdi-wallet { --mdi-icon: url('icons/wallet.svg'); }
        .mdi-weather-night { --mdi-icon: url('icons/weather-night.svg'); }
        .mdi-web { --mdi-icon: url('icons/web.svg'); }
        .mdi-white-balance-sunny { --mdi-icon: url('icons/white-balance-sunny.svg'); }
        .mdi-wifi { --mdi-icon: url('icons/wifi.svg'); }


        :root {
            --bg: #171717; --bg2: #16161a; --bg3: #242429;
            --border: rgba(255, 255, 255, 0.10); --border-soft: rgba(255, 255, 255, 0.07);
            --text: #f5f5f7; --text2: #98989d; --text3: #6e6e73;
            --neon: #d4d4d8; --neon2: #a1a1aa; --accent: #71717a;
            --on-accent: #111113;
            --logo-grad: linear-gradient(135deg, #f4f4f5, #a1a1aa);
            --logo-color: #111113;
            --green: #30d158; --red: #ff453a; --blue: #0a84ff; --gold: #ffd60a;
            --mac-bg-blur: rgba(18, 18, 22, 0.78);
            --mac-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
            --mac-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
            --mac-card-bg: rgba(20, 20, 24, 0.85);
            --mac-input-bg: #1c1c20;
            --mac-hover: rgba(255, 255, 255, 0.06);
            --mac-active: rgba(255, 255, 255, 0.10);
            --mac-transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
            --mac-font: 'Phudu', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
            --premium-border: linear-gradient(135deg, #e4e4e7, #71717a, #e4e4e7);
            --premium-glow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 6px 24px rgba(0, 0, 0, 0.35);
            --bg-image-overlay: linear-gradient(180deg, rgba(11, 11, 13, 0.88) 0%, rgba(11, 11, 13, 0.97) 100%);
            --header-height: 96px;
        }
        [data-theme="light"] {
            --bg: #f5f5f7; --bg2: #ffffff; --bg3: #ececf0;
            --border: rgba(0, 0, 0, 0.10); --border-soft: rgba(0, 0, 0, 0.06);
            --text: #1d1d1f; --text2: #6e6e73; --text3: #8e8e93;
            --neon: #3f3f46; --neon2: #52525b; --accent: #71717a;
            --on-accent: #ffffff;
            --logo-grad: linear-gradient(135deg, #52525b, #27272a);
            --logo-color: #ffffff;
            --green: #34c759; --red: #ff3b30; --blue: #007aff; --gold: #b8860b;
            --mac-bg-blur: rgba(255, 255, 255, 0.82);
            --mac-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
            --mac-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
            --mac-card-bg: rgba(255, 255, 255, 0.92);
            --mac-input-bg: #ffffff;
            --mac-hover: rgba(0, 0, 0, 0.045);
            --mac-active: rgba(0, 0, 0, 0.06);
            --premium-border: linear-gradient(135deg, #71717a, #27272a, #71717a);
            --premium-glow: 0 0 0 1px rgba(0, 0, 0, 0.14), 0 6px 24px rgba(0, 0, 0, 0.08);
            --bg-image-overlay: linear-gradient(180deg, rgba(245, 245, 247, 0.85) 0%, rgba(245, 245, 247, 0.96) 100%);
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
        body {
            background: var(--bg); color: var(--text); font-family: var(--mac-font);
            min-height: 100vh; overflow-x: hidden; position: relative;
            -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
            transition: background 0.35s ease, color 0.35s ease; line-height: 1.5; font-size: 14px;
        }
        ::selection { background: #6b7280; color: #fff; }

        /* ===== Фоновая картинка + оверлей (как на hostile-rust.ru) ===== */
        .bg-image {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            z-index: -2; object-fit: cover; pointer-events: none; user-select: none;
            transition: opacity .3s ease, filter .3s ease;
        }
        .bg-overlay {
            position: fixed; inset: 0; z-index: -1;
            background: var(--bg-image-overlay); pointer-events: none; transition: background .3s ease;
        }
        [data-theme="light"] .bg-image { filter: brightness(1.15) saturate(0.6); opacity: 0.35; }
        [data-theme="dark"] .bg-image { filter: brightness(0.6) saturate(1); opacity: 0.85; }

        /* ============================================================
           ШАПКА — НА ВСЮ ШИРИНУ (fixed, вне .container), стиль hostile-rust
           ============================================================ */
        .header {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000; width: 100%;
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 14px; padding: 14px 28px;
            background: transparent; border-bottom: none;
            isolation: isolate; overflow: visible;
        }
        .header::before {
            content: ""; position: absolute; inset: 0; z-index: 0;
            background: var(--mac-bg-blur);
            backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
            border-bottom: 1px solid var(--border);
            box-shadow: var(--mac-shadow-sm);
            pointer-events: none;
        }
        .header > * { position: relative; z-index: 1; }

        .logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: inherit; cursor: pointer; }
        .logo-icon {
            width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
            display: flex; align-items: center; justify-content: center; font-size: 19px;
            background: var(--logo-grad); color: var(--logo-color);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        }
        .logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .logo-text { display: flex; flex-direction: column; }
        .logo-text h1 {
            font-size: 20px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2;
            background: linear-gradient(135deg, var(--neon), var(--accent));
            -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
        }
        .logo-text span { font-size: 11.5px; color: var(--text3); font-weight: 400; }
        .logo-area:hover { opacity: 0.85; }

        #headerRight { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
        #authBlock, #userBlock { position: relative; }
        .dropdown-wrapper { position: relative; display: inline-block; }
        .dropdown-wrapper .dropdown-menu { z-index: 150; }

        /* Онлайн-счётчик как статус-бейдж в шапке */
        #onlineCounter {
            display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text2);
            background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
            padding: 7px 12px; white-space: nowrap; flex-shrink: 0;
        }
        #onlineCount { font-weight: 700; color: var(--neon2); }
        @keyframes onlinePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
        #onlineDot {
            display: inline-block; width: 8px; height: 8px; border-radius: 50%;
            background: var(--green); animation: onlinePulse 2s ease-in-out infinite;
        }

        /* Переключатель темы — «пилюля» со滑 thumb (стиль hostile-rust) */
        #themeToggle {
            width: 54px; height: 30px; border-radius: 30px;
            background: var(--bg3); border: 1px solid var(--border);
            position: relative; cursor: pointer; display: flex; align-items: center;
            padding: 0 4px; flex-shrink: 0; user-select: none; transition: all .25s ease;
        }
        #themeToggle:hover { border-color: var(--neon); }
        #themeToggle .thumb {
            position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
            background: var(--bg2); box-shadow: var(--mac-shadow-sm); color: var(--neon);
            transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background .25s ease;
            display: flex; align-items: center; justify-content: center; font-size: 11px;
        }
        [data-theme="dark"] #themeToggle .thumb { transform: translateX(0); }
        [data-theme="light"] #themeToggle .thumb { transform: translateX(24px); }
        #themeToggle .mdi-white-balance-sunny { display: none; }
        #themeToggle .mdi-weather-night { display: inline-block; }
        [data-theme="light"] #themeToggle .mdi-white-balance-sunny { display: inline-block; }
        [data-theme="light"] #themeToggle .mdi-weather-night { display: none; }

        /* Кнопка музыки в шапке */
        #musicToggle {
            width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
            background: var(--bg3); border: 1px solid var(--border); color: var(--text);
            font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
            transition: var(--mac-transition);
        }
        #musicToggle:hover { border-color: var(--neon); color: var(--neon); transform: scale(1.06); }
        #musicToggle.playing { border-color: var(--neon); color: var(--neon); }

        .container { position: relative; z-index: 2; max-width: 1400px; margin: 0 auto; padding: 0 20px; }
        .main-content { padding-top: calc(var(--header-height) + 24px); }

        /* Кнопка «Вверх» (внизу справа, стиль hostile-rust) */
        #scrollTopBtn {
            position: fixed; bottom: 30px; right: 30px; z-index: 900;
            display: flex; align-items: center; gap: 8px; padding: 10px 18px;
            background: var(--mac-bg-blur); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            color: var(--text); border: 1px solid var(--border); border-radius: 22px;
            font-size: 13px; font-weight: 600; font-family: var(--mac-font); cursor: pointer;
            box-shadow: var(--mac-shadow-sm); transition: all .25s ease;
            opacity: 0; transform: translateY(15px); pointer-events: none; visibility: hidden;
        }
        #scrollTopBtn.show { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
        #scrollTopBtn:hover { background: var(--mac-active); border-color: var(--neon); color: var(--neon); transform: translateY(-3px); box-shadow: var(--mac-shadow-sm); }
        #scrollTopBtn i { font-size: 14px; }

        .card {
            background: var(--mac-card-bg); border: 1px solid var(--border); border-radius: 16px;
            padding: 24px; margin-bottom: 20px; box-shadow: var(--mac-shadow-sm);
            transition: border-color 0.25s ease, box-shadow 0.25s ease;
        }
        .card h2, .card h3 { color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
        .card h2 i, .card h3 i { color: var(--neon); }

        .btn {
            padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
            display: inline-flex; align-items: center; justify-content: center; gap: 7px;
            text-decoration: none; color: var(--text); background: var(--bg3); border: 1px solid var(--border);
            font-family: var(--mac-font); white-space: nowrap;
        }
        .btn:hover { border-color: var(--neon); color: var(--neon); }
        .btn:active { transform: scale(0.98); }
        .btn-steam { background: #1b2838; border: 1px solid #2a475e; color: #c7d5e0; }
        .btn-steam:hover { border-color: #66c0f4; color: #fff; }
        .btn-neon { background: linear-gradient(135deg, #6b7280, #3f3f46); border: none; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
        .btn-neon:hover { filter: brightness(1.1); color: #fff; border: none; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32); }
        .btn-danger { background: var(--red); border: 1px solid var(--red); color: #fff; }
        .btn-danger:hover { background: #e0342b; border-color: #e0342b; color: #fff; }
        .btn-connect { background: var(--green); border: 1px solid var(--green); color: #fff; }
        .btn-connect:hover { background: #2bbf4e; border-color: #2bbf4e; color: #fff; }
        .btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 8px; }

        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
        .stat-card {
            background: var(--mac-card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border); border-radius: 16px; padding: 20px;
            display: flex; align-items: center; gap: 15px; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
            box-shadow: var(--mac-shadow-sm);
        }
        .stat-card:hover { border-color: var(--neon); transform: translateY(-2px); }
        .stat-icon { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
        .stat-icon.servers { background: rgba(156, 163, 175, 0.12); color: var(--neon); }
        .stat-icon.players { background: rgba(48, 209, 88, 0.12); color: var(--green); }
        .stat-icon.premium { background: rgba(156, 163, 175, 0.12); color: var(--accent); }
        .stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
        .stat-label { font-size: 13px; color: var(--text2); }

        .tabs {
            display: flex; gap: 2px; background: var(--bg3); padding: 3px; border-radius: 12px;
            margin-bottom: 20px; border: 1px solid var(--border); flex-wrap: wrap;
        }
        .tab-btn {
            padding: 9px 18px; border: none; background: transparent; color: var(--text2); border-radius: 9px;
            cursor: pointer; font-size: 14px; font-weight: 500; transition: background 0.2s ease, color 0.2s ease;
            font-family: var(--mac-font);
        }
        .tab-btn.active { background: var(--bg2); color: var(--text); box-shadow: var(--mac-shadow-sm); }
        .tab-btn:hover:not(.active) { color: var(--text); background: var(--mac-hover); }
        .tab-content { display: none; }
        .tab-content.active { display: block; }

        .server-card {
            background: var(--mac-card-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border); border-radius: 14px;
            padding: 16px 18px; margin-bottom: 12px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
            position: relative; overflow: hidden; box-shadow: var(--mac-shadow-sm);
        }
        .server-card:hover { border-color: var(--neon); box-shadow: 0 6px 20px rgba(156, 163, 175, 0.1); transform: translateY(-1px); }
        .server-card.premium {
            border: 1px solid transparent;
            background: linear-gradient(var(--mac-card-bg), var(--mac-card-bg)) padding-box, var(--premium-border) border-box;
            box-shadow: var(--premium-glow);
            animation: premiumGlowPulse 3.5s ease-in-out infinite;
        }
        .server-card.premium::after {
            content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none;
            background: radial-gradient(circle at 0% 0%, rgba(156, 163, 175, 0.08), transparent 55%);
        }
        .server-card.premium:hover { box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.5), 0 8px 30px rgba(107, 114, 128, 0.18); }
        @keyframes premiumGlowPulse {
            0%, 100% { box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.22), 0 6px 24px rgba(107, 114, 128, 0.1); }
            50% { box-shadow: 0 0 0 1px rgba(156, 163, 175, 0.45), 0 8px 30px rgba(107, 114, 128, 0.18); }
        }
        .server-card.has-votes { border-color: rgba(255, 214, 10, 0.35); }
        .server-card.premium .server-name i.mdi-crown {
            color: var(--gold); animation: crownFloat 2.8s ease-in-out infinite;
            filter: drop-shadow(0 0 4px rgba(255, 214, 10, 0.35));
        }
        @keyframes crownFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-1.5px) rotate(-3deg); } }
        .server-card .server-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-wrap: wrap; gap: 6px; }
        .server-card .server-name { font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; max-width: 100%; overflow: hidden; word-break: break-word; white-space: normal; }
        .server-card .server-name i { font-size: 13px; color: var(--accent); }
        .server-card .server-description {
            font-size: 13px; color: var(--text2); margin: 4px 0 6px 0; line-height: 1.45;
            padding-left: 10px; border-left: 2px solid var(--neon);
        }
        .server-card .badge { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 9px; font-weight: 600; margin: 1px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .badge-premium { background: rgba(255, 214, 10, 0.12); color: var(--gold); border: 1px solid rgba(255, 214, 10, 0.3); }
        .badge-votes { background: rgba(255, 214, 10, 0.1); color: var(--gold); border: 1px solid rgba(255, 214, 10, 0.25); }
        .badge-tag { background: rgba(156, 163, 175, 0.12); color: var(--neon2); font-size: 9px; padding: 1px 5px; }
        [data-theme="light"] .badge-premium { background: rgba(212, 160, 23, 0.1); color: #8a6d00; border-color: rgba(212, 160, 23, 0.3); }
        [data-theme="light"] .badge-votes { background: rgba(212, 160, 23, 0.08); color: #8a6d00; border-color: rgba(212, 160, 23, 0.25); }
        [data-theme="light"] .badge-tag { background: rgba(239, 148, 0, 0.1); color: #b45f00; }
        .server-card .server-info { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text2); margin: 6px 0; }
        .server-card .server-info span { display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
        .server-card .server-actions {
            display: flex; gap: 6px; margin-top: 10px; padding-top: 10px;
            border-top: 1px solid var(--border-soft); flex-wrap: wrap; align-items: center;
        }
        .server-card .server-actions .btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 7px; white-space: nowrap; }
        .server-card .server-social { display: flex; gap: 6px; margin: 5px 0; flex-wrap: wrap; }
        .server-card .social-btn {
            display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px;
            border-radius: 7px; font-size: 12px; color: var(--text2); text-decoration: none;
            transition: border-color 0.2s ease, color 0.2s ease;
            background: var(--bg3); border: 1px solid var(--border);
        }
        .server-card .social-btn:hover { transform: translateY(-1px); }
        .server-card .social-btn.website:hover { border-color: var(--neon); color: var(--neon); }
        .server-card .social-btn.vk:hover { border-color: #4a76a8; color: #4a76a8; }
        .server-card .social-btn.tg:hover { border-color: #0088cc; color: #0088cc; }
        .server-card .social-btn.discord:hover { border-color: #5865f2; color: #5865f2; }

        /* ============================================================
           МОДАЛКИ — стиль macOS (стекло, мягкая пружинка, скругление)
           ============================================================ */
        .modal {
            display: none; position: fixed; inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
            z-index: 5000; justify-content: center; align-items: center; padding: 20px;
        }
        .modal.active { display: flex; }
        @keyframes modalIn {
            from { opacity: 0; transform: translateY(-18px) scale(0.96); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        .modal-content {
            background: var(--bg2); border: 1px solid var(--border); border-radius: 22px; padding: 28px;
            width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
            box-shadow: var(--mac-shadow); scrollbar-width: thin; scrollbar-color: var(--border) transparent;
            animation: modalIn 0.3s cubic-bezier(.34, 1.4, .64, 1);
        }
        .modal-content::-webkit-scrollbar { width: 6px; }
        .modal-content::-webkit-scrollbar-track { background: transparent; }
        .modal-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
        .modal h2 { color: var(--text); margin-bottom: 18px; font-weight: 600; }

        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text2); font-weight: 500; }
        .form-group input, .form-group textarea, .form-group select {
            width: 100%; padding: 11px 14px; background: var(--mac-input-bg);
            border: 1px solid var(--border); border-radius: 10px; color: var(--text);
            font-size: 14px; outline: none; font-family: var(--mac-font);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }
        .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
            border-color: var(--neon); box-shadow: 0 0 0 3px var(--mac-active);
        }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

        .plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 15px 0; }
        .plan-card {
            background: var(--bg3); border: 2px solid var(--border); border-radius: 12px;
            padding: 15px; text-align: center; cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
        }
        .plan-card:hover { border-color: var(--neon); }
        .plan-card.selected { border-color: var(--neon); background: var(--mac-active); }
        .plan-name { font-size: 15px; font-weight: 700; }
        .plan-price { font-size: 14px; color: var(--neon2); margin-top: 5px; }

        table { width: 100%; border-collapse: collapse; font-size: 13px; }
        th {
            text-align: left; padding: 12px; color: var(--text); border-bottom: 2px solid var(--border);
            font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
        }
        td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); color: var(--text); }
        tr:hover td { background: var(--mac-hover); }

        .toast {
            position: fixed; bottom: 92px; right: 28px; padding: 14px 22px; border-radius: 12px;
            color: #fff; font-weight: 500; z-index: 6000; display: none;
            animation: slideUp 0.25s ease; box-shadow: var(--mac-shadow); font-size: 14px;
        }
        .toast-success { background: var(--green); }
        .toast-error { background: var(--red); }
        .toast-info { background: var(--blue); }
        @keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

        .dropdown-wrapper .dropdown-menu {
            position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px;
            background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 6px;
            box-shadow: var(--mac-shadow);
            opacity: 0; visibility: hidden; transform: translateY(-6px);
            transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        }
        .dropdown-wrapper.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-wrapper .dropdown-item {
            display: flex; align-items: center; gap: 11px; padding: 9px 13px; color: var(--text);
            text-decoration: none; border-radius: 8px; font-size: 14px;
            transition: background 0.15s ease, color 0.15s ease; white-space: nowrap;
        }
        .dropdown-wrapper .dropdown-item:hover { background: var(--mac-active); color: var(--neon2); }
        .dropdown-wrapper .dropdown-item i { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

        .fuzzy-header-wrapper {
            position: relative; z-index: 2; background: var(--mac-bg-blur);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 20px; padding: 28px 20px; overflow: hidden; margin-bottom: 22px; text-align: center;
            box-shadow: var(--mac-shadow-sm);
        }
        .fuzzy-header-content { display: flex; flex-direction: column; align-items: center; gap: 8px; }
        .fuzzy-title-text {
            font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 900; letter-spacing: 4px;
            background: linear-gradient(135deg, var(--neon), var(--accent), var(--neon2), var(--neon));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1;
        }
        .fuzzy-subtitle-text {
            font-size: clamp(0.7rem, 1.5vw, 1.1rem); font-weight: 500; color: var(--text2);
            letter-spacing: 6px; text-transform: uppercase;
        }
        .seo-h1 {
            position: absolute !important; left: -9999px !important; top: -9999px !important;
            width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
        }

        .banner-block { position: relative; z-index: 2; margin: 0 0 22px 0; padding: 0; }
        .banner-carousel {
            display: flex; gap: 16px; justify-content: flex-start; flex-wrap: nowrap;
            padding: 4px 2px 14px 2px; overflow-x: auto;
            -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
        }
        .banner-carousel::-webkit-scrollbar { height: 6px; }
        .banner-carousel::-webkit-scrollbar-track { background: transparent; }
        .banner-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
        .banner-card {
            position: relative; width: 320px; height: 130px; border-radius: 16px; overflow: hidden;
            cursor: pointer; transition: border-color 0.2s ease, transform 0.15s ease;
            border: 1px solid var(--border); background: var(--mac-card-bg);
            flex-shrink: 0; box-shadow: var(--mac-shadow-sm);
        }
        .banner-card:hover { transform: translateY(-3px); border-color: var(--neon); }
        .banner-card.premium-slot { border-color: rgba(156, 163, 175, 0.35); }
        .banner-card.premium-slot:hover { border-color: var(--gold); }

/* ===== Рекламные баннеры (отдельный блок под серверными) ===== */
.ad-banner-section { margin: 0 0 26px 0; }
.ad-banner-section .container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ad-banner-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ad-banner-header h3 { margin: 0; font-size: 16px; color: var(--neon2); font-weight: 700; }
.ad-banner-header i { color: var(--neon); }
.ad-banner-carousel {
    display: flex; gap: 16px; justify-content: flex-start; flex-wrap: nowrap;
    padding: 4px 2px 14px 2px; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.ad-banner-carousel::-webkit-scrollbar { height: 6px; }
.ad-banner-carousel::-webkit-scrollbar-track { background: transparent; }
.ad-banner-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.ad-banner-card {
    position: relative; width: 320px; height: 130px; border-radius: 16px; overflow: hidden;
    cursor: pointer; transition: border-color 0.2s ease, transform 0.15s ease;
    border: 1px solid var(--border); background: var(--mac-card-bg);
    flex-shrink: 0; box-shadow: var(--mac-shadow-sm);
}
.ad-banner-card:hover { transform: translateY(-3px); border-color: var(--neon); }
@media (max-width: 640px) {
    .ad-banner-card { width: 260px; height: 112px; }
}
        .banner-bg {
            width: 100%; height: 100%; position: relative; display: flex; align-items: center;
            justify-content: center; padding: 15px 20px;
            background: linear-gradient(135deg, rgba(156, 163, 175, 0.07), var(--bg2));
        }
        .banner-content { text-align: center; z-index: 1; width: 100%; }
        .banner-server-name {
            font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 4px;
            display: flex; align-items: center; justify-content: center; gap: 10px;
        }
        .banner-server-name i { font-size: 15px; color: var(--neon); }
        .banner-server-name .crown { color: var(--gold); }
        .banner-server-info { display: flex; justify-content: center; gap: 12px; font-size: 12px; color: var(--text2); margin-top: 6px; flex-wrap: wrap; }
        .banner-server-info i { font-size: 11px; color: var(--neon2); }
        .banner-badge {
            position: absolute; top: 10px; right: 10px; font-size: 10px; background: var(--neon);
            color: var(--on-accent); padding: 3px 11px; border-radius: 20px; font-weight: 700;
            letter-spacing: 0.3px; z-index: 2;
        }
        .banner-badge.gold { background: linear-gradient(135deg, #9ca3af, #52525b); }
        .banner-expires { position: absolute; bottom: 8px; right: 12px; font-size: 10px; color: var(--text2); z-index: 2; }
        .banner-empty {
            width: 320px; height: 130px; border-radius: 16px; border: 1.5px dashed var(--border);
            display: flex; align-items: center; justify-content: center; cursor: pointer;
            transition: border-color 0.2s ease, background 0.2s ease;
            background: var(--mac-card-bg); flex-shrink: 0;
        }
        .banner-empty:hover { border-color: var(--neon); background: var(--mac-hover); }
        .banner-empty-content { text-align: center; color: var(--text2); }
        .banner-empty-content i { font-size: 26px; color: var(--neon); margin-bottom: 6px; display: block; }
        .banner-empty-content .slot-title { font-weight: 600; color: var(--text); font-size: 14px; }
        .banner-empty-content .slot-sub { font-size: 11px; color: var(--text2); }
        .banner-empty-content .slot-price { font-size: 12px; color: var(--neon2); margin-top: 4px; font-weight: 600; }
        .banner-ad-tag {
            position: absolute; top: 8px; left: 8px; background: var(--mac-bg-blur);
            border: 1px solid var(--border); color: var(--text3); font-size: 9px; font-weight: 600;
            padding: 2px 6px; border-radius: 4px; letter-spacing: 0.4px; text-transform: uppercase;
            z-index: 5; pointer-events: none;
        }

        .partner-popup {
            position: fixed; bottom: 20px; right: 20px; max-width: 380px; width: 100%;
            background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
            padding: 18px 18px 14px; box-shadow: var(--mac-shadow);
            z-index: 999; animation: slideUpPopup 0.35s ease-out;
        }
        @keyframes slideUpPopup { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        .partner-popup .popup-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .partner-popup .popup-title { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
        .partner-popup .popup-title i { color: var(--accent); }
        .partner-popup .popup-close {
            background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer;
            transition: color 0.2s ease; padding: 0 4px; line-height: 1;
        }
        .partner-popup .popup-close:hover { color: var(--red); }
        .partner-popup .popup-body {
            display: flex; flex-direction: column; gap: 8px; max-height: 200px;
            overflow-y: auto; padding-right: 4px;
        }
        .partner-popup .partner-item {
            display: flex; justify-content: space-between; align-items: center;
            padding: 8px 10px; background: var(--bg3); border-radius: 10px;
            border: 1px solid var(--border); transition: border-color 0.2s ease;
        }
        .partner-popup .partner-item:hover { border-color: var(--neon); }
        .partner-popup .partner-item .info { display: flex; flex-direction: column; gap: 2px; }
        .partner-popup .partner-item .info .name { font-size: 13px; font-weight: 600; color: var(--text); }
        .partner-popup .partner-item .info .desc { font-size: 11px; color: var(--text2); }
        .partner-popup .partner-item .btn-link {
            padding: 5px 12px; background: var(--neon); border: none; border-radius: 7px;
            color: var(--on-accent); font-size: 11px; font-weight: 600; cursor: pointer;
            transition: background 0.2s ease; text-decoration: none; white-space: nowrap;
        }
        .partner-popup .partner-item .btn-link:hover { background: var(--neon2); }
        .partner-popup .popup-footer { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); text-align: center; }
        .partner-popup .popup-footer a { color: var(--neon2); font-size: 12px; text-decoration: none; }
        .partner-popup .popup-footer a:hover { color: var(--neon); }

        .partners-modal .modal-content { max-width: 600px; }
        .partners-grid-modal { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
        .partners-grid-modal .partner-card-modal {
            background: var(--bg3); border: 1px solid var(--border); border-radius: 14px;
            padding: 16px; transition: border-color 0.2s ease;
            display: flex; flex-direction: column; align-items: center; text-align: center;
        }
        .partners-grid-modal .partner-card-modal:hover { border-color: var(--neon); }
        .partners-grid-modal .partner-card-modal .icon { font-size: 34px; margin-bottom: 8px; color: var(--neon); }
        .partners-grid-modal .partner-card-modal .name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
        .partners-grid-modal .partner-card-modal .desc { font-size: 12px; color: var(--text2); margin-bottom: 10px; }
        .partners-grid-modal .partner-card-modal .btn-partner {
            padding: 7px 16px; background: var(--neon); border: none; border-radius: 8px;
            color: var(--on-accent); font-size: 12px; font-weight: 600; cursor: pointer;
            transition: background 0.2s ease; text-decoration: none;
        }
        .partners-grid-modal .partner-card-modal .btn-partner:hover { background: var(--neon2); }
        .partners-grid-modal .partner-card-modal.premium { border-color: rgba(156, 163, 175, 0.35); }
        .partners-grid-modal .partner-card-modal.premium .icon { color: var(--gold); }

        .reviews-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border-soft); }
        .reviews-toggle {
            display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text2);
            font-size: 13px; transition: border-color 0.2s ease, color 0.2s ease;
            padding: 5px 10px; border-radius: 8px; background: var(--bg3);
            border: 1px solid var(--border); width: fit-content;
        }
        .reviews-toggle:hover { border-color: var(--neon); color: var(--neon); }
        .reviews-toggle .count { background: var(--neon); color: var(--on-accent); border-radius: 50%; padding: 0 8px; font-size: 11px; font-weight: 700; }
        .reviews-list {
            max-height: 300px; overflow-y: auto; margin-top: 10px; display: none;
            scrollbar-width: thin; scrollbar-color: var(--border) transparent;
        }
        .reviews-list.open { display: block; }
        .review-item { background: var(--bg3); border-radius: 10px; padding: 12px 15px; margin-bottom: 8px; border-left: 3px solid var(--neon); }
        .review-item .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 5px; }
        .review-item .review-author { font-weight: 600; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }
        .review-item .review-author img { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border); }
        .review-item .review-date { font-size: 11px; color: var(--text2); }
        .review-item .review-text { font-size: 13px; color: var(--text2); line-height: 1.5; word-break: break-word; }
        .review-item .review-stars { color: var(--accent); font-size: 13px; margin-right: 8px; }
        .review-item .review-actions { display: flex; gap: 8px; margin-top: 6px; }
        .review-item .review-actions button {
            background: none; border: none; color: var(--text2); font-size: 11px; cursor: pointer;
            transition: color 0.2s ease, background 0.2s ease; padding: 2px 8px; border-radius: 4px;
        }
        .review-item .review-actions button:hover { color: var(--neon); background: var(--mac-active); }
        .review-item .review-actions .delete-review { color: var(--red); }
        .review-item .review-actions .delete-review:hover { background: rgba(255, 69, 58, 0.1); }
        .review-form {
            margin-top: 10px; display: none; background: var(--bg3); padding: 15px;
            border-radius: 10px; border: 1px solid var(--border);
        }
        .review-form.open { display: block; }
        .review-form textarea {
            width: 100%; padding: 10px; background: var(--mac-input-bg); border: 1px solid var(--border);
            border-radius: 8px; color: var(--text); font-size: 13px; resize: vertical;
            min-height: 70px; font-family: var(--mac-font); outline: none; transition: border-color 0.2s ease;
        }
        .review-form textarea:focus { border-color: var(--neon); }
        .review-form .review-stars-input { display: flex; gap: 4px; margin: 8px 0; flex-direction: row-reverse; justify-content: flex-end; }
        .review-form .review-stars-input input { display: none; }
        .review-form .review-stars-input label { font-size: 24px; color: var(--border); cursor: pointer; transition: color 0.2s ease; }
        .review-form .review-stars-input label:hover,
        .review-form .review-stars-input label:hover ~ label,
        .review-form .review-stars-input input:checked ~ label { color: var(--accent); }
        .review-form .review-submit {
            margin-top: 8px; padding: 7px 16px; background: var(--neon); border: none; border-radius: 8px;
            color: var(--on-accent); font-weight: 600; cursor: pointer; transition: background 0.2s ease; font-size: 12px;
        }
        .review-form .review-submit:hover { background: var(--neon2); }
        .review-empty { text-align: center; padding: 20px; color: var(--text2); font-size: 13px; }
        .review-empty i { font-size: 32px; display: block; margin-bottom: 10px; color: var(--border); }

        .detail-server-header {
            display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
            gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-soft);
        }
        .detail-server-header .detail-name { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .detail-server-header .detail-name i { color: var(--neon); }
        .detail-server-header .detail-badges { display: flex; gap: 6px; flex-wrap: wrap; }
        .detail-server-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }
        .detail-server-info .info-item {
            background: var(--bg3); padding: 12px 15px; border-radius: 10px; border: 1px solid var(--border);
            display: flex; align-items: center; gap: 12px;
        }
        .detail-server-info .info-item i { font-size: 17px; color: var(--neon); width: 22px; text-align: center; }
        .detail-server-info .info-item .label { font-size: 11px; color: var(--text2); }
        .detail-server-info .info-item .value { font-size: 15px; font-weight: 600; color: var(--text); }
        .detail-server-description {
            background: var(--bg3); padding: 15px; border-radius: 10px; border-left: 3px solid var(--neon);
            margin: 15px 0; color: var(--text2); font-size: 14px; line-height: 1.6;
        }
        .detail-server-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 15px 0; }
        .detail-server-tags .tag {
            background: rgba(156, 163, 175, 0.12); color: var(--neon2); padding: 4px 12px;
            border-radius: 6px; font-size: 12px; border: 1px solid rgba(156, 163, 175, 0.15);
        }
        .detail-server-social { display: flex; gap: 10px; margin: 15px 0; flex-wrap: wrap; }
        .detail-server-social .social-btn {
            display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px;
            background: var(--bg3); border: 1px solid var(--border); color: var(--text);
            text-decoration: none; font-size: 13px; transition: border-color 0.2s ease, color 0.2s ease;
        }
        .detail-server-social .social-btn:hover { border-color: var(--neon); color: var(--neon); }
        .detail-server-social .social-btn i { font-size: 15px; }
        .detail-server-social .social-btn.website i { color: var(--neon); }
        .detail-server-social .social-btn.vk i { color: #4a76a8; }
        .detail-server-social .social-btn.tg i { color: #0088cc; }
        .detail-server-social .social-btn.discord i { color: #5865f2; }
        .detail-server-actions {
            display: flex; gap: 10px; margin-top: 20px; padding-top: 20px;
            border-top: 1px solid var(--border-soft); flex-wrap: wrap;
        }
        .detail-server-actions .btn { flex: 1; justify-content: center; min-width: 120px; }
        .server-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; align-items: center; }
        .server-tags .badge, .detail-server-tags .tag {
            cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
            display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500;
            padding: 3px 8px; border-radius: 6px; text-decoration: none;
        }
        .server-tags .badge:hover, .detail-server-tags .tag:hover { border-color: var(--neon); color: var(--neon); }
        .badge-rust-rate { background: rgba(156, 163, 175, 0.1) !important; color: var(--accent) !important; border: 1px solid rgba(156, 163, 175, 0.28) !important; }
        .badge-rust-team { background: rgba(100, 210, 255, 0.1) !important; color: #64d2ff !important; border: 1px solid rgba(100, 210, 255, 0.28) !important; }
        .badge-rust-vanilla { background: rgba(48, 209, 88, 0.1) !important; color: var(--green) !important; border: 1px solid rgba(48, 209, 88, 0.28) !important; }
        .badge-rust-modded { background: rgba(156, 163, 175, 0.1) !important; color: var(--neon2) !important; border: 1px solid rgba(156, 163, 175, 0.28) !important; }
        .badge-rust-pvp { background: rgba(255, 69, 58, 0.1) !important; color: var(--red) !important; border: 1px solid rgba(255, 69, 58, 0.28) !important; }
        .badge-rust-pve { background: rgba(10, 132, 255, 0.1) !important; color: var(--blue) !important; border: 1px solid rgba(10, 132, 255, 0.28) !important; }
        .badge-rust-generic { background: var(--bg3) !important; color: var(--text2) !important; border: 1px solid var(--border) !important; }
        .badge-rust-generic:hover { color: var(--neon) !important; border-color: var(--neon) !important; }
        .server-chart-drawer {
            margin-top: 10px; padding: 12px; background: var(--bg3);
            border: 1px solid var(--border); border-radius: 12px; animation: fadeIn 0.2s ease;
        }
        .chart-metrics-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 11px; color: var(--text2); }
        .chart-metric-item {
            display: inline-flex; align-items: center; gap: 5px; background: var(--bg2);
            padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border-soft);
        }
        .chart-metric-item b { color: var(--text); }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
        .age-badge-18 {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; flex-shrink: 0;
            background: rgba(255, 69, 58, 0.1); border: 1px solid rgba(255, 69, 58, 0.3);
            color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; user-select: none;
        }
        .steam-auth-wrapper { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
        .steam-consent-label {
            font-size: 11px; color: var(--text2); display: flex; align-items: center; gap: 6px;
            cursor: pointer; user-select: none;
        }
        .steam-consent-label input[type="checkbox"] { accent-color: var(--neon); cursor: pointer; }
        .steam-consent-label a { color: var(--neon2); text-decoration: underline; text-underline-offset: 2px; }
        .btn-steam.disabled-auth { opacity: 1; filter: none; background: #2a3f54; border-color: #3a5570; color: #a9bccf; cursor: not-allowed; }
        .cookie-banner {
            position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
            width: calc(100% - 40px); max-width: 900px; background: var(--bg2);
            border: 1px solid var(--border); box-shadow: var(--mac-shadow);
            border-radius: 16px; padding: 15px 20px; z-index: 999999;
        }
        .cookie-banner-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
        .cookie-banner-text { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 13px; line-height: 1.5; flex: 1 1 500px; }
        .cookie-icon { font-size: 24px; color: var(--accent); flex-shrink: 0; }
        .cookie-banner-text a { color: var(--neon); text-decoration: underline; text-underline-offset: 2px; }
        .cookie-banner-btn { white-space: nowrap; padding: 10px 22px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 13px; }
        .skeleton-card {
            height: 160px; border-radius: 12px;
            background: linear-gradient(90deg, var(--bg3) 25%, var(--border) 50%, var(--bg3) 75%);
            background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; margin-bottom: 12px;
        }
        @keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        .footer {
            position: relative; z-index: 2; background: var(--mac-card-bg);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border); margin-top: 50px; padding: 50px 0 0;
        }
        .footer-grid {
            display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 35px;
            padding-bottom: 35px; border-bottom: 1px solid var(--border-soft);
        }
        .footer-logo {
            font-size: 22px; font-weight: 800;
            background: linear-gradient(135deg, var(--neon), var(--accent));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
        }
        .footer-logo i { font-size: 25px; -webkit-text-fill-color: initial; color: var(--neon); }
        .footer-description { color: var(--text2); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
        .footer-social { display: flex; gap: 10px; }
        .social-link {
            width: 38px; height: 38px; border-radius: 10px; background: var(--bg3);
            border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
            color: var(--text2); font-size: 17px; transition: border-color 0.2s ease, color 0.2s ease;
            text-decoration: none;
        }
        .social-link:hover { border-color: var(--neon); color: var(--neon); }
        .footer-title { color: var(--text); font-size: 14px; font-weight: 700; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.8px; }
        .footer-links { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a { color: var(--text2); text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
        .footer-links a i { font-size: 9px; color: var(--neon); }
        .footer-links a:hover { color: var(--neon2); }
        .footer-contacts { list-style: none; padding: 0; }
        .footer-contacts li { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 13px; margin-bottom: 10px; }
        .footer-contacts li i { color: var(--neon); width: 18px; text-align: center; }
        .footer-bottom { padding: 22px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
        .footer-copyright { color: var(--text2); font-size: 13px; }
        .footer-bottom-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
        .footer-bottom-links a { color: var(--text2); text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
        .footer-bottom-links a:hover { color: var(--neon); }
        .separator { color: var(--border); }
        .footer-made-by { color: var(--text2); font-size: 13px; }
        .footer-made-by i { color: var(--neon); }
        @media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 768px) {
            :root { --header-height: 0px; }
            .main-content { padding-top: 16px; }
            .header { position: sticky; padding: 12px 14px; gap: 10px; }
            .logo-area { width: 100%; justify-content: center; }
            .logo-text { align-items: center; }
            #headerRight { justify-content: center; width: 100%; }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .form-row { grid-template-columns: 1fr; }
            .fuzzy-header-wrapper { padding: 20px 14px; border-radius: 14px; }
            .banner-carousel { gap: 12px; }
            .banner-card, .banner-empty { width: 260px; height: 112px; }
            .banner-server-name { font-size: 16px; }
            .banner-server-info { font-size: 10px; gap: 10px; }
            .partners-grid-modal { grid-template-columns: 1fr; }
            .review-item .review-header { flex-direction: column; align-items: flex-start; }
            .detail-server-info { grid-template-columns: 1fr; }
            .detail-server-actions .btn { flex: 1 1 100%; }
            .dropdown-wrapper .dropdown-menu { right: auto; left: 50%; transform: translateX(-50%) translateY(-6px); min-width: 210px; }
            .dropdown-wrapper.open .dropdown-menu { transform: translateX(-50%) translateY(0); }
            .steam-auth-wrapper { align-items: center; }
            #modalDetailChart .modal-content, .modal-content { padding: 20px 16px; }
            #scrollTopBtn { bottom: 20px; right: 16px; padding: 9px 15px; }
            .modal-content::-webkit-scrollbar { width: 4px; }
            .footer-grid { grid-template-columns: 1fr; gap: 28px; }
            .footer-bottom { flex-direction: column; text-align: center; }
            .footer-bottom-links { justify-content: center; }
			/* ✅ Улучшение карточек серверов для мобилок */
				.server-card {
					padding: 14px 12px !important;
				}
				.server-card .server-name {
					font-size: 14px !important;
					line-height: 1.3 !important;
				}
				.server-card .server-info {
					font-size: 11px !important;
					gap: 8px !important;
				}
				.server-card .server-actions {
					flex-direction: column !important;
					align-items: stretch !important;
					gap: 8px !important;
				}
				/* Кнопки на всю ширину и крупнее */
				.server-card .server-actions .btn,
				.server-card .server-actions .btn-sm {
					width: 100% !important;
					justify-content: center !important;
					padding: 12px 15px !important;
					font-size: 14px !important; /* Крупнее шрифт */
					border-radius: 10px !important;
					min-height: 44px; /* Стандарт удобного тапа пальцем */
				}
				/* Кнопки соцсетей делаем чуть крупнее */
				.server-card .social-btn {
					width: 32px !important;
					height: 32px !important;
					font-size: 14px !important;
				}
				
				/* Крошки на мобильных */
				#serverBreadcrumbs { font-size: 11px !important; }
        }
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: var(--neon); }
        * { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
		/* ✅ Стили для точки статуса и мини-графика */
		.status-dot {
			display: inline-block;
			width: 8px; height: 8px;
			border-radius: 50%;
			margin-right: 6px;
			flex-shrink: 0;
		}
		.status-dot.online { background-color: var(--green); box-shadow: 0 0 6px var(--green); }
		.status-dot.offline { background-color: var(--red); opacity: 0.7; }
		.server-mini-chart {
			display: inline-block;
			vertical-align: middle;
			height: 20px;
			width: 60px;
			margin-left: 8px;
			opacity: 0.7;
		}









