/* ==========================================================
   MIDNIGHT SIGNAL DESIGN SYSTEM — FATHOM AI CONSOLE
   Dr. Mídias Assessoria · Daniel Ramos
   ========================================================== */

:root {
  --black: #000000;
  --bg: #020509;
  --bg-deep: #000204;
  --surface: #07111A;
  --surface-raised: #0C1C2A;
  --surface-hover: #152735;
  
  --blue-500: #4686B7;   /* Signal Blue */
  --blue-400: #5E9FD1;
  --blue-300: #88C1ED;   /* Sky Blue / Accent */
  --blue-200: #CBE5F6;
  --blue-100: #E6F2FB;
  --white: #FFFFFF;
  
  --emerald: #10B981;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --purple: #8B5CF6;
  --purple-dim: rgba(139, 92, 246, 0.15);

  --text-main: #F4F8FB;
  --text-sub: rgba(244, 248, 251, 0.70);
  --text-muted: rgba(244, 248, 251, 0.44);
  --text-dim: rgba(244, 248, 251, 0.22);
  
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.10);
  --blur: 16px;
  
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 20px 40px -15px rgba(0, 0, 0, 0.9);
  --glow-sm: 0 0 14px rgba(136, 193, 237, 0.45);
  --glow-md: 0 0 32px rgba(136, 193, 237, 0.35);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

/* Scrollbar Midnight Signal */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020509;
}
::-webkit-scrollbar-thumb {
  background: rgba(70, 134, 183, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(136, 193, 237, 0.7);
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.admin-app {
  height: 100vh;
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* TOPBAR */
.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 20px;
  flex-shrink: 0;
  z-index: 10;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--blue-300);
  border-radius: 50%;
  box-shadow: var(--glow-sm);
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-400);
  background: rgba(70, 134, 183, 0.15);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(70, 134, 183, 0.3);
}

.topbar-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.topbar-search svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.topbar-search input {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px 9px 40px;
  color: var(--text-main);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s;
}

.topbar-search input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(70, 134, 183, 0.2);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.api-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald);
  background: var(--emerald-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.status-pulse {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #25D366; /* WhatsApp brand emerald or Signal Blue */
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--text-main);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--r-sm);
}

/* MAIN LAYOUT */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 380px;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.filter-pills {
  display: flex;
  padding: 12px 14px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.pill {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-sub);
  padding: 5px 10px;
  font-size: 11.5px;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.pill:hover {
  border-color: var(--line-strong);
  color: var(--text-main);
}

.pill.active {
  background: rgba(70, 134, 183, 0.2);
  border-color: var(--blue-400);
  color: var(--blue-300);
  font-weight: 600;
}

.meetings-counter {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.meetings-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meeting-card {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meeting-card:hover {
  background: var(--surface-raised);
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.meeting-card.selected {
  background: var(--surface-raised);
  border-color: var(--blue-400);
  box-shadow: 0 0 16px rgba(70, 134, 183, 0.25);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--r-sm);
  text-transform: uppercase;
  font-weight: 600;
}

.badge-lead_comercial {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge-cliente_ativo {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-onboarding {
  background: rgba(139, 92, 246, 0.18);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.card-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.card-client {
  font-size: 12px;
  color: var(--blue-300);
}

.card-preview {
  font-size: 11px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* DETAIL PANE */
.detail-pane {
  flex: 1;
  background: var(--bg);
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h2 {
  color: var(--text-main);
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 480px;
  font-size: 14px;
  line-height: 1.6;
}

.detail-content {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* MEETING HEADER */
.meeting-header {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: rgba(70, 134, 183, 0.2);
  color: var(--blue-300);
  border: 1px solid rgba(70, 134, 183, 0.4);
  padding: 2px 8px;
  border-radius: var(--r-sm);
}

.id-tag, .date-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.header-client {
  font-size: 14px;
  color: var(--blue-300);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* TABS NAV */
.tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-main);
  background: var(--surface);
}

.tab-btn.active {
  color: var(--blue-300);
  background: var(--surface-raised);
  font-weight: 600;
}

.tab-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-300);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--blue-300);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* WHATSAPP BANNER */
.whatsapp-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.45;
}

.task-checkbox {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--emerald);
}

.task-text {
  flex: 1;
}

.whatsapp-raw-preview {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-100);
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 280px;
  overflow-y: auto;
}

/* TIMELINE HISTÓRICO */
.timeline-container {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue-400);
  box-shadow: 0 0 8px rgba(70, 134, 183, 0.4);
}

.timeline-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-300);
  font-weight: 600;
}

.timeline-obj {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.timeline-preview {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
}

/* CARDS & GRIDS */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.glass-card.mt-4 {
  margin-top: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.card-header.space-between {
  justify-content: space-between;
}

.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.card-icon {
  font-size: 16px;
}

.dossier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-item {
  font-size: 13px;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.dossier-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue-400);
  font-weight: bold;
}

.dossier-item.pain::before { color: #EF4444; }
.dossier-item.objective::before { color: #10B981; }
.dossier-item.financial::before { color: #F59E0B; }
.dossier-item.objection::before { color: #F97316; }

/* SCOPE PILLARS */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.scope-pillar {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
}

.scope-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-200);
  margin-bottom: 6px;
}

.scope-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.scope-deliverables {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scope-deliverable {
  font-size: 12px;
  color: var(--text-sub);
  padding-left: 12px;
  position: relative;
}

.scope-deliverable::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-size: 10px;
}

/* PROPOSAL MODELS */
.proposal-highlight-card {
  border-color: rgba(70, 134, 183, 0.4);
  background: linear-gradient(180deg, rgba(7, 17, 26, 0.95) 0%, rgba(12, 28, 42, 0.9) 100%);
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.model-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-200);
}

.model-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 4px;
}

.model-label { color: var(--text-muted); }
.model-val {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.model-highlights {
  font-size: 12px;
  color: var(--text-sub);
  font-style: italic;
  margin-top: 4px;
}

/* MARKDOWN & TRANSCRIPT */
.markdown-render {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

.markdown-render h2 {
  font-size: 16px;
  color: var(--blue-200);
  margin: 18px 0 8px 0;
}

.markdown-render h3 {
  font-size: 14px;
  color: var(--text-main);
  margin: 12px 0 6px 0;
}

.markdown-render ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.markdown-render a {
  color: var(--blue-300);
  text-decoration: none;
}

.markdown-render a:hover {
  text-decoration: underline;
}

.transcript-body {
  max-height: 550px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 8px;
}

.transcript-bubble {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
}

.bubble-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.bubble-speaker {
  font-weight: 600;
  font-size: 12px;
  color: var(--blue-300);
}

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

.bubble-text {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.45;
}

/* UTILS */
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--blue-400);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto 10px auto;
}

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

.loading-state {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
}

.flex-row { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.text-muted { color: var(--text-muted); }
.font-mono { font-family: var(--font-mono); }
.input-sm {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-main);
  padding: 4px 10px;
  font-size: 12px;
  outline: none;
}
.input-sm:focus { border-color: var(--blue-400); }

/* ==========================================================
   PREMIUM EXECUTIVE SUMMARY STYLING (MODELO ESTAMOS VIVENDO)
   DR Mídias Assessoria · Daniel Ramos Console
   ========================================================== */

/* Hero da Reunião */
.meeting-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 17, 26, 0.9) 0%, rgba(2, 5, 9, 0.95) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85);
}

.hero-light-effect {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 180px;
  background: radial-gradient(ellipse at 50% 0%, rgba(136, 193, 237, 0.25) 0%, rgba(70, 134, 183, 0.08) 50%, rgba(2, 5, 9, 0) 80%);
  pointer-events: none;
  z-index: 0;
}

.meeting-hero-content {
  position: relative;
  z-index: 1;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 17, 26, 0.85);
  border: 1px solid rgba(136, 193, 237, 0.25);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 12px;
  box-shadow: 0 0 14px rgba(136, 193, 237, 0.15);
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 8px var(--blue-300);
}

.meeting-hero-title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 18px;
}

.meeting-hero-title .accent {
  color: var(--blue-300);
  font-weight: 500;
}

/* Card 2x2 Modelado em Estamos Vivendo */
.hero-meta-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(7, 17, 26, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 20px;
}

@media (max-width: 900px) {
  .hero-meta-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.meta-label {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.meta-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
}

.meta-value.status-active {
  color: var(--emerald);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

/* Seções Executivas */
.summary-section {
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 6px;
}

.section-title {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title .accent {
  color: var(--blue-300);
  font-weight: 600;
}

/* Card de Objetivo */
.objective-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue-400);
  border-radius: var(--r-md);
  padding: 20px 24px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.objective-quote-mark {
  font-family: serif;
  font-size: 40px;
  line-height: 1;
  color: var(--blue-300);
  opacity: 0.4;
  flex-shrink: 0;
}

.objective-content {
  flex: 1;
}

.objective-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Grid de Conclusões */
.conclusions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .conclusions-grid {
    grid-template-columns: 1fr;
  }
}

.conclusion-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}

.conclusion-card:hover {
  background: var(--surface-raised);
  border-color: rgba(136, 193, 237, 0.3);
  transform: translateY(-2px);
}

.conclusion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.conclusion-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(70, 134, 183, 0.18);
  color: var(--blue-300);
  border: 1px solid rgba(70, 134, 183, 0.35);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.conclusion-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.conclusion-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  flex: 1;
}

/* Tópicos Aprofundados (Pillars) */
.topics-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.topic-pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.topic-pillar-card:hover {
  border-color: var(--line-strong);
}

.topic-pillar-header {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pillar-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-400);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-300);
  background: rgba(70, 134, 183, 0.15);
  border: 1px solid rgba(70, 134, 183, 0.3);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.pillar-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 1. Síntese Narrativa Executiva ("O Que Ficou Definido") */
.topic-synthesis-box {
  background: linear-gradient(135deg, rgba(70, 134, 183, 0.12) 0%, rgba(136, 193, 237, 0.04) 100%);
  border: 1px solid rgba(70, 134, 183, 0.3);
  border-left: 4px solid var(--blue-400);
  border-radius: var(--r-md);
  padding: 16px 20px;
}

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

.synthesis-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--blue-300);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.synthesis-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  box-shadow: 0 0 8px var(--blue-400);
}

.synthesis-content {
  font-size: 14px;
  line-height: 1.7;
  color: #E2E8F0;
}

/* 2. Grid de Especificações & Parâmetros Estruturados */
.topic-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.spec-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-card:hover {
  border-color: rgba(70, 134, 183, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.spec-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spec-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-400);
}

.spec-card-content {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sub);
}

.spec-sublist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.spec-subitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}

.spec-subitem-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-300);
  margin-top: 7px;
  flex-shrink: 0;
}

.spec-subitem-label {
  font-weight: 600;
  color: var(--text-main);
}

/* 3. Atribuições & Responsabilidades do Tópico */
.topic-tasks-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  padding: 16px 18px;
}

@media (max-width: 768px) {
  .topic-tasks-row {
    grid-template-columns: 1fr;
  }
}

.topic-task-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-col-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-col-header.drm {
  color: var(--blue-300);
}

.task-col-header.client {
  color: var(--emerald-400);
}

.topic-task-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-sub);
}

.task-check-icon {
  color: var(--emerald-400);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 11px;
  margin-top: 2px;
}

/* Panorama Estratégico da Reunião (Topo da Aba) */
.meeting-overview-box {
  background: linear-gradient(135deg, rgba(70, 134, 183, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(70, 134, 183, 0.35);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.meeting-overview-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400) 0%, var(--blue-400) 50%, var(--emerald-400) 100%);
}

.overview-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: #F1F5F9;
  margin-bottom: 16px;
}

.overview-footer-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.overview-stat-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--r-full);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.overview-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.6;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.pillar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pillar-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  margin-top: 8px;
  flex-shrink: 0;
}

.pillar-item-content {
  flex: 1;
}

/* Sub-itens indentados */
.pillar-sublist {
  margin-top: 8px;
  margin-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pillar-subitem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.pillar-subitem::before {
  content: "↳";
  color: var(--blue-300);
  font-family: var(--font-mono);
}

/* Pills de Métricas e Destaque */
.metric-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(70, 134, 183, 0.22);
  color: #CBE5F6;
  border: 1px solid rgba(136, 193, 237, 0.45);
  padding: 1px 7px;
  border-radius: 4px;
  margin: 0 3px;
}

.currency-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 1px 7px;
  border-radius: 4px;
  margin: 0 3px;
}

.percent-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.45);
  padding: 1px 7px;
  border-radius: 4px;
  margin: 0 3px;
}

.timestamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-300);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.timestamp-pill:hover {
  background: rgba(70, 134, 183, 0.25);
  border-color: var(--blue-300);
  color: #fff;
  transform: translateY(-1px);
}

.play-icon {
  font-size: 9px;
  color: var(--blue-300);
}

/* ==========================================================
   SÍNTESE EXECUTIVA NARRATIVA & APONTAMENTOS CLARIFICADOS
   ========================================================== */

/* Card de Panorama Geral */
.overall-narrative-card {
  background: rgba(12, 28, 42, 0.7);
  border: 1px solid rgba(136, 193, 237, 0.25);
  border-left: 4px solid var(--blue-400);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.narrative-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 8px;
}

.narrative-text {
  font-size: 14.5px;
  color: #F4F8FB;
  line-height: 1.65;
  font-weight: 400;
}

/* Caixa "O Que Ficou Definido" dentro de cada tópico */
.topic-synthesis-box {
  background: linear-gradient(135deg, rgba(70, 134, 183, 0.12) 0%, rgba(7, 17, 26, 0.5) 100%);
  border: 1px solid rgba(136, 193, 237, 0.3);
  border-left: 3px solid var(--blue-400);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.synthesis-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 6px;
}

.synthesis-desc {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.6;
  font-weight: 400;
}

/* Especificações Detalhadas & Agrupamentos */
.topic-specs-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 12px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spec-group-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 10px;
}

.spec-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.spec-group-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue-200);
}

.spec-children-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 8px;
}

.spec-child-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
}

.spec-child-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.spec-child-bullet {
  color: var(--blue-400);
  font-size: 11px;
}

.spec-child-label {
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================
   MODAL COMPARTILHAR PORTAL DO CLIENTE
   ========================================================== */
.btn-portal-highlight {
  background: linear-gradient(135deg, rgba(70, 134, 183, 0.25) 0%, rgba(136, 193, 237, 0.15) 100%);
  border: 1px solid rgba(136, 193, 237, 0.45);
  color: #FFFFFF;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-portal-highlight:hover {
  background: linear-gradient(135deg, rgba(70, 134, 183, 0.4) 0%, rgba(136, 193, 237, 0.25) 100%);
  border-color: var(--blue-300);
  box-shadow: 0 0 16px rgba(70, 134, 183, 0.4);
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 5, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.2s ease-out;
}

.modal-card {
  background: #07111A;
  border: 1px solid rgba(70, 134, 183, 0.35);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-icon {
  font-size: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

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

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

.form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue-300);
}

.input-copy-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-link-input {
  flex: 1;
  background: #020509;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  outline: none;
}

.portal-link-input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 10px rgba(70, 134, 183, 0.3);
}

.portal-message-textarea {
  background: #020509;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F1F5F9;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--r-md);
  outline: none;
  resize: vertical;
}

.portal-message-textarea:focus {
  border-color: var(--blue-400);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}
