:root {
    --bg-color: #FFFFFF;
    --card-surface: #FAFAFA;
    --primary: #2563EB;
    --trust-green: #10B981;
    --whatsapp: #25D366;
    --gold: #F59E0B;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --border: #E2E8F0;
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-strong: 0 12px 32px rgba(37, 99, 235, 0.15);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: var(--text-primary); }
h1 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.5rem; }
.sub-line { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

#progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--primary); box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    z-index: 1000; transition: width 0.4s var(--ease-out);
}

.container { width: 100%; min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 2rem 1rem; }

.wizard-card {
    width: 100%; max-width: 500px; position: relative;
    overflow: hidden; min-height: 60vh;
    transition: max-width 0.4s var(--ease-out);
    display: flex; flex-direction: column;
}
.wizard-card.expanded { max-width: 1100px; }

/* THE CRITICAL JS MATCHING FIXES HERE */
.wizard-step {
    position: absolute; top: 0; left: 0; width: 100%;
    opacity: 0; visibility: hidden;
    transform: translateX(30px);
    transition: all 0.4s var(--spring);
}

.wizard-step.active {
    position: relative; opacity: 1; visibility: visible;
    transform: translateX(0);
}

.wizard-step.slide-out-left {
    transform: translateX(-50px); opacity: 0;
    visibility: hidden; position: absolute;
}

.step-content { background: var(--bg-color); padding: 1rem 0; }

.cta-button, .select-plan-btn, .whatsapp-btn {
    width: 100%; min-height: 64px; border: none; border-radius: 12px;
    background: var(--primary); color: white;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s var(--spring), background 0.2s; margin-top: 1.5rem;
}
.cta-button:active, .select-plan-btn:active, .whatsapp-btn:active { transform: scale(0.96); }

.secure-text, .micro-trust { font-size: 0.75rem; color: var(--text-light); margin-top: 1rem; text-align: center; }

/* Regions */
.region-grid { display: flex; flex-direction: column; gap: 1rem; }
.region-card { background: var(--card-surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.25rem; min-height: 80px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.2s var(--ease-out); }
.region-card:active { transform: scale(0.98); }
.region-card.selected { border-color: var(--trust-green); background: rgba(16, 185, 129, 0.05); }
.region-info { display: flex; align-items: center; gap: 1rem; }
.region-info .flag { font-size: 2rem; }
.region-text { display: flex; flex-direction: column; }
.region-text .country { font-weight: 600; font-size: 1.1rem; color: var(--text-primary); }
.region-text .trust-line { font-size: 0.8rem; color: var(--text-secondary); }
.check-circle { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border); transition: all 0.2s; }
.region-card.selected .check-circle { background: var(--trust-green); border-color: var(--trust-green); position: relative; }
.region-card.selected .check-circle::after { content: '✓'; color: white; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 12px; font-weight: bold; }

/* Testimonials & Features (MISSING .SHOW ADDED) */
.testimonial-card, .guarantee-pillar {
    opacity: 0; transform: translateY(20px);
    transition: all 0.4s ease-out;
}
.testimonial-card.show, .guarantee-pillar.show {
    opacity: 1; transform: translateY(0);
}

.avatar-group { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.avatar { width: 48px; height: 48px; border-radius: 50%; border: 3px solid white; background-size: cover; margin-left: -12px; }
.avatar:first-child { margin-left: 0; }
.testimonial-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.testimonial-card { background: var(--card-surface); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); }
.stars { font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.quote { font-weight: 500; font-size: 1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.author { font-size: 0.85rem; color: var(--text-secondary); }

/* Scam Shield */
.trust-pillars { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.trust-card { display: flex; gap: 1rem; background: var(--card-surface); padding: 1.5rem; border-radius: 16px; align-items: flex-start; }
.trust-card .icon { font-size: 2rem; }
.card-text h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.card-text p { font-size: 0.9rem; color: var(--text-secondary); }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.trust-stats { color: var(--trust-green); font-weight: 600; font-size: 0.9rem; text-align: center; margin-bottom: 1rem; }
.review-invite { font-size: 0.8rem; color: var(--text-light); text-align: center; }

/* Sports Desire */
.live-indicator { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); padding: 6px 12px; border-radius: 20px; margin-bottom: 1rem; }
.live-dot { width: 8px; height: 8px; background: var(--trust-green); border-radius: 50%; animation: pulse 1.5s infinite; }
.live-indicator span { font-size: 0.75rem; font-weight: 800; color: var(--trust-green); letter-spacing: 1px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.desire-list { list-style: none; margin-top: 2rem; }
.desire-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.5rem; }
.desire-list .icon { font-size: 1.5rem; }
.desire-list .text { font-size: 1rem; }

/* Movies Desire */
.streaming-comparison { background: var(--card-surface); border-radius: 16px; padding: 2rem 1rem; text-align: center; margin-top: 2rem; border: 1px solid var(--border); }
.crossed-out { display: flex; justify-content: center; gap: 1rem; font-weight: 600; color: var(--text-light); text-decoration: line-through; margin-bottom: 1.5rem; font-size: 1.1rem;}
.access-ug-check { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1.5rem; color: var(--trust-green); }
.glow-check { filter: drop-shadow(0 0 8px rgba(16,185,129,0.5)); }

/* Features Grid */
.features-grid { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
.guarantee-pillar { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 12px; background: var(--card-surface); }
.guarantee-pillar .icon { font-size: 1.5rem; width: 32px; text-align: center; }
.guarantee-pillar .txt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; }
.guarantee-pillar .txt strong { color: var(--text-primary); display: block; }
.closing-line { text-align: center; font-family: 'Plus Jakarta Sans'; font-size: 1.25rem; font-weight: 800; margin-top: 2rem; }

/* Pricing */
.social-proof-pill { background: rgba(245, 158, 11, 0.1); color: var(--gold); font-size: 0.8rem; font-weight: 600; text-align: center; padding: 6px 12px; border-radius: 20px; display: table; margin: 0 auto 1.5rem; }
.pricing-grid { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.plan-card { background: white; border: 2px solid var(--border); border-radius: 20px; padding: 2rem; text-align: center; box-shadow: var(--shadow-soft); cursor: pointer; transition: all 0.3s var(--spring); position: relative; }
.plan-card:active { transform: scale(0.98); }
.plan-name { font-size: 1.25rem; margin-bottom: 1rem; }
.dynamic-date-pill { display: inline-block; background: var(--card-surface); padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 1rem; }
.price-display { margin: 1rem 0; }
.currency { font-size: 1.2rem; font-weight: 600; vertical-align: top; margin-right: 4px; color: var(--text-secondary); }
.amount { font-size: 2.5rem; font-weight: 800; color: var(--text-primary); font-family: 'Plus Jakarta Sans'; }
.plan-features { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.select-plan-btn { margin-top: 0; background: var(--card-surface); color: var(--text-primary); border: 1px solid var(--border); }

.plan-card.premium { border-color: var(--primary); box-shadow: var(--shadow-strong); transform: scale(1.02); }
.plan-card.premium .badge-gold { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: white; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 12px; letter-spacing: 0.5px; white-space: nowrap; }
.plan-card.premium .select-plan-btn { background: var(--primary); color: white; }
.daily-cost { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-top: -10px; margin-bottom: 1rem; }

.plan-card.selected { border-color: var(--trust-green); }
.plan-card.selected .select-plan-btn { background: var(--trust-green); color: white; }
.plan-card.selected::before { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; border-radius: 20px; pointer-events: none; animation: confetti 0.6s ease-out forwards; }
@keyframes confetti { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); } 100% { box-shadow: 0 0 0 20px rgba(16,185,129,0); } }

/* BOTTOM SHEET FIX (Changed .open to .active to match JS) */
.bottom-sheet { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; visibility: hidden; pointer-events: none; }
.bottom-sheet.active { visibility: visible; pointer-events: auto; }
.sheet-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s ease; }
.bottom-sheet.active .sheet-overlay { opacity: 1; }
.sheet-content { position: absolute; bottom: 0; left: 0; width: 100%; background: white; border-radius: 24px 24px 0 0; padding: 1.5rem; transform: translateY(100%); transition: transform 0.4s var(--spring); max-height: 90vh; overflow-y: auto; }
.bottom-sheet.active .sheet-content { transform: translateY(0); }
.drag-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 1.5rem; }

.summary-banner { background: var(--card-surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.summary-banner.premium-banner { border-color: rgba(37, 99, 235, 0.3); background: rgba(37, 99, 235, 0.05); }
.summary-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.summary-info p { font-size: 0.8rem; color: var(--text-secondary); }
.summary-price { font-weight: 800; font-family: 'Plus Jakarta Sans'; font-size: 1.2rem; }

/* Forms (MATCHED WITH JS .input-group) */
.input-group { margin-bottom: 1.5rem; position: relative; }
.input-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text-primary); transition: color 0.2s; }
.input-group input, .input-group select { width: 100%; min-height: 56px; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font-family: 'Inter'; font-size: 1rem; background: var(--card-surface); transition: all 0.2s; -webkit-appearance: none; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); background: white; }
.input-group input:focus + label { color: var(--primary); }
.select-wrapper { position: relative; }
.select-wrapper::after { content: '▼'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--text-secondary); pointer-events: none; }

/* Form Errors */
.error-msg { display: none; color: var(--gold); font-size: 0.8rem; margin-top: 4px; font-weight: 500; }
.input-group.error input, .input-group.error select { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1); }
.input-group.error .error-msg { display: block; }
.input-group.error .micro-trust { display: none; }

.referral-section { margin: 1.5rem 0; }
.ref-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 500; cursor: pointer; color: var(--text-secondary); }
.slide-area { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; margin-top: 0; }
.slide-area.open { max-height: 80px; margin-top: 1rem; }
.slide-area input { width: 100%; min-height: 56px; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font-family: 'Inter'; }

.identity-line { text-align: center; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; color: var(--text-primary); }
.whatsapp-btn { background: var(--whatsapp); font-size: 1.1rem; }
.whatsapp-btn:hover { background: #20BA56; }

/* Exit Pill */
.exit-pill { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150px); background: white; border-radius: 30px; padding: 10px 16px 10px 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); display: flex; align-items: center; gap: 12px; z-index: 1500; transition: transform 0.5s var(--spring); border: 1px solid var(--border); }
.exit-pill.visible { transform: translateX(-50%) translateY(0); }
.pill-content { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.close-pill { background: none; border: none; font-size: 14px; color: var(--text-light); cursor: pointer; padding: 4px; margin-left: 4px; }

.whatsapp-btn { animation: breathe 3s infinite ease-in-out; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.whatsapp-btn:active { animation: none; transform: scale(0.96); }

/* Desktop */
@media (min-width: 800px) {
    .pricing-grid { flex-direction: row; align-items: center; }
    .plan-card { flex: 1; }
    .plan-card.premium { transform: scale(1.1); z-index: 2; }
    .features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sheet-content { max-width: 500px; left: 50%; transform: translate(-50%, 100%); border-radius: 24px; padding: 2rem; }
    .bottom-sheet.active .sheet-content { transform: translate(-50%, -10vh); }
    .region-grid { flex-direction: row; }
    .region-card { flex: 1; flex-direction: column; text-align: center; justify-content: center; padding: 2rem 1rem; gap: 1rem;}
    .region-info { flex-direction: column; }
    .check-circle { position: absolute; top: 1rem; right: 1rem; }
}