/* Pricing Section - Premium Blue Theme with 5 Tiers */

/* 5-Tier Pricing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 3rem auto 4rem;
    background: rgba(30, 41, 59, 0.8);
    padding: 0.5rem;
    border-radius: 100px;
    width: fit-content;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.pricing-toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.pricing-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(59, 130, 246, 0.1);
}

.pricing-toggle-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.save-badge-small {
    background: #10b981;
    color: #000;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Old toggle styles kept for compatibility */
.billing-toggle-wrapper {
    display: none;
}

/* Pricing Options Grid - Single Centered Card */
.pricing-options-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 4rem;
}

/* Premium Card - Centered and Width Matched */
.pricing-premium-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Width Settings to match pill selector */
    width: 100%;
    max-width: 750px;
    /* Approximate width of 5-item pill selector */
}

/* Hide Value Props Column if any remain */
.pricing-value-props {
    display: none;
}


/* Premium Card with Dynamic Most Popular Effects */
.pricing-premium-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Most Popular Glow Effect */
.pricing-premium-card.is-popular {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-5px);
}

.pricing-premium-card.is-popular::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), #60a5fa, var(--primary-color));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

/* Gold Text for Premium */
.text-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 50%, #FFD700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    /* Extra bold */
}

/* Title Row Flex Layout */
/* Title Row Flex Layout */
.premium-title-row {
    display: flex;
    justify-content: flex-start;
    /* Changed to left align */
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    /* Handle mobile gracefully */
}

/* Badge Styles - Adjusted for inline */
.popular-badge {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(37, 99, 235, 1) 100%);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    display: none;
    /* Hidden by default */
}

/* Show badge when parent has 'is-popular' class */
.pricing-premium-card.is-popular .popular-badge {
    display: inline-block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pricing-premium-card.is-popular .popular-badge {
    display: inline-block;
}

.premium-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Price Display */
.premium-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Section */
.premium-features h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
}

.features-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* CTA Button */
.pricing-premium-card .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.pricing-premium-card .btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .pricing-options-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-value-props {
        order: 2;
    }

    .pricing-premium-card {
        order: 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pricing-toggle-wrapper {
        flex-wrap: wrap;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }

    .pricing-toggle-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .save-badge-small {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }

    .pricing-premium-card {
        padding: 1.5rem;
    }

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