/*--------------------------------------------------------------
# CHATBOT TIKITO TATTOO - ESTILO PREMIUM
# Organizado por Blocos Lógicos
--------------------------------------------------------------*/

/* ============================================
   BLOCO 1: BOTÃO FLUTUANTE DO CHATBOT
============================================ */
.chatbot-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px;
    height: 65px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--shadow-gold);
    z-index: 500; /* ✅ Camada Chatbot - Abaixo do popup */
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--primary-gold);
    margin: 0 !important;
    transform: translate(0, 0) !important;
}

.chatbot-button::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--deep-black);
    border-radius: 50%;
    z-index: -1;
}

.chatbot-button:hover {
    transform: scale(1.12) translateY(-3px) !important;
    box-shadow: 0 12px 40px var(--primary-gold);
}

.chatbot-button i {
    font-size: 28px;
    color: var(--primary-gold);
    position: relative;
    z-index: 1;
    animation: chatPulse 2s infinite;
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid var(--deep-black);
    animation: badgeBounce 1s infinite;
}

/* ============================================
   BLOCO 2: TOOLTIPS
============================================ */
.chatbot-tooltip,
.chatbot-tooltip-secondary {
    position: fixed;
    bottom: 90px;
    right: 105px;
    background: var(--charcoal);
    color: var(--soft-white);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 499; /* ✅ Abaixo do botão do chatbot */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--primary-gold);
    box-shadow: 0 5px 20px var(--shadow-gold);
}

.chatbot-tooltip::after,
.chatbot-tooltip-secondary::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--charcoal);
}

.chatbot-tooltip.show,
.chatbot-tooltip-secondary.show {
    opacity: 1;
    visibility: visible;
}

/* AJUSTE RESPONSIVO - Desktop mantém posição padrão */
@media (min-width: 769px) {
    .chatbot-tooltip,
    .chatbot-tooltip-secondary {
        bottom: 40px;
        right: 105px;
    }
}

/* ✅ MOBILE: Tooltip AO LADO do botão (esquerda) */
@media (max-width: 768px) {
    .chatbot-tooltip,
    .chatbot-tooltip-secondary {
        bottom: calc(70px + env(safe-area-inset-bottom) + 15px) !important;
        right: 85px !important; /* Fica à ESQUERDA do botão */
        max-width: 200px;
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .chatbot-tooltip::after,
    .chatbot-tooltip-secondary::after {
        right: -8px;
        border-left-color: var(--charcoal);
    }
    
    /* ✅ ESCONDER tooltip quando chatbot aberto */
    .chatbot-container.active ~ .chatbot-tooltip,
    .chatbot-container.active ~ .chatbot-tooltip-secondary {
        display: none !important;
    }
}

/* ============================================
   BLOCO 3: CONTAINER PRINCIPAL DO CHATBOT
============================================ */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--deep-black);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px var(--shadow-gold);
    z-index: 501; /* ✅ Acima do botão, abaixo do popup */
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
    animation: chatOpen 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-container.minimized {
    height: 70px;
    overflow: hidden;
}

.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input-area {
    display: none;
}

/* ============================================
   BLOCO 4: HEADER DO CHATBOT
============================================ */
.chatbot-header {
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    flex-shrink: 0 !important;
    background: var(--gradient-dark);
    padding: 12px 20px !important;
    margin: 0 !important;
    min-height: 65px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.chatbot-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #27ae60;
    border: 2px solid var(--deep-black);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.chatbot-header-text h3 {
    font-size: 16px;
    color: var(--primary-gold);
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.chatbot-online {
    font-size: 12px;
    color: var(--gray-medium);
    margin: 0;
}

.chatbot-header-actions {
    display: flex;
    gap: 8px;
}

.chatbot-action-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-action-btn:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: scale(1.1);
}

/* ============================================
   BLOCO 5: ÁREA DE MENSAGENS
============================================ */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--charcoal);
    position: relative;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    animation: messageSlide 0.4s ease;
}

.chatbot-message.user {
    flex-direction: row-reverse;
}

.chatbot-message-avatar {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.chatbot-message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.chatbot-message.user .chatbot-message-avatar {
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-black);
    font-weight: bold;
    font-size: 16px;
    border-radius: 50%;
    margin-top: 7px;
}

.chatbot-message.user .chatbot-message-avatar i {
    font-size: 18px;
}

.chatbot-message-content {
    max-width: 75%;
}

/* ============================================
   BALÃO DO BOT COM TEMA OURO
============================================ */
.chatbot-message.bot .chatbot-message-content p {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 26, 26, 0.95) 100%);
    color: var(--soft-white);
    padding: 14px 16px;
    border-radius: 12px;
    margin: 0 0 5px 0;
    line-height: 1.6;
    font-size: 14px;
    border: 1px solid var(--primary-gold);
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

/* Links dentro das mensagens do bot */
.chatbot-message.bot .chatbot-message-content a {
    color: var(--primary-gold);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--primary-gold);
}

.chatbot-message.bot .chatbot-message-content a:hover {
    color: #f4d03f;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    border-bottom-color: #f4d03f;
}

/* Strong/Bold no bot */
.chatbot-message.bot .chatbot-message-content strong {
    color: var(--primary-gold);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Br e quebras no bot */
.chatbot-message.bot .chatbot-message-content br {
    display: block;
    height: 8px;
}

.chatbot-message.user .chatbot-message-content p {
    background: var(--gradient-gold);
    color: var(--deep-black);
    border: none;
    padding: 14px 16px;
    border-radius: 12px;
    margin: 0 0 5px 0;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.chatbot-message-time {
    font-size: 11px;
    color: var(--gray-medium);
    display: block;
    margin-top: 3px;
}

/* ============================================
   BLOCO 6: ÁREA DE INPUT (FIXO NA BASE)
============================================ */
.chatbot-input-area {
    background: var(--deep-black);
    border-top: 2px solid var(--primary-gold);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.chatbot-attachment-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-attachment-btn i {
    font-size: 16px;
}

.chatbot-attachment-btn:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
}

.chatbot-input {
    flex: 1;
    background: var(--charcoal);
    border: 1px solid var(--border-gold);
    color: var(--soft-white);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    height: 40px;
    line-height: normal;
}

.chatbot-input::placeholder {
    color: var(--gray-medium);
    opacity: 0.7;
}

.chatbot-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px var(--muted-gold);
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-gold);
    border: none;
    color: var(--deep-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send-btn i {
    font-size: 16px;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-gold);
}

/* ============================================
   BLOCO 7: MENU DE OPÇÕES
============================================ */
.chatbot-options-menu {
    position: absolute;
    bottom: 80px;
    right: 15px;
    background: var(--charcoal);
    border: 1px solid var(--primary-gold);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.chatbot-options-menu.active {
    display: block;
    animation: menuSlide 0.3s ease;
}

.chatbot-option-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--soft-white);
    padding: 12px 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-family: inherit;
}

.chatbot-option-item:hover {
    background: var(--muted-gold);
    color: var(--primary-gold);
}

.chatbot-option-item i {
    width: 18px;
}

/* ============================================
   BLOCO 8: QUICK REPLIES - CARROSSEL 3D
============================================ */
.chatbot-quick-replies-premium {
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
    overflow: visible;
}

.quick-replies-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.quick-replies-carousel:active {
    cursor: grabbing;
}

.quick-replies-carousel::-webkit-scrollbar {
    display: none;
}

/* Card Premium 3D */
.quick-reply-card {
    min-width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Efeito Glow Animado */
.quick-reply-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(212, 175, 55, 0.4) 50%, 
        transparent 70%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: cardShine 3s linear infinite;
}

.quick-reply-card:hover::before {
    opacity: 1;
}

/* Hover 3D */
.quick-reply-card:hover {
    transform: translateY(-8px) scale(1.08);
    border-color: var(--primary-gold);
    box-shadow: 
        0 12px 35px rgba(212, 175, 55, 0.4),
        0 0 25px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(26, 26, 26, 0.98) 100%);
}

.quick-reply-card:active {
    transform: translateY(-4px) scale(1.02);
}

/* Ícone com Partículas */
.quick-reply-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-reply-card:hover .quick-reply-card-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 15px var(--primary-gold));
}

/* Título Neon */
.quick-reply-card-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-reply-card:hover .quick-reply-card-title {
    color: var(--primary-gold);
    text-shadow: 
        0 0 20px var(--primary-gold),
        0 0 30px var(--primary-gold);
}

/* ESTILOS ESPECIAIS POR REDE SOCIAL */
.quick-reply-card.whatsapp-card {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-color: rgba(37, 211, 102, 0.4);
}

.quick-reply-card.whatsapp-card:hover {
    border-color: #25D366;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.quick-reply-card.whatsapp-card .quick-reply-card-icon {
    color: #25D366;
}

.quick-reply-card.instagram-card {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-color: rgba(225, 48, 108, 0.4);
}

.quick-reply-card.instagram-card:hover {
    border-color: #E1306C;
    box-shadow: 0 12px 35px rgba(225, 48, 108, 0.4);
}

.quick-reply-card.instagram-card .quick-reply-card-icon {
    color: #E1306C;
}

.quick-reply-card.facebook-card {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-color: rgba(24, 119, 242, 0.4);
}

.quick-reply-card.facebook-card:hover {
    border-color: #1877F2;
    box-shadow: 0 12px 35px rgba(24, 119, 242, 0.4);
}

.quick-reply-card.facebook-card .quick-reply-card-icon {
    color: #1877F2;
}

/* ============================================
   BLOCO 9: BOTÃO "VER OPÇÕES RÁPIDAS"
============================================ */
.back-button-wrapper {
    text-align: center;
    margin: 15px 0;
    padding: 0 20px;
    animation: fadeSlideUp 0.4s ease;
}

.back-button-wrapper .quick-reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-gold);
    color: var(--deep-black);
    border: 2px solid var(--primary-gold);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.back-button-wrapper .quick-reply-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
}

.back-button-wrapper .quick-reply-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.back-button-wrapper .quick-reply-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.back-button-wrapper .quick-reply-btn:hover i {
    transform: translateX(-3px);
}

/* ============================================
   BLOCO 10: BOTÕES DE NAVEGAÇÃO (OCULTOS)
============================================ */
.carousel-nav-btn {
    display: none;
}

.carousel-dots {
    display: none;
}

/* ============================================
   BLOCO 11: LINKS SOCIAIS
============================================ */
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white !important;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.whatsapp-link:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    color: white !important;
}

.whatsapp-link i {
    font-size: 18px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white !important;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(188, 24, 136, 0.3);
    color: white !important;
}

.instagram-link i {
    font-size: 18px;
}
/* ✅ Mensagens do bot com links */
.chatbot-message.bot .chatbot-message-content p {
    display: block;
    width: 100%;
}

/* ✅ Links dentro da mensagem */
.chatbot-message.bot .chatbot-message-content a {
    display: block;
    width: fit-content;
    margin: 8px 0;
}

/* ✅ WhatsApp/Instagram links específicos */
.chatbot-message.bot .chatbot-message-content .whatsapp-link,
.chatbot-message.bot .chatbot-message-content .instagram-link {
    margin-top: 10px;
    margin-bottom: 0;
}
/* ============================================
   BLOCO 12: ANIMAÇÕES
============================================ */
@keyframes chatPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes menuSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px) rotateY(-20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BLOCO 13: ANIMAÇÕES DE ENTRADA DOS CARDS
============================================ */
.quick-reply-card {
    animation: cardSlideIn 0.5s ease backwards;
}

.quick-reply-card:nth-child(1) { animation-delay: 0.05s; }
.quick-reply-card:nth-child(2) { animation-delay: 0.1s; }
.quick-reply-card:nth-child(3) { animation-delay: 0.15s; }
.quick-reply-card:nth-child(4) { animation-delay: 0.2s; }
.quick-reply-card:nth-child(5) { animation-delay: 0.25s; }
.quick-reply-card:nth-child(6) { animation-delay: 0.3s; }
.quick-reply-card:nth-child(7) { animation-delay: 0.35s; }
.quick-reply-card:nth-child(8) { animation-delay: 0.4s; }
.quick-reply-card:nth-child(9) { animation-delay: 0.45s; }

/* ============================================
   BLOCO 14: EFEITO RIPPLE NO CLIQUE
============================================ */
.quick-reply-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

/* ============================================
   BLOCO 15: RESPONSIVO MOBILE
============================================ */
@media (max-width: 768px) {
    /* ✅ Botão flutuante - ACIMA DA NAVBAR MOBILE */
.chatbot-button {
        position: fixed !important;
        bottom: calc(70px + env(safe-area-inset-bottom) + 15px) !important;
        right: 25px !important;
        width: 60px;
        height: 60px;
        z-index: 4000;
        box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
    }
    
    .chatbot-button i {
        font-size: 26px;
    }
    
    /* ✅ Badge de notificação */
    .chatbot-badge {
        top: -5px;
        right: -5px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
/* ✅ Tooltip do chatbot - AO LADO ESQUERDO DO ÍCONE */
.chatbot-tooltip {
    bottom: calc(70px + env(safe-area-inset-bottom) + 25px) !important; /* 15px -> 25px (10px mais alto) */
    right: 90px !important; /* 85px -> 90px (ajuste pela nova posição do botão) */
    left: auto !important;
    max-width: calc(100vw - 110px);
    font-size: 12px;
    z-index: 4000;
    white-space: normal;
}

.chatbot-tooltip::after {
    left: auto !important;
    right: -8px !important;
    border-left-color: var(--charcoal) !important;
    border-right-color: transparent !important;
}

/* ✅ ESCONDER tooltip quando chatbot aberto */
body.chatbot-open .chatbot-tooltip {
    display: none !important;
}
    
.chatbot-container {
        position: fixed !important;
        width: 100% !important;
        height: calc(100vh - 70px - env(safe-area-inset-bottom)) !important;
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        top: auto !important;
        right: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-top: 2px solid var(--primary-gold) !important;
        max-width: 100vw;
        max-height: calc(100vh - 110px - env(safe-area-inset-bottom)) !important;
        z-index: 3999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
        overflow: hidden !important;
    }
    
    /* ✅ FLEXBOX SÓ QUANDO ATIVO */
    .chatbot-container.active {
        display: flex !important;
        flex-direction: column !important;
    }
    
    
    /* ✅ Mensagens - FLEX GROW */
.chatbot-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    padding: 15px;
    border-radius: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: var(--deep-black);
    margin: 0 !important;
    -webkit-overflow-scrolling: touch;
}
/* ✅ Ajuste extra para mobile - mais espaço embaixo das mensagens */
.chatbot-messages {
    padding-bottom: 20px !important;
}
   /* ✅ Input Area - FIXO NO FINAL */
.chatbot-input-area {
    padding: 12px 15px !important;
    padding-bottom: 12px !important;
    border-radius: 0 !important;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    flex-shrink: 0 !important;
    background: var(--charcoal);
    margin: 0 !important;
}
    /* ============================================
   EFEITO CURSOR DIGITANDO
============================================ */


@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Desabilitar input enquanto bot digita */
.chatbot-input:disabled,
.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* ============================================
   DIV INFORMATIVA EMBAIXO DO INPUT
============================================ */
.chatbot-footer-info {
    background: var(--deep-black);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-medium);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
/* ✅ Footer info no mobile */
@media (max-width: 768px) {
    .chatbot-footer-info {
        padding: 8px 15px;
        font-size: 10px;
        border-top: 1px solid var(--primary-gold);
    }
    
    .chatbot-footer-info i {
        font-size: 12px;
    }
}
.chatbot-footer-info i {
    color: var(--primary-gold);
    font-size: 13px;
    animation: robotPulse 2s infinite;
}

@keyframes robotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}
    .chatbot-input {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 25px;
        height: 40px;
    }
    
    /* ✅ Botões de ação */
    .chatbot-send-btn,
    .chatbot-attachment-btn {
        width: 45px;
        height: 45px;
    }
    
    .chatbot-container.minimized {
        height: 60px !important;
        bottom: calc(70px + env(safe-area-inset-bottom)) !important;
        width: 100% !important;
        border-top: 2px solid var(--primary-gold) !important;
        border-bottom: none !important;
        z-index: 3999;
        top: auto !important;
    }
    
    .chatbot-container.minimized .chatbot-header {
        padding: 10px 20px !important;
    }
    
    .chatbot-container.minimized .chatbot-messages,
    .chatbot-container.minimized .chatbot-input-area,
    .chatbot-container.minimized .chatbot-footer-info, /* ✅ ADICIONE ESTA LINHA */
    .chatbot-container.minimized .chatbot-options-menu {
        display: none !important;
    }
    
    /* ✅ Cards menores */
    .quick-reply-card {
        min-width: 95px;
        height: 95px;
        border-radius: 12px;
    }
    
    .quick-reply-card-icon {
        font-size: 28px;
    }
    
    .quick-reply-card-title {
        font-size: 11px;
    }
    
    /* ✅ Botão "Ver Opções" */
    .back-button-wrapper .quick-reply-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* ✅ Mensagens compactas */
    .chatbot-message-content {
        max-width: 85%;
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .chatbot-message-time {
        font-size: 10px;
    }
    
    /* ✅ Avatar menor */
    .chatbot-message-avatar {
        width: 35px;
        height: 35px;
    }
    
    .chatbot-message-avatar img {
        width: 35px;
        height: 35px;
    }
    
    /* ✅ MENU DE OPÇÕES - ESTILO DESKTOP COMPACTO */
.chatbot-options-menu {
    position: absolute !important;
    bottom: 80px !important;
    right: 15px !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 250px !important;
    background: var(--charcoal) !important;
    border: 1px solid var(--primary-gold) !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    z-index: 10 !important;
}

.chatbot-option-item {
    padding: 12px 18px !important;
    font-size: 14px !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.chatbot-option-item:hover {
    background: var(--muted-gold) !important;
    color: var(--primary-gold) !important;
}

.chatbot-option-item i {
    width: 18px !important;
}
    
    /* ✅ Bloquear scroll quando aberto */
    body.chatbot-open:not(.chatbot-minimized) {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100vh !important;
    }
}
/* ============================================
   BLOCO: DIV INFORMATIVA EMBAIXO DO INPUT
============================================ */
.chatbot-footer-info {
    background: var(--deep-black);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

/* Efeito de fundo sutil */
.chatbot-footer-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(201, 169, 97, 0.03) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

.chatbot-footer-info i {
    color: var(--primary-gold);
    font-size: 14px;
    position: relative;
    z-index: 1;
    animation: shieldPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(201, 169, 97, 0.5));
}

.chatbot-footer-info span {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        var(--primary-gold) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

/* Animações */
@keyframes shieldPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ============================================
   RESPONSIVO MOBILE
============================================ */
@media (max-width: 768px) {
    .chatbot-footer-info {
        padding: 10px 15px;
        font-size: 10px;
        letter-spacing: 0.8px;
        border-top: 2px solid rgba(201, 169, 97, 0.3);
    }
    
    .chatbot-footer-info i {
        font-size: 12px;
    }
    
    .chatbot-footer-info span {
        font-size: 10px;
    }
}

/* Esconder quando minimizado */
.chatbot-container.minimized .chatbot-footer-info {
    display: none !important;
}
/* ============================================
   ANIMAÇÃO TYPEWRITER - BALÃO CRESCE COM TEXTO
============================================ */
.typewriter-text {
    display: inline-block;
    min-width: 20px;
    min-height: 1em;
    animation: balloonGrow 0.3s ease-out;
}

/* Cursor piscante durante digitação */
.typewriter-text:not(.typing-complete)::after {
    content: '|';
    color: var(--primary-gold);
    animation: cursorBlink 0.8s infinite;
    font-weight: bold;
    margin-left: 2px;
}

/* Remove cursor após terminar */
.typewriter-text.typing-complete::after {
    content: '';
    animation: none;
}

/* Animação de crescimento do balão */
@keyframes balloonGrow {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animação do cursor */
@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Balão do bot tem largura automática */
.chatbot-message.bot .chatbot-message-content p {
    width: fit-content;
    max-width: 100%;
    min-width: 100px;
    word-wrap: break-word;
}
/* ============================================
   FIM DO ARQUIVO
============================================ */