:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --brand-orange: #ea580c;
  --brand-orange-light: #ffedd5;
  --brand-green: #10b981;
  --brand-green-light: #d1fae5;
  --brand-blue: #0284c7;
  --brand-blue-light: #e0f2fe;
  
  --color-positive: #10b981;
  --color-neutral: #0284c7;
  --color-negative: #ef4444;
  
  --color-twitter: #1d9bf0;
  --color-tiktok: #111827;
  --color-youtube: #ef4444;
  --color-instagram: #e1306c;
  --color-threads: #78716c;
  --color-facebook: #1877f2;
  --color-news: #059669;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

body.theme-dark {
  --bg-primary: #0b0f19;
  --bg-surface: #131b2e;
  --bg-surface-alt: #1a243b;
  --bg-card: #131b2e;
  --border-color: #24324f;
  --border-subtle: #1c2842;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --brand-orange-light: rgba(234, 88, 12, 0.15);
  --brand-green-light: rgba(16, 185, 129, 0.15);
  --brand-blue-light: rgba(2, 132, 199, 0.15);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==================== HEADER ==================== */
.app-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-emblem {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ea580c, #f97316);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.highlight-orange { color: #ea580c; }
.highlight-green { color: #10b981; }

.badge-intel {
  font-size: 0.65rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--text-muted);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  max-width: 600px;
  justify-content: center;
}

.topic-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface-alt);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.topic-selector-wrap label {
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.date-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand-green-light);
  color: var(--brand-green);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
}

.live-dot.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

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

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--bg-surface-alt);
  border-color: var(--text-muted);
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: var(--border-color);
}

/* ==================== ISSUE BANNER ==================== */
.issue-banner {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.tag-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-primary { background: var(--brand-orange-light); color: var(--brand-orange); }
.tag-neutral { background: var(--brand-blue-light); color: var(--brand-blue); }
.tag-info { background: var(--bg-surface-alt); color: var(--text-muted); border: 1px solid var(--border-color); }

.issue-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.issue-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 800px;
}

.banner-stat-chips {
  display: flex;
  gap: 1rem;
}

.stat-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-width: 140px;
}

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

.chip-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==================== TABS BAR ==================== */
.nav-tabs-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs-bar::-webkit-scrollbar { display: none; }

.nav-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.9rem 1.15rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.nav-tab.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* ==================== MAIN CONTENT & TABS ==================== */
.main-content {
  flex: 1;
  padding: 1.5rem 2rem 3rem 2rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

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

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

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.pill-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-green { background: var(--brand-green-light); color: var(--brand-green); }
.pill-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* ==================== KPI GRID ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.kpi-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-icon {
  font-size: 1.1rem;
  color: var(--text-light);
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.65rem;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-top: auto;
}

.kpi-sub {
  color: var(--text-muted);
}

.kpi-badge {
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
}

.kpi-positive { background: var(--brand-green-light); color: var(--brand-green); }
.kpi-negative { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.text-positive { color: var(--color-positive); }
.text-neutral { color: var(--color-neutral); }
.text-negative { color: var(--color-negative); }

/* ==================== CARDS & GRIDS ==================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.card-body {
  padding: 1.25rem 1.4rem;
}

.dashboard-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-card-lg {
  margin-bottom: 1.5rem;
}

.chart-wrapper {
  position: relative;
  height: 310px;
  width: 100%;
}

.chart-wrapper-lg {
  position: relative;
  height: 380px;
  width: 100%;
}

.card-footer-legend {
  padding: 0.75rem 1.4rem;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.chart-controls {
  display: flex;
  gap: 0.35rem;
}

.tool-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tool-btn:hover, .tool-btn.active {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

/* ==================== ENGAGEMENT BARS (Slide 12) ==================== */
.engagement-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.eng-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 90px;
  align-items: center;
  gap: 1rem;
}

.eng-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.eng-label i {
  width: 18px;
  font-size: 1rem;
}

.eng-track {
  height: 12px;
  background: var(--bg-surface-alt);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.eng-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.eng-metric {
  text-align: right;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.eng-metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==================== INSIGHTS NARRATIVE BOX ==================== */
.insights-card {
  margin-top: 1.5rem;
  border-left: 4px solid var(--brand-orange);
  padding: 1.25rem 1.5rem;
}

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

.insights-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-source {
  font-size: 0.7rem;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
}

.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insights-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  padding-left: 1.25rem;
}

.insights-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-size: 1.3rem;
  line-height: 1;
}

/* ==================== CHANNEL CALLOUTS (Slide 13) ==================== */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.callout-card {
  padding: 1.25rem 1.5rem;
  border-left-width: 4px;
}

.border-accent-blue { border-left: 4px solid #1d9bf0; }
.border-accent-teal { border-left: 4px solid #10b981; }

.callout-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.callout-head i {
  font-size: 1.4rem;
}

.callout-head h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.callout-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.callout-body {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* Table */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-surface-alt);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.data-table tr:hover td {
  background: var(--bg-surface-alt);
}

/* ==================== EMOTIONS (Slide 15 & 30) ==================== */
.emotion-legend-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.emo-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border-color);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.85rem;
}

.emoji-card {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.2s;
}

.emoji-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-orange);
}

.emoji-icon {
  font-size: 2rem;
}

.emoji-count {
  font-weight: 800;
  font-size: 0.95rem;
}

.emoji-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==================== SNA CONTAINER (Slide 16) ==================== */
.breadcrumb-sna {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.badge-red-outline {
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.7rem;
}

.btn-ai-sparkle {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.btn-outline-sm {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sna-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.25rem;
  height: 680px;
}

.sna-graph-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.sna-graph-toolbar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cluster-legend-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cluster-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.pill-pro { background: rgba(16, 185, 129, 0.15); color: #059669; }
.pill-kontra { background: rgba(239, 68, 68, 0.15); color: #dc2626; }
.pill-media { background: rgba(2, 132, 199, 0.15); color: #0284c7; }
.pill-publik { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }

.cluster-pill:hover, .cluster-pill.active {
  filter: brightness(0.9);
  border-color: currentColor;
}

.sna-zoom-controls {
  display: flex;
  gap: 0.25rem;
}

.sna-zoom-controls button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.network-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  outline: none;
}

.sna-graph-footer {
  padding: 0.5rem 1rem;
  background: var(--bg-surface-alt);
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Node Insight Panel */
.sna-insight-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
}

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

.panel-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.insight-block {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.flex-grow-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: none;
}

.block-subtitle {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.block-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.metric-box {
  background: var(--bg-surface-alt);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.m-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.m-val.highlight {
  color: var(--brand-orange);
}

/* Sentiments Bar */
.sentiment-linear-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.seg-pos { background: var(--color-positive); }
.seg-neu { background: var(--color-neutral); }
.seg-neg { background: var(--color-negative); }

.sentiment-linear-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dot-pos { width: 7px; height: 7px; border-radius: 50%; background: var(--color-positive); display: inline-block; }
.dot-neu { width: 7px; height: 7px; border-radius: 50%; background: var(--color-neutral); display: inline-block; }
.dot-neg { width: 7px; height: 7px; border-radius: 50%; background: var(--color-negative); display: inline-block; }

/* Top Nodes Search & List */
.search-node-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}

.search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
}

#searchNodeInput {
  width: 100%;
  padding: 0.4rem 0.6rem 0.4rem 1.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  outline: none;
}

.top-nodes-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 0.25rem;
}

.node-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}

.node-row:hover {
  background: var(--border-color);
}

.node-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-name {
  font-weight: 700;
  color: var(--text-main);
}

.node-count {
  font-weight: 800;
  color: var(--brand-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

/* ==================== OVERALL SENTIMENT (Slide 20) ==================== */
.sentiment-grid-3 {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.donut-wrapper {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sentiment-stat-pills {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
}

.stat-pill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 800;
}

.stat-cnt {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.channel-sentiment-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ch-sent-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.ch-name {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.ch-bar-track {
  height: 14px;
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-surface-alt);
}

.ch-vol {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  text-align: right;
  font-weight: 600;
}

/* Top Terms */
.terms-group {
  margin-bottom: 0.75rem;
}

.terms-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terms-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.85rem 0;
}

.terms-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.term-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-pos {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.tag-neg {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.term-freq {
  font-size: 0.65rem;
  opacity: 0.85;
  font-family: 'JetBrains Mono', monospace;
}

/* Colored Bullets (Slide 20) */
.insights-list-colored {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.insights-list-colored li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.bullet-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.bullet-pos { background: var(--color-positive); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.bullet-neg { background: var(--color-negative); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

/* ==================== POSTS FEED ==================== */
.filter-pills-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
}

.posts-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.post-author-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-verified {
  color: #1d9bf0;
  font-size: 0.75rem;
}

.post-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-platform-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.post-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-main);
}

.post-tags {
  display: flex;
  gap: 0.4rem;
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.post-stats-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
  display: flex;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.post-stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ==================== MODAL ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-sparkle-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
}

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

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

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-surface-alt);
}

/* Footer */
.app-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* SNA Mode Switcher */
.sna-mode-switcher {
  display: flex;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.2rem;
  gap: 0.25rem;
}

.btn-mode-toggle {
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s;
}

.btn-mode-toggle.active {
  background: var(--bg-surface);
  color: var(--brand-orange);
  box-shadow: var(--shadow-sm);
}

/* Slide 19: 4 Cluster Emotion Cards */
.sna-emotion-cards-section {
  margin-top: 1.5rem;
}

.section-sub-heading {
  margin-bottom: 1rem;
}

.grid-4-clusters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cluster-card {
  padding: 1.25rem;
  border-top-width: 4px;
}

.border-joy { border-top: 4px solid #eab308; }
.border-anticipation { border-top: 4px solid #f59e0b; }
.border-surprise { border-top: 4px solid #06b6d4; }
.border-anger { border-top: 4px solid #ef4444; }

.text-joy { color: #ca8a04; }
.text-anticipation { color: #d97706; }
.text-surprise { color: #0891b2; }
.text-anger { color: #dc2626; }

.cluster-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cluster-card-head h4 {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cluster-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cluster-bullet-list li {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-main);
  position: relative;
  padding-left: 1.1rem;
}

.cluster-bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text-muted);
}

@media (max-width: 1200px) {
  .grid-4-clusters { grid-template-columns: repeat(2, 1fr); }
}

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

