:root {
  --bg: #000000;
  --surface: #0a0a0b;
  --surface-soft: #141417;
  --line: #27272a;
  --text: #ffffff;
  --muted: #a1a1aa;
  --yellow: #FFCC00;
  --yellow-hover: #e5b800;
  --yellow-strong: #FFD633;
  --yellow-glow: rgba(255, 204, 0, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at top right, rgba(255, 204, 0, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

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

.brand-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.brand-link:hover {
  opacity: 0.8;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.5rem;
  border-radius: 4px;
  background: var(--yellow);
  color: #000;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.header-cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--yellow-glow);
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, var(--yellow-glow) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  padding: 6px 16px;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: rgba(255, 204, 0, 0.05);
}

.hero h1 {
  margin: 0 auto;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 900px;
}

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

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  font-weight: 500;
}

.disclaimer {
  margin: 2rem auto 0;
  font-size: 0.85rem;
  color: #888;
  padding: 12px 20px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  max-width: 600px;
  background: var(--surface);
  text-align: center;
}

/* Painel */
.panel {
  padding-bottom: 80px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.filters select,
.filters input,
.filters button {
  width: 100%;
  min-height: 48px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px var(--yellow-glow);
}

.filters input::placeholder {
  color: #555;
}

.filters button {
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--yellow);
  color: #000;
  border: none;
  align-self: end;
}

.filters button:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 20px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: #333;
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.metric-card p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.02em;
}

.status-line {
  margin: 0 0 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

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

thead th {
  text-align: left;
  padding: 16px 20px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 600;
  vertical-align: middle;
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: var(--surface-soft);
}

tbody tr:last-child td {
  border-bottom: none;
}

.empty {
  text-align: center;
  color: #666;
  padding: 40px 0;
  font-weight: 600;
}

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

.candidate-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  border: 2px solid var(--line);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

tr:hover .candidate-avatar {
  border-color: var(--yellow);
}

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

.candidate-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.candidate-profile-link:hover .candidate-name {
  color: var(--yellow);
}

.candidate-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
}

.donate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  background: var(--yellow);
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.donate-link:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--yellow-glow);
}

.donate-link.is-disabled {
  background: var(--surface-soft);
  color: #555;
  border: 1px solid var(--line);
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.footnote {
  margin: 32px 0 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
  font-weight: 500;
}

.footnote a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
  transition: all 0.2s;
}

.footnote a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

/* Candidate Page Detail */
.candidate-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.candidate-card-detail {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.candidate-card-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--yellow);
}

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

.candidate-detail-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
  border: 4px solid var(--surface-soft);
  box-shadow: 0 0 0 2px var(--yellow);
}

.candidate-detail-main h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.candidate-detail-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.candidate-detail-stats {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.candidate-detail-stats span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.candidate-detail-stats strong {
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

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

.candidate-detail-description h2 {
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.candidate-detail-description p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: #ccc;
  font-size: 1.05rem;
  font-weight: 500;
}

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

.candidate-help a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.candidate-help a:hover {
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .candidate-detail-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .candidate-detail-avatar {
    margin: 0 auto;
    width: 120px;
    height: 120px;
  }
  .candidate-detail-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
}
