/* RESET E VARIAVEIS PRINCIPAIS */
:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(20, 26, 40, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.6);
    
    --blue-bacbo: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.7);
    
    --red-bacbo: #ef4444;
    --red-glow: rgba(239, 68, 68, 0.7);
    
    --green-bacbo: #10b981;
    --green-glow: rgba(16, 185, 129, 0.7);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* BACKGROUND E ESTÉTICA SÓLIDA */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: radial-gradient(circle at top, #1e293b 0%, var(--bg-color) 70%);
    z-index: -1;
}

/* UTILS - APP CARDS */
.glass-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.text-center { text-align: center; }

.glow-text {
    font-weight: 800;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.glow-green {
    color: var(--green-bacbo);
    font-weight: 600;
}

/* COMPONENTES */
.btn-primary {
    background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: 1px solid #4338ca;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

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

.btn-primary:hover {
    background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: white;
    border-color: white;
    background: rgba(255,255,255,0.05);
}

.btn-huge {
    font-size: 1.15rem;
    padding: 1.25rem 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg, #4f46e5 0%, #3730a3 100%);
    border: 1px solid #312e81;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-huge:hover {
    background: linear-gradient(180deg, #4338ca 0%, #312e81 100%);
    box-shadow: 0 15px 20px -3px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}

.premium-badge {
    font-size: 0.9rem;
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
    color: #000;
    padding: 2px 8px;
    border-radius: 12px;
    vertical-align: top;
    -webkit-text-fill-color: #000;
}

/* VIEWS - TRANSIÇÕES */
.view-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    animation: fadeIn 0.4s ease forwards;
}

.view-hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

/* LANDING PAGE SPECIFICS */
#landing-page .glass-card {
    max-width: 500px;
    width: 90%;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.pulse-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green-bacbo);
    border: 1px solid var(--green-bacbo);
    border-radius: 20px;
    margin-bottom: 1rem;
    animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-stats-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.stats-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.flashing-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 8px #10b981;
    animation: flashdot 1s infinite alternate;
}
@keyframes flashdot { 
    from { opacity: 0.2; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1.2); box-shadow: 0 0 12px #10b981; } 
}

.stats-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    font-family: monospace;
}

.win-text { color: var(--green-bacbo); text-shadow: 0 0 8px var(--green-glow); }
.loss-text { color: var(--red-bacbo); text-shadow: 0 0 8px var(--red-glow); }

.stat-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 600;
}

/* BOX INSTRUÇÕES */
.text-left { text-align: left; }

.instructions-box {
    background: #1e293b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.inst-title {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.step-desc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.step-desc:last-child { margin-bottom: 0; }

.step-num {
    background: var(--primary);
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-desc p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.step-desc p strong {
    color: #e2e8f0;
}

/* DEPOIMENTOS */
.testimonials-box {
    margin: 2.5rem 0;
    text-align: left;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.test-name {
    color: #f8fafc;
    font-weight: 700;
}

.test-time {
    color: var(--green-bacbo);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.test-body {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}
.test-body strong {
    color: #10b981;
}

/* CTAS */
.landing-ctas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-gold {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #000;
    border: 1px solid #b45309;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
    text-decoration: none;
    display: inline-block;
    padding: 1.2rem;
    text-shadow: none;
    font-size: 1rem;
}
.btn-gold:hover {
    background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
    color: #fff;
}

.pulse-btn-anim {
    animation: floatGlow 2.5s infinite;
}

@keyframes floatGlow {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.btn-dark-cta {
    background: #1f2937;
    border: 1px solid #374151;
    color: #f8fafc;
    box-shadow: none;
    padding: 1.2rem;
    font-size: 1rem;
}
.btn-dark-cta:hover {
    background: #374151;
    border-color: #4b5563;
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.absolute-top-left {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 50;
    font-size: 1.1rem;
}

.logo-giant-container {
    width: 100%;
    height: 40vh; /* Ocupa praticamente a metade superior da tela */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.giant-logo {
    width: 90%;
    max-width: 500px;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 15px var(--primary-glow));
    animation: floatingLogo 4s ease-in-out infinite;
}

@keyframes floatingLogo {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: color 0.2s;
}
.btn-icon:hover { color: white; }

.single-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-card {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
}

.margin-b { margin-bottom: 1.5rem; }

.verdict-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.assertiveness-badge {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(0,0,0,0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gale-alert {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    #app-page { 
        padding: 10px; 
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .main-card {
        padding: 1.5rem 1rem;
    }
    .verdict-text {
        font-size: 2rem;
    }
    .btn-huge {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
        margin: 1rem 0;
    }
    .pred-highlight {
        font-size: 1.8rem;
        padding: 0.8rem 1rem;
    }
    .assertiveness-badge {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    .glow-text {
        font-size: 2rem;
    }
    #landing-page .glass-card {
        padding: 2rem 1.5rem;
    }
    .logo-giant-container {
        height: 45dvh; /* Garante que fique enorme e perfeitamente equilibrado no topo */
        margin-bottom: 0;
    }
    .absolute-top-left {
        top: 1rem;
        left: 1rem;
        padding: 0.5rem;
        background: rgba(0,0,0,0.3);
        border-radius: 8px;
    }
    .stats-footer {
        flex-direction: column;
        gap: 1rem;
    }
    .probabilities-grid {
        gap: 0.5rem;
    }
    .prob-box {
        height: 90px;
    }
    .prob-val {
        font-size: 1.6rem;
    }
    .prob-label {
        font-size: 0.75rem;
    }
    .verdict-text {
        font-size: 1.6rem;
    }
}

/* MAIN CARD (PREDITOR) */
.main-card h3 {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#status-text {
    font-size: 1.5rem;
    font-weight: 300;
}
.status-neutral { color: var(--text-muted); }

/* CONTROLS CARD */
.controls-card {
    display: flex;
    flex-direction: column;
}

.controls-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-color {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.btn-blue { background: var(--blue-bacbo); }
.btn-blue:hover { background: #2563eb; box-shadow: 0 0 15px var(--blue-glow); transform: translateY(-2px);}

.btn-red { background: var(--red-bacbo); }
.btn-red:hover { background: #dc2626; box-shadow: 0 0 15px var(--red-glow); transform: translateY(-2px);}

.btn-green { background: var(--green-bacbo); }
.btn-green:hover { background: #059669; box-shadow: 0 0 15px var(--green-glow); transform: translateY(-2px);}

.history-section {
    margin-top: auto;
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.history-section h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.history-grid {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 0.5rem;
}

.history-dot {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    animation: fadeInDot 0.3s ease;
}
@keyframes fadeInDot { from { transform: scale(0); } to { transform: scale(1); } }

.dot-blue { background: var(--blue-bacbo); box-shadow: 0 0 8px var(--blue-glow); }
.dot-red { background: var(--red-bacbo); box-shadow: 0 0 8px var(--red-glow); }
.dot-green { background: var(--green-bacbo); box-shadow: 0 0 8px var(--green-glow); }

.stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

/* Prediction UI (Squares App) */
.hidden { display: none !important; }

.next-round-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.probabilities-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.prob-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    background: #1f2937;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 110px;
}

.prob-val {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-muted);
}

.prob-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.box-blue { background: rgba(59, 130, 246, 0.05); border-color: rgba(59, 130, 246, 0.15); }
.box-blue.active { background: #1e3a8a; border-color: #3b82f6; box-shadow: 0 0 0 2px #3b82f6; transform: scale(1.02); }
.box-blue.active .prob-val { color: #ffffff; }
.box-blue.active .prob-label { color: #ffffff; }

.box-yellow { background: rgba(234, 179, 8, 0.05); border-color: rgba(234, 179, 8, 0.15); }
.box-yellow.active { background: #713f12; border-color: #eab308; box-shadow: 0 0 0 2px #eab308; transform: scale(1.02); }
.box-yellow.active .prob-val { color: #ffffff; }
.box-yellow.active .prob-label { color: #ffffff; }

.box-red { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.15); }
.box-red.active { background: #7f1d1d; border-color: var(--red-bacbo); box-shadow: 0 0 0 2px var(--red-bacbo); transform: scale(1.02); }
.box-red.active .prob-val { color: #ffffff; }
.box-red.active .prob-label { color: #ffffff; }

/* LOADER */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-container p { color: var(--primary); font-weight: 600; animation: pulse 1.5s infinite; }

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } }

/* FOOTER */
.app-footer {
    width: 100%;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #818cf8;
    text-decoration: underline;
}
