/* Payment Modal Styles */

.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.payment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.payment-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.payment-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.payment-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.payment-modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.payment-modal-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.payment-features {
    margin: 30px 0;
}

.payment-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
}

.payment-feature .feature-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.payment-pricing {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 15px;
    color: white;
}

.price-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.price-tag .currency {
    font-size: 32px;
    font-weight: 600;
}

.price-tag .amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
}

.price-tag .period {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

.price-note {
    margin: 10px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

.payment-btn-primary {
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(147, 51, 234, 0.4), 0 4px 12px -2px rgba(126, 34, 206, 0.3);
    position: relative;
    overflow: hidden;
}

.payment-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.payment-btn-primary:hover::before {
    left: 100%;
}

.payment-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px -5px rgba(147, 51, 234, 0.5), 0 8px 20px -2px rgba(126, 34, 206, 0.4);
}

.payment-btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px -3px rgba(147, 51, 234, 0.4);
}

.payment-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.payment-btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.payment-btn-primary .btn-icon {
    font-size: 22px;
}

.payment-secure {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-secure .secure-icon {
    font-size: 16px;
}

.payment-loading {
    text-align: center;
    padding: 20px;
}

.payment-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.payment-error {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #c33;
    text-align: center;
}

/* Dark mode support */
.dark-theme .payment-modal-content {
    background: #1e1e1e;
}

.dark-theme .payment-modal-header h2,
.dark-theme .payment-feature {
    color: #e0e0e0;
}

.dark-theme .payment-modal-header p,
.dark-theme .payment-secure {
    color: #999;
}

.dark-theme .payment-modal-close {
    color: #999;
}

.dark-theme .payment-modal-close:hover {
    background: #333;
    color: #e0e0e0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .payment-modal-content {
        padding: 30px 20px;
        width: 95%;
        max-height: 95vh;
    }

    .payment-modal-header h2 {
        font-size: 24px;
    }

    .payment-feature {
        font-size: 14px;
        padding: 10px 0;
    }

    .price-tag .amount {
        font-size: 42px;
    }

    .payment-btn-primary {
        font-size: 16px;
        padding: 16px 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}