/* ==========================================================================
   Achilles Command — camada de design
   Identidade: ouro metálico sobre preto quente, grotesk apertada,
   micro-labels monoespaçadas, texturas de grade e poeira dourada.
   ========================================================================== */

:root {
  /* superfícies — preto quente, nunca esverdeado */
  --bg: #090807;
  --bg-soft: #0e0d0b;
  --panel: #141210;
  --panel-2: #1a1714;
  --panel-3: #221e19;
  --field: #100e0c;

  /* traços */
  --border: rgba(245, 241, 230, 0.08);
  --border-soft: rgba(245, 241, 230, 0.05);
  --border-strong: rgba(201, 162, 65, 0.34);

  /* texto — creme, não branco puro */
  --text: #f5f1e6;
  --text-soft: #b9b2a3;
  --muted: #837b6c;
  --faint: #5d564b;

  /* ouro — rampa da marca */
  --gold: #c9a241;
  --gold-light: #e3c877;
  --gold-pale: #f4e4b8;
  --gold-deep: #a8842f;
  --gold-dark: #6f5620;
  --gold-soft: rgba(201, 162, 65, 0.11);
  --gold-softer: rgba(201, 162, 65, 0.055);
  --gold-grad: linear-gradient(165deg, #e3c877 0%, #c9a241 48%, #a8842f 100%);
  --gold-glow: 0 14px 38px rgba(201, 162, 65, 0.18);

  /* semânticas — âmbar quente para aviso, para não competir com o ouro */
  --success: #5fc98b;
  --warning: #e08a3c;
  --danger: #e5674e;
  --info: #7fa9d8;
  --violet: #a98cd8;
  --whatsapp: #25d366;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.28);

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 15px;
  --radius-sm: 11px;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* texturas reaproveitáveis */
  --grid-lines:
    repeating-linear-gradient(90deg, rgba(201, 162, 65, 0.05) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(201, 162, 65, 0.05) 0 1px, transparent 1px 72px);
  --gold-dust:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(227, 200, 119, 0.5), transparent 60%),
    radial-gradient(1px 1px at 42% 62%, rgba(227, 200, 119, 0.36), transparent 60%),
    radial-gradient(1.8px 1.8px at 68% 18%, rgba(244, 228, 184, 0.42), transparent 60%),
    radial-gradient(1px 1px at 82% 74%, rgba(227, 200, 119, 0.3), transparent 60%),
    radial-gradient(1.2px 1.2px at 30% 84%, rgba(201, 162, 65, 0.34), transparent 60%),
    radial-gradient(1px 1px at 56% 34%, rgba(244, 228, 184, 0.26), transparent 60%);

  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 42% at 78% -6%, rgba(201, 162, 65, 0.11), transparent 70%),
    radial-gradient(ellipse 48% 38% at 4% 104%, rgba(168, 132, 47, 0.07), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

/* rolagem no tom da marca */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201, 162, 65, 0.16); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 65, 0.3); }

::selection { background: rgba(201, 162, 65, 0.28); color: var(--text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- títulos: grotesk apertada, como no site ------------------------------ */
h1, h2, h3, h4,
.page-title, .card-title, .metric-value, .hero h2,
.login-copy h1, .login-card h2, .ai-intro h3, .modal-head h3,
.brand strong, .login-brand strong, .proof-item strong, .empty-state h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.028em;
}

/* --- micro-labels monoespaçadas ------------------------------------------ */
.eyebrow, .nav-title, .page-kicker, .contact-label, .table th,
.project-client, .kanban-title, .tag, .metric-change {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Shell
   ========================================================================== */

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  background: rgba(9, 8, 7, 0.94);
  backdrop-filter: blur(20px);
  z-index: 40;
  display: flex;
  flex-direction: column;
}

/* --- lockup da marca -----------------------------------------------------
   A wordmark é uma silhueta com alpha; usamos mask-image para pintá-la com
   as cores do sistema (creme, ouro no hover) a partir de um único arquivo. */
.brand-mark {
  display: block; flex: 0 0 auto;
  aspect-ratio: 921 / 217;
  background-color: var(--text);
  -webkit-mask: url("/assets/logo-wordmark.png") no-repeat center / contain;
  mask: url("/assets/logo-wordmark.png") no-repeat center / contain;
  transition: background-color .25s ease;
}
.brand-rule {
  flex: 0 0 auto; width: 1px; height: 20px;
  background: linear-gradient(180deg, transparent, rgba(201, 162, 65, 0.55), transparent);
}
.brand-sub {
  color: var(--muted); font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.19em; text-transform: uppercase; white-space: nowrap;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 24px; }
.brand .brand-mark { width: 116px; }
.brand:hover .brand-mark { background-color: var(--gold-light); }

.nav-title {
  padding: 17px 11px 7px; color: var(--faint);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px;
  border: 1px solid transparent; border-radius: 13px;
  color: var(--text-soft); background: transparent;
  cursor: pointer; text-align: left; font-size: 13px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.7; flex: 0 0 auto; }
.nav-item:hover { color: var(--text); background: rgba(245, 241, 230, 0.035); }
.nav-item.active {
  color: var(--text); background: var(--gold-soft);
  border-color: rgba(201, 162, 65, 0.18);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 2px; height: 20px; border-radius: 0 2px 2px 0; background: var(--gold);
}
.nav-item.active svg { color: var(--gold); }
.nav-badge {
  margin-left: auto; min-width: 23px; padding: 3px 7px; border-radius: 999px;
  background: rgba(245, 241, 230, 0.06); color: var(--text-soft);
  font-family: var(--font-mono); font-size: 9.5px; text-align: center;
}
.sidebar-bottom { margin-top: auto; }
.status-card {
  padding: 14px; border: 1px solid var(--border); border-radius: 17px;
  background: linear-gradient(150deg, rgba(201, 162, 65, 0.07), rgba(245, 241, 230, 0.012));
}
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 4px rgba(95, 201, 139, 0.12);
}
.status-card p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.main { width: 100%; margin-left: var(--sidebar); min-height: 100vh; }

.topbar {
  height: 78px; position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px; border-bottom: 1px solid var(--border);
  background: rgba(9, 8, 7, 0.82); backdrop-filter: blur(18px);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.mobile-menu { display: none; }
.page-kicker {
  color: var(--gold-deep); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
}
.page-title { margin: 3px 0 0; font-size: 20px; line-height: 1.1; }
.top-actions { display: flex; align-items: center; gap: 9px; }

.icon-btn, .avatar-btn {
  width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--panel); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.icon-btn:hover, .avatar-btn:hover { border-color: var(--border-strong); background: var(--panel-2); }
.avatar-btn { width: auto; padding: 0 9px 0 5px; display: flex; gap: 9px; }
.avatar {
  width: 31px; height: 31px; border-radius: 10px;
  background: var(--gold-grad); color: #14100a;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
}
.avatar-name { font-weight: 600; font-size: 13px; padding-right: 4px; }

.content { padding: 28px 30px 60px; max-width: 1680px; margin: 0 auto; }

/* ==========================================================================
   Hero — grade + poeira dourada, como no site
   ========================================================================== */

.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  min-height: 220px; padding: 32px;
  background:
    radial-gradient(ellipse 52% 100% at 88% 0%, rgba(201, 162, 65, 0.16), transparent 68%),
    linear-gradient(150deg, #191510 0%, #0d0b09 62%);
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grid-lines);
  mask-image: radial-gradient(ellipse 70% 100% at 82% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 82% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: 4%; top: -12%;
  width: 340px; height: 130%;
  background: var(--gold-dust);
  background-size: 140px 140px;
  opacity: .85;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px;
  align-items: end; min-height: 158px;
}
.hero h2 {
  margin: 11px 0 13px; max-width: 720px;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.03; letter-spacing: -0.04em;
}
.hero h2 span {
  background: linear-gradient(100deg, var(--gold-pale), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--gold); font-size: 10px; font-weight: 500;
  letter-spacing: 0.19em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  border: 0; border-radius: 12px; padding: 11px 16px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--gold-grad); color: #14100a; font-weight: 700;
  box-shadow: var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(201, 162, 65, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--panel-3); }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-danger {
  background: rgba(229, 103, 78, 0.12); color: #f0a08c;
  border: 1px solid rgba(229, 103, 78, 0.22);
}
.btn-danger:hover { background: rgba(229, 103, 78, 0.18); }
.btn-sm { padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Grid e cartões
   ========================================================================== */

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }

.card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(26, 23, 20, 0.96), rgba(17, 15, 13, 0.97));
  overflow: hidden;
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-title { margin: 0; font-size: 17px; }
.card-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.metric-card { padding: 18px; min-height: 134px; position: relative; }
.metric-card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 65, 0.32), transparent);
}
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 65, 0.16);
}
.metric-icon svg { width: 18px; height: 18px; }
.metric-change {
  padding: 5px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 500;
  color: var(--success); background: rgba(95, 201, 139, 0.1);
}
.metric-change.down { color: #f0a08c; background: rgba(229, 103, 78, 0.1); }
.metric-value { margin-top: 18px; font-size: 27px; font-weight: 800; letter-spacing: -0.038em; }
.metric-label { margin-top: 3px; color: var(--muted); font-size: 11px; }

/* ==========================================================================
   Gráfico
   ========================================================================== */

.chart-wrap { height: 250px; padding: 8px 2px 0; }
.chart-svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: rgba(245, 241, 230, 0.055); stroke-width: 1; }
.chart-line {
  fill: none; stroke: var(--gold-light); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 6px 12px rgba(201, 162, 65, 0.28));
}
.chart-area { fill: url(#chartFill); }
.chart-label { fill: var(--faint); font-family: var(--font-mono); font-size: 9.5px; }

/* ==========================================================================
   Listas
   ========================================================================== */

.activity-list, .task-list, .insight-list { display: flex; flex-direction: column; }
.activity-item, .task-item, .insight-item { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border-soft); }
.activity-item:first-child, .task-item:first-child, .insight-item:first-child { border-top: 0; padding-top: 0; }
.activity-mark {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 65, 0.1);
}
.activity-content strong, .task-content strong { display: block; font-size: 12px; font-weight: 600; }
.activity-content p, .task-content p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.activity-time {
  margin-left: auto; color: var(--faint);
  font-family: var(--font-mono); font-size: 9.5px; white-space: nowrap;
}

.progress { height: 6px; border-radius: 99px; background: rgba(245, 241, 230, 0.05); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gold-grad); }

/* ==========================================================================
   Toolbar e formulários
   ========================================================================== */

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-box { min-width: 260px; position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-box input { width: 100%; padding-left: 38px; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); background: var(--field); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input, .select { height: 43px; padding: 0 12px; }
.textarea { min-height: 105px; resize: vertical; padding: 12px; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(201, 162, 65, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 162, 65, 0.09);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.label {
  display: block; margin: 0 0 7px; color: var(--text-soft);
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.11em; text-transform: uppercase;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-group.full { grid-column: 1 / -1; }
.help { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* ==========================================================================
   Kanban
   ========================================================================== */

.kanban { display: grid; grid-template-columns: repeat(6, minmax(235px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.kanban-column {
  min-height: 560px; padding: 12px; border: 1px solid var(--border-soft);
  border-radius: 17px; background: rgba(245, 241, 230, 0.016);
  transition: border-color .2s ease, background .2s ease;
}
.kanban-column.drag-over { border-color: var(--border-strong); background: var(--gold-softer); }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 11px; }
.kanban-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft);
}
.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.kanban-count {
  min-width: 24px; padding: 3px 7px; border-radius: 999px;
  background: rgba(245, 241, 230, 0.05); color: var(--muted);
  font-family: var(--font-mono); font-size: 9.5px; text-align: center;
}
.lead-card {
  padding: 14px; margin-top: 9px; border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(155deg, var(--panel-2), var(--panel));
  cursor: grab; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.lead-card:hover {
  transform: translateY(-2px); border-color: rgba(201, 162, 65, 0.26);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
.lead-card.dragging { opacity: .4; }
.lead-top { display: flex; justify-content: space-between; gap: 9px; }
.lead-company { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.lead-contact { margin-top: 3px; color: var(--muted); font-size: 10px; }
.score {
  min-width: 34px; height: 25px; display: grid; place-items: center; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-light);
  border: 1px solid rgba(201, 162, 65, 0.16);
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
}
.lead-service { margin-top: 12px; color: var(--text-soft); font-size: 11px; }
.lead-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 10px; }
.lead-value { color: var(--gold-light); font-weight: 600; }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.05em;
  border: 1px solid var(--border); color: var(--text-soft); background: rgba(245, 241, 230, 0.025);
}
.tag.gold { color: var(--gold-light); border-color: rgba(201, 162, 65, 0.2); background: var(--gold-soft); }
.tag.warning { color: #eda56c; background: rgba(224, 138, 60, 0.1); border-color: rgba(224, 138, 60, 0.2); }
.tag.danger { color: #f0a08c; background: rgba(229, 103, 78, 0.1); border-color: rgba(229, 103, 78, 0.2); }
.tag.info { color: var(--info); background: rgba(127, 169, 216, 0.1); border-color: rgba(127, 169, 216, 0.2); }
.tag.whatsapp { color: var(--whatsapp); background: rgba(37, 211, 102, 0.09); border-color: rgba(37, 211, 102, 0.2); }

/* ==========================================================================
   Tabela
   ========================================================================== */

.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 840px; }
.table th {
  padding: 12px 14px; color: var(--muted);
  font-size: 9.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; border-bottom: 1px solid var(--border);
}
.table td { padding: 14px; border-bottom: 1px solid var(--border-soft); color: var(--text-soft); font-size: 11.5px; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s ease; }
.table tbody tr:hover { background: var(--gold-softer); }
.table strong { color: var(--text); font-weight: 600; }

/* ==========================================================================
   Inbox
   ========================================================================== */

.inbox-layout { display: grid; grid-template-columns: 310px 1fr 300px; min-height: 690px; }
.inbox-list { border-right: 1px solid var(--border); }
.inbox-search { padding: 15px; border-bottom: 1px solid var(--border); }
.conversation-item {
  position: relative; padding: 14px 15px; border-bottom: 1px solid var(--border-soft);
  cursor: pointer; transition: background .18s ease;
}
.conversation-item:hover { background: rgba(245, 241, 230, 0.025); }
.conversation-item.active { background: var(--gold-softer); }
.conversation-item.active::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold);
}
.conversation-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-name { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.conversation-time { color: var(--faint); font-family: var(--font-mono); font-size: 9px; }
.conversation-preview { margin-top: 6px; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-meta { display: flex; gap: 6px; margin-top: 9px; }

.chat-panel { display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--border); }
.chat-person { display: flex; align-items: center; gap: 10px; }
.person-avatar {
  width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-light);
  border: 1px solid rgba(201, 162, 65, 0.16); font-weight: 700; font-size: 12px;
}
.chat-person strong { display: block; font-size: 12.5px; font-weight: 600; }
.chat-person span { color: var(--muted); font-size: 10px; }
.messages {
  flex: 1; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 11px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 162, 65, 0.05), transparent 70%);
}
.message { max-width: 72%; padding: 11px 14px; border-radius: 14px; font-size: 11.5px; line-height: 1.6; }
.message.in { align-self: flex-start; border: 1px solid var(--border); background: var(--panel-2); border-bottom-left-radius: 4px; }
.message.out {
  align-self: flex-end; background: var(--gold-grad); color: #14100a;
  border-bottom-right-radius: 4px; font-weight: 500;
  box-shadow: 0 8px 22px rgba(201, 162, 65, 0.16);
}
.message.bot {
  align-self: flex-end; background: var(--panel-3);
  border: 1px solid rgba(201, 162, 65, 0.2); color: var(--text); border-bottom-right-radius: 4px;
}
.message small { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 8.5px; opacity: .6; }

.chat-compose { padding: 14px; border-top: 1px solid var(--border); }
.compose-row { display: flex; gap: 9px; }
.compose-row .input { flex: 1; }
.quick-actions { display: flex; gap: 7px; margin-bottom: 9px; overflow: auto; }
.quick-action {
  flex: 0 0 auto; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; color: var(--text-soft);
  font-family: var(--font-mono); font-size: 9px; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.quick-action:hover { border-color: var(--border-strong); color: var(--gold-light); }

.contact-panel { border-left: 1px solid var(--border); padding: 18px; }
.contact-section { padding: 15px 0; border-top: 1px solid var(--border-soft); }
.contact-section:first-child { border-top: 0; padding-top: 0; }
.contact-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500; }
.contact-value { margin-top: 6px; font-size: 11.5px; line-height: 1.55; }

/* ==========================================================================
   Campanhas, projetos, automações
   ========================================================================== */

.campaign-card { padding: 18px; }
.campaign-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.campaign-title { font-size: 13.5px; font-weight: 700; letter-spacing: -0.015em; }
.campaign-copy { margin: 11px 0 15px; color: var(--muted); font-size: 11px; line-height: 1.65; min-height: 54px; }
.campaign-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.campaign-stat { padding: 10px; border-radius: 11px; background: rgba(245, 241, 230, 0.025); border: 1px solid var(--border-soft); }
.campaign-stat strong { display: block; font-size: 13px; font-weight: 700; }
.campaign-stat span { color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; }

.project-card { padding: 17px; }
.project-head { display: flex; justify-content: space-between; gap: 10px; }
.project-client { color: var(--gold); font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.project-name { margin-top: 6px; font-size: 13.5px; font-weight: 700; letter-spacing: -0.015em; }
.project-desc { margin: 10px 0 14px; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.project-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 10px; }

.automation-row {
  display: grid; grid-template-columns: 48px 1.4fr .7fr .7fr auto;
  align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--border-soft);
}
.automation-row:first-child { border-top: 0; }
.automation-icon {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(201, 162, 65, 0.14);
}
.automation-name { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.automation-desc { margin-top: 4px; color: var(--muted); font-size: 10px; }
.automation-stat { color: var(--text-soft); font-size: 11.5px; }
.automation-stat span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 8.5px; margin-top: 3px; }

.switch {
  position: relative; width: 42px; height: 24px; border-radius: 99px;
  background: #2a2521; border: 1px solid var(--border); cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #7d7466; transition: left .2s ease, background .2s ease;
}
.switch.on { background: var(--gold-grad); box-shadow: 0 0 0 3px rgba(201, 162, 65, 0.1); }
.switch.on::after { left: 21px; background: #14100a; }

/* ==========================================================================
   Assistente
   ========================================================================== */

.assistant-shell { display: grid; grid-template-columns: 1fr 330px; min-height: 650px; }
.assistant-main { display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.assistant-chat { flex: 1; padding: 24px; overflow: auto; }
.ai-intro { max-width: 660px; margin: 60px auto 0; text-align: center; }
.ai-mark {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
  display: grid; place-items: center; color: #14100a; background: var(--gold-grad);
  box-shadow: 0 18px 50px rgba(201, 162, 65, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.ai-mark svg { width: 28px; height: 28px; }
.ai-intro h3 { margin: 0; font-size: 26px; }
.ai-intro p { max-width: 520px; margin: 11px auto 20px; color: var(--muted); line-height: 1.7; }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.suggestion {
  padding: 14px; border: 1px solid var(--border); border-radius: 13px;
  background: rgba(245, 241, 230, 0.02); color: var(--text-soft);
  text-align: left; cursor: pointer; font-size: 11.5px; line-height: 1.55;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.suggestion:hover { border-color: var(--border-strong); color: var(--text); background: var(--gold-softer); }
.assistant-compose { padding: 15px; border-top: 1px solid var(--border); }
.assistant-context { padding: 19px; }
.context-card {
  padding: 14px; margin-top: 12px; border: 1px solid var(--border-soft); border-radius: 14px;
  background: rgba(245, 241, 230, 0.02);
}
.context-card strong { display: block; font-size: 11.5px; font-weight: 600; }
.context-card p { margin: 6px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }

/* ==========================================================================
   Configurações
   ========================================================================== */

.settings-grid { display: grid; grid-template-columns: 240px 1fr; min-height: 660px; }
.settings-nav { padding: 14px; border-right: 1px solid var(--border); }
.settings-nav button {
  width: 100%; padding: 11px 12px; margin-bottom: 4px;
  border: 1px solid transparent; border-radius: 11px;
  color: var(--text-soft); background: transparent; text-align: left; cursor: pointer; font-size: 13px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.settings-nav button:hover { color: var(--text); background: rgba(245, 241, 230, 0.03); }
.settings-nav button.active { color: var(--text); border-color: rgba(201, 162, 65, 0.18); background: var(--gold-soft); }
.settings-content { padding: 24px; }
.setting-section { max-width: 760px; }
.setting-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px 0; border-top: 1px solid var(--border-soft); }
.setting-row:first-child { border-top: 0; padding-top: 0; }
.setting-copy strong { display: block; font-size: 12.5px; font-weight: 600; }
.setting-copy p { max-width: 510px; margin: 5px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.6; }
.connection-card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 14px; margin-top: 10px; border: 1px solid var(--border-soft); border-radius: 14px;
  background: rgba(245, 241, 230, 0.02);
}
.connection-logo {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-light);
  border: 1px solid rgba(201, 162, 65, 0.14); font-weight: 700; font-size: 13px;
}
.connection-copy strong { display: block; font-size: 11.5px; font-weight: 600; }
.connection-copy span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; }

/* ==========================================================================
   Modal e toast
   ========================================================================== */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 5, 4, 0.76); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 20px;
}
.modal {
  width: min(650px, 100%); max-height: 90vh; overflow: auto;
  border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(165deg, #17140f, #100e0c);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.62);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 10.5px; }
.modal-body { padding: 20px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--border); }
.close-btn {
  width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 11px;
  display: grid; place-items: center; background: transparent; cursor: pointer;
  transition: border-color .2s ease;
}
.close-btn:hover { border-color: var(--border-strong); }

.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 9px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 13px 15px;
  border: 1px solid rgba(201, 162, 65, 0.22); border-left: 2px solid var(--gold);
  border-radius: 13px; background: linear-gradient(150deg, #1c1813, #141110);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42); animation: toastIn .25s ease;
}
.toast strong { display: block; font-size: 11.5px; font-weight: 600; }
.toast span { display: block; margin-top: 4px; color: var(--muted); font-size: 10.5px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Login — vitrine com grade e poeira dourada
   ========================================================================== */

.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-showcase {
  position: relative; overflow: hidden; padding: 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 70% at 84% 8%, rgba(201, 162, 65, 0.16), transparent 66%),
    linear-gradient(155deg, #16120d 0%, #0a0907 66%);
}
.login-showcase::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grid-lines);
  mask-image: radial-gradient(ellipse 80% 70% at 78% 12%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 78% 12%, #000, transparent 74%);
}
.login-showcase::after {
  content: ""; position: absolute; right: -4%; top: -6%; width: 46%; height: 112%;
  background: var(--gold-dust); background-size: 130px 130px; opacity: .9;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 64%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 64%, transparent);
  pointer-events: none;
}
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.login-brand .brand-mark {
  width: 168px;
  filter: drop-shadow(0 8px 26px rgba(201, 162, 65, 0.18));
}
.login-brand .brand-rule { height: 26px; }
.login-brand .brand-sub { font-size: 9.5px; letter-spacing: 0.2em; }
.login-copy { position: relative; z-index: 2; max-width: 700px; }
.login-copy .eyebrow { margin-bottom: 16px; }
.login-copy h1 { margin: 0; font-size: clamp(42px, 5vw, 70px); line-height: 0.99; letter-spacing: -0.052em; }
.login-copy h1 span {
  background: linear-gradient(100deg, var(--gold-pale) 0%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-copy p { max-width: 600px; margin: 20px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.78; }
.login-proof { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proof-item {
  padding: 15px; border: 1px solid var(--border); border-radius: 15px;
  background: linear-gradient(150deg, rgba(201, 162, 65, 0.06), rgba(245, 241, 230, 0.012));
}
.proof-item strong { display: block; font-size: 18px; font-weight: 800; color: var(--gold-light); letter-spacing: -0.03em; }
.proof-item span {
  display: block; margin-top: 4px; color: var(--muted);
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.login-panel { display: grid; place-items: center; padding: 38px; }
.login-card { width: min(430px, 100%); }
.login-card h2 { margin: 0; font-size: 28px; }
.login-card > p { margin: 9px 0 24px; color: var(--muted); line-height: 1.65; }
.login-card .form-group { margin-top: 14px; }
.login-card .btn { margin-top: 20px; height: 46px; }
.demo-note {
  margin-top: 16px; padding: 13px 14px;
  border: 1px solid rgba(201, 162, 65, 0.16); border-left: 2px solid var(--gold);
  border-radius: 12px; background: var(--gold-soft);
  color: var(--text-soft); font-size: 10.5px; line-height: 1.6;
}
.demo-note strong { color: var(--gold-light); }

/* ==========================================================================
   Vazio e utilitários
   ========================================================================== */

.empty-state { padding: 50px 20px; text-align: center; }
.empty-state svg { width: 32px; height: 32px; color: var(--gold-deep); }
.empty-state h3 { margin: 14px 0 6px; font-size: 16px; }
.empty-state p { margin: 0 auto; max-width: 420px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }

.mobile-overlay { display: none; }
.hidden { display: none !important; }
.text-gold { color: var(--gold-light); }
.text-muted { color: var(--muted); }
.text-danger { color: #f0a08c; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .inbox-layout { grid-template-columns: 280px 1fr; }
  .contact-panel { display: none; }
  .assistant-shell { grid-template-columns: 1fr; }
  .assistant-context { display: none; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-102%); transition: transform .25s ease; }
  .sidebar.open { transform: none; }
  .mobile-overlay {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(6, 5, 4, 0.6); opacity: 0; pointer-events: none; transition: opacity .2s ease;
  }
  .mobile-overlay.show { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 17px; }
  .content { padding: 20px 16px 50px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-actions { justify-content: flex-start; }
  .hero::after { opacity: .4; }
  .login-page { grid-template-columns: 1fr; }
  .login-showcase { min-height: 380px; padding: 28px; border-right: 0; border-bottom: 1px solid var(--border); }
  .login-copy h1 { font-size: 44px; }
  .login-proof { display: none; }
  .login-panel { padding: 28px 18px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { border-right: 0; border-bottom: 1px solid var(--border); display: flex; overflow: auto; }
  .settings-nav button { width: auto; flex: 0 0 auto; margin-bottom: 0; white-space: nowrap; }
}

@media (max-width: 650px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 22px; }
  .hero h2 { font-size: 34px; }
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-list { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .avatar-name { display: none; }
  .top-actions .btn-secondary { display: none; }
  .search-box { min-width: 100%; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar-right .btn { flex: 1; }
  .suggestion-grid { grid-template-columns: 1fr; }
  .automation-row { grid-template-columns: 42px 1fr auto; }
  .automation-stat { display: none; }
  .message { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ========================================================================== 
   Captação de leads
   ========================================================================== */
.prospecting-layout { display: grid; gap: 18px; }
.prospect-search-panel { padding: 20px; }
.prospect-form { display: grid; grid-template-columns: minmax(220px,1.4fr) minmax(180px,1fr) 82px 100px 90px auto; gap: 10px; align-items: end; margin-top: 16px; }
.prospect-form .form-group { margin: 0; }
.prospect-search-btn { height: 40px; white-space: nowrap; }
.prospect-help { margin-top: 12px; font-size: 10px; color: var(--muted); line-height: 1.55; }
.prospect-loading { padding: 22px; display: flex; gap: 12px; align-items: center; }
.prospect-loading span:last-child { color: var(--muted); font-size: 11px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: prospectSpin .8s linear infinite; flex: 0 0 auto; }
@keyframes prospectSpin { to { transform: rotate(360deg); } }
.prospect-metrics { margin-top: 0; }
.prospect-toolbar { margin: 0; }
.prospect-toolbar .toolbar-left { align-items: baseline; gap: 10px; }
.prospect-results { display: grid; grid-template-columns: minmax(440px,.95fr) minmax(420px,1.05fr); gap: 18px; align-items: start; }
.prospect-results.list-only { grid-template-columns: 1fr; }
.prospect-list { display: grid; gap: 11px; max-height: 690px; overflow: auto; padding-right: 4px; }
.prospect-card { padding: 16px; }
.prospect-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.prospect-name { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.prospect-category { color: var(--muted); font-size: 10px; margin-top: 4px; text-transform: capitalize; }
.prospect-score { width: 54px; height: 54px; border: 1px solid var(--gold-border); background: var(--gold-soft); border-radius: 14px; display: grid; place-content: center; text-align: center; flex: 0 0 auto; }
.prospect-score strong { font-size: 18px; line-height: 1; color: var(--gold-light); }
.prospect-score span { font-size: 8px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.prospect-address { color: var(--muted); font-size: 10.5px; line-height: 1.5; margin: 10px 0; }
.prospect-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.prospect-signals .tag { display: inline-flex; align-items: center; gap: 5px; }
.prospect-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.prospect-reasons span { font-size: 9px; color: var(--muted); padding: 4px 7px; border: 1px solid var(--border); border-radius: 999px; }
.prospect-links { display: flex; gap: 12px; margin-top: 10px; }
.prospect-links a { font-size: 10px; color: var(--gold-light); text-decoration: none; }
.prospect-links a:hover { text-decoration: underline; }
.prospect-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border); }
.prospect-map-wrap { position: sticky; top: 86px; overflow: hidden; }
.prospect-map { height: 650px; width: 100%; background: #191714; }
.prospect-map-note { padding: 8px 12px; color: var(--muted); font-size: 9px; border-top: 1px solid var(--border); }
.prospect-approach-context { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.prospect-approach-context strong { font-size: 10px; }
.prospect-approach-context p { font-size: 10px; line-height: 1.55; color: var(--muted); margin: 5px 0 0; }
.approach-editor { min-height: 150px; }
.approach-note { min-height: 74px; }
.approach-target { margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--border); font-family: var(--font-mono); letter-spacing: .03em; }
.approach-target.warn { color: #eda56c; font-family: inherit; letter-spacing: 0; }
.label-optional { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* filtros da captação — chips de contato e de encaixe comercial */
.prospect-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.filter-label {
  color: var(--muted); font-size: 8.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  margin-right: 3px; font-family: var(--font-mono);
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  font-size: 10.5px; font-weight: 500; font-family: inherit; letter-spacing: .01em;
  border: 1px solid var(--border); background: rgba(245, 241, 230, 0.025); color: var(--text-soft);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip em { font-style: normal; font-size: 9px; color: var(--faint); font-family: var(--font-mono); }
.filter-chip.active { color: var(--gold-light); border-color: rgba(201, 162, 65, 0.34); background: var(--gold-soft); }
.filter-chip.active em { color: var(--gold-deep); }
.filter-clear {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border: 0; background: transparent; color: var(--muted); font-family: inherit; font-size: 10px; cursor: pointer;
}
.filter-clear:hover { color: var(--text); }
@media (max-width: 720px) { .filter-clear { margin-left: 0; } }

.leaflet-container { font-family: inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #1d1a16; color: #f5efe4; }
.leaflet-popup-content { font-size: 11px; line-height: 1.5; }

@media (max-width: 1180px) {
  .prospect-form { grid-template-columns: 1fr 1fr 80px 95px; }
  .prospect-search-btn { grid-column: span 2; }
  .prospect-results { grid-template-columns: 1fr; }
  .prospect-map-wrap { position: static; }
  .prospect-map { height: 440px; }
}
@media (max-width: 650px) {
  .prospect-form { grid-template-columns: 1fr 1fr; }
  .prospect-form .form-group:not(.small) { grid-column: 1 / -1; }
  .prospect-search-btn { grid-column: 1 / -1; }
  .prospect-list { max-height: none; }
  .prospect-map { height: 340px; }
  .prospect-actions .btn { flex: 1; }
}

/* Captação Google Places: leitura rápida de propensão por serviço */
.prospect-service-scores { display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr)) minmax(140px, 1.55fr); gap: 7px; margin-top: 10px; }
.prospect-service-scores > span { border: 1px solid var(--border); border-radius: 10px; padding: 8px 9px; background: var(--surface-soft); display: grid; gap: 3px; min-width: 0; }
.prospect-service-scores small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; }
.prospect-service-scores strong { font-size: 11px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-service-scores .recommended { border-color: var(--gold-border); background: var(--gold-soft); }
.prospect-service-scores .recommended strong { color: var(--gold-light); }
@media (max-width: 640px) { .prospect-service-scores { grid-template-columns: repeat(3, 1fr); } .prospect-service-scores .recommended { grid-column: 1 / -1; } }
