/* ================================= */
    /* СТИЛИ ДЛЯ КАРТОЧЕК КЕЙСОВ         */
    /* ================================= */
    .case-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.05);
        transition: all 0.3s ease;
    }
    .case-card:hover {
        border-color: rgba(33, 150, 243, 0.3);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    .case-icon-img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        margin-bottom: 15px;
        filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    }

    /* ================================= */
    /* МОДАЛЬНОЕ ОКНО СОДЕРЖИМОГО КЕЙСА   */
    /* ================================= */
    .case-content-modal {
        background: #ced4da !important; /* Светлый фон как у привилегий */
        border-radius: 20px !important;
        padding: 30px !important;
        max-width: 550px !important;
        width: 90%;
        text-align: center;
        box-shadow: 0 15px 50px rgba(0,0,0,0.3);
        position: relative;
    }
    
    .case-content-title {
        font-size: 24px;
        font-weight: 800;
        color: #1a1c20;
        margin-bottom: 10px;
    }
    .case-content-desc {
        color: #5f666f;
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    /* Сетка предметов внутри кейса */
    .drop-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        background: #848b94; /* Темный фон как у привилегий */
        border-radius: 16px;
        padding: 20px;
        max-height: 300px;
        overflow-y: auto;
        margin-bottom: 25px;
    }

    /* Карточка предмета (дропа) */
    .drop-item {
        background: rgba(0,0,0,0.1);
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        border: 2px solid transparent;
        transition: 0.2s;
        position: relative;
    }
    .drop-item:hover {
        background: rgba(0,0,0,0.2);
        transform: scale(1.05);
    }

    /* Иконка предмета */
    .drop-img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        margin-bottom: 8px;
    }
    /* Название предмета */
    .drop-name {
        font-size: 11px;
        color: #fff;
        font-weight: 600;
        line-height: 1.2;
        max-width: 100%;
        word-wrap: break-word;
    }
    /* Количество (например x64) */
    .drop-count {
        position: absolute;
        top: 5px;
        right: 5px;
        background: rgba(0,0,0,0.5);
        color: #fff;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 4px;
        font-weight: bold;
    }

    /* Стили редкости (по chance_color из базы) */
    .rarity-1 { border-color: #b0bec5; } /* Обычный - Серый */
    .rarity-2 { border-color: #4caf50; } /* Необычный - Зеленый */
    .rarity-3 { border-color: #2196f3; } /* Редкий - Синий */
    .rarity-4 { border-color: #9c27b0; } /* Эпический - Фиолетовый */
    .rarity-5 { border-color: #ff9800; } /* Легендарный - Оранжевый */

    /* Кнопка закрытия */
    .case-content-modal .close-modal {
        position: absolute; top: 15px; right: 20px; color: #7a828e; font-size: 20px; cursor: pointer; transition: 0.2s;
    }
    .case-content-modal .close-modal:hover { color: #333; }

/* ================================= */
    /* СЕТКА СЕРВЕРОВ (16:9 Картинки)    */
    /* ================================= */
    .server-selector-title {
        color: #ffffff;
        font-size: 20px;
        font-weight: 700;
        margin-bottom: 20px;
        text-align: center;
        text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }
    
    .server-grid {
        display: flex; /* Flex лучше подходит для центрирования */
        flex-wrap: wrap;
        gap: 25px;
        justify-content: center; /* Центрируем сервера, если их мало */
        margin-bottom: 40px;
    }

    .server-card {
        flex: 1 1 280px; /* Базовая ширина 280px */
        max-width: 320px; /* ОГРАНИЧЕНИЕ ШИРИНЫ! Больше этого не растянется */
        position: relative;
        cursor: pointer;
        border-radius: 16px;
        overflow: hidden;
        aspect-ratio: 16 / 9; /* Жесткое соотношение 16:9 */
        border: 3px solid transparent;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        background: rgba(0,0,0,0.5);
    }

    .server-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: filter 0.3s ease, transform 0.5s ease;
        filter: brightness(0.7);
    }

    .server-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

    .server-card:hover img {
        filter: brightness(1);
        transform: scale(1.05);
    }

    .server-card.active {
        border-color: #2196f3;
        box-shadow: 0 0 25px rgba(33, 150, 243, 0.6);
        transform: scale(1.02);
    }

    .server-card.active img {
        filter: brightness(1.1);
    }

    /* Анимация плавного появления магазина */
    #store-content-wrapper {
        animation: fadeInStore 0.5s ease forwards;
    }

    @keyframes fadeInStore {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Стили модального окна (из прошлого шага) */
    .premium-modal-wide {
        background: #ced4da !important; border-radius: 20px !important; padding: 30px !important; max-width: 650px !important; width: 90%; display: flex; gap: 30px; box-shadow: 0 15px 50px rgba(0,0,0,0.3); position: relative;
    }
    .premium-modal-wide .close-modal { position: absolute; top: 15px; right: 20px; color: #7a828e; font-size: 20px; cursor: pointer; z-index: 10; transition: 0.2s; }
    .premium-modal-wide .close-modal:hover { color: #333; }
    .premium-left { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 15px; }
    .premium-icon-circle { width: 80px; height: 80px; background: #e3f2fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; color: #ffca28; box-shadow: 0 4px 15px rgba(227, 242, 253, 0.6); margin-bottom: 20px; }
    .premium-title { font-size: 26px; font-weight: 800; color: #1a1c20; margin-bottom: 25px; }
    .premium-price-block { margin-bottom: 25px; }
    .premium-price-amount { font-size: 34px; font-weight: 800; color: #ffffff; text-shadow: 0px 2px 4px rgba(0,0,0,0.1); }
    .premium-price-currency { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.9); }
    .btn-premium-buy { background: #2196f3; color: #ffffff; border: none; border-radius: 12px; padding: 14px 24px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; transition: all 0.3s ease; box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4); }
    .btn-premium-buy:hover { background: #1e88e5; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(33, 150, 243, 0.5); }
    .premium-right { flex: 1.2; background: #848b94; border-radius: 16px; padding: 25px 20px; color: #ffffff; text-align: left; max-height: 350px; overflow-y: auto; }
    .premium-right-title { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: #ffffff; }
    .premium-features-box { font-size: 14px; line-height: 1.6; color: #f1f3f5; }
    .premium-features-box .pex-desc { color: #cfd4d9; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 12px; margin-top: 12px; }
    .premium-right::-webkit-scrollbar { width: 6px; }
    .premium-right::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
    .premium-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }
    @media (max-width: 600px) { .premium-modal-wide { flex-direction: column; padding: 20px !important; gap: 20px; } .premium-right { max-height: 250px; } }

/* Основной контейнер окна */
    .premium-modal-wide {
        background: #ced4da !important; /* Светло-серый фон окна */
        border-radius: 20px !important;
        padding: 30px !important;
        max-width: 650px !important; /* Сделали окно шире */
        width: 90%;
        display: flex;
        gap: 30px; /* Расстояние между левой и правой колонкой */
        box-shadow: 0 15px 50px rgba(0,0,0,0.3);
        position: relative;
    }

    /* Крестик закрытия */
    .premium-modal-wide .close-modal {
        position: absolute;
        top: 15px;
        right: 20px;
        color: #7a828e;
        font-size: 20px;
        cursor: pointer;
        z-index: 10;
        transition: 0.2s;
    }
    
    .premium-modal-wide .close-modal:hover {
        color: #333;
    }

    /* ================================= */
    /* ЛЕВАЯ КОЛОНКА (Иконка, Цена, Кнопка) */
    /* ================================= */
    .premium-left {
        flex: 1; /* Занимает пропорциональную часть */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-top: 15px;
    }

    .premium-icon-circle {
        width: 80px;
        height: 80px;
        background: #e3f2fd;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 35px;
        color: #ffca28; /* Золотой */
        box-shadow: 0 4px 15px rgba(227, 242, 253, 0.6);
        margin-bottom: 20px;
    }

    .premium-title {
        font-size: 26px;
        font-weight: 800;
        color: #1a1c20;
        margin-bottom: 25px;
    }

    .premium-price-block {
        margin-bottom: 25px;
    }
    
    .premium-price-amount {
        font-size: 34px;
        font-weight: 800;
        color: #ffffff; /* Белая цена */
        text-shadow: 0px 2px 4px rgba(0,0,0,0.1);
    }
    
    .premium-price-currency {
        font-size: 16px;
        font-weight: 600;
        color: rgba(255,255,255,0.9);
    }

    .btn-premium-buy {
        background: #2196f3; /* Яркий синий как на скрине */
        color: #ffffff;
        border: none;
        border-radius: 12px;
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        width: 100%;
        transition: all 0.3s ease;
        box-shadow: 0 8px 25px rgba(33, 150, 243, 0.4);
    }
    
    .btn-premium-buy:hover {
        background: #1e88e5;
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(33, 150, 243, 0.5);
    }

    /* ================================= */
    /* ПРАВАЯ КОЛОНКА (Текст и описание)   */
    /* ================================= */
    .premium-right {
        flex: 1.2; /* Делаем правую часть чуть шире левой */
        background: #848b94; /* Темно-серый фон как на скрине */
        border-radius: 16px;
        padding: 25px 20px;
        color: #ffffff;
        text-align: left;
        max-height: 350px;
        overflow-y: auto;
    }

    .premium-right-title {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #ffffff;
    }

    .premium-features-box {
        font-size: 14px;
        line-height: 1.6;
        color: #f1f3f5;
    }

    .premium-features-box .pex-desc {
        color: #cfd4d9;
        font-size: 13px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 12px;
        margin-top: 12px;
    }

    /* Скроллбар для правой колонки */
    .premium-right::-webkit-scrollbar { width: 6px; }
    .premium-right::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 4px; }
    .premium-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

    /* ================================= */
    /* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ        */
    /* ================================= */
    @media (max-width: 600px) {
        .premium-modal-wide {
            flex-direction: column; /* Ставим колонки друг под друга */
            padding: 20px !important;
            gap: 20px;
        }
        .premium-right {
            max-height: 250px; /* Уменьшаем скролл на мобилках */
        }
    }

/* =========================================
   1. ИМПОРТ ШРИФТОВ И ПЕРЕМЕННЫЕ
========================================= */

/* Общий контейнер */
.user-nav-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    gap: 15px;
    backdrop-filter: blur(5px);
}

/* Блок с ником и головой */
.user-info-block {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.user-info-block:hover {
    opacity: 0.8;
}

/* Голова игрока */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Контейнер для текста (Ник над Группой) */
.user-text-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-nickname {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.nav-group-label {
    color: var(--groupColor, #888); /* Используем цвет группы из PHP */
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* Кнопка выхода */
.nav-logout-btn {
    color: rgba(255, 255, 255, 0.3);
    font-size: 16px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.nav-logout-btn:hover {
    color: #ff4d4f;
    transform: translateX(2px);
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@700&display=swap');
/* Контейнер для тостов */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Стиль самого уведомления */
.toast {
    min-width: 280px;
    padding: 15px 20px;
    border-radius: 12px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.active {
    transform: translateX(0);
}

/* Иконки и цвета */
.toast.error { border-left: 4px solid #ff4d4f; }
.toast.success { border-left: 4px solid #52c41a; }
.toast.info { border-left: 4px solid #1890ff; }

.toast i { font-size: 1.2rem; }
.toast.error i { color: #ff4d4f; }
.toast.success i { color: #52c41a; }
:root {
    /* Цветовая палитра (Светлая тема) */
    --bg-main: #f4f8fc;
    --text-dark: #1a1c20;
    --text-muted: #5c626b;
    --accent-blue: #0088ff;
    --accent-hover: #006ce6;
    --success: #22c55e;
    --warning: #eab308;
    
    /* Эффекты стекла (Glassmorphism) */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    --glass-shadow-hover: 0 15px 40px rgba(0, 119, 255, 0.08);
    
    /* Скругления */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

/* =========================================
   2. БАЗОВЫЕ СТИЛИ И ФОН
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'SF Pro Display', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}


/* Общие настройки для видимости */
@keyframes glowPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* Фикс шапки в профиле */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100; /* Чтобы не перекрывалось фоном */
}

/* Никнейм в шапке */
.header-nickname {
    color: #ffffff !important; /* Принудительно белый */
    font-weight: 600;
    font-size: 15px;
    margin-right: 8px;
}

/* Тег ранга */
.header-rank {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #000; /* Текст ранга черный для контраста */
    text-transform: uppercase;
}

/* Контейнер справа */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Кнопка выхода */
.header-logout-btn {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 18px;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.header-logout-btn:hover {
    color: #ff4d4f !important; /* Красный при наведении */
    transform: scale(1.1);
}

.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-glow {
	position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.6;
    transition: all 0.8s ease; /* Плавная смена цвета */
	animation: glowPulse 8s infinite ease-in-out;
}

.glow-top-left { top: -300px; left: -300px; width: 900px; height: 900px; background: rgba(0, 150, 255, 0.4); }
.glow-bottom-right { bottom: -300px; right: -300px; width: 1000px; height: 1000px; background: rgba(0, 80, 200, 0.3); }

/* SkyBlock - Голубой/Белый */
body.theme-sky .glow-top-left { background: rgba(135, 206, 250, 0.7); }
body.theme-sky .glow-bottom-right { background: rgba(255, 255, 255, 0.3); }

/* VolcanoBlock - Огненный/Оранжевый */
body.theme-volcano .glow-top-left { background: rgba(255, 69, 0, 0.6); }
body.theme-volcano .glow-bottom-right { background: rgba(139, 0, 0, 0.5); }

/* StoneBlock - Серый/Золотой (ресурсы) */
body.theme-stone .glow-top-left { background: rgba(169, 169, 169, 0.6); }
body.theme-stone .glow-bottom-right { background: rgba(255, 215, 0, 0.2); }

/* AquaBlock - Бирюзовый/Глубокий синий */
body.theme-aqua .glow-top-left { background: rgba(0, 255, 255, 0.5); }
body.theme-aqua .glow-bottom-right { background: rgba(0, 0, 139, 0.6); }

/* =========================================
   3. ОБЩИЕ ЭЛЕМЕНТЫ (НАВИГАЦИЯ, КНОПКИ)
========================================= */
/* Шапка для главной страницы (Центрированная) */
.navbar {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 50px;
    padding: 8px 10px 8px 30px;
    z-index: 100;
}

.nav-links { display: flex; gap: 35px; margin-right: 35px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 16px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent-blue); }

/* Боковая панель с соцсетями */
.social-sidebar {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 40px;
    padding: 20px 15px;
    z-index: 100;
}

.social-icon {
    color: #8da2b5;
    font-size: 22px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.social-icon:hover { color: white; transform: scale(1.1); }
.discord:hover { background: #5865F2; box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4); }
.telegram:hover { background: #0088cc; box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4); }
.vk:hover { background: #0077FF; box-shadow: 0 5px 15px rgba(0, 119, 255, 0.4); }

/* Универсальные кнопки */
.btn-play, .btn-primary, .btn-read, .btn-vote {
	background: linear-gradient(135deg, #3db8ff 0%, #0077ff 100%);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 40px; /* Овальная форма */
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    /* Комбинация теней: внешнее свечение + внутренний белый блик для объема */
    box-shadow: 
        0 8px 20px rgba(0, 119, 255, 0.3),
        inset 0 2px 2px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-play { padding: 14px 32px; border-radius: 40px; font-size: 16px; }
.btn-play:hover, .btn-primary:hover, .btn-read:hover, .btn-vote:hover {
	transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 119, 255, 0.45),
        inset 0 2px 2px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.btn-outline {
background: rgba(0, 136, 255, 0.08); /* Мягкая полупрозрачная заливка вместо рамки */
    color: #0077ff; /* Синий текст */
    border: 1px solid transparent; /* Убираем дешевую линию */
    padding: 12px 28px;
    border-radius: 40px; /* Такая же овальная, как и первая кнопка */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover { 
background: rgba(0, 136, 255, 0.15); /* При наведении фон становится чуть гуще */
    transform: translateY(-2px);

 }

/* =========================================
   4. ГЛАВНАЯ СТРАНИЦА (HERO & 3D БЛОКИ)
========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100vh; /* Ровно 1 экран */
}

.hero-content { text-align: center; z-index: 10; }
.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 6.5rem;
    font-weight: 700;
    color: #1a1d21;
    letter-spacing: -2px;
    line-height: 1.1;
    text-transform: uppercase;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-top: 15px; line-height: 1.6; }

.floating-block {
    position: absolute;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}
.block-sky { top: 12%; left: 12%; width: 260px; animation-delay: 0s; }
.block-volcano { top: 15%; right: 15%; width: 230px; animation-delay: -1.5s; }
.block-stone { bottom: 15%; left: 18%; width: 280px; animation-delay: -3s; }
.block-aqua { bottom: 12%; right: 18%; width: 250px; animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #6b7280;
    font-size: 14px;
    z-index: 10;
}
.scroll-indicator strong { color: var(--text-dark); font-weight: 600; }
.arrow-bounce { font-size: 20px; color: #9ca3af; animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* =========================================
   5. ГЛАВНАЯ СТРАНИЦА (НОВОСТИ И ВИДЖЕТЫ)
========================================= */
.content-section {
    position: relative;
    padding: 60px 20px 100px 20px;
    z-index: 10;
}

.content-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 35px;
}

.section-title, .widget-title {
    font-family: 'Oswald', 'Gilroy', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.news-card, .widget, .card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover, .widget:hover, .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow-hover);
}

.news-title { font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.news-text { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; }
.news-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(0, 0, 0, 0.06); padding-top: 20px; }
.news-meta { display: flex; gap: 20px; font-size: 13px; color: #8da2b5; font-weight: 500; }

.widgets-sidebar { display: flex; flex-direction: column; }
.server-item { display: flex; flex-direction: column; gap: 15px; }
.server-header { display: flex; align-items: center; justify-content: space-between; }
.server-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #2db3ff, #0077ff); color: white; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.server-info { display: flex; flex-direction: column; flex: 1; margin-left: 15px; }
.server-version { font-size: 11px; color: #8da2b5; font-weight: 700; letter-spacing: 1px; }
.server-name { font-size: 18px; font-weight: 800; }
.server-online { text-align: right; font-size: 12px; color: var(--text-muted); }
.server-online strong { font-size: 22px; color: var(--accent-blue); line-height: 1; }

.progress-bar-container { width: 100%; height: 8px; background: rgba(0, 0, 0, 0.05); border-radius: 10px; overflow: hidden; margin-bottom: 5px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #2db3ff, #0077ff); border-radius: 10px; }
.server-stats { display: flex; flex-direction: column; font-size: 13px; font-weight: 500; color: var(--text-muted); gap: 6px; }

.vote-widget { text-align: center; display: flex; flex-direction: column; align-items: center; }
.vote-icon { font-size: 65px; color: #f5a623; margin: 10px 0 20px 0; filter: drop-shadow(0 10px 15px rgba(245, 166, 35, 0.3)); }
.vote-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 25px; }
.btn-vote { width: 100%; }

/* =========================================
   6. СТРАНИЦА ПРОФИЛЯ (DASHBOARD GRID)
========================================= */
/* Контейнер профиля с отступом сверху для навигации */
.app-container {
    width: 100%;
    max-width: 1300px;
    margin: 120px auto 60px auto; /* Центрируем по центру страницы */
    background: rgba(240, 246, 252, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.05);
    padding: 30px;
}

/* Шапка внутри профиля */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 30px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.5px; }
.user-name { font-weight: 600; font-size: 15px; }
.rank-tag { color: var(--success); font-weight: 700; }
.mini-avatar { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* Сетка Bento Box */
.dashboard-grid {
    display: grid;
    grid-template-columns: 320px 1fr 1fr 340px;
    grid-template-rows: auto auto auto;
    gap: 20px;
}

/* Внутренние блоки профиля */
.card-subtitle { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; text-transform: uppercase; }

/* Левая колонка (Скин) */
.profile-card { grid-column: 1 / 2; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px; }
.skin-viewer { position: relative; width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.skin-img { height: 250px; z-index: 2; filter: drop-shadow(0 15px 20px rgba(0,0,0,0.2)); }
.pedestal { position: absolute; bottom: 0; width: 160px; height: 40px; background: linear-gradient(180deg, #fff 0%, #e2ebf4 100%); border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 136, 255, 0.4); z-index: 1; }
.profile-username { font-size: 22px; margin: 20px 0; }
.profile-buttons { display: flex; gap: 10px; width: 100%; }

/* Баланс и Ранг */
.stats-card { display: flex; flex-direction: column; padding: 25px;}
.stats-card:nth-child(2) { grid-column: 2 / 3; }
.stats-card:nth-child(3) { grid-column: 3 / 4; }
.stats-content { display: flex; align-items: center; gap: 15px; margin-top: 5px; }
.icon-circle { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); box-shadow: 0 8px 15px rgba(0,0,0,0.05); border: 1px solid white; }
.icon-circle.gold { color: #f59e0b; }
.icon-circle.crown { color: #3b82f6; }
.stats-text { display: flex; flex-direction: column; }
.amount { font-size: 26px; font-weight: 800; }
.currency { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.rank-name { font-size: 20px; font-weight: 800; color: var(--success); }
.online-status { font-size: 13px; color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 5px; margin-top: 2px; }

/* Безопасность */
.security-card { grid-column: 4 / 5; grid-row: 1 / 3; padding: 25px;}
.security-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.security-item:last-child { border-bottom: none; }
.sec-left { display: flex; align-items: center; gap: 15px; }
.sec-icon { width: 35px; height: 35px; background: rgba(0, 136, 255, 0.1); color: var(--accent-blue); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sec-title { font-size: 13px; font-weight: 600; line-height: 1.4; }
.sec-title .muted { font-weight: 400; color: var(--text-muted); }
.social-icons { display: flex; gap: 10px; margin-top: 5px; color: var(--text-muted); font-size: 16px; }
.btn-small { background: rgba(0, 136, 255, 0.1); color: var(--accent-blue); border: none; padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 11px; cursor: pointer; }
.btn-small.outline { background: transparent; border: 1px solid var(--accent-blue); }
.btn-stack { display: flex; flex-direction: column; gap: 5px; }

/* Переключатель 2FA */
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent-blue); }
input:checked + .slider:before { transform: translateX(22px); }

/* Достижения */
.achievements-card { grid-column: 2 / 4; grid-row: 2 / 3; padding: 25px;}
.achieve-row { margin-bottom: 15px; }
.achieve-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.achieve-name { font-weight: 600; }
.achieve-values { color: var(--text-muted); }
.achieve-values strong { color: var(--text-dark); font-weight: 700;}
.achieve-desc { font-size: 11px; color: var(--text-muted); display: block; text-align: right; margin-top: 4px;}

/* Логи */
.log-card { grid-column: 2 / 5; grid-row: 3 / 4; padding: 25px;}
.log-table { width: 100%; border-collapse: collapse; }
.log-table th { text-align: left; font-size: 11px; color: var(--text-muted); padding-bottom: 15px; font-weight: 600; }
.log-table td { padding: 12px 0; font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,0.03); }
.log-table tr:last-child td { border-bottom: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.green { background-color: var(--success); box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
.dot.yellow { background-color: var(--warning); box-shadow: 0 0 8px rgba(234, 179, 8, 0.6); }


/* =========================================
   7. АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
========================================= */
@media (max-width: 1200px) {
    /* Сжимаем сетку профиля */
    .dashboard-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .profile-card { grid-column: 1 / -1; grid-row: auto; }
    .stats-card:nth-child(2), .stats-card:nth-child(3), .security-card, .achievements-card, .log-card {
        grid-column: 1 / -1; grid-row: auto;
    }
}

@media (max-width: 1024px) {
    /* Главная страница: Колонки выстраиваются друг под друга */
    .content-container { grid-template-columns: 1fr; }
    .widgets-sidebar { width: 100%; }
    .news-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
    .hero-title { font-size: 4.5rem; }
    .floating-block { width: 180px; }
}

@media (max-width: 768px) {
    /* Шапка на главной */
    .navbar { top: 20px; padding: 5px 5px 5px 20px; width: 90%; }
    .nav-links { display: none; } /* Прячем меню на телефоне */
    
    /* Шапка в профиле */
    .top-nav { flex-direction: column; gap: 20px; }
    
    /* Сайдбар соцсетей */
    .social-sidebar { flex-direction: row; top: auto; bottom: 100px; right: 50%; transform: translateX(50%); padding: 10px 20px; }

    /* Главный экран */
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1rem; padding: 0 20px; }
    .floating-block { width: 120px; opacity: 0.5; z-index: 1; }
    .block-sky { top: 20%; left: 5%; }
    .block-volcano { top: 20%; right: 5%; }
    .block-stone { bottom: 25%; left: 5%; }
    .block-aqua { bottom: 25%; right: 5%; }
    .hero-content { z-index: 10; }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО "НАЧАТЬ ИГРАТЬ"
========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4); /* Темное затемнение */
    backdrop-filter: blur(12px); /* Сильное размытие заднего фона */
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-glass-content {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-glass-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.close-modal:hover {
    color: #ef4444; /* Красный при наведении */
    transform: rotate(90deg);
}

.modal-header-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e0f2ff 0%, #d4eaff 100%);
    color: var(--accent-blue);
    font-size: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 10px 20px rgba(0, 136, 255, 0.1);
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Кнопки скачивания */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-download {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: left;
}

.btn-download i {
    font-size: 32px;
    margin-right: 15px;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-text span:first-child {
    font-weight: 700;
    font-size: 16px;
}

.btn-subtext {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
}

/* Синяя кнопка (Windows) */
.btn-download.primary {
    background: linear-gradient(135deg, #2db3ff 0%, #0077ff 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 119, 255, 0.3);
}

.btn-download.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 119, 255, 0.4);
}

/* Прозрачная кнопка (Java) */
.btn-download.outline {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-download.outline:hover {
    background: rgba(0, 136, 255, 0.05);
    transform: translateY(-3px);
}

/* Блок регистрации внизу */
.modal-footer-reg {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.link-register {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.link-register:hover {
    color: #0056ff;
    text-decoration: underline;
}

/* =========================================
   АВТОРИЗАЦИЯ И ИНПУТЫ (GLASSMORPHISM)
========================================= */
.auth-box {
    max-width: 420px; /* Окно авторизации чуть уже, чем окно скачивания */
    padding: 40px 35px;
}

/* Экраны внутри модалки */
.auth-view {
    display: none;
    animation: fadeInSlide 0.4s ease forwards;
}

.auth-view.active {
    display: block;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Формы и поля ввода */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    opacity: 0.7;
    transition: 0.3s;
}

.glass-input {
    width: 100%;
    padding: 16px 20px 16px 45px;
    background: rgba(255, 255, 255, 0.5); /* Полупрозрачный фон инпута */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.glass-input::placeholder {
    color: #8da2b5;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.15);
}

.glass-input:focus ~ .input-icon {
    color: var(--accent-blue);
    opacity: 1;
}

/* Иконка глаза для пароля */
.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.toggle-password:hover {
    color: var(--text-dark);
}

/* Доп. опции (Запомнить меня / Забыли пароль) */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -5px;
    margin-bottom: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.forgot-password:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Кнопка на 100% ширины */
.w-100 {
    width: 100%;
    padding: 16px;
    font-size: 15px;
}

.link-register {
    cursor: pointer;
}

/* =========================================
   АНИМАЦИЯ ПЕРЕКЛЮЧЕНИЯ СТРАНИЦ
========================================= */
/* Плавный скролл для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Базовое состояние для страниц (скрыты через прозрачность) */
.page-section {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

/* Класс проявления страницы */
.page-section.fade-in {
    opacity: 1;
}

/* Фикс отступа для профиля, чтобы он не залезал под шапку */
#page-profile .app-container {
    margin-top: 130px; 
}

/* Контейнер для динамического контента */
#dynamic-content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    min-height: 60vh; /* Чтобы при загрузке подвал не прыгал вверх */
}

/* Класс, который скрипт добавляет для скрытия контента */
#dynamic-content.fade-out {
    opacity: 0;
}


/* =========================================
   СТРАНИЦА МАГАЗИНА (STORE)
========================================= */
.store-container {
    /* Используем тот же контейнер, что и в профиле */
    margin-top: 120px;
    padding: 40px;
}

/* Шапка магазина */
.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.store-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
}

.store-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Плашка с балансом */
.store-balance-badge {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    padding: 10px 15px 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-soft);
}

.store-balance-badge i {
    color: #f59e0b; /* Золотой цвет монетки */
    font-size: 18px;
}

.store-balance-badge span {
    font-size: 14px;
    color: var(--text-muted);
}

.store-balance-badge strong {
    color: var(--text-dark);
    font-weight: 700;
}

.btn-topup {
    background: rgba(0, 136, 255, 0.1);
    color: var(--accent-blue);
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-topup:hover {
    background: rgba(0, 136, 255, 0.2);
}

/* Навигация по категориям (Вкладки) */
.store-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

.category-btn.active {
    background: white;
    color: var(--accent-blue);
    border-color: rgba(0, 136, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.1);
}

/* Сетка товаров */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    opacity: 0; /* Для анимации переключения */
    transition: opacity 0.3s ease;
}

.store-grid.fade-in {
    opacity: 1;
}

/* Карточка товара */
.store-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
}

.store-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 119, 255, 0.1);
}

/* Карточка-Хит (выделенная) */
.highlight-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(240,246,252,0.9) 100%);
    border: 2px solid rgba(0, 136, 255, 0.3);
}

/* Бейджи (Популярное / Хит) */
.card-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background: var(--success);
    color: white;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.3);
}

.card-badge.epic {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

/* Иконки рангов */
.item-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: white;
}

.rank-vip { background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2); }
.rank-premium { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2); }
.rank-deluxe { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2); }
.case-icon { background: linear-gradient(135deg, #9ca3af, #4b5563); box-shadow: 0 8px 20px rgba(107, 114, 128, 0.2); }
.case-icon-epic { background: linear-gradient(135deg, #c084fc, #7e22ce); box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2); }

/* Тексты карточки */
.item-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.item-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1; /* Прижимает футер вниз */
}

/* Список возможностей (галочки) */
.item-features {
    list-style: none;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-features li {
    font-size: 13px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-features li i {
    color: var(--success);
    font-size: 14px;
}

/* Подвал карточки (Цена и кнопка) */
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}

.item-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-period {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Кнопка "Купить" (дефолтная светлая) */
.btn-buy {
    background: rgba(0, 136, 255, 0.1);
    color: var(--accent-blue);
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-buy:hover {
    background: rgba(0, 136, 255, 0.2);
}

/* Адаптивность магазина */
@media (max-width: 768px) {
    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .store-categories {
        flex-wrap: wrap;
    }
    .category-btn {
        flex-grow: 1;
        justify-content: center;
    }
}