/* SP Referrals — My Account dashboard */
:root {
  --sprf-brand: #0a3a6e;
  --sprf-credit: #15803d;
}

.sprf-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #1f2937;
  line-height: 1.5;
}

.sprf-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--sprf-brand);
  margin-bottom: 8px;
}

.sprf-h {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: #111827;
}

.sprf-lede {
  font-size: 1rem;
  color: #4b5563;
  max-width: 560px;
  margin: 0;
}

.sprf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  margin-bottom: 20px;
  align-items: center;
}
@media (max-width: 720px) {
  .sprf-hero { grid-template-columns: 1fr; }
}

.sprf-balance {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 18px 20px;
  text-align: right;
}
.sprf-balance__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6b7280;
}
.sprf-balance__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sprf-credit);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-top: 4px;
}
.sprf-balance__sub {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}
.sprf-balance__note {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 8px;
}

.sprf-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.sprf-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.sprf-card__hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 10px;
}

.sprf-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sprf-code {
  display: inline-block;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sprf-brand);
  background: #eff6ff;
  border: 1px dashed var(--sprf-brand);
  padding: 8px 14px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-right: 6px;
}

.sprf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sprf-brand);
  color: #ffffff;
  border: 1px solid var(--sprf-brand);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease;
  font-family: inherit;
}
.sprf-btn:hover { background: #062a52; }
.sprf-btn--ghost {
  background: #ffffff;
  color: var(--sprf-brand);
}
.sprf-btn--ghost:hover { background: #f3f4f6; }

.sprf-btn[data-copied="1"] {
  background: var(--sprf-credit);
  border-color: var(--sprf-credit);
}

.sprf-empty {
  color: #6b7280;
  font-style: italic;
  margin: 4px 0 0;
}

.sprf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.sprf-table th, .sprf-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.sprf-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  border-bottom: 2px solid #e5e7eb;
}
.sprf-table tr:last-child td { border-bottom: 0; }

.sprf-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}
.sprf-status--credited { background: #dcfce7; color: #15803d; }
.sprf-status--pending  { background: #fef9c3; color: #854d0e; }
.sprf-status--review   { background: #fef3c7; color: #92400e; }
.sprf-status--voided   { background: #f3f4f6; color: #6b7280; }

.sprf-finepoints {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 18px;
  line-height: 1.5;
}

.sprf-optout-link {
  color: #9ca3af;
  text-decoration: underline;
}
.sprf-optout-link:hover { color: #6b7280; }

/* Enrollment CTA card (pre-join + opted-out states) */
.sprf-cta {
  max-width: 720px;
  text-align: left;
}
.sprf-cta .sprf-eyebrow { margin-bottom: 6px; }
.sprf-cta .sprf-h { margin-top: 0; }
.sprf-cta-bullets {
  margin: 18px 0;
  padding: 0 0 0 18px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.7;
}
.sprf-cta-bullets li { margin: 4px 0; }
.sprf-cta-form {
  margin-top: 8px;
}
.sprf-btn--lg {
  font-size: 1rem;
  padding: 12px 22px;
}
