/* --- Global Styles & Variables --- */
:root {
    --primary-color: #007BFF;
    --primary-hover: #0056b3;
    --dark-bg: #121212;
    --light-bg: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent-color: #E53935;
    --border-color: #333;
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-family); background-color: var(--dark-bg); color: var(--text-secondary); line-height: 1.7; }
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--primary-color); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cta-button { display: inline-block; padding: 12px 28px; background-color: var(--primary-color); color: var(--text-primary); border-radius: 50px; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; transition: all 0.3s ease; border: 2px solid var(--primary-color); }
.cta-button:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2); }
.primary-cta { font-size: 1rem; padding: 15px 35px; }

/* --- Header --- */
.main-header { background: rgba(18, 18, 18, 0.8); backdrop-filter: blur(10px); padding: 15px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border-color); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 700; font-size: 1.8rem; }

/* --- Hero Section --- */
.hero { padding-top: 80px; padding-bottom: 80px; }
.hero .subtitle { display: block; font-weight: 600; color: var(--primary-color); margin-bottom: 10px; }
.hero-text p { font-size: 1.1rem; margin: 20px 0 30px; }
.trust-badges { margin-top: 30px; display: flex; gap: 20px; font-weight: 600; font-size: 0.9rem; }
.trust-badges i { color: var(--primary-color); margin-right: 8px; }
.hero-image img { max-width: 80%; display: block; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.4)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* --- Benefits Section --- */
.benefits { background-color: var(--light-bg); }
.benefit-card { background-color: var(--dark-bg); padding: 30px; border-radius: 10px; text-align: center; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.benefit-card:hover { transform: translateY(-10px); border-color: var(--primary-color); }
.benefit-card i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }

/* --- Ingredients Section --- */
.ingredient-list { max-width: 800px; margin: 30px auto; display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }
.ingredient-item { background: var(--light-bg); padding: 10px 20px; border-radius: 50px; border: 1px solid var(--border-color); font-size: 0.95rem; }
.how-to-use { text-align: center; margin-top: 40px; background: var(--light-bg); padding: 20px; border-radius: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Offer Section --- */
.offer-box { max-width: 500px; margin: 0 auto; background: var(--light-bg); padding: 40px; border-radius: 15px; text-align: center; border: 1px solid var(--border-color); }
.offer-box img { max-width: 150px; margin-bottom: 20px; }
.pricing { display: flex; justify-content: center; align-items: baseline; gap: 15px; margin: 10px 0; }
.new-price { font-size: 3rem; font-weight: 700; color: var(--primary-color); }
.old-price { font-size: 1.5rem; text-decoration: line-through; }
.savings { background-color: var(--accent-color); color: var(--text-primary); display: inline-block; padding: 5px 15px; border-radius: 5px; font-weight: 600; margin-bottom: 30px; }
.payment-icons { margin-top: 20px; }
.payment-icons span { display: block; font-size: 0.9rem; margin-bottom: 10px; }
.payment-icons img { max-width: 200px; opacity: 0.8; }

/* --- FAQ Section --- */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { background-color: var(--light-bg); margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--border-color); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 20px; font-size: 1.1rem; font-weight: 600; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-answer p { padding: 0 20px 20px; margin: 0; }

/* --- Footer --- */
footer { padding: 40px 0; text-align: center; font-size: 0.9rem; border-top: 1px solid var(--border-color); }
.footer-links { margin-top: 10px; }
.footer-links a { margin: 0 10px; }


/* --- Responsive Design --- */
@media (max-width: 900px) {
    .grid, .grid-3 { grid-template-columns: 1fr; }
    .hero { text-align: center; }
    .hero-image { order: -1; margin-bottom: 30px; }
    .hero-image img { max-width: 60%; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
}
@media (max-width: 600px) {
    .main-header .container { flex-direction: column; gap: 10px; }
    .header-cta { font-size: 0.8rem; padding: 8px 18px; }
    .trust-badges { flex-direction: column; align-items: center; gap: 10px; }
    h1 { font-size: 2rem; }
}

/* --- Animation on Scroll --- */
.hidden { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.visible { opacity: 1; transform: translateY(0); }

/* --- V2 TESTIMONIALS STYLES --- */
.testimonials { background-color: var(--light-bg); }
.overall-review-summary { margin-top: -20px; margin-bottom: 40px; font-size: 1.1rem; font-weight: 600; }
.overall-review-summary .rating-stars { color: #fdd835; font-size: 1.3rem; margin-right: 10px; }
.testimonial-card-v2 { background: var(--dark-bg); padding: 25px; border-radius: 10px; border: 1px solid var(--border-color); display: flex; flex-direction: column; height: 100%; }
.testimonial-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.testimonial-header img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); }
.testimonial-author-info h4 { margin: 0; line-height: 1.2; }
.testimonial-card-v2 .stars { color: #fdd835; font-size: 1rem; }
.testimonial-text { flex-grow: 1; font-size: 0.95rem; margin-bottom: 20px; }
.verified-badge { align-self: flex-start; background-color: #2e7d32; color: #fff; padding: 4px 10px; font-size: 0.8rem; font-weight: 600; border-radius: 5px; }
.verified-badge i { margin-right: 5px; }

/* --- NEW STYLES FOR REVIEW ANALYSIS SECTION --- */
.review-analysis {
    padding-top: 0;
    padding-bottom: 0;
}
.review-analysis-box {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.review-analysis-box h3 {
    margin-bottom: 15px;
}
.analysis-paragraph {
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}
.analysis-ratings {
    margin-bottom: 20px;
}
.rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
}
.rating-label {
    width: 200px;
    text-align: left;
    font-size: 0.95rem;
}
.rating-label i {
    margin-right: 8px;
    color: var(--primary-color);
}
.rating-bar {
    flex-grow: 1;
    height: 12px;
    background-color: var(--dark-bg);
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 6px;
}
.rating-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}
.analysis-verdict {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px;
    background-color: #2e7d32;
    border-radius: 8px;
    display: inline-block;
}
@media (max-width: 600px) {
    .rating-item { flex-wrap: wrap; }
    .rating-label { width: 100%; margin-bottom: 5px; }
}

/* --- NEW FOMO POPUP STYLES --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fomo-popup {
    background: linear-gradient(145deg, #23232e, #1a1a24);
    padding: 0; /* No padding on the main box */
    border-radius: 15px;
    position: relative;
    max-width: 750px;
    width: 95%;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    overflow: hidden;
}

.popup-overlay.active .fomo-popup {
    transform: scale(1);
}

.popup-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Two columns */
    align-items: center;
}

.popup-image-column {
    background-color: var(--dark-bg);
    padding: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-product-image {
    max-width: 100%;
    width: 200px;
    filter: drop-shadow(0 0 25px rgba(0, 123, 255, 0.5));
}

.popup-text-column {
    padding: 40px;
    text-align: center;
}

.popup-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.fomo-popup h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.2;
}

.fomo-popup p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.popup-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.timer-box {
    background-color: var(--dark-bg);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timer-box span {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
}

.timer-box #timer-minutes, 
.timer-box #timer-seconds {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--primary-color);
}

.timer-box .timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.timer-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-bottom: 15px;
}

 
.popup-close:hover {
    color: #777;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cta-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

 
.subtle-close-btn:hover {
    color: #888;
}

/* Responsive for popup */
@media (max-width: 768px) {
    .popup-content-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }
     
    .popup-text-column {
        padding: 30px;
    }
    .fomo-popup h3 {
        font-size: 1.8rem;
    }
}

/* --- MOBILE RESPONSIVE FIXES (FINAL VERSION) --- */

@media (max-width: 768px) {
    
    /* Stacks the popup columns on mobile */
    .popup-content-grid {
        grid-template-columns: 1fr;
    }

    /* NEW: Adds some padding to the top of the image */
    .popup-image-column {
        padding-top: 25px;
    }

    /* NEW: Makes the bottle image smaller */
    .popup-product-image {
        width: 150px; /* You can adjust this value if needed */
    }

    /* NEW: Makes the popup CTA button smaller */
    .fomo-popup .primary-cta {
        font-size: 1rem;
        padding: 14px 22px;
    }

    /* Popup Text and Timer Size Reduction */
    .popup-text-column {
        padding: 25px;
    }
    .fomo-popup h3 {
        font-size: 1.5rem;
    }
    .fomo-popup p {
        font-size: 0.9rem; 
        margin-bottom: 20px;
    }
    .timer-box #timer-minutes, 
    .timer-box #timer-seconds {
        font-size: 2rem;
    }
    .popup-timer {
        margin-bottom: 25px;
    }

    /* Force Title Centering on Main Page */
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Style for the new secondary CTA button in the locked popup */
.popup-actions .secondary-cta {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.popup-actions .secondary-cta:hover {
    background-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}