﻿/* ================= ПОЛНЫЙ CSS ФАЙЛ - ИСПРАВЛЕННАЯ ВЕРСИЯ (УБРАН АБСОЛЮТ У H1) ================= */
/* Меню красивое, шрифт Inter, улучшенная типографика */
/* Карточки: на всех экранах 100% ширины колонки */
/* Контейнер: ограничен 1400px для лучшей читаемости */
/* Иконки: bonus (синий), money (золотой), obt (зеленый) - как мультипрофа и ГВЕ */

/* ================= ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ================= */
/* ===== ТЕМНАЯ ТЕМА (ОСНОВНАЯ) ===== */
:root {
    /* Цвета фона и поверхностей */
    --bg-primary: #0F141A;
    --bg-card: #141A22;
    --bg-secondary: #1E2630;
    
    /* Цвета границ */
    --border-color: #1E2630;
    --border-hover: #334155;
    
    /* Цвета текста */
    --text-primary: #E5E7EB;
    --text-heading: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Цвета акцента (синий) */
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-active: #1D4ED8;
    
    /* Цвета кнопок */
    --btn-bg: #1E2630;
    --btn-text: #E5E7EB;
    --btn-hover: #2A3240;
    
    /* Эффекты */
    --shadow: rgba(0, 0, 0, 0.25);
    --overlay: rgba(0, 0, 0, 0.7);
    
    /* Специальные цвета для карточек серверов (Premium/VIP) */
    --premium-color: #C084FC;
    --premium-light: rgba(192, 132, 252, 0.25);
    --premium-border: rgba(192, 132, 252, 0.7);
    
    --vip-color: #FB923C;
    --vip-light: rgba(251, 146, 60, 0.25);
    --vip-border: rgba(251, 146, 60, 0.7);
    
    --normal-border: rgba(100, 116, 139, 0.2);
    
    /* Цвета для бейджей хроник */
    --chronicle-bg: #1E293B;
    --chronicle-border: #334155;
    --chronicle-text: #CBD5E1;
    
    /* Цвета для иконок-индикаторов (Bonus, Money, OBT, Multa, GvE) */
    --icon-bonus: #3B82F6;      /* Синий как акцент */
    --icon-money: #F59E0B;      /* Золотой */
    --icon-obt: #10B981;         /* Зеленый */
    --icon-multa: #ec4899;       /* Розовый как у мультипрофы */
    --icon-gve: #8b5cf6;         /* Фиолетовый как у ГВЕ */
}

/* Shared back-to-top control */
.scroll-to-top {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.24);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--accent-hover);
}

.scroll-to-top:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.35);
    outline-offset: 3px;
}

.scroll-to-top i {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .scroll-to-top {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-to-top {
        transition: none;
    }
}


/* ===== СВЕТЛАЯ ТЕМА ===== */
.light-theme {
    /* Цвета фона и поверхностей */
    --bg-primary: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-secondary: #F0F3F7;
    
    /* Цвета границ */
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    
    /* Цвета текста */
    --text-primary: #1F2A3A;
    --text-heading: #111827;
    --text-secondary: #4B5565;
    --text-muted: #6B7A8A;
    
    /* Цвета акцента (синий) */
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-active: #1E40AF;
    
    /* Цвета кнопок */
    --btn-bg: #F0F3F7;
    --btn-text: #1F2A3A;
    --btn-hover: #E2E8F0;
    
    /* Эффекты */
    --shadow: rgba(0, 0, 0, 0.05);
    --overlay: rgba(0, 0, 0, 0.5);
    
    /* Специальные цвета для карточек серверов (Premium/VIP) */
    --premium-color: #9333EA;
    --premium-light: rgba(147, 51, 234, 0.2);
    --premium-border: rgba(147, 51, 234, 0.6);
    
    --vip-color: #EA580C;
    --vip-light: rgba(234, 88, 12, 0.2);
    --vip-border: rgba(234, 88, 12, 0.6);
    
    --normal-border: rgba(59, 130, 246, 0.15);
    
    /* Цвета для бейджей хроник */
    --chronicle-bg: #F0F3F7;
    --chronicle-border: #CBD5E1;
    --chronicle-text: #4A5A6A;
    
    /* Цвета для иконок-индикаторов (Bonus, Money, OBT, Multa, GvE) */
    --icon-bonus: #2563EB;      /* Синий */
    --icon-money: #F59E0B;      /* Золотой */
    --icon-obt: #059669;         /* Зеленый */
    --icon-multa: #ec4899;       /* Розовый */
    --icon-gve: #7c3aed;         /* Фиолетовый */
}

/* ================= БАЗОВЫЕ СТИЛИ И СБРОСЫ ================= */
/* Сброс отступов для всех элементов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Настройка базового размера шрифта */
html {
    font-size: 16px;
}

/* Основные стили для body */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

/* ================= CSS ДЛЯ ОСНОВНОГО КОНТЕЙНЕРА ================= */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= CSS ДЛЯ ШАПКИ (HEADER) И НАВИГАЦИИ (NAV) ================= */
/* Стили для шапки */
.header {
    background-color: var(--bg-card);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

/* Навигационная панель */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    position: relative;
    min-height: 64px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Контейнер для меню и действий */
.nav-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Меню навигации */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

/* Ссылки в меню */
.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-block;
}

.nav-link:hover {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--accent);
}

/* Активная ссылка в меню */
.nav-link.active {
    background-color: transparent;
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Блок с действиями (кнопка темы) */
.nav-actions {
    display: flex;
    align-items: center;
}

/* Кнопка переключения темы */
.theme-toggle {
    background-color: transparent;
    color: var(--btn-text);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: var(--btn-hover);
    border-color: var(--accent);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

/* ================= CSS ДЛЯ БУРГЕР-МЕНЮ (МОБИЛЬНОГО) ================= */
/* Кнопка бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

/* Линии бургер-меню */
.burger-line {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* ================= CSS ДЛЯ БАННЕРА ================= */
/* Основной блок баннера */
.banner {
    position: relative;
    width: 100%;
    height: 650px;
    background-image: url('../img/banner-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    top: 0;
}

/* Затемнение/градиент поверх баннера */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(15, 20, 26, 0.2) 60%,
        rgba(15, 20, 26, 0.5) 70%,
        rgba(15, 20, 26, 0.8) 80%,
        var(--bg-primary) 90%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
}

/* Затемнение для светлой темы */
.light-theme .banner-overlay {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(245, 247, 250, 0.2) 60%,
        rgba(245, 247, 250, 0.5) 70%,
        rgba(245, 247, 250, 0.8) 80%,
        var(--bg-primary) 90%,
        var(--bg-primary) 100%
    );
}

/* ================= CSS ДЛЯ ОСНОВНОГО КОНТЕНТА ================= */
/* Главный контент, накладывается на баннер */
.main-content {
    position: relative;
    margin-top: -325px;
    z-index: 10;
    flex: 1;
    padding-top: 0;
}

/* Обертка для двух колонок (фильтры + серверы) */
.content-wrapper {
    display: flex;
    gap: 24px;
    position: relative;
}

/* ================= CSS ДЛЯ ЛЕВОЙ КОЛОНКИ (ФИЛЬТРЫ) ================= */
.filters-column {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 84px;
    max-height: none;
    overflow-y: visible;
    padding-bottom: 20px;
}

/* ВАЖНО: все прямые дети filters-column имеют отступ снизу 12px */
.filters-column > * {
    margin-bottom: 12px !important;
}

.filters-column > *:last-child {
    margin-bottom: 0 !important;
}

/* ===== ЗАГОЛОВОК СТРАНИЦЫ В ЛЕВОЙ КОЛОНКЕ ===== */
.page-header-card-visual {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 12px !important;
    width: 100%;
    box-sizing: border-box;
}

/* Главный заголовок страницы (например, "ТОП СЕРВЕРОВ") */
.page-title-main {
    color: var(--text-heading);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    word-break: break-word;
    line-height: 1.4;
    text-align: center;
}

/* Информационный блок под заголовком */
.page-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

/* Дата последнего обновления */
.last-update {
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

/* Общее количество серверов */
.total-servers {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    display: inline-block;
    margin: 0 auto;
}

/* ===== КНОПКА СБРОСА ФИЛЬТРОВ ===== */
.reset-filters-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 48px;
}

.reset-filters-btn.active {
    display: flex;
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* ===== КНОПКА ДЛЯ ОТКРЫТИЯ ФИЛЬТРОВ НА МОБИЛЬНЫХ ===== */
.mobile-filters-toggle {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-align: center;
    height: 48px;
}

.mobile-filters-toggle:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
}

.mobile-filters-actions {
    display: none;
}

/* ===== КАРТОЧКА С ФИЛЬТРАМИ ===== */
.filters-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 18px 16px;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
    margin-bottom: 12px !important;
}

/* Отдельная секция фильтра */
.filter-section {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
    text-align: left;
}

.filter-section:not(:first-child) {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Заголовок секции фильтра */
.filter-title {
    color: var(--text-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Сетка опций фильтра */
.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Отдельная опция фильтра (чекбокс + текст) */
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    margin: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.filter-option:hover {
    background-color: rgba(59, 130, 246, 0.15);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.filter-text {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-option input:checked ~ .filter-text {
    color: var(--accent);
    font-weight: 700;
}

/* Специальная сетка для фильтра хроник (Chronicles) */
.filter-options.chronicles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* Стили для ссылок-хроник */
.filter-option.chronicle-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
    color: var(--text-primary);
    min-height: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.filter-option.chronicle-link:hover {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    border-color: var(--accent);
}

.catalog-date-label {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.catalog-date-label:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.catalog-date-input {
    position: relative;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color-scheme: dark;
    font: inherit;
    cursor: pointer;
}

.catalog-date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.light-theme .catalog-date-input {
    color-scheme: light;
}

.catalog-date-input:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(59, 130, 246, 0.18);
    outline-offset: 1px;
}

.footer-notice {
    max-width: 980px;
    margin: 18px auto 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* Активная ссылка-хроника */
.filter-option.chronicle-link.active-chronicle-link {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
}

/* ===== КАРТОЧКА ДЛЯ РЕКЛАМЫ/БАННЕРА ===== */
.sidebar-visual-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 3px 15px var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    width: 100%;
    margin-bottom: 12px !important;
}

.sidebar-visual-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto;
}

/* ================= CSS ДЛЯ ПРАВОЙ КОЛОНКИ (СЕРВЕРЫ) ================= */
.servers-column {
    flex: 1;
    min-width: 0;
    width: calc(100% - 304px);
}

/* Основной контейнер для контента с серверами */
.servers-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    min-height: 600px;
}

/* ===== ДВУХКОЛОНОЧНАЯ СЕТКА ДЛЯ PREMIUM/VIP ===== */
.two-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Отдельная колонка (Premium или VIP) */
.column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Заголовок секции (Premium/VIP) */
.section-header {
    margin-bottom: 8px;
}

/* Карточка заголовка секции */
.section-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 8px;
}

/* Текст заголовка секции */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-heading);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.section-title i {
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

/* Счетчик количества серверов в секции */
.section-count {
    background-color: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* Список серверов */
.servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin-bottom: 5px;
}

.servers-list:last-child {
    margin-bottom: 0;
}

/* Контейнер для карточки сервера */
.server-card-container {
    display: block;
    width: 100%;
}

/* ================= CSS ДЛЯ КАРТОЧЕК СЕРВЕРОВ ================= */
/* Основная карточка сервера */
.server-card-new {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    min-height: 55px;
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.server-card-new:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--shadow);
}

/* ===== МОДИФИКАТОРЫ ДЛЯ PREMIUM КАРТОЧЕК ===== */
.server-card-new.premium-card-new {
    background: linear-gradient(145deg, 
        var(--premium-light) 0%,
        var(--bg-card) 60%,
        rgba(192, 132, 252, 0.15) 100%);
    border: 1.5px solid var(--premium-border);
}

.server-card-new.premium-card-new:hover {
    border-color: var(--premium-color);
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.2);
}

.light-theme .server-card-new.premium-card-new {
    background: linear-gradient(145deg, 
        rgba(147, 51, 234, 0.15) 0%,
        var(--bg-card) 60%,
        rgba(147, 51, 234, 0.08) 100%);
}

/* ===== МОДИФИКАТОРЫ ДЛЯ VIP КАРТОЧЕК ===== */
.server-card-new.vip-card-new {
    background: linear-gradient(145deg, 
        var(--vip-light) 0%,
        var(--bg-card) 70%,
        rgba(251, 146, 60, 0.12) 100%);
    border: 1.5px solid var(--vip-border);
}

.server-card-new.vip-card-new:hover {
    border-color: var(--vip-color);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.server-card-new.eternal-card-new {
    background: linear-gradient(145deg,
        rgba(16, 185, 129, 0.25) 0%,
        var(--bg-card) 60%,
        rgba(16, 185, 129, 0.15) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.7);
}

.server-card-new.eternal-card-new:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.eternal-card-new .eternal-icon {
    width: 22px;
    height: 22px;
    color: #34d399;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.7));
    flex-shrink: 0;
}

.eternal-card-new .eternal-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.eternal-card-new .server-name-new {
    color: #a7f3d0;
    font-weight: 800;
}

.eternal-card-new .server-type-new,
.eternal-card-new .multiplier-new,
.eternal-card-new .date-new {
    color: #a7f3d0;
}

.light-theme .server-card-new.vip-card-new {
    background: linear-gradient(145deg, 
        rgba(234, 88, 12, 0.12) 0%,
        var(--bg-card) 70%,
        rgba(234, 88, 12, 0.06) 100%);
}

.light-theme .server-card-new.eternal-card-new {
    background: linear-gradient(145deg,
        rgba(5, 150, 105, 0.15) 0%,
        var(--bg-card) 60%,
        rgba(5, 150, 105, 0.08) 100%);
    border-color: rgba(5, 150, 105, 0.6);
}

.light-theme .eternal-card-new .eternal-icon {
    color: #059669;
    filter: drop-shadow(0 0 4px rgba(5, 150, 105, 0.4));
}

.light-theme .eternal-card-new .server-name-new,
.light-theme .eternal-card-new .server-type-new,
.light-theme .eternal-card-new .multiplier-new,
.light-theme .eternal-card-new .date-new {
    color: #065f46;
}

/* ===== СТРУКТУРА КАРТОЧКИ ===== */
/* Ряд внутри карточки (десктоп) */
.server-row-new {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Блок с основной информацией о сервере */
.server-info-new {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

/* Иконка короны (для Premium) */
.crown-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.crown-icon svg {
    width: 100%;
    height: 100%;
}

.crown-icon svg path {
    fill: var(--premium-color);
}

/* Бейдж VIP */
.vip-badge {
    background: linear-gradient(135deg, var(--vip-color), #FB923C);
    color: white;
    font-weight: 800;
    font-size: 11px;
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 40px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Бейдж хроники */
.chronicle-badge {
    background: var(--chronicle-bg);
    color: var(--chronicle-text);
    font-weight: 800;
    font-size: 11px;
    border-radius: 6px;
    border: 1.5px solid var(--chronicle-border);
    padding: 4px 8px;
    min-width: 40px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Название сервера */
.server-name-new {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: 1.3;
}

/* Цвета названия для разных типов карточек (темная тема) */
.premium-card-new .server-name-new {
    color: #E9D5FF;
    font-weight: 800;
}

.vip-card-new .server-name-new {
    color: #FED7AA;
    font-weight: 800;
}

.normal-card-new .server-name-new {
    color: var(--text-heading);
    font-weight: 700;
}

/* Цвета названия для разных типов карточек (светлая тема) */
.light-theme .premium-card-new .server-name-new {
    color: #6B21A5;
    font-weight: 800;
}

.light-theme .vip-card-new .server-name-new {
    color: #C2410C;
    font-weight: 800;
}

.light-theme .normal-card-new .server-name-new {
    color: var(--text-heading);
}

/* Блок с деталями сервера (тип, множитель, дата) */
.server-details-new {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    margin-left: auto;
    flex-shrink: 0;
    overflow: hidden;
}

/* Цвета для деталей в разных карточках (темная тема) */
.premium-card-new .server-type-new,
.premium-card-new .multiplier-new,
.premium-card-new .date-new {
    color: #E9D5FF;
    font-weight: 700;
}

.vip-card-new .server-type-new,
.vip-card-new .multiplier-new,
.vip-card-new .date-new {
    color: #FED7AA;
    font-weight: 700;
}

.normal-card-new .server-type-new,
.normal-card-new .multiplier-new,
.normal-card-new .date-new {
    color: var(--text-primary);
    font-weight: 700;
}

/* Цвета для деталей в разных карточках (светлая тема) */
.light-theme .premium-card-new .server-type-new,
.light-theme .premium-card-new .multiplier-new,
.light-theme .premium-card-new .date-new {
    color: #6B21A5;
}

.light-theme .vip-card-new .server-type-new,
.light-theme .vip-card-new .multiplier-new,
.light-theme .vip-card-new .date-new {
    color: #C2410C;
}

/* Отдельные элементы деталей */
.server-type-new,
.multiplier-new,
.date-new {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.multiplier-new {
    min-width: 50px;
}

/* ===== ИНДИКАТОРЫ (ИКОНКИ) ===== */
.server-indicators-new {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* Базовая иконка-индикатор */
.indicator-new {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-new:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.indicator-icon i {
    font-size: 14px;
}

/* Цвета для разных типов индикаторов */
.indicator-new.bonus {
    color: var(--icon-bonus);
}

.indicator-new.money {
    color: var(--icon-money);
}

.indicator-new.obt {
    color: var(--icon-obt);
}

.indicator-new.multa {
    color: var(--icon-multa);
}

.indicator-new.gve {
    color: var(--icon-gve);
}

/* ================= CSS ДЛЯ УВЕДОМЛЕНИЙ О ФИЛЬТРАХ ================= */
/* Фиксированное сообщение о примененных фильтрах */
.filter-message-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    color: white;
    padding: 14px 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-message-fixed.active {
    transform: translateY(0);
}

/* Контент сообщения */
.filter-message-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Текст сообщения */
.filter-message-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* Кнопка в сообщении (например, "Показать") */
.filter-message-btn {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
    min-width: 110px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.filter-message-btn:hover {
    background: linear-gradient(135deg, #f8fafc, #f0f4f8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ================= CSS ДЛЯ ПУСТОГО СОСТОЯНИЯ СПИСКА СЕРВЕРОВ ================= */
.empty-servers {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    border: 2px dashed var(--border-color);
    min-height: 200px;
    margin: 10px 0;
    width: 100%;
}

.empty-servers i {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-servers h3 {
    color: var(--text-heading);
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-servers p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
}

/* ================= CSS ДЛЯ УЛУЧШЕННОГО SEO-КОНТЕНТА ================= */
.seo-content {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border-radius: 16px;
    padding: 28px 30px;
    margin-top: 30px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Декоративная полоска сверху */
.seo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--premium-color) 50%, var(--vip-color));
    opacity: 0.8;
}

/* Заголовок H2 в SEO-блоке */
.seo-content h2 {
    color: var(--text-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.seo-content h2 i {
    color: var(--accent);
    font-size: 24px;
    background: rgba(59, 130, 246, 0.15);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

/* Секция внутри SEO-блока */
.seo-section {
    position: relative;
    z-index: 2;
}

/* Заголовок H3 в SEO-блоке */
.seo-section h3 {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 16px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-section h3 i {
    color: var(--premium-color);
    font-size: 18px;
    background: rgba(192, 132, 252, 0.15);
    padding: 8px;
    border-radius: 8px;
}

/* Параграфы в SEO-блоке */
.seo-section p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.seo-section p a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 2px;
}

.seo-section p a:hover {
    color: var(--accent-hover);
}

/* Списки в SEO-блоке */
.seo-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 25px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seo-section ul li {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 28px;
    position: relative;
    font-weight: 500;
}

.seo-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 24px;
    line-height: 1.4;
    font-weight: bold;
}

.seo-section ul li strong {
    color: var(--accent);
    font-weight: 700;
}

/* ================= CSS ДЛЯ ФУТЕРА ================= */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 16px 0;
    margin-top: 32px;
    width: 100%;
}

/* Основное содержимое футера (три колонки) */
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
    margin-bottom: 24px;
}

/* Отдельная секция футера */
.footer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Заголовок секции футера */
.footer-title {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Текст в секции футера */
.footer-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

/* Подзаголовок (например, для "Навигация") */
.footer-subtitle {
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Список ссылок в футере */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* Ссылка в футере */
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--accent);
}

/* Нижняя часть футера с копирайтом */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* Копирайт */
.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Дополнительная информация (например, о принадлежности) */
.footer-info {
    color: var(--text-secondary);
    font-size: 11px;
    max-width: 600px;
    line-height: 1.4;
}

/* ================= CSS ДЛЯ ДРУГИХ СТРАНИЦ (VIP, ADD, POLICY, CONTACTS) ================= */
/* Общие стили для страниц с баннером */
.vip-page .banner,
.add-server-page .banner,
.policy-page .banner,
.contacts-page .banner {
    display: block !important;
    height: 650px;
}

.vip-page .main-content,
.add-server-page .main-content,
.policy-page .main-content,
.contacts-page .main-content {
    position: relative;
    margin-top: -325px;
    z-index: 10;
    flex: 1;
    padding-top: 0;
}

/* ===== СТИЛИ ДЛЯ VIP СТРАНИЦЫ ===== */
/* Заголовок страницы VIP */
.vip-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.vip-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 32px;
    color: var(--text-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    word-break: break-word;
    text-align: center;
}

.vip-page-title i {
    color: var(--accent);
    font-size: 28px;
}

/* Подзаголовок на VIP странице */
.vip-page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.vip-page-subtitle i {
    color: #F59E0B;
    margin-right: 8px;
}

.light-theme .vip-page-subtitle {
    color: #334155;
}

.dark-theme .vip-page-subtitle {
    color: #CBD5E1;
}

/* Сетка услуг на VIP странице */
.vip-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Отдельная секция услуги */
.vip-service-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vip-service-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent);
}

/* Заголовок секции услуги */
.vip-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.vip-section-header i {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.vip-section-header h2 {
    color: var(--text-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    word-break: break-word;
}

/* Контент секции услуги */
.vip-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vip-section-content p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    margin: 0;
}

/* Информационный блок внутри услуги */
.vip-info-box {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
}

.vip-info-box p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.vip-info-box p:last-child {
    margin-bottom: 0;
}

.vip-info-box strong {
    color: var(--text-heading);
}

/* Превью баннера для VIP */
.vip-banner-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Заглушка для баннера */
.vip-banner-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.vip-banner-placeholder.vip-main-banner {
    min-height: 200px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.05));
    border-color: rgba(147, 51, 234, 0.3);
}

.vip-banner-placeholder span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Спецификации баннера */
.vip-banner-specs {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Кнопка на VIP странице */
.vip-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    height: 48px;
}

.vip-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Кнопка отправки на странице добавления сервера */
.vip-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    height: 48px;
}

.vip-submit-button i:first-child {
    font-size: 18px;
}

.vip-submit-button i:last-child {
    margin-left: 8px;
    font-size: 16px;
}

.vip-submit-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦ ПОЛИТИКИ И КОНТАКТОВ ===== */
.policy-content,
.contacts-content {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Заголовок H1 */
.policy-content h1,
.contacts-content h1 {
    color: var(--text-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    word-break: break-word;
}

/* Дата документа */
.policy-date {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

/* Заголовок H3 */
.policy-content h3,
.contacts-content h3 {
    color: var(--text-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    word-break: break-word;
}

/* Параграф */
.policy-content p,
.contacts-content p {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Список */
.policy-content ul,
.contacts-content ul {
    margin: 0 0 25px 25px;
    padding: 0;
}

.policy-content li,
.contacts-content li {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
}

.policy-content li:before,
.contacts-content li:before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* Ссылки */
.policy-content a,
.contacts-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.policy-content a:hover,
.contacts-content a:hover {
    color: var(--accent-hover);
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ДОБАВЛЕНИЯ СЕРВЕРА ===== */
/* Специальная сетка для страницы добавления */
.add-server-page .vip-services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1280px;
    margin: 0 auto;
}

.add-server-page .vip-service-section {
    margin: 0;
    height: fit-content;
}

.add-server-page .vip-banner-preview {
    margin-bottom: 20px;
}

.add-server-page .vip-banner-placeholder {
    background: var(--bg-primary);
    border: 2px dashed var(--border-hover);
    padding: 25px;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-server-page .vip-banner-placeholder img {
    max-width: 100%;
    max-height: 60px;
}

.add-server-page .vip-info-box code {
    display: block;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    margin-top: 10px;
}

/* Список правил добавления */
.add-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.add-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.add-rules-list li i {
    color: var(--accent);
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.add-rules-list strong {
    color: var(--text-heading);
}

/* ===== ФОРМА ДОБАВЛЕНИЯ СЕРВЕРА ===== */
.add-server-page .add-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.add-server-page .add-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.add-server-page .add-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
}

.add-server-page .add-form-label i {
    color: var(--accent);
    width: 16px;
}

.add-server-page .add-form-label span {
    color: #EF4444;
    margin-left: 2px;
}

.add-server-page .add-form-input,
.add-server-page .add-form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.add-server-page .add-form-input:focus,
.add-server-page .add-form-select:focus {
    border-color: var(--accent);
    outline: none;
}

.add-server-page .add-form-select {
    appearance: auto;
}

.add-server-page .add-form-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.add-server-page .add-form-hint i {
    color: var(--accent);
}

/* ================= МОБИЛЬНАЯ АДАПТИВНОСТЬ (max-width: 768px) ================= */
@media (max-width: 768px) {
    .servers-list {
        gap: 8px;
    }

    /* Контейнер */
    .container {
        padding: 0 16px;
    }
    
    /* ===== БУРГЕР-МЕНЮ ===== */
    .burger {
        display: flex;
    }
    
    /* Мобильное меню, появляющееся из бургера */
    .nav-content {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 40px;
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(-20px);
    }
    
    .nav-content.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Анимация бургера при открытии */
    .burger.active .burger-line:nth-child(1) {
        transform: translateY(10.5px) rotate(45deg);
    }
    
    .burger.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .burger.active .burger-line:nth-child(3) {
        transform: translateY(-10.5px) rotate(-45deg);
    }
    
    /* Мобильное меню (список) */
    .nav-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-width: 300px;
        margin-bottom: 32px;
        text-align: center;
    }
    
    .nav-link {
        padding: 14px 20px;
        width: 100%;
        font-size: 16px;
        border-radius: 10px;
        text-align: center;
    }
    
    /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
    .main-content {
        margin-top: 0 !important;
        padding-top: 20px !important;
    }
    
    /* Скрываем баннер на мобильных */
    .banner {
        display: none;
    }
    
    .vip-page .banner,
    .add-server-page .banner,
    .policy-page .banner,
    .contacts-page .banner {
        display: none !important;
    }
    
    /* Колонки становятся вертикальными */
    .content-wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    /* ===== ФИЛЬТРЫ НА МОБИЛЬНЫХ ===== */
    .filters-column {
        width: 100%;
        position: static;
        margin-top: 0 !important;
    }
    
    .mobile-filters-toggle {
        display: flex;
    }

    .mobile-filters-toggle.active {
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent),
                    0 4px 12px rgba(37, 99, 235, 0.3);
    }
    
    .filters-card,
    .sidebar-visual-card {
        display: none;
    }
    
    .filters-card.active,
    .sidebar-visual-card.active {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .filters-card.active {
        align-items: stretch;
    }

    .filters-card.active .filter-section {
        width: 100%;
    }

    .mobile-filters-actions.active {
        position: fixed;
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
        z-index: 990;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px;
        background: var(--bg-card);
        background: color-mix(in srgb, var(--bg-card) 94%, transparent);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
        backdrop-filter: blur(12px);
    }

    .mobile-filters-apply,
    .mobile-filters-reset {
        min-height: 48px;
        border-radius: 10px;
        padding: 10px 16px;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-filters-apply {
        border: 0;
        color: #fff;
        background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    }

    .mobile-filters-reset {
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        background: var(--bg-secondary);
    }

    body.mobile-filters-open {
        padding-bottom: 86px;
    }

    body.mobile-filters-open .filter-message-fixed {
        display: none;
    }

    .sidebar-visual-card.mobile-inline-visual {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 16px 0 !important;
        padding: 0;
        text-align: center;
    }

    .sidebar-visual-card.mobile-inline-visual img {
        display: block;
        width: min(100%, 320px);
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
    }
    
    /* Специальные стили для сетки хроник внутри открытых фильтров */
    .filters-card.active .chronicles-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .filters-card.active .chronicles-grid .filter-option {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: 160px !important;
        height: auto !important;
        min-height: 60px !important;
        padding: 8px 6px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }
    
    .filters-card.active .chronicles-grid .filter-option .filter-text {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        margin: 0 !important;
        padding: 0 4px !important;
        line-height: 1.3 !important;
        display: block !important;
        word-break: break-word !important;
    }
    
    /* Стили для обычных опций фильтра в мобильном виде */
    .filters-card.active .filter-options:not(.chronicles-grid) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .filters-card.active .filter-options:not(.chronicles-grid) .filter-option {
        flex: 0 0 calc(50% - 4px) !important;
        max-width: 160px !important;
        height: auto !important;
        min-height: 60px !important;
        padding: 8px 6px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    .filters-card.active .filter-options:not(.chronicles-grid) .filter-option .filter-text {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--text-primary) !important;
        text-align: center !important;
        width: 100% !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        margin: 0 !important;
        padding: 0 4px !important;
        line-height: 1.3 !important;
        display: block !important;
        word-break: break-word !important;
    }
    
    /* Скрываем чекбоксы, оставляем только текст */
    .filters-card.active .filter-options:not(.chronicles-grid) .filter-option input[type="checkbox"] {
        display: none;
    }
    
    .filters-card.active .filter-options:not(.chronicles-grid) .filter-option input:checked ~ .filter-text {
        color: var(--accent) !important;
        font-weight: 800 !important;
    }
    
    /* Баннер в фильтрах на мобильных */
    .sidebar-visual-card.active {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
        text-align: center;
    }
    
    .sidebar-visual-card.active img {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* ===== КОЛОНКА СЕРВЕРОВ НА МОБИЛЬНЫХ ===== */
    .servers-column {
        width: 100%;
    }
    
    .servers-content {
        padding: 16px;
    }
    
    .two-columns-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .column {
        gap: 16px;
    }
    
    .section-card {
        padding: 12px 16px;
    }
    
    .section-title {
        font-size: 14px;
    }
    
    /* ===== МОБИЛЬНАЯ ВЕРСИЯ КАРТОЧКИ СЕРВЕРА ===== */
    .server-row-new {
        display: none !important;
    }
    
    .mobile-server-row {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .server-card-new {
        padding: 12px 12px;
        min-height: 70px;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    /* Верхний ряд с именем и индикаторами */
    .mobile-name-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 32px;
    }
    
    .mobile-name-container {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .crown-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
    
    .vip-badge,
    .chronicle-badge {
        font-size: 12px;
        padding: 4px 8px;
        min-width: 48px;
        height: 26px;
        border-radius: 8px;
        font-weight: 800;
    }
    
    .server-name-new {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.3px;
        word-break: break-word;
    }
    
    .server-indicators-new {
        gap: 8px;
        margin-left: 6px;
    }
    
    .indicator-new {
        width: 24px;
        height: 24px;
    }
    
    .indicator-icon i {
        font-size: 16px;
    }
    
    /* Нижний ряд с деталями (тип, множитель, дата) */
    .mobile-details-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding-top: 8px;
        margin-top: 2px;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-detail-item {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-detail-item .server-type-new,
    .mobile-detail-item .multiplier-new,
    .mobile-detail-item .date-new {
        font-size: 13px;
        font-weight: 700;
        min-width: auto;
        padding: 2px 0;
        text-align: center;
    }
    
    .mobile-detail-item:first-child {
        justify-content: flex-start;
    }
    .mobile-detail-item:last-child {
        justify-content: flex-end;
    }
    
    /* ===== ФУТЕР НА МОБИЛЬНЫХ ===== */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    /* ===== СООБЩЕНИЕ О ФИЛЬТРАХ НА МОБИЛЬНЫХ ===== */
    .filter-message-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .filter-message-btn {
        margin-left: 0;
        width: 100%;
    }
    
    /* ===== МОБИЛЬНЫЕ КНОПКИ ===== */
    .reset-filters-btn,
    .mobile-filters-toggle,
    .filter-message-btn,
    .vip-button,
    .vip-submit-button,
    .add-server-page .vip-contact-button {
        font-size: 15px !important;
        padding: 16px 20px !important;
        height: auto !important;
        min-height: 54px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ================= ДЕСКТОПНАЯ ВЕРСИЯ (min-width: 769px) ================= */
@media (min-width: 769px) {
    /* Скрываем мобильные элементы на десктопе */
    .mobile-server-row,
    .mobile-name-row,
    .mobile-name-container,
    .mobile-details-row,
    .mobile-detail-item {
        display: none !important;
    }
    
    /* Показываем десктопную версию карточки */
    .server-row-new,
    .server-info-new,
    .server-details-new {
        display: flex !important;
    }
    
    /* Фильтры в виде сетки */
    .filter-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================= СИСТЕМА ТУЛТИПОВ ================= */
/* Основной стиль для кастомного тултипа */
.custom-tooltip {
    position: fixed;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 250px;
    word-wrap: break-word;
    z-index: 100000;
    pointer-events: none;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1.5px solid var(--border-color);
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Стрелка тултипа */
.custom-tooltip::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    left: 50%;
    transform: translateX(-50%);
}

/* Положение стрелки для разных placement */
.custom-tooltip[data-placement="bottom"]::after {
    top: -6px;
    border-bottom: 6px solid var(--bg-card);
}

.custom-tooltip[data-placement="top"]::after {
    bottom: -6px;
    border-top: 6px solid var(--bg-card);
}

/* Мобильные тултипы (центрированные) */
@media (max-width: 768px) {
    .custom-tooltip {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        padding: 20px 24px;
        font-size: 16px;
        max-width: 85%;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        animation: tooltipFadeIn 0.2s ease;
    }
    
    .custom-tooltip::after {
        display: none;
    }
}

/* Анимация появления мобильного тултипа */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Кнопка закрытия тултипа (только на мобильных) */
.custom-tooltip .close-btn {
    display: none;
}

@media (max-width: 768px) {
    .custom-tooltip .close-btn {
        display: block;
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: auto;
        color: var(--text-secondary);
        font-size: 18px;
    }
    
    .custom-tooltip .close-btn:hover {
        background: rgba(0, 0, 0, 0.2);
        color: var(--text-primary);
    }
}

/* Оверлей (затемнение) под мобильным тултипом */
.tooltip-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    animation: overlayFadeIn 0.2s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .tooltip-overlay.active {
        display: block;
    }
}

/* ================= СПЕЦИАЛЬНЫЕ БЕЙДЖИ (GvE, Multa) ================= */
/* Бейдж для GvE */
.chronicle-badge.gve-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
    border-color: #a78bfa;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Бейдж для Multa */
.chronicle-badge.multa-badge {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border-color: #f9a8d4;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* Бейдж-корона (для особых серверов) */
.crown-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    flex-shrink: 0;
}

.crown-badge.gve-crown {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.crown-badge.multa-crown {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* VIP-бейджи для GvE и Multa */
.vip-badge.gve-vip {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.vip-badge.multa-vip {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* Активная ссылка-хроника */
.filter-option.chronicle-link.active {
    background-color: #3B82F6 !important;
    border: 2px solid #2563EB !important;
    color: white !important;
    font-weight: 800 !important;
}

.filter-option.chronicle-link.active .filter-text {
    color: white !important;
    font-weight: 800 !important;
}

/* Активная ссылка в навигации (дубль для надежности) */
.nav-link.active {
    background-color: transparent !important;
    color: var(--accent) !important;
    font-weight: 600 !important;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* ================= ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ БАННЕРОВ ================= */
/* Фиксированные размеры для изображений в рекламных карточках */
.sidebar-visual-card img {
    width: 240px;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: block;
    margin: 0 auto;
}
/* ================= СТАНДАРТИЗИРОВАННЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ДОБАВЛЕНИЯ СЕРВЕРА ================= */

/* Заголовок страницы - точно как на VIP */
.add-server-page .vip-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
    width: 100%;
    max-width: 1400px; /* Ограничиваем как на VIP */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.add-server-page .vip-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 32px;
    color: var(--text-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.add-server-page .vip-page-title i {
    color: var(--accent);
    font-size: 28px;
}

.add-server-page .vip-page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

/* Контейнер для карточек - точно как на VIP */
.add-server-page .vip-services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    max-width: 1400px; /* Ограничиваем как на VIP */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Карточки - точно как на VIP */
.add-server-page .vip-service-section {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

/* Заголовки секций */
.add-server-page .vip-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.add-server-page .vip-section-header i {
    font-size: 24px;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.add-server-page .vip-section-header h2 {
    color: var(--text-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

/* Контент секций */
.add-server-page .vip-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ===== ЛЕВАЯ КОЛОНКА - БАННЕР ===== */
.add-server-page .vip-banner-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.add-server-page .vip-banner-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
}

.add-server-page .vip-banner-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 20px;           /* Уменьшил с 40px 20px до 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: auto;        /* Убрал фиксированную минимальную высоту */
    box-sizing: border-box;
}

.add-server-page .vip-banner-placeholder img {
    max-width: 100%;         /* На всю ширину контейнера */
    max-height: none;        /* Без ограничения высоты */
    width: 100%;             /* Растянуть на всю ширину */
    height: auto;            /* Автоматическая высота */
    object-fit: contain;
    filter: none;
}

/* Для темной темы оставляем как есть */
.dark-theme .add-server-page .vip-banner-placeholder img {
    filter: none;
}

/* Для светлой темы тоже без изменений */
.light-theme .add-server-page .vip-banner-placeholder img {
    filter: none;
}

/* Блок с HTML кодом */
.add-server-page .vip-info-box {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
}

.add-server-page .vip-info-box p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-heading);
    font-weight: 600;
}

.add-server-page .vip-info-box p i {
    color: var(--accent);
}

.add-server-page .vip-info-box code {
    display: block;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.5;
    width: 100%;
    box-sizing: border-box;
}

/* Список условий */
.add-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.add-rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    width: 100%;
}

.add-rules-list li i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}

.add-rules-list li strong {
    color: var(--text-heading);
    font-weight: 700;
}

/* Кнопка Telegram */
.add-server-page .vip-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    height: 48px;
}

.add-server-page .vip-contact-button i {
    font-size: 18px;
}

.add-server-page .vip-contact-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* ===== ПРАВАЯ КОЛОНКА - ФОРМА ===== */
.add-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.add-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.add-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-heading);
    font-size: 14px;
    font-weight: 600;
}

.add-form-label i {
    color: var(--accent);
    width: 16px;
    font-size: 14px;
}

.add-form-label span {
    color: #EF4444;
    margin-left: 2px;
    font-weight: 700;
}

.add-form-input,
.add-form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    height: 48px;
    box-sizing: border-box;
}

.add-form-input:focus,
.add-form-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-form-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.add-form-select {
    cursor: pointer;
    appearance: auto;
}

.add-form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.add-form-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.add-form-hint i {
    color: var(--accent);
    font-size: 12px;
}

/* Кнопка отправки */
.vip-submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    text-align: center;
}

.vip-submit-button i:first-child {
    font-size: 18px;
}

.vip-submit-button i:last-child {
    margin-left: 8px;
    font-size: 16px;
}

.vip-submit-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Текст согласия */
.add-form + p {
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

.add-form + p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.add-form + p a:hover {
    color: var(--accent-hover);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .add-server-page .vip-services-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .add-server-page .vip-service-section {
        padding: 20px;
    }
    
    .add-server-page .vip-page-title {
        font-size: 24px;
    }
    
    .add-server-page .vip-page-title i {
        font-size: 22px;
    }
    
    .add-server-page .vip-page-subtitle {
        font-size: 14px;
    }
    
    .add-server-page .vip-section-header h2 {
        font-size: 18px;
    }
    
    .add-server-page .vip-section-header i {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .add-server-page .vip-banner-placeholder {
        padding: 30px 15px;
        min-height: 120px;
    }
    
    .add-server-page .vip-banner-placeholder img {
        max-width: 140px;
        max-height: 50px;
    }
    
    .add-server-page .vip-info-box code {
        font-size: 12px;
        padding: 10px;
    }
    
    .add-rules-list li {
        font-size: 13px;
    }
    
    .add-server-page .vip-contact-button,
    .vip-submit-button {
        padding: 16px 20px !important;
        font-size: 15px !important;
        height: auto !important;
        min-height: 54px !important;
    }
    
    .add-form-input,
    .add-form-select {
        height: 44px;
        padding: 10px 14px;
    }
    
    .add-form-label {
        font-size: 13px;
    }
    
    .add-form-hint {
        font-size: 11px;
    }
}
/* ================= ПОЛНЫЙ CSS ФАЙЛ - СТАНДАРТИЗИРОВАННАЯ ВЕРСИЯ ================= */
/* ================= ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ================= */
:root {
    /* Цвета фона и поверхностей */
    --bg-primary: #0F141A;
    --bg-card: #141A22;
    --bg-secondary: #1E2630;
    
    /* Цвета границ */
    --border-color: #1E2630;
    --border-hover: #334155;
    
    /* Цвета текста */
    --text-primary: #E5E7EB;
    --text-heading: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    /* Цвета акцента */
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-active: #1D4ED8;
    
    /* Специальные цвета */
    --premium-color: #C084FC;
    --premium-light: rgba(192, 132, 252, 0.25);
    --vip-color: #FB923C;
    --vip-light: rgba(251, 146, 60, 0.25);
    
    /* ===== СИСТЕМА ОТСТУПОВ (SPACING SCALE) ===== */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 20px;
    --space-xl: 24px;
    --space-xxl: 32px;
    
    /* ===== СТАНДАРТНЫЕ РАЗМЕРЫ ===== */
    --card-height-Gridtop: 60px;
    --card-height-mobile: 68px;
    --icon-size: 20px;
    --icon-size-mobile: 24px;
    --badge-height: 22px;
    --badge-height-mobile: 22px;
    --border-radius-card: 10px;
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* ===== ТИПОГРАФИКА ===== */
    --font-size-xs: 11px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 15px;
    --font-size-xl: 16px;
    --font-size-xxl: 18px;
    --font-size-title: 22px;
    --font-size-display: 32px;
    
    --line-height-tight: 1.3;
    --line-height-base: 1.5;
    --line-height-loose: 1.6;
}

/* ===== СВЕТЛАЯ ТЕМА ===== */
.light-theme {
    --bg-primary: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-secondary: #F0F3F7;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    --text-primary: #1F2A3A;
    --text-heading: #111827;
    --text-secondary: #4B5565;
    --text-muted: #6B7A8A;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --accent-active: #1E40AF;
    --premium-color: #9333EA;
    --premium-light: rgba(147, 51, 234, 0.2);
    --vip-color: #EA580C;
    --vip-light: rgba(234, 88, 12, 0.2);
}

/* ================= БАЗОВЫЕ СТИЛИ ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-base);
    font-size: var(--font-size-lg);
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ================= СТАНДАРТИЗИРОВАННАЯ ТИПОГРАФИКА ================= */
h1, .h1 {
    font-size: var(--font-size-display);
    font-weight: 800;
    color: var(--text-heading);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-lg);
}

h2, .h2 {
    font-size: var(--font-size-title);
    font-weight: 700;
    color: var(--text-heading);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-md);
}

h3, .h3 {
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-heading);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.text-sm {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-base);
    color: var(--text-secondary);
}

.text-xs {
    font-size: var(--font-size-xs);
    line-height: var(--line-height-base);
    color: var(--text-muted);
}

/* ================= СТАНДАРТИЗИРОВАННЫЕ КАРТОЧКИ СЕРВЕРОВ ================= */
.server-card-container {
    display: block;
    width: 100%;
}

/* Базовая карточка сервера */
.server-card-new {
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    height: var(--card-height-Gridtop);
    min-height: var(--card-height-Gridtop);
    width: 100%;
    border-radius: var(--border-radius-card);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.server-card-new:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Premium карточка */
.server-card-new.premium-card-new {
    background: linear-gradient(145deg, 
        var(--premium-light) 0%,
        var(--bg-card) 60%,
        rgba(192, 132, 252, 0.15) 100%);
    border-color: var(--premium-color);
}

.server-card-new.premium-card-new:hover {
    border-color: var(--premium-color);
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.2);
}

/* VIP карточка */
.server-card-new.vip-card-new {
    background: linear-gradient(145deg, 
        var(--vip-light) 0%,
        var(--bg-card) 70%,
        rgba(251, 146, 60, 0.12) 100%);
    border-color: var(--vip-color);
}

.server-card-new.vip-card-new:hover {
    border-color: var(--vip-color);
    box-shadow: 0 4px 12px rgba(251, 146, 60, 0.2);
}

.server-card-new.eternal-card-new {
    background: linear-gradient(145deg,
        rgba(16, 185, 129, 0.25) 0%,
        var(--bg-card) 60%,
        rgba(16, 185, 129, 0.15) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.7);
}

.server-card-new.eternal-card-new:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.eternal-card-new .eternal-icon {
    width: 22px;
    height: 22px;
    color: #34d399;
    filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.7));
    flex-shrink: 0;
}

.eternal-card-new .eternal-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.eternal-card-new .server-name-new {
    color: #a7f3d0;
    font-weight: 800;
}

.eternal-card-new .server-type-new,
.eternal-card-new .multiplier-new,
.eternal-card-new .date-new {
    color: #a7f3d0;
}

/* Обычные карточки должны оставаться различимыми в плотном списке */
.server-card-new.normal-card-new:not(.eternal-card-new) {
    border-color: rgba(148, 163, 184, 0.38);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(51, 65, 85, 0.14) 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.light-theme .server-card-new.normal-card-new:not(.eternal-card-new) {
    border-color: #CBD5E1;
    background: #FFFFFF;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

/* Структура карточки (десктоп) */
.server-row-new {
    display: flex;
    align-items: center;
    width: 100%;
    gap: var(--space-sm);
    height: 100%;
}

.server-info-new {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
    min-width: 0;
}

/* Иконки и бейджи */
.crown-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    flex-shrink: 0;
}

.crown-icon svg {
    width: 100%;
    height: 100%;
}

.crown-icon svg path {
    fill: var(--premium-color);
}

.vip-badge {
    background: linear-gradient(135deg, var(--vip-color), #FB923C);
    color: white;
    font-weight: 800;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius-sm);
    padding: 0 var(--space-xs);
    height: var(--badge-height);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.chronicle-badge {
    background: var(--chronicle-bg);
    color: var(--chronicle-text);
    font-weight: 800;
    font-size: var(--font-size-xs);
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--chronicle-border);
    padding: 0 var(--space-xs);
    height: var(--badge-height);
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.server-name-new {
    font-size: var(--font-size-base);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    line-height: var(--line-height-tight);
}

/* Индикаторы */
.server-indicators-new {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: var(--space-xs);
    flex-shrink: 0;
}

.indicator-new {
    width: var(--icon-size);
    height: var(--icon-size);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.indicator-new:hover {
    transform: scale(1.1);
}

.indicator-icon i {
    font-size: var(--font-size-base);
}

/* Детали сервера */
.server-details-new {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
    flex-shrink: 0;
}

.server-type-new,
.multiplier-new,
.date-new {
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    flex-shrink: 0;
}

.multiplier-new {
    min-width: 50px;
}

/* ================= СТАНДАРТИЗИРОВАННЫЕ VIP-КАРТОЧКИ ================= */
.vip-service-section {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vip-service-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent);
}

.vip-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
}

.vip-section-header i {
    font-size: var(--font-size-xl);
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
}

.vip-section-header h2 {
    font-size: var(--font-size-title);
    font-weight: 700;
    margin: 0;
    color: var(--text-heading);
}

.vip-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.vip-section-content p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-loose);
    color: var(--text-primary);
    margin: 0;
}

/* Информационный блок */
.vip-info-box {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-color);
}

.vip-info-box p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: var(--space-xs);
}

.vip-info-box p:last-child {
    margin-bottom: 0;
}

.vip-info-box strong {
    color: var(--text-heading);
    font-weight: 700;
}

/* Превью баннера */
.vip-banner-preview {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.vip-banner-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--border-radius-md);
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.vip-banner-placeholder.vip-main-banner {
    min-height: 200px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(147, 51, 234, 0.05));
    border-color: rgba(147, 51, 234, 0.3);
}

.vip-banner-placeholder span {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vip-banner-specs {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    padding: var(--space-xs);
    background: var(--bg-primary);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

/* Стандартизированная кнопка */
.vip-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 14px var(--space-xl);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    height: 48px;
}

.vip-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-active));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.vip-button i {
    font-size: var(--font-size-xl);
}

/* ================= СТАНДАРТИЗИРОВАННЫЕ ЗАГОЛОВКИ СТРАНИЦ ================= */
.vip-page-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    padding: var(--space-xxl);
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.vip-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-display);
    color: var(--text-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.vip-page-title i {
    color: var(--accent);
    font-size: 28px;
}

.vip-page-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: var(--line-height-base);
}

/* ================= СЕТКА ДЛЯ VIP-УСЛУГ ================= */
.vip-services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xxl);
}

/* ================= МОБИЛЬНАЯ АДАПТАЦИЯ (max-width: 768px) ================= */
@media (max-width: 768px) {
    /* Контейнер */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Типографика */
    h1, .h1 {
        font-size: 28px;
    }
    
    h2, .h2 {
        font-size: var(--font-size-lg);
    }
    
    p {
        font-size: var(--font-size-base);
    }
    
    /* Мобильная карточка сервера */
    .server-card-new {
        height: auto;
        min-height: var(--card-height-mobile);
        padding: 8px 12px;
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--border-radius-md);
    }
    
    .server-row-new {
        display: none !important;
    }
    
    .mobile-server-row {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    
    .mobile-name-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 24px;
    }
    
    .mobile-name-container {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }
    
    .crown-icon {
        width: var(--icon-size-mobile);
        height: var(--icon-size-mobile);
    }
    
    .vip-badge,
    .chronicle-badge {
        height: var(--badge-height-mobile);
        min-width: 36px;
        font-size: var(--font-size-xs);
        padding: 0 6px;
    }
    
    .server-name-new {
        font-size: 14px;
        font-weight: 700;
        line-height: 1.25;
    }
    
    .server-indicators-new {
        gap: 6px;
        margin-left: 6px;
    }
    
    .indicator-new {
        width: var(--icon-size-mobile);
        height: var(--icon-size-mobile);
    }
    
    .indicator-icon i {
        font-size: 14px;
    }
    
    .mobile-details-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 22px;
        padding-top: 4px;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-detail-item {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .mobile-detail-item .server-type-new,
    .mobile-detail-item .multiplier-new,
    .mobile-detail-item .date-new {
        font-size: 12px;
        font-weight: 700;
        line-height: 1.25;
        min-width: auto;
        padding: 0;
        text-align: center;
    }
    
    .mobile-detail-item:first-child {
        justify-content: flex-start;
    }
    
    .mobile-detail-item:last-child {
        justify-content: flex-end;
    }
    
    /* VIP-карточки на мобильных */
    .vip-service-section {
        padding: var(--space-lg);
    }
    
    .vip-section-header {
        height: auto;
        min-height: 50px;
    }
    
    .vip-section-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .vip-banner-placeholder {
        min-height: 100px;
        padding: var(--space-lg) var(--space-md);
    }
    
    .vip-banner-placeholder.vip-main-banner {
        min-height: 150px;
    }
    
    .vip-banner-placeholder span {
        font-size: var(--font-size-sm);
    }
    
    .vip-button {
        padding: 16px var(--space-lg);
        height: auto;
        min-height: 52px;
        font-size: 15px;
    }
    
    /* Заголовок страницы на мобильных */
    .vip-page-header {
        padding: var(--space-lg);
        margin-bottom: var(--space-xl);
    }
    
    .vip-page-title {
        font-size: 24px;
    }
    
    .vip-page-title i {
        font-size: 22px;
    }
    
    /* Сетка для VIP-услуг */
    .vip-services-container {
        gap: var(--space-lg);
    }
    
    /* Кнопки на мобильных */
    .reset-filters-btn,
    .mobile-filters-toggle,
    .filter-message-btn,
    .vip-submit-button,
    .add-server-page .vip-contact-button {
        font-size: 15px !important;
        padding: 16px 20px !important;
        height: auto !important;
        min-height: 54px !important;
    }
}

/* ================= ДЕСКТОПНАЯ ВЕРСИЯ ================= */
@media (min-width: 769px) {
    .mobile-server-row {
        display: none !important;
    }
    
    .server-row-new {
        display: flex !important;
    }

    /* Keep the characteristics visually connected to the server name.
       The title area may shrink on narrow desktop cards, while wide cards
       no longer stretch the chronicle, rate and date to the far edge. */
    .server-info-new {
        flex: 0 1 230px;
        max-width: 230px;
    }

    .server-details-new {
        margin-left: 0;
    }
}

/* ================= СТАНДАРТИЗИРОВАННЫЕ ЦВЕТА ДЛЯ ТЕКСТА ================= */
.premium-card-new .server-name-new,
.premium-card-new .server-type-new,
.premium-card-new .multiplier-new,
.premium-card-new .date-new {
    color: #E9D5FF;
    font-weight: 800;
}

.vip-card-new .server-name-new,
.vip-card-new .server-type-new,
.vip-card-new .multiplier-new,
.vip-card-new .date-new {
    color: #FED7AA;
    font-weight: 800;
}

.light-theme .premium-card-new .server-name-new,
.light-theme .premium-card-new .server-type-new,
.light-theme .premium-card-new .multiplier-new,
.light-theme .premium-card-new .date-new {
    color: #6B21A5;
}

.light-theme .vip-card-new .server-name-new,
.light-theme .vip-card-new .server-type-new,
.light-theme .vip-card-new .multiplier-new,
.light-theme .vip-card-new .date-new {
    color: #C2410C;
}

/* ================= ЦВЕТА ИНДИКАТОРОВ ================= */
.indicator-new.bonus { color: var(--icon-bonus); }
.indicator-new.money { color: var(--icon-money); }
.indicator-new.obt { color: var(--icon-obt); }
.indicator-new.multa { color: var(--icon-multa); }
.indicator-new.gve { color: var(--icon-gve); }

/* Индикаторы и тултипы наследуют тон выделенной карточки */
.premium-card-new .indicator-new,
.premium-card-new .indicator-icon i {
    color: #e9d5ff;
}

.vip-card-new .indicator-new,
.vip-card-new .indicator-icon i {
    color: #fed7aa;
}

.eternal-card-new .indicator-new,
.eternal-card-new .indicator-icon i {
    color: #a7f3d0;
}

.light-theme .premium-card-new .indicator-new,
.light-theme .premium-card-new .indicator-icon i {
    color: #6b21a5;
}

.light-theme .vip-card-new .indicator-new,
.light-theme .vip-card-new .indicator-icon i {
    color: #c2410c;
}

.light-theme .eternal-card-new .indicator-new,
.light-theme .eternal-card-new .indicator-icon i {
    color: #065f46;
}

.custom-tooltip.premium-tooltip {
    color: #e9d5ff;
    border-color: rgba(192, 132, 252, 0.7);
}

.custom-tooltip.vip-tooltip {
    color: #fed7aa;
    border-color: rgba(251, 146, 60, 0.7);
}

.custom-tooltip.eternal-tooltip {
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.7);
}

.light-theme .custom-tooltip.premium-tooltip {
    color: #6b21a5;
    border-color: rgba(147, 51, 234, 0.6);
}

.light-theme .custom-tooltip.vip-tooltip {
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.6);
}

.light-theme .custom-tooltip.eternal-tooltip {
    color: #065f46;
    border-color: rgba(5, 150, 105, 0.6);
}

/* VIP examples need enough width to preserve the full server identity. */
.vip-page .vip-services-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vip-card-example .server-info-new {
    min-width: 140px;
}

.vip-card-example .server-name-new {
    min-width: 88px;
}

@media (min-width: 769px) and (max-width: 1050px) {
    .vip-page .vip-services-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .vip-page .vip-services-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .vip-card-example .server-info-new,
    .vip-card-example .server-name-new {
        min-width: 0;
    }
}
/* ================= SERVICE PAGES: PRODUCT LAYOUT ================= */
.vip-page .banner,
.add-server-page .banner {
    height: 480px !important;
}

.vip-page .main-content,
.add-server-page .main-content {
    margin-top: -155px;
}

.vip-page .vip-page-header,
.add-server-page .vip-page-header {
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 24px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 3px 15px var(--shadow);
}

.vip-page .vip-page-header {
    width: 100%;
    max-width: none;
    padding: 18px 20px;
}

.vip-page .vip-page-title {
    margin-bottom: 0;
}

.vip-page .vip-page-title,
.add-server-page .vip-page-title {
    justify-content: center;
    margin-bottom: 10px;
    color: var(--text-heading);
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    text-shadow: none;
}

.vip-page .vip-page-subtitle,
.add-server-page .vip-page-subtitle {
    display: block;
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.vip-page .vip-page-header > .vip-info-box {
    max-width: 980px;
    margin-top: 18px;
    padding: 16px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    backdrop-filter: none;
}

.vip-page .vip-page-header > .vip-info-box p {
    color: var(--text-primary);
}

.vip-page .vip-services-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.vip-page .vip-service-section,
.add-server-page .vip-service-section {
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 12px var(--shadow);
}

.vip-page .vip-service-section:hover,
.add-server-page .vip-service-section:hover {
    transform: none;
    box-shadow: 0 4px 18px var(--shadow);
}

.vip-page .vip-section-header,
.add-server-page .vip-section-header {
    min-height: 52px;
    height: auto;
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.vip-page .vip-section-header h2,
.add-server-page .vip-section-header h2 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: 0;
}

.vip-page .vip-section-content,
.add-server-page .vip-section-content {
    gap: 16px;
}

.vip-page .vip-section-content > p {
    font-size: 14px;
    line-height: 1.55;
}

/* Embedded examples use the same stable two-row card at every panel width. */
.vip-page .vip-card-example .server-row-new {
    display: none !important;
}

.vip-page .vip-card-example .mobile-server-row {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.vip-page .vip-card-example .mobile-name-row,
.vip-page .vip-card-example .mobile-name-container,
.vip-page .vip-card-example .mobile-details-row,
.vip-page .vip-card-example .mobile-detail-item {
    display: flex !important;
}

.vip-page .vip-card-example .mobile-name-row,
.vip-page .vip-card-example .mobile-details-row {
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.vip-page .vip-card-example .mobile-name-container {
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.vip-page .vip-card-example .mobile-detail-item {
    flex: 1;
    justify-content: center;
}

.vip-page .vip-card-example .server-name-new {
    min-width: 0;
}

.add-server-page .vip-services-container {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 18px;
    max-width: 1180px;
}

.add-server-page .add-form-panel {
    order: 1;
}

.add-server-page .add-guide-panel {
    order: 2;
}

.add-server-page .add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.add-server-page .add-form-group:first-child,
.add-server-page .add-form-group:nth-child(4),
.add-server-page .vip-submit-button,
.add-server-page .add-form-consent {
    grid-column: 1 / -1;
}

.add-server-page .add-form-input,
.add-server-page .add-form-select {
    min-height: 48px;
    border-radius: 6px;
}

.add-server-page .add-form-input[type="date"] {
    color-scheme: dark;
}

.light-theme.add-server-page .add-form-input[type="date"] {
    color-scheme: light;
}

.add-server-page .vip-banner-placeholder {
    padding: 18px;
}

.add-server-page .vip-banner-placeholder img {
    max-height: 72px;
    object-fit: contain;
}

.add-server-page .add-form-consent {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.add-server-page .add-form-consent a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.add-server-page .add-form-consent a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) and (max-width: 1199px) {
    .vip-page .vip-services-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .add-server-page .vip-services-container {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .vip-page .main-content,
    .add-server-page .main-content {
        margin-top: 0;
        padding-top: 24px;
    }

    .vip-page .vip-page-header,
    .add-server-page .vip-page-header {
        margin-bottom: 20px;
        padding: 18px;
    }

    .vip-page .vip-page-title,
    .add-server-page .vip-page-title {
        font-size: 26px;
    }

    .vip-page .vip-page-subtitle,
    .add-server-page .vip-page-subtitle {
        font-size: 14px;
    }

    .vip-page .vip-page-header > .vip-info-box {
        margin-top: 14px;
        padding-top: 14px;
    }

    .vip-page .vip-page-header > .vip-info-box p {
        color: var(--text-primary);
    }

    .vip-page .vip-services-container,
    .add-server-page .vip-services-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .vip-page .vip-service-section,
    .add-server-page .vip-service-section {
        padding: 16px;
    }

    .add-server-page .add-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .add-server-page .add-form-group,
    .add-server-page .vip-submit-button,
    .add-server-page .add-form-consent {
        grid-column: 1;
    }
}

/* Очень узкие окна и встроенные браузеры: сохраняем читаемость без наложений */
@media (max-width: 340px) {
    .main-content > .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .servers-content {
        padding: 10px;
    }

    .section-card {
        padding: 10px 12px;
    }

    .section-title {
        gap: 7px;
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .section-title i {
        font-size: 15px;
    }

    .section-count {
        min-width: 26px;
        margin-left: 8px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .server-card-new {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-name-container {
        gap: 6px;
    }

    .eternal-card-new .eternal-icon,
    .crown-icon {
        width: 22px;
        height: 22px;
    }

    .server-indicators-new {
        gap: 4px;
        margin-left: 4px;
    }

    .indicator-new {
        width: 20px;
        height: 20px;
    }

    .mobile-details-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 0;
    }

    .mobile-detail-item {
        min-width: 0;
    }

    .mobile-detail-item .server-type-new,
    .mobile-detail-item .multiplier-new,
    .mobile-detail-item .date-new {
        min-width: 0;
        font-size: 11px;
    }

    .mobile-detail-item .server-type-new {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-detail-item .multiplier-new,
    .mobile-detail-item .date-new {
        overflow: hidden;
        text-overflow: clip;
    }
}

