
/* Payment Plans Grid */
.ppr-payment-plans .plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.plan-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.plan-price {
    font-size: 2em;
    color: #4CAF50;
    font-weight: bold;
    margin: 15px 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.plan-features li:last-child {
    border-bottom: none;
}

.ppr-select-plan {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.ppr-select-plan:hover {
    background: #45a049;
}

/* Payment Modal */
#ppr-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppr-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Payment Forms */
.ppr-payment-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.ppr-submit-payment {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 20px;
}

.ppr-submit-payment:hover {
    background: #0b7dda;
}

/* Bank Details */
.bank-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.bank-details p {
    margin: 10px 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #6c757d;
    color: white;
}

/* Login Required Message */
.ppr-login-required {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.ppr-login-required .button {
    background: #4CAF50;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
}

/* Payment Required Message */
.ppr-payment-required {
    text-align: center;
    padding: 40px;
}

/* Subscriptions Table */
.ppr-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.ppr-subscriptions-table th,
.ppr-subscriptions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.ppr-subscriptions-table th {
    background: #f8f9fa;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppr-payment-plans .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .ppr-subscriptions-table {
        display: block;
        overflow-x: auto;
    }
}
/* Modal Styles */
.ppr-modal-open {
    overflow: hidden;
}

#ppr-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ppr-modal-content {
    background: white;
    padding: 0;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.plan-amount {
    font-size: 1.8em;
    font-weight: bold;
    color: #4CAF50;
    margin: 0;
}

.ppr-close-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.ppr-close-modal:hover {
    color: #333;
}

/* Gateway Selection */
.gateway-buttons {
    padding: 20px;
    display: grid;
    gap: 15px;
}

.gateway-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.gateway-btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gateway-btn i {
    font-size: 24px;
    color: #666;
    width: 40px;
    text-align: center;
}

.gateway-btn span {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    flex: 1;
}

.gateway-btn small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Specific gateway colors */
.gateway-btn[data-gateway="paystack"] i {
    color: #00a859; /* Paystack green */
}

.gateway-btn[data-gateway="flutterwave"] i {
    color: #F5A623; /* Flutterwave orange */
}

.gateway-btn[data-gateway="bank_deposit"] i {
    color: #2196F3; /* Blue */
}

.gateway-btn[data-gateway="recharge_card"] i {
    color: #9C27B0; /* Purple */
}

/* Payment Form */
.ppr-payment-header {
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.ppr-payment-header h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.ppr-payment-header p {
    margin: 0;
    color: #666;
}

.ppr-payment-form {
    padding: 20px;
}

.bank-details, .recharge-card-form {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bank-details h5, .recharge-card-form h5 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.bank-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.bank-info p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bank-info p:last-child {
    border-bottom: none;
}

.reference-code {
    font-family: monospace;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.payment-proof {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group small {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* Payment Actions */
.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.payment-actions .button {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

/* Loading, Success, Error States */
.ppr-loading,
.ppr-success,
.ppr-error {
    padding: 40px 20px;
    text-align: center;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon, .error-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.success-icon {
    color: #4CAF50;
}

.error-icon {
    color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppr-modal-content {
        max-height: 95vh;
    }
    
    .gateway-buttons {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .gateway-btn {
        padding: 15px;
    }
}

/* Webhook/Verification Pages */
.payment-result-page {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.payment-result-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.payment-result-icon.success {
    color: #4CAF50;
}

.payment-result-icon.error {
    color: #f44336;
}

.payment-result-icon.pending {
    color: #FF9800;
}

.payment-result-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Payment Form Styles */
.ppr-payment-header {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.ppr-payment-header h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.plan-description {
    color: #666;
    margin-top: 10px;
    font-size: 14px;
}

.ppr-gateway-selection {
    margin-bottom: 20px;
}

.ppr-gateway-selection h5 {
    margin-bottom: 10px;
    color: #333;
}

.gateway-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.gateway-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gateway-btn:hover {
    border-color: #007cba;
}

.gateway-btn.active {
    border-color: #007cba;
    background: #007cba;
    color: white;
}

.gateway-btn i {
    font-size: 18px;
}

.gateway-form-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gateway-form-content h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.bank-info p {
    margin: 8px 0;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.reference-code {
    font-family: monospace;
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    color: #333;
}

.payment-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.ppr-loading,
.ppr-error {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.ppr-loading:before {
    content: "⏳";
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.ppr-error {
    color: #d63638;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

/* Responsive */
@media (max-width: 768px) {
    .gateway-buttons {
        flex-direction: column;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .button {
        width: 100%;
    }
}

.ppr-loading,
.ppr-success,
.ppr-error {
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
}

.ppr-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ppr-success .success-icon {
    color: #4CAF50;
    font-size: 60px;
    margin-bottom: 20px;
}

.ppr-success h4 {
    color: #333;
    margin-bottom: 10px;
}

.ppr-success p {
    color: #666;
    margin-bottom: 20px;
}

/* Payment Summary Styles */
.payment-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.payment-summary h5 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.summary-details p {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-details p:last-child {
    border-bottom: none;
}

.summary-details strong {
    color: #333;
    min-width: 80px;
    display: inline-block;
}

.redirect-notice {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
    margin-top: 20px;
}

.redirect-notice .notice {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.notice.notice-info {
    background: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 12px;
    margin: 0;
}