/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 40px 32px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(124, 77, 255, 0.2);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.modal-header {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.modal-logo {
    opacity: 0.9;
}

.modal-body {
    text-align: center;
}

.modal-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.modal-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.steam-button {
    width: 100%;
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.3);
}

.steam-button:hover {
    background: linear-gradient(135deg, #8c5eff 0%, #7542ff 100%);
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.5);
    transform: translateY(-2px);
}

.steam-button:active {
    transform: translateY(0);
}

.steam-icon {
    width: 24px;
    height: 24px;
}

/* Trigger Button (для примера) */
.trigger-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(124, 77, 255, 0.3);
    transition: all 0.3s ease;
}

.trigger-btn:hover {
    background: linear-gradient(135deg, #8c5eff 0%, #7542ff 100%);
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.5);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 14px;
    }
}