:root {
  --bg: #050505;
  --surface: #111111;
  --surface-soft: #1a1a1a;
  --line: #2e2e2e;
  --text: #f5f5f5;
  --muted: #bbbbbb;
  --yellow: #f3c63a;
  --yellow-strong: #ffd84d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, #1b1b1b 0%, var(--bg) 45%);
  color: var(--text);
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #171717;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.brand span {
  color: var(--yellow);
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--yellow);
  color: #111;
  text-decoration: none;
  font-weight: 700;
}

.hero {
  padding: 72px 0 44px;
}

.hero-inner {
  background: linear-gradient(120deg, #101010, #090909);
  border: 1px solid #1f1f1f;
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.eyebrow {
  color: var(--yellow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  max-width: 800px;
}

.hero h1 span {
  color: var(--yellow);
}

.hero-sub {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.disclaimer {
  margin-top: 14px;
  max-width: 760px;
  font-size: 0.88rem;
  color: #d9d9d9;
  padding: 10px 12px;
  border: 1px solid #3b3320;
  border-radius: 10px;
  background: rgba(243, 198, 58, 0.08);
}

.panel {
  padding-bottom: 60px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.filters select,
.filters input,
.filters button {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.filters input::placeholder {
  color: #8c8c8c;
}

.filters button {
  cursor: pointer;
  font-weight: 700;
  background: var(--yellow);
  color: #121212;
  align-self: end;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.metric-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.metric-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--yellow-strong);
}

.status-line {
  margin: 16px 0;
  color: #dfdfdf;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.footnote {
  margin: 14px 2px 0;
  font-size: 0.84rem;
  color: #ababab;
  line-height: 1.55;
}

.footnote a {
  color: var(--yellow-strong);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

thead th {
  text-align: left;
  padding: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #202020;
  font-size: 0.92rem;
}

tbody tr:hover {
  background: rgba(243, 198, 58, 0.06);
}

.empty {
  text-align: center;
  color: #a6a6a6;
  padding: 26px 0;
}

.candidate-name {
  font-weight: 700;
}

.candidate-sub {
  font-size: 0.8rem;
  color: #9f9f9f;
  margin-top: 4px;
}

.candidate-profile-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.candidate-profile-link:hover .candidate-name {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.candidate-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.candidate-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: #232323;
  border: 1px solid #353535;
  flex-shrink: 0;
}

.donate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--yellow);
  color: #151515;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.86rem;
}

.donate-link.is-disabled {
  background: #2c2c2c;
  color: #7f7f7f;
  pointer-events: none;
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}

.candidate-page {
  padding-top: 36px;
  padding-bottom: 56px;
}

.candidate-card-detail {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(1rem, 2.3vw, 2rem);
}

.candidate-detail-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.candidate-detail-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  background: #232323;
  border: 1px solid #353535;
}

.candidate-detail-main h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.candidate-detail-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.candidate-detail-stats {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.candidate-detail-stats strong {
  color: var(--yellow-strong);
}

.candidate-detail-description {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.candidate-detail-description h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.candidate-detail-description p {
  margin: 0;
  line-height: 1.65;
  color: #dfdfdf;
}

.candidate-help {
  margin: 0;
  color: var(--muted);
}

.candidate-help a {
  color: var(--yellow-strong);
  font-weight: 600;
}

@media (max-width: 900px) {
  .candidate-detail-header {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .candidate-detail-avatar {
    width: 84px;
    height: 84px;
  }
}
