/* ============================================
   CAPITOL TRADES - Terminal Theme
   Inspired by SENATOR INSIDERS
   ============================================ */

/* CSS Variables - Terminal Color Palette */
:root {
  --terminal-bg: #0a0f14;
  --terminal-card: #111820;
  --terminal-border: #1e2a36;
  --terminal-accent: #00ff88;
  --terminal-buy: #00ff88;
  --terminal-sell: #ff4757;
  --terminal-text: #e4e8eb;
  --terminal-muted: #6b7b8c;
  --terminal-warning: #ffa502;
  
  /* Party colors */
  --party-democrat: #3b82f6;
  --party-republican: #ef4444;
  --party-independent: #a855f7;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--terminal-border) var(--terminal-bg);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--terminal-bg);
}

*::-webkit-scrollbar-thumb {
  background: var(--terminal-border);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #2a3a4a;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap');

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--terminal-text);
  background-color: var(--terminal-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Terminal Grid Background */
.terminal-grid {
  background-image: 
    linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  min-height: 100vh;
}

/* Display Font */
h1, h2, h3, .font-display {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Monospace Numbers */
.tabular-nums, .font-mono {
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', monospace;
}

/* Container */
.container {
  max-width: 1280px;
    margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
  background: rgba(10, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--terminal-border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--terminal-text);
}

.logo-icon {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  transition: all 0.3s ease;
}

.logo-icon svg {
  color: var(--terminal-accent);
}

.logo-icon::after {
    content: '';
    position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: var(--terminal-accent);
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}

.logo:hover .logo-icon {
  border-color: var(--terminal-accent);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo-title span {
  color: var(--terminal-accent);
}

.logo-subtitle {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: var(--terminal-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--terminal-text);
  background: var(--terminal-card);
}

.nav-link.active {
  color: var(--terminal-accent);
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--terminal-muted);
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .logo-subtitle {
    display: none;
  }
  
  .logo-title {
    font-size: 1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 20, 0.98);
    border-bottom: 1px solid var(--terminal-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }
  
  .nav-link span {
    display: inline;
  }
}

/* Theme Toggle - Hidden for now (dark only) */
.theme-toggle {
  display: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  padding: 2rem 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--terminal-card), var(--terminal-bg));
  border: 1px solid var(--terminal-border);
  border-radius: 1rem;
    overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Featured Politician in Hero */
.featured-politician-hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.featured-politician-hero:hover {
  transform: scale(1.03);
}

.featured-hero-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.75rem;
  text-align: center;
}

.featured-hero-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--terminal-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.featured-hero-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--terminal-muted);
  margin-top: 0.25rem;
}

.featured-hero-image {
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 2px solid var(--terminal-accent);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2);
  transition: all 0.3s ease;
}

.featured-politician-hero:hover .featured-hero-image {
  border-color: var(--terminal-accent);
  box-shadow: 0 12px 40px rgba(0, 255, 136, 0.3);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .featured-politician-hero {
    margin-top: 1.5rem;
  }
  
  .featured-hero-image {
    width: 140px;
    height: 170px;
  }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.08), transparent 70%);
  pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 150px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.05), transparent 70%);
  pointer-events: none;
}

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

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terminal-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--terminal-accent);
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}

.hero h1 {
    font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: var(--terminal-muted);
  max-width: 600px;
}

/* Page Header (simpler version) */
.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--terminal-text);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--terminal-muted);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 1.5rem;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--terminal-accent);
  margin-bottom: 0.25rem;
}

.stat-value.text-green { color: var(--terminal-buy); }
.stat-value.text-red { color: var(--terminal-sell); }

.stat-label {
  font-size: 0.75rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--terminal-muted);
  margin-top: 0.25rem;
}

/* ============================================
   CARDS & CONTAINERS
   ============================================ */
.card {
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  overflow: hidden;
}

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

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--terminal-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title svg {
  color: var(--terminal-accent);
}

.card-body {
  padding: 1.5rem;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}

/* ============================================
   CHARTS SECTION
   ============================================ */
.charts-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .charts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .charts-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.chart-card {
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.chart-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
    font-weight: 600;
  color: var(--terminal-text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-card.large {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .chart-card.large {
    grid-column: span 1;
  }
}

.chart-container {
  height: 200px;
  position: relative;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section {
  margin-bottom: 2rem;
}

.section-header {
  display: flex;
    align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terminal-text);
  display: flex;
    align-items: center;
  gap: 0.5rem;
}

.section-header a {
    font-size: 0.875rem;
  color: var(--terminal-accent);
  text-decoration: none;
  display: flex;
    align-items: center;
  gap: 0.25rem;
}

.section-header a:hover {
  text-decoration: underline;
}

/* ============================================
   TOP TRADERS GRID
   ============================================ */
.traders-grid {
    display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .traders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .traders-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.trader-card {
    display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
    text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.trader-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  background: rgba(17, 24, 32, 0.8);
  transform: translateY(-2px);
}

.trader-card img {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.trader-rank {
  width: 28px;
  height: 28px;
    display: flex;
  align-items: center;
    justify-content: center;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--terminal-border);
  color: var(--terminal-muted);
}

.trader-rank.top-3:nth-child(1) { background: #eab308; color: #000; }
.trader-card:nth-child(1) .trader-rank { background: #eab308; color: #000; }
.trader-card:nth-child(2) .trader-rank { background: #9ca3af; color: #000; }
.trader-card:nth-child(3) .trader-rank { background: #d97706; color: #fff; }

.trader-info {
  flex: 1;
  min-width: 0;
}

.trader-name {
    font-weight: 600;
  color: var(--terminal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
}

.trader-meta {
    display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.trader-count {
  text-align: right;
}

.trader-count .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--terminal-accent);
}

.trader-count .label {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
}

/* ============================================
   CHAMBER BADGES
   ============================================ */
.chamber {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
    text-transform: uppercase;
  font-weight: 600;
    letter-spacing: 0.05em;
}

.chamber.senate {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.chamber.house {
    background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Party Badges */
.party {
  width: 20px;
  height: 20px;
  border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: white;
}

.party.democrat, .party.democratic { background: var(--party-democrat); }
.party.republican { background: var(--party-republican); }
.party.independent { background: var(--party-independent); }

/* Large party badge */
.party-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
    color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.party-badge.democrat, .party-badge.democratic { background: var(--party-democrat); }
.party-badge.republican { background: var(--party-republican); }
.party-badge.independent { background: var(--party-independent); }

/* Member Detail Image */
.member-detail-image {
  width: 100px;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 2px solid var(--terminal-accent);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

/* Member Detail Stats Grid */
.member-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.member-stat-card {
  padding: 1rem 1.5rem;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  text-align: center;
}

.member-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

.member-stat-label {
  font-size: 0.75rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .member-stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
  }
  
  .member-stat-card {
    padding: 0.75rem 0.5rem;
  }
  
  .member-stat-value {
    font-size: 1.125rem;
  }
  
  .member-stat-label {
    font-size: 0.625rem;
  }
}

/* Member Header Card Mobile */
@media (max-width: 768px) {
  .member-header-card {
    padding: 1.25rem !important;
  }
  
  .member-header-card > div:first-child {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .member-detail-image {
    width: 80px;
    height: 100px;
  }
}

/* ============================================
   TRANSACTIONS TABLE/LIST
   ============================================ */
.transactions-list {
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  overflow: hidden;
}

.transaction-row {
    display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--terminal-border);
  transition: background 0.2s ease;
}

.transaction-row:last-child {
  border-bottom: none;
}

.transaction-row:hover {
  background: rgba(30, 42, 54, 0.5);
}

.tx-member-image {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 1px solid var(--terminal-border);
}

.tx-party {
  width: 32px;
  height: 32px;
  border-radius: 50%;
    display: flex;
    align-items: center;
  justify-content: center;
  font-size: 0.75rem;
    font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tx-party.D { background: var(--party-democrat); }
.tx-party.R { background: var(--party-republican); }
.tx-party.I { background: var(--party-independent); }

.tx-info {
    flex: 1;
  min-width: 0;
}

.tx-name {
    font-weight: 600;
  color: var(--terminal-text);
  text-decoration: none;
}

.tx-name:hover {
  color: var(--terminal-accent);
}

.tx-meta {
    font-size: 0.75rem;
  color: var(--terminal-muted);
    display: flex;
    align-items: center;
  gap: 0.5rem;
}

.tx-ticker {
  font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
  color: var(--terminal-accent);
    text-align: right;
}

.tx-asset {
    font-size: 0.75rem;
  color: var(--terminal-muted);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-asset-row {
  display: flex;
    align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.asset-type-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.asset-type-badge.stock {
  background: rgba(0, 255, 136, 0.2);
  color: var(--terminal-accent);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.asset-type-badge.option {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.asset-type-badge.etf {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.asset-type-badge.bond,
.asset-type-badge.treasury,
.asset-type-badge.municipal-bond,
.asset-type-badge.corporate-bond {
  background: rgba(156, 39, 176, 0.2);
  color: #ce93d8;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.asset-type-badge.mutual-fund {
  background: rgba(0, 188, 212, 0.2);
  color: #00bcd4;
  border: 1px solid rgba(0, 188, 212, 0.3);
}

.asset-type-badge.reit {
  background: rgba(139, 195, 74, 0.2);
  color: #8bc34a;
  border: 1px solid rgba(139, 195, 74, 0.3);
}

.asset-type-badge.private-equity,
.asset-type-badge.hedge-fund {
  background: rgba(255, 87, 34, 0.2);
  color: #ff7043;
  border: 1px solid rgba(255, 87, 34, 0.3);
}

.asset-type-badge.cryptocurrency {
  background: rgba(255, 152, 0, 0.2);
  color: #ffb74d;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.asset-type-badge.other {
  background: rgba(158, 158, 158, 0.2);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.3);
  white-space: nowrap;
  text-align: right;
}

.tx-type {
    display: inline-flex;
    align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tx-type.buy {
  background: rgba(0, 255, 136, 0.15);
  color: var(--terminal-buy);
}

.tx-type.sell {
  background: rgba(255, 71, 87, 0.15);
  color: var(--terminal-sell);
}

.tx-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--terminal-muted);
  text-align: right;
  min-width: 100px;
}

.tx-date {
  font-size: 0.75rem;
  color: var(--terminal-muted);
  text-align: right;
  min-width: 80px;
}

/* ============================================
   MEMBERS GRID
   ============================================ */

/* Featured Insiders Section */
.featured-insiders-section {
  margin-bottom: 2.5rem;
}

.featured-insiders-section .section-header {
    display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.featured-insiders-section .section-subtitle {
  font-size: 0.875rem;
  color: var(--terminal-muted);
}

.featured-insiders-grid {
    display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.featured-insider-card {
    display: flex;
    align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--terminal-card), rgba(0, 255, 136, 0.03));
  border: 2px solid rgba(255, 165, 2, 0.3);
  border-radius: 12px;
    text-decoration: none;
    color: inherit;
  transition: all 0.3s ease;
}

.featured-insider-card:hover {
  border-color: var(--terminal-warning);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 165, 2, 0.15);
}

.featured-insider-card.pelosi {
  background: linear-gradient(135deg, var(--terminal-card), rgba(0, 255, 136, 0.05));
  border-color: var(--terminal-accent);
}

.featured-insider-card.pelosi:hover {
  border-color: var(--terminal-accent);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.2);
}

.featured-insider-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 2px solid var(--terminal-warning);
  flex-shrink: 0;
}

.featured-insider-card.pelosi .featured-insider-image {
  border-color: var(--terminal-accent);
}

.featured-insider-avatar {
  width: 70px;
  height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
  background: linear-gradient(135deg, rgba(255, 165, 2, 0.2), rgba(255, 165, 2, 0.1));
  border: 2px solid var(--terminal-warning);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terminal-warning);
}

.featured-insider-info {
    flex: 1;
  min-width: 0;
}

.featured-insider-name {
  font-size: 1rem;
    font-weight: 600;
  color: var(--terminal-text);
  margin-bottom: 0.25rem;
}

.featured-insider-meta {
    display: flex;
  align-items: center;
  gap: 0.5rem;
    font-size: 0.75rem;
  color: var(--terminal-muted);
}

.party-tag {
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
}

.party-tag.democrat, .party-tag.d {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.party-tag.republican, .party-tag.r {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.featured-insider-trades {
    text-align: center;
}

.featured-insider-trades .trade-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terminal-accent);
}

.featured-insider-trades .trade-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terminal-muted);
}

.members-grid {
    display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.member-card {
  display: block;
  padding: 1.25rem;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
    text-decoration: none;
    color: inherit;
  transition: all 0.3s ease;
}

.member-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.member-card-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 1px solid var(--terminal-border);
}

.member-card-info {
    flex: 1;
  min-width: 0;
}

.member-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--terminal-text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-card-meta {
  font-size: 0.75rem;
  color: var(--terminal-muted);
    display: flex;
  align-items: center;
  gap: 0.5rem;
}

.member-card-trades {
    text-align: right;
}

.member-card-trades .value {
  font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
  color: var(--terminal-accent);
}

.member-card-trades .label {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
}

.member-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--terminal-border);
}

.member-card-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.member-card-stat.buy { color: var(--terminal-buy); }
.member-card-stat.sell { color: var(--terminal-sell); }

/* Buy/Sell ratio bar */
.ratio-bar {
  height: 4px;
  background: var(--terminal-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.ratio-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--terminal-buy), var(--terminal-buy));
  border-radius: 2px;
}

/* ============================================
   MEMBER DETAIL PAGE
   ============================================ */
.member-header {
  text-align: center;
  margin-bottom: 2rem;
}

.member-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.member-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.member-status {
  font-size: 0.875rem;
  color: var(--terminal-muted);
}

.member-status.active {
  color: var(--terminal-accent);
}

/* Holdings Grid */
.holdings-grid {
    display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .holdings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
  .holdings-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.holding-card {
  padding: 1rem;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.holding-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
}

.holding-card .ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
    font-weight: 700;
  color: var(--terminal-accent);
  margin-bottom: 0.75rem;
}

.holding-stats {
  display: flex;
  gap: 1rem;
}

.holding-stats .stat {
  flex: 1;
}

.holding-stats .label {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
  margin-bottom: 0.125rem;
}

.holding-stats .value {
  font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.holding-stats .stat.buy .value { color: var(--terminal-buy); }
.holding-stats .stat.sell .value { color: var(--terminal-sell); }

/* ============================================
   TRANSACTIONS TABLE
   ============================================ */
.table-container {
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--terminal-border);
}

.transactions-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terminal-muted);
  text-transform: uppercase;
    letter-spacing: 0.05em;
  background: var(--terminal-card);
}

.transactions-table td {
  font-size: 0.875rem;
}

.transactions-table tr:hover td {
  background: rgba(30, 42, 54, 0.3);
}

.transactions-table .asset-name {
  color: var(--terminal-text);
    font-weight: 500;
}

.transactions-table .ticker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  background: rgba(0, 255, 136, 0.1);
  color: var(--terminal-accent);
  border-radius: 4px;
  margin-top: 0.25rem;
}

.transactions-table .amount {
  font-family: 'JetBrains Mono', monospace;
  color: var(--terminal-text);
}

.transactions-table .date {
  color: var(--terminal-muted);
  white-space: nowrap;
}

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

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  /* Make tables scroll horizontally */
  .transactions-table {
    font-size: 0.75rem;
  }
  
  .transactions-table th,
  .transactions-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .transactions-table .asset-name {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Dashboard Mobile Fixes */
@media (max-width: 1024px) {
  .dashboard-main-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Stats Grid Mobile */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.5rem;
  }
}

/* Hero Mobile */
@media (max-width: 640px) {
  .hero {
    padding: 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 0.875rem;
  }
  
  .featured-hero-image {
    width: 100px;
    height: 120px;
  }
}

/* Hot Trades Grid Mobile */
@media (max-width: 640px) {
  .hot-trades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .hot-trade-card {
    padding: 1rem;
  }
  
  .hot-trade-ticker {
    font-size: 1.125rem;
  }
  
  .hot-trade-name {
    font-size: 0.65rem;
    margin-bottom: 0.75rem;
  }
  
  .hot-trade-stats .trade-count {
    font-size: 0.65rem;
  }
  
  .buy-sell-labels {
    font-size: 0.5rem;
  }
}

/* Charts Grid Mobile */
@media (max-width: 640px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-card.large {
    grid-column: span 1;
  }
}

/* Transaction Row Mobile */
@media (max-width: 640px) {
  .transaction-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  
  .tx-party {
    width: 28px;
    height: 28px;
  }
  
  .tx-info {
    flex: 1 1 calc(100% - 40px);
    order: 1;
  }
  
  .tx-asset-row {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }
  
  .tx-type {
    order: 2;
  }
  
  .tx-amount, .tx-date {
    font-size: 0.65rem;
    min-width: auto;
  }
}

/* Member Card Mobile */
@media (max-width: 640px) {
  .members-grid {
    grid-template-columns: 1fr;
  }
  
  .member-card {
    padding: 1rem;
  }
  
  .member-card-header {
    gap: 0.75rem;
  }
  
  .member-card-trades .value {
    font-size: 1.25rem;
  }
}

/* Featured Insiders Mobile */
@media (max-width: 640px) {
  .featured-insiders-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-insider-card {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .featured-insider-image,
  .featured-insider-avatar {
    width: 50px;
    height: 50px;
  }
  
  .featured-insider-name {
    font-size: 0.875rem;
  }
  
  .featured-insider-trades .trade-value {
    font-size: 1.25rem;
  }
}

/* Trader Card Mobile */
@media (max-width: 640px) {
  .traders-grid {
    grid-template-columns: 1fr;
  }
  
  .trader-card {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .trader-rank {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
  
  .trader-name {
    font-size: 0.8rem;
  }
  
  .trader-count .value {
    font-size: 1rem;
  }
}

/* Page Header Mobile */
@media (max-width: 640px) {
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .page-header p {
    font-size: 0.875rem;
  }
}

/* Section Header Mobile */
@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .section-header h2 {
    font-size: 1rem;
  }
}

/* Filter Controls Mobile */
@media (max-width: 640px) {
  .filters {
    width: 100%;
    flex-direction: column;
  }
  
  .filters select {
    width: 100%;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-btn {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }
  
  .search-wrapper {
    max-width: none;
    width: 100%;
  }
}

/* Card Body Padding Mobile */
@media (max-width: 640px) {
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
}

/* Trade Ideas Cards Mobile */
@media (max-width: 640px) {
  .trade-ideas-grid {
    grid-template-columns: 1fr !important;
  }
  
  .consensus-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
  }
  
  .consensus-stats-grid > div {
    padding: 0.5rem !important;
  }
  
  .consensus-stats-grid .stat-value {
    font-size: 1rem !important;
  }
}

/* Top Insiders Grid Mobile - Improved */
@media (max-width: 640px) {
  .top-insiders-grid {
    grid-template-columns: 1fr;
  }
  
  .insider-card {
    grid-template-columns: auto 1fr auto;
    padding: 0.875rem;
    gap: 0.75rem;
  }
  
  .insider-rank {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
  
  .insider-avatar {
    display: none;
  }
  
  .insider-name {
    font-size: 0.875rem;
  }
  
  .insider-portfolio {
    min-width: auto;
  }
  
  .portfolio-value {
    font-size: 1rem;
  }
  
  .portfolio-range {
    display: none;
  }
  
  .confidence-bar,
  .confidence-label {
    display: none;
  }
}

/* Footer Mobile */
@media (max-width: 640px) {
  footer {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }
  
  footer p {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Main content padding on mobile */
@media (max-width: 640px) {
  main {
    padding: 1rem 0;
  }
}

/* ============================================
   FILTERS & FORMS
   ============================================ */
.filters {
    display: flex;
    align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

select, input[type="text"], input[type="search"] {
  padding: 0.625rem 1rem;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  color: var(--terminal-text);
  font-family: inherit;
    font-size: 0.875rem;
  transition: all 0.2s ease;
}

select:focus, input:focus {
  outline: none;
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

select {
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7b8c' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Filter buttons group */
.filter-group {
    display: flex;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  overflow: hidden;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--terminal-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--terminal-text);
}

.filter-btn.active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--terminal-accent);
}

/* Search input */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--terminal-muted);
}

.search-wrapper input {
  width: 100%;
  padding-left: 2.75rem;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
    font-weight: 600;
  border-radius: 6px;
  background: var(--terminal-card);
  color: var(--terminal-muted);
  border: 1px solid var(--terminal-border);
}

.badge.accent {
  background: rgba(0, 255, 136, 0.1);
  color: var(--terminal-accent);
  border-color: rgba(0, 255, 136, 0.3);
}

/* ============================================
   EMPTY STATES
   ============================================ */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--terminal-muted);
}

.no-results svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 1.125rem;
  color: var(--terminal-text);
  margin-bottom: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--terminal-border);
}

footer p {
    font-size: 0.875rem;
  color: var(--terminal-muted);
    text-align: center;
}

footer a {
  color: var(--terminal-accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fade-in 0.5s ease-out;
}

/* Stagger children animations */
.stagger-in > * {
  animation: fade-in 0.4s ease-out both;
}

.stagger-in > *:nth-child(1) { animation-delay: 0ms; }
.stagger-in > *:nth-child(2) { animation-delay: 50ms; }
.stagger-in > *:nth-child(3) { animation-delay: 100ms; }
.stagger-in > *:nth-child(4) { animation-delay: 150ms; }
.stagger-in > *:nth-child(5) { animation-delay: 200ms; }
.stagger-in > *:nth-child(6) { animation-delay: 250ms; }
.stagger-in > *:nth-child(7) { animation-delay: 300ms; }
.stagger-in > *:nth-child(8) { animation-delay: 350ms; }
.stagger-in > *:nth-child(9) { animation-delay: 400ms; }
.stagger-in > *:nth-child(10) { animation-delay: 450ms; }

/* Glow effects */
.glow-green {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.glow-red {
  text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

.hidden { display: none; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}

/* ============================================
   HOT TRADES GRID
   ============================================ */
.hot-trades-grid {
    display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .hot-trades-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .hot-trades-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hot-trade-card {
  display: block;
  padding: 1.25rem;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hot-trade-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
}

a.hot-trade-card:hover {
    text-decoration: none;
}

.hot-trade-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terminal-accent);
  margin-bottom: 0.25rem;
}

.hot-trade-name {
  font-size: 0.75rem;
  color: var(--terminal-muted);
  margin-bottom: 1rem;
    overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-trade-stats {
  padding-top: 1rem;
  border-top: 1px solid var(--terminal-border);
}

.hot-trade-stats .trade-count {
  font-size: 0.75rem;
  color: var(--terminal-text);
  margin-bottom: 0.5rem;
  display: block;
}

.buy-sell-bar {
  height: 6px;
  background: var(--terminal-sell);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.buy-sell-bar .buy-bar {
  height: 100%;
  background: var(--terminal-buy);
  border-radius: 3px 0 0 3px;
  transition: width 0.3s ease;
}

.buy-sell-labels {
    display: flex;
    justify-content: space-between;
  font-size: 0.625rem;
  text-transform: uppercase;
}

.buy-label {
  color: var(--terminal-buy);
}

.sell-label {
  color: var(--terminal-sell);
}

/* ============================================
   TOP INSIDERS BY PORTFOLIO VALUE
   ============================================ */

.section-badge {
  background: rgba(0, 255, 136, 0.1);
  color: var(--terminal-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.top-insiders-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .top-insiders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .top-insiders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.insider-card {
    display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--terminal-card);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.insider-card:hover {
  border-color: var(--terminal-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.1);
}

.insider-rank {
  width: 28px;
  height: 28px;
    display: flex;
    align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--terminal-accent), #00cc6a);
  color: var(--terminal-bg);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.insider-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
}

.insider-avatar img {
  width: 100%;
  height: 100%;
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
}

.insider-avatar .party-badge {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
}

.insider-info {
  min-width: 0;
}

.insider-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--terminal-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insider-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
    font-size: 0.75rem;
}

.insider-meta .state {
  color: var(--terminal-muted);
}

.insider-portfolio {
  text-align: right;
  min-width: 120px;
}

.portfolio-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.portfolio-value.positive {
  color: var(--terminal-buy);
}

.portfolio-value.negative {
  color: var(--terminal-sell);
}

.portfolio-range {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  margin-top: 0.125rem;
  font-family: 'JetBrains Mono', monospace;
}

.range-label {
  opacity: 0.7;
}

.confidence-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-top: 0.375rem;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(0, 255, 136, 0.4),
    rgba(0, 255, 136, 0.8));
  border-radius: 2px;
  transition: width 0.5s ease;
}

.confidence-label {
  font-size: 0.5625rem;
  color: var(--terminal-muted);
    text-transform: uppercase;
  margin-top: 0.125rem;
  letter-spacing: 0.02em;
}

.insider-holdings {
  min-width: 140px;
  padding-left: 1rem;
  border-left: 1px solid var(--terminal-border);
}

.holdings-header {
  font-size: 0.625rem;
  color: var(--terminal-muted);
  text-transform: uppercase;
  margin-bottom: 0.375rem;
  letter-spacing: 0.05em;
}

.holding-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  font-size: 0.75rem;
  padding: 0.125rem 0;
}

.holding-ticker {
  color: var(--terminal-accent);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.holding-value {
  color: var(--terminal-text);
  font-family: 'JetBrains Mono', monospace;
}

.no-holdings {
  font-size: 0.6875rem;
  color: var(--terminal-muted);
  font-style: italic;
}

/* Responsive adjustments for insider cards */
@media (max-width: 768px) {
  .insider-card {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: auto auto;
  }
  
  .insider-portfolio {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--terminal-border);
  }
  
  .insider-holdings {
    display: none;
    }
}
