:root {
    --primary-blue: #0A66F0;
    --primary-blue-hover: #0852c2;
    --light-blue-bg: #E8F0FE;
    --text-dark: #1F1F1F;
    --text-light: #5F6368;
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --purple-accent: #8E24AA; /* For text accents like "3 milhões+" */
    --progress-bg: #E0E0E0;
    --progress-fill: #8E24AA;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #e5e5e5; /* Outer background */
    display: flex;
    justify-content: center;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

body.checkout-mode {
    background-color: white;
    overflow-y: auto;
    height: auto;
}
#app.checkout-mode {
    max-width: 480px;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}


/* Header & Progress */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    background-color: #F1F3F5;
    position: relative;
    font-weight: 800;
    font-size: 24px;
    color: #1F1F1F;
    letter-spacing: -0.5px;
}

.header .back-btn {
    position: absolute;
    left: 20px;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
    color: #1F1F1F;
    padding: 10px;
}

.progress-container {
    width: 100%;
    height: 3px;
    background-color: var(--progress-bg);
}

.progress-bar {
    height: 100%;
    background-color: var(--progress-fill);
    width: 0%;
    transition: width 0.3s ease;
}

/* Main Content Area */
.content {
    flex: 1;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
    /* Scrollbar invisível mas funcional */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.content::-webkit-scrollbar { display: none; }

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

/* Animação de entrada dos ícones nas telas intermediárias */
@keyframes iconPop {
    0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
    60%  { transform: scale(1.25) rotate(5deg); opacity: 1; }
    80%  { transform: scale(0.92) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.icon-anim {
    display: inline-block;
    animation: iconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.3;
}

.accent-text {
    color: var(--purple-accent);
}

/* Landing Page Specifics */
.landing-image-container {
    width: 200px;
    height: 250px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.landing-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
}

.landing-image-container .question-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    font-weight: 800;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Buttons & Inputs */
.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: auto;
    /* Sempre visível na base da tela */
    position: sticky;
    bottom: 0;
    box-shadow: 0 -12px 20px 4px white;
    flex-shrink: 0;
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

.options-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    transition: all 0.2s;
    text-align: left;
}

.option-item:hover {
    background-color: #F1F5F9;
}

.option-item.selected {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Checkbox para perguntas multi-select */
.option-item.multi-option {
    justify-content: space-between;
}

.option-item.multi-option .option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.option-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 5px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 14px;
    color: transparent;
}

.option-item.multi-option.selected .option-checkbox {
    background-color: white;
    border-color: white;
    color: var(--primary-blue);
    font-weight: 800;
}

.option-item.multi-option.selected {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Avatar Grid (Gender Selection) */
.avatar-grid {
    display: flex;
    gap: 16px;
    width: 100%;
}

.avatar-item {
    flex: 1;
    background-color: #F0Fdfa; /* light blue/cyan tint */
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 24px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.avatar-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.avatar-item span {
    font-weight: 500;
    font-size: 15px;
}

.avatar-item.selected {
    border-color: var(--primary-blue);
    background-color: var(--light-blue-bg);
}

/* Testimonial / Social Proof */
.social-proof {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: left;
    width: 100%;
}

.stars { color: #F59E0B; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-bottom: 16px; }
.review-author { font-size: 12px; font-weight: 600; }
.stats-list { font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 8px; margin-top: 16px;}
.stats-list div { display: flex; align-items: center; gap: 8px; }

/* Video Container */
.video-container {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin: 24px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.video-container video {
    width: 100%;
    display: block;
}

/* Intermediary Screen (Icons) */
.icon-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.icon-screen img {
    width: 120px;
    margin-bottom: 24px;
}
.icon-screen p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Date Input */
.date-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

/* Data screen redesenhada */
.zodiac-display {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e8ff, #e0d7ff);
    border-radius: 50%;
}

.zodiac-placeholder {
    font-size: 48px;
}

.zodiac-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.zodiac-emoji {
    font-size: 44px;
    line-height: 1;
}

.zodiac-sign-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--purple-accent);
    margin-top: 4px;
}

.zodiac-symbol {
    font-size: 11px;
    color: var(--text-light);
}

/* Esconder o ícone nativo de calendário */
.date-input-styled::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
    opacity: 0;
}

.date-subtitle {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 28px;
}

.date-card {
    width: 100%;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    text-align: left;
    transition: border-color 0.2s;
}

.date-card:focus-within {
    border-color: var(--primary-blue);
}

.date-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.date-input-styled {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    border: none;
    background: transparent;
    padding: 4px 0;
    width: 100%;
    cursor: pointer;
    outline: none;
    font-family: 'Inter', sans-serif;
}


/* Loading Screen */
.loading-screen {
    width: 100%;
    padding: 40px 24px;
    background-color: rgba(142, 36, 170, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.loading-item {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}
.loading-item span {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}
.loading-bar-bg {
    width: 100%;
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    overflow: hidden;
}
.loading-bar-fill {
    height: 100%;
    background: var(--purple-accent);
    width: 0%;
    transition: width 0.5s ease;
}
.popup-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.popup-content {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.popup-content img { width: 48px; margin-bottom: 16px; }
.popup-buttons { display: flex; gap: 12px; }

/* Botões dentro do popup — sem sticky */
.popup-btn {
    flex: 1;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}
.popup-btn:hover { background: var(--primary-blue-hover); }
.popup-btn-full  { width: 100%; }

/* Email Collection */
.email-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.email-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 15px;
    background-color: #F9FAFB;
}
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 24px;
}
.privacy-note {
    font-size: 12px;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

/* Checkout Page */
.checkout-header {
    background-color: #F8FAFC;
    padding: 8px;
    text-align: center;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}
.checkout-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.checkout-image-wrapper.locked img {
    width: 100%;
    display: block;
    filter: blur(12px) brightness(0.9);
    transition: filter 1s ease;
}

.checkout-image-wrapper.unlocked img {
    width: 100%;
    display: block;
    filter: none;
    opacity: 1;
    animation: revealSketch 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes revealSketch {
    0% { filter: blur(12px) brightness(0.9); opacity: 0; }
    100% { filter: blur(0px) brightness(1); opacity: 1; }
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.checkout-image-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.checkout-image-wrapper.unlocked .lock-icon,
.checkout-image-wrapper.unlocked .checkout-image-overlay-text {
    display: none;
}
.checkout-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 32px 0;
    opacity: 0.5;
}
.checkout-logos img { height: 24px; }

/* Promo Code Box */
.promo-box {
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0;
}
.promo-text { font-size: 14px; font-weight: 600;}
.promo-badge { background: var(--purple-accent); color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 700;}

/* Payment Box */
.payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.payment-total-label { font-size: 16px; font-weight: 600; }
.payment-prices { text-align: right; }
.payment-old-price { text-decoration: line-through; color: var(--text-light); font-size: 14px; }
.payment-new-price { font-size: 18px; font-weight: 700; color: #1F1F1F; }
.payment-savings { color: #10B981; font-size: 12px; font-weight: 600; }

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pay-btn.black { background: black; color: white; border: none; }
.pay-btn.blue { background: var(--primary-blue); color: white; border: none; }

/* Feature List */
.feature-list {
    text-align: left;
    margin: 24px 0;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-dark);
}
.feature-item img {
    width: 20px;
    margin-top: 2px;
}

/* User Images */
.user-images-grid {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}
.user-images-grid img {
    flex: 1;
    border-radius: 12px;
    object-fit: cover;
    max-width: calc(50% - 8px);
}

/* ─── NOVO CHECKOUT (Design do PDF) ─── */
.co-ticker { background: #f4f5f7; padding: 12px 16px; font-size: 12px; text-align: center; color: #374151; font-weight: 500; transition: opacity 0.5s; }
.co-ticker strong { color: #111; }
.co-timer-bar { background: #fff; padding: 12px 16px; font-size: 13px; text-align: center; font-weight: 600; border-bottom: 1px solid #eee; }

.co-hero { display: flex; flex-direction: column; padding: 32px 16px; background: #faf5fa; gap: 24px; }
@media (min-width: 768px) { .co-hero { flex-direction: row; align-items: center; justify-content: space-between; padding: 48px 10%; } }
.co-hero-left, .co-hero-right { flex: 1; }
.co-hero-title { font-size: 26px; color: #111; margin-bottom: 8px; font-weight: 700; line-height: 1.2; }
.co-hero-subtitle { font-size: 26px; color: #7c3aed; margin-bottom: 24px; font-weight: 700; line-height: 1.2; }
.co-hero-stats { margin-bottom: 24px; font-size: 14px; color: #4b5563; }
.co-hero-stats div { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }

.co-section-title { font-size: 22px; font-weight: 700; text-align: center; margin: 40px 16px 24px; color: #111; }

.co-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 0 16px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px) { .co-grid { grid-template-columns: 1fr 1.2fr; } }

.co-trust-badge { display: flex; align-items: center; justify-content: space-between; background: #f3f4f6; padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; font-size: 12px; font-weight: 700; color: #374151; }
.co-feature-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.co-feature-icon { font-size: 24px; flex-shrink: 0; }
.co-feature-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; color: #111; }
.co-feature-desc { font-size: 12px; color: #6b7280; line-height: 1.5; }

.co-card { background: white; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); padding: 24px; border: 1px solid #f0f0f0; }
.co-check-list { margin-bottom: 24px; }
.co-check-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 12px; color: #475569; line-height: 1.5; }
.co-check-item span:first-child { color: #10B981; font-weight: bold; font-size: 14px; }

.co-payment-placeholder { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 24px; text-align: center; background: #f8fafc; color: #64748b; margin-top: 16px; font-weight: 600; }

.co-testimonials { display: flex; gap: 16px; overflow-x: auto; padding: 0 16px 24px; scroll-snap-type: x mandatory; }
.co-testimonial-card { min-width: 280px; max-width: 320px; background: #f8fafc; padding: 20px; border-radius: 12px; scroll-snap-align: center; }
.co-testimonial-title { font-weight: 700; font-size: 14px; margin: 12px 0 8px; color: #111; }
.co-testimonial-text { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 16px; }
.co-testimonial-author { font-size: 11px; color: #94a3b8; font-weight: 600; }

.co-karmic-guide { background: white; border-radius: 12px; border: 1px solid #f0f0f0; padding: 24px; text-align: center; max-width: 800px; margin: 0 auto 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.co-karmic-blurred { color: transparent; text-shadow: 0 0 8px rgba(0,0,0,0.3); margin: 16px 0; user-select: none; }
