/* ---------- Cards ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.card-pad {
    padding: 24px;
}

/* ---------- Metric cards ---------- */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Variantes com contagem fixa de colunas (3/4) — sem inline style, pra nao atropelar os breakpoints acima. */
.metrics-grid--3 { grid-template-columns: repeat(3, 1fr); }
.metrics-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .metrics-grid--3, .metrics-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .metrics-grid--3, .metrics-grid--4 { grid-template-columns: 1fr; }
}

.metric-card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
}

.metric-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.metric-card__icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card__delta {
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-card__delta.up { color: var(--accent); }
.metric-card__delta.down { color: var(--danger); }

.metric-card__value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.metric-card__label {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* ---------- Dashboard: atalhos rapidos ---------- */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.quick-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s;
}

.quick-action:hover {
    background: var(--card-hover);
    border-color: var(--border);
}

.quick-action .icon { color: var(--accent); }

/* ---------- Dashboard: funil de pedidos ---------- */
.funil-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.funil-etapa__head {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.funil-etapa__head strong {
    color: var(--text);
    font-size: 13px;
}

.funil-etapa__track {
    height: 10px;
    background: var(--bg-elevated);
    border-radius: 999px;
    overflow: hidden;
}

.funil-etapa__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent));
    border-radius: 999px;
    transition: width 0.3s;
}

/* ---------- Dashboard: dinheiro em primeiro lugar ---------- */
.hero-money-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.hero-money-card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    box-shadow: var(--shadow-card);
}

.hero-money-card__label {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-money-card__value {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 6px;
}

.hero-money-card--accent .hero-money-card__value { color: var(--accent); }

.hero-money-card__hint {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 6px;
}

.tarefas-card {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
}

.tarefas-card__head {
    padding: 18px 22px 4px;
    font-size: 14px;
    font-weight: 700;
}

.tarefas-list {
    display: flex;
    flex-direction: column;
}

.tarefa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--border-soft);
    font-size: 13.5px;
    color: var(--text);
    text-decoration: none;
}

.tarefa-item:hover { background: var(--bg-elevated); }

.tarefa-item .tarefa-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    flex-shrink: 0;
}

.tarefa-item .tarefa-arrow {
    margin-left: auto;
    color: var(--text-faint);
    flex-shrink: 0;
}

.tarefas-empty {
    padding: 18px 22px 22px;
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.period-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.period-pill {
    font-size: 12.5px;
    padding: 7px 13px;
    border-radius: 100px;
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.period-pill.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
    font-weight: 600;
}

/* ---------- Linha do tempo do pedido ---------- */
.order-timeline {
    display: flex;
    flex-direction: column;
}

.order-timeline__item {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 24px;
}

.order-timeline__item:last-child { padding-bottom: 0; }

.order-timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background: var(--border-soft);
}

.order-timeline__item.done:not(:last-child)::before { background: var(--accent); }

.order-timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-soft);
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.order-timeline__item.done .order-timeline__dot { background: var(--accent); }
.order-timeline__item.erro .order-timeline__dot { background: var(--danger); }
.order-timeline__item.pendente .order-timeline__dot { background: var(--warning); }

.order-timeline__label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.order-timeline__item:not(.done) .order-timeline__label { color: var(--text-muted); font-weight: 500; }
.order-timeline__item.erro .order-timeline__label { color: var(--danger); font-weight: 600; }

.order-timeline__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.diagnostico-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.diagnostico-box.ok { background: var(--accent-soft); color: var(--accent); }
.diagnostico-box.bloqueado { background: var(--danger-soft); color: var(--danger); }
.diagnostico-box.aguardando { background: var(--warning-soft); color: var(--warning); }

/* ---------- Status do WhatsApp (topbar) ---------- */
.wa-status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px 7px 10px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.wa-status-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
}

.wa-status-badge.is-loading .wa-status-badge__dot { background: var(--text-faint); }
.wa-status-badge.is-on { color: var(--accent); border-color: transparent; background: var(--accent-soft); cursor: default; }
.wa-status-badge.is-on .wa-status-badge__dot { background: var(--accent); }
.wa-status-badge.is-off { color: var(--danger); border-color: transparent; background: var(--danger-soft); }
.wa-status-badge.is-off .wa-status-badge__dot { background: var(--danger); }

.wa-qr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.wa-qr-overlay:not([hidden]) {
    display: flex;
}

.wa-qr-modal {
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 26px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    position: relative;
}

.wa-qr-modal h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }

.wa-qr-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

.wa-qr-modal__box {
    margin: 16px 0;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-md);
}

.wa-qr-modal__box img { width: 220px; height: 220px; }

.tf-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 760px) {
    .tf-grid { grid-template-columns: 1fr; }
}

/* ---------- Ajuda contextual (topbar) ---------- */
.help-tip {
    position: relative;
    display: inline-flex;
}

.help-tip__btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.help-tip__btn:hover, .help-tip__btn:focus { color: var(--accent); border-color: var(--accent); }

.help-tip__box {
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 50;
    width: 260px;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 12px 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.12s, transform 0.12s;
}

.help-tip:hover .help-tip__box,
.help-tip:focus-within .help-tip__box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .help-tip__box { width: 200px; }
}

/* ---------- Filters ---------- */

.filters-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.select-field {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.select-field:focus {
    outline: none;
    border-color: var(--accent);
}

/* ---------- Table ---------- */

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}

.data-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background 150ms ease;
}

.data-table tbody tr:hover {
    background: var(--card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-primary {
    font-weight: 600;
    color: var(--text);
}

.cell-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.icon-btn:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.icon-btn.whatsapp {
    color: var(--whatsapp);
    border-color: rgba(37, 211, 102, 0.3);
}

.icon-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.12);
}

.icon-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.reveal-btn {
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reveal-btn:hover {
    color: var(--accent);
}

/* ---------- Badges ---------- */

.badge-marketplace {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.badge-dot.mercado_livre { background: var(--ml-yellow); }
.badge-dot.shopee { background: var(--shopee-orange); }
.badge-dot.magalu { background: var(--magalu-blue); }
.badge-dot.tiktok { background: var(--tiktok-cyan); }

.badge-soon {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-status.conectado { background: var(--accent-soft); color: var(--accent); }
.badge-status.erro { background: var(--danger-soft); color: var(--danger); }
.badge-status.expirado,
.badge-status.desconectado { background: var(--warning-soft); color: var(--warning); }
.badge-status.neutro { background: var(--bg-elevated); color: var(--text-muted); }
.badge-status.vip { background: rgba(234, 179, 8, 0.14); color: #eab308; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #06120c;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--card);
    border-color: var(--text-faint);
}

.btn-danger-outline {
    background: transparent;
    border-color: rgba(255, 92, 92, 0.35);
    color: var(--danger);
}

.btn-danger-outline:hover {
    background: var(--danger-soft);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
}

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text);
}

.form-hint {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 6px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 13.5px;
    font-family: inherit;
    transition: border-color 150ms ease, background 150ms ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

.form-alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
}

.form-alert.error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid rgba(255, 92, 92, 0.25);
}

.form-alert.success {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(0, 217, 126, 0.25);
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    gap: 6px;
}

.pagination-controls a,
.pagination-controls span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.pagination-controls a:hover {
    background: var(--card-hover);
    color: var(--text);
}

.pagination-controls .is-current {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: transparent;
}

.pagination-controls .is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ---------- Toast ---------- */

.toast-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 340px;
    animation: toast-in 200ms ease;
}

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

.toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast__title {
    font-weight: 600;
    font-size: 13px;
}

.toast__body {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.toast__close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 2px;
}

.toast__close:hover {
    color: var(--text);
}

/* ---------- Skeleton ---------- */

.skeleton {
    background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 37%, var(--card) 63%);
    background-size: 400% 100%;
    animation: skeleton-pulse 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* ---------- Empty state ---------- */

.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    color: var(--text-faint);
}

.empty-state__title {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
}

/* ---------- Auth pages ---------- */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top, #16161a 0%, var(--bg) 60%);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-brand__logo {
    height: 56px;
    width: auto;
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Integration cards ---------- */

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.integration-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.integration-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.integration-card__logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #06120c;
}

.integration-card.is-disabled {
    opacity: 0.6;
}

/* ---------- Mobile table -> cards ---------- */

@media (max-width: 768px) {
    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        border-bottom: 1px solid var(--border-soft);
        padding: 12px 16px;
    }

    .data-table td {
        border-bottom: none;
        padding: 6px 0;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 12px;
        font-weight: 600;
    }
}

/* ---------- Tags de cliente (CRM) ---------- */

.ctag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ctag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(0, 217, 126, 0.3);
    font-size: 11.5px;
    font-weight: 600;
}

.ctag__x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
}

.ctag__x:hover {
    opacity: 1;
    background: rgba(0, 217, 126, 0.25);
}

.ctag-add {
    display: inline-flex;
    gap: 6px;
}

.ctag-add input {
    width: 140px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 999px;
}

/* ---------- Filtros tipo pilula (checkbox) ---------- */

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
    user-select: none;
}

.filter-pill input {
    display: none;
}

.filter-pill:has(input:checked) {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: rgba(0, 217, 126, 0.4);
}

.filter-pill:hover {
    border-color: var(--text-faint);
}

/* ---------- Estatisticas em linha (ex: fila de mensagens) ---------- */

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.stat-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.stat-box__value {
    font-size: 22px;
    font-weight: 700;
}

.stat-box__label {
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 2px;
}