/* PLINK : parrainage (carte de compte.html, bandeau de connexion.html). S'ajoute après plink-compte.css. */

/* ---------- connexion.html : « Invité par un ami » ---------- */
[data-parrain-notice][hidden] { display: none; }
.prn-invite { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--surface); font-size: 14px; line-height: 20px; color: var(--text); }
.prn-invite svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: -1px; }
.prn-invite strong { color: var(--text); }

/* ---------- Carte « Parrainage » ---------- */
.prn-attente { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--text-2); }
.prn-lead { margin: 0; color: var(--text-2); }
.prn-lead strong { color: var(--text); font-weight: 600; }

.prn-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-ctrl); border: 1px solid var(--line); background: var(--ok-bg); color: var(--ok); font-size: 14px; line-height: 20px; }
.prn-note svg { width: 20px; height: 20px; flex: none; }
.prn-note strong { font-weight: 700; }

/* Jours offerts en cours */
.prn-bonus { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-ctrl); background: var(--select); }
.prn-bonus svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); }
.prn-bonus div { display: grid; gap: 2px; min-width: 0; }
.prn-bonus strong { font-size: 16px; line-height: 24px; color: var(--text); }
.prn-bonus span { font-size: 14px; line-height: 20px; color: var(--text-2); }

/* Lien personnel */
.prn-lien { display: grid; gap: 8px; }
.prn-lien label { font-size: 14px; line-height: 20px; font-weight: 600; }
.prn-lien p { margin: 0; }
.prn-lien-row { display: flex; gap: 8px; min-width: 0; }
.prn-lien-row input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-ctrl); background: var(--surface); color: var(--text); font: 500 15px var(--font); text-overflow: ellipsis; }
.prn-lien-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.prn-lien-row .btn { flex: none; gap: 8px; }
.prn-lien-row .btn svg { width: 18px; height: 18px; }
.prn-lien-row .btn.is-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
:root[data-theme="dark"] .prn-lien-row .btn.is-ok { color: #0E1117; }
:root:not([data-theme="light"]) .prn-lien-row .btn.is-ok { color: #0E1117; }
.prn-code { letter-spacing: .12em; color: var(--text); }

/* Les deux étapes */
.prn-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prn-etapes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctrl); }
.prn-etapes li > div { display: grid; gap: 2px; min-width: 0; }
.prn-etapes strong { font-size: 15px; line-height: 22px; }
.prn-etapes li > div span { font-size: 14px; line-height: 20px; color: var(--text-2); }
.prn-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--text); }
.prn-gain { padding: 4px 10px; border-radius: var(--r-pill); background: var(--select); color: var(--accent-text); font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Chiffres */
.prn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--r-ctrl); background: var(--line); overflow: hidden; }
.prn-stat { display: grid; gap: 2px; padding: 14px 12px; background: var(--surface-raised); min-width: 0; }
.prn-stat-val { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.prn-stat-lbl { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.prn-stat-aide { font-size: 12px; line-height: 16px; color: var(--text-2); }

/* Progression sur 5 */
.prn-progres { display: grid; gap: 8px; }
.prn-progres p { margin: 0; }
.prn-progres-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prn-progres-head strong { font-size: 15px; line-height: 22px; }
.prn-progres-head span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.prn-progres-head b { color: var(--text); font-size: 18px; }
.prn-barre { height: 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.prn-barre span { display: block; height: 100%; border-radius: inherit; background: var(--plink-blue); transition: width .6s var(--ease); }
@media (prefers-reduced-motion: reduce) { .prn-barre span { transition: none; } }

/* Règles */
.prn-regles { border-top: 1px solid var(--line); padding-top: 12px; }
.prn-regles summary { cursor: pointer; font-weight: 600; font-size: 15px; line-height: 22px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.prn-regles summary::-webkit-details-marker { display: none; }
.prn-regles summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform var(--t-state) var(--ease); }
.prn-regles[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.prn-regles summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.prn-regles ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); font-size: 14px; line-height: 21px; }

@media (max-width: 640px) {
  .prn-lien-row { flex-wrap: wrap; }
  .prn-lien-row input { flex-basis: 100%; }
  .prn-lien-row .btn { flex: 1 1 0; }
  .prn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prn-etapes li { grid-template-columns: auto minmax(0, 1fr); }
  .prn-gain { grid-column: 2; justify-self: start; }
}
