/* =========================
   GLOW DRINK STYLE - MASTER VERSION 2026 (FINAL)
   ========================= */

   :root {
    --bg: #f8fff9;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    
    /* CORES DA MARCA GLOW DRINK */
    --brand-900: #2f5e18; 
    --brand-700: #458a23;
    --brand-500: #6ab04c; 
    --brand-300: #86efac;
    --accent: #ff477e; 
    --gold: #f59e0b;
    --danger: #ef4444;
    
    --radius-card: 24px;
    --radius-btn: 16px;
    --font: 'Poppins', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(106, 176, 76, 0.4);
}
  
.hidden { display: none !important; }

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

body {
    font-family: var(--font);
    background: radial-gradient(circle at 50% 0%, rgba(106, 176, 76, 0.15), transparent 60%),
                linear-gradient(180deg, var(--bg), #ffffff);
    color: var(--text);
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 15px;
    overflow-x: hidden;
}

/* --- CONTAINER PRINCIPAL --- */
.quiz-wrapper { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    flex-grow: 1;
    align-items: flex-start;
    margin-top: 10px; 
}

#quiz-container {
    width: 100%; 
    max-width: 480px;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 40px -20px rgba(47, 94, 24, 0.2);
    overflow: hidden; 
    position: relative; 
    padding-bottom: 20px;
    transition: height 0.3s ease;
}

/* --- TELA INICIAL (HERO) --- */
#start-screen { 
    padding: 40px 24px 30px; 
    text-align: center;
}

.hero-image-container { 
    width: 150px; 
    height: 150px; 
    margin: 0 auto 25px;
    position: relative;
}

.hero-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 4px solid #fff;
    box-shadow: var(--shadow-glow);
    position: relative; 
    z-index: 2; 
}

.pulse-ring { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    border-radius: 50%; 
    border: 2px solid var(--brand-500); 
    animation: pulse-ring 2s infinite; 
    z-index: 1;
}

@keyframes pulse-ring { 
    0% { transform: scale(1); opacity: 1; } 
    100% { transform: scale(1.6); opacity: 0; } 
}

.start-content h1 { 
    font-size: 1.6rem;
    color: var(--brand-900); 
    line-height: 1.25; 
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.highlight-green { 
    color: var(--brand-500); 
    font-weight: 800; 
}

.start-subtext { 
    font-size: 0.95rem; 
    color: var(--muted);
    margin-bottom: 25px; 
    line-height: 1.5;
}

.security-box { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: #f0fdf4;
    padding: 10px 16px; 
    border-radius: 12px; 
    font-size: 0.8rem; 
    color: var(--brand-700); 
    font-weight: 600; 
    border: 1px solid rgba(106, 176, 76, 0.2);
}

.users-count { 
    margin-top: 20px; 
    font-size: 0.85rem; 
    color: #64748b; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.green-dot { 
    width: 8px; 
    height: 8px; 
    background: var(--brand-500); 
    border-radius: 50%; 
    display: inline-block;
    box-shadow: 0 0 5px var(--brand-500);
}

/* --- BOTÃO PRIMÁRIO (START) --- */
.primary-btn { 
    width: 100%;
    border: none; 
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); 
    color: #fff; 
    padding: 18px; 
    border-radius: 999px; 
    font-family: var(--font); 
    font-weight: 800; 
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(106, 176, 76, 0.4); 
    font-size: 1.05rem; 
    margin-top: 20px; 
    transition: transform 0.2s;
    letter-spacing: 0.5px;
}

.primary-btn:active {
    transform: scale(0.98);
}

.pulsate { animation: pulse-green 2s infinite; }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(106, 176, 76, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(106, 176, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 176, 76, 0); }
}

/* --- CABEÇALHO DO QUIZ --- */
.quiz-header { 
    padding: 20px 24px 10px; 
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.trust-badge { 
    display: flex; 
    justify-content: center; 
    gap: 6px; 
    font-size: 0.75rem; 
    color: #64748b;
    margin-bottom: 12px; 
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.progress-track { 
    height: 8px; 
    background: #f1f5f9; 
    border-radius: 10px;
    overflow: hidden; 
}

.progress-fill { 
    height: 100%; 
    background: var(--brand-500); 
    width: 10%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 10px;
}

.question-counter { 
    text-align: center; 
    font-size: 0.8rem;
    color: #94a3b8; 
    margin-top: 10px; 
    font-weight: 500;
}

/* --- ÁREA DE PERGUNTAS --- */
#question-area { 
    padding: 25px 24px;
}

#question-text { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: var(--brand-900); 
    text-align: center; 
    margin-bottom: 30px; 
    line-height: 1.4;
}

.options-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.option-btn { 
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 18px; 
    border-radius: 16px; 
    font-size: 1rem; 
    color: var(--text); 
    font-weight: 600; 
    text-align: left; 
    cursor: pointer; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease; 
}

.option-btn:hover {
    border-color: var(--brand-300);
}

.option-btn:active, .option-btn.selected { 
    border-color: var(--brand-500); 
    background: #f0fdf4; 
    color: var(--brand-900); 
    transform: scale(0.99);
}

.option-btn i {
    color: var(--muted);
    transition: 0.2s;
}

.option-btn.selected i {
    color: var(--brand-500);
}

.soft-note { 
    margin-top: 25px; 
    display: flex; 
    gap: 8px; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.8rem; 
    color: #94a3b8;
}

/* --- TELA DE CARREGAMENTO (SCANNER) --- */
#loading-screen { 
    padding: 60px 24px; 
    text-align: center;
}

.scanner-box { 
    width: 100px; 
    height: 100px; 
    margin: 0 auto 30px; 
    position: relative; 
    display: flex; 
    align-items: center;
    justify-content: center; 
}

.brain-base { 
    font-size: 4rem; 
    color: #cbd5e1; 
    opacity: 0.3;
}

.laser-line { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 4px; 
    background: var(--brand-500);
    box-shadow: 0 0 20px var(--brand-500); 
    animation: scan-down 2s ease-in-out infinite; 
    z-index: 10; 
    border-radius: 50%; 
    opacity: 0.8;
}

.grid-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(106, 176, 76, 0.15) 20px); 
    z-index: 5; 
    pointer-events: none;
}

@keyframes scan-down { 
    0% { top: 0%; opacity: 0; } 
    10% { opacity: 1; }
    50% { top: 100%; opacity: 1; } 
    90% { opacity: 1; }
    100% { top: 0%; opacity: 0; } 
}

#loading-headline {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 10px;
}

#loading-subtext {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.loading-steps { 
    text-align: left; 
    max-width: 300px; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column; 
    gap: 12px; 
    font-size: 0.95rem; 
}

.step { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #cbd5e1;
    font-weight: 500; 
    transition: 0.4s ease; 
}

.step i {
    font-size: 1.2rem;
}

.step-active { 
    color: var(--brand-900); 
    opacity: 1; 
    font-weight: 700;
}
.step-active i {
    color: var(--brand-500);
}

/* --- TELA DE RESULTADO --- */
.result-header { 
    background: linear-gradient(135deg, var(--brand-900), #0f2905); 
    color: #fff;
    padding: 35px 20px 50px; 
    text-align: center; 
    border-radius: 0 0 35px 35px; 
    margin-bottom: -40px; 
    position: relative; 
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.alert-badge { 
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5); 
    padding: 6px 14px; 
    border-radius: 50px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    letter-spacing: 1px; 
    color: #fca5a5;
    display: inline-block;
}

#result-title { 
    margin-top: 15px; 
    font-size: 1.8rem; 
    letter-spacing: -1px; 
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#result-subtitle { 
    font-size: 0.95rem; 
    opacity: 0.9; 
    margin-top: 8px; 
    color: #dcfce7;
}

.result-body { 
    padding: 0 20px; 
    position: relative; 
    z-index: 2;
}

/* --- CARD DE DIAGNÓSTICO --- */
.diagnosis-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 20px; 
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px; 
    border: 1px solid #f1f5f9;
}

.diagnosis-top { 
    display: flex; 
    gap: 15px; 
    align-items: center; 
    margin-bottom: 20px;
}

.diagnosis-icon { 
    width: 48px; 
    height: 48px; 
    background: #fff1f2; 
    border-radius: 14px; 
    color: #e11d48; 
    display: flex; 
    align-items: center;
    justify-content: center; 
    font-size: 1.5rem; 
    flex-shrink: 0; 
}

.diagnosis-label { 
    font-size: 0.7rem; 
    font-weight: 700; 
    color: #94a3b8; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diagnosis-name { 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #0f172a; 
    line-height: 1.25;
}

.diagnosis-text { 
    font-size: 0.95rem; 
    color: #334155; 
    line-height: 1.6; 
    background: #f8fafc; 
    padding: 15px; 
    border-radius: 12px;
    border-left: 4px solid var(--brand-500);
}

/* --- DASHBOARD DE BARRAS --- */
.diagnosis-dashboard { 
    margin-top: 20px;
}

.stat-row { 
    margin-bottom: 12px; 
}

.stat-info { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem;
    font-weight: 700; 
    margin-bottom: 6px; 
    color: #475569; 
}

.status-text { 
    font-size: 0.7rem; 
    padding: 2px 8px; 
    border-radius: 6px;
    text-transform: uppercase;
}

.status-text.alert { background: #fee2e2; color: #991b1b; }
.status-text.warn { background: #ffedd5; color: #c2410c; }
.status-text.ok { background: #dcfce7; color: #166534; }

.stat-bar-bg { 
    height: 8px; 
    background: #f1f5f9; 
    border-radius: 10px; 
    overflow: hidden;
}

.stat-bar-fill { 
    height: 100%; 
    width: 0%; 
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); 
    border-radius: 10px;
}

.bar-low { background: #ef4444; }
.bar-mid { background: #f97316; }
.bar-high { background: var(--brand-500); }

/* --- BRIDGE DARK MODE (PRODUTO) --- */
.bridge-dark-section { 
    background: #0f172a; 
    border-radius: 24px; 
    padding: 35px 20px;
    margin: 25px 0 0 0; 
    width: 100%; 
    color: #fff; 
    position: relative; 
    overflow: hidden;
    box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.5); 
    border: 1px solid rgba(255,255,255,0.1); 
    text-align: center;
}

.glow-effect-bg { 
    position: absolute; 
    top: -50%; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 120%; 
    height: 120%;
    background: radial-gradient(circle, rgba(106, 176, 76, 0.25) 0%, rgba(15, 23, 42, 0) 65%); 
    pointer-events: none; 
    z-index: 0;
}

.tech-badge { 
    background: rgba(16, 185, 129, 0.1); 
    border: 1px solid rgba(16, 185, 129, 0.3); 
    color: #34d399;
    font-size: 0.7rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    padding: 6px 16px; 
    border-radius: 50px; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    margin-bottom: 20px; 
    position: relative; 
    z-index: 2; 
}

.offer-headline { 
    font-size: 1.4rem; 
    font-weight: 800; 
    line-height: 1.3; 
    margin-bottom: 15px;
    position: relative; 
    z-index: 2; 
}

.offer-headline span { 
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3); 
}

.offer-text { 
    font-size: 0.95rem; 
    color: #cbd5e1; 
    line-height: 1.6;
    margin-bottom: 25px; 
    padding: 0 5px; 
    position: relative; 
    z-index: 2; 
}

.offer-text strong {
    color: #fff;
    font-weight: 600;
}

.hero-product-img { 
    width: 65%; 
    max-width: 200px; 
    height: auto; 
    filter: drop-shadow(0 0 20px rgba(106, 176, 76, 0.25));
    margin: 0 auto 25px; 
    display: block; 
    position: relative; 
    z-index: 2; 
    animation: float 6s ease-in-out infinite;
}

@keyframes float { 
    0% { transform: translateY(0px); } 
    50% { transform: translateY(-10px); } 
    100% { transform: translateY(0px); } 
}

.dark-benefits { 
    text-align: left; 
    background: rgba(255,255,255,0.03);
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 25px; 
    border: 1px solid rgba(255,255,255,0.08); 
    position: relative; 
    z-index: 2;
}

.db-item { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 15px; 
    align-items: flex-start; 
}

.db-item:last-child { margin-bottom: 0; }

.db-icon { 
    color: #4ade80; 
    font-size: 1.2rem; 
    margin-top: 2px; 
    flex-shrink: 0;
}

.db-text strong { 
    color: #fff; 
    display: block; 
    font-size: 0.9rem; 
    margin-bottom: 4px; 
    font-weight: 700;
}

.db-text span { 
    color: #94a3b8; 
    font-size: 0.8rem; 
    line-height: 1.4; 
    display: block;
}

/* --- BARRA DE ESTOQUE (RED) --- */
.stock-status-box { 
    margin: 0 auto 20px; 
    width: 100%;
    max-width: 95%; 
    text-align: left; 
    position: relative; 
    z-index: 2; 
}

.stock-text { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.75rem;
    color: #cbd5e1; 
    margin-bottom: 8px; 
    font-weight: 600; 
}

.stock-highlight { 
    color: #ef4444; 
    font-weight: 800;
}

.stock-bar-bg { 
    width: 100%; 
    height: 10px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.05); 
}

.stock-bar-fill { 
    width: 87%; 
    height: 100%; 
    background: linear-gradient(90deg, #ef4444, #b91c1c); 
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); 
    animation: pulse-red 2s infinite; 
}

.stock-micro-text { 
    font-size: 0.7rem;
    color: #94a3b8; 
    font-style: italic; 
    text-align: right; 
    opacity: 0.8;
}

@keyframes pulse-red { 
    0% { opacity: 1; } 
    50% { opacity: 0.6; } 
    100% { opacity: 1; } 
}

/* --- BOTÃO CTA PRINCIPAL (GOLD) --- */
.cta-button-main { 
    width: 100%;
    background: linear-gradient(180deg, #facc15 0%, #ca8a04 100%); 
    color: #422006; 
    border: none; 
    padding: 20px; 
    border-radius: 14px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    text-transform: uppercase;
    cursor: pointer; 
    box-shadow: 0 10px 30px rgba(234, 179, 8, 0.25), inset 0 2px 0 rgba(255,255,255,0.4); 
    position: relative; 
    z-index: 2;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    animation: pulse-gold 2s infinite; 
    transition: transform 0.2s;
}

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

@keyframes pulse-gold { 
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.6); } 
    70% { box-shadow: 0 0 0 12px rgba(250, 204, 21, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); } 
}

/* --- PROVA SOCIAL (ARRASTE & SCROLL) --- */
.social-proof-section { 
    margin: 40px 0 20px;
    text-align: center; 
    padding-bottom: 10px; 
    border-top: 1px solid rgba(0,0,0,0.05); 
    padding-top: 30px; 
    overflow: hidden; 
    position: relative;
}

.proof-title { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #64748b; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.marquee-wrapper { 
    width: 100%; 
    overflow: hidden; 
    position: relative; 
    padding: 10px 0;
    cursor: grab; /* Mãozinha aberta */
    touch-action: pan-y; /* Permite scroll vertical da página, mas nosso JS controla o horizontal */
}

.marquee-wrapper:active {
    cursor: grabbing; /* Mãozinha fechada */
}

.marquee-track { 
    display: flex; 
    gap: 20px; 
    width: max-content; 
    will-change: transform; /* Otimiza performance no celular */
}

.smart-slide { 
    width: 210px; 
    height: auto; 
    border-radius: 16px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 4px solid #fff;
    flex-shrink: 0; 
    transform: translateZ(0);

    /* --- IMPEDE SELEÇÃO/ARRASTE FANTASMA DA IMAGEM --- */
    pointer-events: none; 
    -webkit-user-drag: none;
    -webkit-user-select: none;   
    user-select: none;
    -webkit-touch-callout: none;
}

.swipe-hint { 
    margin-top: 15px; 
    font-size: 0.75rem; 
    color: #94a3b8; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    opacity: 0.8; 
}

/* --- BOTÃO SECUNDÁRIO (RESGATE) --- */
.cta-button-secondary { 
    width: 95%;
    margin: 30px auto 10px; 
    background: #fff; 
    color: var(--brand-700); 
    border: 2px solid var(--brand-700); 
    padding: 16px; 
    border-radius: 12px; 
    font-size: 0.95rem; 
    font-weight: 800;
    text-transform: uppercase; 
    cursor: pointer; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s;
}

.cta-button-secondary:hover {
    background: #f0fdf4;
}

.cta-button-secondary:active { 
    background: var(--brand-700); 
    color: #fff; 
    transform: scale(0.98);
}

/* --- RODAPÉ (GHOST) --- */
.ghost-footer { 
    margin-top: 0px; 
    padding-top: 20px; 
    padding-bottom: 40px; 
    text-align: center;
    font-size: 0.7rem; 
    color: #94a3b8; 
    opacity: 0.7; 
    line-height: 1.5;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-weight: 700;
    margin-bottom: 4px;
}

/* --- ANIMAÇÕES GERAIS --- */
.fade-in { 
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- RESPONSIVIDADE SEGURA --- */
@media (max-width: 380px) {
    .hero-product-img { width: 50%; }
    .start-content h1 { font-size: 1.4rem; }
    .cta-button-main { font-size: 0.9rem; padding: 16px; }
    #question-text { font-size: 1.1rem; }
    .smart-slide { width: 180px; }
}