/* ===============================================
   ENHANCED PRICING CARDS STYLES
   =============================================== */

.challenges-section {
    position: relative;
    padding: 8rem 0;
    overflow: visible;
}

.challenges-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.challenges-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 50%, #ffffff 100%);
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.toggle-wrapper {
    position: relative;
    display: inline-flex;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 16px;
    padding: 0.5rem;
    border: 2px solid rgba(37, 99, 235, 0.12);
}

.toggle-option {
    position: relative;
    z-index: 2;
    padding: 1rem 2.5rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.toggle-option span {
    font-size: 1.0625rem;
}

.toggle-option small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
}

.toggle-option.active {
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

/* Pricing Cards Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding-top: 3rem;
    overflow: visible;
    justify-items: center;
}

/* Enhanced Pricing Card */
.pricing-card-enhanced {
    position: relative;
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    border: 2px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    contain: layout paint;
}

.pricing-card-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(37, 99, 235, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pricing-card-enhanced:hover::before {
    opacity: 1;
}

.pricing-card-enhanced:hover {
    transform: translateY(-12px);
    border-color: #2563eb;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.15);
}

/* Card Shine Effect */
.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

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

/* Card Glow Effect */
.card-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    animation: cardGlowRotate 10s linear infinite;
}

.pricing-card-enhanced:hover .card-glow-effect {
    opacity: 1;
}

@keyframes cardGlowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Featured Card */
.pricing-card-enhanced.featured {
    border-color: #2563eb;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    transform: scale(1);
    margin-top: 0;
    padding-top: 4rem;
}

.pricing-card-enhanced.featured:hover {
    transform: translateY(-12px);
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.card-badge.starter {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.card-badge.pro {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.card-badge.elite {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Popular Badge */
.popular-badge-new {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
    z-index: 5;
    animation: badgeBounce 2s ease-in-out infinite;
    border: 3px solid white;
}

@keyframes badgeBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -4px); }
}

.badge-icon {
    font-size: 1rem;
    animation: iconRotate 3s linear infinite;
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.badge-sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Card Header */
.card-header-new {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0;
    margin-top: 0;
}

.pricing-card-enhanced.featured .card-header-new {
    padding-top: 3.5rem; /* Adjusted padding for badge above card */
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.pricing-card-enhanced:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

.card-title-new {
    font-size: 3rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #111827, #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle-new {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* Card Price */
.card-price-new {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
    position: relative;
}

.price-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.price-old {
    font-size: 1.25rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 600;
}

.price-save {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    margin-top: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 900;
    color: #111827;
    line-height: 1;
}

.price-period {
    font-size: 0.9375rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.price-refund {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10b981;
}

.price-refund i {
    font-size: 1rem;
}

/* Card Highlights */
.card-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: scale(1.05);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.highlight-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.25rem;
}

.highlight-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 600;
}

/* Card Features */
.card-features-new {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.card-features-new li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.card-features-new li:last-child {
    border-bottom: none;
}

.card-features-new li:hover {
    padding-left: 0.5rem;
    background: rgba(37, 99, 235, 0.02);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-right: 0.5rem;
    border-radius: 12px;
}

.feature-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: rgba(16, 103, 185, 0.98) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #10b981 !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}
.card-features-new>.feature-icon>i{
    font-size: 0.8rem !important;
}
.card-features-new li:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
}

.feature-icon.bonus {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.feature-text {
    flex: 1;
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.5;
}

.feature-text strong {
    color: #111827;
    font-weight: 700;
}

.feature-text.bonus {
    color: #8b5cf6;
}

.feature-text.bonus strong {
    color: #7c3aed;
}

/* Card CTA */
.card-cta-new {
    text-align: center;
}

.btn-card-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem 2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-card-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-card-new:hover::before {
    opacity: 1;
}

.btn-card-new span,
.btn-card-new i {
    position: relative;
    z-index: 1;
}

.btn-card-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-card-new i {
    transition: transform 0.3s ease;
}

.btn-card-new:hover i {
    transform: translateX(4px);
}

.btn-card-new.featured {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-card-new.featured::before {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.card-note {
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Pricing Comparison Link */
.pricing-comparison {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(37, 99, 235, 0.05);
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: 16px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comparison-link:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.comparison-link i:last-child {
    transition: transform 0.3s ease;
}

.comparison-link:hover i:last-child {
    transform: translateX(4px);
}

/* More Sizes Link */
.more-sizes {
    text-align: center;
    margin-top: 3rem;
}

.more-sizes p {
    font-size: 1rem;
    color: #6b7280;
}

.more-sizes a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.more-sizes a:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        padding-inline: 1.25rem;
    }
    
    .pricing-card-enhanced.featured {
        transform: scale(1);
    }
    
    .pricing-card-enhanced.featured:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 768px) {
    .toggle-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        align-items: stretch;
    }
    
    .toggle-option {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .pricing-card-enhanced {
        padding: 2rem 1.5rem;
    }
    
    .card-highlights {
        grid-template-columns: 1fr;
    }

    .popular-badge-new {
        left: 50%;
        transform: translateX(-50%);
        top: -1.25rem;
    }
}

@media (max-width: 576px) {
    .challenges-section {
        padding: 4rem 0;
    }

    .pricing-cards-grid {
        padding-inline: 1rem;
        gap: 1.5rem;
    }

    .pricing-card-enhanced {
        padding: 1.75rem 1.25rem;
        border-radius: 24px;
    }

    .card-title-new {
        font-size: 2rem;
    }

    .card-highlights {
        gap: 0.75rem;
    }

    .popular-badge-new {
        width: calc(100% - 2rem);
        left: 1rem;
        transform: none;
        top: 0.5rem;
        justify-content: center;
    }
}

