/* ===================================================================
   MIBANK REAL ESTATE UI KIT - ESTILOS OFICIAIS (FLUTTERFLOW 1:1)
   Baseado fielmente em: real-estate-dashboard-u-i-kit-8ni1s0
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Cores Oficiais MiBank FlutterFlow */
  --primary: #ED4B00;
  --primary-hover: #D64200;
  --primary-light: #FFF1EB;
  --secondary: #007AFF;
  
  /* Paleta Híbrida Oficial */
  --sidebar-bg: #000000;
  --canvas-bg: #F2F3F4;
  --canvas-card: #FFFFFF;
  --card-border: #E8ECEF;
  
  /* Textos */
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  --text-white: #FFFFFF;
  
  /* Acentos */
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-yellow: #F59E0B;
  
  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.06);
  
  /* Raios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 9999px;
}

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

html, body {
  height: 100%;
  font-family: var(--font-main);
  background-color: var(--canvas-bg);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ===================================================================
   LAYOUT PRINCIPAL
   =================================================================== */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ===================================================================
   SIDEBAR (NAVBAR0 WIDGET FLUTTERFLOW)
   =================================================================== */
.sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #1A1A22;
  position: relative;
  z-index: 50;
  height: 100%;
}

/* Logo MiBank */
.sidebar-logo-container {
  padding: 24px 20px 16px 20px;
}

.mibank-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.sidebar-logo-img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mibank-logo:hover .sidebar-logo-img {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Usuário Card (Exato do print) */
.user-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 2px;
  background: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

.user-name-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.user-email-subtitle {
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
  margin-top: 2px;
}

.user-menu-dots {
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.user-menu-dots:hover {
  color: #FFFFFF;
}

/* Lista de Navegação Principal */
.sidebar-nav-list {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

/* Item Pílula de Navegação (Exato do FlutterFlow) */
.nav-pill {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* Item Ativo (Pílula Branca com texto preto - Imagem 1) */
.nav-pill.active {
  background-color: #FFFFFF;
  color: #000000 !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-pill.active svg {
  stroke: #000000 !important;
}

.nav-indicator-bar {
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: transparent;
  transition: background 0.2s;
  flex-shrink: 0;
}

.nav-pill.active .nav-indicator-bar {
  background: #000000;
}

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

.nav-pill-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.nav-pill-label {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Divisor sutil no menu */
.nav-divider-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  padding: 16px 12px 6px 12px;
}

/* Rodapé da Sidebar */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

/* ===================================================================
   CONTEÚDO PRINCIPAL (TELA CLARA / OFF-WHITE)
   =================================================================== */
.main-canvas {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background-color: var(--canvas-bg);
  display: flex;
  flex-direction: column;
}

/* Header Superior Fixo e Limpo */
.top-header-bar {
  background-color: #FFFFFF;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-page-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.header-actions-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vgv-chip-total {
  background: #FFF5F0;
  color: var(--primary);
  border: 1px solid #FFD6C2;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-header-action {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-header-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #FFF9F6;
}

/* Área de Visualização com Scroll */
.view-viewport {
  padding: 32px;
  flex: 1;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.view-container {
  display: none;
  animation: fadeIn 0.25s ease;
}

.view-container.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================================
   CARDS DE MÉTRICAS DO TOPO (HEADER04_INSURANCE_CARDS FLUTTERFLOW)
   =================================================================== */
.vgv-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 20px;
  margin-bottom: 32px;
}

/* Card 1: VGV Total (Preto e Elegante - Exato do Print 1) */
.metric-card-black {
  background-color: #0A0A0D;
  border-radius: 14px;
  padding: 20px 22px;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-card-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

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

.metric-title-light {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2px;
}

.metric-more-dots {
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.metric-value-large {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.metric-unit-tag {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-main);
}

.metric-trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.metric-trend-red {
  color: #FF5A5A;
}

.metric-trend-orange {
  color: #ED4B00;
}

/* Card 2: Média de VGV (Branco e Limpo - Exato do Print 1) */
.metric-card-white {
  background-color: #FFFFFF;
  border-radius: 14px;
  padding: 20px 22px;
  color: var(--text-dark);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.metric-title-dark {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.metric-value-dark {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

/* ===================================================================
   TÍTULO DE SEÇÃO "PRÉ APROVADOS" E FILTROS
   =================================================================== */
.section-headline-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-big-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
}

.vitrine-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill-filter-group {
  display: flex;
  background: #E5E7EB;
  border-radius: 24px;
  padding: 3px;
  gap: 2px;
}

.filter-pill-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(235, 93, 34, 0.35);
}

.search-input-field {
  padding: 8px 14px 8px 36px;
  border-radius: 20px;
  border: 1px solid #D1D5DB;
  background: #FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%239CA3AF" stroke-width="2"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>') no-repeat 12px center;
  font-size: 13px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 240px;
}

.search-input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237, 75, 0, 0.12);
}

/* ===================================================================
   GRID DE EMPREENDIMENTOS (CARDS FLUTTERFLOW 1:1)
   =================================================================== */
.buildings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Card Individual (Exato da Imagem 1) */
.building-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
  padding: 8px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.building-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

/* Foto do Edifício */
.building-photo-wrap {
  width: 100%;
  height: 220px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  background: #E5E7EB;
}

.building-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.building-card:hover .building-photo-wrap img {
  transform: scale(1.04);
}

.building-status-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.status-tag-green {
  background: rgba(16, 185, 129, 0.9);
  color: #FFFFFF;
}

.status-tag-amber {
  background: rgba(245, 158, 11, 0.9);
  color: #FFFFFF;
}

/* Conteúdo do Card */
.building-card-info {
  padding: 14px 6px 4px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.building-name-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.building-vgv-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.building-arrow-indicator {
  color: var(--primary);
  font-size: 14px;
  display: flex;
  align-items: center;
}

.building-vgv-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: 0.1px;
}

.building-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #F3F4F6;
}

.building-view-link {
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}

.building-view-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.building-quick-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.building-quick-btn:hover {
  color: var(--primary);
  background: #FFF5F0;
}

/* ===================================================================
   TELA DE LOGIN (LOGINPAGE FLUTTERFLOW 1:1 - IMAGEM 2)
   =================================================================== */
.login-view-screen {
  min-height: calc(100vh - 64px);
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-brand-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.login-logo-img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.login-headline {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
}

.login-form-box {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.auth-input-wrap {
  position: relative;
  width: 100%;
}

.auth-text-input {
  width: 100%;
  height: 48px;
  background-color: #0B0B0E;
  border: 1px solid #2B2B36;
  border-radius: 8px;
  padding: 0 16px;
  color: #FFFFFF;
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237, 75, 0, 0.2);
}

.auth-input-wrap .toggle-eye-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717A;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #A1A1AA;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox-label input {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
}

.forgot-password-link {
  font-size: 13px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.15s;
}

.forgot-password-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

/* Botão Laranja "Entrar" */
.btn-login-primary {
  width: 100%;
  height: 48px;
  background-color: var(--primary);
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  margin-top: 6px;
}

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

.btn-login-primary:active {
  transform: scale(0.99);
}

/* Divisor "Vitrine" */
.login-divider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0;
}

.login-divider-line {
  flex: 1;
  height: 1px;
  background-color: #27272A;
}

.login-divider-text {
  font-size: 13px;
  color: #71717A;
  font-weight: 500;
}

/* Botão Branco "Ver Vitrine" */
.btn-showcase-white {
  width: 100%;
  height: 48px;
  background-color: #FFFFFF;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s, transform 0.1s;
}

.btn-showcase-white:hover {
  background-color: #F4F4F5;
}

.btn-showcase-white:active {
  transform: scale(0.99);
}

.btn-showcase-white svg {
  stroke: var(--primary);
}

/* Rodapé "Não tem uma conta? Registrar" */
.auth-footer-prompt {
  margin-top: 24px;
  font-size: 13.5px;
  color: #A1A1AA;
}

.auth-footer-prompt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-prompt a:hover {
  text-decoration: underline;
}

/* ===================================================================
   OUTRAS TELAS DA PLATAFORMA (DASHBOARD, CRM, ARQUIVOS, ETC.)
   Estilizadas no padrão limpo / claro do FlutterFlow
   =================================================================== */
.white-surface-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

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

.clean-table th {
  text-align: left;
  padding: 12px 16px;
  background: #F9FAFB;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #E5E7EB;
}

.clean-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  color: var(--text-dark);
}

.clean-table tr:hover td {
  background: #F9FAFB;
}

/* ===================================================================
   SALA PRIME - CRM OMNICHANNEL (SITE & WHATSAPP)
   =================================================================== */

.view-viewport:has(#view-negociacoes.active) {
  max-width: 100% !important;
  padding: 10px 16px 16px 16px !important;
}

#view-negociacoes.active {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 84px);
  min-height: 600px;
  width: 100%;
}

/* Top Bar do CRM */
.crm-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-main-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.crm-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.crm-main-subtitle {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 3px;
}

/* Container do Workspace CRM em 3 Colunas */
.crm-app-container {
  flex: 1;
  display: flex;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 0;
}

/* ===================================================================
   COLUNA 1: GESTÃO & FILTROS DE LEADS (ESQUERDA)
   =================================================================== */
.crm-leads-sidebar {
  width: 360px;
  min-width: 320px;
  border-right: 1px solid #E5E7EB;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.crm-sidebar-header {
  padding: 12px;
  border-bottom: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-sidebar-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.crm-sidebar-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-new-lead {
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  box-shadow: 0 2px 6px rgba(235, 93, 34, 0.25) !important;
}

.crm-filter-tabs {
  display: flex;
  gap: 3px;
  background: #F3F4F6;
  padding: 3px;
  border-radius: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.crm-filter-tabs::-webkit-scrollbar {
  display: none;
}

.crm-tab-btn {
  flex: 1;
  min-width: fit-content;
  padding: 6px 7px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #6B7280;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.crm-tab-btn:hover {
  color: #111827;
  background: rgba(255, 255, 255, 0.6);
}

.crm-tab-btn.active {
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E5E7EB;
  color: #4B5563;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 15px;
}

.crm-tab-btn.active .tab-count-badge {
  background: #111827;
  color: #FFFFFF;
}

.tab-count-badge.zap {
  background: rgba(37, 211, 102, 0.15);
  color: #059669;
}
.crm-tab-btn.active .tab-count-badge.zap {
  background: #10B981;
  color: #FFFFFF;
}

.tab-count-badge.site {
  background: rgba(59, 130, 246, 0.15);
  color: #2563EB;
}
.crm-tab-btn.active .tab-count-badge.site {
  background: #3B82F6;
  color: #FFFFFF;
}

.tab-count-badge.new {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}
.crm-tab-btn.active .tab-count-badge.new {
  background: #EF4444;
  color: #FFFFFF;
}

.tab-count-badge.unread {
  background: #FEE2E2;
  color: #B91C1C;
}
.crm-tab-btn.active .tab-count-badge.unread {
  background: #DC2626;
  color: #FFFFFF;
}

/* Date Filter Row */
.crm-date-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
}

.date-filter-label {
  color: #6B7280;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.date-filter-pills {
  display: flex;
  gap: 3px;
}

.date-pill-btn {
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  color: #6B7280;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 10.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.date-pill-btn:hover {
  border-color: #D1D5DB;
  color: #111827;
}

.date-pill-btn.active {
  background: #111827;
  border-color: #111827;
  color: #FFFFFF;
  font-weight: 600;
}

.crm-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F3F4F6;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.crm-search-box:focus-within {
  background: #FFFFFF;
  border-color: #EB5D22;
  box-shadow: 0 0 0 3px rgba(235, 93, 34, 0.1);
}

.crm-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: #111827;
}

.crm-search-box input::placeholder {
  color: #9CA3AF;
}

/* Abas de Filtro de Canal */
.crm-filter-tabs {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  padding: 3px;
  border-radius: 8px;
}

.crm-tab-btn {
  flex: 1;
  padding: 6px 4px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.crm-tab-btn.active {
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dot-zap {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
}

.dot-site {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3B82F6;
}

.chat-conversations-list {
  flex: 1;
  overflow-y: auto;
}

/* Card de Lead na Lista */
.chat-conv-item {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
  align-items: flex-start;
}

.chat-conv-item:hover {
  background: #F3F4F6;
}

.chat-conv-item.active {
  background: #FFF7ED;
  border-left: 3px solid #EB5D22;
}

.chat-conv-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.chat-conv-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #E5E7EB;
}

.crm-channel-icon-overlay {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  font-size: 10px;
}

.chat-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
}

.chat-status-indicator.online {
  background: #10B981;
}

.chat-conv-body {
  flex: 1;
  min-width: 0;
}

.chat-conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.chat-conv-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-time {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  margin-left: 6px;
}

.crm-tags-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.crm-source-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.crm-source-tag.whatsapp {
  background: #DCFCE7;
  color: #15803D;
}

.crm-source-tag.site {
  background: #DBEAFE;
  color: #1D4ED8;
}

.crm-stage-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: #FEF3C7;
  color: #B45309;
}

.crm-stage-tag.stage-fechado {
  background: #ECFDF5;
  color: #047857;
}

.crm-stage-tag.stage-reuniao {
  background: #EDE9FE;
  color: #6D28D9;
}

.chat-conv-project-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #EB5D22;
  background: #FFF2EB;
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.chat-conv-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.chat-conv-preview {
  font-size: 12px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.chat-conv-unread-badge {
  background: #EB5D22;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
}

/* ===================================================================
   COLUNA 2: CHAT & ATENDIMENTO OMNICHANNEL (CENTRO)
   =================================================================== */
.crm-chat-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  min-width: 0;
  height: 100%;
  border-right: 1px solid #E5E7EB;
}

.crm-chat-header {
  padding: 12px 20px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-channel-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #EFF6FF;
  color: #1D4ED8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crm-channel-badge.whatsapp {
  background: #ECFDF5;
  color: #047857;
}

.crm-stage-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #FEF3C7;
  color: #B45309;
}

.crm-lead-quick-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6B7280;
  margin-top: 3px;
}

.bullet-sep {
  color: #D1D5DB;
}

.crm-header-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp-action {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-whatsapp-action:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.btn-crm-action-outline {
  background: #FFFFFF;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-crm-action-outline:hover {
  border-color: #EB5D22;
  color: #EB5D22;
  background: #FFF9F6;
}

/* Contexto do Projeto Fixo no Topo */
.chat-project-context-strip {
  background: #F8FAFC;
  border-bottom: 1px solid #E5E7EB;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-project-context-strip img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #E2E8F0;
}

.chat-context-details {
  flex: 1;
}

.chat-context-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.chat-context-sub {
  font-size: 11.5px;
  color: #64748B;
}

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

.btn-context-view-project,
.btn-context-docs {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-context-view-project:hover,
.btn-context-docs:hover {
  border-color: #EB5D22;
  color: #EB5D22;
  background: #FFF9F6;
}

/* Área de Mensagens */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}

.chat-date-divider {
  text-align: center;
  margin: 6px 0;
}

.chat-date-divider span {
  background: #E2E8F0;
  color: #64748B;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-msg-row.outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-sender-label {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.chat-msg-row.outgoing .chat-bubble {
  background: #EB5D22;
  color: #FFFFFF;
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 2px rgba(235, 93, 34, 0.2);
}

.chat-msg-row.incoming .chat-bubble {
  background: #FFFFFF;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chat-msg-meta {
  font-size: 10px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-msg-row.outgoing .chat-msg-meta {
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}

.chat-msg-row.incoming .chat-msg-meta {
  color: #94A3B8;
  justify-content: flex-start;
}

/* Card de Anexo / Proposta dentro do Chat */
.chat-attachment-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.chat-msg-row.outgoing .chat-attachment-card {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-attachment-icon {
  font-size: 20px;
}

.chat-attachment-name {
  font-size: 12px;
  font-weight: 600;
}

.chat-attachment-size {
  font-size: 10.5px;
  opacity: 0.8;
}

/* Floating Slash Commands Popup (Respostas Rápidas) */
.crm-slash-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 14px;
  right: 14px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
  z-index: 60;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 300px;
  animation: popUp 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-slash-popup.hidden {
  display: none;
}

.slash-popup-header {
  padding: 8px 14px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slash-popup-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.slash-popup-hint {
  font-size: 11px;
  color: #9CA3AF;
}

.slash-commands-list {
  overflow-y: auto;
  padding: 4px 0;
}

.slash-cmd-item {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.12s ease;
  gap: 12px;
}

.slash-cmd-item:hover,
.slash-cmd-item.selected {
  background: #FFF5F0;
}

.slash-cmd-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.slash-cmd-shortcut {
  font-family: monospace;
  font-size: 12px;
  font-weight: 700;
  background: rgba(235, 93, 34, 0.12);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.slash-cmd-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.slash-cmd-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1F2937;
}

.slash-cmd-desc {
  font-size: 11px;
  color: #6B7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slash-cmd-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #F3F4F6;
  color: #6B7280;
  white-space: nowrap;
}

.slash-trigger-btn {
  border-radius: 6px;
  background: rgba(235, 93, 34, 0.08);
}

.slash-trigger-btn:hover {
  background: rgba(235, 93, 34, 0.18);
}

/* Barra de Envio */
.chat-input-bar {
  padding: 10px 18px;
  border-top: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-input-tool {
  background: transparent;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-input-tool:hover {
  background: #F3F4F6;
  color: #EB5D22;
}

.chat-input-bar input {
  flex: 1;
  height: 40px;
  border: 1px solid #D1D5DB;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-input-bar input:focus {
  border-color: #EB5D22;
  box-shadow: 0 0 0 3px rgba(235, 93, 34, 0.12);
}

.btn-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EB5D22;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-chat-send:hover {
  background: #D64200;
  transform: scale(1.05);
}

.btn-chat-send:active {
  transform: scale(0.95);
}

/* ===================================================================
   COLUNA 3: FICHA CRM DO LEAD & PIPELINE (DIREITA)
   =================================================================== */
.crm-lead-details-sidebar {
  width: 350px;
  min-width: 320px;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  gap: 14px;
}

/* Perfil do Lead */
.crm-lead-profile-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.crm-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F3F4F6;
}

.crm-profile-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E5E7EB;
}

.crm-profile-top h4 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px 0;
}

.crm-profile-top p {
  font-size: 12px;
  color: #6B7280;
  margin: 0 0 6px 0;
}

.crm-origin-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: #EFF6FF;
  color: #1D4ED8;
}

.crm-origin-badge.whatsapp {
  background: #ECFDF5;
  color: #047857;
}

.crm-info-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.crm-info-label {
  color: #9CA3AF;
  font-weight: 500;
}

.crm-info-val {
  color: #1F2937;
  font-weight: 600;
  text-align: right;
}

/* Cards de Seção do Painel Direito */
.crm-section-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

.crm-section-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.crm-section-header .crm-section-title {
  margin-bottom: 0;
}

.crm-probability-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Stepper do Funil / Pipeline */
.crm-pipeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.crm-step-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}

.crm-step-row:hover {
  background: #F9FAFB;
}

.crm-step-row.completed {
  background: #F0FDF4;
  border-color: #DCFCE7;
}

.crm-step-row.active {
  background: #FFF7ED;
  border-color: #FED7AA;
}

.crm-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #6B7280;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.crm-step-row.completed .crm-step-circle {
  background: #10B981;
  color: #FFFFFF;
}

.crm-step-row.active .crm-step-circle {
  background: #EB5D22;
  color: #FFFFFF;
}

.crm-step-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #4B5563;
  flex: 1;
}

.crm-step-row.active .crm-step-name {
  color: #C2410C;
  font-weight: 700;
}

.crm-step-row.completed .crm-step-name {
  color: #065F46;
}

/* Dados do Negócio */
.crm-deal-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.crm-deal-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.crm-deal-label {
  color: #64748B;
}

.text-orange {
  color: #EB5D22;
  font-size: 13px;
}

.crm-quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-crm-action-sm {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-crm-action-sm:hover {
  border-color: #EB5D22;
  color: #EB5D22;
  background: #FFF9F6;
}

/* Anotações Internas */
.crm-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  max-height: 160px;
  overflow-y: auto;
}

.crm-note-item {
  background: #FEF9C3;
  border-left: 3px solid #EAB308;
  padding: 8px 10px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #713F12;
}

.crm-note-meta {
  font-size: 10px;
  color: #A16207;
  margin-top: 3px;
  display: flex;
  justify-content: space-between;
}

.crm-add-note-box {
  display: flex;
  gap: 6px;
}

.crm-add-note-box input {
  flex: 1;
  height: 32px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  outline: none;
}

.crm-add-note-box input:focus {
  border-color: #EB5D22;
}

.crm-add-note-box button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #EB5D22;
  color: #FFFFFF;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.crm-add-note-box button:hover {
  background: #D64200;
}

/* Linha do Tempo / Histórico */
.crm-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 8px;
  border-left: 2px solid #E5E7EB;
  margin-left: 6px;
}

.crm-timeline-item {
  position: relative;
  padding-left: 14px;
}

.crm-timeline-item::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EB5D22;
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px #E5E7EB;
}

.crm-timeline-text {
  font-size: 11.5px;
  color: #374151;
  line-height: 1.35;
}

.crm-timeline-time {
  font-size: 10px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* ===================================================================
   TELA DE DETALHE DO PROJETO (FLUTTERFLOW P_ZENIT / P_BOSSA 1:1)
   =================================================================== */
.project-detail-top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.project-detail-back-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s;
}

.project-detail-back-btn:hover {
  background: rgba(235, 93, 34, 0.1);
  transform: translateX(-3px);
}

.project-detail-page-title {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.project-detail-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 24px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.project-detail-main-col {
  flex: 1;
  min-width: 0;
  max-width: 820px;
}

/* Galeria: 1 Grande + 2 Empilhadas */
.project-gallery-grid {
  display: flex;
  gap: 14px;
  height: 310px;
}

.gallery-main-wrap {
  flex: 1.6;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
}

.gallery-main-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-kmz-pill {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 10px 24px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: #1F2937;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-kmz-pill:hover {
  background: #FFFFFF;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  color: var(--primary);
}

.gallery-secondary-stack {
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-sub-wrap {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #E5E7EB;
}

.gallery-sub-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Informações: Edifício & VGV */
.project-info-row {
  display: flex;
  gap: 48px;
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #F3F4F6;
}

.project-info-block {
  display: flex;
  flex-direction: column;
}

.project-info-label {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 4px;
  font-weight: 500;
}

.project-info-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.project-location-pin {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.project-vgv-highlight {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  color: #EB5D22;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.project-areas-text {
  font-size: 13.5px;
  color: #6B7280;
  font-weight: 500;
}

/* O que esse empreendimento oferece */
.project-amenities-section {
  margin-top: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid #F3F4F6;
}

.project-section-heading {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.project-amenities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.amenity-chip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.amenity-chip-item svg {
  color: #9CA3AF;
  flex-shrink: 0;
}

/* Descrição */
.project-description-section {
  margin-top: 24px;
}

.project-desc-content {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.65;
}

.btn-read-more-orange {
  background: transparent;
  border: none;
  color: #EB5D22;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  margin-top: 10px;
  padding: 0;
  transition: opacity 0.15s;
}

.btn-read-more-orange:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Coluna Lateral Direita */
.project-detail-side-col {
  width: 290px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card do Operador */
.operator-profile-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.operator-card-header {
  display: flex;
  justify-content: flex-end;
  color: #9CA3AF;
  font-size: 16px;
  letter-spacing: 1px;
}

.operator-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px auto;
  border: 1.5px solid #E5E7EB;
}

.operator-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-name-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.operator-role-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-top: 2px;
}

.operator-loc-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  color: #374151;
  font-weight: 500;
  margin: 14px 0 6px 0;
}

.operator-units-count {
  font-size: 13.5px;
  color: #111827;
  margin-bottom: 16px;
  font-weight: 500;
}

.btn-credit-desk-orange {
  width: 100%;
  height: 42px;
  background: #EB5D22;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-credit-desk-orange:hover {
  background: #D64200;
  transform: translateY(-1px);
}

/* Botão Pasta Documental e Teaser */
.doc-folder-action-wrap {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-folder-orange {
  width: 100%;
  height: 44px;
  background: #EB5D22;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(235, 93, 34, 0.25);
}

.btn-folder-orange:hover {
  background: #D64200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(235, 93, 34, 0.35);
}

/* ===================================================================
   CARD 2: PREMISSAS (FLUTTERFLOW 1:1 - P_ZENIT LINHAS 1496-2246)
   =================================================================== */
.project-premises-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.premises-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.premises-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.premises-see-all-link {
  color: #EB5D22;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, opacity 0.15s;
}

.premises-see-all-link:hover {
  background: rgba(235, 93, 34, 0.08);
  opacity: 0.9;
}

.premises-units-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.premises-badge-pill {
  background: #EB5D22;
  border-radius: 8px;
  padding: 4px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.premises-badge-number {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
}

.premises-badge-label {
  font-size: 15px;
  color: #6B7280;
  font-weight: 500;
}

.premises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}

.premises-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premises-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.premises-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.premises-label {
  font-family: var(--font-main);
  font-size: 15.5px;
  font-weight: 700;
  color: #111827;
}

.premises-val {
  font-size: 14.5px;
  color: #4B5563;
  padding-left: 30px;
  font-weight: 500;
}

/* ===================================================================
   CARD 3: PLANTAS (FLUTTERFLOW 1:1 - P_ZENIT LINHAS 2247-2683)
   =================================================================== */
.project-plans-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.plans-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.plans-title {
  font-family: var(--font-main);
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.plans-see-all-link {
  color: #EB5D22;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, opacity 0.15s;
}

.plans-see-all-link:hover {
  background: rgba(235, 93, 34, 0.08);
  opacity: 0.9;
}

.plans-carousel-viewport {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.plans-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.plan-slide-item {
  min-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.plan-image-box {
  width: 100%;
  height: 480px;
  background: #F8FAFC;
  border-radius: 24px 24px 24px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E2E8F0;
}

.plan-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.plan-info-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-name-title {
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-main);
}

.plan-area-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #475569;
}

.plans-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.plan-dot-btn {
  height: 8px;
  width: 8px;
  border-radius: 16px;
  background: #FBDFD3;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.plan-dot-btn.active {
  width: 36px;
  background: #EB5D22;
}

/* Responsividade Detalhe do Projeto */
@media (max-width: 1100px) {
  .premises-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .premises-grid {
    grid-template-columns: 1fr;
  }
  .plan-image-box {
    height: 320px;
  }
}

/* Responsividade Detalhe do Projeto */
@media (max-width: 1100px) {
  .project-detail-card {
    flex-direction: column;
  }
  .project-detail-side-col {
    width: 100%;
  }
  .doc-folder-action-wrap {
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .project-gallery-grid {
    flex-direction: column;
    height: auto;
  }
  .gallery-main-wrap {
    height: 240px;
  }
  .gallery-secondary-stack {
    width: 100%;
    flex-direction: row;
    height: 120px;
  }
  .project-info-row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ===================================================================
   MODAL DE DETALHES DO ATIVO (ALTO PADRÃO)
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content-box {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-banner-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.modal-body-padding {
  padding: 24px 28px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #FFFFFF;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Toast Notificação */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--primary);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 2000;
  animation: slideToast 0.3s ease;
}

.toast-msg.hidden {
  display: none;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsividade */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
  }
  .vgv-cards-row {
    grid-template-columns: 1fr;
  }
  .view-viewport {
    padding: 16px;
  }
}

/* ===================================================================
   SISTEMA DE PERMISSÕES & CONTROLE DE ACESSOS (4 NÍVEIS + PARCEIROS)
   =================================================================== */

/* Badges de Papéis / Roles */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.role-badge-admin {
  background: rgba(147, 51, 234, 0.12);
  color: #9333EA;
  border: 1px solid rgba(147, 51, 234, 0.25);
}

.role-badge-banker {
  background: rgba(0, 122, 255, 0.12);
  color: #007AFF;
  border: 1px solid rgba(0, 122, 255, 0.25);
}

.role-badge-fundo {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.role-badge-originador {
  background: rgba(99, 102, 241, 0.12);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.role-badge-construtor {
  background: rgba(75, 85, 99, 0.12);
  color: #374151;
  border: 1px solid rgba(75, 85, 99, 0.25);
}

.role-badge-corretor {
  background: rgba(237, 75, 0, 0.12);
  color: #ED4B00;
  border: 1px solid rgba(237, 75, 0, 0.25);
}

.role-badge-comprador {
  background: rgba(107, 114, 128, 0.12);
  color: #4B5563;
  border: 1px solid rgba(107, 114, 128, 0.25);
}

/* Seletor de Simulação no Cabeçalho */
.simulation-pill-group {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  padding: 3px 6px;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.simulation-pill-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-left: 6px;
}

.simulation-select {
  border: none;
  background: transparent;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  cursor: pointer;
  padding-right: 6px;
}

/* Cards Conceituais de Perfis (Dicionário Visual) */
.profile-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.profile-concept-card {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 4px solid var(--primary);
}

.profile-concept-card.theme-internos {
  border-top-color: #007AFF;
}

.profile-concept-card.theme-parceiros {
  border-top-color: #6366F1;
}

.profile-concept-card.theme-vendas {
  border-top-color: #ED4B00;
}

.profile-concept-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-concept-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-role-item {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-role-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-dark);
}

.profile-role-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Matriz de Permissões com 1 Clique */
.matrix-card-wrap {
  background: #FFFFFF;
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.matrix-table-scroll {
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.matrix-table th, .matrix-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #E5E7EB;
  font-size: 13px;
}

.matrix-table th {
  background: #F8FAFC;
  font-weight: 700;
  color: var(--text-body);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.matrix-table th.screen-col-head, .matrix-table td.screen-col-cell {
  text-align: left;
  min-width: 220px;
}

.matrix-table tr:hover td {
  background-color: #F9FAFB;
}

/* Interruptor / Toggle Switch Elegante */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  vertical-align: middle;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D5DB;
  transition: 0.2s;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Indicador de Cadeado para Telas Bloqueadas */
.nav-pill.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: auto;
}

.nav-pill.disabled:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.nav-lock-badge {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================================================
   TELA DE AUTENTICAÇÃO MIBANK (LOGIN / CADASTRO OFICIAL)
   =================================================================== */
.auth-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at 50% 10%, #1c140e 0%, #0c0c0e 55%, #050505 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 30px 16px;
  backdrop-filter: blur(12px);
}

.auth-card-container {
  width: 100%;
  max-width: 480px;
  margin: auto;
  animation: authFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-top-nav {
  margin-bottom: 14px;
  display: flex;
  justify-content: flex-start;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9CA3AF;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-back-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-2px);
}

.auth-card {
  background: #121214;
  border: 1px solid #27272A;
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-wrap {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.auth-logo-img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.auth-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF7A00;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.25);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.auth-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 13.5px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.45;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: #18181B;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #27272A;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #A1A1AA;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: #27272A;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.auth-tab:hover:not(.active) {
  color: #FFFFFF;
}

.auth-field-group {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #D4D4D8;
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: #71717A;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  outline: none;
  border-color: #FF7A00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.18);
}

.auth-input::placeholder {
  color: #52525B;
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #71717A;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.auth-toggle-pwd:hover {
  color: #D4D4D8;
}

.auth-link-forgot {
  font-size: 12px;
  color: #FF7A00;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.auth-link-forgot:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.btn-auth-primary {
  width: 100%;
  height: 46px;
  background: #FF7A00;
  color: #000000;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 18px;
  box-shadow: 0 4px 14px rgba(255, 122, 0, 0.25);
}

.btn-auth-primary:hover {
  background: #E56D00;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 122, 0, 0.35);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 14px;
  color: #71717A;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #27272A;
}

.auth-divider span {
  padding: 0 10px;
}

.auth-quick-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-quick-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick-role:hover {
  border-color: #FF7A00;
  background: #202024;
  transform: translateY(-2px);
}

.quick-role-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.quick-role-badge.admin {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
}

.quick-role-badge.banker {
  background: rgba(255, 122, 0, 0.15);
  color: #FF7A00;
}

.quick-role-badge.originador {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.quick-role-name {
  font-size: 11px;
  font-weight: 600;
  color: #D4D4D8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.auth-footer-terms {
  margin-top: 22px;
  font-size: 11px;
  color: #71717A;
  text-align: center;
  line-height: 1.5;
}

.auth-footer-terms a {
  color: #A1A1AA;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 18px;
  }
  .auth-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Banner de Sessão Ativa */
.auth-active-session-banner {
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.28);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: authFadeIn 0.25s ease-out;
}

.auth-active-session-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #F4F4F5;
  line-height: 1.4;
}

.auth-active-dot {
  color: #10B981;
  font-size: 14px;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.auth-active-session-actions {
  display: flex;
  gap: 8px;
}

.btn-continue-session {
  flex: 1.4;
  background: #FF7A00;
  color: #000000;
  border: none;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-continue-session:hover {
  background: #E56D00;
  transform: translateY(-1px);
}

.btn-switch-account {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  color: #A1A1AA;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-switch-account:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

/* Preenchimento Rápido / Dica */
.auth-demo-hint {
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #71717A;
}

.auth-demo-chips {
  display: flex;
  gap: 6px;
}

.auth-demo-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #D4D4D8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-demo-chip:hover {
  background: rgba(255, 122, 0, 0.15);
  border-color: #FF7A00;
  color: #FF7A00;
}

.highlight-pulse {
  animation: fieldPulse 0.8s ease;
}

@keyframes fieldPulse {
  0% { border-color: #FF7A00; box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.3); }
  100% { border-color: #27272A; box-shadow: none; }
}

