/* CitizenReferral (citizenreferral.com) — Warm Obsidian & Gold Editorial Theme */
:root {
  --cr-bg: #0c0a09;
  --cr-card: #161311;
  --cr-card-alt: #1d1916;
  --cr-line: rgba(214, 198, 178, 0.16);
  --cr-gold-line: rgba(245, 158, 11, 0.42);
  --cr-text: #fafaf9;
  --cr-muted: #a8a29e;
  --cr-gold: #f59e0b;
  --cr-gold-hi: #fbbf24;
  --cr-green: #34d399;
  --cr-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cr-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 80% -10%, rgba(245, 158, 11, 0.13), transparent 48%), var(--cr-bg);
  color: var(--cr-text);
  font-family: var(--cr-font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cr-gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

.cr-nav-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cr-line);
}

.cr-nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cr-brand {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--cr-text);
  text-decoration: none;
}

.cr-brand em {
  font-style: normal;
  color: var(--cr-gold-hi);
}

.cr-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.cr-links a { color: var(--cr-muted); }
.cr-links a:hover, .cr-links a.is-current { color: var(--cr-text); text-decoration: none; }
.cr-links a.is-current { color: var(--cr-gold-hi); }

.cr-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.cr-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: center;
  background: var(--cr-card);
  border: 1px solid var(--cr-gold-line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}

.cr-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-gold-hi);
  margin-bottom: 10px;
}

.cr-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cr-lead {
  margin: 0;
  color: #d6d3d1;
  font-size: 15px;
}

.cr-code-panel {
  background: var(--cr-bg);
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr-code-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cr-muted);
  font-weight: 700;
}

.cr-code-display {
  font-family: var(--cr-mono);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cr-gold-hi);
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--cr-card-alt);
  border: 1px dashed var(--cr-gold-line);
  user-select: all;
}

.cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  transition: transform 0.12s ease, background 0.15s ease;
}

.cr-btn:hover { transform: translateY(-1px); text-decoration: none; }

.cr-btn-gold {
  background: #d97706;
  color: #ffffff;
  border-color: var(--cr-gold-hi);
}

.cr-btn-gold:hover { background: #b45309; }

.cr-btn-outline {
  background: transparent;
  color: var(--cr-text);
  border-color: var(--cr-line);
}

.cr-btn-outline:hover { border-color: var(--cr-gold-hi); }

.cr-note {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--cr-muted);
  text-align: center;
}

.cr-note.is-ok { color: var(--cr-green); font-weight: 600; }

.cr-section {
  background: var(--cr-card);
  border: 1px solid var(--cr-line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
}

.cr-section h2 { margin: 0 0 8px; font-size: 22px; }
.cr-section-sub { margin: 0 0 18px; color: var(--cr-muted); font-size: 15px; }

.cr-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cr-fact {
  background: var(--cr-card);
  border: 1px solid var(--cr-line);
  border-radius: 12px;
  padding: 16px 18px;
}

.cr-fact span { display: block; font-size: 12px; color: var(--cr-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cr-fact strong { display: block; font-size: 21px; margin: 4px 0 2px; color: var(--cr-gold-hi); }
.cr-fact small { font-size: 13px; color: var(--cr-muted); }

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

.cr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cr-table th, .cr-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cr-line);
  vertical-align: top;
}

.cr-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cr-muted);
}

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

.cr-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--cr-gold-hi);
  white-space: nowrap;
}

.cr-tag.is-green {
  background: rgba(52, 211, 153, 0.16);
  color: var(--cr-green);
}

.cr-tracker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.cr-tracker-controls label {
  font-size: 14px;
  font-weight: 700;
  color: var(--cr-muted);
}

.cr-tracker-controls input {
  width: 120px;
  background: var(--cr-bg);
  color: var(--cr-text);
  border: 1px solid var(--cr-gold-line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 16px;
  font-family: var(--cr-mono);
  font-weight: 700;
}

.cr-tracker-out {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--cr-card-alt);
  border: 1px solid var(--cr-gold-line);
}

.cr-tracker-out strong { display: block; font-size: 17px; color: var(--cr-gold-hi); margin-bottom: 4px; }
.cr-tracker-out p { margin: 0; font-size: 14px; color: #e7e5e4; }

.cr-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
}

.cr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #fbbf24);
  width: 0%;
  transition: width 0.2s ease;
}

.cr-faq {
  border-top: 1px solid var(--cr-line);
  padding: 12px 0;
}

.cr-faq:first-child { border-top: none; padding-top: 0; }

.cr-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cr-faq summary::after { content: "+"; color: var(--cr-gold-hi); font-size: 18px; }
.cr-faq[open] summary::after { content: "−"; }
.cr-faq p { margin: 8px 0 2px; font-size: 14px; color: var(--cr-muted); }

.cr-footer {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  border-top: 1px solid var(--cr-line);
  font-size: 13px;
  color: var(--cr-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 780px) {
  .cr-hero, .cr-facts { grid-template-columns: 1fr; }
  .cr-hero, .cr-section { padding: 18px; }
}
