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

/* ═══════════════════════════════════════════════════
   IDENTIDADE VISUAL — GABRYEL LOPES
   Base dark-tech + acento azul (#3f7bff), extraída da LP.
   Fonte: Manrope (corpo e títulos)
   ═══════════════════════════════════════════════════ */
:root {
  --bg: #05070e;
  --app-bg: radial-gradient(130% 130% at 50% 4%, #101836 0%, #0a0f22 46%, #05070e 100%);
  --grid-line: rgba(143,166,255,0.05);
  --panel: #0b0f1f;
  --panel-2: #10152a;
  --line: #20203400;
  --border: rgba(143,166,255,0.14);
  --border-soft: rgba(143,166,255,0.08);
  --txt: #eef2fb;
  --txt-soft: #c6cde2;
  --txt-mute: #8a93ab;
  --txt-faint: #5a6280;
  --purple: #3f7bff;
  --purple-2: #2a5cff;
  --purple-soft: #7fa5ff;
  --green: #22b877;
  --green-soft: #43e08a;
  --amber: #f5a524;
  --red: #f43f5e;
  --blue: #3f7bff;

  --hover: #141a30;
  --ghost-hover: #1a2138;
  --chip-neutral: #1a2036;
  --red-soft-bg: #2a1320;
  --red-soft-txt: #fb7185;
  --modal-shadow: rgba(0, 0, 0, 0.7);
  --overlay: rgba(3, 5, 12, 0.78);
  --glow-1: transparent;
  --glow-2: transparent;
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --app-bg: #f4f6fb;
  --grid-line: rgba(63,123,255,0.05);
  --panel: #ffffff;
  --panel-2: #f5f7fc;
  --border: #e3e7f0;
  --border-soft: #eef1f7;
  --txt: #0b1020;
  --txt-soft: #40465a;
  --txt-mute: #6b7285;
  --txt-faint: #99a0b3;
  --purple-soft: #2a5cff;
  --green-soft: #129a5f;

  --hover: #f2f5fb;
  --ghost-hover: #e9edf6;
  --chip-neutral: #eef1f7;
  --red-soft-bg: #fdeaea;
  --red-soft-txt: #d11414;
  --modal-shadow: rgba(40, 50, 80, 0.2);
  --overlay: rgba(20, 25, 40, 0.45);
  --glow-1: transparent;
  --glow-2: transparent;
}

html, body {
  height: 100%; overflow: hidden;
  background: var(--app-bg);
  background-attachment: fixed;
  color: var(--txt);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
/* grade sutil de fundo (mesma vibe da landing page) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.app { position: relative; z-index: 1; }
h1, h2, h3, .page-title, .logo-txt b {
  font-family: 'Manrope', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.5px;
}

/* ─── SHELL: SIDEBAR + MAIN ─── */
.app { display: flex; height: 100vh; }

.sidebar {
  width: 244px; flex-shrink: 0; height: 100vh;
  background: var(--panel); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 16px;
}
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 6px 8px 20px; }
.brand-logo { width: 100%; max-width: 176px; height: auto; display: block; }
[data-theme="light"] .brand-logo { filter: invert(1) brightness(0.28) saturate(0); }
.logo-sub {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--purple-soft);
  padding: 3px 9px; border-radius: 20px;
  background: rgba(63,123,255,0.12); border: 1px solid rgba(63,123,255,0.25);
}

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--txt-faint); padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 11px; border: none; border-radius: 10px; background: none;
  color: var(--txt-mute); font-size: 13.5px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: left; transition: background 0.12s, color 0.12s;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: var(--hover); color: var(--txt); }
.nav-item.active { background: rgba(63,123,255,0.12); color: var(--purple); }
.nav-item.danger:hover { background: var(--red-soft-bg); color: var(--purple); }
.nav-item .ico-moon { display: none; }
[data-theme="light"] .nav-item .ico-sun { display: none; }
[data-theme="light"] .nav-item .ico-moon { display: block; }

.sidebar-foot { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--border-soft); padding-top: 12px; }

.send-meter {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: rgba(16,185,129,0.12); color: var(--green-soft); border: 1px solid rgba(16,185,129,0.2);
  cursor: default; white-space: nowrap; margin-bottom: 6px;
}
.send-meter svg { width: 15px; height: 15px; }
.send-meter .meter-label { color: var(--txt-mute); font-weight: 500; }
.send-meter.warn { background: rgba(245,158,11,0.14); color: var(--amber); border-color: rgba(245,158,11,0.25); }
.send-meter.danger { background: rgba(244,63,94,0.14); color: #fb7185; border-color: rgba(244,63,94,0.25); }

/* ─── SINO / ACOMPANHAMENTO ─── */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--purple); color: #fff; font-size: 10px; font-weight: 800; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--panel);
}
.drawer-bg {
  position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px);
  display: none; z-index: 70;
}
.drawer-bg.show { display: block; }
.drawer {
  position: absolute; top: 0; right: 0; height: 100vh; width: 360px; max-width: 92vw;
  background: var(--panel); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -20px var(--modal-shadow);
  transform: translateX(100%); transition: transform 0.25s;
}
.drawer-bg.show .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.drawer-head h2 { font-size: 16px; font-weight: 700; }
.drawer-head p { font-size: 12px; color: var(--txt-mute); margin-top: 2px; }
.drawer-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.ntf-sec { margin-bottom: 22px; }
.ntf-sec-title { font-size: 12.5px; font-weight: 700; color: var(--txt-soft); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.ntf-sec-title span { background: var(--chip-neutral); color: var(--txt-mute); font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.ntf-empty { font-size: 12.5px; color: var(--txt-mute); padding: 6px 2px; }
.ntf-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background 0.12s; }
.ntf-item:hover { background: var(--hover); }
.ntf-score { flex-shrink: 0; }
.ntf-main { flex: 1; min-width: 0; }
.ntf-name { font-size: 13.5px; font-weight: 650; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ntf-meta { font-size: 11.5px; color: var(--txt-mute); margin-top: 1px; }
.ntf-act {
  flex-shrink: 0; border: none; background: rgba(16,185,129,0.14); color: var(--green-soft);
  font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.ntf-act:hover { filter: brightness(1.1); }

/* ─── MAIN ─── */
.main { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; padding: 26px 32px 60px; }
.main-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 26px; font-weight: 780; letter-spacing: -0.8px; }
.page-sub { font-size: 13.5px; color: var(--txt-mute); margin-top: 3px; }
.main-top-r { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1040px) { .sidebar { width: 210px; } .main { padding: 22px 20px 50px; } }
@media (max-width: 760px) { .main-top-r { width: 100%; } .main-top-r .search { flex: 1; } }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 9px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap; line-height: 1; font-family: inherit;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-purple { background: linear-gradient(135deg, var(--purple), var(--purple-2)); color: #ffffff; font-weight: 700; box-shadow: 0 6px 18px -8px rgba(63,123,255,0.7); }
.btn-purple svg { stroke: #ffffff; }
.btn-purple:hover:not(:disabled) { box-shadow: 0 8px 22px -6px rgba(63,123,255,0.85); }

/* botão destaque "Buscar nichos" */
#btnSearch {
  background: linear-gradient(135deg, #3f7bff 0%, #2a5cff 100%);
  color: #ffffff; font-weight: 800; font-size: 14.5px; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 14px 32px; border-radius: 12px; white-space: nowrap;
  border: none;
  box-shadow: 0 10px 24px -6px rgba(63,123,255,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
#btnSearch svg { width: 18px; height: 18px; stroke: #ffffff; }
#btnSearch:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 14px 30px -6px rgba(63,123,255,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }
[data-theme="light"] #btnSearch { border: 2px solid #1b3a8f; box-shadow: 0 8px 20px -6px rgba(66,20,255,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-green { background: linear-gradient(135deg, #059669, var(--green)); color: #fff; box-shadow: 0 6px 18px -8px rgba(16,185,129,0.6); }
.btn-green:hover:not(:disabled) { filter: brightness(1.08); }
.btn-wa { background: linear-gradient(135deg, #1ebe57, #25d366); color: #fff; box-shadow: 0 6px 18px -8px rgba(37,211,102,0.6); }
.btn-wa:hover:not(:disabled) { filter: brightness(1.08); }
.btn-wa svg { width: 15px; height: 15px; }
.btn-ghost { background: var(--panel-2); color: var(--txt-soft); border: 1px solid var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--ghost-hover); color: var(--txt); }
.btn-red { background: transparent; color: var(--red); border: 1px solid var(--red-soft-bg); }
.btn-red:hover:not(:disabled) { background: var(--red-soft-bg); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 7px; }
.btn-icon-only { padding: 9px; }
.btn-icon-only svg { width: 16px; height: 16px; }
.ico-moon { display: none; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="light"] .ico-moon { display: block; }

/* ─── METRICS ─── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.metric {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-soft); border-radius: 18px;
  padding: 18px; cursor: pointer; transition: transform 0.12s, box-shadow 0.15s;
}
.metric:hover { transform: translateY(-2px); }
[data-theme="light"] .metric { box-shadow: 0 2px 10px -3px rgba(0,0,0,0.06); }
[data-theme="light"] .table-card { border-color: #e6e7eb; box-shadow: 0 2px 12px -3px rgba(0,0,0,0.05); }

.metric-top { display: flex; align-items: center; gap: 11px; }
.metric-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.metric-ico svg { width: 21px; height: 21px; display: block; }
.metric-ico.ico-hand svg { width: 23px; height: 23px; }
.metric-ico svg { fill: var(--purple); }
.metric-head { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.metric-label { font-size: 15px; font-weight: 700; color: var(--txt); letter-spacing: -0.2px; }
.metric-cap { font-size: 11.5px; color: var(--txt-mute); }
.metric-dots { margin-left: auto; align-self: flex-start; color: var(--txt-faint); font-size: 15px; letter-spacing: 1px; }
.metric-value { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin: 18px 0 14px; }
[data-theme="light"] .metric-value { color: #16161a; }
.metric-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--txt-mute);
  border-top: 1px solid var(--border-soft); padding-top: 12px;
}
.metric-foot svg { width: 15px; height: 15px; opacity: 0.65; flex-shrink: 0; }

/* card de destaque em vermelho (Total de leads) */
.metric.m-purple { background: linear-gradient(140deg, #6f9bff 0%, #3f7bff 55%, #2a5cff 100%); border-color: transparent; }
.metric.m-purple .metric-label,
.metric.m-purple .metric-value,
[data-theme="light"] .metric.m-purple .metric-value { color: #fff; }
.metric.m-purple .metric-cap { color: rgba(255,255,255,0.82); }
.metric.m-purple .metric-dots { color: rgba(255,255,255,0.7); }
.metric.m-purple .metric-foot { color: rgba(255,255,255,0.9); border-top-color: rgba(255,255,255,0.28); }
.metric.m-purple .metric-foot svg { opacity: 1; }
.metric.m-purple .metric-ico { background: #fff; }
.metric.m-purple .metric-ico svg { fill: var(--purple); }
[data-theme="light"] .metric.m-purple { box-shadow: 0 12px 26px -10px rgba(63,123,255,0.55); }

/* ─── TOOLBAR ─── */
.controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.search {
  position: relative; width: 320px; max-width: 40vw;
}
@media (max-width: 760px) { .main-top-r .search { width: auto; flex: 1; } }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--txt-mute); }
.search input {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px 10px 36px; color: var(--txt);
  font-size: 13.5px; font-family: inherit; outline: none; transition: border 0.15s;
}
.search input:focus { border-color: var(--purple); }
.search input::placeholder { color: var(--txt-faint); }

.filter-tabs { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 3px; max-width: 100%; overflow-x: auto; }
.filter-tabs::-webkit-scrollbar { height: 0; }
.filter-tab { padding: 7px 13px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--txt-mute); cursor: pointer; border: none; background: none; transition: all 0.12s; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.filter-tab:hover { color: var(--txt-soft); }
.filter-tab.active { background: var(--purple); color: #ffffff; }
.tab-count {
  display: inline-block; min-width: 17px; padding: 0 5px; margin-left: 3px;
  font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center;
  border-radius: 20px; background: var(--chip-neutral); color: var(--txt-mute); vertical-align: middle;
}
.filter-tab.active .tab-count { background: rgba(255,255,255,0.25); color: #ffffff; }

/* ─── NICHE BAR ─── */
.niche-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.niche-bar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--txt-mute); flex-shrink: 0; }
.niche-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.niche-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--panel); color: var(--txt-soft); font-size: 12.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.niche-chip:hover { border-color: var(--purple); color: var(--txt); }
.niche-chip span { font-size: 11px; font-weight: 700; opacity: 0.7; }
.niche-chip.active { background: var(--purple); color: #ffffff; border-color: var(--purple); }
.niche-chip.active span { opacity: 0.85; }

/* ─── BULK BAR ─── */
.bulkbar {
  display: none; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(63,123,255,0.22), rgba(63,123,255,0.1));
  border: 1.5px solid rgba(63,123,255,0.5); border-radius: 14px;
  padding: 15px 20px; margin-bottom: 16px;
  box-shadow: 0 8px 26px -12px rgba(63,123,255,0.6);
}
.bulkbar.show { display: flex; }
.bulkbar .count { font-weight: 800; font-size: 15px; color: var(--purple-soft); }
.bulkbar .spacer { flex: 1; }
.bulkbar .btn { padding: 11px 18px; font-size: 13.5px; }
.bulkbar .btn svg { width: 16px; height: 16px; }

/* ─── TABLE ─── */
.table-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
thead th {
  background: var(--panel-2); color: var(--txt-mute);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px;
  padding: 14px 13px; text-align: left; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2;
}
tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--hover); }
td { padding: 15px 13px; vertical-align: middle; }

.col-check { width: 36px; text-align: center; }
/* coluna de ações fixa à direita, sempre visível mesmo com rolagem */
.col-actions { width: 132px; text-align: right; white-space: nowrap; position: sticky; right: 0; background: var(--panel); }
thead th.col-actions { background: var(--panel-2); }
tbody tr:hover .col-actions { background: var(--hover); }
.icon-btn.maps:hover { color: #ef4444; background: rgba(239,68,68,0.12); }
.cell-phone { white-space: nowrap; min-width: 130px; }
.cell-phone .lead-cell { font-size: 14px; }
th:nth-child(2), td:nth-child(2) { min-width: 190px; }   /* negócio */
th:nth-child(4), td:nth-child(4) { min-width: 200px; }   /* e-mail */
th:nth-child(5), td:nth-child(5) { min-width: 150px; }   /* canais */
.lead-name { font-size: 14.5px; }
.lead-cell { font-size: 13.5px; }
.icon-btn { padding: 5px; }

.cell-channels { line-height: 1.7; }
/* pontuação de oportunidade */
.score-badge {
  display: inline-block; min-width: 26px; text-align: center; padding: 1px 6px; border-radius: 7px;
  font-size: 11px; font-weight: 800; margin-right: 4px; vertical-align: middle;
}
.score-badge.hot  { background: rgba(244,63,94,0.18); color: #fb7185; }
.score-badge.warm { background: rgba(245,158,11,0.18); color: var(--amber); }
.score-badge.cold { background: var(--chip-neutral); color: var(--txt-mute); }

.weak-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--amber); background: rgba(245,158,11,0.14); padding: 2px 8px; border-radius: 6px; }

/* etiquetas livres */
.lead-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag-chip { font-size: 10.5px; font-weight: 600; color: var(--purple-soft); background: rgba(63,123,255,0.14); border: 1px solid rgba(63,123,255,0.25); padding: 1px 8px; border-radius: 20px; }

/* velocidade do site no detalhe */
.speed-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.speed-box { font-size: 13px; }
.speed-time { font-size: 12px; color: var(--txt-soft); margin-left: 4px; }
.speed-na { font-size: 12.5px; color: var(--txt-mute); }
.det-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.var-chip.vc-spd { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
[data-theme="light"] .var-chip.vc-spd { color: #2563eb; }
.dnc-tag { font-size: 10.5px; font-weight: 700; color: #fb7185; }
.row-dnc { opacity: 0.55; }

/* selects da barra de controles */
.mini-select {
  appearance: none; -webkit-appearance: none; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 30px 9px 12px; color: var(--txt); font-size: 13px; font-family: inherit;
  cursor: pointer; outline: none; background-repeat: no-repeat; background-position: right 10px center; background-size: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
}
.mini-select:focus { border-color: var(--purple); }

/* modelos por nicho */
.tpl-niche-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 6px; }

/* histórico de contatos */
.hist-box { max-height: 130px; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 6px; margin-bottom: 10px; }
.hist-empty { font-size: 12px; color: var(--txt-mute); padding: 8px; text-align: center; }
.hist-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 9px; border-radius: 7px; }
.hist-item + .hist-item { border-top: 1px solid var(--border-soft); }
.hist-ch { font-size: 11.5px; font-weight: 700; color: var(--purple-soft); }
.hist-date { font-size: 11.5px; color: var(--txt-mute); }
.touch-row { display: flex; gap: 8px; margin-bottom: 16px; }
.touch-row .select-plain { flex: 1; }
.dnc-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-soft); cursor: pointer; }
.dnc-check input { width: 16px; height: 16px; accent-color: var(--red); }

/* relatório */
#reportModal .modal { max-width: 940px; }
.rep-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 8px; }
@media (max-width: 760px) { .rep-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .rep-kpis { grid-template-columns: 1fr 1fr; } }
.rep-card { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 13px; padding: 14px; }
.rep-card-hot { background: linear-gradient(140deg, var(--purple), var(--purple-2)); border-color: transparent; }
.rep-card-hot .rep-lbl, .rep-card-hot .rep-sub { color: rgba(255,255,255,0.85); }
.rep-card-hot .rep-val { color: #fff; }
.rep-lbl { font-size: 11px; color: var(--txt-mute); font-weight: 600; }
.rep-val { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-top: 4px; }
.rep-sub { font-size: 10.5px; color: var(--txt-faint); margin-top: 3px; }

.rep-section { margin-top: 22px; }
.rep-section-title { font-size: 13px; font-weight: 700; color: var(--txt-soft); margin-bottom: 12px; }
.rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 620px) { .rep-cols { grid-template-columns: 1fr; gap: 0; } }
.rep-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.rep-bar-lbl { width: 130px; font-size: 12px; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-bar { flex: 1; height: 16px; background: var(--panel-2); border-radius: 8px; overflow: hidden; }
.rep-bar-fill { height: 100%; border-radius: 8px; min-width: 3px; }
.rep-bar-fill.gen { background: var(--purple); }
.rep-bar-fill.gen-hot { background: linear-gradient(90deg, var(--purple), #6f9bff); }
.rep-bar-fill.f-new { background: var(--txt-mute); }
.rep-bar-fill.f-busy { background: var(--amber); }
.rep-bar-fill.f-blue { background: #60a5fa; }
.rep-bar-fill.f-amber { background: #22d3ee; }
.rep-bar-fill.f-found { background: var(--green); }
.rep-bar-fill.f-none { background: #fb7185; }
.rep-bar-n { width: 30px; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--txt); }

.rep-days { display: flex; align-items: flex-end; gap: 5px; height: 110px; padding-top: 6px; }
.rep-day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; }
.rep-day-bar { width: 100%; min-height: 3px; background: var(--purple); border-radius: 4px 4px 0 0; transition: height 0.3s; }
.rep-day-lbl { font-size: 9px; color: var(--txt-faint); white-space: nowrap; }

.lead-link.site { cursor: pointer; font-weight: 700; }
.lead-link.ig { color: #e1306c; }
.ig-ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }

/* preview do site no hover */
#site-preview {
  position: fixed; z-index: 80; width: 400px; pointer-events: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px -16px var(--modal-shadow); overflow: hidden;
  opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .15s, transform .15s;
  display: none;
}
#site-preview.show { opacity: 1; transform: translateY(0) scale(1); display: block; }
#site-preview .sp-head {
  font-size: 12px; font-weight: 700; color: var(--purple-soft);
  padding: 9px 13px; border-bottom: 1px solid var(--border-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#site-preview .sp-imgwrap { position: relative; width: 100%; height: 440px; overflow-y: auto; overflow-x: hidden; background: #fff; }
#site-preview img { width: 100%; height: auto; display: block; transition: opacity .2s; }
#site-preview iframe { width: 100%; height: 440px; border: 0; display: block; background: #fff; }
#site-preview .sp-load {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--txt-mute); text-align: center; padding: 0 20px;
}
#site-preview .sp-foot {
  font-size: 11px; color: var(--txt-faint); text-align: center;
  padding: 7px; border-top: 1px solid var(--border-soft); background: var(--panel-2);
}
[data-theme="light"] .lead-link.ig { color: #c13584; }
.note-dot { color: var(--amber); font-size: 9px; vertical-align: middle; }
.lead-name[data-detail] { cursor: pointer; }
.lead-name[data-detail]:hover { color: var(--purple-soft); }

/* seletor de etapa */
.status-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid transparent; border-radius: 20px;
  padding: 5px 24px 5px 11px; font-size: 11.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; outline: none;
  background-repeat: no-repeat; background-position: right 8px center; background-size: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
}
.status-select.s-new    { background-color: var(--chip-neutral); color: var(--txt-soft); }
.status-select.s-busy   { background-color: rgba(245,158,11,0.14); color: var(--amber); }
.status-select.s-blue   { background-color: rgba(59,130,246,0.14); color: #60a5fa; }
.status-select.s-amber  { background-color: rgba(34,211,238,0.14); color: #22d3ee; }
.status-select.s-found  { background-color: rgba(16,185,129,0.16); color: var(--green-soft); }
.status-select.s-none   { background-color: rgba(244,63,94,0.12); color: #fb7185; }
.status-select.s-model  { background-color: rgba(139,92,246,0.16); color: #a78bfa; }
.status-select.s-opp    { background-color: rgba(249,115,22,0.16); color: #fb923c; }
.psi-problems { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--txt-soft); line-height: 1.55; }
.psi-problems li { margin: 2px 0; }
.pitch-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.lbl-hint { font-weight: 400; color: var(--txt-mute); font-size: 11.5px; }
[data-theme="light"] .status-select.s-blue { color: #2563eb; }
[data-theme="light"] .status-select.s-model { color: #7c3aed; }
[data-theme="light"] .status-select.s-opp { color: #ea580c; }

.lead-name { font-weight: 600; color: var(--txt); font-size: 13.5px; }
.lead-cat { font-size: 11.5px; color: var(--txt-mute); margin-top: 2px; }
.lead-cell { font-size: 13px; color: var(--txt-soft); }
.lead-link { color: var(--purple-soft); text-decoration: none; font-size: 12.5px; }
.lead-link:hover { text-decoration: underline; }
.muted { color: var(--txt-faint); }

input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.chip-busy   { background: rgba(245,158,11,0.12); color: var(--amber); }
.chip-busy::before   { background: var(--amber); animation: pulse 1.1s infinite; }
.chip-found  { background: rgba(16,185,129,0.12); color: var(--green-soft); }
.chip-found::before  { background: var(--green); }
.chip-none   { background: rgba(244,63,94,0.1); color: #fb7185; }
.chip-none::before   { background: var(--red); }
.chip-pending{ background: var(--chip-neutral); color: var(--txt-mute); }
.chip-pending::before{ background: var(--txt-mute); }
.chip-sent   { background: rgba(16,185,129,0.14); color: var(--green-soft); }
.chip-sent::before   { background: var(--green); }
.chip-new    { background: var(--chip-neutral); color: var(--txt-soft); }
.chip-new::before    { background: var(--txt-mute); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.icon-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 7px; color: var(--txt-mute); transition: all 0.12s; line-height: 0; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: var(--txt); background: var(--panel-2); }
.icon-btn.send:hover { color: var(--green-soft); background: rgba(16,185,129,0.1); }
.icon-btn.del:hover { color: var(--red); background: rgba(244,63,94,0.1); }

/* ─── EMPTY ─── */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px; gap: 12px; text-align: center; }
.empty .ico { font-size: 52px; opacity: 0.35; }
.empty h3 { font-size: 16px; color: var(--txt-soft); font-weight: 650; }
.empty p { font-size: 13px; color: var(--txt-mute); line-height: 1.6; max-width: 380px; }

/* ─── MODAL ─── */
.modal-bg {
  position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  width: 100%; max-width: 620px; max-height: 88vh; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px -20px var(--modal-shadow);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border-soft); }
.modal-head h2 { font-size: 16px; font-weight: 700; }
.modal-head p { font-size: 12px; color: var(--txt-mute); margin-top: 2px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--border-soft); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 650; color: var(--txt-soft); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; color: var(--txt); font-size: 13.5px;
  font-family: inherit; outline: none; transition: border 0.15s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); }
.field textarea { min-height: 170px; line-height: 1.55; }

.ta-sm { min-height: 96px !important; }
.combo-box { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.combo-title { font-size: 13px; font-weight: 700; color: var(--purple-soft); margin-bottom: 12px; }
.combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 13px; }
@media (max-width: 480px) { .combo-grid { grid-template-columns: 1fr; } }
.btn-blue-grad { width: 100%; justify-content: center; background: linear-gradient(90deg, var(--purple), var(--purple-2)); color: #ffffff; font-weight: 700; padding: 11px; box-shadow: 0 6px 18px -8px rgba(63,123,255,0.7); }
.btn-blue-grad:hover { filter: brightness(1.08); }
.search-run { margin-top: 4px; }

.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
@media (max-width: 480px) { .field-row { flex-direction: column; gap: 0; } }

.divider { height: 1px; background: var(--border-soft); margin: 6px 0 18px; }
.block-label { display: block; font-size: 12px; font-weight: 650; color: var(--txt-soft); margin-bottom: 7px; }
.backup-row { display: flex; gap: 9px; flex-wrap: wrap; }

input[type=date].select-plain { color-scheme: dark; }
[data-theme="light"] input[type=date].select-plain { color-scheme: light; }

/* ── CONTRATOS ── */
.modal-wide { max-width: 980px; }
.ctr-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .ctr-layout { grid-template-columns: 1fr; } }
.ctr-list-pane { display: flex; flex-direction: column; gap: 10px; }
.ctr-list-actions { display: flex; gap: 8px; }
.ctr-list-actions .btn { flex: 1; justify-content: center; }
.ctr-list { display: flex; flex-direction: column; gap: 7px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
@media (max-width: 760px) { .ctr-list { max-height: 160px; } }
.ctr-item {
  text-align: left; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: all 0.12s;
  display: flex; flex-direction: column; gap: 3px;
}
.ctr-item:hover { border-color: var(--purple-soft); }
.ctr-item.active { border-color: var(--purple); background: var(--purple-soft-bg, rgba(63,123,255,0.08)); }
.ctr-item .ci-title { font-size: 13px; font-weight: 650; color: var(--txt); line-height: 1.3; }
.ctr-item .ci-meta { font-size: 11px; color: var(--txt-mute); }
.ctr-editor { min-width: 0; }
.ctr-textarea { width: 100%; min-height: 320px; max-height: 56vh; line-height: 1.6;
  font-size: 13px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 14px; color: var(--txt); font-family: inherit;
  outline: none; resize: vertical; transition: border 0.15s; }
.ctr-textarea:focus { border-color: var(--purple); }
.ctr-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ctr-editor-actions .spacer { flex: 1; }
@media (max-width: 760px) { .ctr-editor-actions .spacer { display: none; } }

.var-chip.vc-me { background: rgba(16,185,129,0.12); color: var(--green-soft); border-color: rgba(16,185,129,0.25); }
.var-chip.vc-me:hover { background: rgba(16,185,129,0.2); }

/* indicador de retorno na linha */
.followup-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.followup-chip.due { background: rgba(244,63,94,0.12); color: #fb7185; }
.followup-chip.soon { background: rgba(245,158,11,0.12); color: var(--amber); }
.nosite-tag { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--purple-soft); background: rgba(63,123,255,0.12); padding: 2px 8px; border-radius: 6px; }

.vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.var-chip {
  background: rgba(63,123,255,0.12); color: var(--purple-soft); border: 1px solid rgba(63,123,255,0.25);
  padding: 4px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  font-family: 'Consolas', monospace; transition: all 0.12s;
}
.var-chip:hover { background: rgba(63,123,255,0.22); }

.hint { font-size: 11.5px; color: var(--txt-mute); margin-top: 7px; line-height: 1.5; }

/* abas */
.tabs { display: flex; gap: 4px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.tab { flex: 1; padding: 8px; border-radius: 7px; border: none; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--txt-mute); cursor: pointer; transition: all 0.12s; }
.tab:hover { color: var(--txt-soft); }
.tab.active { background: var(--purple); color: #ffffff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* select simples (detalhe) */
.select-plain {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; color: var(--txt); font-size: 13.5px; font-family: inherit; cursor: pointer; outline: none;
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
}
.select-plain:focus { border-color: var(--purple); }

/* grade de detalhes */
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.det-item { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 10px; padding: 10px 12px; }
.det-item span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--txt-mute); font-weight: 600; margin-bottom: 3px; }
.det-item b { font-size: 13px; color: var(--txt); font-weight: 600; word-break: break-word; }
.det-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 480px) { .det-grid { grid-template-columns: 1fr; } }

.icon-btn.wa:hover { color: #25d366; background: rgba(37,211,102,0.1); }

/* ─── SEND MODE ─── */
.send-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.send-progress .bar { flex: 1; height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.send-progress .bar-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--purple-soft)); transition: width 0.3s; }
.send-progress .label { font-size: 12.5px; color: var(--txt-soft); font-weight: 600; white-space: nowrap; }

.preview-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.preview-to { font-size: 13px; margin-bottom: 10px; }
.preview-to b { color: var(--txt); }
.preview-to .email-to { color: var(--green-soft); }
.preview-subj { font-size: 14px; font-weight: 650; color: var(--txt); padding-bottom: 11px; margin-bottom: 11px; border-bottom: 1px solid var(--border-soft); }
.preview-body { font-size: 13px; color: var(--txt-soft); line-height: 1.6; white-space: pre-wrap; max-height: 240px; overflow-y: auto; }
.send-subj {
  width: 100%; background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; color: var(--txt); font-size: 14px; font-weight: 650; font-family: inherit;
  outline: none; margin-bottom: 10px; box-sizing: border-box;
}
.send-subj:focus { border-color: var(--purple); }
.send-body {
  width: 100%; min-height: 200px; max-height: 320px; resize: vertical;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 12px; color: var(--txt-soft); font-size: 13px; line-height: 1.6;
  font-family: inherit; outline: none; box-sizing: border-box;
}
.send-body:focus { border-color: var(--purple); color: var(--txt); }

.no-email-warn { background: var(--red-soft-bg); border: 1px solid rgba(244,63,94,0.2); color: var(--red-soft-txt); padding: 11px 14px; border-radius: 10px; font-size: 12.5px; margin-bottom: 14px; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--panel-2); border: 1px solid var(--border); padding: 11px 20px; border-radius: 11px;
  font-size: 13px; color: var(--txt); opacity: 0; transition: all 0.22s; pointer-events: none; z-index: 60;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,0.7);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.scroll-thin::-webkit-scrollbar-thumb:hover { background: #2e2e4a; }

/* ─── RESPONSIVE ─── */
@media (max-width: 920px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 18px 14px 60px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-value { font-size: 24px; }
  .brand h1 { font-size: 17px; }
  .controls { flex-direction: column; align-items: stretch; }
  .filter-tabs { overflow-x: auto; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { flex: 1; justify-content: center; }
}

/* ════════════════════════════════════════════════
   CRM v4 — VIEWS, KANBAN, FINANCEIRO, TAREFAS
   ════════════════════════════════════════════════ */
.view { display: none; }
.view.view-active { display: block; animation: viewIn 0.22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nav-pill { margin-left: auto; background: var(--purple); color: #fff; font-size: 10px; font-weight: 800; min-width: 18px; text-align: center; padding: 1px 6px; border-radius: 20px; }
.nav-item.active .nav-pill { background: var(--purple); color: #fff; }

/* ─── TOPBAR ACTIONS (injetados por view) ─── */
.view-action { display: flex; align-items: center; gap: 10px; }

/* ─── KANBAN ─── */
.kanban-hint { font-size: 12.5px; color: var(--txt-mute); margin-bottom: 14px; }
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; }
.kan-col { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; width: 280px; flex-shrink: 0; display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.kan-col-head { padding: 14px 15px 10px; display: flex; align-items: center; gap: 8px; }
.kan-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.kan-col-name { font-weight: 750; font-size: 13.5px; letter-spacing: -0.2px; }
.kan-col-count { margin-left: auto; background: var(--chip-neutral); color: var(--txt-mute); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.kan-col-sum { padding: 0 15px 8px; font-size: 11.5px; font-weight: 700; color: var(--green-soft); }
.kan-body { padding: 4px 11px 12px; overflow-y: auto; flex: 1; min-height: 70px; }
.kan-body.drag-over { background: rgba(63,123,255,0.08); border-radius: 10px; outline: 2px dashed rgba(63,123,255,0.45); outline-offset: -5px; }
.kan-card { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; transition: border-color 0.14s, transform 0.1s, box-shadow 0.14s; }
.kan-card:hover { border-color: var(--purple); box-shadow: 0 6px 18px -10px rgba(63,123,255,0.5); }
.kan-card.dragging { opacity: 0.45; cursor: grabbing; }
.kan-card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
.kan-score { flex-shrink: 0; font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; line-height: 1.5; }
.kan-score.hot { background: rgba(244,63,94,0.15); color: #fb7185; }
.kan-score.warm { background: rgba(245,158,11,0.15); color: var(--amber); }
.kan-score.cold { background: var(--chip-neutral); color: var(--txt-mute); }
.kan-name { font-weight: 700; font-size: 13px; line-height: 1.3; word-break: break-word; }
.kan-cat { font-size: 11px; color: var(--txt-mute); margin-top: 1px; }
.kan-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; }
.kan-tag { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.kan-tag.val { background: rgba(16,185,129,0.14); color: var(--green-soft); }
.kan-tag.nosite { background: rgba(244,63,94,0.12); color: #fb7185; }
.kan-tag.weak { background: rgba(245,158,11,0.14); color: var(--amber); }
.kan-foot { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-soft); padding-top: 8px; margin-top: 2px; }
.kan-wa, .kan-mail { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: var(--panel); border: 1px solid var(--border-soft); color: var(--txt-mute); transition: 0.14s; }
.kan-wa:hover { color: #25d366; border-color: #25d366; }
.kan-mail:hover { color: var(--green-soft); border-color: var(--green-soft); }
.kan-wa svg, .kan-mail svg { width: 14px; height: 14px; }
.kan-fu { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.kan-fu.due { background: rgba(244,63,94,0.14); color: #fb7185; }
.kan-fu.soon { background: var(--chip-neutral); color: var(--txt-mute); }
.kan-empty { font-size: 11.5px; color: var(--txt-faint); text-align: center; padding: 16px 6px; }

/* ─── FINANCEIRO ─── */
.fin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.fin-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 14px; padding: 16px 18px; }
.fin-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fin-ic svg { width: 19px; height: 19px; }
.ic-purple { background: rgba(63,123,255,0.14); color: var(--purple-soft); }
.ic-green { background: rgba(16,185,129,0.14); color: var(--green-soft); }
.ic-amber { background: rgba(245,158,11,0.14); color: var(--amber); }
.ic-blue { background: rgba(59,130,246,0.14); color: #60a5fa; }
.fin-label { font-size: 12px; color: var(--txt-mute); font-weight: 600; }
.fin-val { font-size: 25px; font-weight: 800; letter-spacing: -0.8px; margin-top: 3px; }
.fin-val.green { color: var(--green-soft); }
.fin-val.amber { color: var(--amber); }
.fin-val.blue { color: #60a5fa; }
.fin-sub { font-size: 11px; color: var(--txt-faint); margin-top: 3px; }
.fin-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.fin-panel { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.fin-panel-head { padding: 15px 18px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
.fin-panel-head h3 { font-size: 14px; font-weight: 750; }
.fin-panel-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--txt-mute); background: var(--chip-neutral); padding: 2px 10px; border-radius: 20px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fin-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--txt-faint); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.fin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.fin-table tbody tr:last-child td { border-bottom: none; }
.fin-table tbody tr { transition: background 0.12s; }
.fin-table tbody tr:hover { background: var(--hover); }
.fin-cli { display: flex; align-items: center; gap: 10px; }
.fin-av { width: 32px; height: 32px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fin-cli-name { font-weight: 700; }
.fin-cli-sub { font-size: 11.5px; color: var(--txt-mute); }
.fin-money { font-weight: 750; }
.fin-pend { font-size: 11px; color: var(--amber); margin-top: 1px; }
.fin-paid-ok { font-size: 11px; color: var(--green-soft); margin-top: 1px; }
.fin-situ { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-block; white-space: nowrap; }
.fin-situ.paid { background: rgba(16,185,129,0.16); color: var(--green-soft); }
.fin-situ.partial { background: rgba(245,158,11,0.14); color: var(--amber); }
.fin-situ.none { background: var(--chip-neutral); color: var(--txt-mute); }
.fin-bars { padding: 16px 18px; }
.fin-bar-row { margin-bottom: 14px; }
.fin-bar-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; }
.fin-bar-name { font-weight: 650; }
.fin-bar-num { color: var(--txt-mute); font-weight: 600; }
.fin-bar-track { height: 9px; background: var(--chip-neutral); border-radius: 20px; overflow: hidden; }
.fin-bar-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--green), var(--green-soft)); transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.fin-bars-empty { font-size: 12px; color: var(--txt-faint); text-align: center; padding: 24px 10px; }
.fin-empty { border: none; }
.finm-quick { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 14px; }
.finm-chip { font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 20px; background: var(--panel-2); border: 1px solid var(--border); color: var(--txt-soft); cursor: pointer; transition: 0.12s; }
.finm-chip:hover { border-color: var(--purple); color: var(--purple-soft); }
.finm-summary { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px; padding: 13px 15px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.finm-summary b { font-size: 18px; letter-spacing: -0.5px; }

/* ─── TAREFAS ─── */
.task-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.task-col { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 6px 6px 12px; }
.task-col-head { display: flex; align-items: center; gap: 8px; padding: 13px 14px 10px; font-size: 13px; font-weight: 750; }
.task-col-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.task-col-head .dot.due { background: var(--red); }
.task-col-head .dot.soon { background: var(--amber); }
.task-col-head .dot.done { background: var(--green); }
.task-col-n { margin-left: auto; background: var(--chip-neutral); color: var(--txt-mute); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }
.task-stack { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; min-height: 40px; }
.task-item { background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px; padding: 11px 12px; display: flex; align-items: flex-start; gap: 10px; transition: border-color 0.14s; }
.task-item:hover { border-color: var(--border); }
.task-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.14s; background: transparent; padding: 0; }
.task-check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.task-item.done .task-check { background: var(--green); border-color: var(--green); }
.task-item.done .task-check svg { opacity: 1; }
.task-body { flex: 1; min-width: 0; cursor: pointer; }
.task-text { font-weight: 600; font-size: 13px; line-height: 1.35; word-break: break-word; }
.task-item.done .task-text { text-decoration: line-through; color: var(--txt-faint); }
.task-meta { font-size: 11px; color: var(--txt-mute); margin-top: 4px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.task-lead { color: var(--purple-soft); font-weight: 700; }
.task-due { font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.task-due.late { background: rgba(244,63,94,0.14); color: #fb7185; }
.task-due.soon { background: rgba(245,158,11,0.14); color: var(--amber); }
.task-due.ok { background: var(--chip-neutral); color: var(--txt-mute); }
.task-del { flex-shrink: 0; color: var(--txt-faint); background: none; border: none; cursor: pointer; padding: 3px; border-radius: 6px; line-height: 0; transition: 0.14s; }
.task-del:hover { color: var(--red); background: rgba(244,63,94,0.1); }
.task-del svg { width: 14px; height: 14px; }
.task-stack-empty { font-size: 11.5px; color: var(--txt-faint); text-align: center; padding: 14px 6px; }
.task-empty { border: none; }

@media (max-width: 980px) {
  .fin-cards { grid-template-columns: repeat(2, 1fr); }
  .fin-grid { grid-template-columns: 1fr; }
  .task-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fin-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fin-val { font-size: 21px; }
}

/* ════════════════════════════════════════════════
   CRM v4 PRO — Pipelines, Cadências, Automações, Atividades
   ════════════════════════════════════════════════ */
/* ─── Kanban toolbar / pipelines ─── */
.kan-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pipe-tabs { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.pipe-tab { flex-shrink: 0; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--txt-soft); cursor: pointer; transition: 0.12s; white-space: nowrap; }
.pipe-tab:hover { border-color: var(--border); color: var(--txt); }
.pipe-tab.active { background: rgba(63,123,255,0.12); border-color: rgba(63,123,255,0.4); color: var(--purple-soft); }
.pipe-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.pipe-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 10px; }
.pipe-row-name { font-weight: 700; font-size: 13.5px; }
.pipe-row-sub { font-size: 11.5px; color: var(--txt-mute); margin-top: 1px; }
.pipe-row-builtin { font-size: 10px; font-weight: 700; color: var(--purple-soft); background: rgba(63,123,255,0.12); padding: 2px 8px; border-radius: 20px; }
.pipe-add-card { width: 100%; padding: 9px; border-radius: 9px; border: 1px dashed var(--border); background: transparent; color: var(--txt-mute); font-weight: 700; font-size: 12px; cursor: pointer; margin-top: 2px; transition: 0.12s; }
.pipe-add-card:hover { border-color: var(--purple); color: var(--purple-soft); }
.kan-card-x { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 6px; background: var(--panel); border: 1px solid var(--border-soft); color: var(--txt-faint); display: none; align-items: center; justify-content: center; cursor: pointer; line-height: 0; }
.kan-card-x svg { width: 11px; height: 11px; }
.kan-card { position: relative; }
.kan-card:hover .kan-card-x { display: flex; }
.kan-card-x:hover { color: var(--red); border-color: var(--red); }

/* ─── Lead picker ─── */
.pick-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border-soft); cursor: pointer; transition: 0.12s; }
.pick-row:hover { border-color: var(--purple); }
.pick-av { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pick-name { font-weight: 700; font-size: 13px; }
.pick-sub { font-size: 11px; color: var(--txt-mute); }
.pick-empty { font-size: 12px; color: var(--txt-faint); text-align: center; padding: 20px; }

/* ─── Cadências ─── */
.cad-apply { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.cad-steps { display: flex; flex-direction: column; gap: 8px; }
.cad-step { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 10px; }
.cad-day { flex-shrink: 0; width: 54px; text-align: center; font-size: 11px; font-weight: 800; color: var(--purple-soft); background: rgba(63,123,255,0.1); padding: 4px 0; border-radius: 7px; }
.cad-ch { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px; background: var(--chip-neutral); color: var(--txt-soft); flex-shrink: 0; }
.cad-label { font-size: 13px; font-weight: 600; }
.cad-del { margin-left: auto; color: var(--txt-faint); background: none; border: none; cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0; }
.cad-del:hover { color: var(--red); background: rgba(244,63,94,0.1); }
.cad-del svg { width: 14px; height: 14px; }

/* ─── Automações ─── */
.auto-master { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin-bottom: 6px; cursor: pointer; }
.auto-master input { width: 17px; height: 17px; accent-color: var(--purple); }
.auto-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.auto-rule { padding: 13px 15px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px; }
.auto-rule-top { display: flex; align-items: center; gap: 10px; }
.auto-rule-name { font-weight: 700; font-size: 13.5px; }
.auto-switch { margin-left: auto; }
.auto-switch input { width: 16px; height: 16px; accent-color: var(--purple); }
.auto-rule-desc { font-size: 12px; color: var(--txt-mute); margin-top: 5px; line-height: 1.45; }
.auto-rule-desc input.auto-days { width: 46px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--txt); text-align: center; font-weight: 700; margin: 0 2px; }
.auto-rule.off { opacity: 0.5; }

/* ─── Atividades ─── */
.act-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.act-main { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; overflow: hidden; }
.act-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border-soft); }
.act-filters { display: flex; gap: 6px; flex: 1; overflow-x: auto; }
.act-fchip { flex-shrink: 0; padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--txt-soft); cursor: pointer; transition: 0.12s; }
.act-fchip:hover { color: var(--txt); }
.act-fchip.active { background: rgba(63,123,255,0.12); border-color: rgba(63,123,255,0.4); color: var(--purple-soft); }
.act-timeline { padding: 8px 18px 16px; max-height: calc(100vh - 220px); overflow-y: auto; }
.act-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.act-item:last-child { border-bottom: none; }
.act-ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.act-ic.move { background: rgba(63,123,255,0.12); }
.act-ic.task { background: rgba(16,185,129,0.12); }
.act-ic.money { background: rgba(245,158,11,0.12); }
.act-ic.send { background: rgba(59,130,246,0.12); }
.act-ic.auto { background: rgba(168,85,247,0.12); }
.act-ic.cad { background: rgba(236,72,153,0.12); }
.act-body { flex: 1; min-width: 0; }
.act-text { font-size: 13px; font-weight: 600; line-height: 1.4; }
.act-text b { font-weight: 800; }
.act-time { font-size: 11px; color: var(--txt-faint); margin-top: 2px; }
.act-side { display: flex; flex-direction: column; gap: 16px; }
.act-side-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 15px 17px; }
.act-side-card h3 { font-size: 13px; font-weight: 750; margin-bottom: 12px; }
.act-up { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.act-up:last-child { border-bottom: none; }
.act-up-due { flex-shrink: 0; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 7px; min-width: 52px; text-align: center; }
.act-up-due.late { background: rgba(244,63,94,0.14); color: #fb7185; }
.act-up-due.ok { background: var(--chip-neutral); color: var(--txt-mute); }
.act-up-text { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.act-up-lead { font-size: 11px; color: var(--purple-soft); font-weight: 700; }
.act-side-empty { font-size: 12px; color: var(--txt-faint); }
.act-stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.act-stat b { font-weight: 800; }
.act-empty { border: none; }

@media (max-width: 980px) {
  .act-layout { grid-template-columns: 1fr; }
  .cad-apply { flex-wrap: wrap; }
}

/* ───── Tema branco padrão + destaque índigo (igual à extensão) ───── */
.score-badge, .kan-score { display: none !important; }
.metric-ico { background: rgba(63,123,255,0.12); }
.metric-ico svg { fill: var(--purple); }
.metric.m-purple .metric-ico { background: rgba(255,255,255,0.85); }

/* ── Tarefas: seleção em massa ── */
.task-bulkbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 9px 14px; margin-bottom: 14px;
}
.task-selall { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 650; color: var(--txt-soft); cursor: pointer; }
.task-selall input { width: 15px; height: 15px; accent-color: var(--purple); cursor: pointer; }
.task-sel-count { font-size: 12px; color: var(--txt-mute); }
.task-bulkbar.has-sel .task-sel-count { color: var(--purple-soft); font-weight: 650; }
.task-bulk-spacer { flex: 1; }
.task-item .task-pick { width: 15px; height: 15px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; align-self: center; }

/* ── Botão "Baixar extensão" no topo, ao lado de Importar CSV / Novo lead (pulsando) ── */
#btnDownloadExt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  background: linear-gradient(135deg, #3f7bff, #2a5cff);
  color: #ffffff !important;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none !important;
  border: none;
  border-radius: 13px;
  animation: pulseDownloadExt 2.1s cubic-bezier(.4, 0, .5, 1) infinite;
  will-change: transform, box-shadow;
}
#btnDownloadExt:hover, #btnDownloadExt:focus { text-decoration: none !important; filter: brightness(1.1); animation-play-state: paused; }
#btnDownloadExt svg { stroke: #ffffff; width: 19px; height: 19px; flex-shrink: 0; }
@keyframes pulseDownloadExt {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(63,123,255,.5), 0 0 0 0 rgba(63,123,255,.35), 0 6px 18px -6px rgba(63,123,255,.5);
  }
  45% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(63,123,255,0), 0 0 22px 4px rgba(63,123,255,.45), 0 12px 26px -6px rgba(63,123,255,.75);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(63,123,255,0), 0 0 0 0 rgba(63,123,255,0), 0 6px 18px -6px rgba(63,123,255,.5);
  }
}

/* ── Relatório: gráficos (donut do funil + linha das capturas) ── */
.rep-donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rep-donut { width: 150px; height: 150px; flex-shrink: 0; }
.rep-donut-big { font-size: 30px; font-weight: 800; fill: var(--txt); }
.rep-donut-small { font-size: 12px; font-weight: 600; fill: var(--txt-mute); }
.rep-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; flex: 1; min-width: 220px; }
.rep-leg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt-soft); }
.rep-leg-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.rep-leg-lbl { flex: 1; }
.rep-leg b { color: var(--txt); font-weight: 700; }
.rep-leg-pct { color: var(--txt-mute); font-size: 11.5px; min-width: 34px; text-align: right; }
.rep-line { width: 100%; height: auto; display: block; overflow: visible; }
.rep-line-dot { fill: var(--purple); stroke: var(--panel); stroke-width: 1.5; }
.rep-line-lbl { fill: var(--txt-mute); font-size: 11px; }
@media (max-width: 560px) { .rep-legend { grid-template-columns: 1fr; } .rep-donut-wrap { justify-content: center; } }

/* ── Exportar relatório em PDF (impressão) ── */
@media print {
  @page { margin: 1.4cm; }
  body { background: #fff !important; }
  body > *:not(#reportModal) { display: none !important; }
  #reportModal { position: static !important; display: block !important; padding: 0 !important; background: #fff !important; backdrop-filter: none !important; }
  #reportModal .modal { max-width: 100% !important; max-height: none !important; width: 100% !important; border: none !important; box-shadow: none !important; background: #fff !important; }
  #reportModal .modal-body { overflow: visible !important; padding: 0 !important; }
  #reportModal .modal-foot, #reportModal .icon-btn { display: none !important; }
  #reportModal .modal-head { border-bottom: 2px solid #3f7bff !important; padding: 0 0 10px !important; }
  #reportModal .modal-head h2 { color: #16161a !important; }
  #reportModal .modal-head p { display: none !important; }
  #reportModal .modal-head::after { content: attr(data-printdate); display: block; font-size: 12px; color: #666; margin-top: 4px; }
  #reportModal, #reportModal * { color: #16161a !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  #reportModal .rep-card, #reportModal .rep-section { background: #fff !important; border: 1px solid #e6e6ef !important; box-shadow: none !important; break-inside: avoid; }
  #reportModal .rep-card-hot { background: linear-gradient(135deg,#3f7bff,#2a5cff) !important; }
  #reportModal .rep-card-hot * { color: #fff !important; }
  #reportModal .rep-bar { background: #ececf5 !important; }
  #reportModal .rep-donut-big { fill: #16161a !important; }
  #reportModal .rep-donut-small { fill: #666 !important; }
  #reportModal .rep-line-lbl { fill: #666 !important; }
}
body.printing-report { overflow: hidden; }

/* ── Selo de sincronização (barra lateral) ── */
.cloud-sync-badge {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 8px 12px;
  border-radius: 10px; font-size: 12px; font-weight: 650;
  border: 1px solid var(--border-soft); background: var(--panel-2);
}
.cloud-sync-badge .css-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cloud-sync-badge.synced  { color: #16a34a; }
.cloud-sync-badge.synced  .css-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.cloud-sync-badge.syncing { color: var(--purple-soft); }
.cloud-sync-badge.syncing .css-dot { background: var(--purple); animation: syncPulse 1s ease-in-out infinite; }
.cloud-sync-badge.offline { color: var(--txt-mute); }
.cloud-sync-badge.offline .css-dot { background: #9aa0ae; }
@keyframes syncPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

/* ════════════════════════════════════════════════
   SERVIÇOS PRESTADOS + FINANCEIRO MENSAL
   ════════════════════════════════════════════════ */
/* ── toolbar de serviços ── */
.svc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.svc-toolbar .spacer { flex: 1; }
.svc-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.svc-fchip {
  padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 650;
  background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--txt-mute);
  cursor: pointer; transition: 0.12s; font-family: inherit; white-space: nowrap;
}
.svc-fchip:hover { color: var(--txt); border-color: var(--border); }
.svc-fchip.active { background: rgba(63,123,255,0.12); border-color: rgba(63,123,255,0.4); color: var(--purple-soft); }
.svc-fchip .tab-count { background: var(--chip-neutral); }
.svc-fchip.active .tab-count { background: rgba(63,123,255,0.25); color: var(--purple-soft); }

/* ── badges de status de serviço ── */
.svc-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; display: inline-block; white-space: nowrap; }
.svc-badge.svc-and  { background: rgba(245,165,36,0.15); color: var(--amber); }
.svc-badge.svc-ent  { background: rgba(63,123,255,0.15); color: var(--purple-soft); }
.svc-badge.svc-pago { background: rgba(67,224,138,0.16); color: var(--green-soft); }
.svc-badge.svc-canc { background: var(--chip-neutral); color: var(--txt-mute); }
.svc-src { color: var(--purple-soft) !important; font-weight: 700; }
.icon-btn.svc-receive:hover { color: var(--green-soft); background: rgba(67,224,138,0.12); }

/* ── chips de vencimento / atraso ── */
.fin-due-line { margin-top: 3px; }
.due-chip { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px; display: inline-block; }
.due-chip.late  { background: rgba(244,63,94,0.15); color: #fb7185; }
.due-chip.today { background: rgba(245,165,36,0.18); color: var(--amber); }
.due-chip.soon  { background: rgba(245,165,36,0.13); color: var(--amber); }
.due-chip.ok    { background: var(--chip-neutral); color: var(--txt-mute); }

/* ── despesas recorrentes ── */
.rec-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.rec-empty { font-size: 12.5px; color: var(--txt-mute); padding: 14px; text-align: center; background: var(--panel-2); border: 1px dashed var(--border); border-radius: 11px; }
.rec-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border-soft); border-radius: 11px; }
.rec-item.off { opacity: 0.5; }
.rec-toggle input { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; }
.rec-main { flex: 1; min-width: 0; }
.rec-desc { font-size: 13px; font-weight: 650; color: var(--txt); }
.rec-meta { font-size: 11.5px; color: var(--txt-mute); margin-top: 1px; }
.rec-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

/* ── meta de faturamento ── */
.fin-goal { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 20px; }
.fin-goal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.fin-goal-title { font-family: 'Manrope', sans-serif; font-size: 14.5px; font-weight: 750; }
.fin-goal-num { font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 700; color: var(--txt-mute); margin-left: 6px; }
.fin-goal-bar { position: relative; height: 14px; background: var(--chip-neutral); border-radius: 20px; overflow: hidden; }
.fin-goal-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 20px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.fin-goal-fill.proj { background: rgba(63,123,255,0.28); }
.fin-goal-fill.real { background: linear-gradient(90deg, var(--green), var(--green-soft)); }
.fin-goal-legend { display: flex; gap: 16px; margin-top: 8px; }
.fin-goal-legend .lg { font-size: 11px; font-weight: 700; color: var(--txt-mute); display: flex; align-items: center; gap: 6px; }
.fin-goal-legend .lg::before { content: ''; width: 9px; height: 9px; border-radius: 3px; }
.fin-goal-legend .lg.real::before { background: var(--green-soft); }
.fin-goal-legend .lg.proj::before { background: rgba(63,123,255,0.5); }
.fin-goal-status { font-size: 12.5px; color: var(--txt-soft); margin-top: 11px; line-height: 1.5; }
.fin-goal-status b { color: var(--txt); }

/* ════════════════════════════════════════════════
   MEU DIA — calendário + agenda (estilo Lembretes)
   ════════════════════════════════════════════════ */
.today-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .today-layout { grid-template-columns: 1fr; } }

.today-cal-pane { display: flex; flex-direction: column; gap: 16px; }
.today-cal { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 18px; padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-title { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 750; }
.cal-nav { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--txt-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav:hover { border-color: var(--purple); color: var(--txt); }
.cal-nav svg { width: 13px; height: 13px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { text-align: center; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--txt-faint); padding: 4px 0 8px; }
.cal-cell {
  position: relative; aspect-ratio: 1; border: none; background: none; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--txt-soft); font-size: 13px; font-weight: 600; font-family: inherit;
  transition: background 0.12s, color 0.12s;
}
.cal-cell:hover { background: var(--hover); }
.cal-cell.other { color: var(--txt-faint); opacity: 0.55; }
.cal-cell.today { color: var(--purple-soft); font-weight: 800; }
.cal-cell.today .cal-num { position: relative; }
.cal-cell.sel { background: var(--purple); color: #fff; font-weight: 800; }
.cal-cell.sel:hover { background: var(--purple); }
.cal-dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--green-soft); }
.cal-cell.sel .cal-dot { background: #fff; }
.cal-today-btn { width: 100%; justify-content: center; margin-top: 12px; }

/* resumo de hoje */
.today-mini { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 16px; padding: 15px 17px; }
.mini-title { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 750; margin-bottom: 10px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--txt-soft); border-bottom: 1px solid var(--border-soft); }
.mini-row:last-child { border-bottom: none; }
.mini-row b { font-weight: 800; }
.mini-empty { font-size: 12.5px; color: var(--txt-mute); }

/* agenda estilo Lembretes */
.today-agenda { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-height: 420px; }
.agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.agenda-date { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 780; letter-spacing: -0.3px; text-transform: capitalize; }
.agenda-sub { font-size: 12.5px; color: var(--txt-mute); margin-top: 2px; }
.agenda-list { padding: 10px 14px 18px; overflow-y: auto; flex: 1; max-height: calc(100vh - 240px); }

.rem-group { margin-top: 14px; }
.rem-group:first-child { margin-top: 4px; }
.rem-group-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 750; color: var(--c); padding: 6px 8px; }
.rem-group-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.rem-group-n { margin-left: auto; background: var(--chip-neutral); color: var(--txt-mute); font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; }

.rem-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; cursor: pointer; transition: background 0.12s; }
.rem-item:hover { background: var(--hover); }
.rem-check {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--c); background: transparent; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center; transition: 0.14s;
}
.rem-check svg { width: 12px; height: 12px; opacity: 0; }
.rem-check.done { background: var(--c); border-color: var(--c); }
.rem-check.done svg { opacity: 1; }
.rem-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin: 0 5px; }
.rem-body { flex: 1; min-width: 0; }
.rem-title { font-size: 14px; font-weight: 600; color: var(--txt); line-height: 1.3; }
.rem-item.done .rem-title { text-decoration: line-through; color: var(--txt-faint); }
.rem-sub { font-size: 12px; color: var(--txt-mute); margin-top: 2px; }
.rem-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; flex-shrink: 0; }

.agenda-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; gap: 10px; text-align: center; }
.agenda-empty .ico { font-size: 44px; opacity: 0.5; }
.agenda-empty h3 { font-size: 16px; color: var(--txt-soft); font-weight: 700; }
.agenda-empty p { font-size: 13px; color: var(--txt-mute); }

/* ════════════════════════════════════════════════
   MOBILE — sidebar vira gaveta + ajustes finos
   ════════════════════════════════════════════════ */
.menu-toggle { display: none; }
.nav-overlay { display: none; }

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    border: 1px solid var(--border); background: var(--panel-2); color: var(--txt-soft); cursor: pointer;
  }
  .menu-toggle svg { width: 18px; height: 18px; }
  .main-top-l { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 11px; }
  .menu-toggle { grid-row: 1 / 3; }
  .page-title { font-size: 21px; letter-spacing: -0.4px; }
  .page-sub { font-size: 12.5px; }

  .sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 90; width: 260px;
    transform: translateX(-100%); transition: transform 0.25s ease;
    box-shadow: 24px 0 70px -20px rgba(0,0,0,0.65);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); z-index: 85; }
  body.nav-open .nav-overlay { display: block; }

  .main { padding: 16px 14px 50px; height: 100vh; }
  .main-top { margin-bottom: 18px; }
  .today-agenda .agenda-list { max-height: none; }
  .agenda-date { font-size: 16px; }
  .fin-month-label { min-width: 130px; font-size: 15px; }
  .fin-month-nav, .svc-toolbar { gap: 8px; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fin-cards { grid-template-columns: 1fr 1fr; }
  .fin-insights { grid-template-columns: 1fr; }
  .cal-cell { font-size: 12px; }
  .rem-tag { display: none; }
  .btn { padding: 8px 12px; }
  .page-title { font-size: 19px; }
}

/* ── ícone financeiro vermelho ── */
.fin-ic.ic-red { background: rgba(244,63,94,0.14); color: #fb7185; }
.fin-val.red { color: #fb7185; }

/* ── navegação de mês ── */
.fin-month-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.fin-month-nav .spacer { flex: 1; }
.fin-month-btn {
  width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--txt-soft);
  cursor: pointer; transition: 0.12s;
}
.fin-month-btn:hover { border-color: var(--purple); color: var(--txt); }
.fin-month-btn svg { width: 15px; height: 15px; }
.fin-month-label {
  font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 750; letter-spacing: -0.3px;
  min-width: 168px; text-align: center;
}
.fin-card-balance { border-color: rgba(63,123,255,0.35); }

/* ── grid do financeiro mensal ── */
.fin-grid-month { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 980px) { .fin-grid-month { grid-template-columns: 1fr; } }

/* ── tipo de lançamento ── */
.ent-kind { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; white-space: nowrap; }
.ent-kind.ent-in  { background: rgba(67,224,138,0.15); color: var(--green-soft); }
.ent-kind.ent-out { background: rgba(244,63,94,0.13); color: #fb7185; }
.ent-in-txt  { color: var(--green-soft); }
.ent-out-txt { color: #fb7185; }

/* ── gráfico entradas × saídas ── */
.fin-chart { display: flex; align-items: flex-end; gap: 14px; padding: 20px 18px 14px; height: 220px; position: relative; }
.fin-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 8px; }
.fin-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 100%; width: 100%; }
.fin-chart-bar { width: 40%; max-width: 22px; min-height: 3px; border-radius: 5px 5px 0 0; transition: height 0.35s cubic-bezier(0.4,0,0.2,1); }
.fin-chart-bar.rev { background: linear-gradient(180deg, var(--green-soft), var(--green)); }
.fin-chart-bar.exp { background: linear-gradient(180deg, #fb7185, #f43f5e); }
.fin-chart-col.cur .fin-chart-lbl { color: var(--purple-soft); font-weight: 800; }
.fin-chart-lbl { font-size: 11px; color: var(--txt-faint); font-weight: 600; text-transform: capitalize; }
.fin-chart-legend { position: absolute; top: 10px; right: 16px; display: flex; gap: 12px; }
.fin-chart-legend .lg { font-size: 10.5px; font-weight: 700; color: var(--txt-mute); display: flex; align-items: center; gap: 5px; }
.fin-chart-legend .lg::before { content: ''; width: 9px; height: 9px; border-radius: 3px; }
.fin-chart-legend .lg.rev::before { background: var(--green-soft); }
.fin-chart-legend .lg.exp::before { background: #fb7185; }

/* ── faixa de insights (inteligência) ── */
.fin-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 980px) { .fin-insights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fin-insights { grid-template-columns: 1fr; } }
.fin-insight {
  display: flex; align-items: center; gap: 11px;
  background: var(--panel); border: 1px solid var(--border-soft); border-radius: 13px; padding: 12px 14px;
}
.fin-insight-ic { font-size: 19px; line-height: 1; flex-shrink: 0; }
.fin-insight-lbl { font-size: 11px; color: var(--txt-mute); font-weight: 600; }
.fin-insight-val { font-size: 14.5px; font-weight: 750; letter-spacing: -0.2px; margin-top: 2px; }
.fin-insight.up   .fin-insight-val { color: var(--green-soft); }
.fin-insight.down .fin-insight-val { color: #fb7185; }
.fin-insight.warn .fin-insight-val { color: var(--amber); }
.fin-insight.up   { border-color: rgba(67,224,138,0.25); }
.fin-insight.down { border-color: rgba(244,63,94,0.25); }
.fin-insight.warn { border-color: rgba(245,165,36,0.25); }


/* ═══════════════════════════════════════════════════════════
   REDESIGN v2 — 2026
   Dark premium com identidade de cor por card, profundidade real
   e hierarquia tipográfica. Base mantida: #05070e + #3f7bff.
   ═══════════════════════════════════════════════════════════ */
:root {
  --font-display: 'Sora', 'Manrope', sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --ease: cubic-bezier(.22,.7,.3,1);

  --c-blue: #3f7bff;   --c-blue-dim: rgba(63,123,255,.13);
  --c-green: #22c98a;  --c-green-dim: rgba(34,201,138,.13);
  --c-cyan: #3ec8e0;   --c-cyan-dim: rgba(62,200,224,.13);
  --c-amber: #f7a33a;  --c-amber-dim: rgba(247,163,58,.13);
  --c-violet: #8b5cf6; --c-violet-dim: rgba(139,92,246,.13);

  --card: #0d1327;
  --card-hi: #121a33;
  --edge: rgba(140,164,235,.11);
  --edge-hi: rgba(140,164,235,.24);
  --dep-1: 0 1px 2px rgba(0,0,0,.4);
  --dep-2: 0 10px 30px -12px rgba(0,0,0,.75);
  --dep-3: 0 30px 70px -26px rgba(0,0,0,.9);
}
[data-theme="light"] {
  --card: #ffffff;
  --card-hi: #f7f9ff;
  --edge: rgba(20,40,90,.09);
  --edge-hi: rgba(63,123,255,.28);
  --dep-2: 0 10px 28px -14px rgba(30,45,90,.22);
  --dep-3: 0 28px 60px -26px rgba(30,45,90,.28);
}

/* ── canvas com aurora suave ── */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 6% -10%, rgba(63,123,255,.17), transparent 60%),
    radial-gradient(44rem 30rem at 98% 2%, rgba(139,92,246,.10), transparent 58%),
    radial-gradient(50rem 34rem at 55% 112%, rgba(34,201,138,.07), transparent 60%);
}
[data-theme="light"] body::before { opacity: .55; }
.app { position: relative; z-index: 1; }
.main { padding: 30px 38px 70px; }

/* ── tipografia ── */
#pageTitle, .modal-head h2, .metric-value, .fin-val, .kpi-value, .logo-sub, thead th {
  font-family: var(--font-display);
}
#pageTitle { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
#pageSub { font-size: 13.5px; color: var(--txt-mute); margin-top: 3px; }

/* ═══ SIDEBAR ═══ */
.sidebar {
  background: linear-gradient(180deg, #0a1024 0%, #070b18 100%);
  border-right: 1px solid var(--edge); padding-top: 22px;
}
[data-theme="light"] .sidebar { background: linear-gradient(180deg,#fff,#f7f9ff); }
.nav-label { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-faint); font-weight: 700; }
.nav-item {
  position: relative; border-radius: 12px; padding: 10px 12px; gap: 11px;
  font-weight: 600; color: var(--txt-mute);
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.nav-item svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.nav-item:hover { color: var(--txt); background: rgba(140,164,235,.06); }
.nav-item:hover svg { transform: scale(1.08); }
.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--c-blue), #2a5cff);
  box-shadow: 0 10px 26px -12px rgba(63,123,255,.95), inset 0 1px 0 rgba(255,255,255,.18);
}
.nav-item.active svg { color: #fff; }
.nav-tag {
  margin-left: auto; font-size: 9px; font-weight: 800; letter-spacing: .08em;
  padding: 2.5px 6px; border-radius: 6px; color: #cfe0ff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14);
}
.nav-item:not(.active) .nav-tag { color: var(--c-blue); background: var(--c-blue-dim); border-color: transparent; }

/* ═══ CARDS DE MÉTRICA — cor por card ═══ */
.metrics { gap: 18px; margin-bottom: 28px; }
.metric {
  background: linear-gradient(165deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--dep-2);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.metric::after { content: none; }
.metric:hover { transform: translateY(-4px); border-color: var(--edge-hi); box-shadow: var(--dep-3); }
.metric-ico {
  width: 44px; height: 44px; border-radius: 14px; background: var(--c-blue-dim);
  box-shadow: none; border: 1px solid transparent;
}
.metric-ico svg { fill: var(--c-blue); width: 20px; height: 20px; }
.metric-label { font-size: 14px; font-weight: 700; }
.metric-cap { font-size: 11px; color: var(--txt-faint); }
.metric-value { font-size: 40px; font-weight: 700; letter-spacing: -.045em; margin: 16px 0 12px; }
.metric-foot {
  border-top: 1px solid var(--edge); padding-top: 12px; font-size: 11.5px;
  color: var(--txt-mute); font-weight: 600;
}
.metric-foot svg { transition: transform .25s var(--ease); }
.metric:hover .metric-foot svg { transform: translateX(4px); }
.metric-dots { display: none; }

/* card 1 — destaque azul (assinatura) */
.metric.m-purple {
  background: linear-gradient(145deg, #5c8cff 0%, #3f7bff 48%, #2450e6 100%);
  border-color: transparent;
  box-shadow: 0 18px 44px -18px rgba(63,123,255,.85);
}
.metric.m-purple:hover { box-shadow: 0 26px 60px -20px rgba(63,123,255,.95); }
.metric.m-purple .metric-ico { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); }
.metric.m-purple .metric-ico svg { fill: #fff; }
.metric.m-purple .metric-cap { color: rgba(255,255,255,.78); }
.metric.m-purple .metric-foot { color: rgba(255,255,255,.92); border-top-color: rgba(255,255,255,.25); }

/* cards 2–4 — cada um com sua cor */
.metric.m-green .metric-ico { background: var(--c-green-dim); }
.metric.m-green .metric-ico svg { fill: var(--c-green); }
.metric.m-green:hover { border-color: rgba(34,201,138,.4); }
.metric.m-blue .metric-ico { background: var(--c-cyan-dim); }
.metric.m-blue .metric-ico svg { fill: var(--c-cyan); }
.metric.m-blue:hover { border-color: rgba(62,200,224,.4); }
.metric.m-amber .metric-ico { background: var(--c-amber-dim); }
.metric.m-amber .metric-ico svg { fill: var(--c-amber); }
.metric.m-amber:hover { border-color: rgba(247,163,58,.4); }

/* ═══ CONTROLES / FILTROS ═══ */
.controls { gap: 12px; margin-bottom: 18px; }
.search input, .select-plain {
  background: var(--card); border: 1px solid var(--edge); border-radius: 12px;
  padding: 11px 13px 11px 36px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.select-plain { padding-left: 13px; }
.search input:focus, .select-plain:focus, textarea:focus, input:focus {
  border-color: rgba(63,123,255,.6); box-shadow: 0 0 0 4px rgba(63,123,255,.12); outline: none;
}
.filter-tabs {
  flex-wrap: wrap; overflow: visible; gap: 6px;
  background: var(--card); border: 1px solid var(--edge);
  border-radius: var(--r-md); padding: 7px; box-shadow: var(--dep-1);
}
.filter-tab {
  border-radius: 9px; padding: 7px 12px; font-size: 12px;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.filter-tab:hover { background: rgba(140,164,235,.08); color: var(--txt); transform: translateY(-1px); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--c-blue), #2a5cff); color: #fff;
  box-shadow: 0 8px 20px -10px rgba(63,123,255,.95);
}
.filter-tab.active .tab-count { background: rgba(255,255,255,.25); color: #fff; }

/* ═══ TABELA ═══ */
.table-card {
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  box-shadow: var(--dep-2); overflow: hidden;
}
thead th {
  position: sticky; top: 0; z-index: 2;
  background: rgba(13,19,39,.94); backdrop-filter: blur(10px);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--txt-faint); padding-top: 15px; padding-bottom: 15px;
  border-bottom: 1px solid var(--edge);
}
[data-theme="light"] thead th { background: rgba(255,255,255,.95); }
tbody td { padding-top: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--edge); }
tbody tr { transition: background .18s var(--ease); }
tbody tr:hover { background: rgba(63,123,255,.055); }
tbody tr:last-child td { border-bottom: none; }

/* ═══ BOTÕES ═══ */
.btn {
  border-radius: 11px; font-weight: 650;
  transition: transform .16s var(--ease), box-shadow .22s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-purple, .btn-primary {
  background: linear-gradient(135deg, var(--c-blue), #2a5cff);
  box-shadow: 0 10px 24px -12px rgba(63,123,255,.95);
}
.btn-purple:hover, .btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(63,123,255,1); }
.btn-ghost { border-radius: 11px; }
.btn-ghost:hover { background: rgba(140,164,235,.08); border-color: var(--edge-hi); }

/* ═══ MODAIS ═══ */
.modal {
  border-radius: var(--r-lg); border: 1px solid var(--edge);
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  box-shadow: var(--dep-3);
}
.modal-bg { backdrop-filter: blur(8px); background: rgba(3,6,16,.72); }
.modal-bg.show .modal { animation: mIn .3s var(--ease) both; }
@keyframes mIn { from { opacity: 0; transform: translateY(12px) scale(.99); } to { opacity: 1; transform: none; } }

/* ═══ SCROLLBAR ═══ */
.main::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .scroll-thin::-webkit-scrollbar { width: 10px; height: 10px; }
.main::-webkit-scrollbar-track { background: transparent; }
.main::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb, .scroll-thin::-webkit-scrollbar-thumb {
  background: rgba(140,164,235,.18); border-radius: 20px; border: 3px solid transparent; background-clip: content-box;
}
.main::-webkit-scrollbar-thumb:hover { background: rgba(140,164,235,.34); background-clip: content-box; }
.main { scrollbar-width: thin; scrollbar-color: rgba(140,164,235,.24) transparent; }

/* ═══ ENTRADA SUAVE DAS SEÇÕES ═══ */
.view-active > * { animation: rise .45s var(--ease) both; }
.view-active > *:nth-child(1) { animation-delay: .02s; }
.view-active > *:nth-child(2) { animation-delay: .06s; }
.view-active > *:nth-child(3) { animation-delay: .10s; }
.view-active > *:nth-child(n+4) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.status-select { border-radius: 9px; font-weight: 700; transition: transform .16s var(--ease); }
.status-select:hover { transform: translateY(-1px); }

@media (max-width: 1040px) { .main { padding: 24px 22px 60px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* ═══════════════════════════════════════════════════════════
   DATA VIZ — sparklines, anel do funil, pontos de luz
   ═══════════════════════════════════════════════════════════ */
.metric { overflow: hidden; }
.metric-value { margin: 14px 0 6px; }

/* ── sparkline dentro do card ── */
.spark-holder { margin: 2px -20px 10px; height: 54px; pointer-events: none; }
.spark { width: 100%; height: 54px; display: block; overflow: visible; }
.spark-line {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  animation: drawLine 1.25s cubic-bezier(.3,.8,.35,1) forwards;
  filter: drop-shadow(0 0 6px currentColor);
}
.spark-area { opacity: 0; animation: fadeArea .9s ease .35s forwards; }
.spark-dot {
  opacity: 0; animation: popDot .45s cubic-bezier(.3,1.3,.5,1) 1.05s forwards;
  filter: drop-shadow(0 0 7px currentColor);
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
@keyframes popDot { to { opacity: 1; } }
/* pulso no ponto final — "ponto de luz" */
.metric:hover .spark-dot { animation: pulseDot 1.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { r: 3.2; opacity: 1; } 50% { r: 5; opacity: .75; } }

/* ── card de painel genérico ── */
.panel-card {
  background: linear-gradient(170deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  box-shadow: var(--dep-2); padding: 20px 22px; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.panel-card::before {           /* elipse de luz no canto */
  content: ''; position: absolute; width: 320px; height: 200px; right: -80px; top: -110px;
  background: radial-gradient(closest-side, rgba(63,123,255,.20), transparent 70%);
  pointer-events: none; filter: blur(6px);
}
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.panel-head h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--txt); }
.panel-cap { font-size: 11.5px; color: var(--txt-faint); }

/* ── anel do funil ── */
.ring-wrap { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; padding-top: 6px; }
.ring-chart { position: relative; width: 180px; height: 180px; flex-shrink: 0; }
.ring-chart svg { width: 180px; height: 180px; display: block; overflow: visible; }
.ring-arc {
  filter: drop-shadow(0 0 8px currentColor);
  animation: ringIn .9s cubic-bezier(.3,.8,.35,1) both;
  animation-delay: var(--d, 0ms);
  transform-origin: 90px 90px;
}
@keyframes ringIn { from { opacity: 0; transform: rotate(-16deg) scale(.9); } to { opacity: 1; transform: none; } }
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; pointer-events: none;
}
.ring-total { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.04em; color: var(--txt); }
.ring-sub { font-size: 11px; color: var(--txt-faint); letter-spacing: .1em; text-transform: uppercase; }
.ring-legend { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 6px 26px; flex: 1; min-width: 260px; }
.ring-leg {
  display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--txt-soft);
  padding: 6px 8px; border-radius: 9px; transition: background .18s var(--ease);
}
.ring-leg:hover { background: rgba(140,164,235,.06); }
.ring-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.ring-lbl { flex: 1; }
.ring-leg b { font-family: var(--font-display); font-weight: 700; color: var(--txt); }
.ring-pct { font-size: 11px; color: var(--txt-faint); min-width: 34px; text-align: right; }
.ring-empty { color: var(--txt-faint); font-size: 12.5px; }
@media (max-width: 900px) { .ring-wrap { gap: 20px; } .ring-legend { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════
   DETALHE DO LEAD — print do site + score explicado
   ═══════════════════════════════════════════════════════════ */
.lx-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 720px) { .lx-wrap { grid-template-columns: 1fr; } }

.lx-shot {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--edge); background: var(--card); height: 200px;
  box-shadow: var(--dep-2); transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.lx-shot:hover { transform: translateY(-2px); border-color: var(--edge-hi); }
.lx-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.lx-shot-tag {
  position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 7px;
  background: rgba(5,7,14,.72); color: #cfe0ff; backdrop-filter: blur(6px);
}
.lx-shot-fail, .lx-none span {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  color: var(--txt-faint); font-size: 12.5px; text-align: center; padding: 12px;
}
.lx-shot.lx-fail img { display: none; }
.lx-shot.lx-fail .lx-shot-fail { display: flex; }
.lx-none { display: flex; align-items: center; justify-content: center; }
.lx-none span { display: flex; position: static; }

.lx-score {
  border: 1px solid var(--edge); border-radius: 14px; padding: 14px 15px;
  background: linear-gradient(165deg, var(--card-hi), var(--card)); box-shadow: var(--dep-2);
}
.lx-score-top { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.lx-ring {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
}
.lx-hot   { background: rgba(34,201,138,.14); color: #22c98a; box-shadow: inset 0 0 0 2px rgba(34,201,138,.4), 0 0 18px -6px rgba(34,201,138,.8); }
.lx-warm  { background: rgba(247,163,58,.14); color: #f7a33a; box-shadow: inset 0 0 0 2px rgba(247,163,58,.4); }
.lx-cold  { background: rgba(140,164,235,.10); color: var(--txt-mute); box-shadow: inset 0 0 0 2px rgba(140,164,235,.22); }
.lx-score-lbl { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--txt); }
.lx-score-cap { font-size: 11px; color: var(--txt-faint); }
.lx-br { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.lx-br li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--txt-soft); padding: 5px 8px; border-radius: 8px;
  background: rgba(140,164,235,.05);
}
.lx-br b { font-family: var(--font-display); color: var(--c-blue); font-size: 11.5px; }

/* tabela de conversão por nicho (relatório) */
.cv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cv-table th {
  text-align: left; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--txt-faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--edge);
}
.cv-table td { padding: 9px 10px; border-bottom: 1px solid var(--edge); color: var(--txt-soft); }
.cv-table tr:last-child td { border-bottom: none; }
.cv-table tbody tr:hover { background: rgba(63,123,255,.05); }
.cv-n { color: var(--txt); font-weight: 600; }
.cv-good { color: #22c98a; font-weight: 700; }
.cv-mid  { color: #f7a33a; font-weight: 700; }
.cv-low  { color: #f43f5e; font-weight: 700; }
.rep-hint { font-size: 11.5px; color: var(--txt-faint); font-weight: 500; }
/* estado de carregamento do print */
.lx-shot-load { display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  color: var(--txt-faint); font-size: 12.5px; }
.lx-shot.lx-loading .lx-shot-load { display: flex; }
.lx-shot.lx-loading img { opacity: 0; }
.lx-shot.lx-loading::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(140,164,235,.09) 45%, transparent 70%);
  background-size: 240% 100%; animation: lxShimmer 1.5s linear infinite;
}
@keyframes lxShimmer { to { background-position: -240% 0; } }

/* ── Antes × Depois ── */
.lx-wrap-ba { grid-template-columns: 1fr; }
.lx-ba { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
@media (max-width: 720px) { .lx-ba { grid-template-columns: 1fr; } .lx-ba-arrow { transform: rotate(90deg); } }
.lx-ba-arrow {
  font-family: var(--font-display); font-size: 20px; color: var(--c-blue);
  text-shadow: 0 0 14px rgba(63,123,255,.7);
}
.lx-ba .lx-shot { height: 170px; }
.lx-antes { filter: saturate(.75); }
.lx-antes .lx-shot-tag { background: rgba(244,63,94,.9); color: #fff; }
.lx-depois { border-color: rgba(34,201,138,.45); box-shadow: 0 0 0 1px rgba(34,201,138,.25), var(--dep-2); }
.lx-depois .lx-shot-tag { background: rgba(34,201,138,.92); color: #04150d; }
.lx-newsite { margin-top: 11px; }
.lx-newsite label { display: block; font-size: 11px; color: var(--txt-faint); margin-bottom: 5px; font-weight: 600; }
.lx-newsite input { width: 100%; font-size: 12.5px; padding: 9px 11px; }

/* ═══════════════════════════════════════════════════════════
   FASE 4 — VISUAL FUTURISTA + TELAS INTERNAS
   Premium com dado (referências), não sci-fi pesado:
   grade sutil, brilhos neon nos pontos certos, cantos em HUD.
   ═══════════════════════════════════════════════════════════ */

/* textura de grade — dá o "tech" sem poluir */
.app::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(140,164,235,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,164,235,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}
[data-theme="light"] .app::before { opacity: .35; }
.main, .sidebar { position: relative; z-index: 1; }

/* cantos em HUD nos painéis principais */
.panel-card::after, .table-card::after {
  content: ''; position: absolute; left: 12px; top: 12px; width: 14px; height: 14px;
  border-left: 1.5px solid rgba(63,123,255,.5); border-top: 1.5px solid rgba(63,123,255,.5);
  border-radius: 3px 0 0 0; pointer-events: none; opacity: .8;
}
.table-card { position: relative; }

/* linha de brilho no topo dos cards */
.metric::before, .fin-card::before, .kan-col::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,164,235,.5), transparent);
}

/* ── MEU DIA ── */
.today-layout { gap: 20px; }
.today-cal, .today-mini, .today-agenda {
  background: linear-gradient(168deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--dep-2);
}
.cal-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }
.cal-grid > div { border-radius: 9px; transition: background .18s var(--ease), transform .18s var(--ease); }
.cal-grid > div:hover { background: rgba(140,164,235,.08); transform: scale(1.06); }
.cal-day.has-ev { position: relative; }
.cal-day.has-ev::after {
  content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; border-radius: 50%;
  transform: translateX(-50%); background: var(--c-blue); box-shadow: 0 0 8px var(--c-blue);
}
.cal-day.today, .cal-day.is-today {
  background: linear-gradient(135deg, var(--c-blue), #2a5cff) !important; color: #fff !important;
  box-shadow: 0 8px 20px -10px rgba(63,123,255,.95);
}

/* ── FINANCEIRO ── */
.fin-cards { gap: 16px; }
.fin-card {
  background: linear-gradient(165deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--dep-2); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.fin-card:hover { transform: translateY(-3px); box-shadow: var(--dep-3); border-color: var(--edge-hi); }
.fin-ic { width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fin-ic.ic-green { background: var(--c-green-dim); color: var(--c-green); }
.fin-ic.ic-red { background: rgba(244,63,94,.13); color: #f43f5e; }
.fin-ic.ic-blue { background: var(--c-blue-dim); color: var(--c-blue); }
.fin-ic.ic-amber { background: var(--c-amber-dim); color: var(--c-amber); }
.fin-label { font-size: 11.5px; color: var(--txt-faint); letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.fin-val { font-family: var(--font-display); font-size: 26px; letter-spacing: -.04em; margin: 5px 0 3px; }
.fin-val.green { color: var(--c-green); text-shadow: 0 0 22px rgba(34,201,138,.35); }
.fin-goal, .fin-insights {
  background: linear-gradient(168deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--dep-2);
}
/* barra de meta com brilho */
.fin-goal-bar, .goal-bar { border-radius: 20px; overflow: hidden; background: rgba(140,164,235,.10); }
.fin-goal-fill, .goal-fill {
  background: linear-gradient(90deg, var(--c-blue), #7fa5ff) !important;
  box-shadow: 0 0 18px rgba(63,123,255,.6); border-radius: 20px;
  transition: width .9s var(--ease);
}

/* ── KANBAN ── */
.kan-col {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--dep-2);
  position: relative; overflow: hidden;
}
.kan-col-head { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.kan-card {
  background: var(--card-hi); border: 1px solid var(--edge); border-radius: 14px;
  box-shadow: var(--dep-1); cursor: grab;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.kan-card:hover {
  transform: translateY(-3px) scale(1.012); border-color: rgba(63,123,255,.45);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.85), 0 0 0 1px rgba(63,123,255,.22);
}
.kan-card:active { cursor: grabbing; transform: scale(.99); }
.kan-card.dragging { opacity: .55; transform: rotate(-1.5deg) scale(1.02); }
.kan-col.drop-target {
  border-color: rgba(63,123,255,.55);
  box-shadow: inset 0 0 0 1px rgba(63,123,255,.3), 0 0 34px -12px rgba(63,123,255,.6);
}

/* ── SERVIÇOS ── */
.svc-card {
  background: linear-gradient(165deg, var(--card-hi), var(--card));
  border: 1px solid var(--edge); border-radius: var(--r-lg); box-shadow: var(--dep-2);
}

/* ── MODAL: detalhe do lead mais respirado ── */
.modal-body { padding: 22px 24px; }
.det-grid { gap: 11px; }
.det-item {
  background: rgba(140,164,235,.05); border: 1px solid var(--edge);
  border-radius: 12px; padding: 11px 13px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.det-item:hover { border-color: var(--edge-hi); background: rgba(140,164,235,.08); }
.det-item span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--txt-faint); font-weight: 700; }
.det-item b { font-weight: 600; }
.field label { font-size: 11.5px; color: var(--txt-mute); font-weight: 600; }
.det-actions { gap: 8px; flex-wrap: wrap; padding-top: 4px; }

/* ── foco visível (acessibilidade) ── */
.btn:focus-visible, .nav-item:focus-visible, .filter-tab:focus-visible {
  outline: 2px solid rgba(63,123,255,.75); outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD BENTO — funil · barras · ranking · insight
   ═══════════════════════════════════════════════════════════ */
.dash-grid {
  display: grid; grid-template-columns: 0.95fr 1.35fr 1fr;
  gap: 18px; margin-bottom: 18px;
}
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr 1fr; } .pc-nichos { grid-column: 1 / -1; } }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid .panel-card { margin-bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; }

.pc-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.pc-head h3 { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: -.02em; color: var(--txt); }
.pc-cap { font-size: 11px; color: var(--txt-faint); }
.pc-badge {
  margin-left: auto; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--c-blue);
  background: var(--c-blue-dim); padding: 3px 9px; border-radius: 20px;
}
.pc-empty, .pc-note { font-size: 11.5px; color: var(--txt-faint); }
.pc-note { margin-top: 10px; }

/* funil compacto */
.funil-in { display: flex; align-items: center; gap: 16px; flex: 1; }
.ring-chart { position: relative; width: 144px; height: 144px; flex-shrink: 0; }
.ring-chart svg { width: 144px; height: 144px; overflow: visible; }
.ring-arc { filter: drop-shadow(0 0 7px currentColor); animation: ringIn .8s cubic-bezier(.3,.8,.35,1) both; animation-delay: var(--d, 0ms); transform-origin: 72px 72px; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.ring-total { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.04em; color: var(--txt); }
.ring-sub { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-faint); }
.funil-leg { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fl-row { display: flex; align-items: center; gap: 8px; font-size: 11.8px; color: var(--txt-soft); padding: 3px 5px; border-radius: 7px; }
.fl-row:hover { background: rgba(140,164,235,.06); }
.fl-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 7px currentColor; }
.fl-l { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-row b { font-family: var(--font-display); color: var(--txt); font-size: 11.5px; }

/* barras */
.bars { display: flex; align-items: flex-end; gap: 5px; flex: 1; min-height: 130px; padding-top: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar {
  width: 100%; max-width: 22px; border-radius: 6px 6px 3px 3px; height: var(--h);
  background: linear-gradient(180deg, #7fa5ff, var(--c-blue) 55%, #2450e6);
  box-shadow: 0 0 14px -3px rgba(63,123,255,.75);
  animation: barUp .7s cubic-bezier(.3,.8,.35,1) both; animation-delay: var(--d, 0ms);
  transition: filter .2s var(--ease);
}
.bar-col:hover .bar { filter: brightness(1.25); }
@keyframes barUp { from { height: 0; opacity: 0; } to { height: var(--h); opacity: 1; } }
.bar-lbl { font-size: 9.5px; color: var(--txt-faint); }

/* ranking */
.rank { display: flex; flex-direction: column; gap: 9px; flex: 1; justify-content: center; }
.rk-row { display: flex; align-items: center; gap: 9px; font-size: 12px; animation: rise .5s var(--ease) both; animation-delay: var(--d, 0ms); }
.rk-l { width: 84px; color: var(--txt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-track { flex: 1; height: 7px; border-radius: 20px; background: rgba(140,164,235,.10); overflow: hidden; }
.rk-fill {
  height: 100%; width: var(--w); border-radius: 20px;
  background: linear-gradient(90deg, var(--c-blue), #7fa5ff);
  box-shadow: 0 0 12px rgba(63,123,255,.6);
  animation: rkGrow .9s cubic-bezier(.3,.8,.35,1) both; animation-delay: var(--d, 0ms);
}
@keyframes rkGrow { from { width: 0; } to { width: var(--w); } }
.rk-n { font-family: var(--font-display); color: var(--txt); font-size: 12px; min-width: 20px; text-align: right; }
.rk-hot { font-size: 10px; min-width: 26px; text-align: right; color: var(--c-amber); }
.rk-off { opacity: 0; }

/* badge de tendência no card */
.trend {
  margin-left: auto; align-self: flex-start; font-family: var(--font-display);
  font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 20px; white-space: nowrap;
}
.trend.up { color: #22c98a; background: rgba(34,201,138,.14); }
.trend.down { color: #f43f5e; background: rgba(244,63,94,.13); }
.metric.m-purple .trend.up { color: #d8ffe9; background: rgba(255,255,255,.2); }
.metric.m-purple .trend.down { color: #ffe3e8; background: rgba(255,255,255,.2); }

/* faixa de insight */
.insight {
  display: flex; align-items: center; gap: 13px; margin-bottom: 20px; padding: 14px 18px;
  border-radius: var(--r-md); border: 1px solid rgba(63,123,255,.28);
  background: linear-gradient(100deg, rgba(63,123,255,.14), rgba(63,123,255,.04) 60%, transparent);
  position: relative; overflow: hidden;
}
.insight::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 160px;
  background: radial-gradient(closest-side, rgba(63,123,255,.22), transparent 70%); filter: blur(4px);
}
.insight-ico { font-size: 19px; flex-shrink: 0; }
.insight p { font-size: 13px; color: var(--txt-soft); line-height: 1.5; }
.insight b { color: var(--txt); }

/* card de métrica: dá espaço pro badge */
.metric-top { align-items: flex-start; }
.spark-holder { margin: 2px -20px 8px; height: 44px; }
.spark { height: 44px; }

/* ══════════════════════════════════════════════════════════════
   KPI v3 — cards compactos, sparkline full-bleed na base,
   destaque azul com profundidade (o número tem que respirar)
   ══════════════════════════════════════════════════════════════ */
.metric {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 17px 18px 0;
  overflow: hidden;
}
.metric-top { align-items: flex-start; gap: 10px; }
.metric-ico { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; }
.metric-ico svg { width: 17px; height: 17px; }
.metric-label { font-size: 13px; letter-spacing: -.01em; }
.metric-cap { font-size: 10.5px; }
.metric-value { font-size: 34px; margin: 12px 0 2px; }
.metric-foot { margin-top: auto; padding: 9px 0 13px; font-size: 11.5px; border-top: none; }

/* sparkline encostada nas bordas, sob o número */
.spark-holder {
  margin: 0 -18px -4px;
  height: 46px;
  pointer-events: none;
}
.spark { width: 100%; height: 100%; display: block; }
.spark-line { stroke-dashoffset: 0; animation: sparkDraw 1.1s var(--ease, cubic-bezier(.22,1,.36,1)) forwards; }
@keyframes sparkDraw { from { stroke-dashoffset: var(--L, 300); } to { stroke-dashoffset: 0; } }
.spark-dot { animation: dotIn .5s .85s backwards ease-out; transform-origin: center; }
@keyframes dotIn { from { opacity: 0; r: 0; } to { opacity: 1; } }

/* badge de variação */
.trend {
  margin-left: auto; align-self: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3.5px 8px; border-radius: 99px; white-space: nowrap;
  border: 1px solid transparent;
}
.trend.up { color: #22c98a; background: rgba(34,201,138,.13); border-color: rgba(34,201,138,.26); }
.trend.down { color: #f4708a; background: rgba(244,112,138,.13); border-color: rgba(244,112,138,.26); }

/* card destaque: mais profundo, pra o branco ter contraste */
.metric.m-purple {
  background:
    radial-gradient(120% 130% at 85% -10%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(155deg, #3f7bff 0%, #2b58e8 52%, #1c37a8 100%);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 20px 44px -22px rgba(63,123,255,.85), inset 0 1px 0 rgba(255,255,255,.16);
}
.metric.m-purple .metric-value { text-shadow: 0 2px 18px rgba(10,20,60,.45); }
.metric.m-purple .trend { color: #fff; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
.metric.m-purple .spark-line { stroke: #fff !important; }
.metric.m-purple .spark-dot { fill: #fff !important; }

/* ── ajustes de proporção do bento (legenda do funil não pode truncar) ── */
.dash-grid { grid-template-columns: 1.1fr 1.3fr 1fr; gap: 16px; }
.funil-in { gap: 12px; }
.ring-chart, .ring-chart svg { width: 132px; height: 132px; }
.ring-total { font-size: 25px; }
.fl-row { font-size: 11.2px; padding: 2.5px 4px; gap: 7px; }
.fl-l { overflow: visible; text-overflow: clip; }
.fl-row b { font-size: 11px; margin-left: 4px; }
.bars { min-height: 148px; gap: 4px; }
.bar-lbl { font-size: 9px; letter-spacing: -.02em; height: 12px; }
.insight { gap: 12px; align-items: center; }
.insight-ico { line-height: 1; }
.rk-n { min-width: 22px; }

/* ══════════════════════════════════════════════════════════════
   SCORE NA TABELA — estava com display:none de uma camada antiga.
   Verde = alvo forte · âmbar = médio · neutro = fora do perfil.
   ══════════════════════════════════════════════════════════════ */
.score-badge {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  min-width: 27px; height: 20px; padding: 0 6px;
  margin-right: 9px; vertical-align: middle;
  border-radius: 7px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
tr:hover .score-badge { transform: scale(1.06); }
.score-badge.hot {
  background: rgba(34,201,138,.15); color: #2fd79a; border-color: rgba(34,201,138,.34);
  box-shadow: 0 0 14px -5px rgba(34,201,138,.9);
}
.score-badge.warm { background: rgba(247,163,58,.14); color: #f7a33a; border-color: rgba(247,163,58,.3); }
.score-badge.cold { background: rgba(140,164,235,.08); color: var(--txt-faint); border-color: rgba(140,164,235,.16); }

/* ══════════════════════════════════════════════════════════════
   FILTROS — controls + nichos viram um bloco só, com hierarquia
   ══════════════════════════════════════════════════════════════ */
.controls {
  background: var(--card); border: 1px solid var(--edge);
  border-radius: 16px 16px 0 0; border-bottom: none;
  padding: 14px 16px 12px; margin-bottom: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.controls .mini-select {
  background: var(--panel-2, rgba(140,164,235,.07));
  border: 1px solid var(--edge); border-radius: 9px;
  font-size: 12px; padding: 6px 10px; color: var(--txt-soft);
}
.filter-tabs { gap: 6px; }
.filter-tab {
  font-size: 11.5px; padding: 6px 11px; border-radius: 9px;
  border: 1px solid var(--edge); background: transparent; color: var(--txt-soft);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter-tab:hover { border-color: var(--edge-hi, rgba(140,164,235,.3)); color: var(--txt); }
.filter-tab.active {
  background: linear-gradient(140deg, #3f7bff, #2b58e8);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 18px -10px rgba(63,123,255,.95);
}
.tab-count { opacity: .62; font-size: 10.5px; margin-left: 4px; font-variant-numeric: tabular-nums; }
.niche-bar {
  background: var(--card); border: 1px solid var(--edge);
  border-radius: 0 0 16px 16px; border-top: 1px dashed rgba(140,164,235,.16);
  padding: 12px 16px 14px; margin-bottom: 18px;
}
.niche-bar > label, .niche-label {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-faint);
}
/* selects na primeira linha (à esquerda), chips ocupando a linha toda */
.controls { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.controls .filter-tabs { flex: 1 0 100%; }

/* ══════════════════════════════════════════════════════════════
   LUZ AMBIENTE — elipses de brilho atrás do conteúdo.
   Ficam presas ao topo da área de trabalho, bem esmaecidas,
   só pra tirar o chapado do fundo. Sem custo de layout.
   ══════════════════════════════════════════════════════════════ */
.main { position: relative; isolation: isolate; }
.main::before {
  content: '';
  position: absolute; inset: -80px -10% auto -10%; height: 620px;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 52% at 16% 8%,  rgba(63,123,255,.20) 0%, rgba(63,123,255,0) 70%),
    radial-gradient(38% 46% at 74% 0%,  rgba(62,200,224,.13) 0%, rgba(62,200,224,0) 72%),
    radial-gradient(30% 40% at 96% 26%, rgba(139,92,246,.11) 0%, rgba(139,92,246,0) 74%);
  filter: blur(6px);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-14px, 0, 0) scale(1); }
  to   { transform: translate3d(18px, 12px, 0) scale(1.06); }
}
[data-theme="light"] .main::before { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .main::before { animation: none; } }

/* ══════════════════════════════════════════════════════════════
   AVATAR DE INICIAL na tabela de leads
   ══════════════════════════════════════════════════════════════ */
.lead-cell-main { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.lead-cell-txt { min-width: 0; flex: 1; }
.lead-av {
  flex-shrink: 0; width: 34px; height: 34px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: -.02em;
  color: hsl(var(--h) 82% 76%);
  background: linear-gradient(150deg, hsl(var(--h) 70% 52% / .26), hsl(var(--h) 70% 40% / .12));
  border: 1px solid hsl(var(--h) 70% 60% / .28);
  box-shadow: inset 0 1px 0 hsl(var(--h) 80% 80% / .16);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
tr:hover .lead-av { transform: translateY(-1px); box-shadow: 0 8px 18px -8px hsl(var(--h) 75% 50% / .7); }
[data-theme="light"] .lead-av { color: hsl(var(--h) 62% 38%); background: linear-gradient(150deg, hsl(var(--h) 70% 55% / .17), hsl(var(--h) 70% 50% / .07)); }
.row-dnc .lead-av { filter: grayscale(1); opacity: .5; }
/* luz ambiente: intensidade real (a primeira passada ficou invisível) */
.main::before {
  inset: -140px -14% auto -14%; height: 820px; filter: blur(2px);
  background:
    radial-gradient(44% 50% at 14% 6%,  rgba(63,123,255,.34) 0%, rgba(63,123,255,0) 68%),
    radial-gradient(36% 44% at 72% -4%, rgba(62,200,224,.22) 0%, rgba(62,200,224,0) 70%),
    radial-gradient(32% 42% at 99% 22%, rgba(139,92,246,.20) 0%, rgba(139,92,246,0) 72%),
    radial-gradient(50% 30% at 46% 46%, rgba(63,123,255,.10) 0%, rgba(63,123,255,0) 75%);
}
[data-theme="light"] .main::before { opacity: .38; }
/* intensidade final da luz ambiente (as anteriores sumiam no fundo escuro) */
.main::before {
  background:
    radial-gradient(42% 46% at 10% 2%,  rgba(63,123,255,.52) 0%, rgba(63,123,255,0) 66%),
    radial-gradient(34% 40% at 70% -6%, rgba(62,200,224,.30) 0%, rgba(62,200,224,0) 68%),
    radial-gradient(30% 40% at 100% 18%, rgba(139,92,246,.30) 0%, rgba(139,92,246,0) 70%),
    radial-gradient(55% 34% at 44% 40%, rgba(63,123,255,.14) 0%, rgba(63,123,255,0) 76%);
}
[data-theme="light"] .main::before { opacity: .3; }
/* os centros das elipses estavam fora da viewport por causa do inset negativo */
.main::before {
  inset: 0 0 auto 0; height: 700px; filter: none;
  background:
    radial-gradient(46% 44% at 18% 10%, rgba(63,123,255,.30) 0%, rgba(63,123,255,0) 70%),
    radial-gradient(38% 38% at 78% 4%,  rgba(62,200,224,.17) 0%, rgba(62,200,224,0) 72%),
    radial-gradient(34% 40% at 97% 34%, rgba(139,92,246,.16) 0%, rgba(139,92,246,0) 74%),
    radial-gradient(60% 34% at 46% 62%, rgba(63,123,255,.09) 0%, rgba(63,123,255,0) 78%);
}

/* ══════════════════════════════════════════════════════════════
   ACESSOS — cofre de credenciais (Cliente › Pasta › Credencial)
   ══════════════════════════════════════════════════════════════ */
.vault-lock { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding: 20px; }
.vault-lock-card {
  width: 100%; max-width: 430px; text-align: center;
  background: var(--card); border: 1px solid var(--edge); border-radius: 18px;
  padding: 34px 30px; box-shadow: var(--dep-3, 0 24px 60px -30px rgba(0,0,0,.6));
}
.vault-ico { font-size: 34px; margin-bottom: 10px; }
.vault-lock-card h2 { font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.vault-lock-card p { font-size: 12.8px; color: var(--txt-soft); line-height: 1.6; margin-bottom: 18px; }
.vault-lock-card b { color: var(--txt); }
.vault-lock-card .select-plain { width: 100%; margin-bottom: 10px; text-align: center; letter-spacing: .08em; }
.vault-lock-card .btn { width: 100%; justify-content: center; margin-top: 4px; }
.vault-err { color: #f4708a; font-size: 12px; min-height: 17px; margin: 2px 0 6px; }

.vault-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--edge); border-radius: 14px;
}
.vault-trilha { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--txt-soft); }
.vault-trilha a { color: var(--c-blue, #3f7bff); cursor: pointer; font-weight: 600; }
.vault-trilha a:hover { text-decoration: underline; }
.vault-trilha i { color: var(--txt-faint); font-style: normal; }
.vault-trilha span { color: var(--txt); font-weight: 700; }
.vault-acoes { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vault-busca { min-width: 240px; font-size: 12.5px; }

.vault-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 13px; }
.vault-card {
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  padding: 16px 15px; background: var(--card);
  border: 1px solid var(--edge); border-radius: 14px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.vault-card:hover { transform: translateY(-2px); border-color: var(--edge-hi, rgba(140,164,235,.34)); box-shadow: var(--dep-2, 0 14px 34px -18px rgba(0,0,0,.55)); }
.vault-card-ico { font-size: 22px; flex-shrink: 0; }
.vault-card-txt { min-width: 0; flex: 1; }
.vault-card-txt h3 { font-size: 14px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-card-txt span { font-size: 11.5px; color: var(--txt-faint); }
.vault-del { flex-shrink: 0; opacity: 0; transition: opacity .18s var(--ease); }
.vault-card:hover .vault-del, .vault-item:hover .vault-del { opacity: .75; }
.vault-del:hover { opacity: 1 !important; color: #f4708a; }

.vault-url { display: inline-block; margin-bottom: 14px; font-size: 12.5px; color: var(--c-blue, #3f7bff); font-weight: 600; }
.vault-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.vault-item { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 16px 17px; }
.vault-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vault-item-head h4 { font-size: 13.5px; font-weight: 700; flex: 1; }
.vault-campo { margin-bottom: 11px; }
.vault-campo label { display: block; font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--txt-faint); margin-bottom: 5px; }
.vault-valor { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vault-valor code {
  flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px;
  background: rgba(140,164,235,.08); border: 1px solid var(--edge);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--txt);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vault-secreta { letter-spacing: .12em; }
.vault-notas { font-size: 12px; color: var(--txt-soft); line-height: 1.5; }
/* chip dos leads sem nicho — some quando todos estão classificados */
.niche-chip-vazio { border-style: dashed; color: var(--txt-faint); }
.niche-chip-vazio.active { border-style: solid; }

/* ─── Etapa "Site fora do ar" ──────────────────────────────────────────
   Categoria de urgência: o lead tem reputação no Google e o site não abre.
   Ganha um ponto âmbar pulsante pra destacar do resto da barra, e some
   quando a aba está ativa (aí a cor de fundo já dá o destaque). */
.filter-tab-alerta { color: #e0a642; }
.filter-tab-alerta::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #e0a642; margin-right: 6px; vertical-align: 1px;
  animation: pulsoForaDoAr 2.4s ease-in-out infinite;
}
.filter-tab-alerta:hover { color: #f0b955; background: rgba(224,166,66,.10); }
.filter-tab-alerta.active { background: #b9761f; color: #fff; }
.filter-tab-alerta.active::before { display: none; }
@keyframes pulsoForaDoAr {
  0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(224,166,66,.55); }
  70%      { opacity: .55; box-shadow: 0 0 0 5px rgba(224,166,66,0); }
}
@media (prefers-reduced-motion: reduce) { .filter-tab-alerta::before { animation: none; } }


/* ─── Tabela de leads: colunas de largura fixa ───
   Com layout automático o navegador dava ~400px ao telefone, espremia o
   nome e a tabela passava da tela, escondendo a ETAPA atrás das ações.
   Aqui cada coluna tem sua largura e o NEGÓCIO fica com o que sobra. */
.table-card table { table-layout: fixed; width: 100%; min-width: 1160px; }
.table-card thead th.col-check { width: 44px; }
.table-card thead th:nth-child(3) { width: 150px; }   /* telefone */
.table-card thead th:nth-child(4) { width: 120px; }   /* avaliações */
.table-card thead th:nth-child(5) { width: 190px; }   /* e-mail */
.table-card thead th:nth-child(6) { width: 20%; }     /* canais */
.table-card thead th:nth-child(7) { width: 158px; }   /* etapa */
.table-card thead th.col-actions { width: 140px; }
.table-card tbody td { overflow: hidden; }
.table-card .cell-channels .lead-link {
  display: inline-block; max-width: 100%; vertical-align: bottom;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.table-card tbody td:nth-child(5) .lead-cell {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.table-card .status-select { width: 100%; }

/* Movimento do lead (pela quantidade de avaliações no Google) */
.det-item .mov { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.det-item .mov-alto  { background: rgba(34,184,119,.16); color: var(--green-soft); }
.det-item .mov-medio { background: rgba(245,165,36,.16); color: var(--amber); }
.det-item .mov-baixo { background: var(--chip-neutral); color: var(--txt-mute); }

/* Coluna de avaliações do Google */
.table-card .cell-reviews .rev-nota { font-size: 13px; font-weight: 600; color: var(--txt); white-space: nowrap; }
.table-card .cell-reviews .rev-qtd { font-size: 11.5px; margin-top: 2px; white-space: nowrap; color: var(--txt-mute); }
.table-card .cell-reviews .rev-qtd.mov-alto  { color: var(--green-soft); }
.table-card .cell-reviews .rev-qtd.mov-medio { color: var(--amber); }
/* As regras antigas de largura mínima por posição (th/td:nth-child) eram
   da tabela antes da coluna de avaliações; aqui a largura vem da regra fixa. */
.table-card th:nth-child(4), .table-card td:nth-child(4),
.table-card th:nth-child(5), .table-card td:nth-child(5) { min-width: 0; }
