/* ============================================
   CHATBOT ASSISTENTE VIRTUAL - GUILHERME CARL
   Organizado por Blocos Principais
   ============================================ */

/* ============================================
   BLOCO 1: VARIÁVEIS E CORES PRINCIPAIS
   ============================================ */
:root {
    --primary-orange: #ff8c42;
    --primary-orange-dark: #ff7a1f;
    --primary-orange-light: #ffaa6b;
    --primary-black: #000000;
    --deep-black: #000000;
    --charcoal: #0a0a0a;
    --dark-bg: #1a1a1a;
    --soft-white: #ffffff;
    --gray-medium: #888888;
    --gray-light: #cccccc;
    --gradient-orange: linear-gradient(135deg, #ff8c42 0%, #ff7a1f 50%, #ff6b1f 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --shadow-orange: rgba(255, 140, 66, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
}

/* ============================================
   BLOCO 2: BOTÃO FLUTUANTE
   Design moderno com glassmorphism e sombras suaves
   ============================================ */
.chatbot-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 500;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 !important;
    backdrop-filter: blur(10px);
}

.chatbot-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #ff8c42, #ff6b1f, #ff8c42);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.chatbot-button:hover::before {
    opacity: 1;
}

.chatbot-button:hover {
    transform: scale(1.15) translateY(-5px) rotate(5deg) !important;
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.4), 
                0 0 0 1px rgba(255, 140, 66, 0.3) inset;
}

.chatbot-button i {
    font-size: 28px;
    color: #ffffff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.chatbot-button:hover i {
    transform: scale(1.1);
    color: var(--primary-orange);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4757 0%, #e74c3c 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 3px solid #0a0a0a;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    z-index: 2;
}

/* Animação sutil do gradiente */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
/* ============================================
   BLOCO 3: TOOLTIPS
   ============================================ */
.chatbot-tooltip {
    position: fixed;
    bottom: 120px; /* Mais alto ainda */
    right: 20px;
    background: var(--charcoal);
    color: var(--soft-white);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    z-index: 499;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--primary-orange);
    box-shadow: 0 5px 20px var(--shadow-orange);
}

/* Setinha do balão - apontando para BAIXO (pro botão do chat) */
.chatbot-tooltip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--charcoal);
}

/* Borda laranja da setinha */
.chatbot-tooltip::before {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 19px;
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 11px solid var(--primary-orange);
}

.chatbot-tooltip.show {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVO MOBILE - BALÃO EMBAIXO DO BOTÃO */
@media (max-width: 768px) {
    .chatbot-tooltip {
        bottom: 20px; /* Embaixo do botão */
        right: 80px; /* À esquerda do botão */
        font-size: 12px;
        padding: 10px 14px;
        max-width: 200px;
    }
    
    /* Setinha apontando para DIREITA (pro botão) no mobile */
    .chatbot-tooltip::after {
        bottom: auto;
        top: 50%;
        right: -10px;
        transform: translateY(-50%);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 10px solid var(--charcoal);
        border-right: none;
    }
    
    /* Borda laranja da setinha */
    .chatbot-tooltip::before {
        bottom: auto;
        top: 50%;
        right: -12px;
        transform: translateY(-50%);
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        border-left: 11px solid var(--primary-orange);
        border-right: none;
    }
}

/* ============================================
   BLOCO 4: CONTAINER PRINCIPAL
   ============================================ */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: var(--deep-black);
    border: none;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    box-shadow: none;
    z-index: 501;
    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 !important;
    overflow: hidden !important;
}

.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input-area,
.chatbot-container.minimized .chatbot-footer-info {
    display: none !important;
}

/* ============================================
   BLOCO 5: HEADER
   ============================================ */
.chatbot-header {
    border-bottom: 1px solid rgba(255, 140, 66, 0.15);
    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%;
    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-orange);
    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-orange);
    color: var(--primary-orange);
    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-orange);
    color: var(--deep-black);
    transform: scale(1.1);
}

/* ============================================
   BLOCO 6: Á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-orange);
    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-orange);
    object-fit: cover;
}

.chatbot-message.user .chatbot-message-avatar {
    background: var(--gradient-orange);
    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-content {
    max-width: 75%;
}

/* ============================================
   BLOCO 7: BALÕES DE MENSAGEM
   ============================================ */
.chatbot-message.bot .chatbot-message-content p {
    background: linear-gradient(135deg, rgba(255, 140, 66, 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-orange);
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.15);
}

.chatbot-message.bot .chatbot-message-content a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--primary-orange);
}

.chatbot-message.bot .chatbot-message-content a:hover {
    color: var(--primary-orange-light);
    text-shadow: 0 0 8px rgba(255, 140, 66, 0.5);
}

.chatbot-message.bot .chatbot-message-content strong {
    color: var(--primary-orange);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 140, 66, 0.3);
}

.chatbot-message.user .chatbot-message-content p {
    background: var(--gradient-orange);
    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(255, 140, 66, 0.15);
}

.chatbot-message-time {
    font-size: 11px;
    color: var(--gray-medium);
    display: block;
    margin-top: 3px;
}

/* ============================================
   BLOCO 8: ÁREA DE INPUT COMPLETA
   ============================================ */
.chatbot-input-area {
    background: var(--deep-black);
    border-top: 2px solid var(--primary-orange);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Botão de Menu (3 pontinhos) */
.chatbot-menu-trigger-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.chatbot-menu-trigger-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.chatbot-menu-trigger-btn:hover {
    background: var(--primary-orange);
    color: var(--deep-black);
    transform: scale(1.1);
}

.chatbot-menu-trigger-btn:active {
    transform: scale(0.95);
}

/* Campo de Input - Digite sua mensagem */
.chatbot-input {
    flex: 1;
    background: var(--charcoal);
    border: 1px solid rgba(255, 140, 66, 0.3);
    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;
    min-width: 0;
}

.chatbot-input::placeholder {
    color: var(--gray-medium);
    opacity: 0.7;
}

.chatbot-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
    background: rgba(26, 26, 26, 0.8);
}

.chatbot-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão de Enviar */
.chatbot-send-btn {
    width: 40px;
    height: 40px;
    background: var(--gradient-orange);
    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;
    transition: transform 0.3s ease;
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--shadow-orange);
}

.chatbot-send-btn:hover i {
    transform: translateX(2px);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
}

.chatbot-send-btn:disabled:hover {
    transform: scale(1);
    box-shadow: none;
}

/* ============================================
   BLOCO 9: MENU DE OPÇÕES (DROPDOWN)
   ============================================ */
.chatbot-menu-dropdown {
    position: absolute;
    bottom: 75px;
    right: 15px;
    background: var(--charcoal);
    border: 2px solid var(--primary-orange);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.chatbot-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbot-menu-item-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--soft-white);
    padding: 14px 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
}

.chatbot-menu-item-btn:hover {
    background: rgba(255, 140, 66, 0.15);
    color: var(--primary-orange);
}

.chatbot-menu-item-btn:active {
    transform: scale(0.98);
}

.chatbot-menu-item-btn i {
    width: 18px;
    font-size: 16px;
}

/* ============================================
   BLOCO 10: QUICK REPLIES - CARROSSEL
   ============================================ */
.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;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.quick-replies-carousel::-webkit-scrollbar {
    display: none;
}

.quick-reply-card {
    min-width: 110px;
    height: 110px;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.08) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 2px solid rgba(255, 140, 66, 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);
}

.quick-reply-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 140, 66, 0.4) 50%, transparent 70%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.quick-reply-card:hover::before {
    opacity: 1;
}

.quick-reply-card:hover {
    transform: translateY(-8px) scale(1.08);
    border-color: var(--primary-orange);
    box-shadow: 0 12px 35px rgba(255, 140, 66, 0.4), 0 0 25px rgba(255, 140, 66, 0.2);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.15) 0%, rgba(26, 26, 26, 0.98) 100%);
}

.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);
    filter: drop-shadow(0 0 15px var(--primary-orange));
}

.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(255, 140, 66, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ============================================
   BLOCO EXTRA: BOTÕES RÁPIDOS SEM BORDA
   ============================================ */
.quick-reply-card.whatsapp-card {
    border: none !important;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.quick-reply-card.whatsapp-card:hover {
    border: none !important;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.quick-reply-card.instagram-card {
    border: none !important;
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.quick-reply-card.instagram-card:hover {
    border: none !important;
    box-shadow: 0 12px 35px rgba(225, 48, 108, 0.4);
}

.quick-reply-card.linkedin-card {
    border: none !important;
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.quick-reply-card.linkedin-card:hover {
    border: none !important;
    box-shadow: 0 12px 35px rgba(0, 119, 181, 0.4);
}

/* ============================================
   BLOCO 11: BOTÃO VOLTAR
   ============================================ */
.back-button-wrapper {
    text-align: center;
    margin: 15px 0;
    padding: 0 20px;
    animation: fadeSlideUp 0.4s ease;
}

.quick-reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gradient-orange);
    color: var(--soft-white);
    border: 2px solid var(--primary-orange);
    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(255, 140, 66, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.quick-reply-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5);
}

.quick-reply-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.quick-reply-btn:hover i {
    transform: translateX(-3px);
}

/* ============================================
   BLOCO 12: FOOTER INFO
   ============================================ */
.chatbot-footer-info {
    background: var(--deep-black);
    border-top: 1px solid rgba(255, 140, 66, 0.15);
    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;
}

.chatbot-footer-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 140, 66, 0.03) 50%, transparent 100%);
    animation: shimmer 3s infinite;
}

.chatbot-footer-info i {
    color: var(--primary-orange);
    font-size: 14px;
    position: relative;
    z-index: 1;
    animation: shieldPulse 2s ease-in-out infinite;
}

.chatbot-footer-info span {
    position: relative;
    z-index: 1;
}

/* ============================================
   BLOCO 13: 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 fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes shieldPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ============================================
   BLOCO 14: BOTÕES DE LINKS RÁPIDOS
   ============================================ */
.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;
    margin-bottom: 5px;
    border: none;
}

.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;
}

/* ============================================
   BLOCO 15: ESTILOS ADICIONAIS PARA TYPEWRITER
   ============================================ */
.typewriter-text {
    display: inline-block;
    min-width: 20px;
    min-height: 1em;
    animation: balloonGrow 0.3s ease-out;
}

.typewriter-text:not(.typing-complete)::after {
    content: '|';
    color: var(--primary-orange);
    animation: cursorBlink 0.8s infinite;
    font-weight: bold;
    margin-left: 2px;
}

.typewriter-text.typing-complete::after {
    content: '';
    animation: none;
}

@keyframes balloonGrow {
    from {
        transform: scale(0.95);
        opacity: 0.8;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.chatbot-message.bot .chatbot-message-content p {
    width: fit-content;
    max-width: 100%;
    min-width: 100px;
    word-wrap: break-word;
}

/* ============================================
   BLOCO 16: RIPPLE EFFECT
   ============================================ */
.quick-reply-card .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   BLOCO 17: RESPONSIVO MOBILE
   ============================================ */
@media (max-width: 768px) {
    .chatbot-button {
        bottom: 20px !important;
        right: 20px !important;
        width: 60px;
        height: 60px;
    }
    
    .chatbot-button i {
        font-size: 26px;
    }
    
    .chatbot-tooltip {
        bottom: 25px !important;
        right: 90px !important;
        max-width: 200px;
        font-size: 12px;
        padding: 10px 14px;
    }
    
    body.chatbot-open .chatbot-tooltip {
        display: none !important;
    }
    
    .chatbot-container {
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        top: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        z-index: 9999;
        box-shadow: none;
    }
    
    .chatbot-container.active {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .chatbot-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        padding: 15px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .chatbot-input-area {
        padding: 12px 15px !important;
        flex-shrink: 0 !important;
    }
    
    .chatbot-footer-info {
        padding: 8px 15px;
        font-size: 10px;
    }
    
    .chatbot-container.minimized {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 999;
    }
    
    .chatbot-container.minimized .chatbot-header {
        min-height: 60px !important;
        padding: 10px 15px !important;
    }
    
    .chatbot-container.minimized .chatbot-header {
        padding: 10px 20px !important;
    }
    
    .quick-reply-card {
        min-width: 95px;
        height: 95px;
    }
    
    .quick-reply-card-icon {
        font-size: 28px;
    }
    
    .quick-reply-card-title {
        font-size: 11px;
    }
    
    /* Mobile - Chatbot Aberto e Maximizado */
body.chatbot-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
}

/* Mobile - Chatbot Minimizado (permite navegar) */
body.chatbot-minimized {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
}

/* Mobile - Permite clicar no header quando minimizado */
.chatbot-container.minimized .chatbot-header {
    cursor: pointer;
    position: relative;
    z-index: 9999;
}

.chatbot-container.minimized .chatbot-header:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}
    
    body.chatbot-open:not(.chatbot-minimized) {
        overflow: hidden !important;
    }
}
/* ============================================
   FIX: Links dos Apps - Clique E Arrasto
   ============================================ */
.quick-reply-card.whatsapp-card,
.quick-reply-card.instagram-card,
.quick-reply-card.linkedin-card {
    pointer-events: auto !important;
    cursor: pointer !important;
    user-select: none;
    text-decoration: none;
    display: flex;
}

/* Permite interação com o carrossel sobre os links */
.quick-reply-card.whatsapp-card *,
.quick-reply-card.instagram-card *,
.quick-reply-card.linkedin-card * {
    pointer-events: none; /* Apenas para elementos filhos, não para o card */
}

/* Cards normais (com data-message) */
.quick-reply-card[data-message] {
    pointer-events: auto;
    cursor: pointer;
}

/* Garante que o carrossel seja arrastável sobre qualquer card */
.quick-replies-carousel {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
}