@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Twinkle animation for button glow */
@keyframes twinkle {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.4), 0 0 40px rgba(255, 193, 7, 0.2), 0 0 60px rgba(255, 193, 7, 0.1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.6), 0 0 50px rgba(255, 193, 7, 0.4), 0 0 70px rgba(255, 193, 7, 0.2);
    }
}

/* VSL Player Styles */
.vsl-player-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    background: #0a0a0a;
}

#vsl-player-root {
    position: relative;
    width: 100%;
    height: 100%;
}

.scene-manager {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scene-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subtitle-container {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 30;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.subtitle-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 64rem;
    padding: 0 1rem;
}

.subtitle-text.bottom {
    /* bottom: 5rem; */
    top: 10rem;
}

.subtitle-text.top {
    top: 10rem;
}

.subtitle-text.center {
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Subtitle background container styles */
.subtitle-bg-container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.5rem 1.5rem;
    border-radius: 0.5rem;
    max-width: 48rem;
    margin: 0 auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Highlighted city name inside subtitles */
.city-highlight {
    color: #FAED7D;
    font-weight: 700;
}

/* Make user name match the "yellowBig" look used in template font styles */
.yellowBig,
.name-highlight {
    color: #FAED7D;
    font-weight: 700;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.25), 0 0 3px rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 1.5px #FAED7D;
    text-stroke: 1.5px #FAED7D;
}

.subtitle-bg-container-light {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Transition effects */
.transition-opacity {
    transition: opacity 0.5s ease-in-out;
}

/* Chart Image Rotator */
.chart-image-rotator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-image-rotator img {
    will-change: transform;
    /* Responsive sizing */
    width: min(40vw, 462px);
    height: auto;
    max-width: 90vw;
    max-height: 50vh;
    min-width: 200px;
    min-height: 200px;
}

@keyframes chart-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Play/Pause button styles */
.vsl-play-pause-btn {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease-in-out;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    z-index: 999;
    position: absolute;
}

.vsl-play-pause-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.vsl-buy-btn {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease-in-out;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    bottom: 40px;
    position: absolute;
    z-index: 999;
}
.vsl-buy-btn:hover {
    color: #fff;
}
.vsl-toggle-btn {
    z-index: 999;
    position: absolute;
}

/* Sales Page Layout */
.sales-page-scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 237, 125, 0.3) transparent;
}

.sales-page-scroll::-webkit-scrollbar {
    width: 6px;
}

.sales-page-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sales-page-scroll::-webkit-scrollbar-thumb {
    background: rgba(250, 237, 125, 0.3);
    border-radius: 3px;
}

.sales-page-inner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}


/* CTA Card */
.sp-cta-card {
    border: 2px solid rgba(250, 193, 7, 0.45);
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    background: rgba(8, 12, 32, 0.88);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.sp-cta-heading {
    color: #FFFFFF;
    font-size: 1.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    text-shadow: 0 0 12px rgba(250, 237, 125, 0.6), 0 0 26px rgba(250, 237, 125, 0.35);
    animation: heading-glow 2.4s ease-in-out infinite alternate;
}

.sp-cta-heading strong {
    font-weight: 800;
    color: #FAED7D;
}

/* Inline highlighted phrase inside paragraphs */
.sp-inline-highlight {
    color: #FAED7D;
    text-shadow: 0 0 10px rgba(250, 237, 125, 0.7), 0 0 20px rgba(250, 237, 125, 0.4);
}

@keyframes heading-glow {
    0% {
        text-shadow: 0 0 6px rgba(250, 237, 125, 0.4), 0 0 14px rgba(250, 237, 125, 0.2);
    }
    100% {
        text-shadow: 0 0 16px rgba(250, 237, 125, 0.9), 0 0 32px rgba(250, 237, 125, 0.6);
    }
}

.sp-cta-paragraph {
    text-align: center;
    line-height: 1.65;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.sp-cta-highlight {
    text-align: center;
    margin: 1.25rem 0;
    font-size: 1.05rem;
}

/* Guarantee Card */
.sp-guarantee-card {
    border: 1px solid rgba(250, 193, 7, 0.25);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    background: rgba(8, 12, 32, 0.72);
    backdrop-filter: blur(6px);
    margin-bottom: 2rem;
}

.sp-guarantee-paragraph {
    text-align: center;
    line-height: 1.6;
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
}

.sp-guarantee-highlight-box {
    border: 1px solid rgba(250, 193, 7, 0.35);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(250, 193, 7, 0.04);
    margin-top: 1rem;
}

.sp-guarantee-highlight-box p {
    margin: 0;
    text-align: center;
    line-height: 1.5;
    font-size: 0.92rem;
}

/* Final CTA */
.sp-final-cta {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.sp-final-cta-paragraph {
    text-align: center;
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.sp-cta-button {
    display: inline-block;
    background: linear-gradient(to right, #F59E0B, #D97706);
    color: #000 !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 2.25rem;
    border-radius: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4), 0 0 40px rgba(245, 158, 11, 0.2);
    animation: twinkle 2s ease-in-out infinite;
    margin-top: 0.5rem;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-cta-button:hover {
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 50px rgba(245, 158, 11, 0.3);
}

/* Screen 11 single-testimonial card (centered overlay) */
.screen11-testimonial-card {
    background: #262766;
    border-radius: calc(1.2rem * var(--vsl-font-scale, 1));
    padding: calc(1.6rem * var(--vsl-font-scale, 1)) calc(2.2rem * var(--vsl-font-scale, 1));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    max-width: 560px;
    width: calc(36rem * var(--vsl-font-scale, 1));
    color: #ffffff;
    box-sizing: border-box;
    /* Vertical offset responds directly to viewport height */
    margin-top: calc(10vh * var(--vsl-video-scale, 1));
}

.screen11-testimonial-header {
    display: flex;
    align-items: center;
    gap: calc(1rem * var(--vsl-font-scale, 1));
    margin-bottom: calc(1rem * var(--vsl-font-scale, 1));
}

.screen11-testimonial-avatar {
    width: calc(5rem * var(--vsl-font-scale, 1));
    height: calc(5rem * var(--vsl-font-scale, 1));
    border-radius: 12%;
    -o-object-fit: cover;
       object-fit: cover;
    flex-shrink: 0;
}

.screen11-testimonial-meta {
    display: flex;
    flex-direction: column;
}

.screen11-testimonial-name {
    font-weight: 700;
    font-size: calc(2rem * var(--vsl-font-scale, 1));
    margin-bottom: 0.2rem;
}

.screen11-testimonial-stars {
    font-size: calc(2rem * var(--vsl-font-scale, 1));
    color: #ffd966;
    letter-spacing: 0.12em;
}

.screen11-testimonial-text {
    /* Make testimonial body text 2x bigger for readability */
    font-size: calc(1.9rem * var(--vsl-font-scale, 1));
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vsl-quiz-container {
        padding: 1rem 0;
    }
    
    .vsl-quiz-container h2 {
        font-size: 1.5rem;
    }
    
    .subtitle-text {
        padding: 0 0.5rem;
    }
    
    .subtitle-text.bottom {
        bottom: 2rem;
    }
    
    .subtitle-text.top {
        top: 1rem;
    }
    
    .subtitle-bg-container,
    .subtitle-bg-container-light {
        padding: 1rem;
        max-width: 90%;
    }

    /* Sales page mobile */
    .sales-page-inner {
        padding: 1.25rem 1rem 2rem;
    }

    .sp-cta-card {
        padding: 1.5rem 1.25rem;
    }

    .sp-cta-heading {
        font-size: 1.4rem;
    }

    .sp-guarantee-card {
        padding: 1.25rem 1rem;
    }

    .sp-cta-button {
        font-size: 0.85rem;
        padding: 0.9rem 1.5rem;
    }

    /* Chart image rotator mobile */
    .chart-image-rotator img {
        width: min(60vw, 462px);
        min-width: 150px;
        min-height: 150px;
        max-height: 40vh;
        margin-top: 2rem;
    }
    .vsl-buy-btn {
        padding: 5px 7px;
    }
}

/* Landscape mobile mode - ensure button is centered horizontally */
@media (max-width: 1024px) and (orientation: landscape) {
    .final-cta-button-wrapper {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        right: auto !important;
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .vsl-button-twinkle {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: -moz-fit-content;
        width: fit-content;
        max-width: 90vw;
    }
    
}

