/* ═══════════════════════════════════════════════════════════════════════════
   MODERN GAME STORE THEME
   Мягкая, современная цветовая схема с плавными анимациями
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   АНИМАЦИИ
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes tile {
    0%, 12.5%, 100% { opacity: 1; }
    25%, 82.5% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   БАЗОВЫЕ СТИЛИ И CSS ПЕРЕМЕННЫЕ
   ═══════════════════════════════════════════════════════════════════════════ */

:root,
:root[data-theme],
:root[data-theme=red_black] {
    /* Основные цвета - мягкая индиго/фиолетовая палитра */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Акцентные цвета - мягкий бирюзовый */
    --accent-50: #ecfeff;
    --accent-100: #cffafe;
    --accent-200: #a5f3fc;
    --accent-300: #67e8f9;
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;
    --accent-700: #0e7490;
    --accent-800: #155e75;
    --accent-900: #164e63;

    /* Нейтральные цвета */
    --neutral-50: #fafafa;
    --neutral-100: #f4f4f5;
    --neutral-200: #e4e4e7;
    --neutral-300: #d4d4d8;
    --neutral-400: #a1a1aa;
    --neutral-500: #71717a;
    --neutral-600: #52525b;
    --neutral-700: #3f3f46;
    --neutral-800: #27272a;
    --neutral-850: #1f1f23;
    --neutral-900: #18181b;
    --neutral-950: #0f0f12;

    /* Успех/Ошибка/Предупреждение */
    --success-500: #22c55e;
    --error-500: #ef4444;
    --warning-500: #f59e0b;

    /* Переменные темы для совместимости */
    --default-font-family: 'Inter', sans-serif;
    --default-font-size: 14px;
    --accent-color-800: var(--primary-500);
    --accent-color-900: var(--primary-600);
    --font-color-700: #ffffff;
    --font-color-800: var(--neutral-400);
    --font-color-900: var(--neutral-500);
    --bg-color-700: var(--neutral-800);
    --bg-color-800: var(--neutral-850);
    --bg-color-900: var(--neutral-900);
    --product-items-trans-bg-color: rgba(0, 0, 0, 0.5);

    /* Дополнительные переменные */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 50%, var(--accent-500) 100%);
    --gradient-card: linear-gradient(180deg, var(--neutral-800) 0%, var(--neutral-850) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ГЛОБАЛЬНЫЕ СТИЛИ
   ═══════════════════════════════════════════════════════════════════════════ */

*, *:after, *:before {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before, body {
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--neutral-950);
    background-image:
        radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--neutral-100);
    line-height: 1.6;
    min-height: 100vh;
}

b, strong {
    font-weight: 600;
}

/* Скрыть баннер */
.Banner-module__img {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ШАПКА / HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.Header-module__wrapper {
    background: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
    padding: 0 24px;
    min-height: 64px;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: fadeIn 0.5s ease;
}

.HeaderNav-module__wrapper {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    background-color: transparent;
    border: 0;
    padding: 8px 16px;
    line-height: 100%;
    cursor: pointer;
    color: var(--neutral-400);
    transition: color var(--transition-normal), background-color var(--transition-normal);
    border-radius: var(--border-radius-sm);
}

.HeaderNav-module__wrapper:hover {
    color: var(--neutral-100);
    background-color: rgba(255, 255, 255, 0.05);
}

.HeaderNav-module__link #магазин {
    display: none;
}

/* Кнопки входа/профиля */
.PlayerMenu-module__loginLink,
.PlayerMenu-module__profileLink {
    position: relative;
    text-align: center;
    line-height: 40px;
    height: 40px;
    padding: 0 24px;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-radius: var(--border-radius-md);
    z-index: 1;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.PlayerMenu-module__loginLink:hover,
.PlayerMenu-module__profileLink:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    animation: gradientFlow 3s ease infinite;
}

.PlayerMenu-module__loginLink:before,
.PlayerMenu-module__profileLink:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.PlayerMenu-module__loginLink:hover:before,
.PlayerMenu-module__profileLink:hover:before {
    transform: translateX(100%);
}

.PlayerBalance-module__btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.PlayerBalance-module__btn:hover {
    border-color: var(--primary-500);
    background: rgba(99, 102, 241, 0.1);
}

/* Выпадающие меню */
.LangSwitcher-module__list.LangSwitcher-module__active,
.NavServerDropDown-module__list.NavServerDropDown-module__active {
    position: absolute;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 12px;
    gap: 8px;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--neutral-850);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.2s ease;
}

.LangSwitcher-module__list.LangSwitcher-module__active {
    top: calc(100% + 12px);
    width: 160px;
}

.NavServerDropDown-module__list.NavServerDropDown-module__active {
    width: 200px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   БЛОКИ / БОКСЫ
   ═══════════════════════════════════════════════════════════════════════════ */

.boxBody, .boxFooter, .boxHeader {
    background: transparent;
}

.DesktopCopyright-module__wrapper {
    border-radius: var(--border-radius-md);
    background: var(--neutral-850);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ═══════════════════════════════════════════════════════════════════════════
   КАРТОЧКИ
   ═══════════════════════════════════════════════════════════════════════════ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    position: relative;
    margin-bottom: 0;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    overflow: hidden;
    animation: fadeIn 0.5s ease backwards;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-glass);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.card .icon {
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: var(--border-radius-md);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all var(--transition-normal);
}

.card:hover .icon {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.card .icon svg {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--primary-400);
    transition: color var(--transition-normal);
}

.card:hover .icon svg {
    color: var(--primary-300);
}

.card h4, .card p {
    z-index: 2;
    position: relative;
}

.card h4 {
    margin: 16px 0 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: var(--neutral-100);
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--neutral-400);
}

.card .shine {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card .shine:before {
    content: "";
    width: 150%;
    padding-bottom: 150%;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 60%;
    filter: blur(40px);
    opacity: 0.1;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--primary-400) 0%, transparent 70%);
}

.card:hover .shine {
    opacity: 1;
}

.card .background {
    border-radius: inherit;
    position: absolute;
    inset: 0;
    overflow: hidden;
    mask-image: radial-gradient(circle at 60% 5%, #000 0, #000 15%, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at 60% 5%, #000 0, #000 15%, transparent 60%);
}

.card .background .tiles {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .background .tiles {
    opacity: 1;
}

.card .background .tiles .tile {
    position: absolute;
    background-color: rgba(99, 102, 241, 0.15);
    animation-duration: 8s;
    animation-iteration-count: infinite;
    opacity: 0;
}

.card:hover .background .tiles .tile {
    animation-name: tile;
}

.card .background .tiles .tile.tile-4,
.card .background .tiles .tile.tile-6,
.card .background .tiles .tile.tile-10 {
    animation-delay: -2s;
}

.card .background .tiles .tile.tile-3,
.card .background .tiles .tile.tile-5,
.card .background .tiles .tile.tile-8 {
    animation-delay: -4s;
}

.card .background .tiles .tile.tile-2,
.card .background .tiles .tile.tile-9 {
    animation-delay: -6s;
}

.card .background .tiles .tile.tile-1 { top: 0; left: 0; height: 10%; width: 22.5%; }
.card .background .tiles .tile.tile-2 { top: 0; left: 22.5%; height: 10%; width: 27.5%; }
.card .background .tiles .tile.tile-3 { top: 0; left: 50%; height: 10%; width: 27.5%; }
.card .background .tiles .tile.tile-4 { top: 0; left: 77.5%; height: 10%; width: 22.5%; }
.card .background .tiles .tile.tile-5 { top: 10%; left: 0; height: 22.5%; width: 22.5%; }
.card .background .tiles .tile.tile-6 { top: 10%; left: 22.5%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-7 { top: 10%; left: 50%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-8 { top: 10%; left: 77.5%; height: 22.5%; width: 22.5%; }
.card .background .tiles .tile.tile-9 { top: 32.5%; left: 50%; height: 22.5%; width: 27.5%; }
.card .background .tiles .tile.tile-10 { top: 32.5%; left: 77.5%; height: 22.5%; width: 22.5%; }

.card .background .line {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card .background .line:after,
.card .background .line:before {
    content: "";
    position: absolute;
    background-color: rgba(99, 102, 241, 0.2);
    transition: transform 0.35s ease;
}

.card .background .line:before {
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: 0 50%;
    transform: scaleX(0);
}

.card .background .line:after {
    top: 0;
    bottom: 0;
    width: 1px;
    transform-origin: 50% 0;
    transform: scaleY(0);
}

.card:hover .background .line {
    opacity: 1;
}

.card:hover .background .line:before { transform: scaleX(1); }
.card:hover .background .line:after { transform: scaleY(1); }

.card .background .line.line-1:before { top: 10%; }
.card .background .line.line-1:after { left: 22.5%; }
.card .background .line.line-1:after,
.card .background .line.line-1:before { transition-delay: 0.3s; }

.card .background .line.line-2:before { top: 32.5%; }
.card .background .line.line-2:after { left: 50%; }
.card .background .line.line-2:after,
.card .background .line.line-2:before { transition-delay: 0.15s; }

.card .background .line.line-3:before { top: 55%; }
.card .background .line.line-3:after { right: 22.5%; }

.card:hover .background .line.line-1:after,
.card:hover .background .line.line-1:before { transition-delay: 0s; }
.card:hover .background .line.line-2:after,
.card:hover .background .line.line-2:before { transition-delay: 0.15s; }
.card:hover .background .line.line-3:after,
.card:hover .background .line.line-3:before { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════════════════
   МОНИТОРИНГ
   ═══════════════════════════════════════════════════════════════════════════ */

.MonitoringWidget-module__header {
    text-align: center;
    font-weight: 600;
    color: var(--neutral-100);
}

.MonitoringServer-module__wrapper {
    border-radius: var(--border-radius-lg);
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.MonitoringServer-module__wrapper:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-lg);
}

.MonitoringServer-module__progressBar {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    animation: gradientFlow 4s ease infinite;
    border-radius: var(--border-radius-sm);
    z-index: 1;
}

.MonitoringWidget-module__updatingLoaderWrapper {
    background-color: transparent;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   КНОПКИ
   ═══════════════════════════════════════════════════════════════════════════ */

.Button-module__btn.Button-module__accent {
    position: relative;
    text-align: center;
    line-height: 44px;
    height: 44px;
    padding: 0 28px;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-sizing: border-box;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-radius: var(--border-radius-md);
    z-index: 0;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.Button-module__btn.Button-module__accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    animation: gradientFlow 3s ease infinite;
}

.Button-module__btn.Button-module__accent:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.Button-module__btn.Button-module__accent:hover:before {
    transform: translateX(100%);
}

.Button-module__btn.Button-module__gray {
    background: var(--neutral-700);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--neutral-300);
    transition: all var(--transition-normal);
}

.Button-module__btn.Button-module__gray:hover {
    background: var(--neutral-600);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--neutral-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ПОИСК
   ═══════════════════════════════════════════════════════════════════════════ */

.Search-module__wrapper {
    border-radius: var(--border-radius-md);
    height: 44px;
    overflow: hidden;
}

.Search-module__input {
    background: var(--neutral-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--neutral-100);
    transition: all var(--transition-normal);
}

.Search-module__input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.Shop-module__header {
    width: 0%;
    font-size: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT СТРАНИЦЫ МАГАЗИНА
   ═══════════════════════════════════════════════════════════════════════════ */

/* Основной контейнер магазина */
.Shop-module__wrapper {
    width: 100%;
}

/* boxBody внутри Shop - используем Grid для layout */
.Shop-module__wrapper > .boxBody {
    display: grid !important;
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto 1fr;
    gap: 20px;
    align-items: start;
    width: 100%;
}

/* Категории - ПРАВАЯ колонка, занимает обе строки */
.Shop-module__wrapper > .boxBody > .Categories-module__categories {
    grid-column: 2 !important;
    grid-row: 1 / -1 !important;
    width: 100% !important;
    order: 2 !important;
}

/* Поиск - левая колонка, первая строка */
.Shop-module__wrapper > .boxBody > .Search-module__wrapper {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
}

/* Продукты - левая колонка, вторая строка */
.Shop-module__wrapper > .boxBody > .Products-module__wrapper {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   КАТЕГОРИИ И ПРОДУКТЫ (ДЕСКТОП)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .Categories-module__categories {
        text-align: center;
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        position: sticky;
        top: 88px;
        background: var(--gradient-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-md);
        margin: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    /* Сетка продуктов */
    .Products-module__wrapper {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .Categories-module__category {
        margin-bottom: 0;
        background: var(--neutral-700);
        border: 1px solid transparent;
        box-shadow: none;
        border-radius: var(--border-radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 500;
        min-height: 40px;
        color: var(--neutral-300);
        transition: all var(--transition-normal);
        cursor: pointer;
    }

    .Categories-module__category:hover {
        background: var(--neutral-600);
        color: var(--neutral-100);
        transform: translateX(4px);
    }

    .Categories-module__category.Categories-module__active {
        background: var(--gradient-primary);
        background-size: 200% 200%;
        color: #fff;
        border-color: transparent;
        box-shadow: var(--shadow-glow);
    }

    /* Специальная категория */
    [data-categoryid="430181"] {
        background: var(--gradient-primary);
        background-size: 200% 200%;
        color: #fff;
        animation: gradientFlow 4s ease infinite;
    }

    /* Продукты */
    .Product-module__wrapper {
        background: var(--gradient-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
        overflow: hidden;
    }

    .Product-module__wrapper:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: var(--shadow-xl), var(--shadow-glow);
        border-color: rgba(99, 102, 241, 0.3);
    }

    .Product-module__price,
    .Product-module__discount {
        border-radius: var(--border-radius-sm);
        background: var(--gradient-primary);
        background-size: 200% 200%;
        padding: 6px 12px;
        font-weight: 600;
        font-size: 14px;
        z-index: 1;
    }

    .Product-module__discount {
        background: linear-gradient(135deg, var(--error-500), #dc2626);
    }

    .Product-module__name {
        text-align: center;
        font-weight: 500;
        color: var(--neutral-100);
        padding: 12px;
    }

    /* Модальное окно продукта */
    .ProductModal-module__dropdown {
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
    }

    .productModalDescription {
        background-color: transparent;
    }

    .ProductModal-module__header {
        text-align: center;
        display: block;
        font-weight: 600;
        font-size: 18px;
        color: var(--neutral-100);
    }

    /* Инпуты */
    .TotalSum-module__input {
        background: var(--neutral-900);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
        color: var(--neutral-100);
    }

    .TotalSum-module__currency {
        background: var(--neutral-700);
        border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
        color: var(--neutral-300);
    }

    .CountSelector-module__input {
        background: var(--neutral-900);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-sm);
        color: var(--neutral-100);
    }

    .CountSelector-module__changeCountBtn {
        background: var(--primary-600);
        border-radius: var(--border-radius-sm);
        transition: all var(--transition-normal);
    }

    .CountSelector-module__changeCountBtn:hover {
        background: var(--primary-500);
    }

    .Selector-module__dropDownCurrentItem {
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
        color: var(--neutral-100);
        transition: all var(--transition-normal);
    }

    .Selector-module__dropDownCurrentItem:hover,
    .Selector-module__dropDownCurrentItem:focus {
        border-color: var(--primary-500);
        outline: none;
    }

    .Selector-module__dropDownList.Selector-module__openOnBottom,
    .Selector-module__dropDownList.Selector-module__openOnTop,
    .dropDownList.dropDownListOpenOnTop {
        position: absolute;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        border-radius: var(--border-radius-md);
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: var(--neutral-850);
        backdrop-filter: blur(20px);
        box-shadow: var(--shadow-xl);
        animation: scaleIn 0.2s ease;
    }

    .Selector-module__dropDownList.Selector-module__openOnBottom {
        top: calc(100% + 8px);
    }

    /* Модальные окна */
    .ModalLayout-module__modal {
        margin-top: 20px;
        margin-bottom: 20px;
        background: var(--neutral-900);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 24px;
        border-radius: var(--border-radius-xl);
        box-shadow: var(--shadow-xl);
        animation: scaleIn 0.3s ease;
    }

    .dropDownCurrentItem {
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
    }

    .CountSelector-module__inputWrapper,
    .TotalSum-module__inputWrapper {
        background: var(--neutral-900);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
    }

    /* Описание продукта */
    .desc-main {
        border-radius: var(--border-radius-lg);
        padding: 16px;
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: var(--shadow-sm);
    }

    .desc_title {
        font-weight: 500;
        font-size: 12px;
        color: var(--neutral-400);
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .desc-service {
        padding: 12px 16px;
        border-radius: var(--border-radius-md);
        background: var(--neutral-700);
        justify-content: space-between;
        margin-top: 8px;
        display: flex;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .desc-text-main {
        display: flex;
        align-items: center;
        width: 100%;
    }

    .desc-text-info {
        font-weight: 400;
        font-size: 12px;
        color: var(--neutral-500);
        text-align: left;
    }

    .text-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        overflow: hidden;
        flex: 1;
    }

    .service__description {
        margin: 0;
        border-radius: var(--border-radius-md);
        background-color: transparent;
        border: none;
        text-align: center;
        font-size: 13px;
        padding: 8px 0;
        color: var(--neutral-300);
    }

    .pd-additional-info {
        align-items: center;
        display: inline-flex;
        height: 28px;
        padding: 0 12px;
        cursor: pointer;
        transition: transform var(--transition-normal);
        background: var(--gradient-primary);
        background-size: 200% 200%;
        border-radius: var(--border-radius-sm);
        font-size: 12px;
        font-weight: 500;
        color: #fff;
        margin-left: 8px;
        box-shadow: var(--shadow-sm);
    }

    .pd-additional-info:hover {
        transform: scale(1.05);
    }

    .pd-additional {
        align-items: center;
        display: inline-flex;
        background: var(--neutral-700);
        height: 28px;
        padding: 0 12px;
        border-radius: var(--border-radius-sm);
        font-size: 12px;
        color: var(--neutral-300);
        margin-left: 8px;
        box-shadow: var(--shadow-sm);
    }

    .desc-service-main {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Профиль */
    .ProfileNav-module__logOut {
        text-align: center;
        display: block;
        border-radius: var(--border-radius-md);
        width: 100%;
        padding: 12px;
        color: #fff;
        background: linear-gradient(135deg, var(--error-500), #dc2626);
        font-weight: 500;
        transition: all var(--transition-normal);
    }

    .ProfileNav-module__logOut:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    }

    .productModalImg {
        margin-bottom: 0;
        border-radius: var(--border-radius-md);
    }

    .BasketContent-module__header,
    .HistoryContent-module__header {
        display: flex;
        justify-content: space-around;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 20px;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        border-radius: var(--border-radius-lg);
        background: var(--neutral-800);
        padding: 16px;
    }

    .BasketSearch-module__wrapper,
    .HistorySearch-module__wrapper {
        border-radius: var(--border-radius-md);
    }

    .ProfileNav-module__wrapper {
        min-width: 250px;
        background: var(--gradient-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--border-radius-lg);
        padding: 16px;
    }

    .ProfileNav-module__navItem {
        cursor: pointer;
        background: var(--neutral-700);
        border: 1px solid transparent;
        border-radius: var(--border-radius-md);
        font-weight: 500;
        padding: 12px 16px;
        color: var(--neutral-400);
        transition: all var(--transition-normal);
        margin-bottom: 4px;
        text-align: center;
    }

    .ProfileNav-module__navItem:hover,
    .ProfileNav-module__navItem.active {
        background: var(--neutral-600);
        color: var(--neutral-100);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .ProfileNav-module__header {
        display: flex;
        align-items: center;
        flex-direction: column;
        border-radius: var(--border-radius-lg);
        margin-bottom: 16px;
        padding: 16px;
        background: var(--neutral-800);
    }

    .ProfileNav-module__name {
        font-size: 14px;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--border-radius-md);
        font-weight: 600;
        margin-top: 12px;
        background: var(--neutral-700);
        padding: 8px 12px;
        color: var(--neutral-100);
    }

    .ProfileNav-module__img {
        margin-bottom: 0;
        border-radius: var(--border-radius-lg);
        width: 180px;
        height: 180px;
        object-fit: cover;
        border: 3px solid rgba(99, 102, 241, 0.3);
    }

    .ProfileContent-module__input {
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--border-radius-md);
        color: var(--neutral-100);
        transition: all var(--transition-normal);
    }

    .ProfileContent-module__input:focus {
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    .BasketTable-module__tableHeader,
    .HistoryTable-module__tableHeader,
    .ProfileContent-module__infoWrapper {
        border-radius: var(--border-radius-md);
        background: var(--neutral-800);
    }

    .ProfileContent-module__infoLine + .ProfileContent-module__infoLine {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .HistoryTable-module__tableTitle:last-child,
    .HistoryTable-module__tableTitle:first-child {
        text-align: center;
    }

    .BasketTable-module__tableLine:nth-child(2n-1),
    .HistoryTable-module__tableLine:nth-child(2n-1) {
        border-radius: var(--border-radius-md);
        background: rgba(255, 255, 255, 0.02);
    }

    .BasketSearch-module__input,
    .HistorySearch-module__input {
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--neutral-100);
    }

    /* Рулетка */
    .RouletteContent-module__rouletteItemInfo {
        font-size: 0;
    }

    .RouletteContent-module__rouletteItem {
        background: var(--gradient-card);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
    }

    .RouletteContent-module__rouletteItem:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }

    .RouletteContent-module__lineWrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: transparent;
        display: flex;
        align-items: center;
        mask-image: linear-gradient(to right, rgba(255,255,255,0) 5%, #000 25%, #000 75%, rgba(255,255,255,0) 95%);
        -webkit-mask-image: linear-gradient(to right, rgba(255,255,255,0) 5%, #000 25%, #000 75%, rgba(255,255,255,0) 95%);
    }

    .RouletteContent-module__rouletteItemImg {
        width: 180px;
        height: 180px;
        object-fit: contain;
        padding: 16px;
    }

    .productModalContainsItem {
        border-radius: var(--border-radius-md);
        background: var(--neutral-800);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .productModalContainsTitle {
        width: 100%;
        display: block;
        font-weight: 600;
        margin-bottom: 8px;
        margin-top: 16px;
        text-align: center;
        color: var(--neutral-100);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   МОДАЛЬНЫЕ ОКНА
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .modal-lg {
        width: 600px;
        margin: 30px auto;
    }
}

.modal-sm {
    width: 350px;
}

.modal-body {
    margin: 0 16px;
}

.modal-backdrop.show {
    opacity: 0.6;
    background: var(--neutral-950);
}

@media (min-width: 768px) {
    .modal.show .modal-dialog {
        transform: translate(0);
        width: 620px;
    }
}

@media (max-width: 768px) {
    .modal.show .modal-dialog {
        transform: translate(0);
        width: 340px;
    }
}

.modal .modal-footer {
    background: var(--neutral-800);
    border-top: none;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-md);
    margin-top: 16px;
}

.modal .modal-header {
    background: transparent;
    border-bottom: none;
    text-align: center;
    padding: 16px;
}

.modal .modal-content {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

.modal .modal-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-100);
}

.modal-content {
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   КАСТОМНЫЕ ЭЛЕМЕНТЫ (КИТЫ/НАБОРЫ)
   ═══════════════════════════════════════════════════════════════════════════ */

.serverheader {
    border-radius: var(--border-radius-lg);
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    color: var(--neutral-100);
}

.serverheader span {
    padding: 4px 16px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    display: inline-block;
}

.kit-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.kit-item {
    border-radius: var(--border-radius-md);
    text-align: center;
    cursor: pointer;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-md);
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.kit-item:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(99, 102, 241, 0.3);
}

.kit-item__image {
    width: 100%;
    transform: scale(0.7);
    transition: transform var(--transition-normal);
}

.kit-item:hover .kit-item__image {
    transform: scale(0.8);
}

.kit-item__quantity {
    position: relative;
    top: -16px;
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: var(--neutral-700);
    padding: 2px 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ФУТЕР
   ═══════════════════════════════════════════════════════════════════════════ */

.ShopFooter-module__text {
    display: flex;
    column-gap: 24px;
    row-gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 0;
}

.ShopFooter-module__text .contact {
    color: var(--neutral-300);
    white-space: nowrap;
    font-size: 13px;
    transition: color var(--transition-normal);
}

.ShopFooter-module__text .contact:hover {
    color: var(--primary-400);
}

.ShopFooter-module__links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ShopFooter-module__link {
    color: var(--neutral-400);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.ShopFooter-module__link:hover {
    color: var(--primary-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ФОРМЫ ОПЛАТЫ
   ═══════════════════════════════════════════════════════════════════════════ */

.customEmailLabel {
    margin-top: 16px;
    font-weight: 500;
    color: var(--neutral-300);
}

.PlayerBalanceModal-module__input.customEmailInput {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: var(--neutral-800);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    color: var(--neutral-100);
    transition: all var(--transition-normal);
}

.PlayerBalanceModal-module__input.customEmailInput:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.PlayerBalanceModal-module__checkboxWrapper {
    margin-top: 16px;
    display: flex;
    align-items: center;
}

.PlayerBalanceModal-module__checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-500);
}

.PlayerBalanceModal-module__label {
    font-size: 13px;
    color: var(--neutral-400);
}

/* ═══════════════════════════════════════════════════════════════════════════
   СЕРВЕРЫ
   ═══════════════════════════════════════════════════════════════════════════ */

.Servers-module__server {
    background: var(--neutral-700);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--neutral-300);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    margin: 4px;
    transition: all var(--transition-normal);
}

.Servers-module__server:hover {
    background: var(--neutral-600);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--neutral-100);
    transform: translateY(-2px);
}

.Servers-module__active {
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.Servers-module__active:hover {
    background: var(--gradient-primary);
    animation: gradientFlow 4s ease infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   СКРОЛЛБАР
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-900);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-600);
    border-radius: 4px;
    transition: background var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

/* ═══════════════════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* На мобильных - обычный вертикальный layout */
    .Shop-module__wrapper > .boxBody {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
    }

    .Shop-module__wrapper > .boxBody > .Categories-module__categories,
    .Shop-module__wrapper > .boxBody > .Search-module__wrapper,
    .Shop-module__wrapper > .boxBody > .Products-module__wrapper {
        grid-column: unset !important;
        grid-row: unset !important;
        width: 100% !important;
    }

    .Header-module__wrapper {
        padding: 0 16px;
        min-height: 56px;
    }

    .Categories-module__categories {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .Categories-module__category {
        padding: 8px 16px;
        font-size: 12px;
        border-radius: var(--border-radius-sm);
        background: var(--neutral-700);
        color: var(--neutral-300);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 16px;
    }

    .modal .modal-content {
        padding: 16px;
        border-radius: var(--border-radius-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   УТИЛИТЫ И АНИМАЦИИ ДЛЯ JS
   ═══════════════════════════════════════════════════════════════════════════ */

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideIn {
    animation: slideIn 0.5s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.3s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Stagger animations для списков */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* Кастомные модальные окна */
.customModalWrapper {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 18, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.customModalWrapper.active {
    display: flex;
    opacity: 1;
}

.customModalOverflow {
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.customModalPosition {
    display: flex;
    justify-content: center;
}

.customModalContent {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
    min-width: 300px;
}

/* Hover эффекты для интерактивных элементов */
.interactive {
    transition: all var(--transition-normal);
}

.interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Фокус стили */
*:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* Отключение выделения для декоративных элементов */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}