:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #101726;
  --bg-card: rgba(18, 25, 41, 0.75);
  --bg-card-hover: rgba(26, 36, 58, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --buy-bg: rgba(16, 185, 129, 0.12);
  --buy-border: rgba(16, 185, 129, 0.28);
  --buy-text: #34d399;

  --sell-bg: rgba(244, 63, 94, 0.12);
  --sell-border: rgba(244, 63, 94, 0.28);
  --sell-text: #fb7185;

  --increased-bg: rgba(59, 130, 246, 0.12);
  --increased-border: rgba(59, 130, 246, 0.28);
  --increased-text: #60a5fa;

  --trimmed-bg: rgba(245, 158, 11, 0.12);
  --trimmed-border: rgba(245, 158, 11, 0.28);
  --trimmed-text: #fbbf24;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.15);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.glow-top {
  top: -150px;
  left: 20%;
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, #4f46e5 0%, #06b6d4 100%);
}
.glow-bottom {
  bottom: -100px;
  right: 10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, #8b5cf6 0%, #10b981 100%);
}

/* Ticker Bar */
.ticker-bar {
  background: rgba(13, 18, 30, 0.9);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  height: 38px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 20;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141d33;
  padding: 0 16px;
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #93c5fd;
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
  z-index: 2;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: scrollTicker 45s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ticker-item strong {
  color: var(--text-primary);
}
.ticker-item .action-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-wordmark {
  display: inline;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-title span.gain-highlight {
  background: linear-gradient(90deg, #10b981, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.45));
}
.edition-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

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

.status-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.auto-refresh-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: #c7d2fe;
  white-space: nowrap;
}
.auto-refresh-pill .timer-icon {
  color: #818cf8;
  flex-shrink: 0;
}
.auto-refresh-pill.syncing .timer-icon {
  animation: spin 1s linear infinite;
  color: #38bdf8;
}
.timer-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.timer-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #a5b4fc;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* Main Content Container */
.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 10;
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

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

.stat-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.stat-icon.violet {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}
.stat-icon.gold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}
.stat-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.stat-value .sub-val {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-caption {
  font-size: 12px;
  color: var(--text-secondary);
}

.badge-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-block;
  margin-right: 4px;
}
.badge-pill.positive {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-pill.highlight {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* Toolbar & Filter Section */
.toolbar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-box svg {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 13px 40px 13px 44px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}
.search-box input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 21, 37, 0.9);
}
.search-box input::placeholder {
  color: var(--text-muted);
}
.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.filter-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.select-wrapper {
  position: relative;
}
.select-wrapper select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(10, 14, 23, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.2s ease;
}
.select-wrapper select:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Quick Filter Chips */
.filter-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chip-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}
.chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
  font-weight: 600;
}

/* Table Card */
.table-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(14, 20, 32, 0.6);
}

.results-count {
  font-size: 13px;
  color: var(--text-secondary);
}
.results-count span {
  color: #fff;
  font-weight: 700;
}

.table-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.badge-buy { background: var(--accent-emerald); }
.badge-sell { background: var(--accent-rose); }

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.whale-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.whale-table thead tr {
  background: rgba(10, 14, 24, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.whale-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.whale-table th:hover {
  color: var(--text-primary);
}

.whale-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.whale-table tbody tr {
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.whale-table tbody tr:hover {
  background-color: var(--bg-card-hover);
}

.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}

/* Investor Column */
.investor-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.investor-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.investor-avatar.buffett { background: linear-gradient(135deg, #1e3a8a, #3b82f6); color: #fff; }
.investor-avatar.burry { background: linear-gradient(135deg, #3730a3, #7c3aed); color: #fff; }
.investor-avatar.ackman { background: linear-gradient(135deg, #065f46, #10b981); color: #fff; }
.investor-avatar.druckenmiller { background: linear-gradient(135deg, #831843, #ec4899); color: #fff; }
.investor-avatar.griffin { background: linear-gradient(135deg, #78350f, #f59e0b); color: #fff; }

.investor-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}
.fund-name {
  font-size: 12px;
  color: var(--text-muted);
}

/* Stock Column */
.stock-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stock-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.company-name {
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}
.stock-sector {
  font-size: 11px;
  color: var(--text-muted);
}

/* Action Badges */
.action-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.action-new-buy {
  background: var(--buy-bg);
  border: 1px solid var(--buy-border);
  color: var(--buy-text);
}
.action-increased {
  background: var(--increased-bg);
  border: 1px solid var(--increased-border);
  color: var(--increased-text);
}
.action-trimmed {
  background: var(--trimmed-bg);
  border: 1px solid var(--trimmed-border);
  color: var(--trimmed-text);
}
.action-sold-out {
  background: var(--sell-bg);
  border: 1px solid var(--sell-border);
  color: var(--sell-text);
}

/* Numbers & Value Columns */
.value-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.value-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.portfolio-pct {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  color: #e2e8f0;
}
.portfolio-bar-wrap {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-left: auto;
  margin-top: 4px;
  overflow: hidden;
}
.portfolio-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #38bdf8);
  border-radius: 2px;
}

/* Date & Time Column */
.date-primary {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
}
.time-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* Action button in table */
.view-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-btn:hover {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.empty-state h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

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

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

.modal-window {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(17, 24, 39, 0.8);
}
.modal-pretitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-indigo);
}
.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}

.modal-body {
  padding: 24px;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.detail-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.detail-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.modal-sec-box {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sec-info-title {
  font-size: 12px;
  font-weight: 700;
  color: #c7d2fe;
}
.sec-info-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sec-link-btn {
  font-size: 12px;
  color: #818cf8;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sec-link-btn:hover {
  text-decoration: underline;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px;
  margin-top: 40px;
  background: rgba(10, 13, 20, 0.7);
  position: relative;
  z-index: 10;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Category Badges ──────────────────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Billionaire Whale — gold */
.cat-billionaire-whale {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Hedge Fund — violet */
.cat-hedge-fund {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Mega Institution — sky blue */
.cat-mega-institution {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* University Endowment — emerald */
.cat-university-endowment {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* Politician — red/pink */
.cat-politician {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.3);
}

/* PTR 6h Timer Pill — distinct from SEC timer */
.ptr-pill {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.25);
  color: #fb7185;
}
.ptr-pill .timer-label {
  color: rgba(251, 113, 133, 0.8);
}
.ptr-pill .timer-countdown {
  color: #fb7185;
  letter-spacing: 0.5px;
}

/* Legal Safeguards & Disclaimer Box */
.footer-disclaimer-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
}

.disclaimer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.disclaimer-body {
  font-size: 11px;
  line-height: 1.65;
  color: #64748b;
  margin: 0;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: #64748b;
}

