/* ========================================
   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;
    }

.email-verification-container {
    position: relative;
    overflow: hidden;
}

.email-verification-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 96, 144, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.verification-header .email-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.code-inputs {
    position: relative;
}

.code-digit {
    transition: all 0.3s ease;
    position: relative;
}

.code-digit:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 96, 144, 0.3) !important;
}

.code-digit.filled {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-color: #28a745 !important;
    animation: fillSuccess 0.3s ease;
}

@keyframes fillSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.verification-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    animation: slideIn 0.5s ease;
}

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

.timer-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #ec6090;
    border-radius: 50%;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
}

.timer-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 10px;
    background: #ec6090;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(0deg);
    animation: tick 60s linear infinite;
}

@keyframes tick {
    to { transform: translate(-50%, -100%) rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .email-verification-container {
        padding: 20px !important;
        margin: 10px;
    }

    .verification-header h2 {
        font-size: 1.5rem !important;
    }

    .code-inputs {
        gap: 0.25rem !important;
        justify-content: space-between;
    }

    .code-digit {
        width: 35px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .email-verification-container::before,
    .verification-header .email-icon,
    .code-digit,
    .timer-circle::before {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .code-digit {
        border-width: 3px;
    }

    .alert {
        border-width: 2px;
    }
}

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
