/* ===== CONGRESS TRADE TRACKER — PREMIUM DARK THEME ===== */

:root {
  --bg-1: #0a0a0f;
  --bg-2: #0f0f18;
  --bg-3: #141422;
  --bg-card: #16162a;
  --bg-card-hover: #1a1a35;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --text-dim: #555570;
  --green: #00d4aa;
  --green-dim: rgba(0, 212, 170, 0.12);
  --red: #ff4757;
  --red-dim: rgba(255, 71, 87, 0.12);
  --blue: #6c5ce7;
  --blue-dim: rgba(108, 92, 231, 0.12);
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.1);
  --dem-blue: #3b82f6;
  --rep-red: #ef4444;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --gradient: linear-gradient(135deg, #6c5ce7, #00d4aa);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ff6b35);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; }

a { color: var(--green); text-decoration: none; transition: all 0.2s; }
a:hover { opacity: 0.85; }

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}
.nav-logo span { color: var(--green); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--gradient) !important;
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--green); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 0.8rem;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); opacity: 1; }

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== PROOF BAR ===== */
.proof-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.proof-icon { font-size: 1rem; }

/* ===== SECTIONS ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-dark {
  max-width: 100%;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark > .section-header,
.section-dark > .steps-grid,
.section-dark > .pricing-grid,
.section-dark > .pricing-note,
.section-dark > .chart-container,
.section-dark > .chart-legend {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-header h2 span { color: var(--green); }

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== LEADERBOARD ===== */
.leaderboard-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green-dim); border-color: var(--green); color: var(--green); }

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.data-table th {
  background: var(--bg-3);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--green); }

.data-table td {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

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

.party-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.party-badge.dem { background: rgba(59, 130, 246, 0.15); color: var(--dem-blue); }
.party-badge.rep { background: rgba(239, 68, 68, 0.15); color: var(--rep-red); }

.val-green { color: var(--green); font-weight: 600; }
.val-red { color: var(--red); font-weight: 600; }

.blur-overlay {
  position: relative;
  display: none;
  margin-top: -4rem;
  padding-top: 4rem;
  background: linear-gradient(to bottom, transparent, var(--bg-1) 40%);
}

.blur-overlay.active { display: block; }

.blur-content {
  text-align: center;
  padding: 2rem;
}
.blur-content h3 { margin-bottom: 0.5rem; }
.blur-content p { color: var(--text-muted); margin-bottom: 1.2rem; }

/* ===== CHART ===== */
.chart-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* ===== TRADES FEED ===== */
.trades-feed {
  display: grid;
  gap: 0.8rem;
}

.trade-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: all 0.2s;
}
.trade-card:hover { border-color: var(--border-light); background: var(--bg-card-hover); }

.trade-type {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.trade-type.buy { background: var(--green-dim); color: var(--green); }
.trade-type.sell { background: var(--red-dim); color: var(--red); }

.trade-info h4 { font-size: 0.95rem; font-weight: 600; }
.trade-info p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }

.trade-ticker {
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-3);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
}

.trade-amount {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trade-card.blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all 0.3s;
}
.step-card:hover { border-color: var(--green); transform: translateY(-4px); }

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 0.8rem;
}

.step-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== SPOTLIGHT ===== */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all 0.3s;
}
.spotlight-card:hover { border-color: var(--green); }

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

.spotlight-name { font-size: 1.1rem; font-weight: 700; }
.spotlight-meta { font-size: 0.8rem; color: var(--text-muted); }

.spotlight-return {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.spotlight-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.spotlight-stat-label { font-size: 0.75rem; color: var(--text-dim); }
.spotlight-stat-val { font-size: 0.9rem; font-weight: 600; }

.spotlight-trades {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.spotlight-trades h5 { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }

.spotlight-trade-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.25rem 0;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.price-card-featured {
  border: 2px solid var(--green);
  background: linear-gradient(to bottom, rgba(0, 212, 170, 0.04), var(--bg-card));
  transform: scale(1.04);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.price-tier {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.price-amount span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.price-save {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.price-features {
  list-style: none;
  margin: 1.5rem 0;
}
.price-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2rem;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.faq-item h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CTA FINAL ===== */
.cta-final {
  text-align: center;
  padding: 4rem 1.5rem;
}
.cta-final h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 600px;
  margin: 0 auto 0.8rem;
}
.cta-final p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: 800px; margin: 0 auto; }

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

footer p { font-size: 0.85rem; color: var(--text-muted); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--green); }

.footer-disclaimer { font-size: 0.72rem; color: var(--text-dim); margin-top: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.footer-copy { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.5rem; }
.footer-copy a { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .faq-grid { grid-template-columns: 1fr; }

  .trade-card { grid-template-columns: auto 1fr; }
  .trade-ticker, .trade-amount { grid-column: 2; }

  .proof-inner { flex-direction: column; gap: 0.8rem; }
}

@media (max-width: 480px) {
  .hero { padding: 6rem 1rem 3rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== SALES NOTIFICATION WIDGET ===== */
.sales-notif {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  pointer-events: none;
}
.sales-notif.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.sn-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  max-width: 380px;
  backdrop-filter: blur(12px);
}
.sn-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.sn-text {
  flex: 1;
  min-width: 0;
}
.sn-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-action {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 2px;
}
.sn-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.sn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.sn-close:hover {
  opacity: 1;
  color: var(--text);
}

@media (max-width: 480px) {
  .sales-notif {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .sn-inner {
    max-width: 100%;
  }
}
