/* ------------------------------------------------------------------ INVITE FRIENDS (referrals)
   Uses the console tokens only: --navy, --blue, --sky, --hair*, --ink*, --r. */
.rf { max-width: 1120px; }
.rf-head { margin: 4px 0 26px; }
.rf-title { font-size: clamp(28px, 3vw, 34px); font-weight: 500; letter-spacing: -.02em; color: var(--navy); margin: 0 0 8px; }
.rf-sub { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 60ch; }

.rf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.rf-col { display: grid; gap: 22px; min-width: 0; }

.rf-card { background: #fff; border: 1px solid var(--hair-2); border-radius: 20px; padding: 24px; }
.rf-h { font-size: 17px; font-weight: 500; color: var(--navy); margin: 0 0 14px; letter-spacing: -.01em; }
.rf-fine { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); margin: 14px 0 0; }

/* The link card: the one dark surface on the page, because it is the one thing to act on */
.rf-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.rf-link .rf-h { color: #fff; }
.rf-link .rf-fine { color: rgba(255, 255, 255, .78); }
.rf-url { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(157, 202, 227, .35); border-radius: 14px; padding: 8px 8px 8px 16px; }
.rf-url-t { flex: 1; min-width: 0; font-size: 16px; color: rgba(255, 255, 255, .86); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-url-t b { color: #fff; font-weight: 500; letter-spacing: .02em; }
.rf-copy { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--sky); color: var(--navy); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .15s var(--ease), transform .15s var(--ease); }
.rf-copy svg { width: 18px; height: 18px; }
.rf-copy:hover { background: #b9dbee; }
.rf-copy:active { transform: scale(.97); }
.rf-copy:focus-visible, .rf-sh:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rf-copied { min-height: 20px; margin: 6px 0 0 4px; font-size: 13.5px; color: var(--sky); }

.rf-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.rf-sh { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; font: inherit; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease); }
.rf-sh svg { width: 18px; height: 18px; }
.rf-sh:hover { background: rgba(255, 255, 255, .1); }
.rf-sh-wa { background: #fff; color: var(--navy); border-color: #fff; }
.rf-sh-wa svg { color: #128c4b; }
.rf-sh-wa:hover { background: #eef6fb; }

/* Friends */
.rf-row-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.rf-row-h .rf-h { margin: 0; }
.rf-count { margin: 0; font-size: 14px; color: var(--ink-3); }
.rf-count b { color: var(--navy); font-weight: 500; }
.rf-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rf-item { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); }
.rf-item:first-child { border-top: 0; }
.rf-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sky-16); color: var(--navy); font-weight: 500; font-size: 16px; }
.rf-av-wait { background: transparent; border: 1.5px dashed var(--hair-3); color: var(--ink-3); }
.rf-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rf-who b { font-weight: 500; color: var(--navy); font-size: 15.5px; }
.rf-who span { font-size: 13.5px; color: var(--ink-3); }
.rf-pill { flex: none; font-size: 13px; line-height: 1; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.rf-ok { background: var(--blue-24); color: #1f4e80; }
.rf-wait { background: transparent; border: 1px solid var(--hair-2); color: var(--ink-3); }

/* Side column */
.rf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rf-steps li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.rf-steps b { color: var(--navy); font-weight: 500; }
.rf-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; margin-top: -1px; }
.rf-note { background: var(--sky-06); border-color: transparent; }
.rf-bul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rf-bul li { position: relative; padding-left: 16px; }
.rf-bul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.rf-link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

@media (max-width: 980px) {
  .rf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .rf-card { padding: 18px; border-radius: 18px; }
  .rf-url { flex-wrap: wrap; padding: 12px; }
  .rf-url-t { flex-basis: 100%; white-space: normal; word-break: break-all; }
  .rf-copy { width: 100%; justify-content: center; }
  .rf-sh { flex: 1 1 auto; justify-content: center; }
  .rf-pill { padding: 6px 9px; font-size: 12.5px; }
}

/* ------------------------------------------------------------------ SIGN-UP: "Riya invited you" */
.authx-invited { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px;
  border-radius: 14px; background: #eaf1f8; color: #1f4e80; font-size: 14.5px; line-height: 1.45; }
.authx-invited .rf-av { width: 36px; height: 36px; font-size: 15px; background: #fff; color: #1f4e80; }
.authx-invited b { font-weight: 600; }
