/* ============================================
   PRICING PAGE STYLES
   ============================================ */

/* Pricing Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #2E86AB 0%, #4A90E2 25%, #7B68EE 50%, #A23B72 75%, #2E86AB 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(162,59,114,0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: var(--background-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pricing Card Base */
.pricing-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 134, 171, 0.05), transparent);
    transition: left 0.6s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pricing-card:hover::before {
    left: 100%;
}

/* Popular Card */
.pricing-card.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
    border: 3px solid #667eea;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 70px rgba(102, 126, 234, 0.5);
}

.pricing-card.popular .plan-name,
.pricing-card.popular .plan-description,
.pricing-card.popular .features-list li {
    color: white;
}

.pricing-card.popular .features-list li.disabled {
    color: rgba(255, 255, 255, 0.6);
}

.pricing-card.popular .features-list i {
    color: white;
}

.pricing-card.popular .price-display {
    color: white;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.savings-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Card Header */
.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(46, 134, 171, 0.3);
    transition: all 0.3s ease;
}

.pricing-card:hover .plan-icon {
    transform: scale(1.1) rotate(5deg);
}

.pricing-card.popular .plan-icon {
    background: rgba(255, 255, 255, 0.2);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.price-display {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
    line-height: 1;
}

.price-display .currency {
    font-size: 2rem;
    vertical-align: super;
    opacity: 0.7;
}

.price-display .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-card.popular .price-display .period {
    color: rgba(255, 255, 255, 0.9);
}

.plan-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 10px;
}

.plan-description.original-price {
    color: var(--text-secondary);
}

.plan-description.original-price s {
    margin-right: 8px;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    margin: 15px 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.features-list li:hover {
    transform: translateX(5px);
}

.features-list i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.features-list li:not(.disabled) i {
    background: var(--primary-color);
    color: white;
}

.features-list li.disabled {
    opacity: 0.5;
}

.features-list li.disabled i {
    background: #d1d5db;
    color: #6b7280;
}

.pricing-card.popular .features-list li:not(.disabled) i {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* CTA Buttons */
.pricing-cta {
    width: 100%;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.pricing-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.pricing-cta:hover::after {
    width: 300px;
    height: 300px;
}

.pricing-cta i,
.pricing-cta span {
    position: relative;
    z-index: 1;
}

.pricing-cta.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(46, 134, 171, 0.3);
}

.pricing-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 134, 171, 0.4);
}

.pricing-cta.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.pricing-cta.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.pricing-card.popular .pricing-cta.primary {
    background: white;
    color: #667eea;
}

.pricing-card.popular .pricing-cta.primary:hover {
    background: rgba(255, 255, 255, 0.95);
}

.money-back {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-card.popular .money-back {
    color: rgba(255, 255, 255, 0.9);
}

/* Social Proof Section */
.social-proof {
    padding: 80px 0;
    background: var(--background-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: var(--background-light);
}

.faq-accordion {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Final CTA Section */
.final-cta {
    padding: 80px 0;
    background: var(--background-white);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(46, 134, 171, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    color: white;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Active navigation link */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Dark Mode Overrides */
[data-theme="dark"] .pricing-card {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .pricing-card.popular {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
}

[data-theme="dark"] .plan-name {
    color: var(--text-primary);
}

[data-theme="dark"] .features-list li {
    color: var(--text-primary);
}

[data-theme="dark"] .features-list li.disabled i {
    background: #4b5563;
    color: #9ca3af;
}

[data-theme="dark"] .stat-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .faq-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .faq-question {
    color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 120px 0 80px;
    }

    .pricing-hero h1 {
        font-size: 2.5rem;
    }

    .pricing-subtitle {
        font-size: 1.1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pricing-card.popular {
        transform: none;
        order: -1;
    }

    .pricing-card {
        padding: 30px 25px;
    }

    .price-display {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-item {
        padding: 20px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 20px 20px;
    }

    .cta-card {
        padding: 40px 25px;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pricing-hero h1 {
        font-size: 2rem;
    }

    .price-display {
        font-size: 2.5rem;
    }

    .plan-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .features-list li {
        font-size: 0.9rem;
    }

    /* Stack pricing buttons vertically on very small screens */
    .package-card button {
        font-size: 0.85rem !important;
        padding: 12px !important;
    }

    .package-card button span:last-child {
        font-size: 1.1rem !important;
    }
}
