/* =====================================================
   NousTrader Brandbook — Refinements v1.1
   Rodada 2: Gramática Visual + Imagética + Data Viz +
   UI Expression + Aplicações + Cores + Tipografia + Governança
   ===================================================== */

/* ==================== GRAMÁTICA VISUAL PROPRIETÁRIA ==================== */

/* Farol arc — decorative SVG background motif */
.farol-arc {
  position: relative;
  overflow: hidden;
}
.farol-arc::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 147, 8, 0.12);
  top: -160px;
  right: -120px;
  pointer-events: none;
}
.farol-arc::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(240, 147, 8, 0.07);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

/* Grammar rule card */
.grammar-card {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}
.grammar-card:hover { box-shadow: var(--shadow-md); }

.grammar-card-symbol {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.grammar-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-2);
}

.grammar-card-desc {
  font-size: var(--text-sm);
  color: #3D4F60;
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.grammar-card-rule {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  border-top: 1px solid var(--surface-200);
  padding-top: var(--space-3);
  margin-top: auto;
}

.grammar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* SVG symbol previews inline */
.symbol-preview {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.symbol-item {
  text-align: center;
}

.symbol-item svg {
  display: block;
  margin: 0 auto var(--space-3);
}

.symbol-item-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

/* Convergence lines decoration */
.converge-lines {
  position: relative;
  height: 80px;
  overflow: hidden;
  margin: var(--space-4) 0;
}

.converge-line {
  position: absolute;
  bottom: 0;
  height: 1px;
  background: var(--brand-orange);
  transform-origin: right center;
  opacity: 0.4;
}

/* Intensity scale */
.intensity-scale {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  margin-top: var(--space-4);
}

.intensity-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--brand-orange);
}

.intensity-label {
  font-size: 11px;
  color: #9CA3AF;
  text-align: center;
  margin-top: var(--space-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==================== IMAGÉTICA REFINADA ==================== */

/* Context spec card */
.context-spec {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  transition: box-shadow var(--transition-base);
}
.context-spec:hover { box-shadow: var(--shadow-sm); }

.context-spec-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-50);
  border-bottom: 1px solid var(--surface-200);
  cursor: pointer;
  user-select: none;
}

.context-spec-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.context-spec-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  flex: 1;
}

.context-spec-toggle {
  font-size: 12px;
  color: #9CA3AF;
  transition: transform var(--transition-fast);
}
.context-spec.open .context-spec-toggle { transform: rotate(180deg); }

.context-spec-body {
  display: none;
  padding: var(--space-5) var(--space-6);
}
.context-spec.open .context-spec-body { display: block; }

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface-100);
  font-size: var(--text-sm);
}
.spec-row:last-child { border-bottom: none; }

.spec-label {
  font-weight: 700;
  color: var(--ink-700);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.spec-value {
  color: #3D4F60;
  line-height: 1.6;
}

.spec-value.good { color: var(--state-success); }
.spec-value.avoid { color: var(--state-danger); }

/* Fotografia criteria grid */
.foto-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.foto-criterion {
  border-radius: var(--border-radius);
  padding: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.foto-criterion.yes {
  background: var(--state-success-bg);
  border: 1px solid rgba(31,143,95,0.20);
  color: #1A5C3A;
}

.foto-criterion.no {
  background: var(--state-danger-bg);
  border: 1px solid rgba(194,65,65,0.20);
  color: #7A3030;
}

.foto-criterion-head {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.foto-criterion.yes .foto-criterion-head { color: var(--state-success); }
.foto-criterion.no .foto-criterion-head { color: var(--state-danger); }

/* ==================== DATA VIZ REFINADA ==================== */

/* Semantic data type badge */
.data-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-type-op {
  background: rgba(59,130,246,0.12);
  color: #1E50A8;
  border: 1px solid rgba(59,130,246,0.25);
}
.data-type-emo {
  background: rgba(217,119,6,0.12);
  color: #92660A;
  border: 1px solid rgba(217,119,6,0.25);
}
.data-type-risk {
  background: rgba(194,65,65,0.12);
  color: #8B2424;
  border: 1px solid rgba(194,65,65,0.25);
}
.data-type-insight {
  background: rgba(31,143,95,0.12);
  color: #155D3B;
  border: 1px solid rgba(31,143,95,0.25);
}
.data-type-neutral {
  background: var(--surface-100);
  color: #6B7280;
  border: 1px solid var(--surface-300);
}

/* Chart type spec card */
.chart-spec-card {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: start;
  transition: box-shadow var(--transition-base);
}
.chart-spec-card:hover { box-shadow: var(--shadow-sm); }

.chart-spec-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  background: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chart-spec-content {}
.chart-spec-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-1);
}
.chart-spec-when {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: var(--space-2);
}
.chart-spec-desc {
  font-size: var(--text-sm);
  color: #6B7280;
  line-height: 1.55;
}
.chart-spec-tags {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.chart-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* Score ring visualization */
.score-ring-demo {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  background: var(--ink-900);
  padding: var(--space-8);
  border-radius: var(--border-radius-lg);
  align-items: center;
  justify-content: center;
}

.score-ring {
  text-align: center;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 auto var(--space-3);
  position: relative;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.score-high .score-circle {
  background: rgba(31,143,95,0.15);
  color: #34D399;
}
.score-high .score-circle::before { border-color: rgba(52,211,153,0.4); }

.score-mid .score-circle {
  background: rgba(217,119,6,0.15);
  color: var(--brand-orange);
}
.score-mid .score-circle::before { border-color: rgba(240,147,8,0.4); }

.score-low .score-circle {
  background: rgba(194,65,65,0.15);
  color: #F87171;
}
.score-low .score-circle::before { border-color: rgba(248,113,113,0.4); }

.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.40);
}

.score-status {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
}

/* Heatmap demo */
.heatmap-demo {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  overflow-x: auto;
}

.heatmap-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
}

.heatmap-grid-wrap {
  display: grid;
  grid-template-columns: 60px repeat(8, 1fr);
  gap: 3px;
  min-width: 400px;
}

.heatmap-cell {
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

.heatmap-label-cell {
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 10px;
  color: rgba(255,255,255,0.30);
  font-weight: 600;
}

.heatmap-header-cell {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255,255,255,0.30);
  font-weight: 600;
  text-transform: uppercase;
}

/* Waterfall demo */
.waterfall-demo {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.waterfall-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  height: 120px;
  border-bottom: 2px solid var(--surface-200);
  margin-bottom: var(--space-4);
  padding: 0 var(--space-2);
}

.waterfall-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.waterfall-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  position: relative;
}

.waterfall-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
  white-space: nowrap;
}

.waterfall-labels {
  display: flex;
  gap: var(--space-4);
  padding: 0 var(--space-2);
}

.waterfall-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
}

/* Insight card system */
.insight-card-system {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.insight-card-full {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
}
.insight-card-full:last-child { margin-bottom: 0; }

.insight-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.insight-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.insight-type-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.40);
}

.insight-card-body {
  padding: var(--space-5);
}

.insight-what {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.insight-why {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  padding-left: var(--space-4);
  border-left: 2px solid rgba(240,147,8,0.35);
}

.insight-action {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: rgba(240,147,8,0.08);
  border: 1px solid rgba(240,147,8,0.20);
  border-radius: 6px;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(240,147,8,0.90);
  line-height: 1.5;
}

/* Warning / critical states */
.state-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.state-card {
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  border-left: 3px solid;
}

.state-card.state-normal {
  background: rgba(59,130,246,0.06);
  border-color: var(--state-info);
}
.state-card.state-warning {
  background: rgba(217,119,6,0.07);
  border-color: var(--state-warning);
}
.state-card.state-critical {
  background: rgba(194,65,65,0.08);
  border-color: var(--state-danger);
}
.state-card.state-success {
  background: rgba(31,143,95,0.07);
  border-color: var(--state-success);
}

.state-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.state-card-icon { font-size: 1rem; }

.state-card-name {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.state-card.state-normal .state-card-name { color: var(--state-info); }
.state-card.state-warning .state-card-name { color: var(--state-warning); }
.state-card.state-critical .state-card-name { color: var(--state-danger); }
.state-card.state-success .state-card-name { color: var(--state-success); }

.state-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-2);
}

.state-card-desc {
  font-size: var(--text-sm);
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.state-card-example {
  font-size: var(--text-sm);
  font-style: italic;
  color: #3D4F60;
  padding: var(--space-3);
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  line-height: 1.55;
}

/* ==================== UI BRAND EXPRESSION REFINADA ==================== */

/* Onboarding flow */
.onboarding-flow {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.ob-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ob-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.ob-step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.ob-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(240,147,8,0.15);
  border: 1.5px solid rgba(240,147,8,0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  flex-shrink: 0;
}

.ob-step-line {
  width: 1px;
  flex: 1;
  min-height: 20px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

.ob-step:last-child .ob-step-line { display: none; }

.ob-step-content {
  padding-bottom: var(--space-5);
  flex: 1;
}

.ob-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--brand-orange);
  margin-bottom: var(--space-1);
}

.ob-step-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-1);
}

.ob-step-copy {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  font-style: italic;
}

/* Empty states */
.empty-state-demo {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  margin-bottom: var(--space-4);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-3);
}

.empty-state-body {
  font-size: var(--text-base);
  color: #6B7280;
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

.empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--brand-midnight);
  color: var(--white);
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.empty-state-cta:hover { background: var(--ink-700); }

.empty-state-context {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-orange);
  margin-bottom: var(--space-4);
}

/* Feedback messages */
.feedback-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.feedback-msg {
  border-radius: var(--border-radius);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.feedback-msg.fb-success {
  background: var(--state-success-bg);
  border: 1px solid rgba(31,143,95,0.25);
  border-left: 3px solid var(--state-success);
}
.feedback-msg.fb-warning {
  background: var(--state-warning-bg);
  border: 1px solid rgba(217,119,6,0.25);
  border-left: 3px solid var(--state-warning);
}
.feedback-msg.fb-error {
  background: var(--state-danger-bg);
  border: 1px solid rgba(194,65,65,0.25);
  border-left: 3px solid var(--state-danger);
}
.feedback-msg.fb-info {
  background: var(--state-info-bg);
  border: 1px solid rgba(59,130,246,0.20);
  border-left: 3px solid var(--state-info);
}
.feedback-msg.fb-neutral {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-left: 3px solid var(--brand-midnight);
}

.feedback-icon { font-size: 1.1rem; flex-shrink: 0; }

.feedback-content {}
.feedback-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}
.fb-success .feedback-title { color: var(--state-success); }
.fb-warning .feedback-title { color: var(--state-warning); }
.fb-error .feedback-title { color: var(--state-danger); }
.fb-info .feedback-title { color: var(--state-info); }
.fb-neutral .feedback-title { color: var(--brand-midnight); }

.feedback-text {
  font-size: var(--text-sm);
  color: #3D4F60;
  line-height: 1.6;
}

/* ==================== APLICAÇÕES REFINADAS ==================== */

/* Channel spec table */
.channel-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-200);
}

.channel-spec-table th {
  background: var(--ink-800);
  color: rgba(255,255,255,0.65);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.channel-spec-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--surface-200);
  vertical-align: top;
  color: #3D4F60;
  line-height: 1.6;
}

.channel-spec-table tr:last-child td { border-bottom: none; }
.channel-spec-table tr:hover td { background: var(--surface-50); }

.channel-spec-table .channel-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-800);
  white-space: nowrap;
}

/* Application mock */
.app-mock {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-top: var(--space-6);
}

.app-mock-bar {
  background: rgba(255,255,255,0.05);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-mock-dots {
  display: flex;
  gap: 5px;
}
.app-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.app-mock-url {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  font-family: 'Courier New', monospace;
}

.app-mock-body {
  padding: var(--space-8);
}

/* Email mock */
.email-mock {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-top: var(--space-6);
  max-width: 560px;
}

.email-mock-header {
  background: var(--ink-800);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.email-mock-logo {
  height: 24px;
  width: auto;
}

.email-mock-subject {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
}

.email-mock-body {
  padding: var(--space-8) var(--space-6);
}

.email-mock-greeting {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-4);
}

.email-mock-para {
  font-size: var(--text-sm);
  color: #3D4F60;
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.email-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.email-kpi {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius);
  padding: var(--space-4);
  text-align: center;
}

.email-kpi-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 2px;
}
.email-kpi-val.pos { color: var(--state-success); }
.email-kpi-val.warn { color: var(--state-warning); }
.email-kpi-val.neu { color: var(--ink-700); }

.email-kpi-label {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.email-mock-cta {
  display: inline-block;
  background: var(--brand-midnight);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  margin-top: var(--space-4);
}

.email-mock-footer {
  background: var(--surface-100);
  padding: var(--space-4) var(--space-6);
  font-size: 11px;
  color: #9CA3AF;
  border-top: 1px solid var(--surface-200);
  line-height: 1.5;
}

/* Social post mock */
.social-post {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  max-width: 400px;
  margin-top: var(--space-4);
}

.social-post-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.social-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-midnight);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.social-avatar img { width: 100%; height: 100%; object-fit: contain; }

.social-handle {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
}

.social-post-image {
  aspect-ratio: 1;
  background: var(--ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.social-post-image::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(240,147,8,0.12);
  top: -80px;
  right: -80px;
}

.social-post-stat {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
}

.social-post-caption {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: 1.3;
}

.social-post-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.5;
}

.social-post-footer {
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.social-tags {
  font-size: var(--text-xs);
  color: rgba(59,130,246,0.8);
  margin-top: var(--space-2);
}

/* ==================== CORES REFINADAS ==================== */

/* Color category block */
.color-category {
  margin-bottom: var(--space-8);
}

.color-category-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #9CA3AF;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--surface-200);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Dark/Light mode demo */
.mode-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-200);
}

.mode-panel {
  padding: var(--space-6);
}

.mode-panel.light { background: var(--surface-50); }
.mode-panel.dark { background: var(--ink-900); }

.mode-panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid;
}
.mode-panel.light .mode-panel-label {
  color: #9CA3AF;
  border-color: var(--surface-200);
}
.mode-panel.dark .mode-panel-label {
  color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.08);
}

.mode-ui-sample {
  border-radius: var(--border-radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

.mode-panel.light .mode-ui-sample {
  background: var(--white);
  border: 1px solid var(--surface-200);
}
.mode-panel.dark .mode-ui-sample {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.mode-ui-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.mode-panel.light .mode-ui-title { color: var(--ink-800); }
.mode-panel.dark .mode-ui-title { color: var(--white); }

.mode-ui-body {
  font-size: var(--text-sm);
  line-height: 1.6;
}
.mode-panel.light .mode-ui-body { color: #3D4F60; }
.mode-panel.dark .mode-ui-body { color: rgba(255,255,255,0.50); }

.mode-ui-kpi {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-orange);
  margin-bottom: 2px;
}

.mode-ui-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mode-panel.light .mode-ui-label { color: #9CA3AF; }
.mode-panel.dark .mode-ui-label { color: rgba(255,255,255,0.25); }

/* Contrast table */
.contrast-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-200);
}

.contrast-table th {
  background: var(--surface-100);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  border-bottom: 2px solid var(--surface-200);
}

.contrast-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--surface-200);
  vertical-align: middle;
}

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

.contrast-swatch-pair {
  display: flex;
  gap: 4px;
  align-items: center;
}

.cs-block {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}

.contrast-ratio {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-800);
}

.pass-aa {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--state-success-bg);
  color: var(--state-success);
  border: 1px solid rgba(31,143,95,0.25);
}

.pass-aaa {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(31,143,95,0.20);
  color: #0D4A2B;
  border: 1px solid rgba(31,143,95,0.40);
}

.fail-wcag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--state-danger-bg);
  color: var(--state-danger);
  border: 1px solid rgba(194,65,65,0.25);
}

/* ==================== TIPOGRAFIA REFINADA ==================== */

/* Typography role card */
.typo-role-card {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-base);
}
.typo-role-card:hover { box-shadow: var(--shadow-sm); }

.typo-role-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(240,147,8,0.10);
  color: #92660A;
  border: 1px solid rgba(240,147,8,0.25);
  margin-bottom: var(--space-3);
}

.typo-role-sample {
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--surface-50);
  border-radius: var(--border-radius);
  border: 1px solid var(--surface-200);
}

.typo-role-spec {
  font-size: var(--text-xs);
  color: #9CA3AF;
  font-family: 'Courier New', monospace;
  margin-top: var(--space-2);
}

/* Number/KPI styling showcase */
.number-showcase {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-6);
}

.num-example {}
.num-example-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.25);
  margin-bottom: var(--space-3);
}
.num-display {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.num-display.kpi-main {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}
.num-display.kpi-sec {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(255,255,255,0.75);
}
.num-display.kpi-label {
  font-size: var(--text-base);
  font-weight: 600;
  color: rgba(255,255,255,0.50);
}
.num-display.kpi-caption {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.30);
}
.num-display.kpi-positive { color: #34D399; }
.num-display.kpi-negative { color: #F87171; }
.num-display.kpi-warning { color: var(--brand-orange); }

/* ==================== GOVERNANÇA REFINADA ==================== */

/* Fixed vs evolving table */
.fve-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.fve-col {
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
}

.fve-fixed {
  background: rgba(39,61,82,0.06);
  border: 1px solid rgba(39,61,82,0.15);
}

.fve-evolving {
  background: rgba(240,147,8,0.06);
  border: 1px solid rgba(240,147,8,0.20);
}

.fve-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.fve-icon { font-size: 1.2rem; }

.fve-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}
.fve-fixed .fve-title { color: var(--brand-midnight); }
.fve-evolving .fve-title { color: #92660A; }

.fve-subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.65;
}

.fve-list { list-style: none; }
.fve-list li {
  font-size: var(--text-sm);
  color: #3D4F60;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  line-height: 1.5;
}
.fve-list li:last-child { border-bottom: none; }
.fve-fixed .fve-list li::before { content: '🔒'; font-size: 11px; margin-top: 2px; }
.fve-evolving .fve-list li::before { content: '🔄'; font-size: 11px; margin-top: 2px; }

/* Validation flow */
.val-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-6);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.val-step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--surface-200);
  gap: var(--space-4);
  transition: background var(--transition-fast);
}
.val-step:last-child { border-bottom: none; }
.val-step:hover { background: var(--surface-50); }

.val-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.val-step-content {}
.val-step-title {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 2px;
}
.val-step-desc {
  font-size: var(--text-sm);
  color: #6B7280;
  line-height: 1.5;
}

.val-step-owner {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.owner-design { background: rgba(59,130,246,0.10); color: var(--state-info); border: 1px solid rgba(59,130,246,0.25); }
.owner-content { background: rgba(31,143,95,0.10); color: var(--state-success); border: 1px solid rgba(31,143,95,0.25); }
.owner-product { background: rgba(240,147,8,0.10); color: #92660A; border: 1px solid rgba(240,147,8,0.25); }
.owner-lead { background: rgba(39,61,82,0.10); color: var(--brand-midnight); border: 1px solid rgba(39,61,82,0.25); }

/* Expansion rules */
.expansion-rules {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.exp-rule {
  background: var(--white);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
}

.exp-rule-icon { font-size: 1.5rem; margin-bottom: var(--space-3); }
.exp-rule-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-2);
}
.exp-rule-desc {
  font-size: var(--text-sm);
  color: #6B7280;
  line-height: 1.6;
}
.exp-rule-verdict {
  margin-top: var(--space-3);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.exp-rule.ok .exp-rule-verdict { color: var(--state-success); }
.exp-rule.caution .exp-rule-verdict { color: var(--state-warning); }
.exp-rule.no .exp-rule-verdict { color: var(--state-danger); }
.exp-rule.ok { border-left: 3px solid var(--state-success); }
.exp-rule.caution { border-left: 3px solid var(--state-warning); }
.exp-rule.no { border-left: 3px solid var(--state-danger); }

/* ==================== RESPONSIVE REFINEMENTS ==================== */
@media (max-width: 768px) {
  .fve-grid { grid-template-columns: 1fr; }
  .mode-demo { grid-template-columns: 1fr; }
  .chart-spec-grid { grid-template-columns: 1fr; }
  .state-showcase { grid-template-columns: 1fr; }
  .foto-criteria { grid-template-columns: 1fr; }
  .number-showcase { grid-template-columns: repeat(2, 1fr); }
  .email-mock-kpis { grid-template-columns: 1fr; }
  .val-step { grid-template-columns: 40px 1fr; }
  .val-step-owner { display: none; }
  .channel-spec-table { font-size: var(--text-xs); }
  .channel-spec-table th, .channel-spec-table td { padding: var(--space-2) var(--space-3); }
  .heatmap-grid-wrap { min-width: 340px; }
}

/* ==================== NOVOS COMPONENTES RODADA 2 ==================== */

/* ---- DARK/LIGHT MODE PANEL ---- */
.mode-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (max-width: 768px) { .mode-compare-grid { grid-template-columns: 1fr; } }

.mode-panel {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid transparent;
}
.mode-panel-dark {
  background: #0F1720;
  border-color: rgba(255,255,255,0.07);
  padding: var(--space-6);
}
.mode-panel-light {
  background: var(--surface-50);
  border-color: var(--surface-200);
  padding: var(--space-6);
}

.mode-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.mode-panel-dark .mode-panel-label { color: rgba(255,255,255,0.35); }
.mode-panel-light .mode-panel-label { color: var(--surface-400); }

.mode-palette-row {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.mode-swatch {
  flex: 1;
  min-width: 60px;
  height: 48px;
  border-radius: var(--border-radius-base);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 4px 6px;
}
.mode-swatch-label {
  font-size: 9px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-align: center;
  width: 100%;
}

.mode-rules-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.mode-rules-list li {
  font-size: var(--text-sm);
  padding-left: 16px;
  position: relative;
}
.mode-rules-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}
.mode-panel-dark .mode-rules-list li { color: rgba(255,255,255,0.55); }
.mode-panel-light .mode-rules-list li { color: #3D4F60; }
.mode-panel-dark .mode-rules-list li code { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); padding: 1px 5px; border-radius: 3px; font-size: 11px; }
.mode-panel-light .mode-rules-list li code { background: var(--surface-200); color: var(--ink-800); padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* ---- KPI HIERARCHY DEMO ---- */
.kpi-hierarchy-demo {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 768px) { .kpi-hierarchy-demo { grid-template-columns: 1fr; } }

.kpi-demo-card {
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
}
.kpi-demo-primary {
  background: var(--ink-800);
  border: 1px solid rgba(255,255,255,0.07);
  grid-row: span 1;
}
.kpi-demo-secondary {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
}
.kpi-demo-tertiary {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
}

.kpi-demo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.kpi-demo-primary .kpi-demo-label { color: rgba(255,255,255,0.3); }
.kpi-demo-secondary .kpi-demo-label, .kpi-demo-tertiary .kpi-demo-label { color: var(--surface-400); }

.kpi-demo-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-2);
}
.kpi-demo-primary .kpi-demo-value { color: #fff; }
.kpi-demo-secondary .kpi-demo-value, .kpi-demo-tertiary .kpi-demo-value { color: var(--ink-800); }

.kpi-demo-sub {
  font-size: var(--text-xs);
  color: #9CA3AF;
  margin-bottom: var(--space-4);
  line-height: 1.4;
}
.kpi-demo-primary .kpi-demo-sub { color: rgba(255,255,255,0.35); }

.kpi-demo-spec {
  font-size: 10px;
  font-style: italic;
  color: var(--brand-orange);
  border-top: 1px solid rgba(240,147,8,0.15);
  padding-top: var(--space-2);
  margin-top: auto;
}
.kpi-demo-primary .kpi-demo-spec { border-color: rgba(240,147,8,0.2); }
.kpi-demo-secondary .kpi-demo-spec, .kpi-demo-tertiary .kpi-demo-spec { border-color: var(--surface-200); }

/* ---- CHANNEL SPEC CARDS ---- */
.channel-spec-card {
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition-base);
}
.channel-spec-card:hover { box-shadow: var(--shadow-sm); }

.channel-spec-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-50);
  border-bottom: 1px solid var(--surface-200);
}
.channel-spec-icon { font-size: 1.25rem; flex-shrink: 0; }
.channel-spec-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  flex: 1;
}
.channel-spec-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface-200);
  color: #6B7280;
  flex-shrink: 0;
}

.channel-spec-body { padding: var(--space-5) var(--space-6); }

.channel-spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface-100);
  font-size: var(--text-sm);
  align-items: start;
}
.channel-spec-row:last-child { border-bottom: none; }

.channel-spec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--surface-400);
  padding-top: 2px;
}
.channel-spec-val { color: #3D4F60; line-height: 1.6; }

/* ---- FLOW STEPS (Validação) ---- */
.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-6);
}

.flow-step {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  background: var(--white);
  position: relative;
}

.flow-step-conditional {
  border-color: #D97706;
  background: #FFFBF0;
}

.flow-connector {
  width: 2px;
  height: 20px;
  background: var(--surface-300);
  margin-left: 28px;
  flex-shrink: 0;
}

.flow-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-midnight);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-body { flex: 1; }

.flow-step-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: var(--space-1);
}

.flow-step-desc {
  font-size: var(--text-sm);
  color: #3D4F60;
  line-height: 1.6;
}

/* ---- MOCK DASHBOARD ---- */
.mock-dashboard {
  background: #0F1720;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: var(--space-5);
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: #182432;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-logo-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.mock-date {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 768px) {
  .mock-kpi-row { grid-template-columns: 1fr 1fr; }
}

.mock-kpi {
  background: #182432;
  padding: var(--space-5);
}

.mock-kpi-main {
  background: #1E2B38;
}

.mock-kpi-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-2);
}

.mock-kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.mock-kpi-main .mock-kpi-value {
  font-size: 2.25rem;
}

.mock-kpi-delta {
  font-size: 11px;
  line-height: 1.3;
}

.mock-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(217, 119, 6, 0.08);
  border-top: 1px solid rgba(217, 119, 6, 0.2);
}

.mock-alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.mock-alert-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ---- CALLOUT DANGER ---- */
.callout-danger {
  background: var(--state-danger-bg, #FEE8E8);
  border-left: 3px solid var(--state-danger, #C24141);
}
.callout-danger .callout-title { color: #C24141; }

/* ==================== DATA VIZ: TIPOS SEMÂNTICOS ==================== */

.data-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 768px) { .data-category-grid { grid-template-columns: 1fr; } }

.data-cat-card {
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.data-cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.data-cat-operational::before { background: #3B82F6; }
.data-cat-emotional::before   { background: #D97706; }
.data-cat-state::before       { background: linear-gradient(90deg, #1F8F5F 33%, #D97706 33% 66%, #C24141 66%); }
.data-cat-context::before     { background: #6B7280; }

.data-cat-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-bottom: var(--space-3);
}

.data-cat-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 4px;
}

.data-cat-color {
  font-size: var(--text-xs);
  color: #9CA3AF;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}

.data-cat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.data-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-100);
  color: #3D4F60;
  letter-spacing: 0.02em;
}

.data-cat-rule {
  font-size: var(--text-xs);
  color: #6B7280;
  line-height: 1.55;
  border-top: 1px solid var(--surface-100);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
}

/* ==================== DATA VIZ: SCORE GAUGE ==================== */

.score-gauge-demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: var(--space-5);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-200);
}
@media (max-width: 640px) {
  .score-gauge-demo { grid-template-columns: repeat(2, 1fr); }
}

.score-zone {
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.score-zone-critical  { background: #FEE8E8; }
.score-zone-caution   { background: #FEF3C7; }
.score-zone-ok        { background: #E8F7F0; }
.score-zone-excellent { background: #D1FAE5; }

.score-zone-range {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.score-zone-critical .score-zone-range  { color: #C24141; }
.score-zone-caution  .score-zone-range  { color: #D97706; }
.score-zone-ok .score-zone-range        { color: #1F8F5F; }
.score-zone-excellent .score-zone-range { color: #059669; }

.score-zone-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.score-zone-critical .score-zone-label  { color: #C24141; }
.score-zone-caution  .score-zone-label  { color: #D97706; }
.score-zone-ok .score-zone-label        { color: #1F8F5F; }
.score-zone-excellent .score-zone-label { color: #059669; }

.score-zone-action {
  font-size: 11px;
  line-height: 1.4;
  color: #6B7280;
  font-style: italic;
}

/* =====================================================
   NousTrader Brandbook — Refinements v1.2
   Rodada 3: Gramática Visual Intensificada + Mocks
   Premium + Data Viz Proprietária
   ===================================================== */

/* ==================== R3: GRAMÁTICA VISUAL — PRESENÇA GLOBAL ==================== */

/* Linha de acento laranja nos separadores de content-block */
.content-block + .content-block {
  border-top: none;
  position: relative;
  padding-top: var(--space-12);
}
.content-block + .content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    var(--brand-orange) 0%,
    var(--brand-orange) 32px,
    var(--surface-200) 32px,
    var(--surface-200) 100%
  );
}

/* Reforço do eyebrow — linha laranja mais intencional */
.hero-eyebrow::before {
  width: 32px;
  height: 2px;
  background: var(--brand-orange);
}

/* Acento de convergência nos def-term (linhas que apontam para o conteúdo) */
.def-term {
  position: relative;
  padding-left: 14px;
}
.def-term::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  opacity: 0.7;
}

/* Arco de fundo nos heroes — versão controlada via nth-child para não poluir */
.section-hero {
  position: relative;
  overflow: hidden;
}

/* Linha diagonal de convergência no canto inferior direito de cada hero */
.section-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(240,147,8,0.09);
  pointer-events: none;
}

/* Faixa de acento vertical laranja no bloco-label */
.block-label {
  position: relative;
  padding-left: 10px;
}
.block-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: var(--brand-orange);
  border-radius: 2px;
}
/* Reset do ícone que já estava no block-label (sobrepõe o ::before) */
.block-label > i.fas.fa-circle {
  display: none;
}

/* Linha de separação visual nas seções de definição */
.def-item {
  border-left: 2px solid var(--surface-200);
  padding-left: var(--space-4);
  transition: border-color var(--transition-fast);
}
.def-item:hover {
  border-left-color: var(--brand-orange);
}

/* ==================== R3: SCORE GAUGE REFINADO ==================== */

/* Barra de gradiente de score — substitui visualmente os 4 blocos planos */
.score-gauge-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #C24141 0%,
    #D97706 35%,
    #1F8F5F 65%,
    #059669 100%
  );
  margin: var(--space-4) 0 var(--space-2);
  position: relative;
  overflow: visible;
}

.score-gauge-bar-track {
  position: relative;
  width: 100%;
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.score-gauge-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
}
.score-gauge-bar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9CA3AF;
}

/* Agulha de posição no gauge */
.score-needle {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.score-needle-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(240,147,8,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-needle-value {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  white-space: nowrap;
  background: var(--ink-900);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(240,147,8,0.3);
  margin-top: 4px;
}

/* ==================== R3: EQUITY CURVE PROPRIETÁRIA ==================== */

.equity-chart-wrap {
  position: relative;
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-5) var(--space-5) var(--space-4);
  overflow: hidden;
  margin-top: var(--space-4);
}

/* Faixa de zona positiva sutil no fundo do gráfico */
.equity-chart-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(31,143,95,0.04) 100%);
  pointer-events: none;
}

.equity-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.equity-chart-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.equity-chart-kpi {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.equity-chart-kpi-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.equity-chart-kpi-delta {
  font-size: 11px;
  font-weight: 700;
  color: #1F8F5F;
}

.equity-svg-wrap {
  width: 100%;
  height: 100px;
  position: relative;
}

.equity-svg-wrap svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.equity-legend {
  display: flex;
  gap: var(--space-5);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.equity-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.equity-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==================== R3: KPI CARD EMBLEMÁTICO ==================== */

.r3-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: var(--space-5);
}

.r3-kpi-card {
  background: var(--ink-900);
  padding: var(--space-5);
  position: relative;
  transition: background var(--transition-fast);
}
.r3-kpi-card:hover { background: var(--ink-800); }

/* Linha de acento colorida no topo de cada KPI card */
.r3-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-5);
  right: var(--space-5);
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--kpi-accent, rgba(255,255,255,0.1));
}

.r3-kpi-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--space-2);
}
.r3-kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.r3-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.r3-kpi-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: var(--space-2);
}

/* Cores semânticas por tipo de KPI */
.r3-kpi-op   { --kpi-accent: #3B82F6; }
.r3-kpi-emo  { --kpi-accent: #D97706; }
.r3-kpi-pos  { --kpi-accent: #1F8F5F; }
.r3-kpi-neg  { --kpi-accent: #C24141; }
.r3-kpi-warn { --kpi-accent: #D97706; }
.r3-kpi-neutral { --kpi-accent: rgba(255,255,255,0.15); }

/* ==================== R3: INSIGHT CARD EMBLEMÁTICO ==================== */

.insight-card {
  background: var(--ink-800);
  border: 1px solid rgba(240,147,8,0.2);
  border-left: 3px solid var(--brand-orange);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5) var(--space-6);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-4);
}

/* Arco de fundo */
.insight-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(240,147,8,0.08);
  pointer-events: none;
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.insight-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(240,147,8,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-orange);
  font-size: 14px;
}
.insight-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.insight-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
  line-height: 1.35;
}
.insight-card-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.insight-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
  margin-top: var(--space-3);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.insight-card-action::after {
  content: '→';
  font-size: 13px;
}

/* ==================== R3: ALERTA CRÍTICO EMBLEMÁTICO ==================== */

.r3-alert {
  border-radius: var(--border-radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
}
.r3-alert-info    { background: rgba(59,130,246,0.08);  border: 1px solid rgba(59,130,246,0.2);  border-left: 3px solid #3B82F6; }
.r3-alert-caution { background: rgba(217,119,6,0.08);   border: 1px solid rgba(217,119,6,0.2);   border-left: 3px solid #D97706; }
.r3-alert-danger  { background: rgba(194,65,65,0.08);   border: 1px solid rgba(194,65,65,0.2);   border-left: 3px solid #C24141; }

.r3-alert-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.r3-alert-info    .r3-alert-icon-wrap { background: rgba(59,130,246,0.15); }
.r3-alert-caution .r3-alert-icon-wrap { background: rgba(217,119,6,0.15); }
.r3-alert-danger  .r3-alert-icon-wrap { background: rgba(194,65,65,0.15); }

.r3-alert-content {}
.r3-alert-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.r3-alert-info    .r3-alert-type { color: #3B82F6; }
.r3-alert-caution .r3-alert-type { color: #D97706; }
.r3-alert-danger  .r3-alert-type { color: #C24141; }

.r3-alert-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.r3-alert-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
}

/* Correção de legibilidade: fundos claros exigem texto escuro */
.r3-alert-info .r3-alert-title    { color: var(--ink-800); }
.r3-alert-info .r3-alert-text     { color: #3D4F60; }

.r3-alert-caution .r3-alert-title { color: var(--ink-800); }
.r3-alert-caution .r3-alert-text  { color: #4B3A1A; }

.r3-alert-danger .r3-alert-title  { color: var(--ink-800); }
.r3-alert-danger .r3-alert-text   { color: #4B1F1F; }
.r3-alert-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  display: inline-block;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ==================== R3: MOCK DASHBOARD ELEVADO ==================== */

.r3-dashboard-wrap {
  background: var(--ink-900);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  margin-top: var(--space-6);
}

/* Topbar do mock */
.r3-dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--ink-800);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.r3-dash-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.r3-dash-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: block;
}
.r3-dash-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}
.r3-dash-session {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1F8F5F;
}
.r3-dash-session::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1F8F5F;
  display: block;
  box-shadow: 0 0 0 3px rgba(31,143,95,0.2);
}

/* KPI row do mock */
.r3-dash-kpi-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 768px) {
  .r3-dash-kpi-row { grid-template-columns: 1fr 1fr; }
}

/* Painel de alerta no mock */
.r3-dash-alert-row {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(217,119,6,0.05);
}
.r3-dash-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D97706;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(217,119,6,0.2);
}
.r3-dash-alert-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  flex: 1;
}
.r3-dash-alert-text strong { color: #D97706; font-weight: 700; }
.r3-dash-alert-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Rodapé insight do mock */
.r3-dash-insight-row {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.r3-dash-insight-icon {
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
.r3-dash-insight-content {}
.r3-dash-insight-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 3px;
}
.r3-dash-insight-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

/* ==================== R3: RESPONSIVE ==================== */
@media (max-width: 768px) {
  .r3-kpi-grid { grid-template-columns: 1fr 1fr; }
  .equity-svg-wrap { height: 72px; }
  .r3-dash-kpi-row { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   NOVOS BLOCOS OPERACIONAIS — RODADA 3+
   Guia Social · Biblioteca de Mensagens · Campanhas
   ===================================================== */

/* ─── GUIA DE REDES SOCIAIS ─────────────────────────── */

.social-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 860px) {
  .social-principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .social-principles-grid { grid-template-columns: 1fr; }
}

.social-principle-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}
.social-principle-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.social-principle-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-orange);
  opacity: 0.7;
}
.social-principle-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-orange);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}
.social-principle-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 6px;
}
.social-principle-desc {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.6;
}

/* Canal blocks */
.social-channel-block {
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: #fff;
}
.social-channel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-50);
  border-bottom: 1px solid var(--surface-200);
}
.social-channel-icon {
  font-size: 1.25rem;
}
.social-channel-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  flex: 1;
}
.social-channel-priority {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.social-channel-priority.high {
  background: rgba(240,147,8,0.12);
  color: #B45309;
}
.social-channel-priority.medium {
  background: rgba(59,130,246,0.1);
  color: #1D4ED8;
}

.social-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: var(--space-4) var(--space-5);
  gap: 12px;
}
@media (max-width: 640px) {
  .social-format-grid { grid-template-columns: 1fr; }
}

.social-format-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius);
  padding: var(--space-4);
}
.social-format-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 4px;
}
.social-format-spec {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-orange);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.social-format-example {
  font-size: var(--text-xs);
  color: var(--ink-600);
  line-height: 1.6;
  font-style: italic;
}

.social-donts {
  padding: 12px var(--space-5) var(--space-4);
  border-top: 1px solid var(--surface-200);
  background: #FFFBF5;
}
.social-donts-title {
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.social-donts-list {
  font-size: var(--text-xs);
  color: #6B7280;
  line-height: 1.7;
}

/* Checklist social */
.social-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.social-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.6;
}
.social-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 5px;
}
.social-check-item strong {
  color: var(--ink-800);
}

/* ─── BIBLIOTECA DE MENSAGENS ─────────────────────────── */

.msg-library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .msg-library-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .msg-library-grid { grid-template-columns: 1fr; }
}

.msg-card {
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.msg-card-primary {
  background: var(--ink-800);
  color: #fff;
  grid-column: span 3;
}
@media (max-width: 900px) {
  .msg-card-primary { grid-column: span 2; }
}
@media (max-width: 540px) {
  .msg-card-primary { grid-column: span 1; }
}
.msg-card-claim {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
}
.msg-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 4px;
}
.msg-card-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  color: inherit;
}
.msg-card-primary .msg-card-text {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
}
.msg-card-claim .msg-card-text {
  color: var(--ink-800);
  font-size: var(--text-base);
}
.msg-card-context {
  font-size: var(--text-xs);
  line-height: 1.5;
  opacity: 0.65;
}
.msg-card-primary .msg-card-context { color: rgba(255,255,255,0.7); }
.msg-card-claim .msg-card-context { color: var(--ink-600); }

/* Headlines por contexto */
.msg-context-group {
  border-left: 3px solid var(--brand-orange);
  padding-left: var(--space-5);
  margin-top: 24px;
}
.msg-context-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: var(--space-4);
}
.msg-headline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.msg-headline-item {
  background: #fff;
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius);
  padding: var(--space-4) var(--space-5);
}
.msg-headline-text {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 6px;
  line-height: 1.3;
}
.msg-headline-note {
  font-size: var(--text-xs);
  color: var(--ink-600);
  line-height: 1.6;
}

/* Frases de assinatura */
.msg-signature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.msg-sig-item {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-800);
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--brand-orange);
  background: var(--surface-50);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  line-height: 1.4;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.msg-sig-item:hover {
  background: rgba(240,147,8,0.06);
}

/* ─── SISTEMA DE CAMPANHAS ─────────────────────────── */

.campaign-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 640px) {
  .campaign-type-grid { grid-template-columns: 1fr; }
}

.campaign-type-card {
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.campaign-type-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.campaign-type-educational { background: #EFF6FF; border-color: #BFDBFE; }
.campaign-type-educational::before { background: #3B82F6; }
.campaign-type-product { background: #FFF7ED; border-color: #FED7AA; }
.campaign-type-product::before { background: var(--brand-orange); }
.campaign-type-brand { background: #F0FDF4; border-color: #BBF7D0; }
.campaign-type-brand::before { background: #1F8F5F; }
.campaign-type-activation { background: var(--ink-800); border-color: var(--ink-700); }
.campaign-type-activation::before { background: var(--brand-orange); }
.campaign-type-activation .campaign-type-name,
.campaign-type-activation .campaign-type-desc,
.campaign-type-activation .campaign-type-canais { color: rgba(255,255,255,0.9); }
.campaign-type-activation .campaign-type-tag { color: var(--brand-orange); }

.campaign-type-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 6px;
}
.campaign-type-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
}
.campaign-type-desc {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 12px;
}
.campaign-type-canais {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-600);
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Estrutura de briefing */
.brief-structure {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}
.brief-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border-bottom: 1px solid var(--surface-200);
  background: #fff;
  transition: background var(--transition-fast);
}
.brief-step:last-child { border-bottom: none; }
.brief-step:hover { background: var(--surface-50); }
.brief-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-800);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.brief-step-content {
  flex: 1;
}
.brief-step-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 4px;
}
.brief-step-desc {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.7;
}

/* Exemplos de campanhas */
.campaign-example-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.campaign-example {
  border: 1px solid var(--surface-200);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  background: #fff;
  position: relative;
  padding-left: calc(var(--space-5) + 4px);
  border-left: 4px solid var(--brand-orange);
}
.campaign-example-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 6px;
}
.campaign-example-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 8px;
  line-height: 1.3;
}
.campaign-example-desc {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: 1.7;
}

/* ─── RESPONSIVE EXTRAS ─────────────────────────── */
@media (max-width: 640px) {
  .social-channel-header { flex-wrap: wrap; gap: 8px; }
  .msg-card-primary { grid-column: span 1; }
  .brief-step { flex-direction: column; }
  .brief-step-num { margin-top: 0; }
}
