.vpi-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.vpi-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.vpi-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.vpi-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a202c;
}

.vpi-modal-body {
    padding: 25px;
}

.vpi-close {
    color: #a0aec0;
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.vpi-close:hover {
    color: #4a5568;
}

.vpi-form-group {
    margin-bottom: 20px;
}

.vpi-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
}

.vpi-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.vpi-card-row {
    display: flex;
    gap: 15px;
}

.vpi-pay-button {
    background-color: #6772e5;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}

.vpi-pay-button:hover {
    background-color: #5469d4;
}

.vpi-footer {
    padding: 15px;
    text-align: center;
    font-size: 12px;
    color: #718096;
    border-top: 1px solid #edf2f7;
}

.vpi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.vpi-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6772e5;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: vpi-spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes vpi-spin {
    0% {
        transform: rotate(0deg);
    }

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