/* ============================================================
   Referral Card — share code + progress
   ============================================================ */

.referral-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.referral-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.referral-card__subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.referral-card__code-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.referral-card__code {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--brand-gold);
  background-color: var(--surface-secondary);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  text-align: center;
  letter-spacing: 0.1em;
}

/* Progress bar */
.referral-card__progress {
  margin-bottom: var(--space-2);
}

.referral-card__progress-track {
  height: 6px;
  background-color: var(--surface-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.referral-card__progress-fill {
  height: 100%;
  background-color: var(--brand-gold);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-out);
}

.referral-card__progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}
