/**
 * Custom Styling for Freemius Pricing Page
 * Makes the pricing page more beautiful and modern
 */

/* Main Pricing Container */
#fs_pricing {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 30px 20px;
}

#fs_pricing_wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Pricing Cards Enhancement */
.fs-pricing-plans .fs-plan {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.fs-pricing-plans .fs-plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

/* Featured Plan Highlight */
.fs-pricing-plans .fs-plan.featured,
.fs-pricing-plans .fs-plan.fs-featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #ffc107;
    position: relative;
}

.fs-pricing-plans .fs-plan.featured::before,
.fs-pricing-plans .fs-plan.fs-featured::before {
    content: '⭐ Most Popular';
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Plan Title */
.fs-plan-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.fs-plan.featured .fs-plan-title,
.fs-plan.fs-featured .fs-plan-title {
    color: white;
}

/* Price Display */
.fs-price {
    font-size: 48px;
    font-weight: 800;
    color: #667eea;
    margin: 20px 0;
    line-height: 1.2;
}

.fs-plan.featured .fs-price,
.fs-plan.fs-featured .fs-price {
    color: white;
}

.fs-price-cycle {
    font-size: 18px;
    color: #718096;
    font-weight: 500;
}

.fs-plan.featured .fs-price-cycle,
.fs-plan.fs-featured .fs-price-cycle {
    color: rgba(255, 255, 255, 0.9);
}

/* Discount Badge */
.fs-annual-discount,
.fs-discount-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Features List */
.fs-features-list,
.fs-plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.fs-features-list li,
.fs-plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #4a5568;
}

.fs-features-list li:last-child,
.fs-plan-features li:last-child {
    border-bottom: none;
}

.fs-features-list li::before,
.fs-plan-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.fs-plan.featured .fs-features-list li,
.fs-plan.fs-featured .fs-features-list li,
.fs-plan.featured .fs-plan-features li,
.fs-plan.fs-featured .fs-plan-features li {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* CTA Buttons */
.fs-checkout-button,
.fs-upgrade-button,
button.fs-checkout-button,
a.fs-checkout-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.fs-checkout-button:hover,
.fs-upgrade-button:hover,
button.fs-checkout-button:hover,
a.fs-checkout-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

.fs-plan.featured .fs-checkout-button,
.fs-plan.fs-featured .fs-checkout-button {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4) !important;
}

.fs-plan.featured .fs-checkout-button:hover,
.fs-plan.fs-featured .fs-checkout-button:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5) !important;
}

/* Billing Cycle Tabs */
.fs-billing-cycle-tabs,
.nav-tab-wrapper {
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    gap: 8px;
}

.fs-billing-cycle-tabs .nav-tab,
.nav-tab-wrapper .nav-tab {
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #718096 !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

.fs-billing-cycle-tabs .nav-tab:hover,
.nav-tab-wrapper .nav-tab:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.fs-billing-cycle-tabs .nav-tab-active,
.nav-tab-wrapper .nav-tab-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Coupon/Discount Display */
.fs-coupon-applied,
.fs-discount-applied {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
}

.fs-coupon-applied strong,
.fs-discount-applied strong {
    color: #155724;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

.fs-coupon-code {
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
    display: inline-block;
    margin: 8px 0;
}

/* Loading State */
.fs-pricing-loading {
    text-align: center;
    padding: 60px 20px;
}

.fs-pricing-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #fs_pricing_wrapper {
        padding: 20px;
        margin: 10px;
    }
    
    .fs-price {
        font-size: 36px;
    }
    
    .fs-plan-title {
        font-size: 24px;
    }
    
    .fs-billing-cycle-tabs,
    .nav-tab-wrapper {
        flex-wrap: wrap;
    }
    
    .fs-billing-cycle-tabs .nav-tab,
    .nav-tab-wrapper .nav-tab {
        flex: 1;
        min-width: 120px;
    }
}

/* Animation for plan cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fs-pricing-plans .fs-plan {
    animation: fadeInUp 0.6s ease-out;
}

.fs-pricing-plans .fs-plan:nth-child(1) {
    animation-delay: 0.1s;
}

.fs-pricing-plans .fs-plan:nth-child(2) {
    animation-delay: 0.2s;
}

.fs-pricing-plans .fs-plan:nth-child(3) {
    animation-delay: 0.3s;
}

/* Custom scrollbar for pricing wrapper */
#fs_pricing_wrapper::-webkit-scrollbar {
    width: 8px;
}

#fs_pricing_wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#fs_pricing_wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

#fs_pricing_wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}






