/* Plans Section Stylings */
.plans-section {
    padding: 100px 92px;
    background: #FAFAFB;
    /* Slightly off-white for better card contrast */
    position: relative;
    overflow: hidden;
}

.plans-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
}

.plans-header {
    text-align: center;
    margin-bottom: 64px;
}

.plans-title {
    font-size: 42px;
    font-weight: 850;
    color: #1F2937;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.plans-subtitle {
    font-size: 20px;
    color: #6B7280;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Base */
.plan-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 32px;
    padding: 48px;
    flex: 1;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Magical Glow Animation */
/* Magical Gradient Border Animation */
@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Highlighted Card (PROTAGONIST) - Clean White with Moving Gradient Border */
.plan-card.highlight {
    position: relative;
    z-index: 1;
    border: 3px solid transparent !important;
    border-radius: 32px;
    background: linear-gradient(#fff, #fff) padding-box,
        linear-gradient(45deg, #A855F7, #EC4899, #7C3AED) border-box !important;
    background-size: 100% 100%, 200% 200%;
    animation: borderRotate 4s linear infinite, glowPulse 3s infinite ease-in-out;
    box-shadow: 0 15px 45px -10px rgba(139, 92, 246, 0.4);
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 15px 45px -10px rgba(139, 92, 246, 0.4);
    }

    50% {
        box-shadow: 0 20px 60px -5px rgba(168, 85, 247, 0.6);
    }

    100% {
        box-shadow: 0 15px 45px -10px rgba(139, 92, 246, 0.4);
    }
}

/* Clear any lingering pseudo-elements */
.plan-card.highlight::before,
.plan-card.highlight::after {
    display: none !important;
    content: none !important;
}

.plan-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B5CF6;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: normal;
    /* Allow wrapping on small screens */
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
    width: max-content;
    max-width: 92%;
    /* Prevent overflowing the card */
    z-index: 10;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 32px;
}

.plan-card.highlight .plan-name {
    color: #8B5CF6;
}

.price-container {
    margin-bottom: 32px;
}

.old-price {
    font-size: 18px;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-bottom: 4px;
    font-weight: 500;
}

.current-price {
    font-size: 56px;
    font-weight: 950;
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
    line-height: 1;
    display: inline-block;
}

.price-period {
    font-size: 18px;
    color: #6B7280;
    font-weight: 500;
}

.cancel-text,
.lifetime-promo {
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    display: block;
}

.cancel-text {
    color: #6B7280;
}

.lifetime-promo {
    color: #8B5CF6;
}

.savings-badge {
    display: inline-block;
    background: #ECFDF5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 800;
    margin-top: 16px;
    border: 1px solid #A7F3D0;
}

/* Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    border-top: 1px solid #F3F4F6;
    padding-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 16px;
    font-weight: 500;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #10B981;
    flex-shrink: 0;
}

/* Plan Button */
.plan-btn {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: auto;
}

.btn-monthly {
    background: transparent;
    color: #8B5CF6;
    border: 2px solid #F3E8FF;
    transition: all 0.3s ease;
}

.btn-monthly:hover {
    background: #F5F3FF;
    border-color: #8B5CF6;
    color: #7C3AED;
    transform: translateY(-2px);
}

.price-period {
    font-size: 16px !important;
    color: #94A3B8 !important;
    font-weight: 500 !important;
}


/* Button Shimmer Animation */
@keyframes shimmerPass {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    100% {
        transform: translateX(150%) skewX(-20deg);
    }
}

.btn-vitalicio {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.3);
}

.btn-vitalicio:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.4);
    filter: brightness(1.1);
}

.btn-vitalicio::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmerPass 3s infinite ease-in-out;
    pointer-events: none;
}

.cta-microcopy {
    text-align: center;
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 16px;
    font-weight: 600;
}

/* Mobile adjustments (Mobile-First) */
@media (max-width: 992px) {
    .plans-section {
        padding: 80px 20px;
    }

    .plans-container {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .plan-card {
        width: 100%;
        max-width: none;
        padding: 40px 24px;
    }

    .plans-title {
        font-size: 34px;
    }

    .current-price {
        font-size: 48px;
    }
}

@media (min-width: 993px) {

    /* Ensure side-by-side on desktop */
    .plans-container {
        flex-direction: row;
    }
}