/**
 * EQBOT Public Styles - Strict Isolation & Clean Minimalist White Studio Design
 * Developed by Nidawi Multimedia (https://www.nidawi.net) for EQ Radio (www.eqradio.net)
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --eqbot-primary: #0f172a;
    --eqbot-secondary: #0284c7;
    --eqbot-accent-pink: #ec4899;
    --eqbot-bg-main: #ffffff;
    --eqbot-card-bg: #ffffff;
    --eqbot-msg-bot-bg: #f8fafc;
    --eqbot-msg-user-bg: #0f172a;
    --eqbot-text-main: #0f172a;
    --eqbot-text-muted: #64748b;
    --eqbot-border-color: #e2e8f0;
    --eqbot-border-light: #f1f5f9;
    --eqbot-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.18), 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    --eqbot-radius: 16px;
    --eqbot-width: 410px;
    --eqbot-height: 640px;
    --eqbot-offset-x: 24px;
    --eqbot-offset-y: 24px;
    --eqbot-launcher-size: 56px;
    --eqbot-launcher-icon-size: 36px;
    --eqbot-launcher-font-size: 13px;
}

/* ==========================================================================
   STRICT CSS ISOLATION & RESET (Prevents WordPress Theme Style Leaks)
   ========================================================================== */
#eqbot-unified-root,
#eqbot-unified-root *,
.eqbot-wrapper,
.eqbot-wrapper * {
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
    word-break: break-word;
}

/* Universal Button Reset within EQBOT */
#eqbot-unified-root button,
.eqbot-wrapper button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 500 !important;
    color: inherit !important;
    line-height: normal !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto;
    height: auto;
    cursor: pointer !important;
}

/* Universal Link Reset within EQBOT */
#eqbot-unified-root a,
.eqbot-wrapper a {
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    transition: all 0.18s ease;
}

/* Universal Heading & Text Reset */
#eqbot-unified-root h1, #eqbot-unified-root h2, #eqbot-unified-root h3,
#eqbot-unified-root h4, #eqbot-unified-root h5, #eqbot-unified-root h6,
#eqbot-unified-root p, #eqbot-unified-root span, #eqbot-unified-root label,
.eqbot-wrapper h1, .eqbot-wrapper h2, .eqbot-wrapper h3,
.eqbot-wrapper h4, .eqbot-wrapper h5, .eqbot-wrapper h6,
.eqbot-wrapper p, .eqbot-wrapper span, .eqbot-wrapper label {
    margin: 0 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Custom Slim Scrollbars */
#eqbot-unified-root ::-webkit-scrollbar,
.eqbot-wrapper ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

#eqbot-unified-root ::-webkit-scrollbar-track,
.eqbot-wrapper ::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#eqbot-unified-root ::-webkit-scrollbar-thumb,
.eqbot-wrapper ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#eqbot-unified-root ::-webkit-scrollbar-thumb:hover,
.eqbot-wrapper ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   UNIFIED DOCK CONTAINER (ANCHORED TO RIGHT CORNER)
   ========================================================================== */
.eqbot-unified-widget {
    position: fixed !important;
    bottom: var(--eqbot-offset-y) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    pointer-events: none !important;
}

.eqbot-dock-right {
    right: var(--eqbot-offset-x) !important;
    left: auto !important;
    align-items: flex-end !important;
}

.eqbot-dock-left {
    left: var(--eqbot-offset-x) !important;
    right: auto !important;
    align-items: flex-start !important;
}

/* ==========================================================================
   UNIFIED LAUNCHER BUTTON & ANIMATIONS
   ========================================================================== */
.eqbot-unified-launcher {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Style: Pill (Modern White Capsule) */
.eqbot-launcher-pill-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 18px 8px 10px !important;
    border-radius: 50px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.eqbot-launcher-pill-btn img {
    width: var(--eqbot-launcher-icon-size, 36px) !important;
    height: var(--eqbot-launcher-icon-size, 36px) !important;
    min-width: var(--eqbot-launcher-icon-size, 36px) !important;
    border-radius: 50% !important;
    display: block !important;
    object-fit: cover !important;
}

.eqbot-launcher-pill-text {
    font-size: var(--eqbot-launcher-font-size, 13px) !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
}

/* Style: Circle */
.eqbot-launcher-btn {
    position: relative;
    width: var(--eqbot-launcher-size, 56px) !important;
    height: var(--eqbot-launcher-size, 56px) !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #e2e8f0 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.eqbot-launcher-btn img {
    width: var(--eqbot-launcher-icon-size, 36px) !important;
    height: var(--eqbot-launcher-icon-size, 36px) !important;
    border-radius: 50% !important;
    display: block !important;
    object-fit: cover !important;
}

.eqbot-launcher-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: eqbotBadgePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes eqbotBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   LAUNCHER BUTTON ANIMATIONS (Visible Fluid Motion)
   ========================================================================== */

/* Default / Fallback Animation when active */
#eqbot-unified-root .eqbot-unified-launcher:not(.eqbot-anim-none) .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher:not(.eqbot-anim-none) .eqbot-launcher-pill-btn,
#eqbot-global-launcher:not(.eqbot-anim-none) .eqbot-launcher-btn,
#eqbot-global-launcher:not(.eqbot-anim-none) .eqbot-launcher-pill-btn {
    animation: eqbotLauncherPulse 2.6s infinite ease-in-out !important;
}

/* 1. Pulse & Radar Wave with Levitating Movement */
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-pulse .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-pulse .eqbot-launcher-pill-btn,
#eqbot-global-launcher.eqbot-anim-pulse .eqbot-launcher-btn,
#eqbot-global-launcher.eqbot-anim-pulse .eqbot-launcher-pill-btn,
.eqbot-anim-pulse .eqbot-launcher-btn,
.eqbot-anim-pulse .eqbot-launcher-pill-btn {
    animation: eqbotLauncherPulse 2.6s infinite ease-in-out !important;
}

@keyframes eqbotLauncherPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(2, 132, 199, 0.5);
    }
    50% {
        transform: translateY(-6px) scale(1.04);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 0 12px rgba(2, 132, 199, 0);
    }
}

/* 2. Floating Levitating (Continuous Up & Down Motion) */
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-float .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-float .eqbot-launcher-pill-btn,
#eqbot-global-launcher.eqbot-anim-float .eqbot-launcher-btn,
#eqbot-global-launcher.eqbot-anim-float .eqbot-launcher-pill-btn,
.eqbot-anim-float .eqbot-launcher-btn,
.eqbot-anim-float .eqbot-launcher-pill-btn {
    animation: eqbotLauncherFloat 3s infinite ease-in-out !important;
}

@keyframes eqbotLauncherFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    50% {
        transform: translateY(-9px);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.20), 0 4px 12px rgba(0, 0, 0, 0.08);
    }
}

/* 3. Neon Glow (Radiant Light Halo with Movement) */
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-glow .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-glow .eqbot-launcher-pill-btn,
#eqbot-global-launcher.eqbot-anim-glow .eqbot-launcher-btn,
#eqbot-global-launcher.eqbot-anim-glow .eqbot-launcher-pill-btn,
.eqbot-anim-glow .eqbot-launcher-btn,
.eqbot-anim-glow .eqbot-launcher-pill-btn {
    animation: eqbotLauncherGlow 2.4s infinite alternate ease-in-out !important;
}

@keyframes eqbotLauncherGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 0 4px rgba(2, 132, 199, 0.2);
    }
    50% {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(2, 132, 199, 0.45), 0 0 20px rgba(2, 132, 199, 0.65);
    }
}

/* 4. Attention Shake / Wink */
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-attention .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-attention .eqbot-launcher-pill-btn,
#eqbot-global-launcher.eqbot-anim-attention .eqbot-launcher-btn,
#eqbot-global-launcher.eqbot-anim-attention .eqbot-launcher-pill-btn,
.eqbot-anim-attention .eqbot-launcher-btn,
.eqbot-anim-attention .eqbot-launcher-pill-btn {
    animation: eqbotLauncherAttention 4.5s infinite ease-in-out !important;
}

@keyframes eqbotLauncherAttention {
    0%, 75%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    80% {
        transform: scale(1.08) translateY(-6px) rotate(-4deg);
    }
    85% {
        transform: scale(1.08) translateY(-6px) rotate(4deg);
    }
    90% {
        transform: scale(1.04) translateY(-3px) rotate(-2deg);
    }
    95% {
        transform: scale(1.02) translateY(0) rotate(0deg);
    }
}

/* 5. Disable Animation when explicitly selected */
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-none .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher.eqbot-anim-none .eqbot-launcher-pill-btn,
#eqbot-global-launcher.eqbot-anim-none .eqbot-launcher-btn,
#eqbot-global-launcher.eqbot-anim-none .eqbot-launcher-pill-btn {
    animation: none !important;
}

/* Hover: Smooth Pause and Elevated Lift */
#eqbot-unified-root .eqbot-unified-launcher:hover .eqbot-launcher-btn,
#eqbot-unified-root .eqbot-unified-launcher:hover .eqbot-launcher-pill-btn,
#eqbot-global-launcher:hover .eqbot-launcher-btn,
#eqbot-global-launcher:hover .eqbot-launcher-pill-btn {
    animation-play-state: paused !important;
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20) !important;
    border-color: #cbd5e1 !important;
}

/* ==========================================================================
   PROACTIVE ROTATING TEASER BUBBLE
   ========================================================================== */
.eqbot-teaser-bubble {
    pointer-events: auto;
    position: relative;
    max-width: 310px;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 12px -2px rgba(15, 23, 42, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    padding: 12px 14px !important;
    margin-bottom: 6px !important;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease !important;
    animation: eqbotTeaserPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.eqbot-teaser-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22), 0 6px 14px -2px rgba(15, 23, 42, 0.10) !important;
}

@keyframes eqbotTeaserPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eqbot-teaser-bubble-inner {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    position: relative !important;
}

.eqbot-teaser-avatar {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.eqbot-teaser-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.eqbot-teaser-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.eqbot-teaser-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 3px !important;
}

.eqbot-teaser-author {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: 0.3px !important;
}

.eqbot-teaser-badge-live {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #059669 !important;
    background: #d1fae5 !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
    letter-spacing: 0.5px !important;
}

.eqbot-teaser-msg-container {
    min-height: 34px !important;
    display: flex !important;
    align-items: center !important;
}

.eqbot-teaser-text {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    color: #334155 !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
    display: inline-block !important;
}

.eqbot-teaser-close {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.eqbot-teaser-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Bubble Tail */
.eqbot-teaser-tail {
    position: absolute !important;
    bottom: -6px !important;
    width: 12px !important;
    height: 12px !important;
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transform: rotate(45deg) !important;
}

.eqbot-dock-right .eqbot-teaser-tail {
    right: 22px !important;
}

.eqbot-dock-left .eqbot-teaser-tail {
    left: 22px !important;
}

/* Tooltip / Teaser */
.eqbot-launcher-tooltip {
    position: absolute;
    bottom: 56px;
    background: #0f172a;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.eqbot-launcher-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.eqbot-unified-launcher:hover .eqbot-launcher-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==========================================================================
   MAIN CHAT CONTAINER (POPUPS ABOVE THE LAUNCHER)
   ========================================================================== */
/* ==========================================================================
   MAIN CHAT CONTAINER (POPUPS ABOVE THE LAUNCHER & INLINE MODE)
   ========================================================================== */
.eqbot-container {
    width: 390px !important;
    max-width: calc(100vw - 32px) !important;
    height: 580px !important;
    max-height: calc(100vh - 110px) !important;
    background: #ffffff !important;
    border-radius: var(--eqbot-radius) !important;
    box-shadow: var(--eqbot-shadow) !important;
    border: 1.5px solid var(--eqbot-border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    position: relative !important;
}

/* Specific Inline Mode Container Styling */
.eqbot-container.eqbot-mode-inline {
    width: 100% !important;
    max-width: 100% !important;
    height: 520px !important;
    max-height: 80vh !important;
    min-height: 420px !important;
    border-radius: 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;
    margin: 16px 0 !important;
    background: #ffffff !important;
}

.eqbot-container.eqbot-mode-popup {
    display: none !important;
    transform-origin: bottom right;
}

.eqbot-container.eqbot-mode-popup.eqbot-is-open {
    display: flex !important;
    animation: eqbot-popup-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes eqbot-popup-in {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.eqbot-card-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: #ffffff !important;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.eqbot-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-shrink: 0 !important;
    min-height: 58px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-header {
    background: #0f172a !important;
    border-bottom: none !important;
}

.eqbot-header-left,
.eqbot-header > div:first-child {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.eqbot-avatar-wrap,
.eqbot-header-avatar {
    position: relative !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
}

.eqbot-header-avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    border: 1.5px solid #e2e8f0 !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-header-avatar img {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.eqbot-status-indicator,
.eqbot-status-dot {
    position: absolute !important;
    bottom: -1px !important;
    right: -1px !important;
    width: 10px !important;
    height: 10px !important;
    background: #10b981 !important;
    border: 2px solid #ffffff !important;
    border-radius: 50% !important;
}

.eqbot-header-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.eqbot-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-title {
    color: #ffffff !important;
}

.eqbot-subtitle {
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-subtitle {
    color: #94a3b8 !important;
}

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

#eqbot-unified-root .eqbot-header-btn,
#eqbot-unified-root .eqbot-btn-icon,
.eqbot-wrapper .eqbot-header-btn,
.eqbot-wrapper .eqbot-btn-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-btn-icon {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

#eqbot-unified-root .eqbot-header-btn:hover,
#eqbot-unified-root .eqbot-btn-icon:hover,
.eqbot-wrapper .eqbot-header-btn:hover,
.eqbot-wrapper .eqbot-btn-icon:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

.eqbot-container.eqbot-mode-inline .eqbot-btn-icon:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

#eqbot-unified-root .eqbot-header-btn svg,
#eqbot-unified-root .eqbot-btn-icon svg,
.eqbot-wrapper .eqbot-header-btn svg,
.eqbot-wrapper .eqbot-btn-icon svg {
    stroke: currentColor;
    display: block;
}

/* ==========================================================================
   CHAT BODY & MESSAGE STREAM (SCROLLABLE AREA)
   ========================================================================== */
.eqbot-messages-body,
.eqbot-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
    background: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.eqbot-message {
    display: flex !important;
    gap: 10px !important;
    max-width: 94% !important;
    animation: eqbot-msg-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes eqbot-msg-in {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.eqbot-message.eqbot-msg-bot,
.eqbot-message.eqbot-message-bot {
    align-self: flex-start !important;
}

.eqbot-message.eqbot-msg-user,
.eqbot-message.eqbot-message-user {
    align-self: flex-end !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    max-width: 85% !important;
}

.eqbot-message.eqbot-msg-user .eqbot-msg-content,
.eqbot-message.eqbot-message-user .eqbot-msg-content {
    align-items: flex-end !important;
    max-width: 100% !important;
}

.eqbot-msg-avatar {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: block !important;
}

.eqbot-msg-avatar img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: block !important;
    border: 1px solid #e2e8f0 !important;
}

.eqbot-msg-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-width: calc(100% - 40px) !important;
}

.eqbot-msg-bubble {
    padding: 12px 15px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
    position: relative !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
}

.eqbot-msg-bot .eqbot-msg-bubble,
.eqbot-message-bot .eqbot-msg-bubble {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #e2e8f0 !important;
    border-top-left-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.eqbot-msg-user .eqbot-msg-bubble,
.eqbot-message-user .eqbot-msg-bubble {
    background: #0f172a !important;
    color: #ffffff !important;
    border-radius: 14px 14px 4px 14px !important;
    text-align: left !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

.eqbot-msg-bubble strong {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.eqbot-msg-user .eqbot-msg-bubble strong,
.eqbot-message-user .eqbot-msg-bubble strong {
    color: #ffffff !important;
}

.eqbot-msg-bubble p {
    margin: 0 0 6px 0 !important;
}

.eqbot-msg-bubble p:last-child {
    margin-bottom: 0 !important;
}

.eqbot-msg-bubble a {
    color: #0284c7 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.eqbot-msg-bubble a:hover {
    color: #0369a1 !important;
}

/* Action Tiles in Welcome Message */
.eqbot-actions-group,
.eqbot-action-tiles {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    margin-top: 8px !important;
    width: 100% !important;
}

#eqbot-unified-root .eqbot-action-btn,
.eqbot-wrapper .eqbot-action-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 6px !important;
    padding: 8px 8px !important;
    border-radius: 9px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    line-height: 1.25 !important;
    min-height: 36px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

#eqbot-unified-root .eqbot-action-btn:hover,
.eqbot-wrapper .eqbot-action-btn:hover {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}

#eqbot-unified-root .eqbot-action-highlight,
.eqbot-wrapper .eqbot-action-highlight {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

#eqbot-unified-root .eqbot-action-highlight:hover,
.eqbot-wrapper .eqbot-action-highlight:hover {
    background: #1e293b !important;
    border-color: #1e293b !important;
}

#eqbot-unified-root .eqbot-action-btn.eqbot-action-full,
.eqbot-wrapper .eqbot-action-btn.eqbot-action-full {
    grid-column: span 2 !important;
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

#eqbot-unified-root .eqbot-action-btn.eqbot-action-full:hover,
.eqbot-wrapper .eqbot-action-btn.eqbot-action-full:hover {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

/* WhatsApp En Vivo Action Button */
#eqbot-unified-root .eqbot-action-wa-live,
.eqbot-wrapper .eqbot-action-wa-live {
    background: #25d366 !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.22) !important;
    grid-column: span 2 !important;
}

#eqbot-unified-root .eqbot-action-wa-live:hover,
.eqbot-wrapper .eqbot-action-wa-live:hover {
    background: #1eb855 !important;
    border-color: #1eb855 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35) !important;
}

#eqbot-unified-root .eqbot-pill-wa,
.eqbot-wrapper .eqbot-pill-wa {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #15803d !important;
    font-weight: 700 !important;
}

#eqbot-unified-root .eqbot-pill-wa:hover,
.eqbot-wrapper .eqbot-pill-wa:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
}

/* Pulsing Red Dot for Live Matches & Streaming Events */
.eqbot-live-pulse-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #ef4444 !important;
    border-radius: 50% !important;
    margin-right: 5px !important;
    flex-shrink: 0 !important;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.6) !important;
    animation: eqbotPulse 1.8s infinite !important;
}

@keyframes eqbotPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: scale(0.95);
    }
}

/* Live Match / Event Broadcast Action Button */
#eqbot-unified-root .eqbot-action-live-match,
.eqbot-wrapper .eqbot-action-live-match {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1.5px solid #334155 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    grid-column: span 2 !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.20) !important;
}

#eqbot-unified-root .eqbot-action-live-match:hover,
.eqbot-wrapper .eqbot-action-live-match:hover {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.30) !important;
}

/* Live Match Pill */
#eqbot-unified-root .eqbot-pill-live-match,
.eqbot-wrapper .eqbot-pill-live-match {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
}

#eqbot-unified-root .eqbot-pill-live-match:hover,
.eqbot-wrapper .eqbot-pill-live-match:hover {
    background: #ef4444 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* Social Media Action Button & Pills */
#eqbot-unified-root .eqbot-action-social,
.eqbot-wrapper .eqbot-action-social {
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%) !important;
    border: 1.5px solid #e879f9 !important;
    color: #a21caf !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(192, 38, 211, 0.15) !important;
    grid-column: span 2 !important;
}

#eqbot-unified-root .eqbot-action-social:hover,
.eqbot-wrapper .eqbot-action-social:hover {
    background: linear-gradient(135deg, #c026d3 0%, #9333ea 100%) !important;
    border-color: #c026d3 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(192, 38, 211, 0.35) !important;
}

#eqbot-unified-root .eqbot-pill-social,
.eqbot-wrapper .eqbot-pill-social {
    background: #fdf4ff !important;
    border-color: #f0abfc !important;
    color: #a21caf !important;
    font-weight: 700 !important;
}

#eqbot-unified-root .eqbot-pill-social:hover,
.eqbot-wrapper .eqbot-pill-social:hover {
    background: #c026d3 !important;
    border-color: #c026d3 !important;
    color: #ffffff !important;
}

#eqbot-unified-root .eqbot-pill-instagram,
.eqbot-wrapper .eqbot-pill-instagram {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    font-weight: 700 !important;
}

#eqbot-unified-root .eqbot-pill-instagram:hover,
.eqbot-wrapper .eqbot-pill-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

/* Social Media Modal List & Cards (Clean 100% Fitted List - Zero Overflow) */
.eqbot-social-modal .eqbot-modal-content {
    max-height: 94% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px 16px !important;
}

.eqbot-social-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-top: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.eqbot-social-card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 9px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 11px !important;
    text-decoration: none !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden !important;
}

.eqbot-social-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.eqbot-social-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
}

.eqbot-social-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.eqbot-social-info strong {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.eqbot-social-info span {
    font-size: 11px !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.eqbot-social-arrow {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    padding: 3px 8px !important;
    background: #f1f5f9 !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

.eqbot-social-card:hover .eqbot-social-arrow {
    color: #0284c7 !important;
    background: #e0f2fe !important;
    border-color: #bae6fd !important;
    transform: translate(1px, -1px) !important;
}

.eqbot-social-card.eqbot-social-ig:hover {
    border-color: #f43f5e !important;
    background: #fff1f2 !important;
}
.eqbot-social-card.eqbot-social-tt:hover {
    border-color: #0f172a !important;
    background: #f8fafc !important;
}
.eqbot-social-card.eqbot-social-yt:hover {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}
.eqbot-social-card.eqbot-social-tw:hover {
    border-color: #a855f7 !important;
    background: #faf5ff !important;
}
.eqbot-social-card.eqbot-social-fb:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
}
.eqbot-social-card.eqbot-social-iv:hover {
    border-color: #f97316 !important;
    background: #fff7ed !important;
}
.eqbot-social-card.eqbot-social-x:hover {
    border-color: #0f172a !important;
    background: #f8fafc !important;
}
.eqbot-social-card.eqbot-social-sp:hover {
    border-color: #22c55e !important;
    background: #f0fdf4 !important;
}
.eqbot-social-card.eqbot-social-web:hover {
    border-color: #0284c7 !important;
    background: #f0f9ff !important;
}

/* In-text Links & Quick Access Pill Badges */
#eqbot-unified-root a.eqbot-link,
.eqbot-wrapper a.eqbot-link {
    color: #0284c7 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
}

#eqbot-unified-root a.eqbot-link:hover,
.eqbot-wrapper a.eqbot-link:hover {
    color: #0369a1 !important;
}

#eqbot-unified-root a.eqbot-quick-link,
.eqbot-wrapper a.eqbot-quick-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0369a1 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin: 3px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.18s ease !important;
}

#eqbot-unified-root a.eqbot-quick-link:hover,
.eqbot-wrapper a.eqbot-quick-link:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(2, 132, 199, 0.15) !important;
}

/* ==========================================================================
   QUICK NAVIGATION PILLS (CAROUSEL)
   ========================================================================== */
.eqbot-quick-queries {
    padding: 8px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.eqbot-pills-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.eqbot-pills-scroll::-webkit-scrollbar {
    display: none;
}

#eqbot-unified-root .eqbot-pill-btn,
.eqbot-wrapper .eqbot-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    gap: 5px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    flex-shrink: 0 !important;
}

#eqbot-unified-root .eqbot-pill-btn:hover,
.eqbot-wrapper .eqbot-pill-btn:hover {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

/* Typing Indicator */
.eqbot-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    width: fit-content;
    margin: 0 16px 8px 16px;
}

.eqbot-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: eqbot-bounce 1.3s infinite ease-in-out;
}

.eqbot-dot:nth-child(2) { animation-delay: 0.15s; }
.eqbot-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes eqbot-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}

/* ==========================================================================
   INPUT FOOTER
   ========================================================================== */
.eqbot-footer {
    padding: 10px 14px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.eqbot-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 28px;
    padding: 4px 6px 4px 14px;
    transition: all 0.2s ease;
}

.eqbot-chat-form:focus-within {
    border-color: #0f172a;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

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

.eqbot-input-field::placeholder {
    color: #94a3b8;
}

#eqbot-unified-root .eqbot-send-btn,
.eqbot-wrapper .eqbot-send-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #0f172a !important;
    border: none !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.18s ease !important;
    flex-shrink: 0 !important;
}

#eqbot-unified-root .eqbot-send-btn:hover,
.eqbot-wrapper .eqbot-send-btn:hover {
    background: #1e293b !important;
    transform: scale(1.05) !important;
}

#eqbot-unified-root .eqbot-send-btn svg,
.eqbot-wrapper .eqbot-send-btn svg {
    display: block;
    stroke: #ffffff;
}

/* ==========================================================================
   MODAL WINDOWS (CLEAN, PROPORTIONAL & PERFECTLY FITTED TO ZERO SCROLL)
   ========================================================================== */
.eqbot-modal-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    z-index: 50;
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eqbot-fade-in 0.18s ease;
}

@keyframes eqbot-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.eqbot-modal-content {
    background: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 14px !important;
    width: 100% !important;
    max-height: 100% !important;
    overflow-y: auto !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.28) !important;
    border: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.eqbot-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 6px !important;
}

.eqbot-modal-header h4 {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

#eqbot-unified-root .eqbot-modal-close,
.eqbot-wrapper .eqbot-modal-close {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    transition: all 0.15s ease !important;
}

#eqbot-unified-root .eqbot-modal-close:hover,
.eqbot-wrapper .eqbot-modal-close:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

.eqbot-modal-desc {
    font-size: 10.5px !important;
    color: #64748b !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

/* Forms inside Modals */
.eqbot-form-row {
    display: flex !important;
    gap: 7px !important;
}

.eqbot-form-row .eqbot-form-group {
    flex: 1 !important;
}

.eqbot-form-group {
    margin-bottom: 5px !important;
}

.eqbot-form-group label {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    color: #334155 !important;
    line-height: 1.15 !important;
}

.eqbot-form-group input,
.eqbot-form-group select,
.eqbot-form-group textarea {
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 5px 8px !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.25 !important;
    box-sizing: border-box !important;
    height: 30px !important;
}

.eqbot-form-group textarea {
    height: 42px !important;
    min-height: 42px !important;
    resize: none !important;
}

.eqbot-form-group input:focus,
.eqbot-form-group select:focus,
.eqbot-form-group textarea:focus {
    background: #ffffff !important;
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06) !important;
}

#eqbot-unified-root .eqbot-btn-submit-action,
.eqbot-wrapper .eqbot-btn-submit-action {
    width: 100% !important;
    background: #0f172a !important;
    border: none !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-top: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
}

#eqbot-unified-root .eqbot-btn-submit-action:hover,
.eqbot-wrapper .eqbot-btn-submit-action:hover {
    background: #1e293b !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   GRILLA & STREAMING MODAL STYLES (CLEAN, AIRY & MODERN)
   ========================================================================== */
.eqbot-grilla-modal-content {
    max-height: 94% !important;
    padding: 14px 15px !important;
}

/* Streams Switcher Bar */
.eqbot-grilla-streams-bar {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#eqbot-unified-root .eqbot-stream-pill,
.eqbot-wrapper .eqbot-stream-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 5px 4px !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    text-align: center !important;
    white-space: nowrap !important;
}

#eqbot-unified-root .eqbot-stream-pill:hover,
.eqbot-wrapper .eqbot-stream-pill:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
}

#eqbot-unified-root .eqbot-stream-pill.eqbot-stream-yt:hover,
.eqbot-wrapper .eqbot-stream-pill.eqbot-stream-yt:hover {
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

#eqbot-unified-root .eqbot-stream-pill.eqbot-stream-tw:hover,
.eqbot-wrapper .eqbot-stream-pill.eqbot-stream-tw:hover {
    border-color: #d8b4fe !important;
    color: #7e22ce !important;
}

/* Day Tabs Segmented Bar */
.eqbot-day-tabs {
    display: flex !important;
    gap: 3px !important;
    overflow-x: auto !important;
    padding: 3px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    scrollbar-width: none !important;
}

.eqbot-day-tabs::-webkit-scrollbar {
    display: none !important;
}

#eqbot-unified-root .eqbot-day-tab,
.eqbot-wrapper .eqbot-day-tab {
    flex: 1 0 auto !important;
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    padding: 5px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.18s ease !important;
    text-align: center !important;
}

#eqbot-unified-root .eqbot-day-tab:hover,
.eqbot-wrapper .eqbot-day-tab:hover {
    background: #edf2f7 !important;
    color: #0f172a !important;
}

#eqbot-unified-root .eqbot-day-tab.active,
.eqbot-wrapper .eqbot-day-tab.active {
    background: #0f172a !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Program Cards Container */
.eqbot-grilla-panels {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 2px;
}

.eqbot-program-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
}

.eqbot-program-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Available Slots Special Card */
.eqbot-program-card.eqbot-card-available {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

.eqbot-prog-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
}

.eqbot-prog-time {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0284c7 !important;
}

.eqbot-prog-genre {
    font-size: 10px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.eqbot-badge-free {
    font-size: 10px !important;
    background: #dcfce7 !important;
    color: #166534 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
}

.eqbot-prog-title {
    margin: 0 0 2px 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.eqbot-prog-desc {
    margin: 0 0 7px 0 !important;
    font-size: 11px !important;
    line-height: 1.38 !important;
    color: #64748b !important;
}

.eqbot-prog-actions {
    display: flex !important;
    gap: 5px !important;
}

#eqbot-unified-root .eqbot-btn-mini,
.eqbot-wrapper .eqbot-btn-mini {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.18s ease !important;
}

#eqbot-unified-root .eqbot-btn-mini:hover,
.eqbot-wrapper .eqbot-btn-mini:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

#eqbot-unified-root .eqbot-btn-mini-primary,
.eqbot-wrapper .eqbot-btn-mini-primary {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

#eqbot-unified-root .eqbot-btn-mini-primary:hover,
.eqbot-wrapper .eqbot-btn-mini-primary:hover {
    background: #1e293b !important;
    color: #ffffff !important;
}

/* Dedicated Claim Slot Button (Compact, Elegant, Non-Squished) */
#eqbot-unified-root .eqbot-btn-claim-slot,
.eqbot-wrapper .eqbot-btn-claim-slot {
    width: 100% !important;
    background: #0284c7 !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    transition: all 0.18s ease !important;
    box-shadow: 0 1px 3px rgba(2, 132, 199, 0.25) !important;
}

#eqbot-unified-root .eqbot-btn-claim-slot:hover,
.eqbot-wrapper .eqbot-btn-claim-slot:hover {
    background: #0369a1 !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   ADVANCED MOBILE & RESPONSIVE DESIGN (PROLIJO, CONSERVADO & CLEAN)
   ========================================================================== */

/* Tablets and small desktops */
@media (max-width: 768px) {
    .eqbot-container {
        max-height: calc(100vh - 80px) !important;
    }

    .eqbot-teaser-bubble {
        max-width: min(320px, calc(100vw - 32px)) !important;
    }
}

/* Standard Mobile Devices */
@media (max-width: 640px) {
    body.eqbot-mobile-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none;
    }

    /* Fixed Clean Widget Placement (Elevated on mobile to clear sticky radio players) */
    .eqbot-unified-widget {
        bottom: max(80px, calc(env(safe-area-inset-bottom, 0px) + 70px)) !important;
        right: 16px !important;
        left: auto !important;
        width: auto !important;
        gap: 8px !important;
    }

    .eqbot-dock-left {
        left: 16px !important;
        right: auto !important;
    }

    /* Inline Chat Mode on Mobile: Perfectly Centered & Contained */
    .eqbot-container.eqbot-mode-inline {
        width: 100% !important;
        max-width: 100% !important;
        height: 480px !important;
        max-height: calc(100dvh - 120px) !important;
        min-height: 380px !important;
        margin: 14px auto !important;
        border-radius: 16px !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.10) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* True Fullscreen Modal Overlay on Mobile for Popup Mode */
    html.eqbot-mobile-open,
    body.eqbot-mobile-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        touch-action: none !important;
    }

    .eqbot-popup-unified-container {
        position: static;
    }

    body.eqbot-mobile-open .eqbot-popup-unified-container,
    .eqbot-unified-widget:has(.eqbot-is-open) .eqbot-popup-unified-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        background: #ffffff !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        z-index: 99999999 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .eqbot-container.eqbot-mode-popup.eqbot-is-open {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        z-index: 99999999 !important;
        margin: 0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        animation: eqbot-popup-mobile-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }

    @keyframes eqbot-popup-mobile-in {
        0% {
            opacity: 0;
            transform: translateY(14px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .eqbot-container.eqbot-mode-popup .eqbot-card-wrapper {
        border-radius: 0 !important;
        border: none !important;
        height: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    /* Hide launcher & teaser completely when chat is open on mobile */
    body.eqbot-mobile-open .eqbot-unified-launcher,
    body.eqbot-mobile-open .eqbot-teaser-bubble,
    .eqbot-unified-widget:has(.eqbot-is-open) .eqbot-unified-launcher,
    .eqbot-unified-widget:has(.eqbot-is-open) .eqbot-teaser-bubble,
    #eqbot-unified-root:has(.eqbot-is-open) #eqbot-global-launcher,
    #eqbot-unified-root:has(.eqbot-is-open) #eqbot-teaser-bubble {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* Fullscreen Mobile Header with Safe Area */
    .eqbot-header {
        position: relative !important;
        z-index: 10 !important;
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        padding: 10px 14px !important;
        padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
        min-height: 54px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .eqbot-header-avatar,
    .eqbot-header-avatar img {
        width: 36px !important;
        height: 36px !important;
    }

    .eqbot-title {
        font-size: 14px !important;
        font-weight: 700 !important;
    }

    .eqbot-subtitle {
        font-size: 11px !important;
    }

    #eqbot-unified-root .eqbot-header-actions,
    .eqbot-wrapper .eqbot-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #eqbot-unified-root .eqbot-btn-icon,
    .eqbot-wrapper .eqbot-btn-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        color: #0f172a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    #eqbot-unified-root .eqbot-btn-close,
    .eqbot-wrapper .eqbot-btn-close {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #0f172a !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.15s ease !important;
    }

    #eqbot-unified-root .eqbot-btn-close:active,
    .eqbot-wrapper .eqbot-btn-close:active {
        background: #0f172a !important;
        color: #ffffff !important;
        border-color: #0f172a !important;
    }

    /* Messages Stream on Mobile */
    .eqbot-messages-body,
    .eqbot-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding: 12px 14px 14px 14px !important;
        background: #f8fafc !important;
        gap: 10px !important;
    }

    .eqbot-message {
        max-width: 95% !important;
        gap: 6px !important;
    }

    .eqbot-message.eqbot-msg-user,
    .eqbot-message.eqbot-message-user {
        max-width: 88% !important;
    }

    .eqbot-msg-avatar,
    .eqbot-msg-avatar img {
        width: 28px !important;
        height: 28px !important;
    }

    .eqbot-msg-content {
        max-width: calc(100% - 34px) !important;
        gap: 4px !important;
    }

    .eqbot-msg-bubble {
        padding: 11px 13px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    /* Action Tiles inside Message on Mobile */
    .eqbot-actions-group,
    .eqbot-action-tiles {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
        margin-top: 8px !important;
    }

    #eqbot-unified-root .eqbot-action-btn,
    .eqbot-wrapper .eqbot-action-btn {
        padding: 8px 6px !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        line-height: 1.25 !important;
        min-height: 36px !important;
        gap: 4px !important;
    }

    #eqbot-unified-root .eqbot-action-btn.eqbot-action-full,
    .eqbot-wrapper .eqbot-action-btn.eqbot-action-full {
        grid-column: span 2 !important;
        padding: 9px 8px !important;
    }

    #eqbot-unified-root .eqbot-action-wa-live,
    .eqbot-wrapper .eqbot-action-wa-live {
        grid-column: span 2 !important;
        background: #25d366 !important;
        border-color: #22c55e !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        padding: 9px 8px !important;
    }

    /* Quick Queries Bar on Mobile */
    .eqbot-quick-queries {
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 6px 12px !important;
    }

    .eqbot-pills-scroll {
        gap: 6px !important;
    }

    #eqbot-unified-root .eqbot-pill-btn,
    .eqbot-wrapper .eqbot-pill-btn {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 16px !important;
    }

    /* Input Footer on Mobile */
    .eqbot-footer {
        flex-shrink: 0 !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        padding: 8px 12px !important;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 8px)) !important;
    }

    .eqbot-chat-form {
        padding: 3px 5px 3px 12px !important;
        border-radius: 24px !important;
        gap: 6px !important;
        min-height: 40px !important;
    }

    /* 16px prevents iOS Safari / Android Chrome automatic zoom on input focus! */
    .eqbot-input-field {
        font-size: 16px !important;
        padding: 6px 0 !important;
    }

    #eqbot-unified-root .eqbot-send-btn,
    .eqbot-wrapper .eqbot-send-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    /* Floating Launcher on Mobile (when closed) */
    .eqbot-unified-launcher {
        margin: 0 !important;
    }

    .eqbot-launcher-pill-btn {
        padding: 6px 14px 6px 8px !important;
        border-radius: 40px !important;
        gap: 8px !important;
        max-width: calc(100vw - 32px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    }

    .eqbot-launcher-pill-btn img {
        width: min(var(--eqbot-launcher-icon-size, 32px), 48px) !important;
        height: min(var(--eqbot-launcher-icon-size, 32px), 48px) !important;
        min-width: min(var(--eqbot-launcher-icon-size, 32px), 48px) !important;
    }

    .eqbot-launcher-pill-text {
        font-size: min(var(--eqbot-launcher-font-size, 13px), 15px) !important;
        font-weight: 700 !important;
    }

    .eqbot-launcher-btn {
        width: min(var(--eqbot-launcher-size, 54px), 68px) !important;
        height: min(var(--eqbot-launcher-size, 54px), 68px) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    }

    .eqbot-launcher-btn img {
        width: min(var(--eqbot-launcher-icon-size, 34px), 48px) !important;
        height: min(var(--eqbot-launcher-icon-size, 34px), 48px) !important;
    }

    .eqbot-teaser-bubble {
        max-width: min(300px, calc(100vw - 32px)) !important;
        padding: 9px 12px !important;
        margin-bottom: 6px !important;
        border-radius: 14px !important;
    }
}

/* Extra Small Screens (<= 375px) */
@media (max-width: 375px) {
    #eqbot-unified-root .eqbot-action-btn,
    .eqbot-wrapper .eqbot-action-btn {
        font-size: 10.5px !important;
        padding: 7px 4px !important;
        gap: 3px !important;
    }

    .eqbot-launcher-pill-text {
        font-size: 11px !important;
    }
}
