.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
  min-width: 150px;
  text-align: center;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5rem;
  transition: color 0.2s;
}

.sortable-header:hover {
  color: #2563eb;
}

.sort-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

.sort-indicator.asc::after {
  content: ' ↑';
}

.sort-indicator.desc::after {
  content: ' ↓';
}

/* ── Insights Widget ─────────────────────────────────────────── */

.widget-freshness {
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 0.75rem;
}

.insights-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.insights-filter-btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
  text-transform: capitalize;
}

.insights-filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.insights-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.insight-card {
  padding: 1rem 1.125rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  transition: box-shadow 0.15s;
}

.insight-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.insight-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.insight-source-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  background: #f3f4f6;
  color: #374151;
}

.insight-source--twitter  { background: #dbeafe; color: #1d4ed8; }
.insight-source--reddit   { background: #ffedd5; color: #c2410c; }
.insight-source--news     { background: #f3f4f6; color: #374151; }
.insight-source--press_release { background: #ede9fe; color: #6d28d9; }
.insight-source--other    { background: #f0fdf4; color: #15803d; }

.insight-date {
  font-size: 0.78rem;
  color: #9ca3af;
}

.insight-sentiment-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.sentiment--positive { background: #dcfce7; color: #15803d; }
.sentiment--negative { background: #fee2e2; color: #b91c1c; }
.sentiment--neutral  { background: #f3f4f6; color: #6b7280; }
.sentiment--mixed    { background: #fef9c3; color: #854d0e; }

.insight-headline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.375rem;
  line-height: 1.4;
}

.insight-summary {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.insight-link {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.insight-link:hover {
  text-decoration: underline;
}

/* ── Subscriber Message ── */
.subscriber-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border-radius: 0.5rem;
  border: 1px solid #ede9fe;
}

.subscriber-message-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #7c4d9e;
  margin: 0;
  letter-spacing: -0.01em;
}

.subscriber-message-subtext {
  font-size: 0.9rem;
  color: #9b4f8a;
  margin: 0;
  line-height: 1.5;
}

.subscriber-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #c4589a 0%, #9b4f8a 50%, #7c4d9e 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.subscriber-link:hover {
  opacity: 0.88;
  box-shadow: 0 2px 8px rgb(196 88 154 / 0.35);
  color: #fff;
}