/* Halaman referral: hero komisi, wizard 2 langkah, layar PIN. Warna & gaya mengikuti style.css */
.ref-hero{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ref-hero-card{text-align:center;padding:20px 10px 16px}
.ref-hero-card b{display:block;font-size:clamp(1.7rem,8vw,2.3rem);font-weight:800;letter-spacing:.04em;line-height:1.1;background:linear-gradient(180deg,#f2f4f8 10%,#9aa0a9 90%);-webkit-background-clip:text;background-clip:text;color:transparent}
.ref-hero-card span{display:block;margin-top:4px;font-size:.78rem;font-weight:700;letter-spacing:.2em;color:var(--muted)}
.ref-lead{text-align:center;max-width:34rem;margin:0 auto}
.ref-prog{margin:2px 0 18px}
.ref-prog-track{height:6px;border-radius:3px;background:rgba(255,255,255,.12);overflow:hidden}
.ref-prog-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,#7d838e,#e6e9ee);box-shadow:0 0 10px rgba(200,206,216,.5);transition:width .35s ease}
.ref-prog-lbl{margin-top:7px;font-size:.7rem;font-weight:700;letter-spacing:.16em;color:var(--muted);text-align:center}
.fld{margin-bottom:14px}
.ref-lbl{display:block;text-align:left;letter-spacing:0;font-size:.84rem;font-weight:600;color:#dfe5f2;margin:0 0 5px 2px}
.fld .ref-in{margin:0}
.ref-in{font-size:16px;min-height:44px}
.ref-help{display:block;font-size:.74rem;color:var(--muted);margin:4px 2px 0;line-height:1.45}
.ref-code-st{display:block;font-size:.8rem;font-weight:600;margin:5px 2px 0;min-height:1.2em}
.ref-code-st.ok{color:#7cf0b4}
.ref-code-st.bad{color:#ff9d7a}
.ref-agree{display:flex;gap:10px;align-items:flex-start;margin:16px 0;font-size:.84rem;color:#dfe5f2;cursor:pointer}
.ref-agree input{width:20px;height:20px;min-width:20px;margin-top:1px;accent-color:#c8ced8;cursor:pointer}
.ref-agree a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.fx[aria-disabled="true"]{opacity:.45;pointer-events:none;filter:saturate(.3)}
.ref-back{margin-top:12px;font-size:.8rem}
.ref-back a{color:var(--muted)}
.ref-back a:hover{color:#fff}
.ref-notes{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:9px}
.ref-notes li{display:flex;gap:10px;align-items:flex-start;font-size:.8rem;color:var(--muted);line-height:1.45}
.ref-notes svg{width:16px;height:16px;flex:none;margin-top:2px;fill:none;stroke:#9aa0a9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ref-notes li.gold,.ref-notes li.gold span{color:#e6c97e}
.ref-notes li.gold svg{stroke:#e6c97e}
#rg-pinval{letter-spacing:.14em;font-size:1.45rem}
.ref-warn{margin:14px 0 4px;font-size:.82rem;color:#e6c97e;text-align:center;line-height:1.5}
@media (max-width:360px){
  .ref-hero-card span{letter-spacing:.14em}
  .ref-prog-lbl{letter-spacing:.1em}
}

/* tombol grup WhatsApp: hanya tampil untuk referral yang sudah disetujui admin */
.wa-group[hidden]{display:none}
.wa-group{
  display:flex;align-items:center;gap:14px;margin:0 0 18px;padding:14px 16px;
  border:1px solid rgba(37,211,102,.4);border-radius:14px;
  background:linear-gradient(120deg,rgba(37,211,102,.16),rgba(8,14,11,.72) 58%),rgba(8,10,9,.55);
  box-shadow:0 12px 28px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.12);
  color:#eafff1;text-decoration:none;
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease
}
.wa-group:hover{border-color:rgba(37,211,102,.72);box-shadow:0 14px 32px rgba(0,0,0,.42),0 0 22px rgba(37,211,102,.22),inset 0 1px 0 rgba(255,255,255,.16)}
.wa-group .wa-ico{
  display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:50%;color:#062b15;
  background:linear-gradient(160deg,#3ee57c,#0f9d4f);
  box-shadow:0 6px 16px rgba(16,158,80,.45),inset 0 1px 0 rgba(255,255,255,.4)
}
.wa-group .wa-ico svg{width:23px;height:23px;fill:currentColor}
.wa-group .wa-txt{min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
.wa-group .wa-txt b{font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#f2fff7}
.wa-group .wa-txt small{font-size:.7rem;line-height:1.4;color:#a9d9bd}
.wa-group .wa-go{width:18px;height:18px;margin-left:auto;flex:none;fill:none;stroke:#7cf0b4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){.wa-group:hover{transform:translateY(-1px)}}
