/* Affiliate Program v2 public pages (program, apply, claim, check-email, agreement).
   Layout and form fields come from login_reg.css; this file only adds what that
   stylesheet doesn't cover. */

.affiliate-panel { max-width: 640px; }

.affiliate-card {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: var(--bg-surface, #1E1E24);
  color: var(--text-primary, #FFFFFF);
  line-height: 1.65;
}
.affiliate-card a { color: #24B2FB; }
.affiliate-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.affiliate-card p { margin: 0 0 8px; }
.affiliate-card ul { margin: 0; padding-left: 18px; }
.affiliate-card--accent {
  background: linear-gradient(135deg, rgba(23, 254, 155, 0.10), rgba(36, 178, 251, 0.10));
}

.affiliate-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.affiliate-steps li { counter-increment: step; position: relative; padding-left: 36px; margin-bottom: 12px; }
.affiliate-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #17FE9B 0%, #24B2FB 100%);
  color: #1E1E24; font-weight: 800; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}

.field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  background: var(--bg-surface, #1E1E24);
  color: var(--text-primary, #FFFFFF);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  box-sizing: border-box;
}
.field textarea::placeholder { color: var(--text-muted, #9CA3AF); }
.field textarea:focus { outline: none; border-color: #24B2FB; }
.field .field-hint { display: block; margin-top: 4px; font-size: 0.8rem; color: var(--text-muted, #9CA3AF); }
.field .field-error.visible, .field-error.visible { display: block; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
.check-row input { margin-top: 3px; flex-shrink: 0; }
.check-row a { color: #24B2FB; text-decoration: underline; }

.affiliate-error {
  color: #F87171;
  font-size: 0.85rem;
  margin: -4px 0 8px;
}

/* Dark panel (login_reg.css theme): use its surface/text tokens, never a light fill --
   a light chip inherits the panel's white text and becomes unreadable. */
.affiliate-code-chip {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-surface, #1E1E24);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  color: #17FE9B;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.affiliate-agreement-scroll {
  max-height: 340px;
  overflow: auto;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  background: var(--bg-surface, #1E1E24);
  color: var(--text-primary, #FFFFFF);
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.profile-section-title { margin: 22px 0 8px; font-size: 1rem; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 16px;
}
.choice-grid .check-row { margin: 6px 0; }
/* login_reg.css `.field input` (width:100%, appearance:none) also hits checkboxes and
   radios inside a .field and turns them into blank full-width boxes -- same reset as
   its #signup-terms rule. */
.field input[type="checkbox"],
.field input[type="radio"],
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  margin: 3px 0 0;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 4px;
  appearance: auto;
  -webkit-appearance: auto;
  accent-color: var(--brand-green, #17FE9B);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
}
.profile-note { margin: 0 0 10px; font-size: 0.8rem; color: var(--text-muted, #9CA3AF); line-height: 1.5; }

.affiliate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.affiliate-actions .btn-primary,
.affiliate-actions .btn-secondary { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
