/* ===================================================
   CONCIERGE EXECUTIVO IA — NETO JUNIOR REAL ESTATE
   Design Glassmorphic, Triagem Inteligente & WhatsApp
=================================================== */

:root {
    --ai-cyan: #38bdf8;
    --ai-cyan-glow: rgba(56, 189, 248, 0.45);
    --ai-wpp: #25d366;
    --ai-wpp-glow: rgba(37, 211, 102, 0.45);
    --ai-blue-dark: #070d18;
    --ai-card-bg: rgba(15, 23, 42, 0.96);
    --ai-border: rgba(56, 189, 248, 0.3);
    --ai-gradient-cyan: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #60a5fa 100%);
    --ai-gradient-wpp: linear-gradient(135deg, #128c7e 0%, #25d366 50%, #4ade80 100%);
}

/* Oculta qualquer botão legado ou duplicado do WhatsApp flutuante para manter a UI limpa e focada no Concierge */
.whatsapp-float,
.wpp-contextual,
#wppContextual,
.wpp-fab,
.wpp-float,
.btn-whatsapp-floating {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* --- BOTÃO FLUTUANTE DO CONCIERGE IA --- */
.nj-ai-launcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999990;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 20, 38, 0.94);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    padding: 10px 20px 10px 12px;
    border-radius: 50px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px var(--ai-cyan-glow);
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(8px);
    animation: njLauncherEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s;
    user-select: none;
}

@keyframes njLauncherEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nj-ai-launcher:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: #38bdf8;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.7);
}

.nj-ai-orb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ai-gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.5);
    flex-shrink: 0;
}

.nj-ai-orb::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(6px);
    opacity: 0.7;
    z-index: -1;
    animation: orbPulse 2.5s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 0.9; }
}

.nj-ai-launcher-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nj-ai-launcher-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
}

.nj-ai-launcher-sub {
    color: #38bdf8;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.4px;
}

/* --- JANELA DO CHAT (WIDGET) --- */
.nj-ai-widget {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 420px;
    max-width: calc(100vw - 30px);
    height: 640px;
    max-height: calc(100vh - 110px);
    background: var(--ai-card-bg);
    border: 1px solid var(--ai-border);
    border-radius: 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.2);
    display: none;
    flex-direction: column;
    z-index: 999995;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nj-ai-widget.active {
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header */
.nj-ai-header {
    background: rgba(11, 20, 38, 0.92);
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- BARRA DE STATUS: MODO CHAMADA DE VOZ AO VIVO (HANDS-FREE) --- */
.nj-ai-live-call-bar {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.22) 0%, rgba(15, 23, 42, 0.96) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: fadeInCall 0.3s ease-out;
}

@keyframes fadeInCall {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.nj-ai-live-call-bar.active {
    display: flex !important;
}

.nj-ai-call-status-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nj-ai-call-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}

.nj-ai-call-wave span {
    width: 3.5px;
    height: 6px;
    background: #38bdf8;
    border-radius: 3px;
    transition: height 0.15s ease, background-color 0.3s;
}

.nj-ai-live-call-bar.listening .nj-ai-call-wave span {
    background: #4ade80;
    animation: soundWaveListen 1s infinite ease-in-out;
}

.nj-ai-live-call-bar.speaking .nj-ai-call-wave span {
    background: #38bdf8;
    animation: soundWaveSpeak 0.65s infinite ease-in-out;
}

.nj-ai-live-call-bar.thinking .nj-ai-call-wave span {
    background: #facc15;
    animation: soundWaveThink 1.2s infinite ease-in-out;
}

@keyframes soundWaveListen {
    0%, 100% { height: 4px; }
    50% { height: 18px; }
}

@keyframes soundWaveSpeak {
    0%, 100% { height: 5px; }
    25% { height: 18px; }
    50% { height: 8px; }
    75% { height: 20px; }
}

@keyframes soundWaveThink {
    0%, 100% { height: 4px; opacity: 0.4; }
    50% { height: 12px; opacity: 1; }
}

.nj-ai-call-wave span:nth-child(2) { animation-delay: 0.15s; }
.nj-ai-call-wave span:nth-child(3) { animation-delay: 0.3s; }
.nj-ai-call-wave span:nth-child(4) { animation-delay: 0.45s; }

.nj-ai-call-status-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nj-ai-call-status-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

.nj-ai-btn-end-call {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #f87171;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.nj-ai-btn-end-call:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.nj-ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nj-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--ai-gradient-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    position: relative;
}

.nj-ai-online-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    border: 2px solid #0f172a;
}

.nj-ai-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.nj-ai-subtitle {
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    margin: 0;
}

.nj-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nj-ai-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.nj-ai-action-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
    border-color: #38bdf8;
}

.nj-ai-action-btn.wpp-direct {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #4ade80;
}

.nj-ai-action-btn.wpp-direct:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

/* Área de Mensagens */
.nj-ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.nj-ai-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeInMsg 0.3s ease;
}

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

.nj-ai-msg.user {
    justify-content: flex-end;
}

.nj-ai-msg-bubble {
    max-width: 88%;
    padding: 13px 16px;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}

.nj-ai-msg.bot .nj-ai-msg-bubble {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #f1f5f9;
    border-bottom-left-radius: 4px;
}

.nj-ai-msg.user .nj-ai-msg-bubble {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

/* Botão discreto para ouvir áudio da mensagem individual */
.nj-ai-msg-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 4px;
}

.nj-ai-btn-speak-msg {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.nj-ai-btn-speak-msg:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
    border-color: #38bdf8;
    transform: scale(1.02);
}

/* --- CARD DE RESUMO DA TRIAGEM PARA WHATSAPP --- */
.nj-ai-summary-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(37, 211, 102, 0.5);
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.15);
}

.nj-ai-summary-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
}

.nj-ai-summary-desc {
    color: #e2e8f0;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.45;
}

.nj-ai-btn-send-wpp-summary {
    background: #25d366;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.nj-ai-btn-send-wpp-summary:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

/* --- CARDS DE ESCOLHA DE BOAS-VINDAS (VOZ LIVE, TRIAGEM IA OU WHATSAPP) --- */
.nj-ai-welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.nj-ai-welcome-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

/* Opção Destaque: Conversa por Voz Contínua (Hands-Free) */
.nj-ai-welcome-btn.btn-voice-live {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(56, 189, 248, 0.2) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
    position: relative;
    overflow: hidden;
}

.nj-ai-welcome-btn.btn-voice-live::after {
    content: 'NOVO';
    background: #38bdf8;
    color: #0b1320;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.nj-ai-welcome-btn.btn-voice-live:hover {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    border-color: #38bdf8;
    color: #0b1320;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.5);
}

.nj-ai-welcome-btn.btn-voice-live:hover::after {
    background: #0b1320;
    color: #38bdf8;
}

/* Opção 1: Triagem IA por Texto */
.nj-ai-welcome-btn.btn-triagem {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

.nj-ai-welcome-btn.btn-triagem:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Opção 2: Chamar WhatsApp */
.nj-ai-welcome-btn.btn-wpp-direct {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2) 0%, rgba(37, 211, 102, 0.1) 100%);
    border-color: rgba(37, 211, 102, 0.5);
    color: #4ade80;
}

.nj-ai-welcome-btn.btn-wpp-direct:hover {
    background: #25d366;
    border-color: #25d366;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Cards de Imóveis no Chat */
.nj-ai-properties-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.nj-ai-prop-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    gap: 12px;
    padding: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.nj-ai-prop-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.nj-ai-prop-img {
    width: 85px;
    height: 85px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0b1320;
}

.nj-ai-prop-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.nj-ai-prop-title {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px 0;
}

.nj-ai-prop-meta {
    color: #94a3b8;
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.nj-ai-prop-price {
    color: #38bdf8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.nj-ai-prop-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.nj-ai-btn-view {
    background: #0284c7;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nj-ai-btn-wpp {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #4ade80;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Sugestões Rápidas (Chips) */
.nj-ai-suggestions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 0 16px 10px 16px;
    scrollbar-width: none;
}

.nj-ai-suggestions::-webkit-scrollbar { display: none; }

.nj-ai-chip {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.nj-ai-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #ffffff;
    border-color: #38bdf8;
}

/* Barra de Entrada (Input & Microfone) */
.nj-ai-input-box {
    background: rgba(11, 20, 38, 0.95);
    padding: 10px 14px 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

/* Banner de Status da Gravação / Envio */
.nj-ai-rec-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.76rem;
    font-family: 'Inter', sans-serif;
    animation: fadeInRec 0.25s ease;
}

.nj-ai-rec-banner.active {
    display: flex;
}

.nj-ai-rec-banner.processing {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.nj-ai-rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    margin-right: 6px;
    animation: recDotPulse 1s infinite alternate;
}

.nj-ai-rec-banner.processing .nj-ai-rec-dot {
    background: #38bdf8;
    animation: typingBounce 1s infinite alternate;
}

@keyframes recDotPulse {
    from { opacity: 0.4; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1.2); }
}

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

.nj-ai-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.nj-ai-input {
    flex: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 16px !important; /* CRÍTICO: Previne auto-zoom indesejado no iOS Safari */
    outline: none;
    transition: 0.2s;
    -webkit-text-size-adjust: 100%;
}

.nj-ai-input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    font-size: 16px !important;
}

.nj-ai-btn-mic {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nj-ai-btn-mic:hover {
    background: #0284c7;
    color: #ffffff;
    transform: scale(1.06);
}

.nj-ai-btn-mic.recording {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    animation: micWave 1.2s infinite ease-in-out;
}

@keyframes micWave {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    50% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

.nj-ai-btn-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0284c7;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nj-ai-btn-send:hover {
    background: #38bdf8;
    color: #080e18;
    transform: scale(1.06);
}

/* Indicador de Digitação */
.nj-ai-typing {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
}

.nj-ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.nj-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.nj-ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* Responsivo para Celular e Tablets */
@media (max-width: 640px) {
    .nj-ai-launcher {
        bottom: 20px;
        right: 18px;
        width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }

    .nj-ai-launcher .nj-ai-launcher-text {
        display: none !important;
    }

    .nj-ai-orb {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
    }

    .nj-ai-widget {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        max-width: 100vw;
        border-radius: 0;
        border: none;
    }
}
