/* Pricing Page Styles */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.plan-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.plan-card.current-plan {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.plan-card.recommended {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
}

.plan-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-header.free {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.plan-header.home {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.plan-header.pro {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.plan-header.custom {
    background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
}

.plan-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 0 12px 0;
}

.promo-ribbon {
    position: absolute;
    top: 10px;
    right: -25px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 10px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 20;
    min-width: 80px;
    text-align: center;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.plan-price-small {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.plan-features {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.plan-feature i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.feature-included {
    color: #28a745;
}

.feature-included.fa-bolt {
    color: #ffc107;
}

.feature-priority {
    color: #28a745;
}

.feature-not-included {
    color: #dc3545;
}

.feature-cloud {
    color: #007bff;
}

.plan-actions {
    padding: 1.5rem;
    padding-top: 0;
}

.btn-select {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-select:hover {
    transform: translateY(-2px);
}

.btn-select:disabled {
    transform: none;
    opacity: 0.6;
}

.frequency-toggle {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 2rem;
}

.frequency-toggle .btn {
    border: none;
    background: transparent;
    color: #6c757d;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.frequency-toggle .btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.custom-multiplier {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.multiplier-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.multiplier-display {
    font-weight: 600;
    color: #6f42c1;
    min-width: 40px;
    text-align: center;
}

.multiplier-slider {
    flex: 1;
    margin: 0;
    max-width: 140px;
}

.multiplier-info {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin: 0;
}

.plan-card.current-plan .custom-multiplier {
    background: transparent;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.plan-card.current-plan .multiplier-controls {
    background: transparent;
}

.plan-card.current-plan .multiplier-slider {
    background-color: rgba(40, 167, 69, 0.1);
}

.plan-card.current-plan .multiplier-info {
    color: #1e7e34;
}

.savings-badge {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.current-subscriptions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Package quantity input styling */
#packageQuantity {
    width: 120px;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

#packageQuantity::-webkit-outer-spin-button,
#packageQuantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 768px) {
    .plan-price {
        font-size: 2rem;
    }
    
    .plan-card {
        margin-bottom: 1.5rem;
    }
    
    /* Stack header elements on mobile */
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .frequency-toggle {
        align-self: center;
    }
}

/* Gold Select Button - Same color as btn-gold but without glow effect */
.btn-select-gold {
    background-color: gold !important;
    color: black !important;
    border: none !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.btn-select-gold:hover {
    background-color: gold !important;
    color: black !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
}

.btn-select-gold:active {
    background-color: gold !important;
    color: black !important;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.btn-select-gold:focus {
    background-color: gold !important;
    color: black !important;
    outline: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

/* ============================================================================
   UPGRADE MODAL STYLES
   ============================================================================ */

/* Subscription Modal - Tall and Narrow */
#subscriptionModal .modal-dialog {
    max-width: 800px;
    width: 66%;
    max-height: 90vh;
    height: 90vh;
    margin: 2rem auto;
}

#subscriptionModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#subscriptionModal .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 500px;
}

/* Wizard Steps */
.wizard-step {
    min-height: 300px;
}

.step-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.step-header h6 {
    color: #007bff;
    font-weight: 600;
}

/* Current Subscriptions Display */
.current-subscriptions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.subscription-list {
    max-height: 150px;
    overflow-y: auto;
}

.subscription-item {
    background: white;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.subscription-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Action Selection */
.action-selection .form-check {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.action-selection .form-check:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.action-selection .form-check-input:checked + .form-check-label {
    color: #007bff;
}

/* Upgrade Options */
.upgrade-option-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.upgrade-option-card:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.upgrade-option-card.selected {
    border-color: #007bff !important;
    background-color: #f8f9fa;
}

.upgrade-types .form-check {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upgrade-types .form-check:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upgrade-types .form-check-input:checked + .form-check-label {
    color: #007bff;
}

.upgrade-types .form-check-input:disabled + .form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}

.pricing-info {
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

/* Upgrade Details */
.upgrade-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.upgrade-details .detail-row:last-child {
    border-bottom: none;
}

.upgrade-details .detail-row span:first-child {
    color: #6c757d;
    font-weight: 500;
}

.upgrade-details .detail-row span:last-child {
    font-weight: 600;
}

/* Summary Display */
.upgrade-summary {
    max-height: 400px;
    overflow-y: auto;
}

.summary-card {
    background: #f8f9fa;
}

.plan-transition {
    font-size: 1.1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.plan-transition i {
    color: #007bff;
}

/* Billing Summary */
.billing-summary {
    background: #fff;
    border: 1px solid #dee2e6;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.billing-row.deduction {
    color: #28a745;
    font-size: 0.9rem;
}

.billing-row.total {
    font-size: 1.1rem;
    padding-top: 0.75rem;
    color: #007bff;
}

/* Subscription Selection */
.subscription-selection {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.subscription-selection select {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.subscription-selection select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Direct Purchase Step */
.direct-purchase-step .selected-plan-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #007bff;
}

.direct-purchase-step .alert-info {
    border-color: #007bff;
    background-color: rgba(0,123,255,0.1);
}

/* Modal Footer Enhancements */
.modal-footer .btn-outline-primary {
    border-width: 2px;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-step {
        min-height: 250px;
    }
    
    .upgrade-types .form-check {
        padding: 0.75rem;
    }
    
    .pricing-info {
        font-size: 0.8rem;
    }
    
    .billing-row {
        font-size: 0.9rem;
    }
    
    .plan-transition {
        font-size: 1rem;
    }
}

/* Subscription Modal - Header Alt Style */
#subscriptionModal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-bottom: none;
}

#subscriptionModal .modal-title {
    color: #fff;
}

#subscriptionModal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

/* Credit Modal - Header Alt Style */
#creditModal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-bottom: none;
}

#creditModal .modal-title {
    color: #fff;
}

#creditModal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

/* Plan text colors (match pricing palette) */
.text-plan-free { color: #6c757d !important; }
.text-plan-home { color: #28a745 !important; }
.text-plan-pro { color: #0d6efd !important; }
.text-plan-custom { color: #17a2b8 !important; }
.text-plan-credits { color: #ffc107 !important; }

