/* ========================================
   1. УЛУЧШЕННЫЕ КАРТОЧКИ ТОВАРОВ
   ======================================== */

/* Улучшенные кнопки платформ */
.platform-badge .badge {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

    .platform-badge .badge:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

/* Анимированные кнопки покупки */
.buy-btn, .btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

    .buy-btn::before, .btn-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .buy-btn:hover::before, .btn-primary:hover::before {
        width: 300px;
        height: 300px;
    }

/* ========================================
   2. УЛУЧШЕННАЯ ТИПОГРАФИКА
   ======================================== */

/* Подключение современных шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Основные стили текста */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Улучшенный межстрочный интервал */
p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.most-popular .item span,
.game-card p {
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ========================================
   3. УЛУЧШЕННАЯ ЦВЕТОВАЯ СХЕМА
   ======================================== */

:root {
    /* Основные цвета */
    --primary-pink: #ec6090;
    --primary-dark: #d63384;
    --accent-blue: #1b9bff;
    --accent-green: #4caf50;
    --accent-yellow: #ffeb3b;
    /* Нейтральные цвета */
    --bg-primary: #1f2122;
    --bg-secondary: #27292a;
    --bg-tertiary: #2f3133;
    /* Текстовые цвета */
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    --gradient-warm: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

/* Мягкие градиенты для фонов */
.page-content {
    background: var(--bg-secondary);
    position: relative;
}

    .page-content::before {
        content: '';
        position: absolute;
        top: -200px;
        left: -200px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(236, 96, 144, 0.1) 0%, transparent 70%);
        filter: blur(100px);
        pointer-events: none;
    }

/* Акцентные элементы */
.heading-section h4 em {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Сбалансированные кнопки */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(236, 96, 144, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(236, 96, 144, 0.4);
    }

/* ========================================
   8. АНИМАЦИИ И ПЕРЕХОДЫ
   ======================================== */

/* Глобальные переходы */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Анимация появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card,
.most-popular .item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

    /* Задержка для каскадной анимации */
    .game-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .game-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .game-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .game-card:nth-child(4) {
        animation-delay: 0.4s;
    }

/* Микроанимации для интерактивных элементов */
.form-control,
.form-check-input,
.payment-method-item {
    transition: all 0.3s ease;
}

    .form-control:focus {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(236, 96, 144, 0.2);
    }

/* Пульсирующая анимация для важных элементов */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 96, 144, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(236, 96, 144, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(236, 96, 144, 0);
    }
}

.btn-primary:hover {
    animation: pulse 1.5s infinite;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border-radius: 15px;
}

    .skeleton::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.05), transparent );
        animation: shimmer 2s infinite;
    }

/* Skeleton для карточки игры */
.skeleton-game-card {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background-color: var(--bg-tertiary);
    border-radius: 15px;
    margin-bottom: 15px;
}

.skeleton-text {
    width: 80%;
    height: 20px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 10px;
}

    .skeleton-text.short {
        width: 50%;
    }

/* Плавные переходы между страницами */
.page-transition {
    animation: pageSlide 0.5s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимация для модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.4s ease-out;
    transform: scale(0.9);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Улучшенная анимация загрузки */
.js-preloader .dot,
.js-preloader .dots span {
    background: var(--gradient-primary);
    box-shadow: 0 0 20px rgba(236, 96, 144, 0.5);
}

/* Hover эффект для ссылок */
a {
    position: relative;
    transition: color 0.3s ease;
}

    a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }

    a:hover::after {
        width: 100%;
    }
/* Анимированный фон */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none; /* Критически важно! */
}

/* Canvas для частиц */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Градиентные сферы */
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec6090 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #d63384 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: 5s;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #ec6090 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-100px, 50px) scale(0.9); }
    75% { transform: translate(50px, 100px) scale(1.05); }
}

/* Сетка линий */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(236, 96, 144, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 96, 144, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 15s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Стили для модального окна выбора регистрации */
#guestChoiceModal .modal-content {
    background: linear-gradient(135deg, #27292a 0%, #1f2122 100%);
    border: 1px solid rgba(236, 96, 144, 0.2);
}

.benefits-list .benefit-item {
    padding: 8px 0;
    color: #ddd;
    font-size: 15px;
    transition: all 0.3s ease;
}

    .benefits-list .benefit-item:hover {
        color: #fff;
        transform: translateX(5px);
    }

#guestChoiceModal .btn-primary {
    background: linear-gradient(45deg, #ec6090, #d63384);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #guestChoiceModal .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(236, 96, 144, 0.4);
    }

#guestChoiceModal .btn-outline-secondary {
    border: 2px solid #666;
    color: #ccc;
    padding: 12px 30px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

    #guestChoiceModal .btn-outline-secondary:hover {
        background: #333;
        border-color: #888;
        color: #fff;
        transform: translateY(-2px);
    }

/* Анимация появления модального окна */
#guestChoiceModal.show .modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.provider-item:hover {
    border-color: #ec6090 !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(236, 96, 144, 0.3);
}

    .provider-item:hover .fa-chevron-right {
        color: #ec6090 !important;
        transform: translateX(5px);
        transition: all 0.3s ease;
    }

.provider-item.selected {
    border-color: #ec6090 !important;
    background-color: #2a2d30 !important;
}

.provider-item.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

    .provider-item.disabled:hover {
        transform: none;
        box-shadow: none;
        border-color: transparent !important;
    }

/* Анимация появления */
#paymentProviderModal .modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.provider-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 96, 144, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(236, 96, 144, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(236, 96, 144, 0);
    }
}
.modal-backdrop + .modal.show + .modal-backdrop {
    z-index: 1055 !important;
}

#paymentProviderModal {
    z-index: 1060 !important;
}

/* Эффект затемнения */
.modal.dim-background {
    pointer-events: none;
}

    .modal.dim-background .modal-content {
        
        transition: all 0.3s ease;
    }
