:root {
  --bg-page: #f8f9fc;
  --bg-card: #ffffff;
  --bg-kpi-neutral: #f1f3f9;
  --bg-kpi-green: #f0fdfa;
  --bg-kpi-red: #fdf2f8;
  --bg-kpi-blue: #eff6ff;
  --bg-kpi-yellow: #fffbeb;
  --bg-kpi-purple: #f5f3ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-bg: #eef2ff;
  --accent-light: #818cf8;
  --blue: #3b82f6;
  --blue-bg: #eff6ff;
  --pink: #ec4899;
  --pink-bg: #fdf2f8;
  --purple: #8b5cf6;
  --purple-bg: #f5f3ff;
  --orange: #f59e0b;
  --orange-bg: #fffbeb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --teal-bg: #f0fdfa;
  --border: #e2e8f0;
  --border-hover: #c7d2fe;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
  --shadow-card: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 10px 40px rgba(15,23,42,.12);
  --shadow-topbar: 0 1px 0 rgba(15,23,42,.06);
  --shadow-topbar-scroll: 0 4px 24px rgba(15,23,42,.08);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --topbar-h: 64px;
  --topbar-h-collapsed: 48px;
  --font-sora: "Sora", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sidebar-w: 252px;
  --sidebar-w-collapsed: 72px;
}

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

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  font-family: var(--font-sora);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-page);
}

.vh-root {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}
/* Durante o boot o app j? ocupa o layout (evita ?pulo? quando o loader some). */
.vh-root.vh-root--boot {
  visibility: hidden;
  pointer-events: none;
}

/* ===== SIDEBAR (hunter-demo) ===== */
.vh-sidebar {
  flex-shrink: 0;
  width: var(--sidebar-w);
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-right: 1px solid rgba(255,255,255,.08);
  z-index: 20;
  transition: width .28s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  box-shadow: 2px 0 16px rgba(0,0,0,.14);
}
.vh-sidebar.scrolled-edge {
  box-shadow: 4px 0 28px rgba(0,0,0,.2);
}
.vh-sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.vh-sidebar-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 12px 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.vh-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.vh-app-brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vh-app-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.vh-app-brand-lupa {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 8px rgba(79,70,229,.5);
  pointer-events: none;
}
.vh-app-brand-lupa svg { width: 11px; height: 11px; }

.vh-sidebar-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.vh-sidebar-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vh-sidebar-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #a5b4fc;
}

.vh-sidebar.collapsed .vh-sidebar-titles {
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  pointer-events: none;
}
.vh-sidebar.collapsed .vh-sidebar-head {
  padding: 10px 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vh-sidebar.collapsed .vh-sidebar-brand {
  flex: 0 0 auto;
  width: auto;
  justify-content: center;
}
.vh-sidebar.collapsed .vh-sidebar-toggle {
  margin-top: 0;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
}

.vh-sidebar-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  margin-top: 2px;
}
.vh-sidebar-toggle:hover { background: rgba(255,255,255,.06); color: #94a3b8; }

.vh-sidebar-toggle-ico {
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.vh-sidebar.collapsed .vh-sidebar-toggle-ico {
  transform: rotate(180deg);
}

.vh-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}

.vh-nav-divider {
  display: block;
  width: 100%;
  padding: 12px 8px 6px 10px;
  margin-top: 2px;
}
.vh-nav-divider:first-child {
  padding-top: 2px;
  margin-top: 0;
}
.vh-nav-divider-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
}
.vh-sidebar.collapsed .vh-nav-divider {
  padding: 0;
  margin: 10px 12px;
  height: 1px;
  background: rgba(255,255,255,.08);
}
.vh-sidebar.collapsed .vh-nav-divider-label {
  display: none;
}

.vh-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-sora);
  color: #94a3b8;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  text-align: left;
  transition: background .18s, color .18s;
  text-decoration: none;
}
.vh-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 0;
  border-radius: 0 2px 2px 0;
  background: var(--accent-light);
  transition: transform .22s cubic-bezier(.4,0,.2,1), height .22s ease;
}

.vh-nav-item:hover {
  background: rgba(255,255,255,.05);
  color: #e2e8f0;
}

.vh-nav-item.active {
  background: rgba(79,70,229,.18);
  color: #c7d2fe;
}
.vh-nav-item.active::after {
  transform: translateY(-50%) scaleY(1);
  height: 56%;
}
.vh-nav-item.active .vh-nav-label {
  font-weight: 600;
  color: #c7d2fe;
}

.vh-sidebar.collapsed .vh-nav-item {
  justify-content: center;
  padding: 10px 8px;
  min-height: 48px;
}

.vh-nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vh-nav-icon svg { width: 20px; height: 20px; }

.vh-nav-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  transition: opacity .2s ease, max-width .22s ease;
}

.vh-sidebar.collapsed .vh-nav-label {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  pointer-events: none;
  flex: 0;
}

.vh-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== MAIN ===== */
.vh-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vh-body {
  flex: 1;
  overflow: auto;
  background: var(--bg-page);
  scroll-behavior: smooth;
}

/* ===== PAGE ===== */
.vh-page {
  padding: 28px 32px 48px;
  animation: vh-pageEnter .4s cubic-bezier(.22,1,.36,1);
}
.vh-page-exit {
  animation: vh-pageExit .15s ease-in forwards;
}
.vh-page-loader {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}
.vh-page-loader .vh-spinner {
  margin: 0 auto 12px;
}
.vh-loading-text {
  font-size: 13px;
}
.vh-page-empty {
  padding: 48px;
  text-align: center;
  color: var(--text-muted);
}

.vh-route-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 100000;
}
.vh-route-loader.active {
  opacity: 1;
  pointer-events: all;
}
.vh-route-loader-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .5);
}
.vh-route-loader-text {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.vh-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: vh-spin .75s linear infinite;
}

.vh-page-header {
  margin-bottom: 28px;
}
.vh-page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.vh-page-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.vh-dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
/* ===== KPI GRID ===== */
.vh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.vh-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.vh-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.vh-kpi:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.vh-kpi:hover::before { opacity: 1; }

.vh-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  transition: transform .2s;
}
.vh-kpi:hover .vh-kpi-icon { transform: scale(1.08); }
.vh-kpi-icon.green { background: var(--teal-bg); color: var(--teal); }
.vh-kpi-icon.blue { background: var(--blue-bg); color: var(--blue); }
.vh-kpi-icon.pink { background: var(--pink-bg); color: var(--pink); }
.vh-kpi-icon.purple { background: var(--purple-bg); color: var(--purple); }
.vh-kpi-icon.orange { background: var(--orange-bg); color: var(--orange); }
.vh-kpi-icon.neutral { background: var(--bg-kpi-neutral); color: var(--text-secondary); }

.vh-kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vh-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.vh-kpi-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vh-kpi-trend { font-weight: 600; font-size: 11px; }
.vh-kpi-trend.up { color: var(--teal); }
.vh-kpi-trend.down { color: var(--pink); }

/* ===== CARD ===== */
.vh-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, border-color .2s, transform .2s;
}
.vh-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.vh-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vh-usuarios-dept-setor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 20px;
}
.vh-usuarios-dept-setor-row > .vh-usuarios-dept-setor-card {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
  margin-bottom: 0;
  overflow: auto;
}
@media (max-width: 720px) {
  .vh-usuarios-dept-setor-row > .vh-usuarios-dept-setor-card {
    flex: 1 1 100%;
  }
}
.vh-card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.vh-card-head-row .vh-card-title {
  margin-bottom: 0;
}
.vh-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.vh-table-striped tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.03);
}
.vh-usuarios-table {
  font-size: 12px;
}
.vh-usuarios-table th,
.vh-usuarios-table td {
  padding: 10px 8px;
  vertical-align: middle;
}

/* Dashboard: import chart */
.vh-card-imports { overflow: visible; }
.vh-imports-card-intro .vh-card-title {
  margin-bottom: 4px;
}
.vh-imports-card-intro .vh-imports-sub {
  margin: 0 0 10px;
}
.vh-topbar .vh-mac-toggle-input:focus-visible + .vh-mac-toggle-track {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 0 3px rgba(129, 140, 248, 0.45);
}
.vh-mac-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin: 0;
}
.vh-mac-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}
.vh-mac-toggle-track {
  position: relative;
  width: 51px;
  height: 31px;
  border-radius: 31px;
  background: #e5e5ea;
  transition: background 0.22s ease;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.vh-mac-toggle-input:focus-visible + .vh-mac-toggle-track {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(79, 70, 229, 0.35);
}
.vh-mac-toggle-input:checked + .vh-mac-toggle-track {
  background: #34c759;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.vh-mac-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.15),
    0 1px 1px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.vh-mac-toggle-input:checked + .vh-mac-toggle-track .vh-mac-toggle-thumb {
  transform: translateX(20px);
}

.vh-imports-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.4;
}
.vh-import-chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(79,70,229,.04) 0%, transparent 55%),
    linear-gradient(125deg, rgba(59,130,246,.03) 0%, transparent 45%);
  border: 10px solid #fff;
}
.vh-card-imports--side .vh-import-chart-wrap {
  margin-left: -22px;
  margin-right: -22px;
  width: calc(100% + 44px);
  max-width: none;
  border-radius: 0;
}
.vh-import-chart {
  width: 100%;
  height: 280px;
  min-height: 240px;
}
.vh-import-chart-fallback {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Agency table */
.vh-dashboard-agency-table tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.vh-dashboard-agency-table tbody tr:hover td { background: rgba(79,70,229,.055); box-shadow: inset 3px 0 0 var(--accent); }
.vh-dashboard-agency-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bg-kpi-neutral); }
.vh-dashboard-agency-table tbody tr:nth-child(even) td { background: rgba(0,0,0,.015); }
.vh-dashboard-agency-table tbody tr:nth-child(even):hover td { background: rgba(79,70,229,.055); }

/* ===== GRID LAYOUTS ===== */
.vh-row-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
/* Dashboard: Top Bairros (esq.) ? Importa??es (dir.) */
.vh-row-2--dashboard {
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
}
.vh-row-2--dashboard > * {
  min-width: 0;
}
.vh-card-imports--side {
  width: 100%;
  min-width: 0;
}
.vh-row-2 > .vh-dashboard-agency-card { min-width: 0; }
.vh-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* ===== CODE BADGE ===== */
.vh-code {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
}

/* ===== CHIP / PILL ===== */
.vh-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sora);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .18s;
  margin: 2px;
  gap: 4px;
}
.vh-chip:hover { border-color: var(--border-hover); background: var(--bg-kpi-neutral); transform: translateY(-1px); }
.vh-chip.on {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(79,70,229,.15);
}

/* ===== BUTTONS ===== */
.vh-btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-sora);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(79,70,229,.25), inset 0 1px 0 rgba(255,255,255,.1);
  transition: filter .18s, box-shadow .18s, transform .15s;
}
.vh-btn-accent:hover { filter: brightness(1.08); box-shadow: 0 6px 24px rgba(79,70,229,.3); transform: translateY(-1px); }
.vh-btn-accent:active { transform: translateY(0); }

.vh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-sora);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  cursor: pointer;
  transition: all .18s;
}
.vh-btn-outline:hover { border-color: var(--border-hover); background: var(--bg-kpi-neutral); transform: translateY(-1px); }

/* ===== PILLS BAR ===== */
.vh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

/* ===== SEARCH ===== */
.vh-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sora);
  font-size: 13px;
  background: #fff;
  color: var(--text-primary);
  transition: border-color .2s, box-shadow .2s;
}
.vh-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12), 0 1px 2px rgba(0,0,0,.04);
}
.vh-search::placeholder { color: var(--text-muted); }

select.vh-search {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

input[type="number"].vh-search,
input[type="date"].vh-search,
select.vh-search,
textarea.vh-search {
  width: 100%;
  font-family: var(--font-sora);
  font-size: 13px;
}

/* ===== TOGGLE ===== */
.vh-switch {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: #e2e8f0;
  position: relative;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background .25s cubic-bezier(.4,0,.2,1);
}
.vh-switch.on { background: var(--accent); }
.vh-switch::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.vh-switch.on::after { transform: translateX(20px); }

/* ===== TABLE ===== */
.vh-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.vh-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-kpi-neutral);
}
.vh-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.vh-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.vh-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
  transition: background .15s;
}
.vh-table tr:last-child td { border-bottom: none; }
.vh-table tr:hover td { background: rgba(0,0,0,.02); }

.vh-dashboard-agency-full { width: 100%; margin-bottom: 24px; }
.vh-dashboard-agency-card { display: flex; flex-direction: column; min-height: 0; }
.vh-dashboard-agency-hint { font-size: 11px; color: var(--text-muted); margin: -8px 0 12px; }
.vh-dashboard-table-wrap {
  overflow: auto;
  max-height: min(480px, 52vh);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 4px;
}
.vh-dashboard-table-wrap--wide { max-height: min(560px, 58vh); }
.vh-dashboard-agency-table { margin: 0; font-size: 12px; }
.vh-dashboard-agency-table th, .vh-dashboard-agency-table td { padding: 10px 12px; }
.vh-dashboard-agency-table th:first-child, .vh-dashboard-agency-table td:first-child { min-width: 140px; }
.vh-th-num, .vh-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  width: 1%;
}
.vh-td-date { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); white-space: nowrap; }

/* ===== AVATAR ===== */
.vh-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.vh-avatar.venda { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.vh-avatar.loc { background: linear-gradient(135deg, var(--blue), #4f46e5); }
.vh-avatar.neutral { background: linear-gradient(135deg, #94a3b8, #64748b); }

/* ===== BACK BUTTON ===== */
.vh-back-btn {
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-sora);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .18s;
}
.vh-back-btn:hover { border-color: var(--border-hover); background: var(--bg-kpi-neutral); transform: translateX(-2px); }

/* ===== HUNTER LAYOUT ===== */
.vh-hunter-layout { display: flex; gap: 20px; align-items: flex-start; }
.vh-filters-panel {
  width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
}
.vh-filters-panel.collapsed { display: none; }
.vh-filter-section { margin-bottom: 20px; }
.vh-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vh-hunter-main { flex: 1; min-width: 0; }

.vh-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vh-prop-card {
  padding: 0;
  overflow: hidden;
  cursor: default;
  transition: transform .25s, box-shadow .25s, border-color .2s;
}
.vh-prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

.vh-prop-card-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  overflow: hidden;
}
.vh-prop-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.08) 100%);
  pointer-events: none;
}
.vh-prop-card-img.venda { background: linear-gradient(135deg, #eef2ff, #ddd6fe); color: var(--accent); }
.vh-prop-card-img.loc { background: linear-gradient(135deg, #eff6ff, #bfdbfe); color: var(--blue); }

.vh-prop-card-body { padding: 18px; }
.vh-prop-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  display: inline-block;
  margin-bottom: 8px;
}
.vh-prop-cat.venda { background: var(--accent-bg); color: var(--accent-dark); }
.vh-prop-cat.loc { background: var(--blue-bg); color: var(--blue); }

.vh-prop-type { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.vh-prop-loc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.vh-prop-agency {
  font-family: var(--font-mono);
  font-size: 10px;
  display: inline-block;
  background: var(--bg-kpi-neutral);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  color: var(--text-muted);
}
.vh-prop-price { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.vh-prop-price.venda { color: var(--accent-dark); }
.vh-prop-price.loc { color: var(--blue); }
.vh-prop-price small { font-size: 12px; font-weight: 500; color: var(--text-muted); }

.vh-prop-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.vh-prop-stat-val { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.vh-prop-stat-lbl { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); text-transform: uppercase; }

/* ===== CLIENT GRID ===== */
.vh-client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vh-client-card {
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.vh-client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }

/* ===== DETAIL 2-COL ===== */
.vh-detail-2col {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

/* ===== COMPARATIVO ===== */
.vh-comp-row { cursor: pointer; margin-bottom: 12px; }
.vh-comp-row-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.vh-comp-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vh-comp-badge .pct { font-size: 16px; font-weight: 700; }
.vh-comp-badge .lbl { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.vh-comp-expand {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform .2s;
  font-size: 12px;
}
.vh-comp-row.open .vh-comp-expand { transform: rotate(180deg); }
.vh-comp-body {
  display: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: vh-pageEnter .3s ease-out;
}
.vh-comp-row.open .vh-comp-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* ===== CRAWLERS ===== */
.vh-crawl-card { margin-bottom: 12px; transition: transform .2s, box-shadow .2s; }
.vh-crawl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.vh-crawl-row {
  display: grid;
  grid-template-columns: 1fr 200px 100px;
  gap: 16px;
  align-items: center;
}
.vh-crawl-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}
.vh-crawl-status.running { background: var(--teal-bg); color: var(--teal); }
.vh-crawl-status.done { background: var(--blue-bg); color: var(--blue); }
.vh-crawl-status.error { background: var(--pink-bg); color: var(--pink); }
.vh-crawl-status.waiting { background: var(--bg-kpi-neutral); color: var(--text-muted); }

.vh-crawl-section { margin-bottom: 28px; }
.vh-crawl-section:last-child { margin-bottom: 0; }
.vh-crawl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vh-crawl-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.vh-crawl-section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.vh-progress-bar {
  height: 6px;
  background: var(--bg-kpi-neutral);
  border-radius: 3px;
  overflow: hidden;
}
.vh-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s cubic-bezier(.22,1,.36,1);
}

/* ===== NORMALIZACAO ===== */

/* --- Group container --- */
.vh-norm-group { padding: 0; overflow: hidden; }

.vh-norm-group-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.vh-norm-group-photo {
  position: relative;
  width: 180px;
  min-width: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.vh-norm-group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vh-norm-group-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.vh-norm-type-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vh-norm-group-meta {
  flex: 1;
  padding: 18px 20px;
  min-width: 0;
}
.vh-norm-group-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.vh-norm-group-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.vh-norm-group-address { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.vh-norm-group-attrs { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vh-norm-price { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.vh-norm-sub-price { font-size: 11px; color: var(--text-muted); }
.vh-norm-group-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-left: 1px solid var(--border);
  min-width: 80px;
  background: var(--surface);
}
.vh-norm-count-num { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.vh-norm-count-label { font-size: 10px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* --- Candidates 3-column grid --- */
.vh-norm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

/* --- Compact candidate card --- */
.vh-norm-card-sm {
  background: var(--bg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .15s;
}
.vh-norm-card-sm:hover { background: var(--surface); }
.vh-norm-card-sm.exiting {
  transition: transform .4s ease, opacity .4s ease;
  transform: scale(.94) translateY(12px);
  opacity: 0;
  pointer-events: none;
}

/* VS bar */
.vh-norm-vs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.vh-norm-vs-label {
  font-size: 11px;
  font-weight: 700;
  flex: 1;
  text-align: center;
  letter-spacing: .3px;
}
.vh-norm-vs-label.visiio { color: var(--accent); }
.vh-norm-vs-label.agency { color: var(--text-secondary); }
.vh-norm-vs-sep {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-muted);
  line-height: 1;
}

/* Dual thumbnails */
.vh-norm-thumbs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  height: 90px;
}
.vh-norm-thumb {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.vh-norm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .85;
  transition: opacity .2s;
}
.vh-norm-thumb:hover img { opacity: 1; }
.vh-norm-thumb-label {
  position: absolute;
  bottom: 5px;
  left: 6px;
  background: rgba(15,23,42,.75);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.vh-norm-thumb-label.agency { background: rgba(79,70,229,.85); }
.vh-norm-thumb-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  z-index: 1;
  padding: 0 2px;
}
.vh-norm-thumb-score {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  border: 2px solid currentColor;
}
.vh-norm-thumb-score span { font-size: 8px; font-weight: 600; line-height: 1; }

/* Info below thumbnails */
.vh-norm-info { display: flex; flex-direction: column; gap: 4px; }
.vh-norm-address { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.vh-norm-attrs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 11px;
  color: var(--text-secondary);
}
.vh-norm-attrs span { font-weight: 600; }

/* Match criteria chips */
.vh-norm-criteria { display: flex; gap: 4px; flex-wrap: wrap; }
.vh-norm-crit {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid;
}
.vh-norm-crit.hit {
  background: var(--teal-bg);
  color: var(--teal);
  border-color: rgba(20,184,166,.3);
}
.vh-norm-crit.miss {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
  text-decoration: line-through;
  opacity: .7;
}

/* Score bar */
.vh-norm-score-bar-wrap { display: flex; flex-direction: column; gap: 3px; }
.vh-norm-score-bar-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.vh-norm-score-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .5s ease;
}
.vh-norm-score-label { font-size: 10px; font-weight: 600; }

/* Reason chips */
.vh-norm-reasons { display: flex; flex-wrap: wrap; gap: 3px; }

/* Actions */
.vh-norm-actions { display: flex; gap: 8px; margin-top: auto; }
.vh-btn-no, .vh-btn-yes {
  flex: 1;
  padding: 9px 6px;
  border-radius: var(--radius);
  font-family: var(--font-sora);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: filter .18s, box-shadow .18s, transform .15s;
}
.vh-btn-no {
  border: 1px solid var(--pink);
  background: var(--pink-bg);
  color: var(--pink);
}
.vh-btn-yes {
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-bg), #fff);
  color: var(--accent-dark);
}
.vh-btn-no:hover { filter: brightness(.97); box-shadow: 0 3px 8px rgba(231,76,122,.18); transform: translateY(-1px); }
.vh-btn-yes:hover { filter: brightness(.97); box-shadow: 0 3px 8px rgba(79,70,229,.22); transform: translateY(-1px); }

/* Chip variants for loc/venda in group header */
.vh-chip.loc { background: var(--teal-bg); color: var(--teal); border-color: rgba(20,184,166,.3); }
.vh-chip.venda { background: var(--accent-bg); color: var(--accent); border-color: rgba(79,70,229,.3); }

/* Responsive */
@media (max-width: 900px) {
  .vh-norm-grid { grid-template-columns: repeat(2, 1fr); }
  .vh-norm-group-photo { width: 130px; min-width: 130px; }
}
@media (max-width: 600px) {
  .vh-norm-grid { grid-template-columns: 1fr; }
  .vh-norm-group-header { flex-direction: column; }
  .vh-norm-group-photo { width: 100%; height: 120px; }
  .vh-norm-group-count { flex-direction: row; gap: 6px; border-left: none; border-top: 1px solid var(--border); }
}

.vh-celebrate {
  text-align: center;
  padding: 64px 24px;
}
.vh-celebrate h2 { font-size: 24px; margin: 16px 0 8px; color: var(--text-primary); }
.vh-celebrate-emoji { font-size: 64px; animation: vh-celebrate-bounce 1s ease infinite; }

/* ===== CONFIG ===== */
.vh-config-section { margin-bottom: 24px; }
.vh-config-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.vh-config-section-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.vh-config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.vh-config-row:last-child { border-bottom: none; }

.vh-config-input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.vh-config-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }

.vh-config-page .vh-card { padding: 18px; }
.vh-config-form { display: flex; flex-direction: column; gap: 16px; }
.vh-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vh-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.vh-config-field span { font-weight: 600; color: var(--text-secondary); }
.vh-config-form .vh-config-input {
  width: 100%;
  text-align: left;
  font-family: var(--font-sora);
}
.vh-config-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.vh-config-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.vh-config-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.vh-config-field-weekday.is-hidden { display: none; }
.vh-config-table-wrap { overflow: auto; }
.vh-config-table th,
.vh-config-table td {
  font-size: 12px;
  white-space: nowrap;
}
.vh-config-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 20px !important;
}
.vh-config-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}
.vh-config-badge.status-success { background: var(--teal-bg); color: var(--teal); }
.vh-config-badge.status-error { background: var(--pink-bg); color: var(--pink); }
.vh-config-badge.status-running { background: var(--blue-bg); color: var(--blue); }

@media (max-width: 900px) {
  .vh-config-grid { grid-template-columns: 1fr; }
}

/* ===== MATRIX TABLE ===== */
.vh-matrix td, .vh-matrix th { text-align: center; font-size: 11px; padding: 10px 8px; }
.vh-matrix th:first-child, .vh-matrix td:first-child { text-align: left; }

.vh-level-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 600;
}
.vh-level-badge.total { background: var(--accent-bg); color: var(--accent-dark); }
.vh-level-badge.edicao { background: var(--blue-bg); color: var(--blue); }
.vh-level-badge.consulta { background: var(--orange-bg); color: var(--orange); }
.vh-level-badge.none { background: var(--bg-kpi-neutral); color: var(--text-muted); }

/* ===== STATUS BADGES ===== */
.vh-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
}
.vh-status-badge.active { background: var(--teal-bg); color: var(--teal); }
.vh-status-badge.inactive { background: var(--pink-bg); color: var(--pink); }
.vh-status-badge.env-prod { background: var(--teal-bg); color: var(--teal); }
.vh-status-badge.connected { background: var(--teal-bg); color: var(--teal); }

/* ===== DOT INDICATORS ===== */
.vh-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.vh-dot.green { background: var(--teal); }
.vh-dot.red { background: var(--pink); }
.vh-dot.blue { background: var(--blue); }
.vh-dot.pulse { animation: vh-dotPulse 2s ease-in-out infinite; }

/* ===== TOGGLE FILTERS ===== */
.vh-toggle-filters {
  padding: 10px 14px;
  font-family: var(--font-sora);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .18s;
}
.vh-toggle-filters:hover { border-color: var(--border-hover); background: var(--bg-kpi-neutral); }

/* ===== SCORE RING ===== */
.vh-score-ring { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.vh-score-ring-value {
  position: absolute;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.vh-score-ring circle:last-child {
  animation: vh-ringDraw .8s cubic-bezier(.22,1,.36,1) forwards;
}

/* ===== STAGGER ANIMATION ===== */
.vh-stagger > * { animation: vh-pageEnter .4s cubic-bezier(.22,1,.36,1) backwards; }
.vh-stagger > *:nth-child(1) { animation-delay: 0s; }
.vh-stagger > *:nth-child(2) { animation-delay: .05s; }
.vh-stagger > *:nth-child(3) { animation-delay: .1s; }
.vh-stagger > *:nth-child(4) { animation-delay: .15s; }
.vh-stagger > *:nth-child(5) { animation-delay: .2s; }
.vh-stagger > *:nth-child(6) { animation-delay: .25s; }
.vh-stagger > *:nth-child(7) { animation-delay: .3s; }
.vh-stagger > *:nth-child(8) { animation-delay: .35s; }
.vh-stagger > *:nth-child(9) { animation-delay: .4s; }
.vh-stagger > *:nth-child(10) { animation-delay: .45s; }
.vh-stagger > *:nth-child(11) { animation-delay: .5s; }
.vh-stagger > *:nth-child(12) { animation-delay: .55s; }

/* ===== BAR FILL ANIMATION ===== */
.vh-bar-fill {
  transform-origin: left;
  animation: vh-barGrow .8s cubic-bezier(.22,1,.36,1) forwards;
}

/* ===== SHIMMER ===== */
.vh-progress-shimmer {
  background: linear-gradient(90deg, rgba(20,184,166,.2) 0%, rgba(20,184,166,.5) 50%, rgba(20,184,166,.2) 100%);
  background-size: 200% 100%;
  animation: vh-shimmer 2s linear infinite;
}

/* ===== SCROLL REVEAL ===== */
.vh-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.vh-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TOAST ===== */
.vh-toast-wrap {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.vh-toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--text-primary);
  border: 1px solid rgba(255,255,255,.06);
  color: #fff;
  font-size: 13px;
  max-width: 360px;
  animation: vh-slideIn .3s cubic-bezier(.22,1,.36,1);
  box-shadow: var(--shadow-lg);
}
.vh-toast.err { background: var(--pink); }

/* ===== TOAST ? BUSCA NA WEB (IA / tech) ===== */
.vh-web-ai-toast {
  pointer-events: auto;
  max-width: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 42%, #0f172a 100%);
  border: 1px solid rgba(129, 140, 248, 0.45);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.15) inset,
    0 12px 40px rgba(15, 23, 42, 0.55),
    0 0 48px rgba(99, 102, 241, 0.22);
  opacity: 0;
  transform: translateX(28px) scale(0.96);
  filter: blur(2px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s ease;
}
.vh-web-ai-toast--in {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}
.vh-web-ai-toast--out {
  opacity: 0;
  transform: translateX(12px) scale(0.98);
  filter: blur(1px);
}
.vh-web-ai-toast-shine {
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(168, 85, 247, 0.12) 48%,
    rgba(56, 189, 248, 0.18) 52%,
    transparent 60%
  );
  animation: vhWebShine 3.2s ease-in-out infinite;
}
@keyframes vhWebShine {
  0%,
  100% {
    transform: translateX(-8%) rotate(0deg);
  }
  50% {
    transform: translateX(8%) rotate(0deg);
  }
}
.vh-web-ai-toast-body {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px 16px 16px;
  z-index: 1;
}
.vh-web-ai-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.2));
  color: #a5b4fc;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  animation: vhWebIcoPulse 2s ease-in-out infinite;
}
@keyframes vhWebIcoPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.45);
  }
}
.vh-web-ai-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.vh-web-ai-title {
  display: block;
  font-family: var(--font-sora);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #e0e7ff 0%, #c4b5fd 45%, #67e8f9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vhWebTitleShimmer 2.5s linear infinite;
}
@keyframes vhWebTitleShimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.vh-web-ai-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.vh-web-ai-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 4px;
}
.vh-web-ai-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  opacity: 0.35;
  animation: vhWebDot 1.1s ease-in-out infinite;
}
.vh-web-ai-dots span:nth-child(2) {
  animation-delay: 0.18s;
  background: #a78bfa;
}
.vh-web-ai-dots span:nth-child(3) {
  animation-delay: 0.36s;
  background: #34d399;
}

@keyframes vhWebDot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* ===== SVG CHART HELPERS ===== */
.vh-chart-container { position: relative; }
.vh-chart-container svg { display: block; }

/* ===== ANIMATIONS ===== */
@keyframes vh-pageEnter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes vh-pageExit {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(.98); }
}
@keyframes vh-barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes vh-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes vh-dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.9); }
}
@keyframes vh-slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes vh-scaleIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes vh-ringDraw {
  from { stroke-dashoffset: 176; }
}
@keyframes vh-celebrate-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.1); }
}

/* ===== VISIIO IA ===== */
.vh-page--ia .vh-ia-title-accent { color: var(--accent-dark); font-weight: 800; }
.vh-ia-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.vh-ia-filters { flex-shrink: 0; }
.vh-ia-kpis { margin-bottom: 16px; }
.vh-ia-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono), monospace;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.vh-ia-legend span { display: inline-flex; align-items: center; gap: 8px; }
.vh-ia-legend-sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.vh-ia-l-me { background: var(--accent); }
.vh-ia-l-mkt { background: var(--blue); }
.vh-ia-legend-line { width: 14px; height: 3px; border-radius: 1px; display: inline-block; }
.vh-ia-l-up { background: var(--pink); }
.vh-ia-l-down { background: var(--blue); }

.vh-ia-list { display: flex; flex-direction: column; gap: 12px; }
.vh-ia-empty { padding: 28px 20px; text-align: center; color: var(--text-muted); font-size: 14px; }
.vh-ia-row {
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .2s ease, transform .2s;
  animation: vh-pageEnter .45s ease both;
}
.vh-ia-row:hover { transform: translateY(-1px); }
@keyframes vhIaRowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vh-ia-row--open {
  border-color: rgba(79,70,229,.28);
  box-shadow: var(--shadow-card);
}
.vh-ia-row-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
  cursor: pointer;
  user-select: none;
}
.vh-ia-status-badge {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  padding: 8px 6px;
  border-radius: var(--radius-md);
  transition: transform .2s;
}
.vh-ia-row:hover .vh-ia-status-badge { transform: scale(1.05); }
.vh-ia-status-pct { font-size: 15px; font-weight: 800; line-height: 1.15; }
.vh-ia-status-lbl {
  font-family: var(--font-mono), monospace;
  font-size: 8px; font-weight: 700;
  letter-spacing: .06em;
  margin-top: 2px;
}
.vh-ia-head-main { flex: 1; min-width: 0; }
.vh-ia-head-line1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.vh-ia-code { font-weight: 600; }
.vh-ia-tipo { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.vh-ia-cat-v { color: var(--accent-dark) !important; }
.vh-ia-cat-l { color: var(--blue) !important; }
.vh-ia-head-sub { font-size: 12px; color: var(--text-muted); }
.vh-ia-head-bar { width: 260px; flex-shrink: 0; }
.vh-ia-price-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; gap: 8px; }
.vh-ia-price-me { font-size: 15px; font-weight: 800; color: var(--accent-dark); }
.vh-ia-price-vs { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.vh-ia-bar-track { position: relative; height: 8px; border-radius: 4px; background: rgba(0,0,0,.06); }
.vh-ia-bar-range { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: rgba(91,124,250,.22); pointer-events: none; }
.vh-ia-bar-dot {
  position: absolute;
  top: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
  pointer-events: none;
  animation: vh-dotSlideIn .6s cubic-bezier(.22,1,.36,1) backwards;
}
@keyframes vh-dotSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}
.vh-ia-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono), monospace;
  font-size: 9px;
  color: var(--text-muted);
  opacity: .85;
}
.vh-ia-conc-count {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-kpi-neutral);
  border: 1px solid var(--border);
  font-family: var(--font-mono), monospace;
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.vh-ia-chevron {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  margin-left: 4px;
}
.vh-ia-row--open .vh-ia-chevron { transform: rotate(180deg); }
.vh-ia-row-detail {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 18px;
  animation: vh-pageEnter .4s cubic-bezier(.22,1,.36,1) both;
}
.vh-ia-detail-split {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 24px;
  align-items: start;
}
.vh-ia-detail-label {
  font-family: var(--font-mono), monospace;
  font-size: 9px; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.vh-ia-comp-list { display: flex; flex-direction: column; gap: 6px; }
.vh-ia-comp-item, .vh-ia-me-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: transform .15s, box-shadow .15s;
}
.vh-ia-comp-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.vh-ia-me-row {
  margin-top: 8px;
  background: var(--accent-bg);
  border-color: rgba(79,70,229,.25);
}
.vh-ia-comp-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.vh-ia-comp-mid { flex: 1; min-width: 0; }
.vh-ia-comp-name { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.vh-ia-me-name { font-size: 12px; font-weight: 700; color: var(--accent-dark); }
.vh-ia-comp-code { font-family: var(--font-mono), monospace; font-size: 10px; color: var(--text-muted); }
.vh-ia-comp-right { text-align: right; }
.vh-ia-comp-price { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.vh-ia-comp-pct { font-family: var(--font-mono), monospace; font-size: 10px; font-weight: 600; }
.vh-ia-chart-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 16px 10px;
  box-shadow: var(--shadow-sm);
}
.vh-ia-mini-svg { display: block; width: 100%; height: auto; max-height: 300px; }
.vh-ia-chart-legend-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  padding-left: 40px;
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.vh-ia-chart-legend-mini span { display: inline-flex; align-items: center; gap: 6px; }
.vh-ia-leg-line { width: 18px; height: 3px; border-radius: 1px; display: inline-block; }
.vh-ia-leg-me { background: var(--accent); }
.vh-ia-leg-mkt { width: 20px; height: 0; border-top: 2px dashed var(--blue); opacity: .88; }

/* ?? Photo thumbnail ?? */
.vh-ia-photo-wrap {
  flex-shrink: 0;
  width: 78px; height: 78px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-bg), var(--bg-page));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vh-ia-photo-wrap--empty { font-size: 28px; color: var(--accent-light); }
.vh-ia-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.vh-ia-row:hover .vh-ia-photo { transform: scale(1.08); }

/* ?? Portal comparison columns ?? */
.vh-ia-portals {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
}
.vh-ia-portal-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  gap: 4px;
  text-align: center;
  transition: box-shadow .15s, border-color .15s;
}
.vh-ia-portal-col:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.vh-ia-portal-mine {
  background: var(--accent-bg);
  border-color: rgba(79,70,229,.22);
}
.vh-ia-portal-mine:hover { border-color: rgba(79,70,229,.45); }
.vh-ia-portal-label {
  font-family: var(--font-mono), monospace;
  font-size: 8px; font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.vh-ia-portal-val {
  font-size: 13px; font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.vh-ia-portal-mine .vh-ia-portal-val { color: var(--accent-dark); }
.vh-ia-portal-pill {
  font-family: var(--font-mono), monospace;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  letter-spacing: .02em;
  white-space: nowrap;
  display: inline-block;
}
.vh-ia-pill--green {
  background: rgba(16,185,129,.13);
  color: #059669;
}
.vh-ia-pill--red {
  background: rgba(239,68,68,.11);
  color: #dc2626;
}
.vh-ia-pill--neutral {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ?? Competitor avatar ?? */
.vh-ia-comp-avatar {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: -.3px;
}
.vh-ia-comp-avatar--me {
  background: var(--accent-bg);
  border-color: rgba(79,70,229,.3);
  color: var(--accent-dark);
}

/* ?? Price change timeline ?? */
.vh-ia-timeline {
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}
.vh-ia-timeline-label {
  font-family: var(--font-mono), monospace;
  font-size: 9px; font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 9px 14px 7px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
}
.vh-ia-tl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  background: var(--bg-card);
  transition: background .12s;
}
.vh-ia-tl-item:last-child { border-bottom: none; }
.vh-ia-tl-item:hover { background: var(--bg-page); }
.vh-ia-tl-date {
  font-family: var(--font-mono), monospace;
  font-size: 10px;
  color: var(--text-muted);
  min-width: 48px;
  flex-shrink: 0;
}
.vh-ia-tl-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vh-ia-tl-dot--change { background: var(--pink); box-shadow: 0 0 0 2px rgba(236,72,153,.18); }
.vh-ia-tl-dot--same { background: var(--border); }
.vh-ia-tl-text { flex: 1; color: var(--text-secondary); line-height: 1.4; }
.vh-ia-tl-text strong { color: var(--text-primary); font-weight: 700; }
.vh-ia-tl-arrow { font-weight: 700; font-size: 13px; color: var(--pink); }
.vh-ia-tl-arrow--down { color: #059669; }

/* ?? Responsive ?? */
@media (max-width: 900px) {
  .vh-ia-portals { flex-wrap: wrap; }
  .vh-ia-portal-col { min-width: 76px; }
}
@media (max-width: 640px) {
  .vh-ia-photo-wrap { width: 52px; height: 52px; }
  .vh-ia-portals { display: none; }
}

/* ===== DEMANDAS ===== */
.vh-dem-page .vh-alert.vh-dem-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--blue-bg);
  border: 1px solid rgba(91,124,250,.25);
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}
.vh-dem-cad-card { margin-bottom: 24px; }
.vh-dem-cad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vh-dem-cad-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .2s;
}
.vh-dem-cad-toggle:hover { background: var(--bg-kpi-neutral); border-color: var(--border-hover); transform: rotate(180deg); }
.vh-dem-cad-body { padding-top: 16px; animation: vh-pageEnter .3s ease-out; }
.vh-dem-cad-body.is-collapsed { display: none; }

/* Form sections */
.vh-dem-form-section {
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.6);
}
.vh-dem-form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vh-dem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}
.vh-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vh-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.vh-field-span2 { grid-column: span 2; }
.vh-dem-hint { font-size: 11px; color: var(--text-muted); }
.vh-dem-multiselect { min-height: 120px; font-size: 12px; }
.vh-dem-textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.vh-dem-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}
.vh-dem-check-col { display: flex; flex-direction: column; gap: 8px; }
.vh-dem-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: background .15s;
}
.vh-dem-check:hover { background: var(--bg-kpi-neutral); }
.vh-dem-check input { margin-top: 2px; accent-color: var(--accent-dark); }
.vh-dem-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.vh-dem-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.vh-dem-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.vh-dem-card-intel-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.vh-dem-card--analyzing {
  border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 10px 34px rgba(245, 158, 11, .15);
  animation: vh-demPulseAmber 1.8s ease-in-out infinite;
}
.vh-dem-card-analyzing-badge,
.vh-dem-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
.vh-dem-card-analyzing-badge {
  border: 1px solid rgba(245, 158, 11, .4);
  color: #d97706;
  background: rgba(251, 191, 36, .18);
}
.vh-dem-card-analyzing-badge::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(217, 119, 6, .25);
  border-top-color: #d97706;
  animation: vh-spin .9s linear infinite;
}
.vh-dem-match-badge {
  border: 1px solid rgba(16, 185, 129, .35);
  color: #059669;
  background: rgba(16, 185, 129, .14);
}
.vh-dem-card-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; line-height: 1.45; }
.vh-dem-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.vh-dem-detail-grid {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.vh-dem-detail-grid p { margin-bottom: 10px; }
.vh-dem-obs { white-space: pre-wrap; color: var(--text-secondary); }
.vh-dem-page .vh-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.vh-dem-run-matching { flex-shrink: 0; }

@keyframes vh-demPulseAmber {
  0%, 100% { opacity: 1; }
  50% { opacity: .78; }
}

.vh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vh-overlayIn .2s ease-out;
}
.vh-dem-dmod-overlay {
  background: rgba(2, 8, 20, .82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 1300;
}
.vh-matching-modal-overlay {
  background: rgba(2, 8, 20, .86);
  z-index: 1400;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vh-dem-dmod-overlay { background: rgba(2, 8, 20, .9); }
}
.vh-matching-modal {
  width: min(460px, 96vw);
  padding: 26px 24px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, .12), rgba(15, 23, 42, .96));
  border: 1px solid rgba(56, 189, 248, .28);
  box-shadow: 0 24px 64px rgba(2, 8, 20, .65);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vh-matching-modal-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  margin: 0 auto 14px;
  border: 2px solid rgba(56, 189, 248, .35);
  border-top-color: #38bdf8;
  animation: vh-spin .9s linear infinite;
}
.vh-matching-modal-title {
  color: #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .01em;
}
.vh-matching-modal-sub {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  min-height: 20px;
}
.vh-matching-modal-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, .22), transparent);
  animation: vhMatchingScan 2.2s linear infinite;
  pointer-events: none;
}
@keyframes vhMatchingScan {
  0% { transform: translateY(-140%); }
  100% { transform: translateY(340%); }
}
.vh-modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  padding: 22px 24px;
  animation: vh-scaleIn .3s cubic-bezier(.22,1,.36,1);
}
.vh-modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.vh-modal-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.vh-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.vh-users-matrix-modal { max-width: 460px; }
.vh-users-matrix-modal-lg { max-width: 720px; }
.vh-users-field-label {
  display: block;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}
.vh-users-field {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-primary);
  background: #fff;
}
.vh-users-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.vh-users-modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
  max-height: 48vh;
  overflow: auto;
  padding-right: 4px;
}
.vh-users-module-row {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-kpi-neutral);
}
.vh-users-module-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
@media (max-width: 760px) {
  .vh-users-matrix-modal-lg { max-width: 96vw; }
  .vh-users-module-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ????? DEMANDAS ? FAB ????????????????????????????????????????? */
.vh-dem-fab {
  position: fixed;
  bottom: 36px;
  right: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 16px;
  height: 54px;
  border-radius: 27px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  color: #fff;
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(79,70,229,.5), 0 2px 8px rgba(0,0,0,.12);
  z-index: 900;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, padding .22s;
  white-space: nowrap;
}
.vh-dem-fab:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 44px rgba(79,70,229,.65), 0 4px 12px rgba(0,0,0,.14);
}
.vh-dem-fab:active { transform: scale(.97); }
.vh-dem-fab-label { letter-spacing: .01em; }
.vh-dem-fab svg { flex-shrink: 0; transition: transform .22s cubic-bezier(.22,1,.36,1); }
.vh-dem-fab:hover svg { transform: rotate(90deg); }
.vh-dem-fab-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.vh-dem-fab:hover .vh-dem-fab-ripple { opacity: 1; }

/* ????? DEMANDAS ? WIZARD OVERLAY ?????????????????????????????? */
.vh-wiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,30,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: vh-overlayIn .25s ease-out;
}
.vh-wiz-overlay.is-hidden { display: none; }
@keyframes vh-overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ????? WIZARD CONTAINER ??????????????????????????????????????? */
.vh-wiz {
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(10,15,30,.25), 0 2px 16px rgba(10,15,30,.08);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vh-wizIn .35s cubic-bezier(.22,1,.36,1);
  position: relative;
}
@keyframes vh-wizIn {
  from { opacity: 0; transform: scale(.9) translateY(32px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ????? WIZARD HEADER ?????????????????????????????????????????? */
.vh-wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.04) 0%, rgba(139,92,246,.04) 100%);
}
.vh-wiz-head-left { display: flex; flex-direction: column; gap: 2px; }
.vh-wiz-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
}
.vh-wiz-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.vh-wiz-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all .15s;
  flex-shrink: 0;
}
.vh-wiz-close:hover { background: var(--bg-kpi-neutral); color: var(--text-primary); border-color: var(--border-hover); transform: rotate(90deg); }

/* ????? WIZARD PROGRESS ???????????????????????????????????????? */
.vh-wiz-progress {
  padding: 16px 24px 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}
.vh-wiz-prog-track {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}
.vh-wiz-prog-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--purple) 100%);
  transition: width .4s cubic-bezier(.22,1,.36,1);
}
.vh-wiz-prog-steps {
  display: flex;
  justify-content: space-between;
}
.vh-wiz-prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.vh-wiz-prog-step span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: all .3s;
}
.vh-wiz-prog-step small {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  transition: color .3s;
}
.vh-wiz-prog-step.active span {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(79,70,229,.18);
}
.vh-wiz-prog-step.active small { color: var(--accent); font-weight: 700; }
.vh-wiz-prog-step.done span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.vh-wiz-prog-step.done small { color: var(--teal); }

/* ????? WIZARD BODY ???????????????????????????????????????????? */
.vh-wiz-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-height: 0;
}
.vh-wiz-body::-webkit-scrollbar { width: 6px; }
.vh-wiz-body::-webkit-scrollbar-track { background: transparent; }
.vh-wiz-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ????? WIZARD STEPS ??????????????????????????????????????????? */
.vh-wiz-step { display: none; }
.vh-wiz-step.is-active {
  display: block;
  animation: vh-stepForward .28s cubic-bezier(.22,1,.36,1);
}
.vh-wiz-step.slide-back.is-active {
  animation: vh-stepBack .28s cubic-bezier(.22,1,.36,1);
}
@keyframes vh-stepForward {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes vh-stepBack {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ????? WIZARD FORM ELEMENTS ??????????????????????????????????? */
.vh-wiz-field { margin-bottom: 16px; }
.vh-wiz-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.vh-wiz-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sora);
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none;
}
.vh-wiz-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.14);
  background: var(--bg-card);
}
.vh-wiz-input.has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.vh-wiz-textarea { min-height: 140px; resize: vertical; }
.vh-wiz-multiselect { min-height: 110px; padding: 6px 8px; }
.vh-wiz-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 0;
}
.vh-wiz-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

/* ????? CAT SELECTION CARDS ???????????????????????????????????? */
.vh-wiz-cat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vh-wiz-cat-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-page);
  transition: all .18s cubic-bezier(.22,1,.36,1);
  user-select: none;
}
.vh-wiz-cat-opt:hover {
  border-color: var(--border-hover);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,70,229,.12);
}
.vh-wiz-cat-opt.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px rgba(79,70,229,.14), 0 4px 16px rgba(79,70,229,.12);
}
.vh-wiz-cat-opt input { display: none; }
.vh-wiz-cat-icon { font-size: 28px; line-height: 1; margin-bottom: 2px; }
.vh-wiz-cat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: color .15s;
}
.vh-wiz-cat-sub { font-size: 11px; color: var(--text-muted); }
.vh-wiz-cat-opt.selected .vh-wiz-cat-label { color: var(--accent-dark); }
.vh-wiz-cat-opt.selected .vh-wiz-cat-sub { color: var(--accent); }

/* ????? CHARACTERISTIC PILLS ??????????????????????????????????? */
.vh-char-search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.vh-char-search-wrap .vh-wiz-input {
  flex: 1;
}
.vh-char-add-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-bg);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.vh-char-add-btn:hover { background: var(--accent); color: #fff; }
.vh-char-add-btn.is-hidden { display: none; }
.vh-wiz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.vh-wiz-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--bg-page);
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.vh-wiz-pill:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-kpi-neutral); }
.vh-wiz-pill.is-checked {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-dark);
}
.vh-wiz-pill.is-new { border-style: dashed; }
.vh-wiz-pill.is-checked.is-new { border-style: dashed; }
.is-hidden { display: none !important; }

/* ????? WIZARD FOOTER ?????????????????????????????????????????? */
.vh-wiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-card);
}
.vh-wiz-footer-step {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.vh-wiz-btn-ghost {
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sora);
  cursor: pointer;
  transition: all .15s;
}
.vh-wiz-btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-kpi-neutral); }
.vh-wiz-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-sora);
  cursor: pointer;
  transition: all .2s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 4px 16px rgba(79,70,229,.4);
  letter-spacing: .01em;
}
.vh-wiz-btn-next:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.55); }
.vh-wiz-btn-next:active { transform: scale(.97); }

/* ????? SUCCESS SCREEN ????????????????????????????????????????? */
.vh-wiz-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px 32px;
  position: relative;
}
.vh-wiz-success.is-active { display: flex; }
.vh-wiz-success-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}
.vh-confetti-particle {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: center;
  animation: vh-confettiBurst .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes vh-confettiBurst {
  from { opacity: 1; transform: rotate(var(--angle)) translateY(0) scale(1); }
  to   { opacity: 0; transform: rotate(var(--angle)) translateY(var(--dist)) scale(.4); }
}
.vh-wiz-success-ring {
  position: absolute;
  top: 40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(79,70,229,.25);
  animation: vh-ringPulse 2s ease 0.6s infinite;
}
@keyframes vh-ringPulse {
  0%   { transform: scale(.85); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.vh-wiz-success-check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  animation: vh-checkPop .55s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 8px 32px rgba(20,184,166,.4), 0 2px 8px rgba(0,0,0,.1);
}
@keyframes vh-checkPop {
  0%  { opacity: 0; transform: scale(0) rotate(-30deg); }
  65% { transform: scale(1.18) rotate(6deg); }
  100%{ opacity: 1; transform: scale(1) rotate(0); }
}
.vh-check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: vh-checkDraw .5s ease .45s forwards;
}
@keyframes vh-checkDraw {
  to { stroke-dashoffset: 0; }
}
.vh-wiz-success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  animation: vh-succFadeUp .4s ease .5s both;
}
.vh-wiz-success-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 320px;
  line-height: 1.55;
  animation: vh-succFadeUp .4s ease .6s both;
}
@keyframes vh-succFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vh-wiz-success-card {
  width: 100%;
  max-width: 340px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 28px;
  animation: vh-succFadeUp .4s ease .7s both;
}
.vh-wiz-suc-row {
  display: flex;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.vh-wiz-suc-row:last-child { border-bottom: none; }
.vh-wiz-suc-key { font-weight: 600; color: var(--text-muted); min-width: 72px; }
.vh-wiz-suc-val { color: var(--text-primary); font-weight: 500; }
.vh-wiz-success-actions {
  display: flex;
  gap: 12px;
  animation: vh-succFadeUp .4s ease .8s both;
}

/* ===== DEMANDAS v2 ? TABS, LAYOUT, CLIENT PANEL, MULTI-SELECT, DETAIL MODAL ===== */

/* ?? Demand tabs ?????????????????????????????????????????????????????????????? */
.vh-dem-tabs-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-kpi-neutral);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  width: fit-content;
}
.vh-dem-tab-btn {
  padding: 7px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sora);
  transition: all .18s;
  background: transparent;
  color: var(--text-muted);
  white-space: nowrap;
}
.vh-dem-tab-btn:hover { color: var(--text-primary); }
.vh-dem-tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(15,23,42,.10);
}
.vh-dem-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  transition: background .18s, color .18s;
}
.vh-dem-tab-btn.active .vh-dem-tab-count {
  background: var(--accent);
  color: #fff;
}

/* ?? Two-column demand layout ????????????????????????????????????????????????? */
.vh-dem-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 0;
  min-height: calc(100vh - 220px);
  overflow: hidden;
}
.vh-dem-main-wrap {
  overflow-y: auto;
  padding: 0 24px 24px 24px;
  min-height: 0;
}

/* ?? Client panel ????????????????????????????????????????????????????????????? */
.vh-dem-cp {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  border: 1px solid var(--border);
  border-right: none;
}
.vh-dem-cp-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vh-dem-cp-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.vh-dem-cp-search {
  width: 100%;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 12px;
  font-family: var(--font-sora);
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.vh-dem-cp-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.vh-dem-cp-list {
  flex: 1;
  overflow-y: auto;
}
.vh-dem-cp-list::-webkit-scrollbar { width: 4px; }
.vh-dem-cp-list::-webkit-scrollbar-track { background: transparent; }
.vh-dem-cp-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.vh-dem-cp-item {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(226,232,240,.5);
  cursor: pointer;
  transition: background .12s;
  border-left: 3px solid transparent;
}
.vh-dem-cp-item:hover { background: var(--bg-kpi-neutral); }
.vh-dem-cp-item.is-active {
  background: var(--accent-bg);
  border-left-color: var(--accent);
}
.vh-dem-cp-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vh-dem-cp-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.vh-dem-cp-empty {
  padding: 24px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ?? Client info bar (when a client is selected) ??????????????????????????? */
.vh-dem-client-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--accent-bg);
  border: 1px solid rgba(79,70,229,.18);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  animation: vh-pageEnter .2s ease-out;
}
.vh-dem-client-bar-info {}
.vh-dem-client-bar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 2px;
}
.vh-dem-client-bar-meta {
  font-size: 12px;
  color: var(--accent);
}
.vh-dem-client-bar-clear {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1.5px solid rgba(79,70,229,.3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sora);
  cursor: pointer;
  transition: all .15s;
}
.vh-dem-client-bar-clear:hover { background: rgba(79,70,229,.08); }

/* ?? Detail modal (large) ????????????????????????????????????????????????????? */
.vh-dem-dmod {
  width: min(1120px, 98vw);
  max-width: min(1120px, 98vw);
  max-height: 92vh;
  min-height: min(640px, 84vh);
  overflow-y: auto;
  padding: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 28px 70px rgba(2, 8, 20, .36);
  border: 1px solid rgba(148,163,184,.35);
}
.vh-dem-dmod::-webkit-scrollbar { width: 6px; }
.vh-dem-dmod::-webkit-scrollbar-track { background: transparent; }
.vh-dem-dmod::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.vh-dem-dmod-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79,70,229,.08) 0%, rgba(139,92,246,.08) 100%);
  position: sticky;
  top: 0;
  background-color: var(--bg-card);
  z-index: 1;
}
.vh-dem-dmod-title {
  font-size: 23px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.vh-dem-dmod-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.vh-dem-dmod-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .15s;
  flex-shrink: 0;
}
.vh-dem-dmod-close:hover { background: var(--bg-kpi-neutral); color: var(--text-primary); border-color: var(--border-hover); transform: rotate(90deg); }
.vh-dem-dmod-tabs {
  display: flex;
  gap: 16px;
  padding: 10px 28px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.88);
}
.vh-dem-dmod-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 6px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.vh-dem-dmod-tab:hover { color: var(--text-primary); }
.vh-dem-dmod-tab.is-active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.vh-dem-dmod-search-wrap {
  padding: 10px 28px 0;
  background: rgba(255,255,255,.88);
}
.vh-dem-dmod-search {
  width: 100%;
  height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  padding: 0 12px;
  transition: border-color .15s, box-shadow .15s;
}
.vh-dem-dmod-search:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.vh-dem-dmod-body {
  padding: 24px 28px;
  background: linear-gradient(180deg, rgba(248,250,252,.95), rgba(241,245,249,.9));
}
.vh-dem-dmod-section {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,.5);
}
.vh-dem-dmod-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.vh-dem-dmod-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(203,213,225,.7);
  font-size: 14px;
}
.vh-dem-dmod-row:last-child { border-bottom: none; }
.vh-dem-dmod-row > span {
  min-width: 170px;
  color: var(--text-muted);
  font-weight: 600;
}
.vh-dem-dmod-row > strong {
  color: var(--text-primary);
  font-weight: 700;
}
.vh-dem-dmod-key {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 140px;
  flex-shrink: 0;
}
.vh-dem-dmod-val { color: var(--text-primary); }
.vh-dem-dmod-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.vh-dem-dmod-flag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--teal-bg);
  color: var(--teal);
  border: 1px solid rgba(20,184,166,.2);
}
.vh-dem-dmod-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  background: rgba(255,255,255,.92);
}
.vh-dem-dmod-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vh-dem-dmod-list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
}
.vh-dem-dmod-list-photo-wrap {
  width: 108px;
  flex-shrink: 0;
}
.vh-dem-dmod-list-item__photo {
  width: 108px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(148, 163, 184, .12);
}
.vh-dem-dmod-list-item__photo--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--text-muted);
  background: var(--bg-kpi-neutral);
}
.vh-dem-dmod-list-item__photo--placeholder svg { opacity: .45; }
.vh-dem-dmod-list-item__photo--placeholder span { font-size: 9px; font-weight: 600; letter-spacing: .06em; opacity: .6; }
.vh-dem-dmod-list-content {
  min-width: 0;
  flex: 1;
}
.vh-dem-dmod-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.vh-dem-dmod-list-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vh-dem-dmod-list-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 1px solid rgba(79,70,229,.35);
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 999px;
}
.vh-dem-dmod-score-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid rgba(16,185,129,.35);
  color: #059669;
  background: rgba(16,185,129,.12);
  padding: 2px 8px;
  border-radius: 999px;
}
.vh-dem-dmod-list-code-wrap { min-width: 0; }
.vh-dem-dmod-list-code {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
}
.vh-dem-dmod-list-code:hover { text-decoration: underline; }
.vh-dem-dmod-list-foto-debug {
  margin-top: 4px;
  font-size: 9px;
  color: var(--orange);
  font-weight: 700;
  text-align: center;
  cursor: default;
  letter-spacing: .02em;
}
.vh-dem-dmod-list-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .15s;
}
.vh-dem-dmod-list-link:hover { color: var(--accent-dark); text-decoration: underline; }
.vh-dem-dmod-list-valor {
  font-weight: 700;
  color: var(--text-primary);
}
.vh-dem-dmod-list-title {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}
.vh-dem-dmod-list-meta {
  margin-top: 6px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12px;
}

/* ?? Searchable multi-select ?????????????????????????????????????????????????? */
.vh-msel { position: relative; }
.vh-msel-box {
  min-height: 44px;
  padding: 6px 40px 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-page);
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
  transition: border-color .15s, box-shadow .15s, background .15s;
  position: relative;
}
.vh-msel-box.is-open, .vh-msel-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
  background: var(--bg-card);
}
.vh-msel-box.has-error { border-color: #ef4444; }
.vh-msel-caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
  font-size: 10px;
  transition: transform .2s;
}
.vh-msel-box.is-open .vh-msel-caret { transform: translateY(-50%) rotate(180deg); }
.vh-msel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  background: var(--accent-bg);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-dark);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
}
.vh-msel-tag-text { overflow: hidden; text-overflow: ellipsis; }
.vh-msel-tag-rm {
  cursor: pointer;
  opacity: .5;
  font-size: 11px;
  flex-shrink: 0;
  transition: opacity .15s;
  line-height: 1;
}
.vh-msel-tag-rm:hover { opacity: 1; }
.vh-msel-placeholder {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 2px;
  align-self: center;
}
.vh-msel-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  display: none;
  overflow: hidden;
}
.vh-msel-drop.is-open { display: block; animation: vh-pageEnter .15s ease-out; }
.vh-msel-drop-search {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-family: var(--font-sora);
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
}
.vh-msel-drop-list { max-height: 190px; overflow-y: auto; }
.vh-msel-drop-list::-webkit-scrollbar { width: 4px; }
.vh-msel-drop-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.vh-msel-opt {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .1s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.vh-msel-opt:hover { background: var(--bg-kpi-neutral); color: var(--text-primary); }
.vh-msel-opt.is-sel { color: var(--accent-dark); font-weight: 600; background: rgba(79,70,229,.04); }
.vh-msel-opt.is-sel::after { content: '?'; color: var(--accent); font-size: 12px; flex-shrink: 0; }
.vh-msel-opt.add-new { color: var(--teal); font-weight: 600; font-style: italic; }
.vh-msel-opt.add-new::before { content: '+'; margin-right: 4px; font-style: normal; }
.vh-msel-empty { padding: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* ?? Wizard success summary card (expanded) ??????????????????????????????????? */
.vh-wiz-success-card-lg {
  width: 100%;
  max-width: 420px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  text-align: left;
  margin-bottom: 28px;
  overflow: hidden;
  animation: vh-succFadeUp .4s ease .7s both;
}
.vh-wiz-suc-section {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.vh-wiz-suc-section:last-child { border-bottom: none; }
.vh-wiz-suc-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.vh-wiz-suc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}
.vh-wiz-suc-row { display: flex; gap: 8px; padding: 3px 0; font-size: 12px; }
.vh-wiz-suc-row:last-child { border-bottom: none; }
.vh-wiz-suc-key { font-weight: 600; color: var(--text-muted); min-width: 80px; flex-shrink: 0; }
.vh-wiz-suc-val { color: var(--text-primary); font-weight: 500; word-break: break-word; }

/* ?? Wizard step 5 styles ????????????????????????????????????????????????????? */
.vh-wiz-resume-block {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.vh-wiz-resume-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.vh-wiz-resume-row {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(226,232,240,.6);
  font-size: 12px;
}
.vh-wiz-resume-row:last-child { border-bottom: none; }
.vh-wiz-resume-key { font-weight: 600; color: var(--text-muted); min-width: 120px; flex-shrink: 0; }
.vh-wiz-resume-val { color: var(--text-primary); }

/* --- Resume block sections --- */
.vh-wiz-resume-sect {
  padding: 10px 0;
  border-bottom: 1px solid rgba(226,232,240,.6);
}
.vh-wiz-resume-sect:last-child { border-bottom: none; }
.vh-wiz-resume-sect-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.vh-wiz-resume-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.vh-wiz-resume-obs { font-size: 13px; color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; }

/* --- Client panel header --- */
.vh-dem-cp-hd {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

/* --- Detail modal grid & obs --- */
.vh-dem-dmod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vh-dem-dmod-sect {
  border: 1px solid rgba(203,213,225,.9);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  padding: 14px 16px;
}
.vh-dem-dmod-sect.vh-dem-dmod-obs {
  grid-column: 1 / -1;
}
.vh-dem-dmod-obs p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; }
.vh-dem-cp-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.vh-dem-cp-item-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.vh-dem-dmod-sect-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 860px) {
  .vh-dem-dmod {
    width: 98vw;
    min-height: auto;
    max-height: 94vh;
  }
  .vh-dem-dmod-grid {
    grid-template-columns: 1fr;
  }
  .vh-dem-dmod-row {
    flex-direction: column;
    gap: 4px;
  }
  .vh-dem-dmod-row > span {
    min-width: 0;
  }
}
/* ===== ATIVIDADES ===== */

/* Stats bar */
.vh-at-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.vh-at-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  min-width: 72px;
}
.vh-at-stat-n {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.vh-at-stat-l {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
}
.vh-at-stat--reg .vh-at-stat-n { color: var(--text-secondary); }
.vh-at-stat--ok  .vh-at-stat-n { color: var(--teal); }
.vh-at-stat--cur .vh-at-stat-n { color: var(--orange); }
.vh-at-stat--rej .vh-at-stat-n { color: var(--pink); }

/* Tabs */
.vh-at-tabs-row { margin-bottom: 20px; }
.vh-at-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vh-at-tab {
  font-family: var(--font-sora);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
}
.vh-at-tab:hover { border-color: var(--border-hover); color: var(--text-primary); transform: translateY(-1px); }
.vh-at-tab.active { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dark); }
.vh-at-tab-n {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--orange-bg);
  color: var(--orange);
}
.vh-at-tab.active .vh-at-tab-n { background: rgba(79,70,229,.15); color: var(--accent); }

/* Feed ? full-width timeline */
.vh-at-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  padding-left: 24px;
  padding-bottom: 96px;
}
.vh-at-feed::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  border-radius: 1px;
  opacity: .35;
}

/* Cards */
.vh-at-card { padding: 18px 20px; position: relative; }
.vh-at-card::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: transform .2s, border-color .2s;
}
.vh-at-card:hover::before { transform: scale(1.25); border-color: var(--accent-light); }
.vh-at-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.vh-at-card-meta { flex: 1; min-width: 0; }
.vh-at-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.vh-at-user { font-weight: 700; font-size: 14px; color: var(--text-primary); line-height: 1.2; }
.vh-at-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.vh-at-text { font-size: 14px; line-height: 1.55; color: var(--text-secondary); margin-top: 2px; }

/* Badges */
.vh-at-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
}
.vh-at-badge--cur { background: var(--orange-bg); color: var(--orange); }
.vh-at-badge--ok  { background: var(--teal-bg);   color: var(--teal); }
.vh-at-badge--no  { background: var(--pink-bg);    color: var(--pink); }
.vh-at-badge--reg { background: var(--bg-kpi-neutral); color: var(--text-muted); }
.vh-at-badge--novo { background: var(--purple-bg); color: var(--purple); text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: 6px; }

/* Media */
.vh-at-media { margin-top: 12px; }
.vh-at-img { max-width: 100%; max-height: 240px; border-radius: var(--radius-sm); object-fit: cover; }
.vh-at-audio { width: 100%; max-width: 400px; }
.vh-at-video { width: 100%; max-height: 220px; border-radius: var(--radius-sm); background: #000; }
.vh-at-media-ph {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-kpi-neutral);
  font-size: 12px; color: var(--text-muted);
}
.vh-at-linked { margin-top: 12px; font-size: 13px; color: var(--text-secondary); }

/* Curadoria actions */
.vh-at-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.vh-at-actions-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 10px; }
.vh-at-actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vh-at-actions-row .vh-at-prop-sel { flex: 1; min-width: 200px; }
.vh-at-actions-row2 { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* Empty state */
.vh-at-empty { color: var(--text-muted); font-size: 14px; padding: 48px 24px; text-align: center; }
.vh-at-empty-icon { font-size: 36px; margin-bottom: 12px; }

/* FAB */
.vh-at-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,70,229,.45);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
  z-index: 120;
}
.vh-at-fab:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(79,70,229,.55); }
.vh-at-fab:active { transform: scale(.96); }

/* Overlay */
.vh-at-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: vh-fade-in .18s ease;
}
@keyframes vh-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Modal */
.vh-at-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  animation: vh-modal-in .22s cubic-bezier(.34,1.2,.64,1);
}
@keyframes vh-modal-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.vh-at-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}
.vh-at-modal-title-row { display: flex; align-items: center; gap: 10px; }
.vh-at-modal-icon { font-size: 20px; line-height: 1; }
.vh-at-modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 0; }
.vh-at-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.vh-at-modal-close:hover { background: var(--bg-kpi-neutral); color: var(--text-primary); }

/* Wizard steps */
.vh-at-wiz-steps {
  display: flex;
  align-items: center;
  padding: 20px 22px 0;
  gap: 0;
}
.vh-at-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vh-at-wiz-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all .2s;
}
.vh-at-wiz-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s;
}
.vh-at-wiz-step.active .vh-at-wiz-dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.vh-at-wiz-step.active .vh-at-wiz-label { color: var(--accent-dark); }
.vh-at-wiz-step.done .vh-at-wiz-dot { border-color: var(--teal); background: var(--teal); color: #fff; }
.vh-at-wiz-step.done .vh-at-wiz-label { color: var(--teal); }
.vh-at-wiz-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 6px;
  margin-bottom: 16px;
  border-radius: 1px;
  transition: background .2s;
}
.vh-at-wiz-line.done { background: var(--teal); }

/* Wizard body & footer */
.vh-at-wiz-body { padding: 22px 22px 0; flex: 1; }
.vh-at-wiz-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px 22px;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
}

/* Step 3 summary */
.vh-at-step3-summary {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  overflow: hidden;
  margin-bottom: 4px;
}
.vh-at-step3-row {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.vh-at-step3-row:last-child { border-bottom: none; }
.vh-at-step3-row span { font-weight: 600; color: var(--text-muted); min-width: 72px; flex-shrink: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding-top: 1px; }
.vh-at-step3-row em { color: var(--text-secondary); font-style: normal; line-height: 1.4; }

/* Shared form helpers (used in wizard) */
.vh-at-file-wrap--hide { display: none !important; }
.vh-at-doubt {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary);
  margin-top: 12px; cursor: pointer; line-height: 1.4;
}
.vh-at-doubt input { margin-top: 3px; }
.vh-at-doubt-hint { font-weight: 400; color: var(--text-muted); font-size: 11px; }
.vh-at-hidden { display: none !important; }
.vh-at-rel-intro { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin: 0 0 10px; }
.vh-at-rel-inner--off { opacity: .42; pointer-events: none; filter: grayscale(.25); }
.vh-at-rel-panel { margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(0,0,0,.02); }
.vh-at-rel-mode { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.vh-at-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.vh-at-radio input { margin: 0; }
.vh-at-novo-note { font-size: 11px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.45; }

/* ===== STATUS ? lista imobili?rias (estilo painel runs) ===== */
.vh-page--imob-status {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.vh-imob-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 20px 24px;
  align-items: start;
  width: 100%;
}
.vh-imob-maincol {
  min-width: 0;
}
.vh-imob-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vh-imob-aside-card {
  background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
/* card de alertas usa o mesmo visual do card de totais (.vh-imob-aside-card) */
.vh-imob-aside-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 10px;
}
.vh-imob-aside-date {
  margin: 0 0 12px;
  font-size: 13px;
  color: #cbd5e1;
}
.vh-imob-aside-stats {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vh-imob-aside-stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 13px;
  color: #94a3b8;
}
.vh-imob-aside-stats li:last-child {
  border-bottom: none;
}
.vh-imob-aside-stats strong {
  font-size: 15px;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}
.vh-imob-st-ok { color: #4ade80 !important; }
.vh-imob-st-bad { color: #fb7185 !important; }
.vh-imob-aside-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  vertical-align: middle;
}
.vh-imob-aside-alert-lines li {
  align-items: flex-start;
  justify-content: flex-start;
}
.vh-imob-aside-alert-lines li span {
  flex: 1;
  min-width: 0;
  color: #cbd5e1;
  line-height: 1.45;
  font-weight: 500;
}
.vh-imob-row-sub {
  font-size: 12px;
  color: #94a3b8;
  margin: -4px 0 8px;
  line-height: 1.4;
}
.vh-imob-mock-hint {
  color: #a78bfa;
  font-weight: 600;
}
.vh-imob-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.vh-imob-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}
.vh-imob-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.vh-imob-back { flex-shrink: 0; }
.vh-imob-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.12), rgba(15, 118, 110, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.35);
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 14px;
}
.vh-imob-alert-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.vh-imob-alert-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.vh-imob-panel {
  background: linear-gradient(180deg, #0f172a 0%, #0c1222 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.vh-imob-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.vh-imob-panel-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
}
.vh-imob-panel-badge {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}
.vh-imob-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 11px;
  color: #94a3b8;
}
.vh-imob-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vh-imob-sq {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}
.vh-imob-sq--ok { background: #22c55e; }
.vh-imob-sq--partial { background: #f97316; }
.vh-imob-sq--fail { background: #f43f5e; }
.vh-imob-sq--none { background: #475569; }
.vh-imob-sq--pending { background: #38bdf8; }
.vh-imob-grid-head {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.2fr) minmax(170px, 190px) minmax(170px, 1fr) minmax(220px, 1fr);
  gap: 10px 16px;
  align-items: center;
  padding: 0 12px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.vh-imob-grid-head span {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
}
.vh-imob-row {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.2fr) minmax(170px, 190px) minmax(170px, 1fr) minmax(220px, 1fr);
  gap: 10px 16px;
  align-items: center;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}
.vh-imob-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 197, 94, 0.25);
}
.vh-imob-row-iconcol {
  display: flex;
  justify-content: center;
  align-items: center;
}
.vh-imob-row-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.vh-imob-row-ico--ok {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.45);
}
.vh-imob-row-ico--bad {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.vh-imob-row-ico--none {
  background: rgba(71, 85, 105, 0.25);
  color: #94a3b8;
  border: 1px solid rgba(71, 85, 105, 0.4);
}
.vh-imob-row-ico--pending {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}
.vh-imob-row-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.vh-imob-row-main {
  min-width: 0;
}
.vh-imob-row-track {
  display: flex;
  justify-content: flex-start;
}
.vh-imob-row-status {
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
.vh-imob-row-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.vh-imob-timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 18px));
  gap: 5px;
  align-items: center;
  justify-content: start;
  margin-top: 2px;
}
.vh-imob-seg {
  width: 18px;
  height: 6px;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.vh-imob-seg:hover {
  transform: scaleY(1.2);
}
.vh-imob-seg--ok { background: #22c55e; }
.vh-imob-seg--partial { background: #f97316; }
.vh-imob-seg--fail { background: #f43f5e; }
.vh-imob-seg--none { background: #475569; }
.vh-imob-seg--pending { background: #38bdf8; }
.vh-imob-row-meta {
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
}
.vh-imob-row-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.vh-imob-row-state--ok {
  color: #4ade80;
  font-weight: 600;
}
.vh-imob-row-state--bad {
  color: #fb7185;
  font-weight: 600;
}
.vh-imob-row-state--none {
  color: #94a3b8;
  font-weight: 600;
}
.vh-imob-row-state--pending {
  color: #38bdf8;
  font-weight: 600;
}
.vh-imob-empty {
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
  padding: 28px 16px;
}
@media (max-width: 1100px) {
  .vh-imob-layout {
    grid-template-columns: 1fr;
  }
  .vh-imob-grid-head,
  .vh-imob-row {
    grid-template-columns: 44px minmax(180px, 1fr) minmax(150px, 170px) minmax(150px, 1fr) minmax(180px, 1fr);
  }
  .vh-imob-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .vh-imob-aside-card {
    flex: 1 1 240px;
  }
}
@media (max-width: 800px) {
  .vh-imob-grid-head {
    display: none;
  }
  .vh-imob-row {
    grid-template-columns: 40px 1fr;
  }
  .vh-imob-row-track,
  .vh-imob-row-status,
  .vh-imob-row-actions {
    grid-column: 1 / -1;
    padding-left: 40px;
  }
  .vh-imob-row-track {
    padding-top: 2px;
    padding-bottom: 4px;
  }
  .vh-imob-row-status {
    text-align: left;
  }
  .vh-imob-row-actions {
    justify-content: flex-start;
    padding-top: 6px;
  }
  .vh-imob-row-tools {
    justify-content: flex-start;
  }
}

/* ===== HUNTER V2 ? TOOLBAR ===== */
.vh-hc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.vh-hc-search {
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}
.vh-hc-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.vh-hc-toggle-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sora);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.vh-hc-toggle-filters:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* ===== HUNTER V2 ? LAYOUT ===== */
.vh-hunter-layout2 { display: flex; gap: 18px; align-items: flex-start; }
.vh-hunter-main2 { flex: 1; min-width: 0; }

/* ===== HUNTER V2 ? SIDEBAR ===== */
.vh-filters2 {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
  transition: width .2s;
}
.vh-filters2.hidden { display: none; }
.vh-f2-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vh-f2-title { font-size: 13px; font-weight: 700; color: var(--text-primary); flex: 1; }
.vh-f2-clear {
  font-size: 11px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-sora);
  transition: color .15s, background .15s;
}
.vh-f2-clear:hover { color: var(--accent); background: var(--accent-bg); }
.vh-f2-sec { margin-bottom: 16px; }
.vh-f2-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}
.vh-f2-types, .vh-f2-dorms { display: flex; flex-wrap: wrap; gap: 5px; }
.vh-chip2 {
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sora);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.vh-chip2:hover { border-color: var(--accent); color: var(--accent); }
.vh-chip2.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-dark); font-weight: 600; }
.vh-f2-price { display: flex; align-items: center; gap: 6px; }
.vh-f2-price .vh-search { font-size: 12px; padding: 6px 8px; flex: 1; min-width: 0; }
.vh-f2-price-sep { color: var(--text-muted); font-size: 11px; }
.vh-f2-sort {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sora);
  font-size: 12px;
  cursor: pointer;
  transition: border-color .15s;
}
.vh-f2-sort:hover, .vh-f2-sort:focus { border-color: var(--accent); outline: none; }
.vh-filter-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.vh-atag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 500;
}
.vh-atag-rm {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
  padding: 0;
  font-weight: 700;
}
.vh-atag-rm:hover { color: #e53e3e; }

/* ===== NEIGHBORHOOD MULTI-SELECT ===== */
.vh-nbhms { position: relative; }
.vh-nbhms-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-secondary);
  font-family: var(--font-sora);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s;
}
.vh-nbhms-trigger:hover, .vh-nbhms-trigger:focus { border-color: var(--accent); outline: none; }
.vh-nbhms-lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vh-nbhms-cnt {
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.vh-nbhms-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}
.vh-nbhms-search {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-page);
  font-family: var(--font-sora);
  font-size: 12px;
  color: var(--text-primary);
  box-sizing: border-box;
}
.vh-nbhms-search:focus { outline: none; }
.vh-nbhms-list {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}
.vh-nbhms-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: background .12s;
}
.vh-nbhms-item:hover { background: var(--bg-kpi-neutral); }
.vh-nbhms-item.ck { background: var(--accent-bg); color: var(--accent-dark); font-weight: 500; }
.vh-nbhms-item input { cursor: pointer; accent-color: var(--accent); }
.vh-nbhms-clr {
  width: 100%;
  padding: 7px 12px;
  border: none;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--accent);
  font-family: var(--font-sora);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.vh-nbhms-clr:hover { background: var(--accent-bg); }

/* ===== HUNTER V2 ? PROPERTY CARDS ===== */
.vh-prop-grid2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.vh-empty-grid {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 20px;
  font-size: 14px;
}
.vh-pc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .18s;
  display: flex;
  flex-direction: column;
}
.vh-pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.vh-pc-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vh-pc-thumb.venda { background: linear-gradient(135deg,#eef2ff,#ddd6fe); color: var(--accent); }
.vh-pc-thumb.loc { background: linear-gradient(135deg,#eff6ff,#bfdbfe); color: var(--blue); }
.vh-pc-thumb.no-img { /* shows gradient when img fails */ }
.vh-pc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.vh-pc:hover .vh-pc-img { transform: scale(1.04); }
.vh-pc-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  z-index: 2;
  backdrop-filter: blur(4px);
}
.vh-pc-badge.venda { background: rgba(99,102,241,.15); color: var(--accent-dark); border: 1px solid rgba(99,102,241,.3); }
.vh-pc-badge.loc { background: rgba(59,130,246,.15); color: var(--blue); border: 1px solid rgba(59,130,246,.3); }
.vh-pc-body { padding: 11px 12px 10px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.vh-pc-toprow { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.vh-pc-type { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.vh-pc-code {
  font-family: var(--font-mono);
  font-size: 9px;
  background: var(--bg-kpi-neutral);
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.vh-pc-loc {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}
.vh-pc-agency {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}
.vh-pc-stats {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2px 0;
}
.vh-pc-s { font-size: 11px; color: var(--text-secondary); }
.vh-pc-s b { color: var(--text-primary); font-weight: 700; }
.vh-pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: 2px; }
.vh-pc-price { font-size: 15px; font-weight: 800; line-height: 1.2; }
.vh-pc-price.venda { color: var(--accent-dark); }
.vh-pc-price.loc { color: var(--blue); }
.vh-pc-m2 { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.vh-pc-acts { display: flex; gap: 5px; align-items: center; }
.vh-pc-btn-out {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: all .15s;
}
.vh-pc-btn-out:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }
.vh-pc-btn-detail {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sora);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.vh-pc-btn-detail:hover { opacity: .88; transform: scale(1.03); }
.vh-pc-date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== HUNTER DETAIL PAGE ===== */
.vh-detail-page { max-width: 100%; }
.vh-detail-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.vh-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vh-detail-type { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.vh-detail-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-kpi-neutral);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
}
.vh-detail-date { font-size: 12px; color: var(--text-muted); }
.vh-detail-hero {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99,102,241,.04) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  padding: 16px 18px 20px;
  margin-left: -4px;
  margin-right: -4px;
}
.vh-detail-h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 0;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* ===== IMAGE CAROUSEL (4 por vez) ===== */
.vh-carousel--four {
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-page) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(15,23,42,.06);
}
.vh-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.vh-carousel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.vh-car-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-kpi-neutral);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
}
.vh-car-main--four {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.vh-car-four-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.vh-car-cell {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-page);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  transition: transform .2s, box-shadow .2s;
}
.vh-car-cell:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.1); }
.vh-car-cell--empty {
  background: repeating-linear-gradient(-45deg, var(--bg-kpi-neutral), var(--bg-kpi-neutral) 6px, var(--bg-page) 6px, var(--bg-page) 12px);
  opacity: .6;
}
.vh-car-cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vh-car-cell-num {
  position: absolute;
  bottom: 6px;
  right: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: rgba(15,23,42,.65);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
}
.vh-car-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15,23,42,.08);
  transition: background .15s, border-color .15s, transform .15s, opacity .15s;
}
.vh-car-btn:hover:not(.is-disabled) {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: scale(1.06);
}
.vh-car-btn.is-disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== DETAIL INFO GRID ===== */
.vh-detail-cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 16px;
  margin-bottom: 20px;
}
.vh-dinfo-card { padding: 20px; }
.vh-dinfo-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.vh-dinfo-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.vh-dinfo-row:last-child { border-bottom: none; }
.vh-dinfo-lbl { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.vh-dinfo-val { font-size: 12px; font-weight: 600; color: var(--text-primary); text-align: right; }
.vh-dinfo-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.vh-feat-tag {
  padding: 4px 10px;
  background: var(--bg-kpi-neutral);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-secondary);
}
.vh-dright {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vh-dright-card {
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99,102,241,.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 2px 16px rgba(15,23,42,.04);
}
.vh-dright-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0;
  background: none;
  border: none;
}
.vh-dright-price.venda { color: var(--accent-dark); }
.vh-dright-price.loc { color: var(--blue); }
.vh-dp-unit { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.vh-dright-m2 {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.vh-dright-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 0;
  border-left: 3px solid var(--accent);
}
.vh-dright-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vh-dright-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 13px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: opacity .15s, transform .15s;
}
.vh-dright-link:hover { opacity: .92; transform: translateY(-1px); }
.vh-btn-web-beta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sora);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.vh-btn-web-beta svg { flex-shrink: 0; opacity: .75; }
.vh-btn-web-beta:hover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-bg);
  color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(99,102,241,.12);
}
.vh-beta-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 7px;
  border-radius: 99px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(217,119,6,.35);
}
.vh-btn-web-beta.vh-web-search--used,
.vh-btn-web-beta:disabled {
  opacity: .52;
  cursor: not-allowed;
  pointer-events: none;
  border-style: solid;
  border-color: var(--border);
  background: var(--bg-kpi-neutral);
  color: var(--text-muted);
}
.vh-btn-web-beta.vh-web-search--used .vh-beta-pill,
.vh-btn-web-beta:disabled .vh-beta-pill {
  opacity: .75;
}

/* ===== IMPORT LOG ===== */
.vh-log-card { padding: 0; overflow: hidden; }
.vh-log-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.vh-log-title { font-size: 14px; font-weight: 700; color: var(--text-primary); flex: 1; }
.vh-log-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-kpi-neutral);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}
.vh-log-table-wrap { overflow-x: auto; }
.vh-log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.vh-log-table thead th {
  background: var(--bg-page);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.vh-log-row { transition: background .12s; }
.vh-log-row:hover { background: var(--bg-kpi-neutral); }
.vh-log-row + .vh-log-row { border-top: 1px solid var(--border); }
.vh-log-td { padding: 10px 16px; color: var(--text-secondary); vertical-align: middle; }
.vh-log-td-date { font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.vh-log-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.vh-log-badge.novo { background: #dcfce7; color: #166534; }
.vh-log-badge.processado { background: var(--accent-bg); color: var(--accent-dark); }
.vh-log-badge.atualizado { background: #fef3c7; color: #92400e; }
.vh-log-badge.erro { background: #fee2e2; color: #991b1b; }
.vh-log-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
}
.vh-log-link:hover { background: var(--accent-bg); border-color: var(--accent); }

/* ===== RESPONSIVE ? HUNTER V2 ===== */
@media (max-width: 1400px) {
  .vh-prop-grid2 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .vh-prop-grid2 { grid-template-columns: repeat(3, 1fr); }
  .vh-detail-cols { grid-template-columns: 1fr; }
  .vh-dright { display: flex; flex-direction: column; }
}
@media (max-width: 900px) {
  .vh-filters2 { position: static; max-height: none; width: 100%; }
  .vh-hunter-layout2 { flex-direction: column; }
  .vh-prop-grid2 { grid-template-columns: repeat(2, 1fr); }
  .vh-car-four-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .vh-prop-grid2 { grid-template-columns: 1fr; }
  .vh-carousel--four { padding: 14px; }
  .vh-car-main--four { flex-wrap: wrap; gap: 8px; }
  .vh-car-btn { width: 38px; height: 38px; font-size: 18px; }
  .vh-detail-hero { padding: 12px 14px 16px; margin-left: 0; margin-right: 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .vh-prop-grid { grid-template-columns: repeat(2, 1fr); }
  .vh-client-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .vh-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .vh-comp-row.open .vh-comp-body { grid-template-columns: 1fr; }
  .vh-ia-detail-split { grid-template-columns: 1fr; }
  .vh-ia-head-bar { width: 100%; min-width: 0; }
  .vh-ia-row-head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .vh-at-fab { bottom: 18px; right: 18px; width: 46px; height: 46px; }
  .vh-at-modal { max-height: 100vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .vh-at-overlay { align-items: flex-end; padding: 0; }
}
@media (max-width: 960px) {
  .vh-detail-2col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vh-row-2 { grid-template-columns: 1fr; }
  .vh-crawl-row { grid-template-columns: 1fr; }
  .vh-card-imports--side .vh-import-chart-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: var(--radius-md);
  }
}
@media (max-width: 700px) {
  .vh-prop-grid { grid-template-columns: 1fr; }
  .vh-client-grid { grid-template-columns: 1fr; }
  .vh-filters-panel { width: 100%; position: static; max-height: none; }
  .vh-hunter-layout { flex-direction: column; }
  .vh-page { padding: 20px 16px 32px; }
  .vh-dem-grid { grid-template-columns: 1fr; }
  .vh-field-span2 { grid-column: span 1; }
  .vh-dem-check-grid { grid-template-columns: 1fr; }
  .vh-ia-header-row { flex-direction: column; align-items: stretch; }
  .vh-ia-filters { justify-content: flex-start; }
  .vh-import-chart {
    height: 240px;
    min-height: 220px;
  }
}
@media (max-width: 560px) {
  .vh-kpi-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   AUTH / LOGIN SCREEN
   ===================================================================== */
.vh-auth-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  background: #0f172a;
  overflow: hidden;
}

/* ?? Painel da marca (esquerda) ???????????????????????????????????????? */
.vh-auth-brand {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 52px;
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}

.vh-auth-brand::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.2) 0%, transparent 70%);
  pointer-events: none;
}

.vh-auth-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,.1) 0%, transparent 70%);
  pointer-events: none;
}

.vh-auth-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.vh-auth-brand-img-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.vh-auth-brand-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.vh-auth-brand-lupa {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  box-shadow: 0 2px 8px rgba(79,70,229,.5);
}

.vh-auth-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -.02em;
}

.vh-auth-brand-tagline {
  font-size: 26px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.vh-auth-brand-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.7;
  max-width: 310px;
  position: relative;
  z-index: 1;
}

.vh-auth-brand-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.vh-auth-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vh-auth-stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #a5b4fc;
  font-family: var(--font-mono);
  letter-spacing: -.01em;
}

.vh-auth-stat-lbl {
  font-size: 11px;
  color: #475569;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ?? Painel do formul?rio (direita) ???????????????????????????????????? */
.vh-auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: 48px 40px;
}

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

.vh-auth-card-header {
  margin-bottom: 32px;
}

.vh-auth-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
  margin-bottom: 6px;
}

.vh-auth-card-sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ?? Campos ???????????????????????????????????????????????????????????? */
.vh-auth-field {
  margin-bottom: 20px;
}

.vh-auth-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.vh-auth-password-wrap {
  position: relative;
}

.vh-auth-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: var(--font-sora);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.vh-auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.vh-auth-input::placeholder {
  color: var(--text-muted);
}

.vh-auth-password-wrap .vh-auth-input {
  padding-right: 44px;
}

.vh-auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: color .15s;
}

.vh-auth-eye:hover { color: var(--text-primary); }

/* ?? Bot?o de login ???????????????????????????????????????????????????? */
.vh-auth-btn {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
}

.vh-auth-btn:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(79,70,229,.45);
}

.vh-auth-btn:active:not(:disabled) { transform: scale(.98); }
.vh-auth-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ?? Erro ?????????????????????????????????????????????????????????????? */
.vh-auth-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  font-size: 13px;
  color: #e11d48;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ?? Spinner de loading ???????????????????????????????????????????????? */
.vh-auth-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vh-auth-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes vh-auth-spin {
  to { transform: rotate(360deg); }
}

/* ?? Rodap? ???????????????????????????????????????????????????????????? */
.vh-auth-footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ?? Sidebar: footer com usu?rio e logout ?????????????????????????????? */
.vh-sidebar-foot {
  flex-shrink: 0;
  padding: 10px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vh-sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.vh-sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.vh-sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.vh-sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vh-sidebar-user-role {
  font-size: 10px;
  color: #475569;
  text-transform: capitalize;
  font-family: var(--font-mono);
}

.vh-sidebar-logout-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-xs);
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.vh-sidebar-logout-btn:hover {
  background: rgba(239,68,68,.12);
  color: #f87171;
}

.vh-sidebar.collapsed .vh-sidebar-user-info {
  display: none;
}

.vh-sidebar.collapsed .vh-sidebar-foot {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
}
.vh-sidebar.collapsed .vh-sidebar-user {
  flex: 0 0 auto;
  min-width: auto;
  justify-content: center;
}

.vh-sidebar.collapsed .vh-sidebar-user-avatar {
  margin: 0;
}

/* ?? Responsivo (login) ???????????????????????????????????????????????? */
@media (max-width: 700px) {
  .vh-auth-brand { display: none; }
  .vh-auth-form-side {
    background: #0f172a;
    padding: 32px 24px;
  }
  .vh-auth-card-title { color: #f1f5f9; }
  .vh-auth-card-sub   { color: #64748b; }
  .vh-auth-label      { color: #94a3b8; }
  .vh-auth-input {
    background: #1e293b;
    border-color: rgba(255,255,255,.1);
    color: #f1f5f9;
  }
  .vh-auth-input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(129,140,248,.15);
  }
  .vh-auth-input::placeholder { color: #475569; }
  .vh-auth-footer { color: #334155; }
}

/* ???????????????????????????????????????????????????????
   PLACEHOLDER ? im?veis sem foto (listagem + detalhe)
   ??????????????????????????????????????????????????????? */
.vh-pc-no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: var(--text-muted, #94a3b8);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
  opacity: .7;
}
.vh-pc-no-img svg { opacity: .5; }

.vh-detail-no-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 200px;
  color: var(--text-muted, #94a3b8);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .65;
}
.vh-car-cell--placeholder {
  grid-column: 1 / -1;
  background: var(--bg-card, #f8fafc);
  border-radius: 10px;
  border: 1.5px dashed var(--border, #e2e8f0);
}

/* ???????????????????????????????????????????????????????
   PAGINA??O ? navega??o entre p?ginas
   ??????????????????????????????????????????????????????? */
.vh-pagination-wrap { padding: 20px 0 8px; }
.vh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.vh-pg-btn {
  padding: 7px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  color: var(--text-primary, #0f172a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.vh-pg-btn:hover:not([disabled]) {
  background: var(--accent, #4f46e5);
  border-color: var(--accent, #4f46e5);
  color: #fff;
}
.vh-pg-btn[disabled] {
  opacity: .35;
  cursor: not-allowed;
}
.vh-pg-info {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  min-width: 120px;
  text-align: center;
}

/* ???????????????????????????????????????????????????????
   LOADING ? spinner na grade de im?veis
   ??????????????????????????????????????????????????????? */
.vh-loading-grid {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--text-muted, #64748b);
  font-size: 14px;
}
.vh-spin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--border, #e2e8f0);
  border-top-color: var(--accent, #4f46e5);
  border-radius: 50%;
  animation: vh-spin .7s linear infinite;
}
@keyframes vh-spin { to { transform: rotate(360deg); } }

/* ???????????????????????????????????????????????????????
   SELECT de imobili?ria na sidebar
   ??????????????????????????????????????????????????????? */
.vh-f2-agency {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  color: var(--text-primary, #0f172a);
  font-size: 13px;
  cursor: pointer;
}
.vh-f2-agency:focus {
  outline: none;
  border-color: var(--accent, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ===== VISIIO IA ===== */
.vh-comparativo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 20px;
}
.vh-comparativo-empty-icon {
  width: 64px;
  height: 64px;
  opacity: .35;
}
.vh-comparativo-empty-title {
  margin: 0;
}
.vh-comparativo-empty-sub {
  margin: 0;
  max-width: 360px;
  color: var(--text-muted);
}
.vh-comparativo-empty-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.vh-soon-wrap {
  position: static;
  min-height: 60vh;
  isolation: isolate;
}
.vh-soon-under {
  filter: blur(7px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.vh-soon-veil {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-w);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 210;
}
.vh-sidebar.collapsed ~ .vh-shell .vh-soon-veil {
  left: var(--sidebar-w-collapsed);
}
.vh-soon-card {
  width: min(480px, 100%);
  padding: 28px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, .35);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-lg);
  text-align: center;
  color: var(--text-primary);
}
.vh-soon-icon {
  width: 64px;
  height: 64px;
  opacity: .42;
  margin: 0 auto 12px;
}
.vh-soon-title {
  margin: 0 0 8px;
}
.vh-soon-sub {
  margin: 0 auto;
  max-width: 360px;
  color: var(--text-muted);
}
.vh-soon-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vh-soon-veil {
    background: rgba(15, 23, 42, .72);
  }
}
.vh-ia-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vh-btn-filter {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.vh-btn-filter.active {
  border-color: var(--accent-light);
  background: rgba(79, 70, 229, .12);
  color: var(--accent);
}
.vh-ia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.vh-ia-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.vh-ia-thumb-wrap {
  background: #f8fafc;
  height: 160px;
  overflow: hidden;
}
.vh-ia-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vh-ia-body {
  padding: 12px;
}
.vh-ia-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.vh-ia-code {
  color: var(--text-primary);
}
.vh-ia-cat {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: var(--text-muted);
}
.vh-ia-meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.vh-ia-pricing {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vh-ia-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.vh-ia-diff {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
}
.vh-ia-diff-down {
  color: #047857;
}
.vh-ia-diff-up {
  color: #b45309;
}

/* ===== NORMALIZER RUNNER MODAL ===== */
.vh-norm-runner-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(99, 102, 241, .45);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, .2), 0 12px 30px rgba(15, 23, 42, .35);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vh-norm-runner-btn svg {
  width: 15px;
  height: 15px;
  color: #67e8f9;
}
.vh-norm-runner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, .45), 0 16px 34px rgba(15, 23, 42, .45);
}
.vh-norm-runner-btn-glow {
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(6,182,212,.3), rgba(139,92,246,.3), rgba(99,102,241,.3));
  filter: blur(16px);
  opacity: .6;
}
.vh-norm-runner-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(6px);
}
.vh-norm-runner-overlay.is-open {
  display: flex;
}
.vh-norm-runner-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, .42);
  background: radial-gradient(circle at top right, rgba(30,41,59,.92), rgba(2,6,23,.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(103,232,249,.14);
  color: #cbd5e1;
}
.vh-norm-runner-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.vh-norm-runner-title {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
}
.vh-norm-runner-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}
.vh-norm-runner-close {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .6);
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.vh-norm-runner-body {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding: 16px 18px 12px;
}
.vh-norm-runner-card {
  border: 1px solid rgba(99, 102, 241, .26);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(170deg, rgba(15,23,42,.9), rgba(30,41,59,.65));
}
.vh-norm-runner-card h4 {
  margin: 0 0 6px;
  color: #e2e8f0;
  font-size: 14px;
}
.vh-norm-runner-card p {
  margin: 0 0 10px;
  color: #94a3b8;
  font-size: 12px;
}
.vh-norm-runner-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vh-norm-runner-dry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.vh-norm-runner-dry input {
  accent-color: #67e8f9;
}
.vh-norm-runner-run-btn,
.vh-norm-runner-run-all {
  border: 1px solid rgba(103, 232, 249, .45);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(6,182,212,.24), rgba(99,102,241,.22));
  color: #cffafe;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.vh-norm-runner-run-btn[disabled],
.vh-norm-runner-run-all[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.vh-norm-runner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 10px;
}
.vh-norm-runner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.vh-norm-runner-badge.ok {
  background: rgba(20, 184, 166, .16);
  color: #99f6e4;
}
.vh-norm-runner-badge.err {
  background: rgba(236, 72, 153, .16);
  color: #f9a8d4;
}
.vh-norm-runner-terminal-wrap {
  padding: 0 18px 18px;
}
.vh-norm-runner-terminal-title {
  margin: 0 0 8px;
  color: #94a3b8;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vh-norm-runner-terminal {
  position: relative;
  min-height: 180px;
  max-height: 250px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, .26);
  background: #020617;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a3e635;
  padding: 10px;
}
.vh-norm-runner-terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(16, 185, 129, .04), transparent 20%, transparent 80%, rgba(99, 102, 241, .08));
}
.vh-norm-runner-line {
  margin: 0 0 4px;
  white-space: pre-wrap;
  word-break: break-word;
}
.vh-norm-runner-progress {
  height: 4px;
  border-radius: 999px;
  margin-top: 8px;
  background: rgba(30, 41, 59, .9);
  overflow: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}
.vh-norm-runner-progress.is-on {
  opacity: 1;
}
.vh-norm-runner-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, rgba(103,232,249,.1), rgba(103,232,249,.8), rgba(139,92,246,.15));
  animation: norm-scan 1.2s infinite linear;
}
@keyframes norm-scan {
  from { transform: translateX(-120%); }
  to { transform: translateX(250%); }
}
@keyframes norm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(103,232,249,.2); }
  50% { box-shadow: 0 0 0 10px rgba(103,232,249,0); }
}

/* -- Zona de Perigo (Configura??es) ------------------------------------------ */
.vh-config-danger-zone .vh-config-section-header h3 {
  color: #dc2626;
}
.vh-config-danger-card {
  border: 1px solid rgba(220, 38, 38, .35);
  background: rgba(220, 38, 38, .04);
  border-radius: 10px;
  padding: 20px 24px;
}
.vh-config-danger-desc {
  color: var(--text-secondary, #6b7280);
  font-size: .875rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.vh-config-danger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.vh-config-danger-tag {
  font-size: .72rem;
  font-family: monospace;
  background: rgba(220, 38, 38, .1);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, .25);
  border-radius: 4px;
  padding: 2px 7px;
}
.vh-btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.vh-btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .2);
}
.vh-btn-danger:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ?? Painel de Fornecedores (Status/Crawlers) ????????????????????????????????? */
.vh-forn-panel {
  margin-top: 16px;
}
.vh-forn-panel-sub {
  font-size: .78rem;
  color: var(--text-muted, #9ca3af);
  margin: 2px 0 0;
}
.vh-forn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.07));
  transition: background .12s;
}
.vh-forn-row:last-child {
  border-bottom: none;
}
.vh-forn-row:hover {
  background: rgba(255,255,255,.03);
}
.vh-forn-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vh-forn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vh-forn-dot--ok  { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.2); }
.vh-forn-dot--off { background: #6b7280; }
.vh-forn-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vh-forn-row-nome {
  font-size: .875rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vh-forn-row-meta {
  font-size: .72rem;
  color: var(--text-muted, #9ca3af);
}
.vh-forn-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.vh-forn-cron {
  font-size: .7rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  color: var(--text-muted, #9ca3af);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 4px;
  padding: 2px 7px;
  cursor: default;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vh-forn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.vh-forn-link--monitor {
  background: rgba(99,102,241,.15);
  color: #818cf8;
  border: 1px solid rgba(99,102,241,.3);
}
.vh-forn-link--monitor:hover {
  background: rgba(99,102,241,.28);
  color: #a5b4fc;
}
.vh-forn-link--disabled {
  background: rgba(255,255,255,.04);
  color: var(--text-muted, #6b7280);
  border: 1px solid rgba(255,255,255,.07);
  cursor: default;
  font-style: italic;
  opacity: .6;
}

/* ===== CLIENTES PAGE ===== */
.vh-cli-page { }

/* -- Client card -- */
.vh-cli-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  padding: 18px 20px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.vh-cli-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}
.vh-cli-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.vh-cli-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.vh-cli-avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
  border-radius: 50%;
}
.vh-cli-card-info { flex: 1; min-width: 0; }
.vh-cli-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.vh-cli-status-dot { font-size: 11px; font-weight: 500; }
.vh-cli-contacts { margin-bottom: 10px; }
.vh-cli-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vh-cli-contact svg { flex-shrink: 0; }
.vh-cli-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.vh-cli-dem-badge { font-size: 12px; color: var(--text-secondary); }
.vh-cli-dem-n { font-weight: 700; color: var(--text-primary); }
.vh-cli-dem-active {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #14b8a6;
  font-weight: 600;
  font-size: 11px;
  margin-left: 4px;
}
.vh-cli-matches-badge {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.vh-cli-origin {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 6px;
}

/* -- Empty state -- */
.vh-cli-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* -- Client Profile Overlay -- */
.vh-cli-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vh-fadeIn .2s ease-out;
}
.vh-cli-profile-panel {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vh-scaleIn .22s ease-out;
}
@keyframes vh-scaleIn {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes vh-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* profile header */
.vh-cli-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vh-cli-profile-head-info { flex: 1; min-width: 0; }
.vh-cli-profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.vh-cli-profile-type {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--accent-bg);
  color: var(--accent);
  letter-spacing: .4px;
  text-transform: uppercase;
}
.vh-cli-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.vh-cli-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.vh-cli-close-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: background .15s, color .15s;
}
.vh-cli-close-btn:hover { background: var(--border); color: var(--text-primary); }

/* profile tabs */
.vh-cli-tabs {
  display: flex;
  gap: 0;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vh-cli-tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.vh-cli-tab-btn.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.vh-cli-tab-btn:hover:not(.is-active) { color: var(--text-secondary); }
.vh-cli-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 0 5px;
  margin-left: 6px;
}

/* profile body */
.vh-cli-tab-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
}

/* demand row inside profile */
.vh-cli-dem-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.vh-cli-dem-row:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.vh-cli-dem-row-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.vh-cli-dem-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.vh-cli-cat-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.vh-cli-cat-tag--locacao { background: #eff6ff; color: #3b82f6; }
.vh-cli-cat-tag--venda   { background: #fffbeb; color: #f59e0b; }
.vh-cli-dem-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.vh-cli-dem-meta-item { display: flex; align-items: center; gap: 4px; }
.vh-cli-dem-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.vh-cli-matches-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--teal-bg);
  color: var(--teal);
}
.vh-cli-inactive-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.vh-cli-dem-detail-btn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background: var(--accent-bg);
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  transition: background .15s;
  white-space: nowrap;
}
.vh-cli-dem-detail-btn:hover { background: #dde5ff; }

/* profile info grid (Perfil tab) */
.vh-cli-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.vh-cli-info-field {
  background: var(--bg-kpi-neutral);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.vh-cli-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.vh-cli-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}
.vh-cli-info-value--muted { font-weight: 400; color: var(--text-secondary); font-style: italic; }
.vh-cli-info-full { grid-column: 1 / -1; }

/* Demand sub-modal (z: 1200) */
.vh-cli-sub-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.65);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: vh-fadeIn .18s ease-out;
}
.vh-cli-sub-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: vh-scaleIn .2s ease-out;
}
.vh-cli-sub-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vh-cli-sub-head-info { flex: 1; min-width: 0; }
.vh-cli-sub-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.vh-cli-sub-sub { font-size: 12px; color: var(--text-muted); }
.vh-cli-sub-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.vh-cli-sub-tab {
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.vh-cli-sub-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.vh-cli-sub-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

/* property mini-card inside sub-modal */
.vh-cli-props-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.vh-cli-prop-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.vh-cli-prop-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.vh-cli-prop-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: var(--bg-kpi-neutral);
  display: block;
}
.vh-cli-prop-img-ph {
  width: 100%;
  height: 110px;
  background: var(--bg-kpi-neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.vh-cli-prop-body { padding: 10px 12px; }
.vh-cli-prop-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.vh-cli-prop-location { font-size: 11px; color: var(--text-secondary); margin-bottom: 6px; }
.vh-cli-prop-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.vh-cli-prop-footer { display: flex; align-items: center; justify-content: space-between; }
.vh-cli-score-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.vh-cli-score-badge--high { background: #f0fdfa; color: #14b8a6; }
.vh-cli-score-badge--mid  { background: #fffbeb; color: #f59e0b; }
.vh-cli-score-badge--low  { background: #f1f3f9; color: #64748b; }
.vh-cli-prop-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.vh-cli-prop-link:hover { text-decoration: underline; }

/* section heading inside sub-modal / profile */
.vh-cli-sect-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* inactive section separator */
.vh-cli-inactive-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.vh-cli-inactive-sep::before,
.vh-cli-inactive-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* sub-modal resumo grid */
.vh-cli-resumo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.vh-cli-resumo-field { background: var(--bg-kpi-neutral); border-radius: var(--radius-sm); padding: 10px 12px; }
.vh-cli-resumo-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 3px; }
.vh-cli-resumo-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

@media (max-width: 768px) {
  .vh-cli-profile-panel { max-width: 100%; border-radius: var(--radius-lg); }
  .vh-cli-info-grid { grid-template-columns: 1fr; }
  .vh-cli-props-grid { grid-template-columns: 1fr; }
  .vh-cli-resumo-grid { grid-template-columns: 1fr; }
  .vh-cli-info-full { grid-column: 1; }
}
@media (max-width: 540px) {
  .vh-cli-profile-head { flex-wrap: wrap; }
  .vh-cli-sub-modal { max-width: 100%; }
}
