/* Bigfella referral program — light theme */
:root {
  --blue: #2a7de1;
  --blue-dark: #1a5cb5;
  --ink: #121212;
  --muted: #4a5568;
  --border: #d7dee8;
  --bg: #f6f8fb;
  --card: #fff;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
.ref-main {
  width: min(920px, calc(100% - 32px));
  margin: 28px auto 80px;
}
.ref-hero,
.ref-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  margin-bottom: 18px;
}
.ref-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.ref-hero h1,
.ref-card h1,
.ref-card h2 {
  margin: 0 0 10px;
  font-size: 1.85rem;
  line-height: 1.15;
}
.ref-card h2 { font-size: 1.25rem; }
.ref-lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.05rem;
}
.ref-banner {
  background: #e8f1fc;
  border: 1px solid #c5daf7;
  color: #1a5cb5;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.ref-banner strong { display: block; margin-bottom: 4px; }
.ref-form .field { margin-bottom: 14px; }
.ref-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.ref-form input[type="text"],
.ref-form input[type="email"],
.ref-form input[type="tel"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
}
.ref-payout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 14px;
}
.ref-payout label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}
.ref-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 12px 0 16px;
}
.ref-check input { margin-top: 4px; }
.ref-terms {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}
.ref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--blue);
  letter-spacing: 0.02em;
}
.ref-btn:hover { background: var(--blue-dark); }
.ref-btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.ref-btn.ghost {
  background: transparent;
  color: var(--blue);
  padding-left: 0;
}
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ref-note { color: #9a3412; font-size: 0.9rem; margin: 10px 0 0; }
.ref-ok { color: #166534; font-size: 0.9rem; }
.ref-linkbox,
.ref-codebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  word-break: break-all;
  margin: 8px 0 12px;
}
.ref-codebox { font-size: 1.35rem; letter-spacing: 0.12em; }
.ref-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.ref-stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
}
.ref-stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.ref-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.ref-table th,
.ref-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
.ref-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ref-table td:last-child,
.ref-table th:last-child { text-align: right; }
.ref-share a,
.ref-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
}
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .ref-stats { grid-template-columns: 1fr 1fr; }
  .ref-hero h1 { font-size: 1.55rem; }
}
