:root {
    --primary: rgb(33, 161, 171);
    --primary-hover: rgb(28, 140, 150);
    --primary-light: rgba(33, 161, 171, 0.1);
    --text-main: rgba(18, 18, 18, 0.75);
    --text-dark: #121212;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(33, 161, 171, 0.4);
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Layout */
.app-container {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    min-height: 100vh;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    body {
        padding: 2rem 0;
    }
    .app-container {
        min-height: auto;
        min-height: 80vh;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
}

/* Header */
.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    position: relative;
    z-index: 20;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--bg-light);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: pulse-red 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: #e2e8f0;
    position: relative;
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.6s ease-in-out;
}

/* Screen Container */
.screen-container {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.screen {
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Typography */
h1, h2 {
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 22px;
    line-height: 1.3;
}

h2 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1.5rem;
    font-style: italic;
}

/* Images */
.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    /* Removed float animation per request */
}

/* Buttons & Options */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(33, 161, 171, 0.39);
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 161, 171, 0.5);
}

.btn-primary:active {
    transform: translateY(1px);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
}

.option-btn {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    width: 100%;
    /* Add animation delay for stagger effect */
    animation: slideInRight 0.4s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

/* Staggered animation classes injected by JS */
.delay-0 { animation-delay: 0.1s; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.6s; }
.delay-6 { animation-delay: 0.7s; }

.option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.02) !important; /* Override the entry animation transform */
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: inset 0 0 0 1px var(--primary);
}

/* Checkbox style for multiple selection */
.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.option-btn.selected .checkbox-icon {
    background: var(--primary);
    border-color: var(--primary);
}

.option-btn.selected .checkbox-icon::after {
    content: '';
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.emoji-icon {
    margin-right: 14px;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* VSL & Testimonial specific */
.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.play-button {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-glow);
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
}

.testimonial-card {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    text-align: left;
    margin-bottom: 2rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.alert-box {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.indicator-list {
    text-align: left;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.indicator-list ul {
    list-style: none;
}

.indicator-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Loading Screen */
.loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    margin-bottom: 2rem;
}

.loader-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: absolute;
    top: 0;
    left: 0;
}

.percentage {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

/* Footer */
.app-footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
}

.app-footer p {
    margin: 0;
    font-size: 0.875rem;
}

.app-footer strong {
    color: var(--primary);
}

/* Animations */
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 161, 171, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(33, 161, 171, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 161, 171, 0); }
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.text-left { text-align: left; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.highlight { color: var(--primary); }

/* V2 Specific Styles */
.landing-header { text-align: center; margin-bottom: 1.5rem; width: 100%; }
.online-count { display: inline-block; background: #fee2e2; color: #b91c1c; font-weight: 700; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.subtitle { color: #ef4444; font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.landing-title { font-size: 1.6rem; line-height: 1.3; font-weight: 800; color: #121212; margin-bottom: 1rem; }
.landing-meta { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }
.landing-body { text-align: left; background: white; padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; width: 100%; }
.red-text { color: #e30000; font-size: 1.1rem; margin-bottom: 0.75rem; }
.support-text { font-size: 0.95rem; color: #334155; margin-bottom: 0; line-height: 1.6; }
.landing-footer { margin-top: 2rem; font-size: 0.85rem; color: #64748b; text-align: center; line-height: 1.5; padding-top: 1.5rem; border-top: 1px solid #e2e8f0; width: 100%; }
.landing-footer p { margin-bottom: 0.75rem; font-size: 0.85rem; }
.btn-landing { background-color: #e30000; font-size: 1.2rem; padding: 1.25rem 2rem; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 15px rgba(227, 0, 0, 0.4); }
.btn-landing:hover { background-color: #cc0000; box-shadow: 0 6px 20px rgba(227, 0, 0, 0.5); }
.btn-pulse { animation: button-pulse 2s infinite; }
@keyframes button-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }

.custom-input { width: 100%; padding: 1.25rem; font-size: 1.1rem; border: 2px solid #cbd5e1; border-radius: 12px; transition: all 0.3s ease; text-align: center; font-family: 'Inter', sans-serif; font-weight: 600; outline: none; }
.custom-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
