/* ==========================================================================
   PSP TAX & TRANSAÇÃO HUB — DESIGN SYSTEM (DARK & 100% WHITE PSP)
   Identidade: PSP ADVOGADOS (Dilson Peres Junior Sociedade Individual de Advocacia)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- DARK PSP (PADRÃO BANCA DE LUXO) --- */
:root {
  --theme-mode: 'dark';
  --bg-primary: #06080D;
  --bg-secondary: #0D111A;
  --bg-tertiary: #131A26;
  --bg-card: rgba(15, 20, 32, 0.92);
  --bg-card-hover: rgba(22, 30, 48, 0.98);
  --bg-input: #090D14;
  --border-color: rgba(212, 175, 55, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(212, 175, 55, 0.5);

  /* Gold Palette */
  --gold-primary: #D4AF37;
  --gold-light: #F7E08A;
  --gold-dark: #AA771C;
  --gold-gradient: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 50%, #996515 100%);
  --gold-btn: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
  --gold-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);

  /* Text Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-inverse: #06080D;

  /* Status Colors */
  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.12);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.12);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.12);
  --status-info: #3B82F6;
  --status-info-bg: rgba(59, 130, 246, 0.12);
  --status-purple: #A855F7;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Geometry & Shadows */
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-sm: 5px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- VERSÃO 100% WHITE PSP (CLARO EXECUTIVO) --- */
[data-theme="light"], [data-theme="white"] {
  --theme-mode: 'light';
  --bg-primary: #FFFFFF !important;
  --bg-secondary: #F8FAFC !important;
  --bg-tertiary: #F1F5F9 !important;
  --bg-card: #FFFFFF !important;
  --bg-card-hover: #F8FAFC !important;
  --bg-input: #FFFFFF !important;
  --border-color: rgba(184, 134, 11, 0.35) !important;
  --border-subtle: #E2E8F0 !important;
  --border-glow: rgba(184, 134, 11, 0.5) !important;

  /* Gold Palette adaptada ao fundo claro para contraste ideal */
  --gold-primary: #B8860B !important;
  --gold-light: #996515 !important;
  --gold-dark: #7A5907 !important;
  --gold-gradient: linear-gradient(135deg, #FAF0E6 0%, #D4AF37 50%, #B8860B 100%) !important;
  --gold-btn: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  --gold-shadow: 0 4px 16px rgba(184, 134, 11, 0.2) !important;

  /* Text Colors */
  --text-primary: #0F172A !important;
  --text-secondary: #334155 !important;
  --text-muted: #64748B !important;
  --text-inverse: #FFFFFF !important;

  /* Status Colors */
  --status-success: #059669 !important;
  --status-success-bg: rgba(5, 150, 105, 0.1) !important;
  --status-warning: #D97706 !important;
  --status-warning-bg: rgba(217, 119, 6, 0.1) !important;
  --status-danger: #DC2626 !important;
  --status-danger-bg: rgba(220, 38, 38, 0.1) !important;
  --status-info: #2563EB !important;
  --status-info-bg: rgba(37, 99, 235, 0.1) !important;

  --card-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* TOP NAVBAR */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.8rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-monogram {
  background: var(--gold-btn);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 2.5px;
  box-shadow: var(--gold-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* User / Multi-tenant Profile Switcher */
.role-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.role-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.role-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Botão Ícone Único: SOL ou LUA */
.theme-icon-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-icon-btn:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--border-glow);
  transform: scale(1.05);
}

/* Status do Certificado e-CNPJ da PSP */
.system-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--status-success);
  font-weight: 700;
  background: var(--status-success-bg);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-success);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* SUB-NAV TABS */
.sub-nav {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.8rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.nav-tab {
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--text-primary);
  border-bottom-color: rgba(212, 175, 55, 0.5);
}

.nav-tab.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
  background: linear-gradient(to top, rgba(212, 175, 55, 0.08), transparent);
}

.nav-tab-badge {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.nav-tab.active .nav-tab-badge {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

/* MAIN APP CONTAINER */
.app-container {
  flex: 1;
  padding: 1.5rem 1.8rem;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
}

/* KPI STRIP RESTRITO A DADOS OPERACIONAIS JURÍDICOS (SEM ECONOMIA SAAS) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.kpi-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-btn);
}

.kpi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
}

.kpi-icon {
  font-size: 1.15rem;
  color: var(--gold-primary);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.kpi-subtitle {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* CRM CONTROLS & VIEW SWITCHER (KANBAN VS TABELA) */
.kanban-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* View Switcher: Kanban vs Linhas */
.view-toggle-group {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.view-toggle-btn.active {
  background: var(--gold-primary);
  color: #000;
  font-weight: 700;
}

/* Filtro de Status de Leads: Todos vs Falamos vs Ativos */
.lead-status-filter-group {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.status-filter-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.status-filter-btn.active {
  background: var(--bg-tertiary);
  color: var(--gold-primary);
  border: 1px solid var(--border-color);
  font-weight: 700;
}

.kanban-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  width: 320px;
  gap: 0.5rem;
}

.kanban-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 100%;
}

.btn-primary {
  background: var(--gold-btn);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: var(--gold-shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
}

/* KANBAN BOARD */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  min-height: 600px;
}

.kanban-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.kanban-column-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.column-count {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  color: var(--gold-primary);
  font-weight: 700;
}

.column-body {
  padding: 0.75rem;
  overflow-y: auto !important;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

/* LEAD CARD */
.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.95rem;
  cursor: grab;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
}

.lead-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.lead-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.lead-cnpj {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.lead-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-rating-d {
  background: var(--status-success-bg);
  color: var(--status-success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-rating-b {
  background: var(--status-warning-bg);
  color: var(--status-warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lead-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.lead-finance-grid {
  display: flex;
  justify-content: space-between;
  background: var(--bg-tertiary);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
}

.finance-col {
  display: flex;
  flex-direction: column;
}

.finance-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.finance-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.finance-val.discount {
  color: var(--status-success);
}

.lead-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.lead-closer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lead-actions-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  font-weight: 600;
}

.lead-actions-btn:hover {
  background: var(--gold-primary);
  color: #000;
}

/* ==========================================================================
   MODO TABELA DE DADOS EM LINHAS (DATA TABLE)
   ========================================================================== */
.leads-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.leads-table th {
  background: var(--bg-tertiary);
  padding: 0.9rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.leads-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.leads-table tr:hover td {
  background: var(--bg-card-hover);
}

.table-status-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

/* SIMULADOR & COPILOT */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 1.8rem;
}

.sim-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.quick-samples {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.sample-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.sample-chip:hover, .sample-chip.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-label-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.range-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.slider-val-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 60px;
  text-align: center;
}

.prcap-banner {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(13, 17, 26, 0.9) 100%);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .prcap-banner {
  background: linear-gradient(135deg, #FFFDF5 0%, #FAF6E8 100%);
}

.prcap-info {
  display: flex;
  flex-direction: column;
}

.prcap-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.prcap-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: .25s;
  border-radius: 34px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: var(--text-muted);
  transition: .25s;
  border-radius: 50%;
}
input:checked + .slider {
  background: var(--gold-btn);
  border-color: var(--gold-primary);
}
input:checked + .slider:before {
  transform: translateX(22px);
  background-color: #000;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.82rem;
}

.comparison-table th {
  background: var(--bg-tertiary);
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th.highlight-th {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

.comparison-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.comparison-table td.highlight-td {
  background: rgba(212, 175, 55, 0.08);
  font-weight: 700;
  color: var(--gold-primary);
  border-left: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
}

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

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.spotlight-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
}

.spotlight-card.savings {
  border-color: var(--status-success);
  background: var(--status-success-bg);
}

.spotlight-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.spotlight-val {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
}

.spotlight-val.green {
  color: var(--status-success);
}

.copilot-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.8rem;
}

.battlecards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.battlecard-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.battlecard-header {
  padding: 0.9rem 1.1rem;
  background: var(--bg-tertiary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.battlecard-header:hover {
  color: var(--gold-primary);
}

.battlecard-content {
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
}

.script-box {
  background: var(--bg-input);
  border-left: 3px solid var(--gold-primary);
  padding: 0.75rem 1rem;
  margin: 0.6rem 0;
  font-style: italic;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.proposal-preview-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--card-shadow);
  max-width: 900px;
  margin: 0 auto;
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.8rem;
  border-bottom: 2px solid var(--gold-primary);
  margin-bottom: 2rem;
}

.proposal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.proposal-meta {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.proposal-section {
  margin-bottom: 2rem;
}

.proposal-sec-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   REGRAS RIGOROSAS DE IMPRESSÃO — PAPEL TIMBRADO FORENSE (PDF / A4)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 20mm 15mm 20mm 15mm;
  }

  html, body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: "Times New Roman", Times, Georgia, serif !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* OCULTA RIGOROSAMENTE QUALQUER COMPONENTE DO DASHBOARD, KPIS, TOPO E ABAS */
  .top-nav,
  .sub-nav,
  .kpi-grid,
  .kanban-controls,
  .theme-icon-btn,
  .system-status,
  .btn-primary,
  .btn-secondary,
  .lead-actions-btn,
  .contract-toolbar,
  .contract-tuning-grid,
  .contract-impact-strip,
  .comparison-table,
  .sim-panel,
  .no-print,
  #modal-novo-lead,
  #view-kanban,
  #view-simulador,
  #view-copilot,
  #view-contratos,
  #view-drive,
  #view-integracoes,
  #view-diretoria {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .app-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  #view-propostas {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #proposals-container, #contract-view-inner-container {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* EXIBE COM EXCLUSIVIDADE O INSTRUMENTO CONTRATUAL TIMBRADO */
  .legal-contract-container,
  .forensic-paper,
  #printable-contract {
    display: block !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    color: #000000 !important;
  }

  .forensic-timbre {
    border-bottom: 2pt solid #000000 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.8rem !important;
  }

  .timbre-monogram {
    font-size: 14pt !important;
    font-weight: bold !important;
    color: #000000 !important;
    letter-spacing: 2px !important;
  }

  .timbre-corp, .timbre-sub, .timbre-addr {
    color: #222222 !important;
    font-size: 8.5pt !important;
  }

  .forensic-doc-title {
    font-size: 12pt !important;
    font-weight: bold !important;
    color: #000000 !important;
  }

  .forensic-doc-sub, .forensic-doc-meta {
    font-size: 9.5pt !important;
    color: #333333 !important;
  }

  .forensic-paragraph, p {
    color: #000000 !important;
    text-align: justify !important;
    font-size: 11pt !important;
    line-height: 1.5 !important;
    orphans: 3;
    widows: 3;
  }

  .legal-clause-title {
    color: #000000 !important;
    font-size: 11.5pt !important;
    font-weight: bold !important;
    page-break-after: avoid !important;
    margin-top: 1.2rem !important;
  }

  .legal-signatures-block {
    page-break-inside: avoid !important;
    margin-top: 3rem !important;
  }

  .sig-line {
    border-bottom: 1pt solid #000000 !important;
  }
}

/* ==========================================================================
   MOTOR DE CONTRATOS & CALIBRAÇÃO DINÂMICA
   ========================================================================== */
.contract-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--card-shadow);
}

.contract-tuning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.tuning-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tuning-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contract-impact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.impact-item {
  display: flex;
  flex-direction: column;
}

.impact-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.impact-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0.15rem 0;
}

.impact-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.impact-divider {
  width: 1px;
  height: 38px;
  background: var(--border-subtle);
}

/* INSTRUMENTO JURÍDICO A4 — FORMATO TIMBRADO FORENSE */
.legal-contract-container.forensic-paper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4rem 3.5rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  max-width: 880px;
  margin: 0 auto 3rem auto;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 11pt;
  line-height: 1.65;
}

[data-theme="light"] .legal-contract-container.forensic-paper {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.forensic-timbre {
  text-align: center;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 1.2rem;
  margin-bottom: 2.2rem;
}

[data-theme="light"] .forensic-timbre {
  border-bottom: 2px solid #0F172A;
}

.timbre-monogram {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: 0.2rem;
}

[data-theme="light"] .timbre-monogram {
  color: #0F172A;
}

.timbre-corp {
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.timbre-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.timbre-addr {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.forensic-doc-title-block {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.forensic-doc-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.forensic-doc-sub {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.forensic-doc-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

.forensic-body {
  text-align: justify;
}

.forensic-paragraph {
  text-indent: 2cm;
  text-align: justify;
  margin-bottom: 0.9rem;
  line-height: 1.65;
}

.forensic-paragraph strong {
  font-weight: 700;
}

.legal-clause {
  margin-bottom: 1.8rem;
}

.legal-clause-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.3px;
}

.legal-signatures-block {
  display: flex;
  justify-content: space-between;
  margin-top: 3.5rem;
  padding-top: 2rem;
  gap: 2rem;
  text-align: center;
  font-size: 0.8rem;
}

.sig-col {
  flex: 1;
}

.sig-line {
  border-bottom: 1px solid var(--text-muted);
  height: 45px;
  margin-bottom: 0.6rem;
}

@media (max-width: 1024px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-container, .copilot-grid, .contract-tuning-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COMMERCIAL FLOW & VAULT STYLES (SOP-003 / SOP-013 / SOP-017)
   ========================================================================== */
.campaign-tag-pill {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(184, 134, 11, 0.08);
  color: var(--gold-light);
  border: 1px solid rgba(184, 134, 11, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

[data-theme="light"] .campaign-tag-pill {
  background: #FFFDF7 !important;
  color: #996515 !important;
  border-color: rgba(184, 134, 11, 0.35) !important;
}

.meeting-status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.1;
}

.meeting-agendada {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.meeting-realizada {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.meeting-noshow {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.meeting-aguardando {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lead-andamento-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.25;
  margin: 0.35rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  margin-bottom: 0.35rem;
}

.lead-whatsapp-btn {
  color: #22c55e;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  transition: var(--transition-smooth);
}

.lead-whatsapp-btn:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
}

.vault-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  width: 95%;
  max-width: 1050px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.vault-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.vault-results-table th {
  background: var(--bg-tertiary);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.vault-results-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.vault-results-table tr:hover td {
  background: var(--bg-card-hover);
}

/* ==========================================================================
   NOVO DESIGN DE CARD KANBAN ULTRA-CLEAN & MODAL CENTRAL (DOSSIÊ 360°)
   ========================================================================== */

.clean-kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.85rem;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  flex-shrink: 0 !important;
  min-height: fit-content !important;
  box-sizing: border-box;
}

[data-theme="dark"] .clean-kanban-card {
  background: #0d1527;
  border-color: rgba(212, 175, 55, 0.22);
}

[data-theme="light"] .clean-kanban-card {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.28) !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
}

.clean-kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.18);
}

[data-theme="light"] .clean-kanban-card:hover {
  box-shadow: 0 10px 24px rgba(184, 134, 11, 0.16) !important;
  border-color: #b8860b !important;
}

.clean-kanban-card .lead-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contatos Essenciais (Foco Branco e Dourado) */
.card-essential-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-tertiary);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

[data-theme="light"] .card-essential-contacts {
  background: #ffffff !important;
  border: 1px solid rgba(184, 134, 11, 0.18) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

.card-contact-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.card-contact-line.empty-contact {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.68rem;
}

.card-wa-icon {
  text-decoration: none;
  font-size: 0.75rem;
  margin-left: 0.25rem;
  transition: transform 0.15s ease;
  display: inline-flex;
}

.card-wa-icon:hover {
  transform: scale(1.3);
}

/* Strip de Valores (Foco Branco e Dourado) */
.card-values-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}

[data-theme="light"] .card-values-strip {
  background: #FFFDF7 !important;
  border: 1px solid rgba(184, 134, 11, 0.24) !important;
}

.card-val-block {
  display: flex;
  flex-direction: column;
}

.card-val-block.text-right {
  text-align: right;
  align-items: flex-end;
}

.card-val-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="light"] .card-val-label {
  color: #996515 !important;
  font-weight: 700 !important;
}

.card-val-number {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-val-number.highlight-discount {
  color: #10b981;
}

[data-theme="light"] .card-val-number.highlight-discount {
  color: #059669 !important;
}

/* Rodapé do Card */
.card-clean-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  padding-top: 0.15rem;
}

.card-closer-pill {
  color: var(--text-muted);
  font-weight: 600;
}

.card-click-hint {
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.68rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.clean-kanban-card:hover .card-click-hint {
  opacity: 1;
  transform: translateX(3px);
}

/* ==========================================================================
   MODAL CENTRAL DO DOSSIÊ DO LEAD (POPUP CENTRALIZADO)
   ========================================================================== */

.lead-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 20, 0.84);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: fadeInModal 0.2s ease-out;
}

.lead-modal-window {
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  border-radius: 16px;
  width: 92%;
  max-width: 840px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.18);
  animation: scaleUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .lead-modal-window {
  background: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 20px rgba(212, 175, 55, 0.12);
}

.lead-modal-header {
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-secondary);
}

[data-theme="light"] .lead-modal-header {
  background: #f8fafc;
}

.lead-modal-body {
  padding: 1.6rem 1.8rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.lead-modal-footer {
  padding: 1rem 1.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  flex-wrap: wrap;
  gap: 0.6rem;
}

[data-theme="light"] .lead-modal-footer {
  background: #f8fafc;
}

.mld-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .mld-section-grid {
    grid-template-columns: 1fr;
  }
}

.mld-card-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

[data-theme="light"] .mld-card-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.mld-card-header {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

[data-theme="light"] .mld-card-header {
  color: #b48310;
}

.mld-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.mld-field-label {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.mld-field-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
}

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}



