/* ==========================================================================
   WHATSAPP WEB + OMNIROUTE DESIGN SYSTEM (DARK THEME)
   Fidelidade ao layout oficial do WhatsApp Web com a estética, tipografia,
   paleta de cores e badges inspirados na interface do OmniRoute.
   ========================================================================== */

:root,
[data-theme="dark"] {
    /* Cores Inspiradas no OmniRoute + WhatsApp Web Dark Oficial */
    --wa-bg-app: #0b0e14;
    --wa-bg-dock: #111622;
    --wa-bg-header: #111622;
    --wa-bg-sidebar: #111622;
    --wa-bg-chat: #0b0e14;
    --wa-bg-card: #161c28;
    --wa-bg-input-bar: #111622;
    --wa-bg-input: #161c28;
    --wa-bg-search: #111622;
    --wa-bg-search-input: #161c28;
    --wa-bg-hover: #151b27;
    --wa-bg-active: #182030;
    
    /* Balões Oficiais do WhatsApp Dark */
    --wa-bubble-out: #005c4b;
    --wa-bubble-in: #182030;
    --wa-bubble-out-text: #f1f5f9;
    --wa-bubble-in-text: #f1f5f9;
    --wa-meta-out: #8696a0;
    --wa-meta-in: #8696a0;
    
    /* Acentos & Badges Estilo OmniRoute */
    --wa-teal: #00a884;
    --wa-teal-light: #00e699;
    --wa-blue-tick: #53bdeb;
    --wa-icon-gray: #94a3b8;
    --wa-border: rgba(255, 255, 255, 0.1);
    --wa-border-subtle: rgba(255, 255, 255, 0.07);
    --wa-text-primary: #f1f5f9;
    --wa-text-secondary: #cbd5e1;
    --wa-text-muted: #94a3b8;
    --wa-badge-unread: #00a884;
    --wa-badge-red: #e11d48;
}

/* Accessibility Skip Link (WCAG - Oculto fora da tela, visível apenas no foco de navegação por teclado) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #00e699;
    color: #080c16 !important;
    padding: 8px 16px;
    z-index: 999999;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skip-link:focus {
    top: 0 !important;
    outline: 2px solid #fff;
}

[data-theme="light"] {
    /* Cores Oficiais do WhatsApp Web Light */
    --wa-bg-app: #f0f2f5;
    --wa-bg-dock: #f0f2f5;
    --wa-bg-header: #f0f2f5;
    --wa-bg-sidebar: #ffffff;
    --wa-bg-chat: #efeae2;
    --wa-bg-card: #ffffff;
    --wa-bg-input-bar: #f0f2f5;
    --wa-bg-input: #ffffff;
    --wa-bg-search: #ffffff;
    --wa-bg-search-input: #f0f2f5;
    --wa-bg-hover: #f5f6f6;
    --wa-bg-active: #ebebeb;
    
    /* Balões Oficiais do WhatsApp Light */
    --wa-bubble-out: #d9fdd3;
    --wa-bubble-in: #ffffff;
    --wa-bubble-out-text: #111b21;
    --wa-bubble-in-text: #111b21;
    --wa-meta-out: #667781;
    --wa-meta-in: #667781;
    
    --wa-teal: #00a884;
    --wa-teal-light: #008069;
    --wa-blue-tick: #53bdeb;
    --wa-icon-gray: #54656f;
    --wa-border: rgba(0, 0, 0, 0.1);
    --wa-border-subtle: rgba(0, 0, 0, 0.07);
    --wa-text-primary: #111b21;
    --wa-text-secondary: #334155;
    --wa-text-muted: #64748b;
    --wa-badge-unread: #25d366;
    --wa-badge-red: #ea4335;
}

/* ══════════════════════════════════════════════════════════════════════════
   ESTILOS COMPLETOS DO TEMA CLARO OFICIAL (WHATSAPP WEB LIGHT)
   ══════════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    color-scheme: light;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .wa-dock {
    background: #f0f2f5;
    border-right-color: #d1d7db;
}

[data-theme="light"] .wa-dock-btn {
    color: #54656f;
}

[data-theme="light"] .wa-dock-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111b21;
}

[data-theme="light"] .wa-dock-btn.active {
    background: rgba(0, 168, 132, 0.15);
    color: #008069;
}

[data-theme="light"] .wa-header-chats,
[data-theme="light"] .wa-active-header {
    background: #f0f2f5;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-sidebar-chats {
    background: #ffffff;
    border-right-color: #e9edef;
}

[data-theme="light"] .wa-search-bar-wrap {
    background: #ffffff;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-search-box {
    background: #f0f2f5;
    border-color: transparent;
}

[data-theme="light"] .wa-search-input {
    color: #111b21;
}

[data-theme="light"] .wa-search-input::placeholder {
    color: #8696a0;
}

[data-theme="light"] .wa-filter-pills {
    background: #ffffff;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-pill {
    background: #f0f2f5;
    color: #54656f;
    border: none;
    border-radius: 9999px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 14px;
}

[data-theme="light"] .wa-pill:hover {
    background: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-pill.active {
    background: #d9fdd3;
    color: #008069;
    border: none;
    font-weight: 600;
    box-shadow: none;
}

[data-theme="light"] .wa-pill.active .wa-pill-dot {
    background: #008069;
}

[data-theme="light"] .wa-count-pill {
    background: rgba(0, 0, 0, 0.06);
    color: #54656f;
    border-radius: 9999px;
    padding: 2px 7px;
    font-size: 11px;
}

[data-theme="light"] .wa-pill.active .wa-count-pill {
    background: #c3f7b8;
    color: #008069;
}

[data-theme="light"] .wa-chat-item-row {
    background: #ffffff;
    border-bottom-color: #f0f2f5;
}

[data-theme="light"] .wa-chat-item-row:hover {
    background: #f5f6f6;
}

[data-theme="light"] .wa-chat-item-row.active {
    background: #ebebeb;
}

[data-theme="light"] .wa-contact-name {
    color: #111b21;
}

[data-theme="light"] .wa-contact-lastmsg {
    color: #667781;
}

[data-theme="light"] .wa-contact-lastmsg.unread {
    color: #111b21;
    font-weight: 600;
}

[data-theme="light"] .wa-contact-time {
    color: #667781;
}

[data-theme="light"] .wa-contact-avatar {
    background: #e9edef;
    color: #008069;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-user-avatar {
    background: #e9edef;
    color: #54656f;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .wa-input-bar {
    background: #f0f2f5;
    border-top-color: #e9edef;
}

[data-theme="light"] .wa-input-field {
    background: #ffffff;
    border-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-input-field::placeholder {
    color: #8696a0;
}

[data-theme="light"] .wa-quick-bar {
    background: #f0f2f5;
    border-top-color: #e9edef;
}

[data-theme="light"] .wa-quick-chip {
    background: #ffffff;
    color: #111b21;
    border-color: #d1d7db;
}

[data-theme="light"] .wa-quick-chip:hover {
    background: #e9edef;
}

[data-theme="light"] .wa-signature-toggle-chip {
    background: #ffffff;
    color: #54656f;
    border-color: #d1d7db;
}

[data-theme="light"] .wa-signature-toggle-chip.active {
    background: #e7fce3;
    color: #008069;
    border-color: #00a884;
}

[data-theme="light"] .wa-labels-popover,
[data-theme="light"] .wa-modal-box,
[data-theme="light"] .wa-chat-context-menu,
[data-theme="light"] .wa-export-dropdown,
[data-theme="light"] .copilot-live-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #111b21;
}

[data-theme="light"] .wa-labels-popover-header,
[data-theme="light"] .wa-modal-header,
[data-theme="light"] .copilot-live-header {
    background: #f0f2f5;
    border-bottom-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-contact-info-drawer,
[data-theme="light"] .wa-sidebar-slide {
    background: #ffffff;
    border-left-color: #e9edef;
    border-right-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-drawer-header,
[data-theme="light"] .wa-slide-header {
    background: #f0f2f5;
    border-bottom-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-drawer-section {
    background: #ffffff;
    border-bottom-color: #f0f2f5;
}

[data-theme="light"] .wa-drawer-card {
    background: #f0f2f5;
    border-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-form-input,
[data-theme="light"] .wa-new-label-input {
    background: #ffffff;
    border-color: #d1d7db;
    color: #111b21;
}

[data-theme="light"] .wa-form-input:focus,
[data-theme="light"] .wa-new-label-input:focus {
    border-color: #00a884;
}

[data-theme="light"] .wa-kanban-topbar {
    background: #f0f2f5;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-kanban-column {
    background: #f0f2f5;
    border-color: #e9edef;
}

[data-theme="light"] .wa-kanban-column-header {
    background: #f0f2f5;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-kanban-card {
    background: #ffffff;
    border-color: #e9edef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    color: #111b21;
}

[data-theme="light"] .wa-kanban-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .wa-kanban-card-name {
    color: #111b21;
}

[data-theme="light"] .wa-kanban-card-phone,
[data-theme="light"] .wa-kanban-card-msg {
    color: #667781;
}

[data-theme="light"] .wa-kanban-metric-card {
    background: #ffffff;
    border-color: #e9edef;
    color: #111b21;
}

[data-theme="light"] .wa-kanban-metric-card .metric-val {
    color: #111b21;
}

[data-theme="light"] .wa-sticker-drawer {
    background: #f0f2f5;
    border-top-color: #e9edef;
}

[data-theme="light"] .wa-media-tabs-bar {
    background: #ffffff;
    border-bottom-color: #e9edef;
}

[data-theme="light"] .wa-sticker-search-input {
    background: #ffffff;
    border-color: #d1d7db;
    color: #111b21;
}

[data-theme="light"] .wa-ai-live-toolbar {
    background: #f0f2f5;
    border-top-color: #e9edef;
}

[data-theme="light"] .wa-ai-pill {
    background: #ffffff;
    border-color: #d1d7db;
    color: #111b21;
}

[data-theme="light"] .wa-ai-pill:hover {
    background: #e9edef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.wa-studio-body {
    height: 100vh;
    width: 100vw;
    background-color: var(--wa-bg-app);
    color: var(--wa-text-primary);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    display: flex;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* ══════════════════════════════════════════════════════════════════════════
   0. SKELETON LOADING (Shimmer Effect)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-chat-skeleton {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: wa-skel-pulse 1.5s ease-in-out infinite;
}

.wa-skel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: wa-skel-shimmer 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

.wa-skel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-skel-line {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: wa-skel-shimmer 1.8s ease-in-out infinite;
}

.wa-skel-line.short { width: 40%; }
.wa-skel-line.long { width: 70%; }

.wa-msg-skeleton {
    display: flex;
    margin-bottom: 8px;
    animation: wa-skel-pulse 1.5s ease-in-out infinite;
}

.wa-msg-skeleton.customer { justify-content: flex-start; }
.wa-msg-skeleton.me { justify-content: flex-end; }

.wa-skel-bubble {
    max-width: 65%;
    padding: 8px 12px;
    border-radius: 7.5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: wa-skel-shimmer 1.8s ease-in-out infinite;
}

@keyframes wa-skel-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes wa-skel-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ══════════════════════════════════════════════════════════════════════════
   1. DOCK VERTICAL DE NAVEGAÇÃO RÁPIDA (EXTREMA ESQUERDA - 60px)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-dock {
    width: 60px;
    height: 100vh;
    background: var(--wa-bg-dock);
    border-right: 1px solid var(--wa-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    flex-shrink: 0;
    z-index: 100;
}

.wa-dock-brand {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00a884, #008769);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.35);
    margin-bottom: 16px;
    transition: transform 0.15s ease;
}

.wa-dock-brand:hover {
    transform: scale(1.05);
}

.wa-dock-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.wa-dock-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--wa-icon-gray);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-dock-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--wa-text-primary);
}

.wa-dock-btn.active {
    background: rgba(0, 168, 132, 0.16);
    color: var(--wa-teal-light);
}

.wa-dock-btn.active::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--wa-teal-light);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(0, 230, 153, 0.6);
}

.wa-dock-btn .wa-dock-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #25D366;
    color: #111b21;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Inter', system-ui, sans-serif;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

.wa-dock-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

/* Botão Explícito de Deslogar no Dock */
.wa-dock-btn.wa-dock-btn-logout {
    color: #ef4444;
}
.wa-dock-btn.wa-dock-btn-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    transform: scale(1.08);
}

/* Avatar e Indicador de Usuário Conectado */
.wa-dock-user-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-dock-user-wrap:hover {
    transform: scale(1.08);
}
.wa-dock-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a884 0%, #008069 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.wa-dock-user-avatar.large {
    width: 44px;
    height: 44px;
    font-size: 16px;
    flex-shrink: 0;
}
.wa-dock-user-status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--wa-bg-dock);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* Popover de Detalhes da Conta e Sessão */
.wa-user-popover {
    position: fixed;
    bottom: 18px;
    left: 68px;
    width: 280px;
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px;
    z-index: 10000;
    font-family: inherit;
    animation: waPopoverFadeIn 0.18s ease-out forwards;
}
@keyframes waPopoverFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.wa-user-popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}
.wa-user-popover-info {
    flex: 1;
    min-width: 0;
}
.wa-user-popover-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--wa-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wa-user-popover-email {
    font-size: 11px;
    color: var(--wa-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}
.wa-user-popover-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 20px;
    padding: 2px 7px;
    margin-top: 4px;
}
.wa-user-popover-divider {
    height: 1px;
    background: var(--wa-border);
    margin: 4px 0 8px 0;
}
.wa-user-popover-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wa-user-popover-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--wa-text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, color 0.15s ease;
}
.wa-user-popover-btn:hover {
    background: var(--wa-bg-hover);
    color: var(--wa-teal-light);
}
.wa-user-popover-btn.danger {
    color: #ef4444;
}
.wa-user-popover-btn.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. ÁREA PRINCIPAL DO WHATSAPP (SPLIT VIEW AUTÊNTICO)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-main-container {
    flex: 1;
    height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
    background: var(--wa-bg-chat);
}

#waConnectedState {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ──────────────── LISTA LATERAL DE CHATS (380px) ──────────────── */
.wa-sidebar-chats {
    width: 380px;
    height: 100vh;
    background: var(--wa-bg-sidebar);
    border-right: 1px solid var(--wa-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative !important;
    overflow: hidden !important;
}

/* Header da lista de chats */
.wa-header-chats {
    height: 60px;
    background: var(--wa-bg-header);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wa-border);
}

.wa-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1e2637;
    color: var(--wa-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wa-icon-gray);
    font-size: 16px;
}

.wa-header-icon-btn {
    background: transparent;
    border: none;
    color: var(--wa-icon-gray);
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.wa-header-icon-btn:hover {
    color: var(--wa-text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Barra de Pesquisa Estilo OmniRoute */
.wa-search-bar-wrap {
    padding: 10px 14px;
    background: var(--wa-bg-sidebar);
    border-bottom: 1px solid var(--wa-border-subtle);
}

.wa-search-box {
    display: flex;
    align-items: center;
    background: var(--wa-bg-search-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    gap: 10px;
    transition: border-color 0.15s ease;
}

.wa-search-box:focus-within {
    border-color: rgba(0, 168, 132, 0.6);
}

.wa-search-box i {
    color: var(--wa-text-muted);
    font-size: 13px;
}

.wa-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--wa-text-primary);
    font-size: 13px;
    width: 100%;
    font-family: inherit;
}

.wa-search-input::placeholder {
    color: var(--wa-text-muted);
}

.wa-search-kbd {
    display: flex;
    gap: 2px;
    align-items: center;
}

.wa-search-kbd kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 10px;
    font-family: monospace;
    color: var(--wa-text-muted);
}

/* Filtros em Pílulas Estilo OmniRoute */
.wa-filter-pills {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: var(--wa-bg-sidebar);
    border-bottom: 1px solid var(--wa-border);
    overflow-x: auto;
}

.wa-pill {
    background: #202c33;
    color: #8696a0;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wa-pill:hover {
    background: #182229;
    color: #e9edef;
}

.wa-pill.active {
    background: #0a332c;
    color: #00a884;
    border: none;
    font-weight: 600;
    box-shadow: none;
}

/* Pontos coloridos dos filtros (Status Dots) */
.wa-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-all { background: #e11d48; }
.dot-unread { background: #f59e0b; }
.dot-groups { background: #38bdf8; }
.dot-direct { background: #10b981; }

.wa-pill.active .wa-pill-dot {
    background: #fff;
}

.wa-count-pill {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    padding: 0 5px;
    font-size: 10.5px;
    font-weight: 700;
}

.wa-pill.active .wa-count-pill {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Feed de Conversas */
.wa-chats-feed {
    flex: 1;
    overflow-y: auto;
}

/* Item de Conversa na Lista */
.wa-chat-item-row {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
    position: relative;
}

.wa-chat-item-row:hover {
    background: var(--wa-bg-hover);
}

.wa-chat-item-row.active {
    background: var(--wa-bg-active);
}

.wa-chat-item-row.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--wa-teal-light);
    border-radius: 0 3px 3px 0;
}

.wa-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.wa-contact-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--wa-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-contact-time {
    font-size: 11px;
    color: var(--wa-text-muted);
    flex-shrink: 0;
    font-weight: 500;
}

.wa-contact-lastmsg {
    font-size: 12px;
    color: var(--wa-text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    max-width: none;
    font-weight: 400;
}

.wa-contact-lastmsg.unread {
    color: #f1f5f9;
    font-weight: 700;
}

.wa-unread-badge {
    background: var(--wa-teal);
    color: #080c16;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    padding: 1px 6px;
    flex-shrink: 0;
}

.wa-group-tag {
    font-size: 9.5px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 6px;
}

/* ──────────────── ÁREA DA CONVERSA ABERTA (DIREITA) ──────────────── */
.wa-conversation-view {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--wa-bg-chat);
    position: relative;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. TELA DE BOAS-VINDAS (EMPTY STATE WHATSAPP + OMNIROUTE)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-empty-welcome {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    background: #f0f2f5;
    border-bottom: 6px solid #25d366;
    position: relative;
}

[data-theme="dark"] .wa-empty-welcome {
    background: #222e35;
    border-bottom: 6px solid #00a884;
}

[data-theme="light"] .wa-empty-welcome {
    background: #f0f2f5;
    border-bottom: 6px solid #25d366;
}

.wa-empty-welcome-content {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.wa-welcome-hero-art {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.wa-welcome-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 132, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.wa-welcome-icon-box {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #25d366;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .wa-welcome-icon-box {
    background: #111b21;
    color: #00a884;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.wa-welcome-title {
    font-size: 32px;
    font-weight: 300;
    color: #41525d;
    letter-spacing: normal;
    margin: 12px 0 4px 0;
}

[data-theme="dark"] .wa-welcome-title {
    color: #e9edef;
}

.wa-welcome-subtitle {
    font-size: 14px;
    color: #667781;
    line-height: 20px;
    max-width: 460px;
}

[data-theme="dark"] .wa-welcome-subtitle {
    color: #8696a0;
}

.wa-welcome-badges-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 6px;
}

.wa-badge-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
}

.wa-badge-pill.green {
    background: #d9fdd3;
    border: none;
    color: #008069;
}

[data-theme="dark"] .wa-badge-pill.green {
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
}

.wa-badge-pill.purple {
    background: #f0f2f5;
    border: 1px solid #d1d7db;
    color: #54656f;
}

[data-theme="dark"] .wa-badge-pill.purple {
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.28);
    color: #c084fc;
}

.wa-status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #008069;
    margin-right: 6px;
}

.wa-welcome-lock {
    margin-top: 24px;
    font-size: 11.5px;
    color: var(--wa-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   4. CONVERSA ATIVA (TIMELINE & BALÕES)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-active-header {
    height: 60px;
    background: var(--wa-bg-header);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--wa-border);
    z-index: 10;
    min-width: 0;
    width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    gap: 10px;
}

.wa-active-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.wa-active-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--wa-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.wa-active-status {
    font-size: 11.5px;
    color: var(--wa-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-active-header .wa-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.wa-active-header .wa-header-icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   4.1 CONTROLE DO ROBÔ / BOT STATUS CHIP & DROPDOWN (WHATSAPP HEADER)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-bot-status-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    user-select: none;
}

.wa-bot-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    height: 32px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    outline: none;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Modo Ativo (Verde WhatsApp) */
.wa-bot-status-chip.active {
    background: rgba(0, 168, 132, 0.16);
    color: #00e699;
    border-color: rgba(0, 168, 132, 0.35);
}
.wa-bot-status-chip.active:hover {
    background: rgba(0, 168, 132, 0.26);
    border-color: #00a884;
}
.wa-bot-status-chip.active .wa-bot-status-dot {
    background: #00e699;
    box-shadow: 0 0 8px rgba(0, 230, 153, 0.6);
}

/* Modo Copilot (Azul Tecnológico) */
.wa-bot-status-chip.copilot {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}
.wa-bot-status-chip.copilot:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}
.wa-bot-status-chip.copilot .wa-bot-status-dot {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

/* Modo Pausado (Âmbar / Laranja) */
.wa-bot-status-chip.paused {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.45);
    animation: wa-pulse-border 2s infinite;
}
.wa-bot-status-chip.paused:hover {
    background: rgba(245, 158, 11, 0.28);
    border-color: #f59e0b;
}
.wa-bot-status-chip.paused .wa-bot-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* Modo Desativado / 100% Humano (Vermelho / Cinza) */
.wa-bot-status-chip.disabled {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}
.wa-bot-status-chip.disabled .wa-bot-status-dot {
    background: #ef4444;
}

.wa-bot-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wa-bot-chevron {
    font-size: 11px;
    opacity: 0.9;
    transition: transform 0.2s ease;
    margin-left: 6px;
}
.wa-bot-status-chip:hover .wa-bot-chevron {
    opacity: 1;
}

/* Dropdown Flutuante */
.wa-bot-pause-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #1f2c34;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(14px);
    animation: wa-slide-down-fade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .wa-bot-pause-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(15, 23, 42, 0.08);
}

.wa-bot-dropdown-header {
    padding: 12px 14px 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .wa-bot-dropdown-header {
    border-bottom-color: #f1f5f9;
    background: #f8fafc;
}

.wa-bot-dropdown-body {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wa-bot-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #e9edef;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background 0.15s ease;
}
[data-theme="light"] .wa-bot-action-item {
    color: #1e293b;
}

.wa-bot-action-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .wa-bot-action-item:hover {
    background: #f1f5f9;
}

.wa-bot-action-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
}

.wa-bot-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.wa-bot-action-icon.green { background: rgba(0, 168, 132, 0.15); color: #00e699; }
.wa-bot-action-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.wa-bot-action-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.wa-bot-action-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.wa-bot-action-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.wa-bot-action-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
}

.wa-bot-action-sub {
    font-size: 11px;
    color: #8696a0;
    margin-top: 2px;
    line-height: 1.2;
}
[data-theme="light"] .wa-bot-action-sub {
    color: #64748b;
}

.wa-bot-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 4px 6px;
}
[data-theme="light"] .wa-bot-dropdown-divider {
    background: #f1f5f9;
}

.wa-bot-dropdown-section-title {
    padding: 6px 10px 3px 10px;
    font-size: 10.5px;
    font-weight: 700;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-bot-dropdown-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #8696a0;
    background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .wa-bot-dropdown-footer {
    border-top-color: #f1f5f9;
    background: #f8fafc;
    color: #64748b;
}

.wa-bot-settings-btn {
    background: transparent;
    border: none;
    color: #00e699;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}
.wa-bot-settings-btn:hover {
    background: rgba(0, 168, 132, 0.12);
}

/* Banner de Notificação de Bot Pausado */
.wa-chat-banner-paused {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(217, 119, 6, 0.08) 100%);
    border-bottom: 1px solid rgba(245, 158, 11, 0.3);
    font-size: 12px;
    color: #f8fafc;
    z-index: 9;
    gap: 12px;
    box-sizing: border-box;
    animation: wa-slide-down-fade 0.25s ease;
}
[data-theme="light"] .wa-chat-banner-paused {
    background: #fffbeb;
    border-bottom-color: #fde68a;
    color: #92400e;
}

.wa-chat-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.wa-chat-banner-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    animation: wa-pulse-dot 1.8s infinite;
    flex-shrink: 0;
}

.wa-chat-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.wa-chat-banner-timer {
    font-weight: 700;
    color: #f59e0b;
    font-size: 11.5px;
}

.wa-chat-banner-resume-btn {
    padding: 4px 12px;
    border-radius: 12px;
    background: #00a884;
    color: #ffffff;
    border: none;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.wa-chat-banner-resume-btn:hover {
    background: #02906f;
    transform: translateY(-1px);
}

@keyframes wa-pulse-border {
    0%, 100% { border-color: rgba(245, 158, 11, 0.45); }
    50% { border-color: rgba(245, 158, 11, 0.85); box-shadow: 0 0 10px rgba(245, 158, 11, 0.25); }
}
@keyframes wa-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes wa-slide-down-fade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modos de Atendimento e Configurações de IA */
.wa-mode-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 768px) {
    .wa-mode-selector-grid {
        grid-template-columns: 1fr;
    }
}
.wa-mode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}
.wa-mode-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
.wa-mode-card.selected {
    border-color: #00a884;
    background: rgba(0, 168, 132, 0.08);
}
.wa-mode-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 13px;
    color: #00a884;
    font-weight: 800;
}
.wa-mode-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
}
[data-theme="light"] .wa-mode-card-header {
    color: #0f172a;
}
.wa-mode-card-sub {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.35;
}
.wa-badge-rec {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(0, 168, 132, 0.2);
    color: #00e699;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

.wa-slider-range-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}
.wa-slider-range-box input[type="range"] {
    flex: 1;
    accent-color: #00a884;
    cursor: pointer;
}
.wa-slider-val-badge {
    padding: 4px 10px;
    background: rgba(0, 168, 132, 0.15);
    color: #00e699;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
}

/* Tabs da Central de IA */
.wa-sub-tab-pane {
    animation: waFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.wa-aiconfig-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    overflow-x: auto;
}
.wa-aiconfig-tab-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wa-aiconfig-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}
.wa-aiconfig-tab-btn.active {
    background: rgba(0, 168, 132, 0.15);
    color: #00e699;
    border: 1px solid rgba(0, 168, 132, 0.3);
}

.wa-preset-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.wa-preset-btn:hover {
    background: rgba(0, 168, 132, 0.12);
    border-color: #00a884;
    color: #00e699;
}

.wa-messages-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 18px 7%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    background-color: var(--wa-bg-chat);
    background-image: 
        radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.035) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25px 25px, rgba(255, 255, 255, 0.025) 1.5px, transparent 1.5px);
    background-size: 36px 36px;
    background-position: 0 0, 18px 18px;
}

[data-theme="light"] .wa-messages-timeline {
    background-color: #efeae2;
    background-image: 
        radial-gradient(circle at 10px 10px, rgba(0, 0, 0, 0.04) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.025) 1.5px, transparent 1.5px);
}

/* Balões com Fidelidade Absoluta ao WhatsApp Web Oficial */
.wa-balloon {
    position: relative;
    max-width: 65%;
    padding: 6px 9px 8px 9px;
    border-radius: 7.5px;
    font-size: 14.2px;
    line-height: 19px;
    word-wrap: break-word;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.28);
    display: flex;
    flex-direction: column;
}

.wa-balloon.customer {
    align-self: flex-start;
    background: var(--wa-bubble-in, #202c33);
    color: var(--wa-bubble-in-text, #e9edef);
    border-top-left-radius: 0;
}

.wa-balloon.me {
    align-self: flex-end;
    background: var(--wa-bubble-out, #005c4b);
    color: var(--wa-bubble-out-text, #e9edef);
    border-top-right-radius: 0;
}

[data-theme="light"] .wa-balloon {
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

/* Cores Oficiais de Remetentes do WhatsApp Web para Grupos */
.wa-balloon-sender {
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 3px;
    cursor: default;
}
.wa-balloon-sender.color-0 { color: #53bdeb; }
.wa-balloon-sender.color-1 { color: #00a884; }
.wa-balloon-sender.color-2 { color: #e542a3; }
.wa-balloon-sender.color-3 { color: #f59e0b; }
.wa-balloon-sender.color-4 { color: #a855f7; }
.wa-balloon-sender.color-5 { color: #06b6d4; }
.wa-balloon-sender.color-6 { color: #ec4899; }
.wa-balloon-sender.color-7 { color: #2dd4bf; }

.wa-balloon-text {
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 19px;
    color: inherit;
}

.wa-balloon-meta {
    align-self: flex-end;
    margin-top: 3px;
    margin-left: 14px;
    font-size: 11px;
    color: var(--wa-meta-in, #8696a0);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-balloon.me .wa-balloon-meta {
    color: var(--wa-meta-out, #8696a0);
}

.wa-check-double {
    color: #53bdeb;
    font-size: 11px;
}

/* ─── RENDERIZAÇÃO DE MÍDIAS NOS BALÕES (FOTOS, ÁUDIOS, FIGURINHAS) ─── */
.wa-msg-media-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin: -3px -5px 4px -5px;
    cursor: pointer;
    background: #111b21;
}

.wa-msg-img {
    display: block;
    width: 100%;
    max-width: 330px;
    max-height: 380px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.wa-msg-img:hover {
    transform: scale(1.02);
    filter: brightness(1.06);
}

.wa-msg-media-time-overlay {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(11, 20, 26, 0.65);
    backdrop-filter: blur(4px);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 10.5px;
    color: #e9edef;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

/* Card Visual quando a foto anterior não tiver o buffer completo */
.wa-msg-media-placeholder {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    margin-bottom: 4px;
}

.wa-msg-media-placeholder .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 168, 132, 0.2);
    color: #00e699;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.wa-msg-media-placeholder.audio .icon-box {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.wa-msg-media-placeholder .meta-box {
    display: flex;
    flex-direction: column;
}

.wa-msg-media-placeholder .meta-title {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.wa-msg-media-placeholder .meta-sub {
    font-size: 11px;
    color: #8696a0;
}

/* Player de Áudio Estilo WhatsApp */
.wa-msg-audio-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    padding: 4px 2px;
}

.wa-msg-audio-player {
    width: 100%;
    height: 36px;
    border-radius: 20px;
    outline: none;
}

.wa-msg-transcription {
    margin-top: 6px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.28);
    border-left: 2px solid #00e699;
    border-radius: 4px;
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.45;
    word-break: break-word;
    font-style: italic;
}

.wa-msg-media-wrap.sticker {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.wa-balloon-sender:hover {
    text-decoration: underline;
    opacity: 0.95;
}

/* Player de Áudio Estilo WhatsApp Moderno */
.wa-msg-audio-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 250px;
    max-width: 320px;
    padding: 2px 0;
}

.wa-msg-audio-player {
    width: 100%;
    height: 38px;
    border-radius: 20px;
    outline: none;
    background: transparent;
}

.wa-msg-transcription {
    font-size: 11.5px;
    line-height: 1.45;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid #00e699;
    padding: 6px 10px;
    border-radius: 6px;
    margin-top: 4px;
    word-break: break-word;
}

/* Botão de Fechar Modal Grande e Destacado */
.wa-modal-close-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.wa-modal-close-icon:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRA DE IA & CORRETOR EM TEMPO REAL (DIRETAMENTE ACIMA DO CATÁLOGO ERP)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-ai-live-toolbar {
    background: linear-gradient(180deg, rgba(17, 22, 34, 0.98) 0%, rgba(13, 17, 26, 0.98) 100%);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(168, 85, 247, 0.25);
    border-bottom: 1px solid var(--wa-border);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 12;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

.wa-ai-live-toolbar.highlight {
    animation: liveToolbarGlow 1.2s ease-out;
}

@keyframes liveToolbarGlow {
    0% { border-top-color: #a855f7; box-shadow: 0 -4px 20px rgba(168, 85, 247, 0.4); }
    100% { border-top-color: rgba(168, 85, 247, 0.25); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25); }
}

.wa-ai-live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    user-select: none;
}

.wa-ai-live-pulse-ring {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a855f7;
    position: relative;
    display: inline-block;
}

.wa-ai-live-pulse-ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #a855f7;
    opacity: 0.75;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(0.8); opacity: 0.9; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.8); opacity: 0; }
}

.wa-ai-live-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c084fc 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-ai-live-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.wa-ai-live-pills::-webkit-scrollbar {
    display: none;
}

.wa-ai-pill {
    background: rgba(22, 28, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11.5px;
    color: var(--wa-text-primary);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    flex-shrink: 0;
    max-width: 320px;
    font-family: inherit;
}

.wa-ai-pill:hover {
    background: #1e2638;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wa-ai-pill .pill-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wa-ai-pill .pill-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--wa-text-secondary);
    font-weight: 500;
}

.wa-ai-pill:hover .pill-text {
    color: #fff;
}

/* Tipos de Pill */
.wa-ai-pill.correct {
    border-color: rgba(16, 185, 129, 0.35);
}
.wa-ai-pill.correct:hover {
    border-color: #10b981;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}
.wa-ai-pill.correct .pill-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.wa-ai-pill.sales {
    border-color: rgba(245, 158, 11, 0.35);
}
.wa-ai-pill.sales:hover {
    border-color: #f59e0b;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}
.wa-ai-pill.sales .pill-tag {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.wa-ai-pill.empathy {
    border-color: rgba(236, 72, 153, 0.35);
}
.wa-ai-pill.empathy:hover {
    border-color: #ec4899;
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.25);
}
.wa-ai-pill.empathy .pill-tag {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.wa-ai-pill.concise {
    border-color: rgba(139, 92, 246, 0.35);
}
.wa-ai-pill.concise:hover {
    border-color: #8b5cf6;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}
.wa-ai-pill.concise .pill-tag {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.wa-ai-pill.neural {
    border-color: rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(22, 28, 40, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}
.wa-ai-pill.neural:hover {
    border-color: #38bdf8;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.3);
}
.wa-ai-pill.neural .pill-tag {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.wa-ai-live-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.wa-ai-live-btn {
    background: transparent;
    border: none;
    color: var(--wa-icon-gray);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s ease;
}

.wa-ai-live-btn:hover {
    background: var(--wa-bg-hover);
    color: var(--wa-text-primary);
}

.wa-ai-live-btn.close:hover {
    color: #ef4444;
}

.wa-input-field.pill-applied {
    animation: inputAppliedFlash 0.6s ease-out;
}

@keyframes inputAppliedFlash {
    0% { border-color: #00e699; box-shadow: 0 0 12px rgba(0, 230, 153, 0.5); }
    100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
}

/* Barra de Respostas Rápidas */
.wa-quick-bar {
    background: rgba(17, 22, 34, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--wa-border);
    padding: 8px 14px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    z-index: 10;
}

.wa-quick-chip {
    background: var(--wa-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--wa-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wa-quick-chip:hover {
    background: #1e2637;
    color: var(--wa-text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   SISTEMA DE REDIMENSIONAMENTO ARRASTÁVEL (SPLITTERS HORIZONTAL E VERTICAL)
   ══════════════════════════════════════════════════════════════════════════ */
body.wa-is-resizing {
    user-select: none !important;
}
body.wa-resizing-h,
body.wa-resizing-h * {
    cursor: col-resize !important;
}
body.wa-resizing-v,
body.wa-resizing-v * {
    cursor: row-resize !important;
}

/* 1. Divisor Arrastável Lateral (Sidebar de Conversas / Números / Pesquisa) */
.wa-resizer-horizontal {
    width: 6px;
    margin: 0 -3px;
    height: 100vh;
    cursor: col-resize;
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    user-select: none;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.wa-resizer-horizontal:hover,
.wa-resizer-horizontal.active {
    background: rgba(0, 168, 132, 0.15);
}

.wa-resizer-horizontal .wa-resizer-handle-line {
    width: 2px;
    height: 40px;
    border-radius: 2px;
    background: var(--wa-border, rgba(255, 255, 255, 0.12));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-resizer-horizontal:hover .wa-resizer-handle-line,
.wa-resizer-horizontal.active .wa-resizer-handle-line {
    height: 100%;
    background: #00a884;
    box-shadow: 0 0 8px rgba(0, 168, 132, 0.7);
}

[data-theme="light"] .wa-resizer-horizontal:hover .wa-resizer-handle-line,
[data-theme="light"] .wa-resizer-horizontal.active .wa-resizer-handle-line {
    background: #008069;
    box-shadow: 0 0 8px rgba(0, 128, 105, 0.6);
}

/* 2. Divisor Arrastável Vertical (Catálogo ERP + Texto / Área Inferior) */
.wa-resizer-vertical {
    height: 8px;
    margin: -4px 0;
    width: 100%;
    cursor: row-resize;
    position: relative;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    user-select: none;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.wa-resizer-vertical:hover,
.wa-resizer-vertical.active {
    background: rgba(0, 168, 132, 0.15);
}

.wa-resizer-vertical .wa-resizer-grip-h {
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--wa-border, rgba(255, 255, 255, 0.18));
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-resizer-vertical:hover .wa-resizer-grip-h,
.wa-resizer-vertical.active .wa-resizer-grip-h {
    width: 110px;
    background: #00a884;
    box-shadow: 0 0 10px rgba(0, 168, 132, 0.8);
}

[data-theme="light"] .wa-resizer-vertical:hover .wa-resizer-grip-h,
[data-theme="light"] .wa-resizer-vertical.active .wa-resizer-grip-h {
    background: #008069;
    box-shadow: 0 0 10px rgba(0, 128, 105, 0.7);
}

/* 3. Container Inferior Arrastável (Catálogo ERP + Caixa de Texto) */
.wa-bottom-resizable-area {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--wa-bg-input-bar);
    border-top: 1px solid var(--wa-border);
    flex-shrink: 0;
    min-height: 98px;
    max-height: 75vh;
    box-sizing: border-box;
    transition: height 0.05s ease-out;
}

.wa-bottom-resizable-area.is-expanded {
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

.wa-bottom-resizable-area.is-expanded .wa-quick-bar {
    flex-wrap: wrap;
    max-height: 110px;
    overflow-y: auto;
    padding-top: 10px;
    padding-bottom: 6px;
}

.wa-bottom-resizable-area.is-expanded .wa-input-bar {
    flex: 1;
    height: 100%;
    min-height: 80px;
    align-items: stretch;
}

.wa-bottom-resizable-area.is-expanded .wa-input-field {
    height: 100% !important;
    min-height: 70px;
    max-height: none;
}

/* Barra Inferior de Digitação */
.wa-input-bar {
    min-height: 62px;
    background: var(--wa-bg-input-bar);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
    box-sizing: border-box;
}

.wa-input-field {
    flex: 1;
    background: var(--wa-bg-input);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--wa-text-primary);
    font-size: 14px;
    line-height: 1.45;
    outline: none;
    font-family: inherit;
    resize: none;
    min-height: 40px;
    max-height: 180px;
    overflow-y: auto;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.wa-input-field:focus {
    border-color: rgba(0, 168, 132, 0.6);
}

[data-theme="light"] .wa-input-field {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #111b21;
}

[data-theme="light"] .wa-input-field:focus {
    border-color: #008069;
}

.wa-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wa-teal);
    color: #ffffff;
    border: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.wa-send-btn:hover {
    background: var(--wa-teal-light);
    transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════════════════════
   5. MÓDULOS EXTRAS (DISPAROS, FILA, QR CODE, URA, AI CONFIG)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-module-view {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 24px 32px;
    background: var(--wa-bg-chat);
}

.wa-module-header {
    margin-bottom: 24px;
}

.wa-module-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--wa-text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.wa-module-header p {
    font-size: 13px;
    color: var(--wa-text-secondary);
}

.wa-card {
    background: var(--wa-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.wa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.wa-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--wa-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--wa-border);
}

.wa-table td {
    padding: 12px;
    color: var(--wa-text-primary);
    border-bottom: 1px solid var(--wa-border-subtle);
}

.wa-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. PAINEL LATERAL DE DADOS DO CONTATO / GRUPO (DRAWER OFICIAL WHATSAPP)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-contact-info-drawer {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    height: 100%;
    background: #111b21;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    z-index: 40;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    animation: drawerSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.wa-drawer-header {
    height: 60px;
    background: #202c33;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.wa-drawer-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e9edef;
    margin: 0;
}

.wa-drawer-close-btn {
    background: transparent;
    border: none;
    color: #aebac1;
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.wa-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.wa-drawer-body {
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Cartão Principal do Perfil */
.wa-drawer-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: #182229;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-drawer-big-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #202c33;
    color: #00a884;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 3px solid rgba(0, 168, 132, 0.3);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.wa-drawer-name {
    font-size: 19px;
    font-weight: 700;
    color: #e9edef;
    letter-spacing: -0.01em;
}

.wa-drawer-phone {
    font-size: 14px;
    color: #00e699;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-drawer-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.wa-drawer-btn {
    flex: 1;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wa-drawer-btn.primary {
    background: #00a884;
    color: #111b21;
}

.wa-drawer-btn.primary:hover {
    background: #02c39a;
}

.wa-drawer-btn.secondary {
    background: #222e35;
    color: #e9edef;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-drawer-btn.secondary:hover {
    background: #2a3942;
}

/* Card Integração ERP OZPro */
.wa-drawer-erp-card {
    background: #182229;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 132, 0.25);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-drawer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-erp-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-erp-detail-label {
    color: #8696a0;
}

.wa-erp-detail-val {
    color: #e9edef;
    font-weight: 600;
}

/* Lista de Participantes em Grupos */
.wa-drawer-participants-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
}

.wa-drawer-participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #141c22;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.wa-drawer-participant-item:hover {
    background: #1b262e;
}

.wa-drawer-participant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wa-drawer-part-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #202c33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    flex-shrink: 0;
}

.wa-drawer-part-btn {
    background: transparent;
    border: 1px solid rgba(0, 168, 132, 0.4);
    color: #00a884;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-drawer-part-btn:hover {
    background: #00a884;
    color: #111b21;
}

/* ══════════════════════════════════════════════════════════════════════════
   GAVETA DADOS DO CONTATO OFICIAL (FIDELIDADE WHATSAPP DESKTOP/WEB - IMAGEM 2)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-drawer-contact-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #111b21;
}

[data-theme="light"] .wa-drawer-contact-hero {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.wa-drawer-hero-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.wa-drawer-hero-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wa-drawer-hero-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #182229;
    color: #00e699;
    display: grid;
    place-items: center;
    font-size: 38px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-drawer-hero-name {
    font-size: 18.5px;
    font-weight: 700;
    color: #e9edef;
    margin: 0 0 2px 0;
    word-break: break-word;
}

[data-theme="light"] .wa-drawer-hero-name {
    color: #111b21;
}

.wa-drawer-hero-phone {
    font-size: 13.5px;
    color: #8696a0;
    font-family: monospace;
}

.wa-drawer-hero-pushname {
    font-size: 12.5px;
    color: #8696a0;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-drawer-hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.wa-drawer-hero-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #e9edef;
    font-size: 11.5px;
    font-family: inherit;
    transition: transform 0.15s ease;
}

[data-theme="light"] .wa-drawer-hero-action-btn {
    color: #111b21;
}

.wa-drawer-hero-action-btn:hover {
    transform: translateY(-2px);
}

.wa-drawer-hero-action-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #202c33;
    display: grid;
    place-items: center;
    font-size: 16px;
    color: #00a884;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.15s ease;
}

[data-theme="light"] .wa-drawer-hero-action-circle {
    background: #f0f2f5;
    border-color: rgba(0, 0, 0, 0.06);
}

.wa-drawer-hero-action-btn:hover .wa-drawer-hero-action-circle {
    background: #2a3942;
}

/* Card de Notas do Cliente */
.wa-drawer-notes-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #111b21;
}

[data-theme="light"] .wa-drawer-notes-section {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.wa-drawer-notes-textarea {
    width: 100%;
    min-height: 64px;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: #e9edef;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

[data-theme="light"] .wa-drawer-notes-textarea {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    color: #111b21;
}

.wa-drawer-notes-textarea:focus {
    border-color: #00a884;
}

/* Linhas Clicáveis Estilo WhatsApp Web */
.wa-drawer-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.12s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #111b21;
}

[data-theme="light"] .wa-drawer-tile {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.wa-drawer-tile:hover {
    background: #182229;
}

[data-theme="light"] .wa-drawer-tile:hover {
    background: #f0f2f5;
}

.wa-drawer-tile-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.wa-drawer-tile-ico {
    width: 20px;
    font-size: 17px;
    color: #8696a0;
    text-align: center;
    flex-shrink: 0;
}

.wa-drawer-tile-title {
    font-size: 14px;
    color: #e9edef;
    font-weight: 500;
}

[data-theme="light"] .wa-drawer-tile-title {
    color: #111b21;
}

.wa-drawer-tile-desc {
    font-size: 12px;
    color: #8696a0;
    margin-top: 1px;
}

.wa-drawer-tile-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8696a0;
    font-size: 13px;
    flex-shrink: 0;
}

/* Seção Grupos em Comum */
.wa-drawer-groups-section {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #111b21;
}

[data-theme="light"] .wa-drawer-groups-section {
    background: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.wa-drawer-group-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s ease;
}

.wa-drawer-group-item:hover {
    background: #182229;
}

[data-theme="light"] .wa-drawer-group-item:hover {
    background: #f0f2f5;
}

.wa-drawer-group-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(2,132,199,0.2), rgba(13,148,136,0.3));
    color: #38bdf8;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.wa-drawer-group-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lista de Ações Inferiores (Imagem 2) */
.wa-drawer-action-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0 24px;
    background: #111b21;
}

[data-theme="light"] .wa-drawer-action-list {
    background: #ffffff;
}

.wa-drawer-action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 500;
    color: #e9edef;
    cursor: pointer;
    transition: background 0.12s ease;
}

[data-theme="light"] .wa-drawer-action-row {
    color: #111b21;
}

.wa-drawer-action-row:hover {
    background: #182229;
}

[data-theme="light"] .wa-drawer-action-row:hover {
    background: #f0f2f5;
}

.wa-drawer-action-row.danger {
    color: #f15c6d;
}

.wa-drawer-action-row.danger:hover {
    background: rgba(241, 92, 109, 0.1);
}

.wa-drawer-action-row .wa-drawer-action-ico {
    width: 22px;
    font-size: 17px;
    text-align: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   7. MODAL DE NOVA CONVERSA & CLIENTES DO ERP (ESTILO WHATSAPP WEB)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 26, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wa-modal-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wa-modal-header {
    background: #0f172a;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-modal-header h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 75vh;
    overflow-y: auto;
}

.wa-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-form-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.wa-form-input {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.wa-form-input:focus {
    border-color: #00a884;
}

.wa-erp-clients-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.wa-erp-client-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-erp-client-item:hover {
    background: #1e293b;
    border-color: rgba(0, 168, 132, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   8. LIGHTBOX DE FOTOS EM TELA CHEIA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 26, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    animation: modalFadeIn 0.2s ease-out;
}

.wa-lightbox-header {
    position: absolute;
    top: 16px;
    right: 20px;
    display: flex;
    gap: 12px;
}

.wa-lightbox-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wa-lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wa-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

/* ══════════════════════════════════════════════════════════════════════════
   10. SISTEMA DE TOASTS MODERNOS (WaToast)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.wa-toast {
    pointer-events: auto;
    background: #182229;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    min-width: 300px;
    max-width: 440px;
    animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s ease;
}

.wa-toast.hide {
    opacity: 0;
    transform: translateX(30px);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.wa-toast.success { border-color: rgba(0, 168, 132, 0.5); }
.wa-toast.success .wa-toast-icon { color: #00e699; }

.wa-toast.error, .wa-toast.danger { border-color: rgba(239, 68, 68, 0.5); }
.wa-toast.error .wa-toast-icon, .wa-toast.danger .wa-toast-icon { color: #f87171; }

.wa-toast.warning { border-color: rgba(245, 158, 11, 0.5); }
.wa-toast.warning .wa-toast-icon { color: #fbbf24; }

.wa-toast.info { border-color: rgba(56, 189, 248, 0.5); }
.wa-toast.info .wa-toast-icon { color: #38bdf8; }

.wa-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wa-toast-msg {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

.wa-toast-close {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.wa-toast-close:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   11. SISTEMA DE DIÁLOGOS MODERNOS (WaDialog)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 26, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: modalFadeIn 0.2s ease-out;
    transition: opacity 0.2s ease;
}

.wa-dialog-overlay.closing {
    opacity: 0;
}

.wa-dialog-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: dialogZoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogZoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wa-dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.wa-dialog-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 168, 132, 0.15);
    color: #00e699;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.wa-dialog-icon-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.wa-dialog-icon-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.wa-dialog-header h4 {
    font-size: 16.5px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 4px 0;
}

.wa-dialog-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.wa-dialog-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-dialog-input {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    color: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wa-dialog-input:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.2);
}

.wa-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   12. BOTÕES, CARDS E COMPONENTES MODERNOS (ADEUS ENGESSAMENTO)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-btn-primary {
    background: linear-gradient(135deg, #00a884 0%, #008f6f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.3);
    font-family: inherit;
}

.wa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 168, 132, 0.45);
    filter: brightness(1.08);
}

.wa-btn-primary:active {
    transform: translateY(0);
}

.wa-btn-secondary {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wa-btn-secondary:hover {
    background: #334155;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.wa-btn-danger {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    font-family: inherit;
}

.wa-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
    filter: brightness(1.08);
}

/* Botões de Ação Rápida em Ícone */
.wa-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    background: transparent;
}

.wa-btn-icon.edit {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

.wa-btn-icon.edit:hover {
    background: #38bdf8;
    color: #0b141a;
    transform: translateY(-1px);
}

.wa-btn-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.wa-btn-icon.danger:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-1px);
}

/* Cards Modernos da URA */
.wa-ura-option-card {
    background: #141b26;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 12px;
}

.wa-ura-option-card:hover {
    background: #1a2232;
    border-color: rgba(0, 168, 132, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wa-ura-digit-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
    border: 1px solid rgba(0, 168, 132, 0.35);
    color: #00e699;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    flex-shrink: 0;
}

.wa-ura-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-top: 4px;
}

.wa-ura-action-badge.produtos { background: rgba(0, 168, 132, 0.15); color: #00e699; }
.wa-ura-action-badge.os { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.wa-ura-action-badge.pix { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.wa-ura-action-badge.loja { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.wa-ura-action-badge.humano { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.wa-ura-action-badge.custom { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

/* ══════════════════════════════════════════════════════════════════════════
   DESIGN SYSTEM PREMIUM OZPRO ERP (LINEAR / OBSIDIAN SAAS THEME)
   ══════════════════════════════════════════════════════════════════════════ */

/* Cards Obsidian com Borda Sutil & Sombra Profunda */
.wa-card-elite {
    background: #111726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.wa-card-elite:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 32px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wa-card-elite-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.wa-card-elite-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Switches 100% CSS Fluidos (Zero Trava, Zero Estilo Inline Rígido) */
.wa-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.wa-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.wa-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #f1f5f9;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.wa-switch input:checked + .wa-slider {
    background: linear-gradient(135deg, #00a884 0%, #008f6f 100%);
    border-color: #00e699;
    box-shadow: 0 0 14px rgba(0, 168, 132, 0.45);
}

.wa-switch input:checked + .wa-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

/* Inputs & Controles Alinhados com main.css */
.wa-form-control {
    width: 100%;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.18s ease;
    outline: none;
}

.wa-form-control:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.18);
    background: #0d131f;
}

.wa-form-control::placeholder {
    color: #64748b;
}

/* Badges Pílula Estilo OmniRoute / Linear */
.wa-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.wa-badge-pill.amber {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

.wa-badge-pill.cyan {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

.wa-badge-pill.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.25);
}

.wa-badge-pill.green {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.25);
}

.wa-badge-pill.emerald {
    background: rgba(0, 168, 132, 0.14);
    color: #00e699;
    border-color: rgba(0, 168, 132, 0.28);
}

.wa-badge-pill.rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.25);
}

/* Botões Modernos de Card (Adeus Windows XP) */
.wa-card-action-btn {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.wa-card-action-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   SIMULADOR DE CELULAR WHATSAPP (PREVIEW REALÍSTICO COM BALÕES OFICIAIS)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-phone-mockup {
    width: 100%;
    max-width: 380px;
    background: #0b141a;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.wa-phone-top-notch {
    height: 22px;
    background: #111b21;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 10px;
    color: #8696a0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-phone-chat-header {
    background: #202c33;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-phone-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a884, #008769);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}

.wa-phone-chat-body {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #0b141a;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 16px 16px;
    min-height: 360px;
    max-height: 480px;
    overflow-y: auto;
}

.wa-sim-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
    position: relative;
    word-break: break-word;
}

.wa-sim-bubble.bot {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wa-sim-bubble.user {
    background: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.wa-sim-bubble-meta {
    font-size: 9.5px;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ESTILOS PREMIUM DE FUNIS DE CONVERSAÇÃO MULTI-ETAPAS & DECISION TREE
   ══════════════════════════════════════════════════════════════════════════ */
.wa-funnel-top-bar {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.wa-funnel-selector-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-funnel-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
}

.wa-funnel-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.wa-funnel-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 20px;
    background: #1a232a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.wa-funnel-pill:hover {
    background: #202c33;
    color: #f8fafc;
    border-color: rgba(0, 168, 132, 0.35);
    transform: translateY(-1px);
}

.wa-funnel-pill.active {
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.22), rgba(0, 230, 153, 0.12));
    border-color: #00e699;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(0, 230, 153, 0.18);
}

.wa-funnel-pill .step-count-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 10.5px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.wa-funnel-pill.active .step-count-badge {
    background: rgba(0, 230, 153, 0.25);
    color: #00e699;
}

.wa-funnel-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(0, 168, 132, 0.14);
    border: 1px dashed rgba(0, 230, 153, 0.45);
    color: #00e699;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-funnel-add-btn:hover {
    background: #00a884;
    color: #ffffff;
    border-color: #00a884;
    transform: translateY(-1px);
}

.wa-funnel-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.wa-funnel-meta-active {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wa-funnel-meta-name {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.wa-funnel-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wa-funnel-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #202c33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.wa-funnel-tool-btn:hover {
    background: #2a3942;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

.wa-funnel-tool-btn.highlight {
    background: #00a884;
    color: #ffffff;
    border-color: #00a884;
}

.wa-funnel-tool-btn.highlight:hover {
    background: #008f6f;
    box-shadow: 0 0 12px rgba(0, 168, 132, 0.35);
}

.wa-funnel-tool-btn.danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);
}

.wa-funnel-tool-btn.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Árvore de Etapas do Funil */
.wa-funnel-step-card {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid #00a884;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    position: relative;
    transition: all 0.2s ease;
}

.wa-funnel-step-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: #00e699;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.wa-funnel-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wa-funnel-step-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-funnel-step-num {
    background: rgba(0, 168, 132, 0.18);
    color: #00e699;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid rgba(0, 230, 153, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-funnel-step-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
}

.wa-funnel-step-msg {
    background: #1a232a;
    border-radius: 10px;
    padding: 12px 14px;
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, 0.05);
    white-space: pre-wrap;
    margin-bottom: 14px;
    font-family: inherit;
}

.wa-funnel-step-msg-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Lista de Opções da Etapa */
.wa-funnel-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wa-funnel-option-node {
    background: #182229;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.15s ease;
}

.wa-funnel-option-node:hover {
    background: #1d2830;
    border-color: rgba(255, 255, 255, 0.12);
}

.wa-funnel-option-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.wa-funnel-opt-digit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 168, 132, 0.4);
}

.wa-funnel-opt-info {
    min-width: 0;
    flex: 1;
}

.wa-funnel-opt-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #f1f5f9;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.wa-funnel-opt-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

/* Badges de Destino da Ramificação */
.wa-funnel-dest-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.wa-funnel-dest-badge.dest-step {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.wa-funnel-dest-badge.dest-funnel {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.wa-funnel-dest-badge.dest-ai {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.wa-funnel-dest-badge.dest-human {
    background: rgba(244, 63, 94, 0.16);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

.wa-funnel-dest-badge.dest-end {
    background: rgba(6, 182, 212, 0.16);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.4);
}

.wa-funnel-dest-badge.dest-stay {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.wa-funnel-opt-reply-preview {
    font-size: 11.5px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 500px;
}

.wa-funnel-opt-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wa-funnel-add-opt-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.wa-funnel-add-opt-btn:hover {
    background: rgba(0, 168, 132, 0.1);
    border-color: rgba(0, 230, 153, 0.35);
    color: #00e699;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVA INTERFACE ULTRA-INTUITIVA DE ETAPAS & PERGUNTAS (FLUXO HUMANO VISUAL)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-flow-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.wa-flow-stepper-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #1a232a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wa-flow-stepper-item:hover {
    background: #202c33;
    border-color: rgba(0, 230, 153, 0.35);
    color: #ffffff;
}

.wa-flow-stepper-item.active {
    background: rgba(0, 168, 132, 0.2);
    border-color: #00e699;
    color: #00e699;
    box-shadow: 0 0 10px rgba(0, 230, 153, 0.15);
}

.wa-flow-stepper-arrow {
    color: #475569;
    font-size: 11px;
    flex-shrink: 0;
}

.wa-flow-step-block {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.2s ease;
}

.wa-flow-step-block:hover {
    border-color: rgba(0, 230, 153, 0.3);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.wa-flow-step-header-pro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.wa-flow-step-badge-main {
    background: linear-gradient(135deg, #00a884, #008f6f);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wa-flow-step-title-pro {
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}

/* Caixa do que o robô pergunta */
.wa-flow-robot-question-box {
    background: #182229;
    border: 1px solid rgba(0, 168, 132, 0.25);
    border-left: 4px solid #00a884;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.wa-flow-section-label {
    font-size: 11.5px;
    font-weight: 800;
    color: #00e699;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wa-flow-robot-bubble-text {
    background: #202c33;
    color: #f1f5f9;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Área das opções de resposta */
.wa-flow-responses-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.wa-flow-rule-card {
    background: #182229;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.15s ease;
}

.wa-flow-rule-card:hover {
    background: #1f2c34;
    border-color: rgba(255, 255, 255, 0.14);
}

.wa-flow-rule-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wa-flow-rule-client {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.wa-flow-key-tag {
    background: #00a884;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 168, 132, 0.35);
    flex-shrink: 0;
}

.wa-flow-rule-title {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
}

.wa-flow-rule-dest-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #111a20;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    flex-wrap: wrap;
}

.wa-flow-rule-dest-label {
    color: #94a3b8;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-flow-rule-reply-row {
    font-size: 12px;
    color: #cbd5e1;
    font-style: italic;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-left: 4px;
}

/* Conector vertical entre etapas */
.wa-flow-connector-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: -12px auto 14px auto;
    color: #00e699;
    font-size: 14px;
    gap: 2px;
    opacity: 0.8;
}

.wa-flow-connector-down span {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* Simulador Interativo WhatsApp */
.wa-phone-sim-status {
    background: #182229;
    padding: 6px 12px;
    font-size: 11px;
    color: #00e699;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-phone-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.wa-phone-chip-btn {
    background: rgba(0, 168, 132, 0.15);
    border: 1px solid rgba(0, 230, 153, 0.35);
    color: #00e699;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 11.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wa-phone-chip-btn:hover {
    background: #00a884;
    color: #ffffff;
    border-color: #00a884;
    transform: translateY(-1px);
}

.wa-phone-chip-btn .digit-pill {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 800;
}

.wa-phone-sim-footer {
    background: #202c33;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-phone-sim-input {
    flex: 1;
    background: #2a3942;
    border: none;
    outline: none;
    border-radius: 20px;
    padding: 7px 14px;
    color: #ffffff;
    font-size: 12px;
}

.wa-phone-sim-input::placeholder {
    color: #8696a0;
}

.wa-phone-sim-send {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #00a884;
    color: #ffffff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 12px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.wa-phone-sim-send:hover {
    background: #008f6f;
    transform: scale(1.05);
}

/* Botão de Criação de Funil com IA */
.wa-funnel-ai-btn {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wa-funnel-ai-btn:hover {
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.55);
    transform: translateY(-1px) scale(1.02);
}

.wa-funnel-tool-btn.magic {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #c084fc;
}

.wa-funnel-tool-btn.magic:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: #a855f7;
    color: #f3e8ff;
}

/* Chips de Sugestões Prontas da IA */
.wa-ai-preset-chip {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wa-ai-preset-chip:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Indicador de Pensando com IA no Simulador */
.wa-sim-bubble.thinking {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c084fc;
    font-style: italic;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: waAiPulse 1.4s infinite ease-in-out;
}

@keyframes waAiPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Badge de Precisão de Intenção Semântica da IA no Simulador */
.wa-sim-intent-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 230, 153, 0.35);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 10px;
    color: #00e699;
    font-weight: 700;
    margin-bottom: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.02em;
}

.wa-sim-intent-badge.highlight {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.15));
    border-color: rgba(139, 92, 246, 0.45);
    color: #c084fc;
}

.wa-sim-intent-badge .accuracy-pill {
    background: rgba(0, 230, 153, 0.2);
    color: #34d399;
    padding: 1px 5px;
    border-radius: 6px;
    font-size: 9.5px;
}

.wa-sim-intent-badge.highlight .accuracy-pill {
    background: rgba(139, 92, 246, 0.25);
    color: #e9d5ff;
}

/* Card de Previsão de Situações da IA no Funil */
.wa-ai-prediction-box {
    background: #0f172a;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 12px;
}

.wa-ai-prediction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 700;
    color: #c084fc;
    margin-bottom: 8px;
}

.wa-ai-situations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 11px;
}

.wa-ai-situation-item {
    background: #182229;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-ai-situation-item.expected {
    border-left: 3px solid #00e699;
}

.wa-ai-situation-item.unexpected {
    border-left: 3px solid #38bdf8;
}

.wa-ai-situation-item .title {
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wa-ai-situation-item .desc {
    color: #94a3b8;
    font-size: 10.5px;
    line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════════════
   MÓDULO DE CONFIGURAÇÕES (VIEW_SETTINGS)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 20px;
}

.wa-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   MENSAGEM: CHEVRON, MENU DE CONTEXTO & REAÇÕES (ESTILO WHATSAPP ORIGINAL)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-balloon {
    position: relative !important;
}

.wa-msg-chevron-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17, 27, 33, 0.75);
    backdrop-filter: blur(4px);
    border: none;
    color: #aebac1;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
    z-index: 10;
}

.wa-msg-chevron-btn:hover {
    background: #202c33;
    color: #e9edef;
    transform: scale(1.1);
}

.wa-msg-context-menu {
    position: fixed;
    background: #233138;
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    z-index: 10000;
    width: 240px;
    overflow: hidden;
    animation: waMenuScale 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waMenuScale {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.wa-msg-reactions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #182229;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 20px;
}

.wa-reaction-item {
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.wa-reaction-item:hover {
    transform: scale(1.35);
}

.wa-reaction-add {
    font-size: 14px;
    color: #8696a0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
}

.wa-reaction-add:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e9edef;
}

.wa-msg-menu-list {
    padding: 6px 0;
}

.wa-msg-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 13.5px;
    color: #d1d7db;
    cursor: pointer;
    transition: background 0.12s ease;
    user-select: none;
}

.wa-msg-menu-item:hover {
    background: #182229;
    color: #f8fafc;
}

.wa-msg-menu-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #8696a0;
}

.wa-msg-menu-item:hover i {
    color: #00a884;
}

.wa-msg-menu-item.danger {
    color: #ef4444;
}

.wa-msg-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.wa-msg-menu-item.danger i {
    color: #ef4444;
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRA DE CITAÇÃO / RESPOSTA (QUOTED REPLY BAR - IMAGEM 4)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-reply-bar {
    background: #202c33;
    border-left: 4px solid #00a884;
    padding: 8px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: waSlideUp 0.18s ease-out;
}

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

.wa-reply-sender {
    font-size: 12.5px;
    font-weight: 700;
    color: #00a884;
    margin-bottom: 2px;
}

.wa-reply-text {
    font-size: 12px;
    color: #8696a0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 600px;
}

.wa-reply-close {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.15s;
}

.wa-reply-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e9edef;
}

.wa-quoted-bubble {
    background: rgba(0, 0, 0, 0.22);
    border-left: 3.5px solid #00a884;
    border-radius: 6px;
    padding: 5px 9px;
    margin-bottom: 6px;
    font-size: 11.5px;
    cursor: pointer;
}

.wa-quoted-sender {
    font-weight: 700;
    color: #00a884;
    font-size: 11px;
    margin-bottom: 2px;
}

.wa-quoted-text {
    color: #8696a0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAINEL DESLIZANTE LATERAL: "NOVA CONVERSA" (ESTILO WHATSAPP ORIGINAL)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-sidebar-chats,
.wa-sidebar {
    position: relative !important;
    overflow: hidden !important;
}

.wa-sidebar-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #111b21;
    z-index: 60;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-sidebar-slide.open {
    transform: translateX(0);
}

.wa-slide-header {
    height: 60px;
    background: #202c33;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
    color: #e9edef;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.wa-slide-back-btn {
    background: transparent;
    border: none;
    color: #aebac1;
    font-size: 17px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-slide-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.wa-slide-search-bar {
    padding: 10px 14px;
    background: #111b21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wa-slide-search-box {
    background: #202c33;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 10px;
}

.wa-slide-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #e9edef;
    font-size: 13.5px;
    width: 100%;
}

.wa-slide-search-box input::placeholder {
    color: #8696a0;
}

.wa-slide-options-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-slide-option-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s;
    color: #e9edef;
    font-size: 14.5px;
    font-weight: 500;
}

.wa-slide-option-item:hover {
    background: #202c33;
}

.wa-slide-option-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #00a884;
    color: #111b21;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-slide-contacts-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.wa-slide-letter-header {
    padding: 12px 20px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #00a884;
    text-transform: uppercase;
}

.wa-slide-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.wa-slide-contact-item:hover {
    background: #202c33;
}

/* ══════════════════════════════════════════════════════════════════════════
   BADGES DE CLIENTES DO ERP / NF-e / TRIAL NO CHAT
   ══════════════════════════════════════════════════════════════════════════ */
.wa-tag-erp {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    background: rgba(99, 102, 241, 0.18);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.wa-tag-nfe {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.wa-tag-trial {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ══════════════════════════════════════════════════════════════════════════
   VÍDEOS, FIGURINHAS TRANSPARENTES E ANEXOS DO COMPUTADOR
   ══════════════════════════════════════════════════════════════════════════ */
.wa-msg-video-wrap {
    margin-top: 4px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    max-width: 320px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.wa-msg-video-player {
    width: 100%;
    max-height: 280px;
    display: block;
    border-radius: 8px 8px 0 0;
    outline: none;
    background: #000;
}

.wa-msg-video-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: rgba(17, 27, 33, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-msg-video-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #00e699;
    background: rgba(0, 168, 132, 0.15);
    border: 1px solid rgba(0, 168, 132, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-msg-video-dl-btn:hover {
    background: #00a884;
    color: #fff;
    border-color: #00a884;
}

.wa-slide-direct-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(0, 168, 132, 0.12);
    border-bottom: 1px solid rgba(0, 168, 132, 0.25);
    cursor: pointer;
    transition: background 0.15s ease;
}

.wa-slide-direct-action:hover {
    background: rgba(0, 168, 132, 0.22);
}

.wa-msg-media-wrap.sticker {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.wa-msg-media-wrap.sticker img {
    background: transparent !important;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.wa-sticker-save-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(17, 27, 33, 0.8);
    border: none;
    color: #fbbf24;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.wa-msg-media-wrap:hover .wa-sticker-save-btn {
    opacity: 1;
}

/* Menu de Anexos (Clipe 📎 Oficial WhatsApp Web - 12 Itens) */
.wa-attach-menu {
    position: absolute;
    bottom: 58px;
    left: 14px;
    background: #233138;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 8px 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    width: 220px;
    z-index: 100;
    animation: waSlideUp 0.15s ease-out;
}

[data-theme="light"] .wa-attach-menu {
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(11, 20, 26, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.wa-attach-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #e9edef;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s ease;
}

[data-theme="light"] .wa-attach-item {
    color: #111b21;
}

.wa-attach-item:hover {
    background: #182229;
}

[data-theme="light"] .wa-attach-item:hover {
    background: #f0f2f5;
}

.wa-attach-ico {
    width: 22px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Gaveta de Figurinhas & Arsenal Oficial */
.wa-sticker-drawer {
    position: absolute;
    bottom: 64px;
    left: 20px;
    width: min(440px, calc(100vw - 32px));
    height: 420px;
    background: #202c33;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: none;
    flex-direction: column;
    z-index: 105;
    overflow: hidden;
    animation: waDrawerSlideIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waDrawerSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-sticker-drawer-header {
    background: #182229;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-sticker-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: #e9edef;
}

.wa-sticker-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wa-sticker-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #182229;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-sticker-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.wa-sticker-search-wrap i {
    position: absolute;
    left: 10px;
    color: #8696a0;
    font-size: 11px;
    pointer-events: none;
}

.wa-sticker-search-input {
    width: 100%;
    background: #202c33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 26px 5px 28px;
    font-size: 12px;
    color: #e9edef;
    outline: none;
    transition: border-color 0.15s;
}

.wa-sticker-search-input:focus {
    border-color: #00a884;
}

.wa-sticker-clear-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #8696a0;
    cursor: pointer;
    font-size: 11px;
}

.wa-sticker-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-sticker-tool-btn {
    background: #2a3942;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #00a884;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.wa-sticker-tool-btn:hover {
    background: #00a884;
    color: #fff;
    border-color: #00a884;
}

.wa-sticker-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    color: #8696a0;
    height: 100%;
}

.wa-sticker-empty-icon {
    font-size: 38px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.wa-sticker-empty-state h4 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #e9edef;
}

.wa-sticker-empty-state p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.4;
    max-width: 260px;
}

/* ══════════════════════════════════════════════════════════════════════════
   13. ETIQUETAS DO WHATSAPP BUSINESS & MARCAÇÕES RÁPIDAS
   ══════════════════════════════════════════════════════════════════════════ */
.wa-chat-labels-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.wa-chat-label-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wa-label-dot {
    width: 6.5px;
    height: 6.5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Popover Flutuante de Etiquetas */
.wa-labels-popover {
    position: absolute;
    top: 56px;
    right: 80px;
    width: 280px;
    background: #233138;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    z-index: 120;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: waPopIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-labels-popover-header {
    background: #182229;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #e9edef;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-labels-popover-header .close-btn {
    background: transparent;
    border: none;
    color: #8696a0;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}
.wa-labels-popover-header .close-btn:hover {
    color: #e9edef;
}

.wa-labels-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.wa-label-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.wa-label-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wa-label-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.wa-label-item-name {
    font-size: 13px;
    color: #e9edef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-label-checkbox {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #8696a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.15s;
    flex-shrink: 0;
}

.wa-label-checkbox.checked {
    background: #00a884;
    border-color: #00a884;
    color: #111b21;
}

.wa-labels-popover-footer {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c272e;
}

.wa-new-label-toggle-btn {
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #00a884;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.wa-new-label-toggle-btn:hover {
    background: rgba(0, 168, 132, 0.1);
    border-color: #00a884;
}

.wa-new-label-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.wa-new-label-input {
    width: 100%;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    color: #e9edef;
    font-size: 12px;
    outline: none;
}
.wa-new-label-input:focus {
    border-color: #00a884;
}

.wa-label-color-palette {
    display: flex;
    gap: 6px;
    align-items: center;
}

.wa-color-dot-opt {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s;
}
.wa-color-dot-opt:hover {
    transform: scale(1.2);
}
.wa-color-dot-opt.active {
    border-color: #fff;
    transform: scale(1.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   14. LINKS CLICÁVEIS & MODAL DE SEGURANÇA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-msg-link {
    color: #53bdeb;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.15s, text-decoration 0.15s;
    cursor: pointer;
}

.wa-msg-link:hover {
    color: #72ccf0;
    text-decoration: underline;
}

.wa-link-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 20, 26, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: waFadeIn 0.15s ease-out;
}

.wa-link-modal-card {
    background: #233138;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e9edef;
    animation: waPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-link-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: #e9edef;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.wa-link-modal-desc {
    font-size: 13.5px;
    color: #8696a0;
    line-height: 1.5;
    margin-bottom: 14px;
}

.wa-link-url-card {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    color: #53bdeb;
    word-break: break-all;
    font-family: monospace;
    margin-bottom: 16px;
    max-height: 90px;
    overflow-y: auto;
}

.wa-link-modal-warning {
    font-size: 12px;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.wa-link-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.wa-link-btn-cancel {
    padding: 9px 18px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e9edef;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.wa-link-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.wa-link-btn-open {
    padding: 9px 18px;
    border-radius: 6px;
    background: #00a884;
    border: none;
    color: #111b21;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.wa-link-btn-open:hover {
    background: #00c298;
}

/* ══════════════════════════════════════════════════════════════════════════
   MENU DE CONTEXTO OFICIAL DO WHATSAPP (BOTÃO DIREITO / CHEVRON)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-context-menu {
    position: fixed;
    z-index: 99999;
    background: #233138;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55), 0 0 1px rgba(255, 255, 255, 0.15);
    min-width: 215px;
    padding: 6px 0;
    backdrop-filter: blur(12px);
    animation: waCtxIn 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

@keyframes waCtxIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wa-ctx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: #d1d7db;
    font-size: 13.5px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
}

.wa-ctx-item i {
    font-size: 13.5px;
    color: #8696a0;
    width: 16px;
    text-align: center;
    transition: color 0.12s ease;
}

.wa-ctx-item:hover {
    background: #182229;
    color: #f0f2f5;
}

.wa-ctx-item:hover i {
    color: #e9edef;
}

.wa-ctx-item.danger {
    color: #ea868f;
}

.wa-ctx-item.danger i {
    color: #ea868f;
}

.wa-ctx-item.danger:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.wa-ctx-item.danger:hover i {
    color: #f87171;
}

.wa-ctx-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 0;
}

/* Chevron que aparece no hover do card de conversa */
.wa-chat-chevron-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease;
    background: transparent;
    border: none;
    color: #8696a0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 4px;
}

.wa-chat-item-row:hover .wa-chat-chevron-btn {
    opacity: 1;
    pointer-events: auto;
}

.wa-chat-chevron-btn:hover {
    color: #e9edef;
    background: rgba(255, 255, 255, 0.12);
}

/* Botão de Etiqueta Rápida (WaSeller Easy Labels) no hover do card */
.wa-chat-quick-tag-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
    background: transparent;
    border: none;
    color: var(--wa-icon-gray, #8696a0);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    flex-shrink: 0;
}

.wa-chat-item-row:hover .wa-chat-quick-tag-btn {
    opacity: 1;
    pointer-events: auto;
}

.wa-chat-quick-tag-btn:hover {
    color: #00a884;
    background: rgba(0, 168, 132, 0.15);
}

/* Barra de Reações Rápidas do Menu de Mensagens */
.wa-reactions-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 6px 8px;
    gap: 3px;
}

.wa-reaction-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 6px;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease;
}

.wa-reaction-btn:hover {
    transform: scale(1.35);
    background: rgba(255, 255, 255, 0.1);
}

/* Banner de Cabeçalho da Lista de Arquivadas */
.wa-archived-header-banner {
    padding: 14px 16px;
    background: #111b21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeIn 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: BORRADOR DE PRIVACIDADE (BLUR MODE WASELLER)
   ══════════════════════════════════════════════════════════════════════════ */
body.wa-privacy-mode .wa-contact-name,
body.wa-privacy-mode .wa-active-name,
body.wa-privacy-mode .wa-kanban-card-name,
body.wa-privacy-mode .wa-kanban-card-phone {
    filter: blur(5px);
    transition: filter 0.18s ease;
}
body.wa-privacy-mode .wa-contact-lastmsg,
body.wa-privacy-mode .wa-balloon-text,
body.wa-privacy-mode .wa-kanban-card-msg,
body.wa-privacy-mode .wa-active-status {
    filter: blur(4px);
    transition: filter 0.18s ease;
}
body.wa-privacy-mode .wa-contact-avatar,
body.wa-privacy-mode .wa-user-avatar,
body.wa-privacy-mode .wa-kanban-card-avatar,
body.wa-privacy-mode .wa-kanban-card-avatar-text {
    filter: blur(8px);
    transition: filter 0.18s ease;
}
body.wa-privacy-mode .wa-chat-item-row:hover .wa-contact-name,
body.wa-privacy-mode .wa-chat-item-row:hover .wa-contact-lastmsg,
body.wa-privacy-mode .wa-chat-item-row:hover .wa-contact-avatar,
body.wa-privacy-mode .wa-kanban-card:hover .wa-kanban-card-name,
body.wa-privacy-mode .wa-kanban-card:hover .wa-kanban-card-msg,
body.wa-privacy-mode .wa-kanban-card:hover .wa-kanban-card-avatar,
body.wa-privacy-mode .wa-kanban-card:hover .wa-kanban-card-avatar-text,
body.wa-privacy-mode .wa-balloon:hover .wa-balloon-text {
    filter: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: CRM KANBAN ARRASTÁVEL & FUNIL DE VENDAS (PADRÃO FIGMA / WASELLER)
   ══════════════════════════════════════════════════════════════════════════ */
#view_kanban {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0;
    flex: 1 1 100%;
}

#view_kanban[style*="display: none"],
#view_kanban[style*="display:none"] {
    display: none !important;
}

.wa-kanban-board-container,
#kanbanBoardView {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   TOPBAR DO CRM KANBAN (GLASSMORPHISM & ESTILO KOMMO/MONDAY)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-topbar {
    padding: 16px 24px 12px 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.wa-kanban-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wa-kanban-brand-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-kanban-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 168, 132, 0.2), rgba(16, 185, 129, 0.35));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #00e699;
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0, 230, 153, 0.2);
}

.wa-kanban-heading {
    margin: 0;
    font-size: 17.5px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.wa-kanban-subheading {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.wa-kanban-pipeline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    color: #10b981;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.wa-kanban-actions-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wa-kanban-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 7px 14px;
    width: 240px;
    transition: all 0.2s ease;
}

.wa-kanban-search-box:focus-within {
    width: 280px;
    border-color: #00e699;
    box-shadow: 0 0 0 3px rgba(0, 230, 153, 0.18);
    background: rgba(30, 41, 59, 1);
}

.wa-kanban-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #f8fafc;
    font-size: 12.5px;
    width: 100%;
}

.wa-kanban-search-box i {
    color: #64748b;
    font-size: 13px;
}

.wa-kanban-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-kanban-btn {
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    user-select: none;
}

.wa-kanban-btn.primary {
    background: linear-gradient(135deg, #00a884, #10b981);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 168, 132, 0.3);
}

.wa-kanban-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 168, 132, 0.45);
    filter: brightness(1.08);
}

.wa-kanban-btn.secondary {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.wa-kanban-btn.secondary:hover {
    background: rgba(51, 65, 85, 0.95);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════════════════
   FILTROS RÁPIDOS EM PÍLULAS (ESTILO PIPEFY / WASELLER)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-filters-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.wa-kanban-filter-pill {
    height: 30px;
    padding: 0 12px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.16s ease;
}

.wa-kanban-filter-pill:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

.wa-kanban-filter-pill.active {
    background: rgba(0, 168, 132, 0.18);
    border-color: rgba(0, 230, 153, 0.45);
    color: #00e699;
    box-shadow: 0 2px 8px rgba(0, 230, 153, 0.15);
}

.wa-kanban-filter-pill .pill-count {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
}

.wa-kanban-filter-pill.active .pill-count {
    background: rgba(0, 230, 153, 0.25);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   BARRA DE MÉTRICAS KPIS DO FUNIL
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-metrics-bar {
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    flex-shrink: 0;
}

.wa-kanban-metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    min-width: 155px;
    transition: transform 0.16s ease, border-color 0.16s ease;
}

.wa-kanban-metric-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
}

.wa-kanban-metric-card.blue .metric-icon { background: rgba(59, 130, 246, 0.16); color: #3b82f6; }
.wa-kanban-metric-card.teal .metric-icon { background: rgba(0, 168, 132, 0.16); color: #00e699; }
.wa-kanban-metric-card.purple .metric-icon { background: rgba(139, 92, 246, 0.16); color: #a78bfa; }
.wa-kanban-metric-card.emerald .metric-icon { background: rgba(16, 185, 129, 0.16); color: #10b981; }
.wa-kanban-metric-card.amber .metric-icon { background: rgba(245, 158, 11, 0.16); color: #f59e0b; }

.wa-kanban-metric-card .metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}

.wa-kanban-metric-card .metric-val {
    font-size: 17px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.wa-kanban-metric-card .metric-lbl {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   COLUNAS DO KANBAN & QUADRO ARRASTÁVEL
   ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════
   BARRA DE ROLAGEM APRIMORADA DO CRM KANBAN & NAVEGAÇÃO
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-board-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 24px 20px 24px;
    background: #0b1120;
    scrollbar-width: auto;
    scrollbar-color: #3b82f6 #0f172a;
    scroll-behavior: smooth;
}

.wa-kanban-board-scroll::-webkit-scrollbar {
    height: 14px;
    background: #0f172a;
    border-radius: 10px;
}

.wa-kanban-board-scroll::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

.wa-kanban-board-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #1e293b, #334155);
    border-radius: 10px;
    border: 3px solid #0f172a;
    transition: background 0.2s ease;
    cursor: grab;
}

.wa-kanban-board-scroll::-webkit-scrollbar-thumb:hover {
    background: #00a884;
}

.wa-kanban-board-scroll::-webkit-scrollbar-thumb:active {
    background: #10b981;
    cursor: grabbing;
}

.wa-kanban-column-body::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.wa-kanban-column-body::-webkit-scrollbar-track {
    background: transparent;
}

.wa-kanban-column-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.wa-kanban-column-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.wa-kanban-col-btn.danger:hover {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.18) !important;
}

.wa-kanban-act-btn.danger:hover {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.18) !important;
}

.wa-kanban-columns-grid {
    display: flex;
    gap: 16px;
    height: 100%;
    align-items: stretch;
}

.wa-kanban-column {
    width: 320px;
    min-width: 320px;
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wa-kanban-column-header {
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 3px solid #3b82f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.wa-kanban-column-header .header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    flex-wrap: wrap;
}

.wa-kanban-stage-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.wa-kanban-stage-title {
    font-size: 14px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-kanban-stage-count {
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1px 7px;
    color: #94a3b8;
}

.wa-kanban-stage-val {
    font-size: 10.5px;
    background: rgba(16, 185, 129, 0.16);
    color: #10b981;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.wa-kanban-column-actions {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.wa-kanban-col-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 11px;
    transition: all 0.15s ease;
}

.wa-kanban-col-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.wa-kanban-column-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.18s ease;
}

.wa-kanban-column-body.drag-over {
    background: rgba(0, 168, 132, 0.08);
    outline: 2px dashed #00e699;
    outline-offset: -4px;
    border-radius: 12px;
}

.wa-kanban-empty-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: #64748b;
    font-size: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.3);
}

.wa-kanban-empty-col .empty-icon {
    font-size: 24px;
    color: #475569;
    margin-bottom: 6px;
}

.wa-kanban-empty-col .empty-title {
    font-weight: 600;
    color: #94a3b8;
}

.wa-kanban-empty-col .empty-hint {
    font-size: 10.5px;
    color: #64748b;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS MODERNOS DO KANBAN
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: grab;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    user-select: none;
    position: relative;
}

.wa-kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    border-color: rgba(0, 230, 153, 0.4);
}

.wa-kanban-card.dragging {
    opacity: 0.45;
    transform: scale(0.96) rotate(1.5deg);
    cursor: grabbing;
}

.wa-kanban-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.wa-kanban-card-header .user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.wa-kanban-card-header .user-meta {
    min-width: 0;
    flex: 1;
}

.wa-kanban-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.wa-kanban-card-avatar-text {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 13.5px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wa-kanban-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-kanban-card-phone {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-kanban-card-time {
    font-size: 10.5px;
    color: #64748b;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.wa-kanban-deal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: #10b981;
    font-size: 11px;
    font-weight: 800;
    align-self: flex-start;
}

.wa-kanban-deal-pill .os-num {
    color: #6ee7b7;
    font-size: 10px;
    opacity: 0.8;
    margin-left: 2px;
}

.wa-kanban-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.wa-kanban-card-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.wa-kanban-card-msg {
    font-size: 11.5px;
    color: #cbd5e1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    padding: 6px 9px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-kanban-card-msg i {
    color: #00e699;
    margin-right: 4px;
}

.wa-kanban-followup-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.wa-kanban-note-preview {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(245, 158, 11, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    border-left: 2px solid #f59e0b;
}

.wa-kanban-note-preview i {
    color: #f59e0b;
}

.wa-kanban-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wa-kanban-card-actions {
    display: flex;
    gap: 5px;
}

.wa-kanban-act-btn {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    transition: all 0.15s ease;
}

.wa-kanban-act-btn:hover {
    color: #00e699;
    border-color: #00e699;
    background: rgba(0, 230, 153, 0.15);
    transform: scale(1.08);
}

.wa-kanban-act-btn .note-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 4px #f59e0b;
}

.wa-kanban-stage-select {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    outline: none;
    max-width: 140px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.wa-kanban-stage-select:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #f8fafc;
}

/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE KANBAN: PILULAS DE VALOR, FILTRO DE ATENDENTES E SLA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-kanban-deal-pill {
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-kanban-deal-pill:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10b981;
    transform: translateY(-1px);
}

.wa-kanban-add-deal-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.15s ease;
}

.wa-kanban-add-deal-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: #10b981;
    color: #10b981;
}

.wa-kanban-card-sla {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

.wa-kanban-advance-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.15s ease;
}

.wa-kanban-advance-btn:hover {
    background: #00a884;
    color: #ffffff;
    border-color: #00a884;
    transform: translateX(1px);
}

.wa-kanban-attendant-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
}

.wa-kanban-attendant-filter-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 3px 12px;
    margin-left: auto;
}

.wa-kanban-attendant-filter-box i {
    color: #38bdf8;
    font-size: 11px;
}

.wa-kanban-attendant-filter-box select {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.wa-kanban-attendant-filter-box select option {
    background: #1e293b;
    color: #f8fafc;
}

.wa-kanban-add-column-wrapper {
    width: 280px;
    min-width: 280px;
    display: flex;
    align-items: flex-start;
}

.wa-kanban-add-column-btn {
    width: 100%;
    padding: 24px 20px;
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(10px);
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-kanban-add-column-btn:hover {
    border-color: #00e699;
    color: #00e699;
    background: rgba(0, 168, 132, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 230, 153, 0.15);
}

.wa-kanban-add-column-btn .add-col-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(0, 168, 132, 0.15);
    color: #00e699;
    display: grid;
    place-items: center;
    font-size: 16px;
    margin-bottom: 4px;
}

.wa-kanban-add-column-btn .add-col-text {
    font-size: 13.5px;
    font-weight: 700;
    color: #f8fafc;
}

.wa-kanban-add-column-btn .add-col-sub {
    font-size: 11px;
    color: #64748b;
}

/* Modal Color Chips */
.wa-kanban-color-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.wa-color-chip {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-color-chip:hover {
    transform: scale(1.15);
}

.wa-color-chip.active {
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.wa-color-input-native {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    background: transparent;
    padding: 0;
}

/* Feed de Notas do Lead */
.wa-kanban-notes-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 80px;
}

.wa-kanban-note-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.wa-kanban-note-item .note-del-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.wa-kanban-note-item .note-del-btn:hover {
    color: #ef4444;
}

.wa-kanban-new-note-wrap {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-top: 6px;
}

.wa-kanban-toast {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.wa-kanban-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.wa-kanban-note-item {
    padding: 10px 12px;
    background: var(--wa-bg-input);
    border: 1px solid var(--wa-border);
    border-radius: 8px;
    margin-bottom: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: CONFIGURAÇÃO DE ABAS DO WASELLER
   ══════════════════════════════════════════════════════════════════════════ */
.wa-pill.custom-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-right: 8px;
}

.wa-pill.custom-tab .tab-close-icon {
    font-size: 13px;
    color: var(--wa-text-muted);
    margin-left: 2px;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

.wa-pill.custom-tab .tab-close-icon:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.wa-pill.add-tab-btn {
    border-style: dashed;
    border-color: rgba(0, 168, 132, 0.4);
    color: #00a884;
    cursor: pointer;
}

.wa-pill.add-tab-btn:hover {
    background: rgba(0, 168, 132, 0.12);
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: COPILOT IA LIVE PANEL (4 ESTILOS DE RESPOSTA EM TEMPO REAL)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-copilot-live-panel,
.copilot-live-panel {
    background: var(--wa-bg-sidebar);
    border-top: 1px solid var(--wa-border);
    border-bottom: 1px solid var(--wa-border);
    padding: 10px 14px;
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 220px;
    overflow-y: auto;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.copilot-live-header,
.wa-copilot-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.copilot-live-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #c084fc;
}

.copilot-close-btn,
.wa-copilot-close-btn {
    background: transparent;
    border: none;
    color: var(--wa-icon-gray);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    border-radius: 4px;
}

.copilot-close-btn:hover,
.wa-copilot-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.wa-copilot-customer-quote {
    font-size: 12px;
    color: var(--wa-text-secondary);
    background: var(--wa-bg-input);
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #a855f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-copilot-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}

.wa-copilot-card {
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.wa-copilot-card:hover {
    border-color: #a855f7;
    transform: translateY(-1px);
}

.wa-copilot-card.calm { border-top: 3px solid #06b6d4; }
.wa-copilot-card.professional { border-top: 3px solid #3b82f6; }
.wa-copilot-card.commercial { border-top: 3px solid #10b981; }
.wa-copilot-card.technical { border-top: 3px solid #8b5cf6; }

.wa-copilot-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-copilot-card-head .style-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--wa-text-primary);
}

.wa-copilot-card-head .card-actions {
    display: flex;
    gap: 4px;
}

.copilot-act-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: var(--wa-bg-input);
    border: 1px solid var(--wa-border);
    color: var(--wa-icon-gray);
    font-size: 11px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.15s ease;
}

.copilot-act-btn:hover {
    background: var(--wa-bg-hover);
    color: var(--wa-text-primary);
}

.copilot-act-btn.send:hover {
    background: #00a884;
    color: #fff;
    border-color: #00a884;
}

.wa-copilot-card-body {
    font-size: 12px;
    color: var(--wa-text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: APRIMORADOR & CORRETOR ORTOGRÁFICO POPOVER
   ══════════════════════════════════════════════════════════════════════════ */
.wa-text-enhance-menu {
    position: absolute;
    bottom: 60px;
    left: 120px;
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 240px;
    animation: scaleIn 0.15s ease;
}

.wa-enhance-header {
    font-size: 11px;
    font-weight: 700;
    color: #c084fc;
    padding: 4px 8px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wa-enhance-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--wa-text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.wa-enhance-item:hover {
    background: var(--wa-bg-hover);
    color: #00e699;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: CHIP DE ASSINATURA RÁPIDA NO INPUT BAR
   ══════════════════════════════════════════════════════════════════════════ */
.wa-sig-toggle-chip {
    padding: 4px 10px;
    border-radius: 16px;
    border: 1px solid var(--wa-border);
    background: var(--wa-bg-input);
    color: var(--wa-text-secondary);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.wa-sig-toggle-chip.active {
    background: rgba(0, 168, 132, 0.15);
    border-color: rgba(0, 168, 132, 0.4);
    color: #00a884;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: TRADUÇÃO DE MENSAGENS EM TEMPO REAL & BOTÕES NO BALÃO
   ══════════════════════════════════════════════════════════════════════════ */
.wa-balloon-top-btns {
    position: absolute;
    top: 4px;
    right: 6px;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    opacity: 0;
    pointer-events: none;
    z-index: 25;
    transition: opacity 0.15s ease;
}

.wa-balloon:hover .wa-balloon-top-btns {
    opacity: 1;
    pointer-events: auto;
}

.wa-balloon-top-btns .wa-msg-trans-btn,
.wa-balloon-top-btns .wa-msg-chevron-btn {
    position: static !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17, 27, 33, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    color: #aebac1;
    font-size: 11px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.wa-balloon-top-btns .wa-msg-trans-btn:hover {
    background: #00a884;
    color: #fff;
    transform: scale(1.1);
}

.wa-balloon-top-btns .wa-msg-chevron-btn:hover {
    background: #202c33;
    color: #e9edef;
    transform: scale(1.1);
}

.wa-msg-translation-box {
    margin-top: 6px;
    padding: 8px 10px;
    background: rgba(0, 168, 132, 0.12);
    border-left: 3px solid #00a884;
    border-radius: 6px;
    font-size: 12px;
    color: var(--wa-text-primary);
    line-height: 1.4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.wa-trans-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #00e699;
    background: rgba(0, 168, 132, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
}

.wa-trans-copy-btn {
    background: transparent;
    border: 1px solid rgba(0, 168, 132, 0.3);
    color: #00e699;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.15s;
}

.wa-trans-copy-btn:hover {
    background: #00a884;
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: FIGURINHAS, EMOJIS & GIFS MEDIA PICKER
   ══════════════════════════════════════════════════════════════════════════ */
.wa-media-tabs-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #111b21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    scrollbar-width: none;
}

.wa-media-tabs-bar::-webkit-scrollbar {
    display: none;
}

.wa-media-tab-btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    color: #8696a0;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.wa-media-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e9edef;
}

.wa-media-tab-btn.active {
    background: rgba(0, 168, 132, 0.15);
    border-color: rgba(0, 168, 132, 0.4);
    color: #00a884;
    font-weight: 700;
}

.wa-stickers-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 12px;
    flex: 1;
    max-height: 290px;
    overflow-y: auto;
}

.wa-sticker-card {
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background 0.15s, border-color 0.15s;
    user-select: none;
    overflow: hidden;
}

.wa-sticker-card:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(0, 168, 132, 0.08);
    border-color: rgba(0, 168, 132, 0.4);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.wa-sticker-card img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.wa-sticker-card-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 2;
}

.wa-sticker-card:hover .wa-sticker-card-del {
    opacity: 1;
}

.wa-sticker-card-del:hover {
    transform: scale(1.15);
    background: #dc2626;
}

.wa-sticker-card-fav {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17, 27, 33, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 2;
}

.wa-sticker-card:hover .wa-sticker-card-fav {
    opacity: 1;
}

.wa-sticker-card-fav.active {
    opacity: 1;
    background: #fbbf24;
    color: #111b21;
}

.wa-sticker-card-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 27, 33, 0.9);
    font-size: 9px;
    font-weight: 700;
    color: #e9edef;
    text-align: center;
    padding: 2px 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    opacity: 0.9;
}

.wa-emojis-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.wa-emoji-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: transform 0.12s ease;
}

.wa-emoji-btn:hover {
    transform: scale(1.25);
    background: var(--wa-bg-hover);
}

.wa-gifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.wa-gif-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.wa-gif-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wa-gif-card .gif-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: ALERTAS DE FOLLOW-UP & AGENDAMENTOS
   ══════════════════════════════════════════════════════════════════════════ */
.wa-followup-alert-popup {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #111b21;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999999;
    max-width: 340px;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.wa-followup-alert-popup.visible {
    opacity: 1;
    transform: translateY(0);
}

.wa-schedule-item-card {
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

.wa-schedule-item-card.overdue {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

/* ══════════════════════════════════════════════════════════════════════════
   INTEGRAÇÃO COM O ECOSSISTEMA ERP (CATÁLOGO, PRODUTOS, OS, PIX)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-erp-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-erp-product-card:hover {
    border-color: #00a884;
    background: rgba(0, 168, 132, 0.06);
    transform: translateY(-1px);
}

.wa-erp-os-card {
    background: var(--wa-bg-card);
    border: 1px solid var(--wa-border);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wa-erp-os-card:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    transform: translateY(-1px);
}

.wa-erp-quick-btn {
    transition: all 0.18s ease;
}

.wa-erp-quick-btn:hover {
    border-color: #00a884 !important;
    background: rgba(0, 168, 132, 0.12) !important;
    transform: translateY(-1px);
}

.wa-kanban-os-badge {
    animation: fadeIn 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: DROPDOWN DE EXPORTAÇÃO DE CONTATOS (CSV & VCARD .VCF)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-export-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 250px;
    background: var(--wa-bg-card, #111b21);
    border: 1px solid var(--wa-border, #2a3942);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    overflow: hidden;
    padding: 6px;
    animation: fadeIn 0.2s ease;
}

.wa-export-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    color: var(--wa-text-primary, #e9edef);
}

.wa-export-option:hover {
    background: var(--wa-bg-hover, #202c33);
}

.wa-export-option i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.wa-export-option strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.wa-export-option small {
    display: block;
    font-size: 11px;
    color: var(--wa-text-muted, #8696a0);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: PÍLULA DE VELOCIDADE DO PLAYER DE ÁUDIO (1x, 1.5x, 2x)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-audio-speed-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #00e699;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    line-height: 1.4;
    white-space: nowrap;
}

.wa-audio-speed-btn:hover {
    background: #00e699;
    color: #111b21;
    transform: scale(1.06);
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: BARRA DE GRAVAÇÃO DE ÁUDIO AO VIVO (MEDIA RECORDER)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-voice-record-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    animation: fadeIn 0.2s ease;
}

.wa-record-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #ef4444;
}

.wa-record-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse 1s infinite alternate;
}

.wa-record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-record-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wa-record-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.wa-record-btn.cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.wa-record-btn.send {
    background: #00a884;
    color: #ffffff;
}

.wa-record-btn.send:hover {
    background: #008f6f;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: MENU FLUTUANTE DE COMANDOS SLASH ( / ) COM MACROS
   ══════════════════════════════════════════════════════════════════════════ */
.wa-slash-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 16px;
    width: min(480px, calc(100% - 32px));
    max-height: 320px;
    background: var(--wa-bg-card, #1f2c34);
    border: 1px solid var(--wa-border, #2a3942);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    z-index: 1050;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.18s ease;
}

.wa-slash-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--wa-border, #2a3942);
    font-size: 12px;
    font-weight: 700;
    color: #e9edef;
}

.wa-slash-items {
    overflow-y: auto;
    padding: 6px;
    max-height: 270px;
}

.wa-slash-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wa-slash-item:hover,
.wa-slash-item.active {
    background: var(--wa-bg-hover, #2a3942);
}

.wa-slash-item-key {
    background: rgba(0, 168, 132, 0.15);
    color: #00e699;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    white-space: nowrap;
}

.wa-slash-item-content {
    flex: 1;
    min-width: 0;
}

.wa-slash-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #e9edef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-slash-item-preview {
    font-size: 11px;
    color: #8696a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: DRAWER LATERAL DE OPORTUNIDADE & FUNIL CRM
   ══════════════════════════════════════════════════════════════════════════ */
.wa-drawer-deal-card {
    background: var(--wa-bg-card, #111b21);
    border: 1px solid var(--wa-border, #2a3942);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

.wa-deal-select,
.wa-deal-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--wa-bg-input, #202c33);
    border: 1px solid var(--wa-border, #2a3942);
    color: #e9edef;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.wa-deal-select:focus,
.wa-deal-input:focus {
    border-color: #00a884;
}

@keyframes pulse {
    0% { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.15); }
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: DRAWER DE DADOS DA MENSAGEM (ESTILO WHATSAPP ORIGINAL + WASELLER)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-message-info-drawer {
    background: var(--wa-bg-panel, #111b21);
    border-left: 1px solid var(--wa-border, #202c33);
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wa-msg-info-preview-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.wa-msg-info-status-card {
    background: var(--wa-bg-card, #1f2c34);
    border: 1px solid var(--wa-border, #2a3942);
    border-radius: 12px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wa-msg-info-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.wa-status-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wa-status-left strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e9edef;
}

.wa-status-left small {
    display: block;
    font-size: 12px;
    color: #8696a0;
    margin-top: 2px;
}

.wa-status-divider {
    height: 1px;
    background: var(--wa-border, rgba(255, 255, 255, 0.08));
    margin: 0;
}

.wa-msg-menu-item.highlight-crm {
    color: #00e699 !important;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin: 3px 0;
}

.wa-msg-menu-item.highlight-crm:hover {
    background: rgba(0, 230, 153, 0.12) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: MODAL MODERNO DE APAGAR MENSAGEM (TODOS VS MIM)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-delete-card {
    background: #1f2c34;
    border: 1px solid #2a3942;
    border-radius: 16px;
    padding: 24px;
    width: 360px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.2s ease;
}

.wa-delete-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #e9edef;
    margin-bottom: 10px;
}

.wa-delete-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #8696a0;
    margin-bottom: 22px;
}

.wa-delete-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-del-btn {
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.wa-del-btn.delete-all {
    background: #ef4444;
    color: #ffffff;
}

.wa-del-btn.delete-all:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

.wa-del-btn.delete-me {
    background: rgba(255, 255, 255, 0.08);
    color: #e9edef;
}

.wa-del-btn.delete-me:hover {
    background: rgba(255, 255, 255, 0.14);
}

.wa-del-btn.cancel {
    background: transparent;
    color: #8696a0;
}

.wa-del-btn.cancel:hover {
    color: #e9edef;
}

/* ══════════════════════════════════════════════════════════════════════════
   NOVO: BARRA DE SELEÇÃO MÚLTIPLA & BALÃO APAGADO
   ══════════════════════════════════════════════════════════════════════════ */
.wa-selection-action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #202c33;
    border-top: 1px solid #2a3942;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1020;
    animation: slideUp 0.18s ease;
}

.wa-sel-close-btn {
    background: transparent;
    border: none;
    color: #8696a0;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.wa-sel-close-btn:hover {
    color: #e9edef;
}

.wa-sel-count-label {
    font-size: 14px;
    font-weight: 600;
    color: #e9edef;
}

.wa-sel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-sel-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #e9edef;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.wa-sel-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.wa-sel-btn.danger:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.wa-msg-select-check {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    z-index: 10;
}

body.wa-select-mode .wa-msg-select-check {
    display: block;
}

body.wa-select-mode .wa-balloon.out .wa-msg-select-check {
    left: -32px;
}

body.wa-select-mode .wa-balloon.in .wa-msg-select-check {
    right: -32px;
}

.wa-balloon-text.deleted {
    font-style: italic;
    color: #8696a0 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   GAVETA LATERAL: PESQUISAR MENSAGENS NA CONVERSA (WHATSAPP WEB ORIGINAL)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-search-messages-drawer {
    width: 380px;
    min-width: 380px;
    max-width: 380px;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    flex-shrink: 0;
    box-sizing: border-box;
    background: var(--wa-bg-sidebar, #111622);
    border-left: 1px solid var(--wa-border, rgba(255,255,255,0.08));
}

.wa-drawer-search-bar {
    padding: 10px 14px;
    background: var(--wa-bg-header, #111622);
    border-bottom: 1px solid var(--wa-border, rgba(255,255,255,0.06));
}

.wa-drawer-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--wa-bg-input, #161c28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 7px 12px;
}

.wa-drawer-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--wa-text-primary, #f1f5f9);
    font-size: 13px;
    font-family: inherit;
}

.wa-search-clear-btn {
    background: transparent;
    border: none;
    color: var(--wa-icon-gray, #94a3b8);
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
}

.wa-search-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0, 168, 132, 0.08);
    border-bottom: 1px solid rgba(0, 168, 132, 0.2);
    font-size: 11.5px;
    color: #00e699;
    font-weight: 600;
}

.wa-search-nav-btns {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-search-nav-btn {
    background: var(--wa-bg-card, #161c28);
    border: 1px solid var(--wa-border, rgba(255,255,255,0.1));
    color: var(--wa-text-primary, #f1f5f9);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-search-nav-btn:hover {
    background: var(--wa-bg-hover, #1e2638);
    border-color: #00a884;
}

.wa-search-results-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-search-placeholder {
    text-align: center;
    padding: 48px 16px;
    color: var(--wa-text-muted, #64748b);
}

.wa-search-result-card {
    background: var(--wa-bg-card, #161c28);
    border: 1px solid var(--wa-border, rgba(255,255,255,0.06));
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-search-result-card:hover {
    background: var(--wa-bg-hover, #1c2333);
    border-color: rgba(0, 168, 132, 0.4);
    transform: translateY(-1px);
}

.wa-search-result-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--wa-text-muted, #8696a0);
    margin-bottom: 4px;
}

.wa-search-result-sender {
    font-weight: 600;
    color: #38bdf8;
}

.wa-search-result-snippet {
    font-size: 12.5px;
    color: var(--wa-text-secondary, #cbd5e1);
    line-height: 1.4;
    word-break: break-word;
}

/* Destaque das palavras encontradas (amarelo dourado suave) */
.wa-search-match {
    background: rgba(250, 204, 21, 0.35);
    color: #fef08a;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 700;
}

/* Animação quando salta para a mensagem na timeline */
.wa-balloon.wa-balloon-highlighted {
    animation: balloonHighlightPulse 2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes balloonHighlightPulse {
    0% {
        outline: 3px solid #00e699;
        box-shadow: 0 0 20px rgba(0, 230, 153, 0.6);
        transform: scale(1.02);
    }
    70% {
        outline: 2px solid rgba(0, 230, 153, 0.4);
        box-shadow: 0 0 10px rgba(0, 230, 153, 0.2);
    }
    100% {
        outline: none;
        box-shadow: none;
        transform: scale(1);
    }
}

/* Barra de Carregar Mais Histórico no Topo da Timeline */
.wa-history-loader-top {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px 0;
    width: 100%;
}

.wa-load-more-btn {
    background: rgba(22, 28, 40, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--wa-text-secondary, #94a3b8);
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wa-load-more-btn:hover {
    background: #1e2638;
    color: #00e699;
    border-color: rgba(0, 230, 153, 0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wa-search-deep-footer {
    padding: 10px 14px;
    background: var(--wa-bg-header, #111622);
    border-top: 1px solid var(--wa-border, rgba(255,255,255,0.08));
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS DE DOCUMENTOS, LOCALIZAÇÃO & CONTATOS NO CHAT
   ══════════════════════════════════════════════════════════════════════════ */
.wa-msg-doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    max-width: 340px;
}

.wa-msg-doc-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.wa-msg-doc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-msg-doc-icon.pdf { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.wa-msg-doc-icon.excel { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.wa-msg-doc-icon.word { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.wa-msg-doc-icon.generic { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.wa-msg-doc-meta {
    flex: 1;
    min-width: 0;
}

.wa-msg-doc-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--wa-text-primary, #f1f5f9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-msg-doc-sub {
    font-size: 11px;
    color: var(--wa-text-muted, #8696a0);
    margin-top: 2px;
}

.wa-msg-doc-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--wa-bg-input, #161c28);
    border: 1px solid var(--wa-border, rgba(255,255,255,0.1));
    color: var(--wa-text-primary, #f1f5f9);
    display: grid;
    place-items: center;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.wa-msg-doc-action-btn:hover {
    background: #00a884;
    color: #0b0e14;
    border-color: #00a884;
}

/* Card de Localização */
.wa-msg-location-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    margin-bottom: 4px;
}

.wa-msg-location-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Card de Contato */
.wa-msg-contact-card {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVIDADE MOBILE (Tela de Celular / Tablet)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .wa-dock {
        width: 56px;
    }

    .wa-sidebar-chats {
        width: 320px;
    }

    .wa-contact-lastmsg {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    /* Layout mobile: Dock vira barra inferior, sidebar vira view única */
    body.wa-studio-body {
        flex-direction: column;
    }

    .wa-dock {
        width: 100% !important;
        height: 56px !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 8px;
        gap: 4px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: var(--wa-bg-dock);
        border-top: 1px solid var(--wa-border);
        border-right: none;
    }

    .wa-dock-nav {
        flex-direction: row;
        flex: 1;
        justify-content: space-around;
        align-items: center;
    }

    .wa-dock-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .wa-dock-brand {
        display: none;
    }

    .wa-dock-footer {
        flex-direction: row;
        gap: 4px;
    }

    .wa-main-container {
        padding-bottom: 64px;
    }

    .wa-sidebar-chats {
        width: 100% !important;
        height: 100vh;
        max-width: 100% !important;
        position: absolute;
        z-index: 10;
    }

    /* View de conversa ativa em mobile */
    .wa-active-chat-wrapper {
        position: relative !important;
        flex: 1 1 0% !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }

    body.wa-has-active-chat .wa-sidebar-chats {
        display: none !important;
    }

    body.wa-has-active-chat .wa-conversation-view {
        display: flex !important;
        width: 100% !important;
        flex: 1 !important;
    }

    .wa-conversation-view {
        height: 100vh !important;
    }

    .wa-messages-timeline {
        padding: 12px 8px;
    }

    .wa-balloon {
        max-width: 80% !important;
        font-size: 13.5px !important;
    }

    .wa-input-bar {
        padding: 6px 8px;
        gap: 6px;
    }

    .wa-input-field {
        font-size: 13px;
        padding: 8px 12px;
    }

    .wa-send-btn {
        width: 38px;
        height: 38px;
    }

    .wa-quick-bar {
        gap: 4px;
        padding: 6px 8px;
    }

    .wa-quick-chip {
        font-size: 10.5px;
        padding: 3px 8px;
    }

    .wa-bot-pause-dropdown {
        width: 280px;
        right: -8px;
    }

    .wa-contact-info-drawer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .wa-filter-pills {
        gap: 4px;
        padding: 8px 10px;
    }

    .wa-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .wa-module-view {
        padding: 16px;
    }

    .wa-card-elite {
        padding: 16px;
    }

    /* Toast em mobile: ocupa mais largura */
    .wa-toast {
        min-width: 260px;
        max-width: 90vw;
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .wa-sidebar-chats {
        width: 100% !important;
    }

    .wa-chat-item-row {
        padding: 8px 10px;
    }

    .wa-contact-avatar {
        width: 38px;
        height: 38px;
    }

    .wa-contact-name {
        font-size: 13px;
    }

    .wa-contact-lastmsg {
        font-size: 11px;
        max-width: 140px;
    }

    .wa-dock-btn {
        width: 40px;
        height: 40px;
    }

    .wa-dock-btn i {
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ACESSIBILIDADE BÁSICA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-dock {
    role: "navigation";
    aria-label: "Navegação principal do WhatsApp Studio";
}

.wa-dock-btn:focus-visible {
    outline: 2px solid var(--wa-teal-light);
    outline-offset: 2px;
}

.wa-header-icon-btn:focus-visible {
    outline: 2px solid var(--wa-teal-light);
    outline-offset: 2px;
}

.wa-pill:focus-visible {
    outline: 2px solid var(--wa-teal-light);
    outline-offset: 2px;
}

.wa-btn-primary:focus-visible,
.wa-btn-secondary:focus-visible,
.wa-btn-danger:focus-visible {
    outline: 2px solid var(--wa-teal-light);
    outline-offset: 2px;
}

/* Reduzir animações para usuários com preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   BOTÃO DE RETORNO EM DISPOSITIVOS MÓVEIS (MOBILE BACK BUTTON)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-mobile-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--wa-icon-gray);
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.wa-mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wa-text-primary);
}

@media (max-width: 768px) {
    .wa-mobile-back-btn {
        display: inline-flex;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   SUPRESSÃO DO TOOLTIP FLUTUANTE NO WHATSAPP STUDIO (ZERO OVERLAY / BANNER)
   ══════════════════════════════════════════════════════════════════════════ */
#ozTooltip,
.oz-tooltip,
.oz-tooltip * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE RESILIÊNCIA & SEGURANÇA: BANNER OUTBOX OFFLINE & MASCARAMENTO DLP
   ══════════════════════════════════════════════════════════════════════════ */
.wa-outbox-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    padding: 7px 14px;
    margin: 6px 16px 2px 16px;
    font-size: 12px;
    color: #fde68a;
    backdrop-filter: blur(8px);
    animation: fadeInSlideDown 0.2s ease-out;
}

.wa-outbox-alert-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.wa-outbox-retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f59e0b;
    color: #0f172a;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-outbox-retry-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* DLP / LGPD MASCARAMENTO */
.wa-dlp-masked {
    display: inline-block;
    padding: 0 4px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px dashed rgba(239, 68, 68, 0.45);
    border-radius: 4px;
    color: #fca5a5;
    font-weight: 600;
    cursor: pointer;
    filter: blur(3.5px);
    transition: filter 0.2s ease, background 0.2s ease;
    user-select: none;
}

.wa-dlp-masked:hover,
.wa-dlp-masked.revealed {
    filter: blur(0);
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
    user-select: auto;
}

/* COPILOT RESUMO IA CARD */
.wa-summary-section-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wa-summary-section-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-summary-section-content {
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.45;
}

/* ══════════════════════════════════════════════════════════════════════════
   ONBOARDING / QR CODE CONNECTION SCREEN (AUTÊNTICO WHATSAPP WEB + OZPRO)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-auth-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: radial-gradient(circle at 50% 25%, rgba(0, 168, 132, 0.09) 0%, transparent 60%), #0c1317;
    overflow-y: auto;
    box-sizing: border-box;
}

.wa-auth-card {
    position: relative;
    width: 100%;
    max-width: 860px;
    background: rgba(17, 27, 33, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 168, 132, 0.18);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    box-sizing: border-box;
    animation: waCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wa-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.wa-auth-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00a884 0%, #25d366 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(0, 168, 132, 0.35);
    flex-shrink: 0;
}

.wa-auth-brand-titles h1 {
    font-size: 20px;
    font-weight: 800;
    color: #f0f2f5;
    letter-spacing: -0.3px;
    margin: 0;
}

.wa-auth-brand-titles p {
    font-size: 13px;
    color: #8696a0;
    margin: 3px 0 0 0;
}

.wa-auth-instructions h2 {
    font-size: 16.5px;
    font-weight: 700;
    color: #e9edef;
    margin-bottom: 18px;
}

.wa-auth-steps {
    list-style: none;
    counter-reset: wa-step;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.wa-auth-steps li {
    position: relative;
    counter-increment: wa-step;
    padding-left: 36px;
    font-size: 14px;
    line-height: 1.5;
    color: #aebac1;
}

.wa-auth-steps li::before {
    content: counter(wa-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 168, 132, 0.18);
    color: #00a884;
    border: 1px solid rgba(0, 168, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.wa-auth-steps li strong {
    color: #f0f2f5;
    font-weight: 600;
}

.wa-auth-status-wrap {
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wa-auth-status-notice {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00a884;
}

.wa-auth-refresh-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e9edef;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wa-auth-refresh-btn:hover {
    background: rgba(0, 168, 132, 0.22);
    border-color: #00a884;
    color: #25d366;
    transform: translateY(-1px);
}

.wa-auth-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wa-auth-qr-box {
    position: relative;
    width: 272px;
    height: 272px;
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wa-auth-qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    background: #ffffff;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 14px;
    display: block;
}

.wa-auth-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e9edef;
    text-align: center;
    padding: 16px;
}

.wa-auth-qr-loading i {
    font-size: 38px;
    color: #00a884;
}

.wa-auth-qr-loading-text {
    font-size: 14.5px;
    font-weight: 600;
    color: #e9edef;
}

.wa-auth-qr-loading-sub {
    font-size: 12px;
    color: #8696a0;
    line-height: 1.4;
    max-width: 220px;
}

.wa-auth-qr-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8696a0;
}

.wa-auth-qr-footer i {
    color: #00a884;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL DE ESCOLHA: DESCONECTAR WHATSAPP VS LOGOUT DO SISTEMA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-choice-modal-card {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 480px;
    width: 92%;
    padding: 28px;
    animation: waCardFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f8fafc;
}

.wa-choice-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.wa-choice-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(0, 168, 132, 0.16);
    border: 1px solid rgba(0, 168, 132, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
    font-size: 22px;
    flex-shrink: 0;
}

.wa-choice-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

.wa-choice-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 4px 0 0 0;
}

.wa-choice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wa-choice-btn-card {
    background: rgba(30, 41, 59, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.wa-choice-btn-card:hover {
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.wa-choice-btn-card.primary:hover {
    border-color: #00a884;
    box-shadow: 0 6px 20px rgba(0, 168, 132, 0.2);
}

.wa-choice-btn-card.danger:hover {
    border-color: #ef4444;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.wa-choice-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wa-choice-btn-card.primary .wa-choice-btn-icon {
    background: rgba(0, 168, 132, 0.15);
    color: #25d366;
}

.wa-choice-btn-card.danger .wa-choice-btn-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.wa-choice-btn-text h5 {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.wa-choice-btn-text p {
    font-size: 12px;
    color: #94a3b8;
    margin: 3px 0 0 0;
    line-height: 1.4;
}

@media (max-width: 820px) {
    .wa-auth-card {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 24px;
        text-align: center;
    }
    .wa-auth-brand {
        justify-content: center;
    }
    .wa-auth-instructions h2 {
        text-align: center;
    }
    .wa-auth-steps {
        text-align: left;
    }
    .wa-auth-status-wrap {
        flex-direction: column;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   APARELHOS & MÚLTIPLOS NÚMEROS — QR HUB & MULTI-DEVICE MANAGEMENT
   ══════════════════════════════════════════════════════════════════════════ */
.wa-devices-metric-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}
.wa-devices-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.wa-devices-metric-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.wa-devices-metric-icon.blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.wa-devices-metric-icon.emerald { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.wa-devices-metric-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.wa-devices-metric-icon.purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.wa-devices-metric-val {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.wa-devices-metric-lbl {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* Hub de Pareamento Elegante com QR Code */
.wa-qr-hub-card {
    background: linear-gradient(135deg, rgba(18, 28, 46, 0.95) 0%, rgba(13, 20, 34, 0.98) 100%);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 20px;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 35px rgba(37, 211, 102, 0.12);
    position: relative;
    overflow: hidden;
}
.wa-qr-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #25D366, #128C7E, #38bdf8);
}
@media (max-width: 960px) {
    .wa-qr-hub-card {
        grid-template-columns: 1fr;
    }
}

.wa-qr-instructions-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wa-qr-instruction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13.5px;
    color: #cbd5e1;
    line-height: 1.4;
}
.wa-qr-step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #25D366;
    font-weight: 800;
    font-size: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.wa-qr-viewfinder-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.wa-qr-viewfinder {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: transform 0.2s ease;
}
.wa-qr-viewfinder:hover {
    transform: scale(1.02);
}
.wa-qr-scanner-line {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #25D366, transparent);
    box-shadow: 0 0 12px #25D366;
    animation: waScanAnim 2.8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 5;
}
@keyframes waScanAnim {
    0% { top: 16px; opacity: 0.3; }
    50% { opacity: 1; }
    100% { top: calc(100% - 16px); opacity: 0.3; }
}

/* Card Individual de Número Conectado (Multi-Device) */
.wa-device-chip-card {
    background: linear-gradient(180deg, rgba(22, 32, 48, 0.9) 0%, rgba(13, 20, 32, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.wa-device-chip-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 20px rgba(37, 211, 102, 0.08);
}
.wa-device-chip-card.is-active-channel {
    border-color: rgba(37, 211, 102, 0.5);
    background: linear-gradient(180deg, rgba(22, 40, 48, 0.92) 0%, rgba(11, 24, 30, 0.98) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(37, 211, 102, 0.15);
}
.wa-device-active-ribbon {
    position: absolute;
    top: 0;
    right: 20px;
    background: linear-gradient(135deg, #25D366, #10b981);
    color: #04120a;
    font-size: 9.5px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4);
}

/* ──────────────── CENTRAL QR CODE BRAND BADGE (OZ LOGO EMBLEM) ──────────────── */
.wa-qr-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 12;
    animation: waQrBadgePop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes waQrBadgePop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.wa-qr-center-shield {
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 14px;
    padding: 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 4px #ffffff, 0 6px 16px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.wa-qr-center-inner {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    background: linear-gradient(135deg, #0b141a 0%, #16202c 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1.5px solid rgba(37, 211, 102, 0.6);
    box-shadow: inset 0 0 10px rgba(37, 211, 102, 0.2), 0 0 8px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
}

.wa-qr-center-inner.badge-style-emerald {
    background: linear-gradient(135deg, #061014 0%, #0d1e24 100%);
    border: 1.5px solid rgba(37, 211, 102, 0.85);
    box-shadow: inset 0 0 12px rgba(37, 211, 102, 0.3), 0 0 10px rgba(37, 211, 102, 0.35);
}

.wa-qr-center-inner.badge-style-gold {
    background: linear-gradient(135deg, #141006 0%, #201a0a 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.85);
    box-shadow: inset 0 0 12px rgba(245, 158, 11, 0.3), 0 0 10px rgba(245, 158, 11, 0.35);
}
.wa-qr-center-inner.badge-style-gold .wa-qr-center-text {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.wa-qr-center-inner.badge-style-blue {
    background: linear-gradient(135deg, #061018 0%, #0b1a2a 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.85);
    box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.3), 0 0 10px rgba(56, 189, 248, 0.35);
}
.wa-qr-center-inner.badge-style-blue .wa-qr-center-text {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.wa-qr-center-inner.badge-style-white {
    background: #ffffff;
    border: 1.5px solid #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.wa-qr-center-inner.badge-style-white .wa-qr-center-text {
    background: #0f172a;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #0f172a;
    text-shadow: none;
}
.wa-qr-center-inner.badge-style-white .wa-qr-subtext {
    color: #25D366;
}

.wa-qr-center-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.wa-qr-center-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #25D366 0%, #00e699 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(37, 211, 102, 0.55);
    user-select: none;
}

.wa-qr-center-text .wa-qr-subtext {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #38bdf8;
    margin-top: 1px;
    text-transform: uppercase;
}

/* Modal e Controles de Customização do QR Code */
.wa-qr-customizer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.wa-qr-style-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.wa-qr-style-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}
.wa-qr-style-card.selected {
    background: rgba(37, 211, 102, 0.12);
    border-color: #25D366;
    box-shadow: 0 0 14px rgba(37, 211, 102, 0.25);
}
.wa-qr-style-preview-mini {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0 auto 8px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}


/* ══════════════════════════════════════════════════════════════════════════
   MODAL DE CONTATOS & CLIENTES ERP
   ══════════════════════════════════════════════════════════════════════════ */
.wa-erp-contacts-modal-box {
    max-width: 920px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.wa-erp-contacts-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-erp-contacts-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-erp-contacts-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 168, 132, 0.15);
    border: 1px solid rgba(0, 168, 132, 0.3);
    color: #00e699;
    display: grid;
    place-items: center;
    font-size: 20px;
}

.wa-erp-contacts-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-erp-contacts-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: #94a3b8;
}

.wa-erp-contacts-controls {
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wa-erp-contacts-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wa-erp-contacts-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.wa-erp-contacts-search-box i {
    position: absolute;
    left: 14px;
    color: #64748b;
    font-size: 14px;
}

.wa-erp-contacts-search-box input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}

.wa-erp-contacts-search-box input:focus {
    border-color: #00a884;
    box-shadow: 0 0 0 3px rgba(0, 168, 132, 0.2);
}

.wa-erp-contacts-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.wa-erp-contact-pill {
    padding: 6px 14px;
    border-radius: 20px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wa-erp-contact-pill:hover {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
}

.wa-erp-contact-pill.active {
    background: rgba(0, 168, 132, 0.15);
    border-color: #00a884;
    color: #00e699;
}

.wa-erp-contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 280px;
    max-height: 55vh;
}

.wa-erp-contact-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.wa-erp-contact-item:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(0, 168, 132, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.wa-erp-contact-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.wa-erp-contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.wa-erp-contact-info {
    min-width: 0;
    flex: 1;
}

.wa-erp-contact-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.wa-erp-contact-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-erp-contact-badge-pf,
.wa-erp-contact-badge-pj {
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.wa-erp-contact-badge-pf {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.wa-erp-contact-badge-pj {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.wa-erp-contact-meta {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wa-erp-contact-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-erp-contact-status-pills {
    display: flex;
    gap: 6px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.wa-erp-pill-debt {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-erp-pill-clean {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-erp-pill-os {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wa-erp-contact-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.wa-erp-btn-chat {
    padding: 7px 14px;
    background: #00a884;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wa-erp-btn-chat:hover {
    background: #008f6f;
    transform: scale(1.02);
}

.wa-erp-btn-detail {
    padding: 7px 12px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.wa-erp-btn-detail:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODAL DE DETALHES DO CLIENTE ERP (FICHA COMPLETA)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-erp-detail-modal-box {
    max-width: 780px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.wa-erp-detail-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.95));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-erp-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wa-erp-card-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.wa-erp-card-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wa-erp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wa-erp-info-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-erp-info-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.wa-erp-info-value {
    font-size: 13px;
    color: #f1f5f9;
    font-weight: 500;
}

.wa-erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    margin-top: 6px;
}

.wa-erp-table th {
    text-align: left;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-erp-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.wa-erp-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Super-Poderes de IA: Transcrição e Pedido 1-Clique */
.wa-transcribe-ai-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(0, 230, 153, 0.12);
    border: 1px solid rgba(0, 230, 153, 0.35);
    color: #00e699;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wa-transcribe-ai-btn:hover {
    background: rgba(0, 230, 153, 0.22);
    border-color: #00e699;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 230, 153, 0.25);
}
.wa-ai-create-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.wa-ai-create-order-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.wa-kanban-board-select {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
}
.wa-kanban-board-select:hover, .wa-kanban-board-select:focus {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.wa-kanban-board-select option {
    background: #0f172a;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    padding: 8px;
}


/* ══════════════════════════════════════════════════════════════════════
   EXPANDABLE DOCK DRAWER & CORNER BADGES (ESTILO OZPRO ERP)
   ══════════════════════════════════════════════════════════════════════ */
.wa-dock {
    position: relative;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-dock-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 8px;
    box-sizing: border-box;
}

.wa-dock-toggle-btn {
    display: flex;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--wa-icon-gray);
    font-size: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 6px;
}

.wa-dock-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    transform: scale(1.05);
}

.wa-dock-btn-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    gap: 12px;
}

.wa-dock-label {
    display: none;
    opacity: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    transition: opacity 0.15s ease;
}

/* Badge no Canto Superior Direito Padronizado (Sem tampar o ícone) */
.wa-dock-btn .wa-dock-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    background: #25D366 !important;
    color: #0b141a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45) !important;
    z-index: 15 !important;
    pointer-events: none;
    border: 2px solid #202c33 !important;
    line-height: 1 !important;
}

/* ESTADO EXPANDIDO (.wa-dock.expanded) */
.wa-dock.expanded {
    width: 215px !important;
    min-width: 215px !important;
    padding: 12px 10px !important;
    align-items: stretch !important;
}

.wa-dock.expanded .wa-dock-header {
    justify-content: space-between !important;
}

.wa-dock.expanded .wa-dock-nav,
.wa-dock.expanded .wa-dock-footer {
    align-items: stretch !important;
}

.wa-dock.expanded .wa-dock-btn {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 12px !important;
    height: 40px !important;
}

.wa-dock.expanded .wa-dock-btn-inner {
    justify-content: flex-start !important;
}

.wa-dock.expanded .wa-dock-label {
    display: inline-block !important;
    opacity: 1 !important;
}

.wa-dock.expanded .wa-dock-badge {
    position: static !important;
    margin-left: auto !important;
    border: none !important;
    transform: none !important;
}

.wa-dock.expanded .wa-dock-user-wrap {
    justify-content: flex-start !important;
    padding: 0 8px !important;
    gap: 10px !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE: CONTRASTE MODO COPILOT & TAGS DE ORIGEM DAS MENSAGENS (PC/CELULAR/BOT)
   ══════════════════════════════════════════════════════════════════════════ */
.wa-bot-status-chip.copilot {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
    font-weight: 700 !important;
}
.wa-bot-status-chip.copilot:hover {
    background: #bae6fd !important;
    border-color: #0284c7 !important;
}
.wa-bot-status-chip.copilot .wa-bot-status-dot {
    background: #0284c7 !important;
    box-shadow: 0 0 6px rgba(2, 132, 199, 0.6) !important;
}
.wa-bot-status-chip.copilot .wa-bot-chevron {
    color: #0369a1 !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .wa-bot-status-chip.copilot {
    background: rgba(56, 189, 248, 0.18) !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
}
[data-theme="dark"] .wa-bot-status-chip.copilot:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    border-color: #38bdf8 !important;
}
[data-theme="dark"] .wa-bot-status-chip.copilot .wa-bot-status-dot {
    background: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6) !important;
}
[data-theme="dark"] .wa-bot-status-chip.copilot .wa-bot-chevron {
    color: #38bdf8 !important;
}

/* Dropdown de Controle do Bot / Copilot - Alta Legibilidade */
.wa-bot-pause-dropdown {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.2), 0 2px 8px rgba(15, 23, 42, 0.08) !important;
    z-index: 2000 !important;
}
[data-theme="dark"] .wa-bot-pause-dropdown {
    background: #1f2c34 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.wa-bot-dropdown-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
[data-theme="dark"] .wa-bot-dropdown-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
.wa-bot-action-item {
    color: #0f172a !important;
}
[data-theme="dark"] .wa-bot-action-item {
    color: #e9edef !important;
}
.wa-bot-action-item:hover {
    background: #f1f5f9 !important;
}
[data-theme="dark"] .wa-bot-action-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
.wa-bot-action-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
[data-theme="dark"] .wa-bot-action-title {
    color: #f8fafc !important;
}
.wa-bot-action-sub {
    font-size: 11.5px !important;
    color: #475569 !important;
}
[data-theme="dark"] .wa-bot-action-sub {
    color: #94a3b8 !important;
}
.wa-bot-dropdown-section-title {
    color: #64748b !important;
    font-weight: 800 !important;
}
[data-theme="dark"] .wa-bot-dropdown-section-title {
    color: #94a3b8 !important;
}

/* Badges de Origem no Balão de Mensagem (Visível Apenas para o Atendente) */
.wa-msg-origin-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-right: 4px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.wa-msg-origin-tag.web {
    background: rgba(2, 132, 199, 0.15);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.3);
}
.wa-msg-origin-tag.mobile {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.wa-msg-origin-tag.bot {
    background: rgba(147, 51, 234, 0.15);
    color: #7c3aed;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

[data-theme="dark"] .wa-msg-origin-tag.web {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}
[data-theme="dark"] .wa-msg-origin-tag.mobile {
    background: rgba(52, 211, 153, 0.18);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}
[data-theme="dark"] .wa-msg-origin-tag.bot {
    background: rgba(192, 132, 252, 0.18);
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.35);
}

/* Ajustes de Layout da Tela do Meio: Zero sobreposição e rolagem perfeita */
.wa-messages-timeline {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 18px 7% 36px 7% !important;
    position: relative !important;
    scroll-behavior: smooth !important;
}

.wa-bottom-resizable-area {
    position: relative !important;
    z-index: 15 !important;
    flex-shrink: 0 !important;
}


/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE: RECOLHER BARRAS INFERIORES (IA LIVE & ATALHOS) PARA MAIOR ESPAÇO
   ══════════════════════════════════════════════════════════════════════════ */
.wa-bottom-resizable-area.tools-collapsed #copilotLivePanel,
.wa-bottom-resizable-area.tools-collapsed #waAiLiveToolbar,
.wa-bottom-resizable-area.tools-collapsed .wa-quick-bar {
    display: none !important;
}

.wa-bottom-resizable-area.tools-collapsed {
    min-height: 56px !important;
    height: auto !important;
}

.wa-collapse-tools-btn {
    color: var(--wa-text-muted, #94a3b8) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 6px 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-collapse-tools-btn:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
}

.wa-bottom-resizable-area.tools-collapsed .wa-collapse-tools-btn {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.15) !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE: SELETOR DIRETO DE ETAPA DO CRM KANBAN NO SUBTÍTULO DA CONVERSA
   ══════════════════════════════════════════════════════════════════════════ */
.wa-chat-stage-badge {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.wa-chat-stage-badge:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.wa-stage-selector-dropdown {
    position: absolute;
    top: 54px;
    left: 72px;
    background: var(--wa-bg-card, #202c33);
    border: 1px solid var(--wa-border, rgba(255,255,255,0.1));
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.5);
    z-index: 1000;
    min-width: 210px;
    padding: 6px 0;
    animation: waMenuScale 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-stage-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
    color: var(--wa-text-primary, #e9edef);
    cursor: pointer;
    transition: background 0.15s ease;
}

.wa-stage-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .wa-stage-selector-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="light"] .wa-stage-dropdown-item {
    color: #1e293b !important;
}

[data-theme="light"] .wa-stage-dropdown-item:hover {
    background: #f1f5f9 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   UPGRADE: TRANSCRIÇÃO E RESUMO IA DE ÁUDIOS DO WHATSAPP
   ══════════════════════════════════════════════════════════════════════════ */
.wa-msg-transcription {
    margin-top: 6px;
    padding: 8px 12px;
    background: rgba(0, 168, 132, 0.08);
    border-left: 3px solid #00a884;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--wa-text-primary, #e9edef);
    line-height: 1.45;
    width: 100%;
}

[data-theme="light"] .wa-msg-transcription {
    background: rgba(0, 168, 132, 0.06);
    color: #1e293b;
}

.wa-trans-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--wa-text-primary, #e9edef);
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-trans-action-btn:hover {
    background: rgba(0, 168, 132, 0.2);
    border-color: #00a884;
    color: #00e699;
}

.wa-trans-action-btn.erp {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.wa-trans-action-btn.erp:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
}

/* Botões Interativos Recebidos / Enviados no Balão */
.wa-interactive-buttons-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

.wa-interactive-bubble-btn {
    width: 100%;
    padding: 7px 12px;
    border-radius: 6px;
    background: rgba(0, 168, 132, 0.1);
    border: 1px solid rgba(0, 168, 132, 0.3);
    color: #00e699;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wa-interactive-bubble-btn:hover {
    background: #00a884;
    color: #ffffff;
}

[data-theme="light"] .wa-interactive-bubble-btn {
    color: #008f6f;
    border-color: rgba(0, 168, 132, 0.4);
    background: rgba(0, 168, 132, 0.08);
}

[data-theme="light"] .wa-interactive-bubble-btn:hover {
    background: #00a884;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════════════════
   HIERARQUIA DE CAMADAS & Z-INDEX DEFINITIVA DA TELA DO MEIO (CONVERSA ATIVA)
   Elimina qualquer sobreposição indevida do header, botões ou timeline sobre o drawer
   ══════════════════════════════════════════════════════════════════════════ */
.wa-active-header {
    position: relative !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
    height: 60px !important;
    box-sizing: border-box !important;
}

.wa-active-header .wa-active-contact {
    min-width: 140px !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

.wa-active-header .wa-header-actions {
    position: relative !important;
    z-index: 501 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
    margin-left: auto !important;
}

.wa-bot-status-container {
    position: relative !important;
    z-index: 502 !important;
    flex-shrink: 0 !important;
}

.wa-bot-pause-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: #1f2c34 !important;
    opacity: 1 !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
}

.wa-labels-popover {
    z-index: 99999 !important;
}

.wa-stage-selector-dropdown {
    z-index: 99999 !important;
}

/* O Drawer lateral de dados do contato fica em camada superior protegida (120) */
.wa-contact-info-drawer {
    position: relative !important;
    z-index: 250 !important;
    background: #111b21 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.5) !important;
    width: 360px !important;
    min-width: 320px !important;
    max-width: 400px !important;
    flex-shrink: 0 !important;
}

.wa-drawer-header {
    position: relative !important;
    z-index: 255 !important;
    background: #202c33 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Oculta botões utilitários secundários em telas médias/estreitas para não colidir */
@media (max-width: 1440px) {
    #btnToggleDLP,
    #btnExportChat,
    #btnSummarizeChat,
    .wa-active-header .wa-header-icon-btn[title*="Traduzir"],
    .wa-active-header .wa-header-icon-btn[title*="Transferir"],
    .wa-active-header .wa-header-icon-btn[title*="Agendar"] {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .wa-contact-info-drawer {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        z-index: 300 !important;
    }
}

.wa-chat-banner-paused {
    position: relative !important;
    z-index: 50 !important;
}

.wa-messages-timeline {
    position: relative !important;
    z-index: 1 !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
}

.wa-bottom-resizable-area {
    position: relative !important;
    z-index: 20 !important;
}

/* Fix para Gaveta de Dados do Contato: Header Fixo e Body Rolável */
.wa-contact-info-drawer {
    display: none;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 250 !important;
    background: #111b21 !important;
}
.wa-drawer-header {
    height: 60px !important;
    background: #202c33 !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 10 !important;
}
.wa-drawer-header h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e9edef !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.wa-drawer-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
}
/* .wa-contact-info-drawer-fixed-header marker */

/* ═══ BARRA OFICIAL DE ARQUIVADAS ACIMA DAS FIXADAS (WHATSAPP MOBILE/WEB) ═══ */
.wa-archived-entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    transition: background 0.15s ease;
    user-select: none;
}
.wa-archived-entry-row:hover {
    background: rgba(255, 255, 255, 0.04);
}
.wa-archived-entry-left {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #e9edef;
}
.wa-archived-entry-left i {
    color: #00a884;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.wa-archived-entry-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: #00a884;
    background: rgba(0, 168, 132, 0.16);
    padding: 2px 8px;
    border-radius: 12px;
}
.wa-archived-header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    cursor: pointer;
    background: #202c33;
    color: #e9edef;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-archived-header-bar:hover {
    background: #2a3942;
}

/* WA MODAL BACKDROP TOP PRIORITY */
.wa-modal-backdrop {
    z-index: 99999 !important;
}
.wa-drawer-close-btn {
    flex-shrink: 0 !important;
    margin-right: 8px !important;
}
.wa-drawer-header h3 {
    flex: 1 1 auto !important;
    margin: 0 !important;
}

/* ═══ PLAYER DE ÁUDIO OFICIAL WHATSAPP COM WAVEFORM & VELOCIDADE ═══ */
.wa-custom-audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.18);
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    box-sizing: border-box;
}
.wa-audio-play-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 168, 132, 0.4);
}
.wa-audio-play-btn:hover {
    transform: scale(1.06);
    background: #029374;
}
.wa-audio-track-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wa-audio-waveform-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.wa-audio-progress-bar {
    height: 100%;
    width: 0%;
    background: #00a884;
    border-radius: 4px;
    transition: width 0.08s linear;
}
.wa-audio-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #8696a0;
}
.wa-audio-speed-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e9edef;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.wa-audio-speed-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ═══ OVERLAY DRAG & DROP DE ARQUIVOS ═══ */
.wa-drag-drop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 20, 26, 0.92);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: modalFadeIn 0.15s ease;
}
.wa-drag-drop-box {
    border: 2px dashed #00a884;
    border-radius: 16px;
    padding: 36px 48px;
    text-align: center;
    background: rgba(0, 168, 132, 0.08);
    color: #e9edef;
}
.wa-drag-drop-box i {
    font-size: 48px;
    color: #00a884;
    margin-bottom: 12px;
    display: block;
}
.wa-drag-drop-box h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}
.wa-drag-drop-box p {
    margin: 0;
    font-size: 13px;
    color: #8696a0;
}

/* ═══ POLIMENTO HEADER DA GAVETA DE CONTATO ═══ */
.wa-contact-info-drawer {
    z-index: 500 !important;
}
.wa-drawer-header {
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    background: #202c33 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.wa-drawer-close-btn {
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    color: #aebac1 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}
.wa-drawer-close-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 50% !important;
}
.wa-drawer-header h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #e9edef !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    flex: 1 1 auto !important;
}


/* ══════════════════════════════════════════════════════════════════════
   UPGRADE OFICIAL: MENU DOCK COM DROPDOWN E SEM (COMPACTO / ACCORDION)
   ══════════════════════════════════════════════════════════════════════ */
/* MODO SEM DROPDOWN (RECOLHIDO 64px) */
.wa-dock:not(.expanded) {
    width: 64px !important;
    min-width: 64px !important;
    padding: 12px 6px !important;
    align-items: center !important;
    overflow-x: hidden !important;
}

.wa-dock:not(.expanded) .wa-dock-header {
    justify-content: center !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    position: relative !important;
}

.wa-dock:not(.expanded) .wa-dock-brand {
    margin-bottom: 0 !important;
}

.wa-dock:not(.expanded) .wa-dock-toggle-btn {
    display: none !important;
}

.wa-dock:not(.expanded):hover .wa-dock-toggle-btn {
    display: flex !important;
    position: absolute !important;
    right: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
}

.wa-dock:not(.expanded) .wa-dock-section {
    width: 28px !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    margin: 10px auto !important;
    padding: 0 !important;
    border: none !important;
}

.wa-dock:not(.expanded) .wa-dock-section-title {
    display: none !important;
}

.wa-dock:not(.expanded) .wa-dock-section-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    align-items: center !important;
}

.wa-dock:not(.expanded) .wa-dock-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    padding: 0 !important;
}

.wa-dock:not(.expanded) .wa-dock-label {
    display: none !important;
}

/* Tooltip instantâneo elegante no hover dos ícones sem dropdown */
.wa-dock:not(.expanded) .wa-dock-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #f8fafc;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px 11px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 99999;
    pointer-events: none;
    animation: wa-fade-in 0.15s ease;
}

/* MODO COM DROPDOWN (EXPANDIDO 224px COM SEÇÕES ACCORDION) */
.wa-dock.expanded {
    width: 224px !important;
    min-width: 224px !important;
    padding: 12px 10px !important;
    align-items: stretch !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.wa-dock.expanded .wa-dock-section {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 10px 4px 10px !important;
    margin: 6px 0 2px 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    border-radius: 6px !important;
    transition: background 0.15s ease;
}

.wa-dock.expanded .wa-dock-section:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

.wa-dock.expanded .wa-dock-section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    color: #8696a0 !important;
}

.wa-dock.expanded .wa-dock-section-title i.section-chevron {
    font-size: 10px !important;
    transition: transform 0.2s ease !important;
    color: #64748b !important;
    margin-left: auto !important;
}

.wa-dock.expanded .wa-dock-section.collapsed i.section-chevron {
    transform: rotate(-90deg) !important;
}

.wa-dock.expanded .wa-dock-section-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
}

.wa-dock.expanded .wa-dock-section.collapsed + .wa-dock-section-group {
    display: none !important;
}

.wa-dock.expanded .wa-dock-btn {
    width: 100% !important;
    height: 38px !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    justify-content: flex-start !important;
}

.wa-dock.expanded .wa-dock-btn-inner {
    justify-content: flex-start !important;
    gap: 12px !important;
}

.wa-dock.expanded .wa-dock-label {
    display: inline-block !important;
    opacity: 1 !important;
    font-size: 13px !important;
}

/* ══════════════════════════════════════════════════════════════════════
   UPGRADE: MENSAGENS INTERATIVAS COM DROPDOWN (WHATSAPP LIST CARD NO CHAT)
   ══════════════════════════════════════════════════════════════════════ */
.wa-interactive-list-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wa-interactive-list-title {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-interactive-list-btn {
    background: #00a884;
    color: #0b141a;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 168, 132, 0.3);
}

.wa-interactive-list-btn:hover {
    background: #02906f;
    transform: translateY(-1px);
}

.wa-interactive-list-dropdown {
    background: #111b21;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: wa-slide-down-fade 0.18s ease;
}

.wa-list-sec-title {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 10.5px;
    font-weight: 700;
    color: #8696a0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-list-row-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.12s ease;
}

.wa-list-row-item:last-child {
    border-bottom: none;
}

.wa-list-row-item:hover {
    background: rgba(0, 168, 132, 0.15);
}

.wa-list-row-name {
    font-size: 13px;
    font-weight: 600;
    color: #e9edef;
}

.wa-list-row-desc {
    font-size: 11px;
    color: #8696a0;
    margin-top: 2px;
}

/* Tabs do Modal de Menu Interativo */
.wa-btn-tab {
    background: transparent;
    color: #8696a0;
    border: 1px solid transparent;
}

.wa-btn-tab.active {
    background: #00a884 !important;
    color: #0b141a !important;
    box-shadow: 0 2px 8px rgba(0, 168, 132, 0.35) !important;
}
