/* ==========================================================================
   ATH STUDENT ASSISTANT CHATBOT — BULLETPROOF BLUE DESIGN SYSTEM
   ========================================================================== */

#athChatbotWidget,
#athChatbotWidget * {
    box-sizing: border-box !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
}

.ath-chatbot-widget-container {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 2147483647 !important;
    line-height: 1.5 !important;
}

#athChatbotWidget .ath-hidden,
#athChatWindow.ath-hidden,
.ath-chat-window.ath-hidden,
.ath-typing-indicator.ath-hidden,
.ath-launcher-bubble.ath-hidden,
.ath-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* ==========================================================================
   1. FLOATING DOCK (WHATSAPP + 3D ROBOT LAUNCHER)
   ========================================================================== */
.ath-floating-dock {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* FLOATING WHATSAPP PILL BUTTON */
.ath-floating-wa-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #25D366 !important;
    color: #ffffff !important;
    padding: 9px 16px 9px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 20px -4px rgba(37, 211, 102, 0.45), 0 0 0 1px rgba(255,255,255,0.2) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    user-select: none !important;
    outline: none !important;
}

.ath-floating-wa-btn:hover {
    background: #20ba59 !important;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 12px 25px -4px rgba(37, 211, 102, 0.6) !important;
}

.ath-wa-icon-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ath-wa-btn-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
}

/* 3D ROBOT LAUNCHER BUTTON */
.ath-chat-launcher {
    position: relative !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    user-select: none !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ath-chat-launcher:hover {
    transform: scale(1.08) translateY(-4px) !important;
}

.ath-launcher-robot-wrap {
    width: 72px !important;
    height: 72px !important;
    position: relative !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 70%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: athRobotIdle 4s ease-in-out infinite !important;
    filter: drop-shadow(0 10px 18px rgba(37, 99, 235, 0.45)) !important;
}

.ath-launcher-robot-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.15) !important;
    transition: transform 0.3s ease !important;
    border: none !important;
}

.ath-chat-launcher:hover .ath-launcher-robot-img {
    transform: scale(1.25) rotate(-4deg) !important;
}

/* UNREAD NOTIFICATION BADGE (ROYAL BLUE WITH GLOW) */
.ath-unread-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 22px !important;
    height: 22px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.6) !important;
    animation: athBadgePop 0.5s ease !important;
}

/* FLOATING SPEECH PROMPT BUBBLE */
.ath-launcher-bubble {
    position: absolute !important;
    right: 84px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #0f172a !important;
    color: #f8fafc !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    padding: 10px 16px 10px 14px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.5), 0 0 15px -3px rgba(37, 99, 235, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    animation: athBubbleSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto !important;
}

.ath-launcher-bubble::after {
    content: '' !important;
    position: absolute !important;
    right: -7px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-top: 6px solid transparent !important;
    border-bottom: 6px solid transparent !important;
    border-left: 7px solid #0f172a !important;
}

.ath-bubble-pulse-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #38bdf8 !important;
    animation: athPulseGlow 2s infinite !important;
    flex-shrink: 0 !important;
}

.ath-bubble-close {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    padding: 0 2px !important;
    line-height: 1 !important;
    margin-left: 4px !important;
    border-radius: 4px !important;
}

.ath-bubble-close:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.15) !important;
}

/* ==========================================================================
   2. CHAT WINDOW DIALOG (CLEAN ROYAL BLUE GLASS)
   ========================================================================== */
.ath-chat-window {
    position: fixed !important;
    bottom: 96px !important;
    right: 24px !important;
    width: 400px !important;
    max-width: calc(100vw - 32px) !important;
    height: 600px !important;
    max-height: calc(100vh - 120px) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.4), 0 0 25px rgba(37, 99, 235, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: athWindowOpen 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 2147483647 !important;
}

/* HEADER BAR */
.ath-chat-header {
    background: linear-gradient(135deg, #0a1128 0%, #1e3a8a 50%, #0a1128 100%) !important;
    color: #ffffff !important;
    padding: 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.ath-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.ath-header-avatar-wrap {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, rgba(15, 23, 42, 0.7) 70%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(147, 197, 253, 0.4) !important;
}

.ath-header-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.1) !important;
    border: none !important;
}

.ath-avatar-online-dot {
    display: none !important;
}

.ath-header-name {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
}

.ath-header-status {
    display: none !important;
}

.ath-status-indicator {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    display: inline-block !important;
}

.ath-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ath-head-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    outline: none !important;
    padding: 0 !important;
}

.ath-head-btn svg {
    width: 15px !important;
    height: 15px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.ath-head-btn:hover {
    background: rgba(37, 99, 235, 0.5) !important;
    border-color: rgba(147, 197, 253, 0.6) !important;
    color: #ffffff !important;
}

.ath-wa-btn {
    color: #25d366 !important;
    border-color: rgba(37, 211, 102, 0.3) !important;
}
.ath-wa-btn:hover {
    background: rgba(37, 211, 102, 0.2) !important;
}

.ath-close-btn:hover {
    background: rgba(37, 99, 235, 0.8) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. MESSAGES CONTAINER
   ========================================================================== */
.ath-chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #f8fafc !important;
    scroll-behavior: smooth !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.ath-chat-messages::-webkit-scrollbar {
    width: 5px !important;
}
.ath-chat-messages::-webkit-scrollbar-thumb {
    background: #93c5fd !important;
    border-radius: 10px !important;
}

/* MESSAGE ROWS */
.ath-msg-row {
    display: flex !important;
    gap: 10px !important;
    max-width: 96% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    animation: athMsgFadeIn 0.3s ease !important;
}

.ath-msg-bot {
    align-self: flex-start !important;
}

.ath-msg-user {
    align-self: flex-end !important;
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
}

.ath-msg-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    border: 1px solid #93c5fd !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.ath-msg-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border: none !important;
}

.ath-msg-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-width: calc(100% - 42px) !important;
    box-sizing: border-box !important;
}

/* BUBBLE STYLING (PURE ROYAL BLUE USER & CRISP WHITE BOT) */
.ath-bubble {
    padding: 12px 14px !important;
    border-radius: 16px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    position: relative !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.ath-bubble-bot {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    border-top-left-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.05) !important;
}

.ath-bubble-bot p {
    margin: 0 0 8px 0 !important;
    color: #0f172a !important;
}
.ath-bubble-bot p:last-child {
    margin-bottom: 0 !important;
}

.ath-bubble-bot strong {
    color: #1e3a8a !important;
    font-weight: 800 !important;
}

.ath-bubble-bot a {
    color: #2563eb !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

.ath-bubble-user {
    background: #2563eb !important;
    color: #ffffff !important;
    border-top-right-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
}

.ath-bubble-user p {
    margin: 0 !important;
    color: #ffffff !important;
}

.ath-msg-time {
    font-size: 10px !important;
    color: #64748b !important;
    align-self: flex-start !important;
}

.ath-msg-user .ath-msg-time {
    align-self: flex-end !important;
}

/* HIDE FLOATING LAUNCHER WHEN CHAT WINDOW IS OPEN */
.ath-chatbot-widget-container.is-open .ath-floating-dock,
.ath-chatbot-widget-container.is-open #athChatLauncher,
.ath-chatbot-widget-container.is-open #athLauncherBubble,
.ath-chatbot-widget-container.is-open #athUnreadBadge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   4. SECTION NAVIGATION & ACTION CHIPS
   ========================================================================== */
.ath-section-header-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 2px 0 10px 0 !important;
    border-bottom: 1px dashed #cbd5e1 !important;
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ath-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    text-decoration: none !important;
}

.ath-back-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateX(-2px) !important;
}

.ath-back-btn-full {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px !important;
    border-radius: 10px !important;
}

.ath-section-badge {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.ath-chips-container {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 14px !important;
    padding: 12px 10px !important;
    margin-top: 4px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
}

.ath-chips-label {
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 8px !important;
}

.ath-chips-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* CHIP BUTTONS: FULL WIDTH CENTERED CLEAN ROWS */
#athChatbotWidget button.ath-chip,
.ath-chip {
    background: #f0f7ff !important;
    color: #1e3a8a !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    outline: none !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
}

#athChatbotWidget button.ath-chip:hover,
.ath-chip:hover,
#athChatbotWidget button.ath-chip:focus,
.ath-chip:focus,
#athChatbotWidget button.ath-chip:active,
.ath-chip:active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3) !important;
    outline: none !important;
}

/* WHATSAPP ACTION CHIP */
#athChatbotWidget button.ath-wa-chip,
.ath-wa-chip {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

#athChatbotWidget button.ath-wa-chip:hover,
.ath-wa-chip:hover,
#athChatbotWidget button.ath-wa-chip:focus,
.ath-wa-chip:focus {
    background: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
}

#athChatbotWidget button.ath-wa-chip:hover svg,
.ath-wa-chip:hover svg,
#athChatbotWidget button.ath-wa-chip:focus svg,
.ath-wa-chip:focus svg {
    fill: #ffffff !important;
}

/* COURSE & BATCH CARDS INSIDE CHAT */
.ath-chat-card {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin-top: 8px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
}

.ath-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 6px !important;
}

.ath-card-tag {
    font-size: 10px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: #dbeafe !important;
    color: #1e40af !important;
}

.ath-card-seats {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    background: #e0f2fe !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    border: 1px solid #bae6fd !important;
}

.ath-card-title {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

.ath-card-time {
    font-size: 11px !important;
    color: #475569 !important;
    margin: 0 0 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.ath-card-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 8px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.ath-card-action-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   5. INLINE LEAD / CALLBACK FORM (ROYAL BLUE BUTTON)
   ========================================================================== */
.ath-lead-form-box {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin-top: 6px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08) !important;
}

.ath-lead-form-title {
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.ath-form-label {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 3px !important;
    text-align: left !important;
}

#athChatbotWidget input.ath-lead-input,
.ath-lead-input,
#athChatbotWidget select.ath-lead-select,
.ath-lead-select {
    width: 100% !important;
    padding: 7px 9px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    margin-bottom: 7px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #0f172a !important;
    outline: none !important;
    font-family: inherit !important;
}

#athChatbotWidget select.ath-lead-select,
.ath-lead-select {
    cursor: pointer !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 14px 14px !important;
    appearance: none !important;
    padding-right: 28px !important;
}

#athChatbotWidget input.ath-lead-input:focus,
.ath-lead-input:focus,
#athChatbotWidget select.ath-lead-select:focus,
.ath-lead-select:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
    outline: none !important;
}

#athChatbotWidget button.ath-lead-submit-btn,
.ath-lead-submit-btn {
    width: 100% !important;
    padding: 10px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    outline: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

#athChatbotWidget button.ath-lead-submit-btn:hover,
.ath-lead-submit-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4) !important;
}

#athChatbotWidget button.ath-wa-submit-btn,
.ath-wa-submit-btn {
    background: #25D366 !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.35) !important;
}

#athChatbotWidget button.ath-wa-submit-btn:hover,
.ath-wa-submit-btn:hover {
    background: #1eb857 !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45) !important;
}

/* ==========================================================================
   6. TYPING INDICATOR
   ========================================================================== */
.ath-typing-indicator {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 16px !important;
    background: #f8fafc !important;
}

.ath-typing-avatar {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    overflow: hidden !important;
}

.ath-typing-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.ath-typing-dots {
    display: flex !important;
    gap: 4px !important;
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
}

.ath-typing-dots span {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #38bdf8 !important;
    animation: athTypingDot 1.2s infinite ease-in-out !important;
}

.ath-typing-dots span:nth-child(2) { animation-delay: 0.2s !important; }
.ath-typing-dots span:nth-child(3) { animation-delay: 0.4s !important; }

/* ==========================================================================
   7. INPUT TOOLBAR & COMPOSER (CLEAN BLUE BORDERS, NO INVALID REDS)
   ========================================================================== */
.ath-chat-input-area {
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
}

.ath-input-wrapper {
    display: flex !important;
    align-items: center !important;
    background: #f8fafc !important;
    border: 1px solid #93c5fd !important;
    border-radius: 12px !important;
    padding: 4px 6px 4px 14px !important;
    transition: all 0.2s !important;
}

.ath-input-wrapper:focus-within {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

#athChatbotWidget input#athChatInput,
.ath-input-wrapper input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 13px !important;
    color: #0f172a !important;
    outline: none !important;
    padding: 6px 0 !important;
    box-shadow: none !important;
}

#athChatbotWidget input#athChatInput:focus,
.ath-input-wrapper input:focus {
    outline: none !important;
    box-shadow: none !important;
}

#athChatbotWidget input#athChatInput:invalid,
.ath-input-wrapper input:invalid {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#athChatbotWidget button#athSendBtn,
.ath-send-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35) !important;
}

#athChatbotWidget button#athSendBtn:hover,
.ath-send-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: scale(1.06) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45) !important;
}

#athChatbotWidget button#athSendBtn:active,
.ath-send-btn:active {
    transform: scale(0.96) !important;
}

#athChatbotWidget button#athSendBtn svg,
.ath-send-btn svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: block !important;
    fill: #ffffff !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    transform: translate(1px, 0) !important;
}

.ath-input-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 6px !important;
    font-size: 10px !important;
    color: #64748b !important;
}

.ath-quick-call-link {
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   8. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes athRobotIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes athPulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.25); }
}

@keyframes athBadgePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes athBubbleSlideIn {
    from { opacity: 0; transform: translateY(-50%) translateX(15px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@keyframes athWindowOpen {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes athTypingDot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); background: #2563eb; }
}

/* ==========================================================================
   9. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 640px) {
    .ath-chatbot-widget-container {
        position: fixed !important;
        bottom: 16px !important;
        right: 16px !important;
        pointer-events: auto !important;
        z-index: 2147483647 !important;
    }

    .ath-chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        animation: none !important;
        transform: none !important;
        pointer-events: auto !important;
        z-index: 2147483647 !important;
    }

    .ath-launcher-robot-wrap {
        animation: none !important;
        filter: none !important;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
        will-change: auto !important;
    }

    .ath-chat-header {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        padding-top: calc(14px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: 12px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
        min-height: 56px !important;
        position: relative !important;
        z-index: 30 !important;
    }

    .ath-chat-messages {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 14px 12px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .ath-chat-input-area {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
        background: #ffffff !important;
        position: relative !important;
        z-index: 30 !important;
    }

    .ath-launcher-bubble {
        display: none !important;
    }

    .ath-msg-row {
        max-width: 100% !important;
    }

    .ath-msg-content {
        max-width: calc(100% - 38px) !important;
    }
}

/* FINAL BULLETPROOF DISPLAY NONE OVERRIDE */
#athChatbotWidget .ath-hidden,
#athChatWindow.ath-hidden,
.ath-chat-window.ath-hidden,
.ath-typing-indicator.ath-hidden,
.ath-launcher-bubble.ath-hidden,
.ath-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}
