.pricingSection {
    padding: 100px 0;
    position: relative;
    background: rgba(10, 10, 10, 0.88);
    overflow: hidden;
    border-radius: 0;
    margin-top: 0;
    isolation: isolate;
}

/* Ambient nebula background */
.pricingBgNebula {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.1;
    background:
        radial-gradient(ellipse 500px 400px at 20% 30%,
            rgba(0, 240, 255, 0.12) 0%,
            transparent 50%),
        radial-gradient(ellipse 600px 500px at 80% 70%,
            rgba(112, 0, 255, 0.08) 0%,
            transparent 50%);
    filter: blur(60px);
}

/* Floating sparkles */
.pricingSparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(0, 240, 255, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(112, 0, 255, 0.3) 1px, transparent 1px);
    background-size: 250px 250px, 350px 350px;
    background-position: 0 0, 100px 100px;
    opacity: 0.3;
    animation: sparkleFloat 120s linear infinite;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

.pricingContainer {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.pricingTitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

.pricingSubtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricingGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 24px;
    justify-content: center;
    perspective: 1200px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    isolation: isolate;
}

.pricingCard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: visible;
    /* Changed for popular badge */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    z-index: 1;
}

/* Gradient border glow effect */
.pricingCard::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg,
            rgba(0, 240, 255, 0) 0%,
            rgba(0, 240, 255, 0.4) 50%,
            rgba(112, 0, 255, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.pricingCard:hover {
    transform: translateY(-6px) scale(1.03) rotateX(1.5deg);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.1),
        0 20px 60px -10px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.pricingCard:focus-within {
    z-index: 4;
}

.pricingCard:hover::before {
    opacity: 1;
}

.pricingCard.featured {
    border-color: var(--primary-accent);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    animation: borderPulse 3s ease-in-out infinite;
}

/* Breathing halo effect for enterprise card */
.pricingCard.featured::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 20px;
    background: radial-gradient(circle at center,
            rgba(0, 240, 255, 0.15) 0%,
            rgba(0, 240, 255, 0) 70%);
    opacity: 0;
    animation: breathingHalo 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.pricingCard.featured:hover {
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
}

/* Keyframes for breathing animations */
@keyframes breathingHalo {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes borderPulse {

    0%,
    100% {
        border-color: rgba(0, 240, 255, 1);
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    }

    50% {
        border-color: rgba(0, 240, 255, 0.85);
        box-shadow: 0 0 45px rgba(0, 240, 255, 0.18);
    }
}

.popularBadge {
    position: absolute;
    top: -10px;
    /* Adjusted slightly */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-accent);
    color: #000;
    font-size: 0.75rem;
    /* Smaller font */
    font-weight: 700;
    padding: 3px 12px;
    /* Reduced padding */
    border-radius: 20px;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 0 15px var(--primary-accent);
}

.pricingCardHeader {
    padding: 24px 24px 16px;
    /* Reduced padding */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.planName {
    font-size: 1.25rem;
    /* Smaller font */
    color: #fff;
    margin-bottom: 8px;
    /* Reduced margin */
    font-weight: 600;
}

.planDescription {
    color: #888;
    font-size: 0.85rem;
    /* Smaller font */
}

.pricingCardBody {
    padding: 20px 24px 24px;
    /* Reduced padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.priceTag {
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.priceAmount {
    font-size: 2.5rem;
    /* Reduced from 3.5rem */
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
    position: relative;
    z-index: 10;
}

.priceUnit {
    color: #666;
    font-size: 0.9rem;
    /* Smaller font */
    position: relative;
    z-index: 10;
}

/* Particle Explosion System - DRAMATIC VERSION */
.particleConstellation {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
    pointer-events: none;
}

/* CYAN - SUPER BRIGHT */
.particle-cyan {
    background: radial-gradient(circle, #00f0ff 0%, #00d4e6 100%);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 1),
        0 0 40px rgba(0, 240, 255, 0.8),
        0 0 60px rgba(0, 240, 255, 0.6),
        0 0 80px rgba(0, 240, 255, 0.4);
    filter: brightness(1.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.particle-cyan:hover {
    opacity: 1 !important;
    transform: scale(1.4) !important;
    filter: brightness(2) !important;
    box-shadow:
        0 0 30px rgba(0, 240, 255, 1),
        0 0 60px rgba(0, 240, 255, 1),
        0 0 90px rgba(0, 240, 255, 0.8),
        0 0 120px rgba(0, 240, 255, 0.6);
}

/* PURPLE - SUPER BRIGHT */
.particle-purple {
    background: radial-gradient(circle, #7000ff 0%, #5900cc 100%);
    box-shadow:
        0 0 20px rgba(112, 0, 255, 1),
        0 0 40px rgba(112, 0, 255, 0.8),
        0 0 60px rgba(112, 0, 255, 0.6),
        0 0 80px rgba(112, 0, 255, 0.4);
    filter: brightness(1.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.particle-purple:hover {
    opacity: 1 !important;
    transform: scale(1.4) !important;
    filter: brightness(2) !important;
    box-shadow:
        0 0 30px rgba(112, 0, 255, 1),
        0 0 60px rgba(112, 0, 255, 1),
        0 0 90px rgba(112, 0, 255, 0.8),
        0 0 120px rgba(112, 0, 255, 0.6);
}

/* WHITE ACCENT - EXTRA SPARKLE */
.particle-white {
    background: radial-gradient(circle, #ffffff 0%, #e0e0e0 100%);
    box-shadow:
        0 0 25px rgba(255, 255, 255, 1),
        0 0 50px rgba(255, 255, 255, 0.8),
        0 0 75px rgba(255, 255, 255, 0.5);
    filter: brightness(1.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.particle-white:hover {
    opacity: 1 !important;
    transform: scale(1.4) !important;
    filter: brightness(2.5) !important;
    box-shadow:
        0 0 40px rgba(255, 255, 255, 1),
        0 0 80px rgba(255, 255, 255, 1),
        0 0 120px rgba(255, 255, 255, 0.8);
}

/* No continuous animation - particles explode and DISAPPEAR */

.savingsBadge {
    font-size: 0.8rem;
    /* Smaller font */
    color: #00ff80;
    text-align: center;
    margin-bottom: 16px;
    /* Reduced margin */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.pricingDivider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    margin-bottom: 20px;
    /* Reduced margin */
}

.featureList {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    /* Reduced margin */
    text-align: left;
    flex: 1;
}

.featureList li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* Reduced margin */
    color: #d0d0d0;
    font-size: 0.88rem;
    /* Smaller font */
}

.bulletPoint {
    width: 5px;
    /* Smaller bullet */
    height: 5px;
    background-color: var(--primary-accent);
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
    box-shadow: 0 0 5px var(--primary-accent);
}

.pricingCard.featured .bulletPoint {
    background-color: var(--primary-accent);
    box-shadow: 0 0 8px var(--primary-accent);
}

/* Example cost box for Pay-as-you-go */
.exampleCost {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    /* Reduced padding */
    border-radius: 8px;
    margin-bottom: 20px;
    /* Reduced margin */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.costLabel {
    color: #666;
    font-size: 0.75rem;
    /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.costValue {
    color: #fff;
    font-size: 1.1rem;
    /* Smaller font */
    font-weight: 600;
}

.pricingButton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease, box-shadow 0.15s ease;
    text-align: center;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 100 !important;
    pointer-events: auto !important;
}

.pricingButton::before, 
.pricingButton::after {
    pointer-events: none;
}

/* Diagonal gradient sweep effect */
.pricingButton::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent 0%,
            transparent 40%,
            rgba(0, 240, 255, 0.3) 50%,
            transparent 60%,
            transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

/* Ripple line effect */
.pricingButton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    animation: rippleLine 1.2s ease-in-out infinite;
    opacity: 0;
}

@keyframes rippleLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.pricingButton:hover {
    background: #fff;
    color: #000;
    border-color: rgba(0, 240, 255, 0.8);
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.4),
        inset 0 0 15px rgba(0, 240, 255, 0.1);
}

.pricingButton:hover::before {
    transform: translateX(100%);
}

.pricingButton:hover::after {
    opacity: 1;
}

.pricingButton.enterprise {
    background: var(--primary-accent);
    border: 1px solid var(--primary-accent);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.pricingButton.enterprise:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.6),
        inset 0 0 20px rgba(0, 240, 255, 0.15);
    background: #fff;
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

    .pricingCard,
    .pricingCard::before,
    .pricingCard::after,
    .pricingButton::before,
    .pricingButton::after,
    .pricingBgNebula,
    .pricingSparkles {
        animation: none !important;
        transition: none !important;
    }

    .pricingCard:hover {
        transform: none !important;
    }

    .pricingButton:hover {
        transform: none !important;
    }

    /* Hide particle animations entirely for reduced motion */
    .particleConstellation {
        display: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pricingSection {
        padding: 60px 0;
    }

    .pricingTitle {
        font-size: 2rem;
    }

    .pricingSubtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .pricingGrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .priceAmount {
        font-size: 2rem;
    }
}
