/* Croissance : parrainage, crédits et cartes de résultat. */
.growth-link{word-break:break-all;color:var(--muted,#a8b5cd);font-size:.85rem;margin:.4rem 0 1rem}
@media (min-width:1100px){.referral-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.growth-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.growth-list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.growth-list li{display:flex;flex-wrap:wrap;gap:.5rem;align-items:baseline;justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.06);padding-bottom:.5rem}
.growth-list li small{flex-basis:100%;color:var(--muted,#a8b5cd)}
.growth-row{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;
  border-bottom:1px solid rgba(255,255,255,.06);padding:.6rem 0}
.growth-row small{display:block;color:var(--muted,#a8b5cd)}
.growth-gallery{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));margin-top:1rem}
.growth-thumb{display:block;border-radius:14px;overflow:hidden;background:var(--panel2);text-decoration:none}
.growth-thumb img{display:block;width:100%;height:auto}
.growth-thumb small{display:block;padding:.4rem .2rem;color:var(--muted,#a8b5cd)}
.growth-card-preview img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid rgba(255,255,255,.08)}
.growth-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0 .6rem}
.growth-actions .btn{flex:1 1 140px;justify-content:center}
@media (max-width:640px){.growth-actions .btn{flex-basis:100%}}
@media (max-width:700px){.referral-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.referral-stats .stat{min-width:0;padding:12px 10px}.referral-stats .stat-value{font-size:22px;overflow-wrap:anywhere}.referral-stats .stat-foot{font-size:9px;line-height:1.35}.growth-link{font-size:11px}.feature-code{font-size:28px;letter-spacing:.1em;overflow-wrap:anywhere}.growth-row{align-items:flex-start}.growth-row .btn{width:100%}}

/* Parrainage */
.referral { display:grid; gap:16px; max-width:720px; }
.referral .refcard,.profile-invitation .refcard { border-radius:22px; }
.referral .refcard .panel-body { padding:clamp(16px,4vw,24px); }
.referral h2,.referral h3 { margin:0 0 7px; }
.referral p { margin:0; color:var(--muted); line-height:1.5; }
.referral-code-card { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:16px 0 10px;
  padding:12px 14px; background:var(--panel2); border:1px solid var(--line); border-radius:14px; }
.referral-code-card .referral-code-copy { min-width:0; min-height:44px; padding:0; border:0; background:none; color:var(--txt); font-size:clamp(15px,4vw,19px); font-weight:800; letter-spacing:.04em; overflow-wrap:anywhere; cursor:pointer; }
.referral-code-card .btn { min-height:44px; flex:none; }
.referral-actions,.referral-share-menu { display:grid; gap:8px; }
.referral-share-menu .btn { min-height:44px; justify-content:center; }
.referral-clipboard { position:fixed; left:0; top:0; width:1px; height:1px; opacity:0; font-size:16px; pointer-events:none; }
.referral-actions .btn { min-height:44px; justify-content:center; text-align:center; padding-inline:7px; white-space:normal; }
.referral-copy-fallback { display:grid; gap:6px; margin-top:12px; color:var(--muted); font-size:13px; }
.referral-copy-fallback[hidden] { display:none; }
.referral-copy-fallback input { width:100%; min-width:0; }
.referral-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:16px 0 0; }
.referral-kpis > div { min-width:0; padding:12px 9px; border:1px solid var(--line); background:var(--panel2); border-radius:16px; }
.referral-kpis dt { color:var(--muted); font-size:clamp(10px,3vw,13px); overflow-wrap:anywhere; }
.referral-kpis dd { margin:4px 0 0; font-size:20px; font-weight:700; color:var(--txt); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.referral-total { grid-template-columns:minmax(0,1fr); }
.referral-total > div { text-align:left; padding-inline:14px; }
.referral-total dd { color:var(--green); }
.referral-kpis > div:nth-child(n+2) dd { color:var(--green); }
.refcard .referral-eyebrow { margin:0 0 5px; font-size:13px; font-weight:600; color:var(--muted); }
.refcard .referral-eyebrow + h2,.refcard .referral-eyebrow + h3 { margin:0 0 6px; }
.referral > h2 { margin:4px 0 -4px; }
.referral-details { margin-top:14px; border-top:1px solid var(--line); }
.referral-details summary { min-height:44px; padding:12px 0; cursor:pointer; font-weight:600; }
.referral-details h3 { margin-top:12px; }
.referral-other { margin-top:0; }
.referral-other summary { padding-inline:16px; }
.referral-other .form-actions { margin-block:12px 16px; flex-wrap:wrap; }
.referral-other .form-actions .btn { max-width:100%; white-space:normal; }
.referral .tbl { width:100%; border-collapse:collapse; }
.referral .tbl td { padding:9px 4px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.referral .tbl td:last-child { text-align:right; }
.referral .tbl small { color:var(--muted); }

.profile-invitation { margin-bottom:16px; }
.profile-card-details { max-width:720px; margin:12px 0; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.profile-card-details > summary { min-height:48px; cursor:pointer; padding:14px 16px; font-weight:700; }
.profile-card-details > .trader-card-shell { padding:0 16px 16px; }
.profile-card-details .social-section { margin:0; border:0; }
.profile-card-details[open] > summary { border-bottom:1px solid var(--line); margin-bottom:12px; }
/* Choix de récompense de parrainage : commission OU jours offerts, jamais les deux. */
.referral-choice-group { margin:14px 0 12px; padding:0; border:0; min-width:0; }
.referral-choice-group legend { padding:0; margin:0 0 6px; font-weight:700; color:var(--txt); }
.referral-choice-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:10px 0; }
.referral-choice { display:flex; align-items:flex-start; gap:10px; min-height:44px; padding:12px; border:1px solid var(--line); border-radius:16px; background:var(--panel2); cursor:pointer; }
.referral-choice.is-selected { border-color:var(--green); }
.referral-choice input { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--green); }
.referral-choice-text { display:grid; gap:4px; min-width:0; }
.referral-choice-text b { color:var(--txt); overflow-wrap:anywhere; }
.referral-choice-text small { color:var(--muted); line-height:1.4; overflow-wrap:anywhere; }
.referral-choice-note { font-size:13px; }
.referral-choice-status { min-height:1.2em; margin-top:6px !important; font-size:13px; color:var(--green) !important; }
.referral-choice-status.is-error { color:var(--red) !important; }
@media (max-width:520px){ .referral-choice-options { grid-template-columns:minmax(0,1fr); } }
