/* Payment Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.purchase-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Package Cards */
.packages-grid {
    display: grid;
    gap: 15px;
}

.package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.package-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.package-body {
    margin-bottom: 15px;
}

.token-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.package-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #6366f1;
    margin-bottom: 10px;
}

.select-package-btn {
    width: 100%;
    padding: 10px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.select-package-btn:hover {
    background: #4f46e5;
}

/* Provider Selection */
.provider-selection {
    padding: 10px 0;
}

.selected-package-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.selected-package-summary h6 {
    margin: 0 0 5px 0;
    color: #333;
}

.provider-options {
    display: grid;
    gap: 15px;
}

.provider-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.provider-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.provider-header h6 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.provider-logo {
    font-size: 2rem;
}

.provider-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #999;
}

.payment-system {
    padding: 4px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Payment Form */
#payment-element {
    min-height: 200px;
}

.selected-package-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.package-summary {
    margin-top: 10px;
}

.package-summary p {
    margin: 5px 0;
}

/* Success/Error Views */
.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.text-success {
    color: #10b981;
}

.text-danger {
    color: #ef4444;
}

.text-muted {
    color: #6b7280;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    color: #6366f1;
    text-decoration: none;
    padding: 5px 10px;
}

.btn-link:hover {
    color: #4f46e5;
}

.w-100 {
    width: 100%;
}

/* Loading Spinner */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .purchase-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .payment-icons i {
        font-size: 1.25rem;
    }
}