.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0C443C;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(12, 68, 60, 0.28);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
    z-index: 950;
}
.chatbot-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(12, 68, 60, 0.38);
}
.chatbot-toggle i {
    position: absolute;
    transition: opacity 0.25s, transform 0.25s;
}
.chatbot-toggle .fa-times { opacity: 0; transform: rotate(-90deg); }
.chatbot-toggle.open .fa-comments { opacity: 0; transform: rotate(90deg); }
.chatbot-toggle.open .fa-times { opacity: 1; transform: rotate(0); }

.back-to-top { right: 24px !important; bottom: 84px !important; }

.chatbot-panel {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 960;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.chatbot-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* HEADER */
.chatbot-header {
    background: #fff;
    border-bottom: 1px solid #F0F0EE;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 11px; }
.chatbot-avatar {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; flex-shrink: 0;
}
.chatbot-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.chatbot-name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #0F172A;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chatbot-beta {
    display: inline-block;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #FEF3C7;
    color: #92400E;
    border-radius: 100px;
    line-height: 1.4;
    cursor: help;
}
.chatbot-status {
    font-size: 11px;
    color: #94A3B8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 1px;
    letter-spacing: 0.01em;
}
.chatbot-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22C55E;
}
.chatbot-close {
    background: none; border: none;
    color: #94A3B8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    font-weight: 300;
}
.chatbot-close:hover { color: #0F172A; }

/* BODY */
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    background: #FAFAF8;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.chatbot-body::-webkit-scrollbar { width: 5px; }
.chatbot-body::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 10px; }

.chatbot-msg { display: flex; max-width: 88%; }
.chatbot-msg.user { align-self: flex-end; justify-content: flex-end; }
.chatbot-msg.bot { align-self: flex-start; }
.chatbot-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.005em;
    word-wrap: break-word;
}
.chatbot-msg.bot .chatbot-bubble {
    background: #fff;
    color: #334155;
    border: 1px solid #F0F0EE;
    border-bottom-left-radius: 4px;
}
.chatbot-msg.user .chatbot-bubble {
    background: #0C443C;
    color: #F1F5F0;
    border-bottom-right-radius: 4px;
}

.chatbot-disclaimer {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F0F0EE;
    font-size: 11px;
    color: #94A3B8;
    font-style: italic;
    line-height: 1.45;
}

.chatbot-msg.bot .chatbot-bubble a {
    color: #0C443C;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    transition: opacity 0.2s;
    padding-bottom: 1px;
}
.chatbot-msg.bot .chatbot-bubble a:hover { opacity: 0.7; }

/* LANGUAGE SUGGESTION */
.chatbot-lang-prompt {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chatbot-lang-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.chatbot-lang-yes, .chatbot-lang-no {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.chatbot-lang-yes {
    background: #0C443C;
    color: #fff;
    border-color: #0C443C;
}
.chatbot-lang-yes:hover { background: #0a3a33; }
.chatbot-lang-no { color: #5A5A57; }
.chatbot-lang-no:hover { background: #F4F5F3; border-color: #DEDEDA; }


.chatbot-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 14px;
}
.chatbot-typing span {
    width: 5px; height: 5px;
    background: #94A3B8;
    border-radius: 50%;
    animation: chatbotBounce 1.3s infinite ease-in-out;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* FORM */
.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #F0F0EE;
    background: #fff;
    flex-shrink: 0;
}
.chatbot-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #F0F0EE;
    border-radius: 100px;
    font-size: 13.5px;
    font-family: inherit;
    color: #0F172A;
    background: #FAFAF8;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    min-width: 0;
    letter-spacing: -0.005em;
}
.chatbot-form input::placeholder { color: #94A3B8; }
.chatbot-form input:focus {
    outline: none;
    border-color: #0C443C;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(12, 68, 60, 0.06);
}
.chatbot-form button {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #0C443C;
    color: #F1F5F0;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}
.chatbot-form button:hover { background: #0a3a33; transform: scale(1.05); }
.chatbot-form button:active { transform: scale(0.95); }

/* ===== BLOQUEAR TRADUÇÃO DO CHATBOT ===== */
.chatbot-panel .goog-text-highlight,
.chatbot-panel font,
.chatbot-bubble font,
.chatbot-msg font,
.chatbot-panel .notranslate font {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}


.chatbot-panel,
.chatbot-panel *,
.chatbot-toggle {
    translate: no;
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 78px;
        height: calc(100vh - 130px);
        max-height: 520px;
    }
    .chatbot-toggle { right: 16px; bottom: 20px; width: 46px; height: 46px; }
    .back-to-top { right: 16px !important; bottom: 78px !important; }
}