        .picmo__popup {
            z-index: 1000 !important;
        }

        @import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;500;600&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }

        /* 🎨 TEMA WHATSAPP WEB - LIGHT */
        :root {
            --wa-bg-app: #d1d7db;
            /* Fundo geral (cinza claro) */
            --wa-bg-sidebar: #ffffff;
            /* Sidebar branca */
            --wa-header: #f0f2f5;
            /* Headers (cinza bem claro) */
            --wa-panel-header-icon: #54656f;
            /* Ícones cinza escuro */
            --wa-primary: #00a884;
            /* Verde WhatsApp (Botões/Destaques) */
            --wa-secondary: #667781;
            /* Texto secundário */
            --wa-white: #111b21;
            /* Texto principal (quase preto) */
            --wa-input-bg: #ffffff;
            /* Fundo input */
            --wa-border: #e9edef;
            /* Bordas suaves */

            --wa-msg-in: #ffffff;
            /* Msg Recebida (Branco) */
            --wa-msg-out: #d9fdd3;
            /* Msg Enviada (Verde claro) */

            --wa-danger: #ea0038;
            --wa-system-msg: #f0f2f5;
            /* Avisos do sistema */
            --wa-link: #027eb5;

            --sidebar-width: 30%;
            --sidebar-min-width: 340px;
        }

        /* 🌙 TEMA DARK PREMIUM */
        body.dark-mode {
            --wa-bg-app: #0b141a;
            --wa-bg-sidebar: #111b21;
            --wa-header: #202c33;
            --wa-panel-header-icon: #aebac1;
            --wa-primary: #00a884;
            --wa-secondary: #8696a0;
            --wa-white: #e9edef;
            --wa-input-bg: #2a3942;
            --wa-border: #222e35;
            --wa-msg-in: #202c33;
            --wa-msg-out: #005c4b;
            --wa-danger: #f15c6d;
            --wa-system-msg: #182229;
            --wa-link: #53bdeb;
        }

        /* SIDEBAR DIREITA (INFO CLIENTE) */
        .right-sidebar {
            width: 300px;
            background: var(--wa-header);
            border-left: 1px solid var(--wa-border);
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease;
            transform: translateX(100%);
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            z-index: 200;
        }

        .right-sidebar.active {
            transform: translateX(0);
        }

        .info-header {
            height: 59px;
            padding: 10px 16px;
            border-bottom: 1px solid var(--wa-border);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 15px;
            background: var(--wa-header);
            font-size: 16px;
            font-weight: 500;
            color: var(--wa-white);
        }

        .info-content {
            padding: 20px;
            overflow-y: auto;
            flex: 1;
            color: var(--wa-white);
        }

        .info-group {
            margin-bottom: 24px;
        }

        .info-label {
            font-size: 12px;
            color: var(--wa-secondary);
            margin-bottom: 8px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .info-value {
            font-size: 14px;
            color: var(--wa-white);
            background: var(--wa-input-bg);
            padding: 10px;
            border-radius: 6px;
            border: 1px solid var(--wa-border);
        }

        /* TAGS */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .tag-chip {
            font-size: 12px;
            padding: 4px 8px;
            border-radius: 4px;
            background: rgba(0, 168, 132, 0.2);
            color: var(--wa-primary);
            display: flex;
            align-items: center;
            gap: 5px;
            cursor: default;
        }

        .tag-chip i {
            cursor: pointer;
            font-size: 10px;
            opacity: 0.7;
        }

        .tag-chip i:hover {
            opacity: 1;
            color: var(--wa-danger);
        }

        .add-tag-btn {
            background: transparent;
            border: 1px dashed var(--wa-secondary);
            color: var(--wa-secondary);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 11px;
            cursor: pointer;
        }

        .add-tag-btn:hover {
            border-color: var(--wa-primary);
            color: var(--wa-primary);
        }

        /* QUICK RESPONSES MODAL */
        .quick-responses-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .qr-item {
            background: var(--wa-input-bg);
            padding: 12px;
            border-radius: 6px;
            cursor: pointer;
            border: 1px solid var(--wa-border);
            transition: 0.2s;
        }

        .qr-item:hover {
            border-color: var(--wa-primary);
            background: rgba(0, 168, 132, 0.05);
        }

        .qr-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 4px;
            color: var(--wa-white);
        }

        .qr-text {
            font-size: 12px;
            color: var(--wa-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* TOGGLE DARK MODE */
        .theme-toggle {
            position: fixed;
            top: 15px;
            right: 80px;
            z-index: 1000;
            background: var(--wa-panel-header-icon);
            color: var(--wa-header);
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.5;
            transition: 0.2s;
        }

        .theme-toggle:hover {
            opacity: 1;
        }

        /* UPLOAD BUTTON */
        .btn-attach {
            background: transparent;
            border: none;
            color: var(--wa-secondary);
            font-size: 20px;
            cursor: pointer;
            padding: 5px 10px;
            flex-shrink: 0;
        }

        .btn-attach:hover {
            color: var(--wa-primary);
        }

        body {
            font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            background: var(--wa-bg-app);
            color: var(--wa-white);
            height: 100vh;
            display: flex;
            overflow: hidden;
            position: fixed;
            width: 100%;
        }

        /* --- BARRA LATERAL --- */
        .sidebar {
            width: var(--sidebar-width);
            min-width: var(--sidebar-min-width);
            background: var(--wa-bg-sidebar);
            display: flex;
            flex-direction: column;
            border-right: 1px solid #d1d7db;
            z-index: 100;
            transition: transform 0.3s ease;
        }

        .sidebar-header {
            height: 59px;
            padding: 10px 16px;
            background: var(--wa-header);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            border-right: 1px solid var(--wa-border);
        }

        .logo-title {
            font-size: 16px;
            font-weight: 600;
            color: #41525d;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .header-icons {
            display: flex;
            gap: 24px;
            color: var(--wa-panel-header-icon);
            font-size: 20px;
        }

        .icon-btn {
            cursor: pointer;
            background: transparent;
            border: none;
            color: inherit;
            font-size: inherit;
            padding: 5px;
            position: relative;
        }

        /* STATUS ROBOT */
        .robot-status-bar {
            background: #fff;
            padding: 12px 16px;
            font-size: 14px;
            color: var(--wa-primary);
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--wa-border);
            font-weight: 500;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--wa-danger);
            margin-right: 8px;
            display: inline-block;
        }

        .status-dot.online {
            background: var(--wa-primary);
        }

        /* Sem pulse agressivo */

        /* BUSCA */
        .search-container {
            padding: 8px 12px;
            border-bottom: 1px solid var(--wa-border);
            flex-shrink: 0;
            background: #fff;
        }

        .search-box {
            background: #f0f2f5;
            border-radius: 8px;
            display: flex;
            align-items: center;
            padding: 0 12px;
            height: 35px;
        }

        .search-box i {
            color: var(--wa-secondary);
            font-size: 14px;
            margin-right: 15px;
            margin-top: 2px;
        }

        .search-box input {
            background: transparent;
            border: none;
            color: var(--wa-white);
            width: 100%;
            font-size: 14px;
        }

        /* ABAS (FILTROS) */
        .filter-tags {
            display: flex;
            padding: 8px 12px;
            gap: 8px;
            overflow-x: auto;
            flex-shrink: 0;
            border-bottom: 1px solid var(--wa-border);
            background: #fff;
        }

        .filter-tags::-webkit-scrollbar {
            display: none;
        }

        .tag-btn {
            background: #f0f2f5;
            color: var(--wa-secondary);
            border: none;
            padding: 6px 14px;
            border-radius: 24px;
            font-size: 13px;
            cursor: pointer;
            white-space: nowrap;
            transition: 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        .tag-btn:hover {
            background: #e9edef;
        }

        .tag-btn.active {
            background: #e7f8f5;
            color: var(--wa-primary);
            font-weight: 600;
        }

        .badge {
            font-size: 11px;
            background: rgba(0, 0, 0, 0.1);
            padding: 0 6px;
            border-radius: 10px;
            color: inherit;
        }

        /* LISTA DE CONTATOS */
        .contact-list {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            background: #fff;
        }

        .contact-item {
            height: 72px;
            display: flex;
            align-items: center;
            padding: 0 15px;
            cursor: pointer;
            border-bottom: 1px solid #f0f2f5;
            transition: background 0.2s;
            position: relative;
        }

        .contact-item:hover {
            background: #f5f6f6;
        }

        .contact-item.active {
            background: #f0f2f5;
        }

        .contact-item.unread::before {
            display: none;
            /* Cleaner look */
        }

        .contact-item.waiting-attention {
            background: rgba(234, 0, 56, 0.05);
            border-left: 3px solid var(--wa-danger);
        }

        .contact-item.waiting-attention .item-time {
            color: var(--wa-danger);
            font-weight: 700;
        }

        .item-avatar {
            width: 49px;
            height: 49px;
            border-radius: 50%;
            background: #dfe3e5;
            margin-right: 15px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #fff;
            font-weight: 500;
            overflow: hidden;
        }

        .item-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .item-info {
            flex: 1;
            min-width: 0;
        }

        .item-top {
            display: flex;
            justify-content: space-between;
            margin-bottom: 3px;
        }

        .item-name {
            font-size: 17px;
            font-weight: 400;
            color: #111b21;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 180px;
        }

        .contact-item.unread .item-name {
            font-weight: 600;
            color: #111b21;
        }

        .item-time {
            font-size: 12px;
            color: var(--wa-secondary);
            margin-top: 4px;
        }

        .contact-item.unread .item-time {
            color: #25d366;
            font-weight: 500;
        }

        .item-bottom {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .item-msg {
            font-size: 14px;
            color: var(--wa-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
        }

        .contact-item.unread .item-msg {
            color: #111b21;
            font-weight: 500;
        }

        .unread-badge {
            background: #25d366;
            color: #fff;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
        }

        /* PIN / FIXAR CONVERSA */
        .contact-item .item-dropdown {
            position: relative;
        }

        .contact-item .dropdown-chevron {
            display: none;
            background: none;
            border: none;
            color: var(--wa-secondary);
            cursor: pointer;
            font-size: 12px;
            padding: 4px;
            margin-left: 4px;
        }

        .contact-item:hover .dropdown-chevron {
            display: inline-flex;
        }

        .pin-dropdown-menu {
            display: none;
            position: absolute;
            right: 0;
            top: 100%;
            background: #ffffff;
            border-radius: 3px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
            z-index: 100;
            min-width: 170px;
            overflow: hidden;
        }

        .pin-dropdown-menu.show {
            display: block;
        }

        body.dark-mode .pin-dropdown-menu {
            background: #233138;
        }

        .pin-dropdown-menu button {
            display: flex;
            align-items: center;
            gap: 10px;
            width: 100%;
            padding: 10px 20px;
            background: none;
            border: none;
            color: var(--wa-white);
            font-size: 14px;
            cursor: pointer;
            text-align: left;
        }

        .pin-dropdown-menu button:hover {
            background: #f5f6f6;
        }

        body.dark-mode .pin-dropdown-menu button:hover {
            background: #182229;
        }

        .pin-indicator {
            color: var(--wa-secondary);
            font-size: 11px;
            margin-left: 4px;
        }

        .btn-pin-header {
            background: none;
            border: none;
            color: var(--wa-panel-header-icon);
            cursor: pointer;
            font-size: 18px;
            padding: 5px;
            margin-right: 8px;
            transition: color 0.2s;
        }

        .btn-pin-header:hover {
            color: var(--wa-primary);
        }

        .btn-pin-header.pinned {
            color: var(--wa-primary);
        }

        /* ÁREA DE CHAT */
        .chat-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #efeae2;
            /* Wallpaper default do whatsapp */
            position: relative;
        }

        /* Opcional: Pattern de fundo sutil */
        .chat-area::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.4;
            background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
            background-repeat: repeat;
            pointer-events: none;
        }

        /* TELA DE BOAS-VINDAS */
        .welcome-screen {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
            background: #f0f2f5;
            border-bottom: 6px solid #43c655;
            /* Detalhe verde embaixo */
            z-index: 2;
        }

        .welcome-screen.hidden {
            display: none;
        }

        .welcome-logo {
            font-size: 80px;
            margin-bottom: 30px;
            opacity: 0.6;
            color: #41525d;
        }

        .welcome-title {
            font-size: 32px;
            margin-bottom: 10px;
            color: #41525d;
            font-weight: 300;
        }

        .welcome-subtitle {
            font-size: 14px;
            color: #667781;
        }

        /* CHAT CONTENT */
        .chat-content {
            display: flex;
            flex-direction: column;
            height: 100%;
            z-index: 5;
        }

        .chat-content.hidden {
            display: none;
        }

        .chat-header {
            height: 59px;
            background: var(--wa-header);
            display: flex;
            align-items: center;
            padding: 10px 16px;
            border-bottom: 1px solid #d1d7db;
            flex-shrink: 0;
        }

        .btn-back {
            display: none;
            background: transparent;
            border: none;
            color: #54656f;
            font-size: 20px;
            margin-right: 15px;
            cursor: pointer;
            padding: 5px;
        }

        .chat-header-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #dfe3e5;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #fff;
            font-weight: 500;
            overflow: hidden;
            flex-shrink: 0;
        }

        .chat-header-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .chat-header-info {
            flex: 1;
            min-width: 0;
        }

        .chat-header-name {
            font-size: 16px;
            font-weight: 500;
            color: #111b21;
        }

        .chat-header-status {
            font-size: 13px;
            color: #667781;
        }

        .chat-header-actions {
            display: flex;
            gap: 24px;
            color: #54656f;
            font-size: 20px;
        }

        /* ÁREA DE MENSAGENS */
        .messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 20px 5%;
            display: flex;
            flex-direction: column;
            gap: 4px;
            /* Space between messages */
        }

        .msg {
            max-width: 85%;
            /* Aumentado de 65% para mobile */
            padding: 6px 7px 8px 9px;
            border-radius: 7.5px;
            position: relative;
            word-wrap: break-word;
            white-space: pre-wrap;
            font-size: 14.2px;
            line-height: 19px;
            box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
        }

        .msg-in {
            background: var(--wa-msg-in);
            align-self: flex-start;
            border-top-left-radius: 0;
            color: #111b21;
        }

        /* Triângulo msg in */
        .msg-in::before {
            content: "";
            position: absolute;
            left: -8px;
            top: 0;
            width: 0;
            height: 0;
            border-top: 0px solid transparent;
            border-right: 12px solid var(--wa-msg-in);
            border-bottom: 12px solid transparent;
        }

        .msg-out {
            background: var(--wa-msg-out);
            align-self: flex-end;
            border-top-right-radius: 0;
            color: #111b21;
        }

        /* Triângulo msg out */
        .msg-out::before {
            content: "";
            position: absolute;
            right: -8px;
            top: 0;
            width: 0;
            height: 0;
            border-top: 0px solid transparent;
            border-left: 12px solid var(--wa-msg-out);
            border-bottom: 12px solid transparent;
        }

        .msg-meta {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 4px;
            margin-top: -3px;
            margin-left: 10px;
            float: right;
            font-size: 11px;
            color: #667781;
        }

        .msg-check {
            font-size: 14px;
            color: #53bdeb;
        }

        /* Blue checks for read */

        /* MÍDIA NAS MENSAGENS */
        .msg-media {
            padding: 2px;
            /* Mínimo padding ou 0 se preferir */
            overflow: hidden;
            background: transparent !important;
            /* Remove fundo verde/branco se for só imagem */
            box-shadow: none !important;
            /* Remove sombra do balão se quiser full */
        }

        /* Se quiser manter o balão mas com imagem full width */
        .msg.has-media {
            padding: 3px 3px 0 3px;
        }

        .msg-media img,
        .msg.has-media img {
            width: 100%;
            max-width: 330px;
            /* Limite maior */
            border-radius: 6px;
            cursor: pointer;
            margin-bottom: 0;
            display: block;
            object-fit: cover;
        }

        .msg-media video,
        .msg.has-media video {
            width: 100%;
            max-width: 330px;
            border-radius: 6px;
            margin-bottom: 0;
        }

        /* Overlay stamp customizado se quiser */
        .msg.has-media .msg-meta {
            position: absolute;
            bottom: 5px;
            right: 8px;
            background: rgba(0, 0, 0, 0.3);
            padding: 2px 5px;
            border-radius: 10px;
            color: #fff !important;
        }

        .msg.has-media .msg-meta .msg-time {
            color: #fff !important;
            font-size: 10px;
        }

        .msg.has-media .msg-check {
            color: #fff !important;
            font-size: 11px;
        }

        /* WHATSAPP WEB - INTERACTIVE BUTTONS & LISTS */
        .wa-msg-group {
            display: flex;
            flex-direction: column;
            width: fit-content;
            max-width: 85%;
            gap: 0;
            margin-bottom: 2px;
            align-self: flex-end;
        }

        .wa-msg-group.msg-in-group {
            align-self: flex-start;
        }

        .wa-msg-group>.msg {
            max-width: 100%;
            width: 100%;
            border-bottom-left-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
            margin-bottom: 0;
            box-shadow: none;
        }

        .wa-msg-group>.msg.msg-out {
            border-top-right-radius: 0;
        }

        .wa-msg-group>.msg.msg-in {
            border-top-left-radius: 0;
        }

        .wa-buttons-container {
            display: flex;
            flex-direction: column;
            width: 100%;
            background: #ffffff;
            border-radius: 0 0 7.5px 7.5px;
            overflow: hidden;
            box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
        }

        body.dark-mode .wa-buttons-container {
            background: #1f2c33;
        }

        .wa-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 12px;
            background: transparent;
            color: #00a5ca;
            font-size: 14px;
            font-weight: 400;
            cursor: default;
            border: none;
            border-top: 1px solid #e9edef;
            text-align: center;
            width: 100%;
            position: relative;
        }

        body.dark-mode .wa-btn {
            color: #53bdeb;
            border-top-color: #2a3942;
        }

        .wa-list-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 10px 12px;
            width: 100%;
            background: #ffffff;
            color: #00a5ca;
            font-size: 14px;
            font-weight: 400;
            cursor: default;
            border: none;
            border-top: 1px solid #e9edef;
            border-radius: 0 0 7.5px 7.5px;
            text-align: center;
            box-shadow: 0 1px 0.5px rgba(11, 20, 26, .13);
        }

        body.dark-mode .wa-list-btn {
            background: #1f2c33;
            color: #53bdeb;
            border-top-color: #2a3942;
        }

        /* INPUT */
        .input-area {
            padding: 10px 16px;
            background: #f0f2f5;
            display: flex;
            align-items: flex-end;
            gap: 8px;
            border-top: 1px solid #d1d7db;
            flex-shrink: 0;
            position: relative;
        }

        /* PICKER HTML */
        .input-wrapper {
            flex: 1;
            background: #ffffff;
            border-radius: 8px;
            padding: 9px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .input-wrapper textarea {
            flex: 1;
            background: transparent;
            border: none;
            color: #111b21;
            font-size: 15px;
            font-family: inherit;
            resize: none;
            max-height: 100px;
            line-height: 20px;
        }

        .btn-send {
            background: transparent;
            border: none;
            color: #54656f;
            font-size: 24px;
            cursor: pointer;
            padding: 5px 10px;
            flex-shrink: 0;
        }

        .btn-send:hover {
            color: var(--wa-primary);
        }

        /* EMOJI PICKER */
        .emoji-btn {
            background: transparent;
            border: none;
            color: #54656f;
            font-size: 20px;
            cursor: pointer;
            padding: 5px 10px;
            flex-shrink: 0;
            transition: 0.2s;
        }

        .emoji-btn:hover,
        .emoji-btn.active {
            color: var(--wa-primary);
        }

        .emoji-picker-container {
            position: absolute;
            bottom: 70px;
            left: 20px;
            width: 300px;
            height: 250px;
            background: #fff;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: none;
            flex-direction: column;
            overflow: hidden;
            z-index: 100;
            border: 1px solid #e9edef;
        }

        .emoji-picker-container.show {
            display: flex;
        }

        .emoji-grid {
            flex: 1;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            padding: 10px;
            gap: 5px;
        }

        .emoji-item {
            font-size: 22px;
            cursor: pointer;
            text-align: center;
            padding: 5px;
            border-radius: 4px;
        }

        .emoji-item:hover {
            background: #f0f2f5;
        }

        .emoji-category {
            grid-column: 1 / -1;
            font-size: 11px;
            color: #8696a0;
            font-weight: 600;
            text-transform: uppercase;
            margin: 10px 0 5px;
            padding-left: 5px;
        }


        /* SCROLLBAR */
        .contact-list::-webkit-scrollbar,
        .messages-container::-webkit-scrollbar {
            width: 6px;
        }

        .contact-list::-webkit-scrollbar-track,
        .messages-container::-webkit-scrollbar-track {
            background: transparent;
        }

        .contact-list::-webkit-scrollbar-thumb,
        .messages-container::-webkit-scrollbar-thumb {
            background: rgba(11, 20, 26, .2);
            border-radius: 3px;
        }

        /* MODAL */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            /* Light backdrop */
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #fff;
            padding: 24px;
            border-radius: 3px;
            width: 90%;
            max-width: 400px;
            box-shadow: 0 17px 50px 0 rgba(11, 20, 26, .19), 0 12px 15px 0 rgba(11, 20, 26, .24);
        }

        .modal-title {
            font-size: 20px;
            margin-bottom: 20px;
            color: #111b21;
            font-weight: 400;
        }

        .modal-body {
            margin-bottom: 30px;
            color: #3b4a54;
            font-size: 14px;
            line-height: 20px;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .btn-modal {
            padding: 10px 24px;
            border: 1px solid #e9edef;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0.2px;
        }

        .btn-cancel {
            background: #fff;
            color: #00a884;
            border-color: #e9edef;
        }

        .btn-cancel:hover {
            background-color: #fff;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .btn-confirm {
            background: #00a884;
            color: #fff;
            border: none;
        }

        .btn-confirm:hover {
            background: #008f6f;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

        /* TOAST */
        .toast {
            position: fixed;
            bottom: 40px;
            left: 50%;
            transform: translateX(-50%);
            background: #111b21;
            color: #fff;
            padding: 14px 24px;
            border-radius: 4px;
            display: none;
            z-index: 2000;
            font-size: 14px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            text-transform: uppercase;
        }

        /* RESPONSIVO */
        @media (max-width: 900px) {
            .sidebar {
                width: 100%;
                min-width: 0;
            }

            .sidebar.hide {
                transform: translateX(-100%);
            }

            .chat-area {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                background: #efeae2;
            }

            .chat-area.show {
                transform: translateX(0);
            }

            .btn-back {
                display: block;
            }
        }

        /* ATTACH MENU STYLES */
        .attach-menu {
            position: absolute;
            bottom: 70px;
            left: 10px;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: none;
            /* Toggled via JS */
            flex-direction: column;
            gap: 5px;
            padding: 10px;
            z-index: 100;
            min-width: 150px;
            animation: slideUp 0.2s ease;
        }

        .attach-menu.show {
            display: flex;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 8px;
            transition: 0.2s;
            font-size: 14px;
            color: var(--wa-white);
            text-align: left;
        }

        .menu-item:hover {
            background: var(--wa-header);
        }

        .menu-item i {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Context Menu for Tabs */
        .contact-tag-menu {
            position: absolute;
            background: #202c33;
            /* Dark mode bg */
            border: 1px solid #37404a;
            border-radius: 6px;
            padding: 5px 0;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            min-width: 150px;
        }

        .contact-tag-menu.active {
            display: block;
        }

        .contact-tag-item {
            padding: 8px 15px;
            color: #e9edef;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .contact-tag-item:hover {
            background: #0b141a;
        }

        .tag-btn-trigger {
            background: none;
            border: none;
            color: #8696a0;
            cursor: pointer;
            padding: 3px;
            margin-left: 5px;
            opacity: 0.6;
            transition: opacity 0.2s;
        }

        .tag-btn-trigger:hover {
            opacity: 1;
            color: #00af9c;
        }

        /* Status Indicators for Lists */
        .status-badge {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 5px;
            font-weight: bold;
            display: inline-block;
        }

        .status-badge.suporte {
            background: var(--wa-danger);
            color: white;
        }

        .status-badge.vendas {
            background: #00b4d8;
            color: white;
        }

        .status-badge.interesse {
            background: #ffb703;
            color: black;
        }
