:root {
  --bg-main: #0B0E14;
  --bg-card: #121824;
  --bg-card-hover: #182232;
  --bg-surface: #162030;
  --bg-input: #0E131C;
  
  --gold: #C5A059;
  --gold-light: #DFC282;
  --gold-dark: #9A7736;
  --gold-glow: rgba(197, 160, 89, 0.2);
  --border-gold: rgba(197, 160, 89, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #F3F4F6;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --c-blue: #3B82F6;
  --c-amber: #F59E0B;
  --c-purple: #A855F7;
  --c-cyan: #06B6D4;
  --c-emerald: #10B981;
  --c-gray: #64748B;
  --c-rose: #F43F5E;

  --font-sans: 'Plus Jakarta Sans', 'IBM Plex Sans', -apple-system, sans-serif;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

html, body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   1. LOGIN SCREEN
   ============================================================ */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at 50% 20%, rgba(197, 160, 89, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, #0D121B 0%, #080A0E 100%);
}

.login-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.brand-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  background: rgba(197, 160, 89, 0.08);
  box-shadow: 0 0 20px var(--gold-glow);
}

.login-brand h2 {
  font-family: var(--font-sans);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 700;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 8px;
}

.brand-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.login-err-msg {
  display: none;
  color: var(--c-rose);
  font-size: 12px;
  margin-bottom: 16px;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #0A0D14;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--gold-glow);
}

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

.login-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   2. DASHBOARD WRAPPER & NAVBAR
   ============================================================ */
.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.nav-brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold-light);
  font-weight: 600;
}

.nav-role-badge {
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.meta-capi-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--c-emerald);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.meta-capi-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.capi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.live-pulse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--c-emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--c-emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  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); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.nav-btn-gold {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.nav-btn-gold:hover {
  background: rgba(197, 160, 89, 0.25);
  border-color: var(--gold);
}

.nav-btn-danger:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--c-rose);
  color: var(--c-rose);
}

/* ============================================================
   3. METRICS RIBBON
   ============================================================ */
.metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.6) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: all 0.2s ease;
}

.metric-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-2px);
}

.metric-card-highlight {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.1) 0%, var(--bg-card) 100%);
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.2;
}

.metric-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.metric-gold { color: var(--gold-light); }
.metric-cyan { color: var(--c-cyan); }
.metric-emerald { color: var(--c-emerald); }

/* ============================================================
   4. TOOLBAR & FILTERS
   ============================================================ */
.toolbar-section {
  padding: 14px 24px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
}

.search-box input:focus {
  outline: none;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.filter-group select:focus {
  border-color: var(--gold);
}

/* ============================================================
   5. KANBAN BOARD & DUAL EVENT SECTIONS
   ============================================================ */
.kanban-area {
  flex: 1;
  padding: 20px 24px;
  overflow-x: hidden;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.kanban-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.kanban-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.kanban-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 4px;
}

.kanban-scroll-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #8b6b23, #c5a059);
  border-radius: 4px;
}

.kanban-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #e2c285;
}

.event-board-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
  gap: 12px;
}

.event-board-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.event-date-badge {
  padding: 4px 10px;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.event-date-badge-imersao {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--c-cyan);
}

.event-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.5px;
}

.event-guest {
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
  background: rgba(197, 160, 89, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.event-board-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-pill-mesa, .stat-pill-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.stat-pill-mesa .pill-val {
  color: var(--c-emerald);
  font-weight: 800;
}

.stat-pill-total .pill-val {
  color: var(--gold-light);
  font-weight: 800;
}

/* Event Divider */
.event-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 10px 0;
}

.event-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.event-divider-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
}

.kanban-columns {
  display: flex;
  gap: 16px;
  min-width: max-content;
  align-items: flex-start;
}

.kanban-col {
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
}

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

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.col-count {
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* Col Dots */
.col-blue .col-dot { background: var(--c-blue); }
.col-amber .col-dot { background: var(--c-amber); }
.col-purple .col-dot { background: var(--c-purple); }
.col-indigo .col-dot { background: #818cf8; }
.col-rose .col-dot { background: var(--c-rose); }
.col-cyan .col-dot { background: var(--c-cyan); }
.col-emerald .col-dot { background: var(--c-emerald); }
.col-gray .col-dot { background: var(--c-gray); }

/* Priority Badges in Col Headers */
.col-title-wrap > div {
  display: flex;
  flex-direction: column;
}

.col-priority-badge {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 3px;
  width: fit-content;
}

.col-priority-badge.priority-1 {
  background: rgba(6, 182, 212, 0.16);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.col-priority-badge.priority-2 {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.col-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
}

/* Custom Scrollbar */
.col-cards::-webkit-scrollbar { width: 5px; }
.col-cards::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }
.col-cards::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================================
   6. LEAD CARD
   ============================================================ */
.lead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.lead-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  border: 1px dashed var(--gold);
}

.kanban-col.drag-hover {
  background: rgba(197, 160, 89, 0.08) !important;
  border: 1px dashed var(--gold) !important;
}

.card-stage-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 8px 0;
  padding: 6px 10px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.quick-stage-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.quick-stage-select {
  flex: 1;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  min-height: 30px;
}

.quick-stage-select:focus {
  border-color: var(--gold);
}

.lead-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.lead-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.lead-event-pill {
  font-size: 9px;
  padding: 2px 6px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.lead-specialty {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.lead-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.revenue-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.revenue-high {
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(197, 160, 89, 0.4);
}

.utm-pill {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg-input);
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-tag-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 6px;
  vertical-align: middle;
  line-height: 1;
}

.source-tag-meta {
  background: rgba(37, 99, 235, 0.22);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.2);
}

.source-tag-lp {
  background: rgba(197, 160, 89, 0.22);
  color: #f6e05e;
  border: 1px solid rgba(197, 160, 89, 0.5);
  box-shadow: 0 0 6px rgba(197, 160, 89, 0.2);
}

.lead-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lead-time {
  font-size: 11px;
  color: var(--text-muted);
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-call {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-call:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  color: #7dd3fc;
}

.btn-card-wa {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.25);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-wa:hover {
  background: rgba(37, 211, 102, 0.2);
}

/* Quick Move Stage Selector on Card (Touch & Click friendly) */
.card-stage-quick-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quick-stage-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.quick-stage-select {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.quick-stage-select:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.quick-stage-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

/* ============================================================
   7. MODAL STYLES
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-surface);
}

.modal-event-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-sub-info {
  font-size: 12px;
  color: var(--text-secondary);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow-y: auto;
  flex: 1;
}

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

.modal-col-left {
  padding: 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-col-right {
  padding: 24px;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dossier-section h4, .notes-section h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.info-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.info-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.info-gold {
  color: var(--gold-light);
}

.modal-contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-quick-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.btn-quick-call:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(56, 189, 248, 0.7);
  color: #bae6fd;
}

.btn-quick-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #25D366;
  color: #0A0D14;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease;
}

.btn-quick-wa:hover {
  filter: brightness(1.1);
}

.modal-challenge-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.utm-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-control-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-control-box label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.stage-select {
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.btn-save-stage {
  padding: 10px;
  background: var(--gold);
  color: #0A0D14;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save-stage:hover {
  filter: brightness(1.1);
}

.add-note-box textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  resize: vertical;
  margin-bottom: 8px;
}

.add-note-box textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-add-note {
  width: 100%;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-note:hover {
  background: rgba(197, 160, 89, 0.15);
}

.notes-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 10px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-author {
  font-weight: 700;
  color: var(--gold-light);
}

.timeline-text {
  font-size: 12px;
  color: var(--text-primary);
}

.note-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 14px 0;
}

/* --- 2-Step Lead Deletion Styles (Tarefa #279) --- */
.modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-danger-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger-lead:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.card-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-card-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #94A3B8;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #EF4444;
  color: #F87171;
  transform: scale(1.05);
}

.modal-card-delete {
  max-width: 520px;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(239, 68, 68, 0.15);
}

.modal-header-delete {
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #EF4444;
  margin-bottom: 4px;
}

.danger-title {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}

.modal-delete-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.delete-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm, 6px);
  padding: 12px 14px;
}

.warning-text {
  font-size: 12px;
  line-height: 1.5;
  color: #FCA5A5;
}

.delete-instruction p {
  font-size: 13px;
  color: var(--text-secondary, #CBD5E1);
  margin-bottom: 8px;
  line-height: 1.4;
}

.target-lead-pill {
  display: inline-block;
  padding: 8px 16px;
  background: #0B1019;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: 6px;
  color: #FBBF24;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.delete-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delete-input-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #94A3B8);
}

.delete-input-group input {
  width: 100%;
  padding: 11px 14px;
  background: #0B1019;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm, 6px);
  color: #FFFFFF;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.delete-input-group input:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.delete-match-status {
  font-size: 11px;
  color: var(--text-muted, #94A3B8);
}

.delete-match-status.status-match {
  color: #34D399;
  font-weight: 600;
}

.delete-match-status.status-mismatch {
  color: #F87171;
}

.modal-delete-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.btn-cancel-delete {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  color: var(--text-muted, #94A3B8);
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel-delete:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.btn-confirm-delete {
  padding: 10px 22px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm, 6px);
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.2s ease;
}

.btn-confirm-delete.btn-delete-active {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  border-color: #EF4444;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-confirm-delete.btn-delete-active:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Toast Notifications */
.circle-admin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111A28;
  border: 1px solid #10B981;
  color: #F8F9FA;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.2);
  z-index: 10001;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.circle-admin-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVIDADE MOBILE & TOPO EXECUTIVO PREMIUM (REGRA 8)
   ============================================================ */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .admin-navbar {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .nav-left {
    gap: 8px;
    flex: 1;
    min-width: 0;
  }

  .nav-brand-title {
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-brand-sub {
    font-size: 9px;
    display: none;
  }

  .nav-role-badge,
  .meta-capi-badge,
  .live-pulse {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-actions .nav-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .nav-actions .nav-btn span {
    display: none;
  }

  .metrics-ribbon {
    padding: 12px 14px;
    gap: 10px;
  }

  .filters-bar {
    padding: 12px 14px;
    gap: 10px;
  }

  .kanban-area {
    padding: 14px 10px;
  }

  .event-board-header {
    padding: 10px 12px;
  }

  .event-title {
    font-size: 14px;
  }
}

/* TAREFA #353: TAGS AZUL & BEGE */
.tag-badge-azul {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.7);
    color: #60A5FA;
}
.tag-badge-azul::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3B82F6;
    box-shadow: 0 0 6px #3B82F6;
}

.tag-badge-bege {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.7);
    color: #FBBF24;
}
.tag-badge-bege::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4AF37;
    box-shadow: 0 0 6px #D4AF37;
}

.metric-card-azul {
    border-left: 3px solid #3B82F6 !important;
}
.metric-card-bege {
    border-left: 3px solid #D4AF37 !important;
}
