/* ============================================
   CÓDIGO 20K COM IA - VSL PAGE
   All Black + Dark Blue Accents
   (based on Protocolo 30K) + Custom VSL Player
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --black-soft: #0a0a0a;
    --black-card: #0d0d0d;
    --dark-blue: #0a1628;
    --dark-blue-accent: #0f2140;
    --blue-glow: #1a3a6b;
    --green-cta: #00ff6a;
    --green-cta-dark: #00cc55;
    --green-glow: rgba(0, 255, 106, 0.4);
    --green-glow-strong: rgba(0, 255, 106, 0.6);
    --white: #ffffff;
    --white-muted: #b0b0b0;
    --white-soft: #e0e0e0;
    --red-live: #ff2d2d;
    --gold: #ffd700;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === MAIN CONTAINER === */
.vsl-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 0 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* === HEADLINE SECTION (compact) === */
.headline-section {
    text-align: center;
    width: 100%;
    padding: 10px 16px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.headline {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--white-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.headline__warning {
    font-size: 0.75rem;
}

.headline__highlight {
    color: var(--red-live);
    font-weight: 900;
}

.headline__date {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    font-size: 0.75rem;
}

/* Daily Timer (discreet inline) */
.daily-timer {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 3px 12px;
}

.daily-timer__num {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white-soft);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.daily-timer__sep {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    margin: 0 1px;
    animation: pulse-opacity 1s ease-in-out infinite;
}

/* === VIDEO SECTION === */
.video-section {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 6px 0;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(10, 22, 40, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(26, 58, 107, 0.2);
    width: 100%;
    aspect-ratio: 9 / 16;
}

.video-player {
    border-radius: 14px;
    overflow: hidden;
    background: var(--black);
    width: 100%;
    height: 100%;
}

/* ============================================
   CUSTOM VSL PLAYER
   ============================================ */
.vsl {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.vsl__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    pointer-events: none;
}

.vsl__click-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: pointer;
}

/* --- Unmute card (preview mode) --- */
.vsl__unmute {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: min(80%, 300px);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(56, 97, 230, 0.9) 0%, rgba(29, 62, 180, 0.9) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-main);
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(20, 50, 160, 0.55), 0 0 0 0 rgba(90, 130, 255, 0.55);
    animation: unmute-pulse 2s ease-in-out infinite;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.vsl__unmute:hover {
    background: linear-gradient(160deg, rgba(66, 108, 240, 0.95) 0%, rgba(35, 70, 195, 0.95) 100%);
}

.vsl__unmute-top {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.vsl__unmute-bottom {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.vsl__unmute-icon {
    width: 76px;
    height: 76px;
    display: block;
    animation: icon-bob 1.6s ease-in-out infinite;
}

.vsl__unmute-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.vsl-wave {
    opacity: 0.15;
    animation: wave-seq 1.5s ease-in-out infinite;
}
.vsl-wave--2 { animation-delay: 0.18s; }
.vsl-wave--3 { animation-delay: 0.36s; }

.vsl-slash {
    stroke-dasharray: 70;
    stroke-dashoffset: 0;
    animation: slash-draw 3s ease-in-out infinite;
    filter: drop-shadow(0 0 2px rgba(29, 62, 180, 0.9));
}

.vsl:not([data-state="preview"]) .vsl__unmute {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    pointer-events: none;
    animation: none;
}

/* --- Paused overlay --- */
.vsl__paused {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.vsl[data-state="paused"] .vsl__paused,
.vsl[data-state="ended"] .vsl__paused {
    opacity: 1;
}

.vsl__paused-btn {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, #3861e6, #1d3eb4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 30px rgba(29, 62, 180, 0.6);
    color: #fff;
    animation: unmute-pulse 2s ease-in-out infinite;
}

.vsl__paused-btn svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.vsl__paused-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- Spinner --- */
.vsl__spinner {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.vsl.is-loading[data-state="playing"] .vsl__spinner {
    opacity: 1;
}

/* --- Fake progress bar --- */
.vsl__progress {
    position: absolute;
    z-index: 7;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, height 0.2s ease;
}

.vsl:not([data-state="preview"]) .vsl__progress { opacity: 1; }
.vsl.controls-visible .vsl__progress,
.vsl[data-state="paused"] .vsl__progress { height: 7px; }

.vsl__progress-fill {
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, #3861e6, #5b84ff 70%, #8fb0ff);
    box-shadow: 0 0 10px rgba(91, 132, 255, 0.8);
    transition: transform 0.3s linear;
    will-change: transform;
}

/* --- Controls bar --- */
.vsl__controls {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.vsl.controls-visible:not([data-state="preview"]) .vsl__controls,
.vsl[data-state="paused"] .vsl__controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vsl__btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.vsl__btn:hover { background: rgba(255, 255, 255, 0.22); }
.vsl__btn:active { transform: scale(0.92); }

.vsl__btn svg {
    width: 20px;
    height: 20px;
}

.vsl .ico-play,
.vsl .ico-muted { display: none; }
.vsl[data-state="paused"] .ico-play,
.vsl[data-state="ended"] .ico-play { display: block; }
.vsl[data-state="paused"] .ico-pause,
.vsl[data-state="ended"] .ico-pause { display: none; }
.vsl.is-muted .ico-muted { display: block; }
.vsl.is-muted .ico-vol { display: none; }
.vsl.vol-low .ico-vol-w2 { opacity: 0.2; }

.vsl__volume {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 10px;
    border-radius: 22px;
    transition: background 0.2s ease;
}

.vsl__range {
    -webkit-appearance: none;
    appearance: none;
    width: 96px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, #fff 0%, #fff var(--vol, 100%), rgba(255, 255, 255, 0.3) var(--vol, 100%));
    outline: none;
    cursor: pointer;
}

.vsl__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(56, 97, 230, 0.45);
}

.vsl__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(56, 97, 230, 0.45);
}

/* iOS doesn't allow programmatic volume: hide slider */
.vsl.no-volume .vsl__range { display: none; }

@keyframes unmute-pulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(20, 50, 160, 0.55), 0 0 0 0 rgba(90, 130, 255, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(20, 50, 160, 0.55), 0 0 0 12px rgba(90, 130, 255, 0); }
}

@keyframes wave-seq {
    0%, 100% { opacity: 0.15; }
    40%, 60% { opacity: 1; }
}

@keyframes slash-draw {
    0%, 15% { stroke-dashoffset: 70; }
    35%, 85% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -70; }
}

@keyframes icon-bob {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .vsl__unmute, .vsl__unmute-icon, .vsl-wave, .vsl-slash, .vsl__paused-btn { animation: none; }
    .vsl-wave { opacity: 1; }
}

/* === VIEWER OVERLAY (on top of video) === */
.viewer-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.viewer-overlay--hidden {
    opacity: 0;
    transform: translateY(-6px);
}

.viewer-overlay--visible {
    opacity: 1;
    transform: translateY(0);
}

.viewer-overlay__icon {
    font-size: 0.75rem;
    line-height: 1;
}

#viewer-count {
    font-weight: 800;
    color: var(--white);
}

/* === CTA SECTION === */
.cta-section {
    width: 100%;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-section--hidden {
    opacity: 0;
    transform: translateY(40px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.cta-section--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
    margin-top: 20px;
}

/* === CTA BUTTON === */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--green-cta) 0%, #00e65c 50%, var(--green-cta) 100%);
    background-size: 200% 200%;
    color: var(--black);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    box-shadow:
        0 0 30px var(--green-glow),
        0 0 60px rgba(0, 255, 106, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.4);
    animation: cta-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite,
               cta-bg-shift 3s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 40px var(--green-glow-strong),
        0 0 80px rgba(0, 255, 106, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.5);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Shimmer effect */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s ease-in-out infinite;
}

.cta-button__text {
    position: relative;
    z-index: 1;
}

.cta-button__arrow {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

/* === LIFETIME ACCESS BADGE === */
.lifetime-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 255, 106, 0.06);
    border: 1px solid rgba(0, 255, 106, 0.2);
    border-radius: 20px;
    padding: 6px 18px;
}

.lifetime-badge__icon {
    font-size: 0.85rem;
}

.lifetime-badge__text {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--green-cta);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* === SCARCITY TIMER === */
.scarcity {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scarcity__timer {
    display: flex;
    align-items: center;
    gap: 4px;
}

.scarcity__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-blue);
    border: 1px solid rgba(26, 58, 107, 0.5);
    border-radius: 8px;
    padding: 8px 14px;
    min-width: 56px;
}

.scarcity__number {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--red-live);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 45, 45, 0.3);
}

.scarcity__unit {
    font-size: 0.55rem;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.scarcity__sep {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-live);
    animation: pulse-opacity 1s ease-in-out infinite;
    align-self: flex-start;
    margin-top: 8px;
}

.scarcity__text {
    font-size: 0.75rem;
    color: var(--red-live);
    font-weight: 600;
    letter-spacing: 0.05em;
    animation: pulse-opacity 2s ease-in-out infinite;
}

/* === PRICE SECTION === */
.price-section {
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--black-card) 100%);
    border: 1px solid rgba(26, 58, 107, 0.4);
    border-radius: 16px;
    padding: 24px 20px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-glow), transparent);
}

.price-section__badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.price-section__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.price-section__subtitle {
    font-size: 0.85rem;
    color: var(--white-muted);
    margin-bottom: 8px;
    font-weight: 400;
}

.price-section__installments {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.price-section__x {
    font-size: 1rem;
    color: var(--white-muted);
    font-weight: 500;
}

.price-section__value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green-cta);
    text-shadow: 0 0 20px rgba(0, 255, 106, 0.3);
    letter-spacing: -0.02em;
}

.price-section__cash {
    font-size: 0.85rem;
    color: var(--white-muted);
    font-weight: 400;
}

.price-section__cash strong {
    color: var(--white-soft);
    font-weight: 700;
}

/* === GIFTS === */
.gifts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 7px 16px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.28);
}

.gifts__icon {
    font-size: 1rem;
    animation: icon-bob 1.6s ease-in-out infinite;
}

.gifts__text {
    font-size: 0.8rem;
    color: var(--white-soft);
}

.gifts__text strong {
    color: var(--gold);
    font-weight: 800;
}

/* === TRUST ELEMENTS === */
.trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 4px 0 12px;
}

.trust__item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.trust__icon {
    font-size: 0.9rem;
}

.trust__label {
    font-size: 0.72rem;
    color: var(--white-muted);
    font-weight: 500;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes pulse-opacity {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes cta-pulse {
    0%, 100% {
        box-shadow:
            0 0 30px var(--green-glow),
            0 0 60px rgba(0, 255, 106, 0.2),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }
    50% {
        box-shadow:
            0 0 50px var(--green-glow-strong),
            0 0 100px rgba(0, 255, 106, 0.35),
            0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

@keyframes cta-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes shimmer {
    0% { left: -100%; }
    60% { left: 100%; }
    100% { left: 100%; }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Mobile-first: video fills remaining screen */
@media (max-width: 480px) {
    .vsl-container {
        padding-bottom: 110px;
    }

    .video-section {
        padding: 4px 4px 0;
    }

    .headline {
        font-size: 0.78rem;
    }

    .cta-button {
        font-size: 0.92rem;
        padding: 18px 20px;
        border-radius: 12px;
    }

    .price-section__value {
        font-size: 1.8rem;
    }

    .trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .cta-section--visible {
        padding-bottom: 24px;
    }
}

@media (min-width: 481px) {
    .vsl-container {
        max-width: 440px;
    }
}

@media (min-width: 768px) {
    .vsl-container {
        max-width: 420px;
    }

    .headline {
        font-size: 0.88rem;
    }

    .headline-section {
        padding-top: 14px;
    }
}
