/* Modern Pricing Section Styles */
.modern-pricing-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff !important;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.package-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid rgba(108, 29, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    overflow: hidden;
    group: true;
    color: #1e293b; /* Ensure dark text on light card background */
}

.pricing-card:hover {
    border-color: rgba(108, 29, 255, 0.3);
    box-shadow: 0 25px 50px rgba(108, 29, 255, 0.15);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: rgba(108, 29, 255, 0.3);
    box-shadow: 0 20px 40px rgba(108, 29, 255, 0.2);
}

/* Decorative gradient orbs */
.card-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    transition: all 0.7s ease;
    pointer-events: none;
}

.card-orb-1 {
    top: -80px;
    right: -80px;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(108, 29, 255, 0.2) 0%, rgba(76, 20, 184, 0.2) 100%);
}

.card-orb-2 {
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(76, 20, 184, 0.15) 0%, rgba(108, 29, 255, 0.15) 100%);
}

.pricing-card:hover .card-orb-1 {
    transform: scale(1.5);
}

.pricing-card:hover .card-orb-2 {
    transform: scale(1.25);
}

.card-content {
    position: relative;
    z-index: 10;
}

.plan-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(108, 29, 255, 0.1) 0%, rgba(76, 20, 184, 0.1) 100%);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    position: relative;
}

.plan-badge.popular {
    background: linear-gradient(135deg, rgba(108, 29, 255, 0.2) 0%, rgba(76, 20, 184, 0.2) 100%);
}

.plan-badge.best-deal {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c1dff;
    margin: 0;
    line-height: 1.2;
}

.plan-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}

.popular-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #6c1dff 0%, #4c14b8 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.best-deal-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-pricing {
    margin-bottom: 2rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6c1dff 0%, #4c14b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.check-icon {
    width: 14px;
    height: 14px;
    color: #6c1dff;
    stroke-width: 3;
}

.feature-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.4;
    font-weight: 400;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6c1dff 0%, #4c14b8 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(108, 29, 255, 0.3);
    border: none;
    cursor: pointer;
}

.plan-button:hover {
    background: linear-gradient(135deg, #5a1ae6 0%, #3d0f9f 100%);
    box-shadow: 0 12px 30px rgba(108, 29, 255, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

.pricing-cta {
    text-align: center;
    margin-top: 3rem;
}

.pricing-cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #6c1dff 0%, #4c14b8 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(108, 29, 255, 0.3);
    margin: 0 0.5rem;
}

.pricing-cta-button:hover {
    background: linear-gradient(135deg, #5a1ae6 0%, #3d0f9f 100%);
    box-shadow: 0 15px 35px rgba(108, 29, 255, 0.4);
    transform: translateY(-3px);
    color: white !important;
}

.pricing-cta-button.secondary {
    background: transparent;
    color: #6c1dff !important;
    border: 2px solid #6c1dff;
    box-shadow: none;
}

.pricing-cta-button.secondary:hover {
    background: #6c1dff;
    color: white !important;
    box-shadow: 0 10px 25px rgba(108, 29, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-container {
        padding: 0 1rem;
    }
    
    .pricing-title {
        font-size: 2.5rem;
    }
    
    .pricing-subtitle {
        font-size: 1.1rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
    
    .pricing-cta-button {
        display: block;
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .plan-title {
        font-size: 1.3rem;
    }
    
    .feature-text {
        font-size: 0.95rem;
    }
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pricing-card:hover .card-orb-1 {
    animation: float 3s ease-in-out infinite;
}

.pricing-card:hover .card-orb-2 {
    animation: float 3s ease-in-out infinite 1.5s;
}

/* Enhanced hover effects */

/* Focus states for accessibility */
.plan-button:focus {
    outline: 2px solid #6c1dff;
    outline-offset: 2px;
}

.pricing-cta-button:focus {
    outline: 2px solid #6c1dff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pricing-card {
        border-color: #6c1dff;
        background: #ffffff;
        color: #1e293b;
    }
    
    .feature-icon {
        background: #6c1dff;
    }
    
    .plan-button {
        background: #6c1dff;
        color: white !important;
    }
    
    .expand-button {
        border-color: #6c1dff;
        color: #6c1dff;
    }
    
    .expand-button:hover {
        background: #6c1dff;
        color: white !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-pricing-section {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        color: #f8fafc;
    }
    
    .pricing-card {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
        color: #f8fafc;
        border-color: rgba(108, 29, 255, 0.3);
    }
    
    .pricing-title,
    .category-title {
        color: #f8fafc;
    }
    
    .pricing-subtitle {
        color: #cbd5e1;
    }
    
    .feature-text {
        color: #e2e8f0;
    }
    
    .plan-subtitle {
        color: #cbd5e1;
    }
}

/* Expand Button Styles */
.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #6c1dff;
    border-radius: 12px;
    color: #6c1dff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.expand-button:hover {
    background: #6c1dff;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 29, 255, 0.3);
}

.expand-button:active {
    transform: translateY(0);
}

.expand-text {
    transition: all 0.3s ease;
}

.expand-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.expand-button.expanded .expand-icon {
    transform: rotate(180deg);
}

.expand-button.expanded .expand-text {
    color: #4c14b8;
}

.expand-button:hover .expand-text {
    color: white !important;
}

.expand-button.expanded {
    background: linear-gradient(135deg, rgba(108, 29, 255, 0.1) 0%, rgba(76, 20, 184, 0.1) 100%);
    border-color: #4c14b8;
}

/* Expandable Features Animation */
.expandable-feature {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateY(-10px);
}

.expandable-feature.show {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    display: block !important;
}

/* Smooth reveal animation for expandable features */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

.expandable-feature.show {
    animation: slideDown 0.4s ease forwards;
}

/* Focus states for accessibility */
.expand-button:focus {
    outline: 2px solid #6c1dff;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .card-orb,
    .feature-item,
    .plan-button,
    .pricing-cta-button,
    .expand-button,
    .expand-icon,
    .expandable-feature {
        transition: none;
    }
    
    .pricing-card:hover .card-orb-1,
    .pricing-card:hover .card-orb-2 {
        animation: none;
    }
    
    .expandable-feature {
        animation: none;
    }
}

/* New Modern Pricing Card Styles */
.pricing-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(108, 29, 255, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(108, 29, 255, 0.15);
}

.pricing-card.featured {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ff 100%);
    box-shadow: 0 12px 28px rgba(108, 29, 255, 0.2);
    border: 2px solid rgba(108, 29, 255, 0.2);
}

.pricing-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(108, 29, 255, 0.25);
}

/* New Badge Style */
.plan-badge {
    display: inline-block;
    background: linear-gradient(90deg, #b68cff 0%, #6c1dff 100%);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.plan-badge.featured {
    background: linear-gradient(90deg, #6c1dff 0%, #4c14b8 100%);
}

/* New Price Style */
.price-amount {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6c1dff 0%, #4c14b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* New Features Style */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}


.feature-icon {
    display: none;
}

.feature-text {
    flex: 1;
}

/* New Button Style */
.plan-button {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(90deg, #6c1dff, #4c14b8);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    padding: 0.9rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.plan-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Remove old orb styles */
.card-orb {
    display: none;
}

/* Update plan title and subtitle */
.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6c1dff;
    margin: 0;
    line-height: 1.2;
}

.plan-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
    font-weight: 500;
}
