/* --- Mobile Performance Optimizations --- */
@media (max-width: 768px) {

    /* Re-enable pulse animation but keep it optimized */
    .pulse-button {
        animation: pulse-green 2s infinite ease-in-out !important;
        /* Use the optimized transform/opacity animation */
    }

    /* Disable hover effects on touch devices (saves rendering cost) */
    .hover-lift:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }

    /* Simplify scroll animations for mobile */
    .animate-on-scroll {
        transition: opacity 0.5s ease-out, transform 0.5s ease-out !important;
    }

    /* Ensure visible state works on mobile */
    .animate-on-scroll.visible {
        opacity: 1 !important;
        transform: translate(0) scale(1) !important;
    }

    /* Increase translation distance to make animations noticeable on mobile */
    .animate-left {
        transform: translateX(-50px);
    }

    .animate-right {
        transform: translateX(50px);
    }

    .animate-up {
        transform: translateY(50px);
    }

    /* Optimize rendering for cards */
    .feature-card,
    .benefit-card,
    .bonus-card,
    .why-card {
        will-change: auto !important;
        /* Let browser decide, avoid memory hogging */
    }

    /* Reduce shadow complexity on mobile */
    .feature-card,
    .benefit-card,
    .bonus-card,
    .why-card {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    }

    /* Simplify Hero Image Shadow for LCP */
    .hero-img {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
        /* Much simpler shadow */
    }

    /* FORCE CENTER ALIGNMENT ON MOBILE */
    h1,
    h2,
    h3,
    .hero-title,
    .section-header h2,
    .bonus-header h2,
    .testimonials-list-section h2,
    .faq-header h2,
    .pricing-header h2 {
        text-align: center !important;
    }

    .cta-button,
    .btn-yes,
    .btn-complete,
    .final-cta-button,
    .bonus-badge {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Fix Bonus Card Button Alignment */
    .bonus-card .bonus-badge {
        display: inline-block !important;
        /* Or flex with center */
        width: auto !important;
        margin: 10px auto 0 !important;
    }

    .bonus-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Ensure container text is centered where appropriate */
    .hero-content,
    .section-header,
    .bonus-header,
    .testimonials-list-section,
    .faq-header,
    .pricing-header {
        text-align: center !important;
    }
}

/* Popup Optimizations for Mobile */
.upgrade-subtext {
    font-size: 0.75rem !important;
    font-style: italic !important;
    color: #64748b !important;
}

.btn-upgrade-no {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    display: block !important;
    text-align: center !important;
    margin-top: 15px !important;
    text-decoration: none !important;
    color: #475569 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}