/* Assistente de voz — leve, sem overlay pesado */
.eq-ia-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1600;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 16px;
    background: #0b1c35;
    color: #ecfeff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(11, 28, 53, 0.28);
}
.eq-ia-fab:hover { background: #164e63; }
.eq-ia-fab.ouvindo { background: #0e7490; animation: eqIaPulse 1.2s ease-in-out infinite; }
@keyframes eqIaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.45); }
    50% { box-shadow: 0 0 0 10px rgba(14, 116, 144, 0); }
}
html.eq-inicio .eq-ia-fab {
    background: rgba(8, 18, 32, 0.92);
    border: 1px solid rgba(103, 232, 249, 0.28);
    color: #67e8f9;
}
.eq-ia-painel {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 1600;
    width: min(380px, calc(100vw - 32px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.eq-ia-painel.aberto { display: flex; }
html.eq-inicio .eq-ia-painel {
    background: #0b1220;
    border-color: rgba(103, 232, 249, 0.18);
    color: #e2e8f0;
}
.eq-ia-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0b1c35;
    border-bottom: 1px solid #f1f5f9;
}
html.eq-inicio .eq-ia-cab { color: #ecfeff; border-color: rgba(255,255,255,0.06); }
.eq-ia-cab button {
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}
.eq-ia-log {
    min-height: 88px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #334155;
}
html.eq-inicio .eq-ia-log { color: #cbd5e1; }
.eq-ia-log p { margin: 0 0 8px; }
.eq-ia-log .ok { color: #047857; }
.eq-ia-log .err { color: #b91c1c; }
html.eq-inicio .eq-ia-log .ok { color: #6ee7b7; }
html.eq-inicio .eq-ia-log .err { color: #fca5a5; }
.eq-ia-form { display: flex; gap: 6px; padding: 10px 12px 12px; }
.eq-ia-form input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.85rem;
}
html.eq-inicio .eq-ia-form input {
    background: #111827;
    border-color: #1e293b;
    color: #fff;
}
.eq-ia-form button {
    border: none;
    border-radius: 8px;
    background: #0b1c35;
    color: #fff;
    padding: 0 14px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
}
@media (max-width: 860px) {
    .eq-ia-fab {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.05rem;
    }
    .eq-ia-painel {
        border-radius: 16px 16px 0 0;
    }
    .eq-ia-log {
        max-height: min(36dvh, 240px);
    }
}
.eq-ia-dica {
    padding: 0 14px 12px;
    font-size: 0.72rem;
    color: #94a3b8;
}
@media (prefers-reduced-motion: reduce) {
    .eq-ia-fab.ouvindo { animation: none; }
}

.eq-ia-optin {
    position: fixed;
    inset: 0;
    z-index: 17000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 11, 20, 0.72);
    backdrop-filter: blur(4px);
}
.eq-ia-optin.aberto { display: flex; }
.eq-ia-optin-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border-top: 4px solid #0e7490;
}
.eq-ia-optin-ico {
    font-size: 2.2rem;
    color: #0e7490;
    margin-bottom: 12px;
}
.eq-ia-optin-card h2 {
    font-family: Montserrat, Inter, sans-serif;
    font-size: 1.15rem;
    color: #0b1c35;
    margin: 0 0 10px;
}
.eq-ia-optin-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 18px;
}
.eq-ia-optin-acoes {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.eq-ia-optin-acoes button {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: Montserrat, Inter, sans-serif;
}
.eq-ia-optin-nao {
    background: #f1f5f9;
    color: #64748b;
}
.eq-ia-optin-sim {
    background: #0b1c35;
    color: #fff;
}
.eq-ia-optin-dica {
    font-size: 0.75rem !important;
    margin: 0 !important;
    color: #94a3b8 !important;
}
