/* referral.html — page-specific styles */

.ref-hero {
      background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius);
      padding:28px 32px;margin-bottom:20px;position:relative;overflow:hidden;
    }
    .ref-hero::before {
      content:"";position:absolute;top:0;left:0;right:0;height:2px;
      background:linear-gradient(90deg,transparent,#FFB400 30%,#FFB400 70%,transparent);
    }
    .ref-hero-title {
      font-size:22px;font-weight:800;color:var(--text);letter-spacing:-0.02em;margin-bottom:4px;
    }
    .ref-hero-sub {
      font-size:13px;color:var(--text-secondary);line-height:1.6;max-width:600px;
    }

    /* Link box */
    .ref-link-box {
      display:flex;align-items:center;gap:10px;margin-top:20px;
      background:var(--gray-50);border:1px solid var(--gray-200);border-radius:10px;padding:10px 14px;
    }
    .ref-link-box input {
      flex:1;background:none;border:none;font-family:var(--font-mono);font-size:13px;
      color:var(--text);outline:none;
    }
    .ref-link-box button {
      padding:6px 16px;border:none;border-radius:6px;background:#FFB400;color:#0E0E0E;
      font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap;
    }
    /* brand gold is #FFB400 only; amber buttons don't darken on hover (matches the
       reference) — keep the same gold instead of the old #e6a200 drift */
    .ref-link-box button:hover { background:#FFB400; }

    /* Stats grid */
    .ref-stats {
      display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;
    }
    @media(max-width:768px){ .ref-stats{grid-template-columns:1fr 1fr;} }
    .ref-stat {
      background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius);
      padding:18px 20px;
    }
    .ref-stat-val {
      font-family:var(--font-mono);font-size:24px;font-weight:800;color:var(--text);
      letter-spacing:-0.03em;
    }
    .ref-stat-label {
      font-size:11px;color:var(--text-muted);margin-top:2px;
    }

    /* Section headers */
    .ref-sec {
      display:flex;align-items:center;gap:10px;
      font-family:var(--font-mono);font-size:12px;font-weight:600;
      letter-spacing:0.08em;text-transform:uppercase;color:var(--text-muted);
      margin:24px 0 14px;padding-left:2px;
    }
    .ref-sec::before { content:"";width:6px;height:6px;border-radius:50%;background:#FFB400;flex-shrink:0; }
    .ref-sec-line { flex:1;height:1px;background:var(--border-card); }

    /* How it works cards */
    .ref-how {
      display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px;
    }
    @media(max-width:768px){ .ref-how{grid-template-columns:1fr;} }
    .ref-how-card {
      background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius);
      padding:20px;
    }
    .ref-how-num {
      width:28px;height:28px;border-radius:50%;background:rgba(255,180,0,0.12);
      color:#FFB400;font-family:var(--font-mono);font-size:13px;font-weight:800;
      display:flex;align-items:center;justify-content:center;margin-bottom:10px;
    }
    .ref-how-title {
      font-size:14px;font-weight:700;color:var(--text);margin-bottom:6px;
    }
    .ref-how-desc {
      font-size:12px;color:var(--text-secondary);line-height:1.6;
    }

    /* Milestones */
    .ref-milestones {
      display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px;
    }
    @media(max-width:768px){ .ref-milestones{grid-template-columns:1fr;} }
    .ref-milestone {
      background:var(--surface);border:1px solid var(--border-card);border-radius:var(--radius);
      padding:18px 20px;position:relative;
    }
    .ref-milestone.active { border-color:#FFB400; }
    .ref-milestone-tag {
      font-family:var(--font-mono);font-size:9px;font-weight:700;letter-spacing:0.1em;
      text-transform:uppercase;color:var(--text-muted);margin-bottom:8px;
    }
    .ref-milestone-title {
      font-size:14px;font-weight:700;color:var(--text);margin-bottom:4px;
    }
    .ref-milestone-desc {
      font-size:11px;color:var(--text-secondary);line-height:1.5;
    }
    .ref-milestone-reward {
      margin-top:10px;padding-top:10px;border-top:1px solid var(--gray-100);
      font-family:var(--font-mono);font-size:12px;color:#FFB400;font-weight:700;
    }

    /* Referral list */
    .ref-table {
      width:100%;border-collapse:collapse;
    }
    .ref-table th {
      text-align:left;font-family:var(--font-mono);font-size:10px;font-weight:600;
      letter-spacing:0.06em;text-transform:uppercase;color:var(--text-muted);
      padding:8px 12px;border-bottom:1px solid var(--border-card);
    }
    .ref-table td {
      padding:10px 12px;font-size:12px;color:var(--text);border-bottom:1px solid var(--gray-50);
    }
    .ref-status {
      display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;
      font-size:10px;font-weight:600;
    }
    .ref-status.pending { background:rgba(255,180,0,0.1);color:#FFB400; }
    .ref-status.qualified { background:rgba(16,185,129,0.1);color:#10b981; }
    .ref-status.expired { background:rgba(107,104,98,0.1);color:#6B6862; }

    .ref-empty {
      text-align:center;padding:40px 20px;color:var(--text-muted);font-size:13px;
    }

/* ── Two-tier override breakdown (transparency) ── */
.ref-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.ref-tier-card {
  background: var(--surface); border: 1px solid var(--border-card);
  border-radius: var(--radius); padding: 16px 18px;
}
.ref-tier-pct {
  font-family: var(--font-mono); font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: #FFB400; line-height: 1;
}
.ref-tier-label {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted); margin: 8px 0 6px;
}
.ref-tier-desc { font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
@media (max-width: 760px) { .ref-tier-grid { grid-template-columns: 1fr; } }
