/* ============================================================================
   Egide CRM — Padrão Visual VITRAL
   Vidro translúcido sobre breu noturno, luz ambiente (aurora), chumbo fino,
   e âmbar dourado como cor mestre de ação.
   ============================================================================ */

:root {
  /* Fundo e Vidro */
  --mf-canvas:        #05060b;
  --mf-surface:       rgba(255, 255, 255, 0.038);
  --mf-surface-2:     rgba(255, 255, 255, 0.065);
  --mf-surface-3:     rgba(255, 255, 255, 0.095);
  --mf-surface-modal: rgba(12, 15, 24, 0.88);
  --mf-line:          rgba(255, 255, 255, 0.09);
  --mf-line-soft:     rgba(255, 255, 255, 0.055);

  /* Tipografia */
  --mf-ink:           #0a0c14;
  --mf-ink-2:         #12151f;
  --mf-text:          #e9edf6;
  --mf-text-2:        #a2adc2;
  --mf-text-3:        #6d7789;

  /* Cor Mestre de AÇÃO (Âmbar Dourado) */
  --mf-accent:        #ffb02e;
  --mf-accent-strong: #ff9412;
  --mf-accent-soft:   rgba(255, 176, 46, 0.14);
  --mf-accent-glow:   rgba(255, 176, 46, 0.35);

  /* Luzes Ambiente */
  --mf-violet:        #8b5cf6;
  --mf-cyan:          #22d3ee;

  /* Estados e Etapas do Kanban */
  --kanban-novo:      #38bdf8;
  --kanban-contato:   #a855f7;
  --kanban-negociacao:#ffb02e;
  --kanban-fechado:   #34d399;
  --kanban-perdidos:  #f87171;

  --mf-ok:            #34e0a1;  --mf-ok-bg:     rgba(52, 224, 161, 0.12);
  --mf-warn:          #ffc247;  --mf-warn-bg:   rgba(255, 194, 71, 0.12);
  --mf-danger:        #ff7a6e;  --mf-danger-bg: rgba(255, 122, 110, 0.12);
  --mf-info:          #7daaff;  --mf-info-bg:   rgba(125, 170, 255, 0.12);

  /* Geometria e Raios */
  --mf-r:             18px;
  --mf-r-md:          14px;
  --mf-r-sm:          10px;

  /* Sombras Profundas */
  --mf-sh-sm:         0 2px 4px rgba(0, 0, 0, 0.5);
  --mf-sh-md:         0 16px 36px -16px rgba(0, 0, 0, 0.88);
  --mf-sh-lg:         0 36px 80px -20px rgba(0, 0, 0, 0.95);
  --mf-sh-accent:     0 12px 28px -10px rgba(255, 176, 46, 0.7);

  /* Curva de Interação */
  --mf-ease:          cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================================
   RESET & FUNDO COM AURORA
   ============================================================================ */

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

html, body {
  background-color: var(--mf-canvas);
  color: var(--mf-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color-scheme: dark;
}

/* Aurora Boreal viva em movimento contínuo na GPU */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 35% at 20% 15%, rgba(139, 92, 246, 0.22), transparent 65%),
    radial-gradient(36% 30% at 82% 14%, rgba(255, 176, 46, 0.18), transparent 66%),
    radial-gradient(44% 38% at 65% 82%, rgba(34, 211, 238, 0.16), transparent 68%),
    radial-gradient(32% 28% at 15% 78%, rgba(255, 122, 110, 0.11), transparent 66%);
  filter: blur(26px);
  will-change: transform;
  animation: mf-aurora 32s ease-in-out infinite alternate;
}

@keyframes mf-aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) scale(1.08) rotate(3deg); }
  100% { transform: translate3d(1%, -3%, 0) scale(1.04) rotate(-3deg); }
}

/* Textura sutil estilo console */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 85%);
}

/* Scrollbar refinada */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ============================================================================
   ESTRUTURA: LAYOUT & SIDEBAR VITRAL
   ============================================================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar de Vidro */
.sidebar {
  width: 250px;
  background: rgba(10, 13, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--mf-line);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  box-shadow: 4px 0 24px -12px rgba(0, 0, 0, 0.7);
}

.sidebar-logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--mf-line-soft);
  position: relative;
}

.sidebar-logo::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 46, 0.4), transparent);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 176, 46, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(255, 176, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 14px -4px rgba(255, 176, 46, 0.4);
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #b8c4d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--mf-r-sm);
  color: var(--mf-text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  transition: all 0.22s var(--mf-ease);
  position: relative;
}

.nav-link svg {
  color: var(--mf-text-3);
  transition: color 0.22s var(--mf-ease), transform 0.22s var(--mf-ease);
}

.nav-link:hover {
  color: var(--mf-text);
  background-color: var(--mf-surface-2);
  transform: translateX(3px);
}

.nav-link:hover svg {
  color: var(--mf-text);
  transform: scale(1.08);
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 176, 46, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 176, 46, 0.32),
    0 8px 24px -10px rgba(255, 176, 46, 0.5);
}

.nav-link.active svg {
  color: var(--mf-accent);
}

.sidebar-footer {
  padding: 16px 14px 20px;
  border-top: 1px solid var(--mf-line-soft);
}

.btn-install-pwa {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--mf-r-sm);
  background: rgba(255, 176, 46, 0.12);
  border: 1px solid rgba(255, 176, 46, 0.35);
  color: var(--mf-accent);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.22s var(--mf-ease);
  margin-bottom: 8px;
}

.btn-install-pwa:hover {
  background: rgba(255, 176, 46, 0.22);
  border-color: var(--mf-accent);
  box-shadow: 0 4px 16px rgba(255, 176, 46, 0.35);
  transform: translateY(-1px);
}

.btn-install-mobile-icon {
  background: rgba(255, 176, 46, 0.15);
  border: 1px solid rgba(255, 176, 46, 0.35);
  color: var(--mf-accent);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-install-mobile-icon:hover {
  background: rgba(255, 176, 46, 0.25);
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--mf-r-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--mf-text-3);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.btn-logout:hover {
  color: var(--mf-danger);
  background: var(--mf-danger-bg);
  border-color: rgba(255, 122, 110, 0.25);
}

/* ============================================================================
   CONTEÚDO PRINCIPAL
   ============================================================================ */

.main-content {
  margin-left: 250px;
  flex: 1;
  padding: 32px 36px;
  min-height: 100vh;
  position: relative;
  overflow-y: auto;
}

/* Topo Mobile */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--mf-line);
  position: sticky;
  top: 0;
  z-index: 80;
}

.mobile-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mf-text);
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--mf-text);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

/* Páginas e Transições em Cascata */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: mf-rise 0.45s var(--mf-ease) both;
}

@keyframes mf-rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13.5px;
  color: var(--mf-text-2);
  margin-top: 5px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================================
   BOTÕES VITRAL
   ============================================================================ */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--mf-r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--mf-ease),
    box-shadow 0.22s var(--mf-ease),
    background-color 0.22s var(--mf-ease),
    filter 0.22s var(--mf-ease);
}

/* O brilho que corre no botão */
.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  bottom: -50%;
  width: 40%;
  left: -70%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s var(--mf-ease);
}

.btn:hover:not(:disabled)::after { left: 130%; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Botão de Ação Primário — Âmbar Dourado */
.btn-primary {
  color: #1a1204;
  background: linear-gradient(180deg, #ffc65e 0%, var(--mf-accent) 50%, var(--mf-accent-strong) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--mf-sh-accent);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 16px 36px -10px rgba(255, 176, 46, 0.95);
}

/* Botão Secundário — Vidro */
.btn-secondary {
  color: var(--mf-text);
  background: var(--mf-surface-2);
  box-shadow:
    inset 0 0 0 1px var(--mf-line),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--mf-surface-3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Botão Danger */
.btn-danger {
  color: var(--mf-danger);
  background: var(--mf-danger-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 110, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 122, 110, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 122, 110, 0.45),
    0 8px 20px -10px rgba(255, 80, 66, 0.8);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn-close {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-line);
  color: var(--mf-text-2);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--mf-ease);
}

.btn-close:hover {
  color: #fff;
  background: var(--mf-surface-3);
  border-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* ============================================================================
   CAMPOS & FORMULÁRIOS
   ============================================================================ */

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

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mf-text-2);
  margin-bottom: 7px;
}

.required-mark {
  color: var(--mf-danger);
  font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--mf-r-sm);
  font-size: 14px;
  color: var(--mf-text);
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 0 0 0 1px var(--mf-line),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  font-family: inherit;
  transition: box-shadow 0.2s var(--mf-ease), background-color 0.2s var(--mf-ease);
}

input:hover, select:hover, textarea:hover {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus, select:focus, textarea:focus {
  background-color: rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 0 0 1px var(--mf-accent),
    0 0 0 3px var(--mf-accent-soft);
}

/* Opções dos menus suspensos (select/option) no Tema Vitral */
select,
select option,
select optgroup {
  color-scheme: dark !important;
}

select option,
select optgroup {
  background-color: #0c0f19 !important;
  color: var(--mf-text, #e9edf6) !important;
  padding: 10px 14px;
  font-size: 13.5px;
}

select option:checked,
select option:hover,
select option:focus {
  background-color: #1a2336 !important;
  color: var(--mf-accent, #ffb02e) !important;
}

.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mf-accent);
  margin: 24px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mf-line-soft);
}

/* Busca */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  padding: 8px 14px;
  border-radius: var(--mf-r-sm);
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--mf-ease);
}

.search-box:focus-within {
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 3px var(--mf-accent-soft);
}

.search-box svg {
  color: var(--mf-text-3);
}

.search-box input {
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 13.5px;
  width: 200px;
}
.search-box input:focus {
  box-shadow: none;
  background: transparent;
}

/* Filtro de Vendedor (Admin Kanban) */
.admin-vendedor-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  padding: 0 12px;
  height: 38px;
  border-radius: var(--mf-r-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s var(--mf-ease);
  cursor: pointer;
}

.admin-vendedor-filter:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--mf-surface-2);
}

.admin-vendedor-filter:focus-within {
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 3px var(--mf-accent-soft);
  background: rgba(12, 15, 24, 0.95);
}

.admin-vendedor-filter svg {
  color: var(--mf-accent);
  flex-shrink: 0;
  transition: transform 0.2s var(--mf-ease);
}

.admin-vendedor-filter:focus-within svg {
  transform: scale(1.08);
}

.admin-vendedor-select {
  background: transparent !important;
  color: var(--mf-text) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  cursor: pointer;
  height: 100%;
  padding: 0 22px 0 2px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a2adc2' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  font-family: inherit;
  width: auto;
}

.admin-vendedor-select:focus {
  background: transparent !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}

/* ============================================================================
   KANBAN BOARD — VIDRO & ENERGIA
   ============================================================================ */

.kanban-board {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 24px;
}

.kanban-column {
  min-width: 290px;
  flex: 1;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--mf-sh-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 190px);
  position: relative;
  overflow: hidden;
}

/* Faixa de luz no topo de cada coluna do Kanban */
.kanban-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--col-color, var(--mf-accent));
  opacity: 0.9;
}

.kanban-column[data-status="novo"]            { --col-color: var(--kanban-novo); }
.kanban-column[data-status="contato_feito"]   { --col-color: var(--kanban-contato); }
.kanban-column[data-status="em_negociacao"]   { --col-color: var(--kanban-negociacao); }
.kanban-column[data-status="negocio_fechado"] { --col-color: var(--kanban-fechado); }
.kanban-column[data-status="perdidos"]        { --col-color: var(--kanban-perdidos); }

.kanban-column-header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mf-line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.column-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
  color: var(--mf-text);
  letter-spacing: -0.01em;
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.column-count {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-line-soft);
  color: var(--mf-text-2);
}

.kanban-column-body {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}

.kanban-column-body.drag-over {
  background: rgba(255, 176, 46, 0.05);
  box-shadow: inset 0 0 0 2px rgba(255, 176, 46, 0.4);
}

.kanban-empty {
  text-align: center;
  color: var(--mf-text-3);
  font-size: 12.5px;
  padding: 32px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

/* Card do Lead (Vidro Lapidado) */
.kanban-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-md);
  padding: 14px 16px;
  cursor: grab;
  box-shadow: var(--mf-sh-sm);
  transition: all 0.22s var(--mf-ease);
  backdrop-filter: blur(8px);
}

.kanban-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 14px 28px -12px rgba(0, 0, 0, 0.85),
    0 0 20px -8px var(--mf-accent-glow);
}

.kanban-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 650;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.35;
  flex: 1;
}

.btn-card-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--mf-r-xs);
  color: var(--mf-text-2);
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
  padding: 0;
  margin-top: -2px;
}

.btn-card-view:hover {
  background: rgba(255, 176, 46, 0.18);
  border-color: rgba(255, 176, 46, 0.5);
  color: var(--mf-accent);
  transform: scale(1.1);
  box-shadow: 0 0 10px -2px rgba(255, 176, 46, 0.5);
}

.btn-card-view svg {
  pointer-events: none;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--mf-text-2);
  margin-bottom: 10px;
}

.card-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-info-item svg {
  color: var(--mf-text-3);
  flex-shrink: 0;
  transition: color 0.18s var(--mf-ease), transform 0.18s var(--mf-ease);
}

/* Links interativos diretos no Card (WhatsApp e Google Maps) */
.card-action-link {
  color: var(--mf-text-2);
  text-decoration: none;
  border-radius: 6px;
  padding: 3px 6px;
  margin-left: -6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s var(--mf-ease);
  position: relative;
  z-index: 2;
}

.card-action-link:hover {
  transform: translateX(2px);
}

.card-action-link.action-whatsapp:hover {
  color: #4ade80 !important;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}
.card-action-link.action-whatsapp:hover svg {
  color: #4ade80;
  transform: scale(1.15);
}

.card-action-link.action-maps:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.card-action-link.action-maps:hover svg {
  color: #38bdf8;
  transform: scale(1.15);
}

/* Grupo de campo com botão de ação rápida nos modais */
.input-action-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-action-group input {
  flex: 1;
}

.btn-field-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--mf-r-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: none;
  outline: none;
  transition: all 0.2s var(--mf-ease);
  text-decoration: none;
}

.btn-field-whatsapp {
  color: #1a1204;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  box-shadow: 0 8px 20px -8px rgba(34, 197, 94, 0.7);
}
.btn-field-whatsapp:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(34, 197, 94, 0.85);
}

.btn-field-maps {
  color: #1a1204;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 8px 20px -8px rgba(56, 189, 248, 0.7);
}
.btn-field-maps:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(56, 189, 248, 0.85);
}

/* ============================================================================
   CONTATOS E WHATSAPPS ADICIONAIS NA FICHA (Múltiplos números por empresa)
   ============================================================================ */
.additional-contacts-section {
  margin: 6px 0 20px 0;
  padding: 16px 18px;
  background: rgba(12, 16, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mf-r-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contacts-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.contacts-header-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}

.contacts-header-title svg {
  color: var(--mf-accent);
}

.contacts-header-hint {
  font-size: 11.5px;
  color: var(--mf-text-3);
  display: block;
  margin-top: 2px;
}

.btn-add-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
  border: 1px solid rgba(255, 176, 46, 0.32);
  border-radius: var(--mf-r-sm);
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.btn-add-contact:hover {
  background: rgba(255, 176, 46, 0.22);
  border-color: var(--mf-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(255, 176, 46, 0.35);
}

.additional-phones-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.additional-phone-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(20, 25, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--mf-r-sm);
  animation: mf-pop 0.25s var(--mf-ease);
}

.additional-phone-row input {
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(9, 12, 20, 0.85);
  border: 1px solid var(--mf-glass-border);
  border-radius: var(--mf-r-xs);
  color: #fff;
  width: 100%;
}

.additional-phone-row input:focus {
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 2px rgba(255, 176, 46, 0.2);
}

.btn-contact-zap {
  padding: 8px 12px;
  font-size: 12px;
  height: 36px;
}

.btn-contact-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 122, 110, 0.1);
  color: var(--mf-danger);
  border: 1px solid rgba(255, 122, 110, 0.25);
  border-radius: var(--mf-r-sm);
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.btn-contact-remove:hover {
  background: rgba(255, 122, 110, 0.25);
  border-color: var(--mf-danger);
  transform: scale(1.05);
}

.empty-contacts-msg {
  font-size: 12px;
  color: var(--mf-text-3);
  font-style: italic;
  padding: 8px 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--mf-r-xs);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  text-align: center;
}

.card-extra-phones-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
  margin-left: 4px;
}


.card-vendedor {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
  border: 1px solid rgba(255, 176, 46, 0.25);
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--mf-line-soft);
}

.card-time {
  font-size: 11px;
  color: var(--mf-text-3);
}

.card-status-dots {
  display: flex;
  gap: 5px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.2s var(--mf-ease);
}

.status-dot:hover {
  opacity: 0.85;
  transform: scale(1.3);
}

.status-dot.active {
  opacity: 1;
  transform: scale(1.25);
  box-shadow: 0 0 10px currentColor;
}

/* ============================================================================
   MODAIS VITRAL (VIDRO FOSCO + CHUMBO)
   ============================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: mf-fade 0.2s ease;
}

@keyframes mf-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--mf-surface-modal);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--mf-sh-lg);
  animation: mf-pop 0.3s var(--mf-ease);
  position: relative;
}

@keyframes mf-pop {
  from { opacity: 0; transform: scale(0.95) translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

.modal-large {
  max-width: 680px;
}

.modal-activity {
  max-width: 560px;
}

.modal-header {
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--mf-line);
  position: sticky;
  top: 0;
  background: rgba(12, 15, 24, 0.95);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.modal-header h2 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.modal-body {
  padding: 26px;
}

.modal-footer {
  padding: 18px 26px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--mf-line-soft);
  margin-top: 20px;
}

/* Lead Detail Header & Badge */
.lead-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 0 12px currentColor;
}

/* Barra de Mudança Rápida de Status */
.status-change-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--mf-line-soft);
  overflow-x: auto;
}

.status-change-label {
  font-size: 12px;
  color: var(--mf-text-3);
  white-space: nowrap;
  font-weight: 600;
}

.status-buttons {
  display: flex;
  gap: 6px;
}

.status-btn {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-line);
  color: var(--mf-text-2);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--mf-ease);
}

.status-btn:hover {
  color: #fff;
  border-color: var(--btn-color);
  background: rgba(255, 255, 255, 0.08);
}

.status-btn.active {
  color: #fff;
  background: var(--btn-color);
  border-color: var(--btn-color);
  box-shadow: 0 0 14px var(--btn-color);
}

/* Abas de Navegação Interna */
.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 26px 0;
  border-bottom: 1px solid var(--mf-line);
}

.tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--mf-text-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

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

.tab.active {
  color: #fff;
  border-bottom-color: var(--mf-accent);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: mf-fade 0.25s ease;
}

/* ============================================================================
   ATIVIDADES & TIMELINE VITRAL
   ============================================================================ */

.activity-top-action {
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: var(--mf-line);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -20px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mf-canvas);
  border: 2px solid var(--mf-accent);
  box-shadow: 0 0 8px var(--mf-accent-glow);
}

.timeline-content {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-md);
  padding: 16px;
  box-shadow: var(--mf-sh-sm);
  transition: border-color 0.2s var(--mf-ease);
}

.timeline-content:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-tipo {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-tipo-visita   { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-tipo-ligacao  { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-tipo-whatsapp { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-tipo-email    { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-tipo-reuniao  { background: rgba(244, 114, 182, 0.15); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.3); }

.badge-modo {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mf-text-2);
  border: 1px solid var(--mf-line-soft);
}

.timeline-time {
  font-size: 11.5px;
  color: var(--mf-text-3);
}

.timeline-resumo {
  font-size: 14px;
  font-weight: 550;
  color: var(--mf-text);
  line-height: 1.45;
  margin-bottom: 6px;
}

.timeline-meta-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--mf-line-soft);
  font-size: 12px;
  color: var(--mf-text-2);
}

.timeline-obs {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  font-size: 13px;
  color: var(--mf-text-2);
  line-height: 1.45;
  white-space: pre-line;
}

.timeline-delete-btn {
  background: none;
  border: none;
  color: var(--mf-text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.timeline-delete-btn:hover {
  color: var(--mf-danger);
}

/* ============================================================================
   TAREFAS VITRAL
   ============================================================================ */

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-sm);
  transition: all 0.2s var(--mf-ease);
}

.task-item:hover {
  background: var(--mf-surface-2);
  border-color: rgba(255, 255, 255, 0.16);
}

.task-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.task-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  border: 2px solid var(--mf-line);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.task-checkbox input[type="checkbox"]:checked {
  background: var(--mf-accent);
  border-color: var(--mf-accent);
  box-shadow: 0 0 10px var(--mf-accent-glow);
}

.task-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #1a1204;
  font-size: 12px;
  font-weight: 800;
}

.task-info {
  flex: 1;
}

.task-title {
  font-size: 14px;
  font-weight: 550;
  color: var(--mf-text);
}

.task-item.done .task-title {
  text-decoration: line-through;
  color: var(--mf-text-3);
}

.task-date {
  font-size: 11.5px;
  color: var(--mf-text-3);
  margin-top: 2px;
}

.task-lead-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
}

.task-add-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--mf-sh-md);
  backdrop-filter: blur(14px);
}

.task-add-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.task-add-input {
  flex: 2;
  min-width: 200px;
}
.task-add-date {
  width: 150px;
}
.task-add-select {
  flex: 1;
  min-width: 170px;
}

.tarefas-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================================
   FILTROS DE TAREFAS VITRAL (Pílulas & Contadores)
   ============================================================================ */

.task-filters-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.task-filters-bar::-webkit-scrollbar {
  height: 4px;
}

.task-filters-bar::-webkit-scrollbar-thumb {
  background: var(--mf-line);
  border-radius: 4px;
}

.task-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: 999px;
  color: var(--mf-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--mf-ease);
  user-select: none;
}

.task-filter-pill:hover {
  background: var(--mf-surface-2);
  color: var(--mf-text);
  border-color: rgba(255, 255, 255, 0.16);
}

.task-filter-pill.active {
  background: var(--mf-surface-3);
  color: #fff;
  border-color: var(--mf-accent);
  box-shadow: 0 0 12px var(--mf-accent-glow);
}

.task-filter-pill[data-filter="atrasadas"].active {
  border-color: var(--mf-danger);
  box-shadow: 0 0 12px rgba(255, 122, 110, 0.35);
}

.task-filter-pill[data-filter="hoje"].active {
  border-color: var(--mf-accent);
  box-shadow: 0 0 12px var(--mf-accent-glow);
}

.task-filter-pill[data-filter="futuras"].active {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.task-filter-pill[data-filter="concluidas"].active {
  border-color: var(--mf-ok);
  box-shadow: 0 0 12px rgba(52, 224, 161, 0.35);
}

.task-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mf-text-2);
  transition: all 0.2s var(--mf-ease);
}

.task-filter-pill.active .task-filter-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Badges específicos com contagem > 0 */
.task-filter-badge.has-count.badge-danger {
  background: var(--mf-danger-bg);
  color: var(--mf-danger);
  border: 1px solid rgba(255, 122, 110, 0.35);
}

.task-filter-badge.has-count.badge-warning {
  background: var(--mf-accent-soft);
  color: var(--mf-accent);
  border: 1px solid rgba(255, 176, 46, 0.35);
}

.task-filter-badge.has-count.badge-info {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.task-filter-badge.has-count.badge-success {
  background: var(--mf-ok-bg);
  color: var(--mf-ok);
  border: 1px solid rgba(52, 224, 161, 0.3);
}

/* Destaques visuais nos cards de tarefas */
.task-item.is-overdue {
  border-left: 3px solid var(--mf-danger);
}

.task-item.is-today {
  border-left: 3px solid var(--mf-accent);
}

.task-date-overdue {
  color: var(--mf-danger) !important;
  font-weight: 600;
}

.task-date-today {
  color: var(--mf-accent) !important;
  font-weight: 600;
}

.task-date-future {
  color: #38bdf8 !important;
}

.task-date-nodate {
  color: var(--mf-text-3) !important;
}

.task-date-done {
  color: var(--mf-text-3) !important;
}

.task-lead-link {
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
}

.task-lead-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* ============================================================================
   INFORM CARDS VITRAL
   ============================================================================ */

.inform-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.inform-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s var(--mf-ease);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.inform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mf-accent), var(--mf-violet));
  opacity: 0;
  transition: opacity 0.25s var(--mf-ease);
}

.inform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 176, 46, 0.4);
  background: var(--mf-surface-2);
  box-shadow:
    0 20px 40px -16px rgba(0, 0, 0, 0.9),
    0 0 30px -10px var(--mf-accent-glow);
}

.inform-card:hover::before,
.inform-card.active::before {
  opacity: 1;
}

.inform-card.active {
  border-color: var(--mf-accent);
  background: rgba(255, 176, 46, 0.08);
}

.inform-card-icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.inform-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.inform-card-desc {
  font-size: 13px;
  color: var(--mf-text-2);
  line-height: 1.45;
  margin-bottom: 16px;
}

.inform-card-action {
  margin-top: auto;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--mf-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inform-card.inform-card-add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
}

.inform-card.inform-card-add:hover {
  border-color: var(--mf-accent);
  background: var(--mf-surface-2);
  transform: translateY(-4px);
}

.inform-card-add-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.emoji-picker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.emoji-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.emoji-btn {
  background: var(--mf-surface-2);
  border: 1px solid var(--mf-line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.emoji-btn:hover {
  background: var(--mf-surface-3);
  border-color: var(--mf-accent);
  transform: scale(1.1);
}

.inform-detail-panel {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  padding: 26px;
  backdrop-filter: blur(16px);
  box-shadow: var(--mf-sh-lg);
  animation: mf-pop 0.3s var(--mf-ease);
}

.inform-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mf-line-soft);
  margin-bottom: 18px;
}

.inform-detail-title-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inform-detail-icon {
  font-size: 26px;
}

.inform-detail-title-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.inform-add-card-box {
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mf-r-sm);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.inform-box-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
  margin-bottom: 10px;
}

.inform-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inform-input-title {
  padding: 9px 12px;
  font-size: 13px;
  background: rgba(8, 11, 19, 0.85);
  border: 1px solid var(--mf-glass-border);
  border-radius: var(--mf-r-xs);
  color: #fff;
  width: 100%;
}

.inform-input-title:focus,
.inform-textarea-content:focus {
  border-color: var(--mf-accent);
  box-shadow: 0 0 0 2px rgba(255, 176, 46, 0.2);
}

.inform-textarea-content {
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  background: rgba(8, 11, 19, 0.85);
  border: 1px solid var(--mf-glass-border);
  border-radius: var(--mf-r-xs);
  color: #fff;
  width: 100%;
  resize: vertical;
}

.inform-form-actions {
  display: flex;
  justify-content: flex-end;
}

.inform-items-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inform-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.inform-section-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
  margin: 0;
}

.inform-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
  border: 1px solid rgba(255, 176, 46, 0.25);
}

.inform-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inform-item-card {
  background: rgba(14, 18, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--mf-r-sm);
  padding: 14px 16px;
  transition: all 0.2s var(--mf-ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.inform-item-card:hover {
  border-color: rgba(255, 176, 46, 0.35);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
}

.inform-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.inform-item-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inform-item-name {
  font-size: 13.5px;
  font-weight: 650;
  color: #fff;
}

.inform-item-date {
  font-size: 11px;
  color: var(--mf-text-3);
}

.inform-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inform-item-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mf-text);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(6, 9, 15, 0.5);
  border-radius: var(--mf-r-xs);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Modal Google Maps Embutido */
.modal-map-container {
  width: 92%;
  max-width: 820px;
  overflow: hidden;
}

.modal-body-map iframe {
  width: 100%;
  height: 480px;
  border: none;
}

/* ============================================================================
   DIÁRIO VITRAL
   ============================================================================ */

.diario-box {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: var(--mf-sh-md);
  backdrop-filter: blur(14px);
}

.diario-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
}

.diario-history-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.diario-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diario-item {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-md);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  transition: all 0.2s var(--mf-ease);
}

.diario-item:hover {
  background: var(--mf-surface-2);
  border-color: rgba(255, 255, 255, 0.16);
}

.diario-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.diario-item-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--mf-accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.diario-item-text {
  font-size: 14px;
  color: var(--mf-text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.diario-item-del {
  background: none;
  border: none;
  color: var(--mf-text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s;
}
.diario-item-del:hover {
  color: var(--mf-danger);
}

/* ============================================================================
   TOASTS & ALERTAS
   ============================================================================ */

.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--mf-r-sm);
  background: rgba(12, 16, 26, 0.94);
  border: 1px solid var(--mf-line);
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
  box-shadow: var(--mf-sh-lg);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: mf-pop 0.28s var(--mf-ease);
}

.toast-success { border-left: 4px solid var(--mf-ok); }
.toast-danger  { border-left: 4px solid var(--mf-danger); }
.toast-warning { border-left: 4px solid var(--mf-warn); }
.toast-info    { border-left: 4px solid var(--mf-info); }

.toast-close {
  background: none;
  border: none;
  color: var(--mf-text-3);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.toast-close:hover { color: #fff; }

.toast-exit {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.25s var(--mf-ease);
}

/* ============================================================================
   RESPONSIVIDADE (MOBILE / TABLET)
   ============================================================================ */

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s var(--mf-ease);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 85;
    display: none;
  }

  .mobile-overlay.visible {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 16px 14px;
  }

  .kanban-board {
    flex-direction: column;
    overflow-x: visible;
  }

  .kanban-column {
    min-width: 100%;
    max-height: none;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .task-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .task-add-date,
  .task-add-select {
    width: 100%;
  }

  .modal {
    max-width: 95%;
    max-height: 94vh;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .admin-vendedor-filter {
    width: 100%;
  }

  .admin-vendedor-select {
    width: 100%;
  }

  .additional-phone-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .additional-phone-row .btn-contact-zap {
    width: 100%;
  }

  .additional-phone-row .btn-contact-remove {
    width: 100%;
  }
}

/* ============================================================================
   SISTEMA MULTI-USUÁRIO & GESTÃO ADMINISTRATIVA
   ============================================================================ */

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 10px 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-sm);
  transition: all 0.2s var(--mf-ease);
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mf-accent), #d48215);
  color: #120b02;
  font-weight: 750;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 176, 46, 0.25);
}

.sidebar-user-info {
  min-width: 0;
  flex: 1;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: var(--mf-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 550;
}

.sidebar-user-role.is-admin {
  color: var(--mf-accent);
}

/* Badge de Dono do Lead nos Cards do Kanban */
.lead-vendedor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 550;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mf-text-2);
  border: 1px solid var(--mf-line-soft);
  margin-top: 6px;
}

.lead-vendedor-badge.is-admin {
  background: rgba(255, 176, 46, 0.1);
  color: var(--mf-accent);
  border-color: rgba(255, 176, 46, 0.25);
}

/* Métricas da Página de Usuários */
.usuarios-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.usuarios-metrics-row .metric-card {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--mf-sh-sm);
}

.usuarios-metrics-row .metric-label {
  font-size: 12px;
  font-weight: 550;
  color: var(--mf-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.usuarios-metrics-row .metric-val {
  font-size: 26px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Tabela de Gestão de Usuários */
.usuarios-table-container {
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: var(--mf-r-md);
  overflow-x: auto;
  box-shadow: var(--mf-sh-sm);
}

.usuarios-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.usuarios-table th {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--mf-line);
  color: var(--mf-text-2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.usuarios-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--mf-line-soft);
  color: var(--mf-text-1);
  vertical-align: middle;
}

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

.usuario-role-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.usuario-role-admin {
  background: rgba(255, 176, 46, 0.12);
  color: var(--mf-accent);
  border: 1px solid rgba(255, 176, 46, 0.28);
}

.usuario-role-vendedor {
  background: rgba(78, 149, 255, 0.12);
  color: #7cb3ff;
  border: 1px solid rgba(78, 149, 255, 0.28);
}

.usuario-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
}

.usuario-status-tag.active {
  color: var(--mf-success);
}

.usuario-status-tag.inactive {
  color: var(--mf-text-3);
}

.btn-danger-sm {
  background: rgba(255, 122, 110, 0.1);
  color: var(--mf-danger);
  border: 1px solid rgba(255, 122, 110, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-danger-sm:hover {
  background: var(--mf-danger);
  color: #fff;
  border-color: var(--mf-danger);
}

/* ============================================================================
   LEADS: TOGGLE DE VISUALIZAÇÃO (Kanban / Lista / Tabela)
   ============================================================================ */

.page-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.btn-view-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--mf-text-2);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s var(--mf-ease);
}

.btn-view-mode svg {
  transition: transform 0.2s ease;
}

.btn-view-mode:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-view-mode.active {
  background: var(--mf-accent);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 176, 46, 0.35);
}

/* ============================================================================
   LEADS: BARRA DE FILTROS (Status, Bairro, Temperatura)
   ============================================================================ */

.leads-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-group-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mf-text-3);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mf-text-2);
}

.filter-item select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mf-line);
  color: var(--mf-text-1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  max-width: 190px;
}

.filter-item select:focus,
.filter-item select:hover {
  border-color: var(--mf-accent);
  background: rgba(255, 255, 255, 0.08);
}

.btn-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-clear-filters:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

.filters-summary {
  display: inline-flex;
  align-items: center;
}

.leads-count-text {
  font-size: 12.5px;
  color: var(--mf-text-2);
  font-weight: 500;
}

/* ============================================================================
   TEMPERATURA DA NEGOCIAÇÃO (Frio, Morno, Quente)
   ============================================================================ */

.temp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
  line-height: 1.3;
}

.temp-badge:hover {
  transform: translateY(-1px);
  filter: brightness(1.2);
}

.temp-badge.temp-quente {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.temp-badge.temp-morno {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fcd34d;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.temp-badge.temp-frio {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.15);
}

/* ============================================================================
   LEADS: VISUALIZAÇÃO EM TABELA
   ============================================================================ */

.leads-table-container {
  width: 100%;
  background: var(--mf-surface);
  border: 1px solid var(--mf-line);
  border-radius: 14px;
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.leads-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--mf-text-2);
  font-weight: 650;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mf-line);
  white-space: nowrap;
}

.leads-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--mf-line-soft);
  color: var(--mf-text-1);
  vertical-align: middle;
}

.leads-table tbody tr {
  transition: background 0.15s ease;
}

.leads-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

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

.lead-table-company {
  font-weight: 650;
  color: #fff;
  font-size: 13.5px;
}

.lead-table-sub {
  font-size: 11.5px;
  color: var(--mf-text-3);
  margin-top: 2px;
}

.leads-table .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}


