/* Affiliates page — match mockup: hero + 3 cards */

.vr-aff {
  display: grid;
  gap: 18px;
  max-width: 920px;
  padding-bottom: 28px;
}

.vr-aff-hero { margin-bottom: 4px; }
.vr-aff-eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.vr-aff-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #0b1b3a;
}
.vr-aff-lede {
  margin: 10px 0 0;
  max-width: 54ch;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #64748b;
}

.vr-aff-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 20px 22px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.vr-aff-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.vr-aff-card-ico {
  flex: none;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0b1b3a;
}
.vr-aff-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}
.vr-aff-card-head p {
  margin: 3px 0 0;
  font-size: 0.86rem;
  color: #94a3b8;
}

/* Invite form */
.vr-aff-invite {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.vr-aff-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.vr-aff-field > span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}
.vr-aff-field > span em {
  font-style: normal;
  font-weight: 500;
  color: #94a3b8;
}
.vr-aff-input {
  position: relative;
  display: block;
}
.vr-aff-input-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: inline-grid;
  pointer-events: none;
}
.vr-aff-input input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fff;
  font-size: 0.92rem;
  color: #0f172a;
}
.vr-aff-input:has(.vr-aff-input-ico) input { padding-left: 38px; }
.vr-aff-input input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.vr-aff-field--pct { max-width: 120px; }
.vr-aff-send {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: #0b1b3a;
  color: #fff;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.vr-aff-send:hover {
  background: #132748;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(11, 27, 58, 0.28);
}
.vr-aff-msg { grid-column: 1 / -1; margin: 0; }
.vr-aff-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.vr-aff-pending { display: grid; gap: 8px; }
.vr-aff-pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e2ebf7;
  font-size: 0.9rem;
}

/* Affiliate person card */
.vr-aff-list { display: grid; gap: 12px; }
.vr-aff-person {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafbfd;
}
.vr-aff-person-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
}
.vr-aff-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.vr-aff-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #0b1b3a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: none;
}
.vr-aff-identity strong {
  display: block;
  font-size: 0.98rem;
  color: #0f172a;
}
.vr-aff-identity em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.82rem;
  color: #94a3b8;
}
.vr-aff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: flex-start;
}
.vr-aff-stat {
  display: grid;
  gap: 6px;
  min-width: 72px;
}
.vr-aff-stat--pct { min-width: 180px; }
.vr-aff-stat--url {
  flex: 1 1 280px;
  min-width: min(100%, 280px);
  max-width: 100%;
}
.vr-aff-stat > span {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #94a3b8;
}
.vr-aff-stat > strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #0f172a;
}
.vr-aff-stat code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: #fff;
  border: 1px solid #e8edf5;
  padding: 2px 7px;
  border-radius: 6px;
}
.vr-aff-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}
.vr-aff-url-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.vr-aff-url-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 0.84rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #0f172a;
  text-overflow: ellipsis;
}
.vr-aff-url-code {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.78rem;
  color: #94a3b8;
}
.vr-aff-url-code code {
  font-size: 0.9em;
}
.vr-aff-action--copy {
  height: 40px;
  padding: 0 14px;
  flex: none;
}
.vr-aff-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}
.vr-aff-field-hint code {
  font-size: 0.9em;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 5px;
}
.vr-aff-pct-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vr-aff-pct-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 96px;
  height: 40px;
  padding: 0 12px 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.vr-aff-pct-field:focus-within {
  border-color: #0b1b3a;
  box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1);
}
.vr-aff-pct-field input {
  width: 48px;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.vr-aff-pct-field input::-webkit-outer-spin-button,
.vr-aff-pct-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.vr-aff-pct-field input:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}
.vr-aff-pct-suffix {
  margin-left: 2px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
}
.vr-aff-action--save {
  height: 40px;
  padding: 0 14px;
  background: #0b1b3a;
  border-color: #0b1b3a;
  color: #fff;
}
.vr-aff-action--save:hover {
  background: #132748;
  border-color: #132748;
  color: #fff;
}
.vr-aff-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 650;
  text-transform: capitalize;
  color: #0f172a;
}
.vr-aff-status i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}
.vr-aff-status.is-active i { background: #16a34a; }
.vr-aff-status.is-paused i,
.vr-aff-status.is-pending i { background: #f59e0b; }
.vr-aff-status.is-revoked i { background: #dc2626; }

.vr-aff-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.vr-aff-icon-btn:hover {
  background: #eef2f7;
  color: #0f172a;
  transform: scale(1.14);
}

.vr-aff-person-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}
.vr-aff-person-actions .vr-aff-action.is-danger {
  margin-left: auto;
}
.vr-aff-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.vr-aff-action:hover {
  background: #f8fafc;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}
.vr-aff-action.is-danger { color: #dc2626; border-color: #fecaca; }
.vr-aff-action.is-danger:hover { background: #fef2f2; }

.vr-aff-empty {
  margin: 0;
  padding: 18px 4px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Sales table */
.vr-aff-sales-wrap { overflow: auto; }
.vr-aff-sales {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.vr-aff-sales th,
.vr-aff-sales td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.vr-aff-sales th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.vr-aff-sales tbody tr:last-child td { border-bottom: 0; }
.vr-aff-sales td strong { font-weight: 650; color: #0f172a; }
.vr-aff-sales td em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.8rem;
  color: #94a3b8;
}
.vr-aff-order {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vr-aff-order code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82em;
  color: #334155;
}
.vr-aff-muted { color: #94a3b8; font-size: 0.85em; }

@media (max-width: 860px) {
  .vr-aff-invite {
    grid-template-columns: 1fr 1fr;
  }
  .vr-aff-field--pct { max-width: none; }
  .vr-aff-field--email,
  .vr-aff-field--code { grid-column: 1 / -1; }
}

/* Shop switcher labels (shared) */
.acct-shop-menu-label {
  margin: 10px 10px 4px;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}
.acct-shop-menu-label:first-child { margin-top: 6px; }
.acct-shop-avatar-ph--all {
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e8eef8;
  color: #1e3a8a;
}

/* Referrals tab leftovers */
.vr-ref-scope-pill {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
}
.vr-ref-list { display: grid; gap: 10px; }
.vr-ref-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.vr-ref-row em { display: block; margin-top: 3px; font-style: normal; color: #64748b; font-size: 0.84rem; }
.vr-ref-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em; background: #f1f5f9; padding: 1px 6px; border-radius: 6px;
}
.vr-ref-main { display: grid; gap: 6px; min-width: 0; }
.vr-ref-linkbar { display: flex; gap: 8px; align-items: center; max-width: 100%; }
.vr-ref-linkbar input {
  flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px;
  border: 1px solid #dbe3ef; font-size: 0.85rem; background: #f8fafc;
}
.vr-ref-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vr-ref-invites .vr-ref-row { border-color: #dbe7f5; background: #f8fbff; }

/* Role clarity switcher between Partners / My earnings */
.vr-role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.vr-role-switch-pill {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font: 650 0.8rem "Manrope", system-ui, sans-serif;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease, color .16s ease, border-color .16s ease;
}
span.vr-role-switch-pill {
  cursor: default;
}
.vr-role-switch-pill.is-here {
  background: #0b1b3a;
  border-color: #0b1b3a;
  color: #fff;
}
button.vr-role-switch-pill:hover {
  background: #fff;
  color: #0b1b3a;
  border-color: #94a3b8;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

/* Shared hover pop for referral / partner CTAs */
.vr-hover-pop {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease !important;
}
.vr-hover-pop:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}
.vr-hover-pop:active:not(:disabled) {
  transform: scale(0.98);
}

.vr-ref .btn,
.vr-ref .vr-wd-submit,
.vr-ref .auth-btn-secondary {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease !important;
}
.vr-ref .btn:hover:not(:disabled),
.vr-ref .vr-wd-submit:hover:not(:disabled),
.vr-ref .auth-btn-secondary:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

/* How it works */
.vr-aff-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.vr-aff-steps li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
}
.vr-aff-steps strong {
  font-size: 0.92rem;
  color: #0b1b3a;
}
.vr-aff-steps span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b;
}

/* Invite form — clearer layout */
.vr-aff-field--note,
.vr-aff-invite-foot,
.vr-aff-msg {
  grid-column: 1 / -1;
}
.vr-aff-field--note textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #0f172a;
  resize: vertical;
}
.vr-aff-field--note textarea:focus {
  outline: none;
  border-color: #0b1b3a;
  box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1);
}
.vr-aff-invite-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-top: 4px;
}
.vr-aff-invite-foot .vr-aff-hint {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.vr-aff-invite-foot .vr-aff-send {
  flex: none;
}

.vr-aff-pending-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fbff;
  border: 1px solid #e2ebf7;
}
.vr-aff-pending-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.vr-aff-pending-main strong {
  font-size: 0.95rem;
  color: #0f172a;
}
.vr-aff-pending-main em {
  font-style: normal;
  font-size: 0.84rem;
  color: #64748b;
}
.vr-aff-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #0b1b3a;
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
  font-style: italic;
}

/* Invite inbox on My earnings */
.vr-ref-inbox {
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7faff 0%, #fff 100%);
  border: 1px solid #dbe7f5;
}
.vr-ref-inbox--empty {
  background: #fafbfd;
  border-style: dashed;
}
.vr-ref-inbox-eyebrow {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}
.vr-ref-inbox h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0b1b3a;
}
.vr-ref-inbox-head > p:last-child,
.vr-ref-inbox--empty > p:last-child {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 58ch;
}
.vr-ref-invite-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.vr-ref-invite-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 20px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.vr-ref-invite-shop {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}
.vr-ref-invite-meta {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
}
.vr-ref-invite-exp {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}
.vr-ref-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .vr-aff-steps { grid-template-columns: 1fr; }
  .vr-aff-invite { grid-template-columns: 1fr 1fr; }
  .vr-aff-field--email { grid-column: 1 / -1; }
  .vr-aff-field--code { grid-column: 1 / -1; }
  .vr-ref-invite-card { grid-template-columns: 1fr; }
  .vr-ref-invite-actions { justify-content: stretch; }
  .vr-ref-invite-actions .btn { flex: 1; justify-content: center; }
}

/* Sidebar tab label + hint (Partners / My earnings) */
.account-tab .account-tab-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}
.account-tab .account-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.account-tab .account-tab-hint {
  display: none;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 0.7;
  white-space: normal;
}
body.account-seller .account-tab .account-tab-hint { display: block; }
body.account-seller .account-tab--hinted { align-items: flex-start; }
body.account-seller .account-tab--hinted svg { margin-top: 2px; }
.account-tab .account-tab-label .account-tab-count { margin: 0; }

/* Affiliate URL on its own full-width line */
.vr-aff-stat--url {
  flex: 1 1 100%;
  max-width: none;
}
.vr-aff-url-row { max-width: none; }

/* Partner card v2 */
.vr-pc {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.vr-pc.is-paused { background: #fffdf7; border-color: #f3e3b5; }
.vr-pc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.vr-pc-who {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.vr-pc-avatar {
  flex: none;
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #0b1b3a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.vr-pc-who-text { display: grid; gap: 2px; min-width: 0; }
.vr-pc-who-text strong { font-size: 1.02rem; font-weight: 700; color: #0f172a; }
.vr-pc-who-text em {
  font-style: normal;
  font-size: 0.85rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vr-pc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: capitalize;
  background: #f1f5f9;
  color: #475569;
}
.vr-pc-status i { width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.vr-pc-status.is-active { background: #e8f6ee; color: #15803d; }
.vr-pc-status.is-paused { background: #fdf3dc; color: #b45309; }
.vr-pc-status.is-revoked { background: #fdecec; color: #b91c1c; }
.vr-pc-actions { display: flex; gap: 8px; }
.vr-pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.vr-pc-btn:hover { background: #f8fafc; color: #0f172a; }
.vr-pc-btn.is-danger { color: #dc2626; border-color: #fbd5d5; }
.vr-pc-btn.is-danger:hover { background: #fef2f2; }

.vr-pc-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 10px;
}
.vr-pc-metric {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9fc;
  border: 1px solid #edf1f7;
}
.vr-pc-metric > span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.vr-pc-metric > strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0b1b3a;
  font-variant-numeric: tabular-nums;
}
.vr-pc-pct { display: flex; align-items: center; gap: 8px; }
.vr-pc-pct-field {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
}
.vr-pc-pct-field:focus-within { border-color: #0b1b3a; box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1); }
.vr-pc-pct-field input {
  width: 44px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b1b3a;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.vr-pc-pct-field input::-webkit-outer-spin-button,
.vr-pc-pct-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vr-pc-pct-field span { font-weight: 700; color: #64748b; }
.vr-pc-save {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #0b1b3a;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.vr-pc-save:hover { background: #132748; }

.vr-pc-link { display: grid; gap: 8px; }
.vr-pc-link-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}
.vr-pc-link-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 6px 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}
.vr-pc-link-ico { display: inline-grid; color: #64748b; flex: none; }
.vr-pc-link-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  color: #0f172a;
  text-overflow: ellipsis;
}
.vr-pc-code {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8eef8;
  color: #1e3a8a;
  font-size: 0.74rem;
  font-weight: 700;
}
.vr-pc-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #0b1b3a;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 650;
  cursor: pointer;
}
.vr-pc-copy:hover { background: #132748; }
.vr-pc-copy.is-copied { background: #15803d; }

@media (max-width: 720px) {
  .vr-pc-metrics { grid-template-columns: 1fr 1fr; }
  .vr-pc-metric--pct { grid-column: 1 / -1; }
  .vr-pc-code { display: none; }
}

/* Never let content widen the page grid (mobile overflow) */
.vr-aff { grid-template-columns: minmax(0, 1fr); }
.vr-aff > *, .vr-aff-card, .vr-pc, .vr-pc > * { min-width: 0; }
@media (max-width: 560px) {
  .vr-aff-card { padding: 16px; }
  .vr-pc { padding: 16px; gap: 14px; }
  .vr-pc-head { align-items: flex-start; }
  .vr-pc-actions { width: 100%; }
  .vr-pc-actions .vr-pc-btn { flex: 1; justify-content: center; }
  .vr-aff-invite { grid-template-columns: minmax(0, 1fr); }
  .vr-aff-field--pct { max-width: none; }
  .vr-aff-invite-foot .vr-aff-send { width: 100%; }
  .vr-aff-pending-card { flex-direction: column; }
}

/* ── Referrers table ── */
.vr-rf-head p { margin: 3px 0 0; font-size: 0.86rem; color: #94a3b8; }
.vr-rf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 14px;
}
.vr-rf-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  color: #94a3b8;
}
.vr-rf-search:focus-within { border-color: #0b1b3a; box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1); }
.vr-rf-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font-size: 0.92rem; color: #0f172a;
}
.vr-rf-sort {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; color: #64748b;
}
.vr-rf-sort select {
  height: 42px; padding: 0 34px 0 12px;
  border: 1px solid #dbe3ef; border-radius: 12px; background: #fff;
  font-size: 0.88rem; font-weight: 600; color: #0f172a; cursor: pointer;
}
.vr-rf-table {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.vr-rf-row {
  display: grid;
  grid-template-columns: minmax(200px, 2.2fr) 1fr 0.9fr 0.7fr 1fr 1fr 0.9fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vr-rf-body .vr-rf-row:hover {
  background: #f7faff;
  box-shadow: inset 3px 0 0 #0b1b3a;
}
.vr-rf-row b { font-weight: 700; color: #0b1b3a; }
.vr-rf-row--head {
  border-top: 0;
  background: #f8fafc;
  cursor: default;
  padding-top: 10px;
  padding-bottom: 10px;
}
.vr-rf-row--head > * {
  border: 0; background: none; padding: 0; text-align: left;
  font: inherit; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #94a3b8;
}
.vr-rf-row--head button { cursor: pointer; }
.vr-rf-row--head button:hover, .vr-rf-row--head .is-sorted { color: #0b1b3a; }
.vr-rf-row--head .is-sorted::after { content: " ↓"; }
.vr-rf-row--head .is-sorted[data-dir="asc"]::after { content: " ↑"; }
.vr-rf-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vr-rf-who .vr-pc-avatar { width: 36px; height: 36px; font-size: 0.72rem; }
.vr-rf-who-text { display: grid; min-width: 0; }
.vr-rf-who-text strong { font-size: 0.92rem; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-rf-who-text em { font-style: normal; font-size: 0.8rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-rf-row .vr-pc-status { margin: 0; }
.vr-rf-table [data-rf-noresult] { padding: 20px; }

/* ── Referrer profile sheet ── */
body.vr-rs-open { overflow: hidden; }
.vr-rs { position: fixed; inset: 0; z-index: 1200; }
.vr-rs[hidden] { display: none; }
.vr-rs-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 17, 36, 0.42);
  backdrop-filter: blur(2px);
  animation: vrRsFade .18s ease both;
}
.vr-rs-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px 24px 28px;
  background: #fff;
  box-shadow: -20px 0 50px rgba(4, 17, 36, 0.18);
  animation: vrRsSlide .22s ease both;
}
@keyframes vrRsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vrRsSlide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.vr-rs-head { display: flex; align-items: center; gap: 14px; }
.vr-rs-avatar { width: 52px; height: 52px; font-size: 0.9rem; }
.vr-rs-title { display: grid; gap: 6px; justify-items: start; flex: 1; min-width: 0; }
.vr-rs-title strong { font-size: 1.15rem; color: #0b1b3a; }
.vr-rs-title .vr-pc-status { margin: 0; }
.vr-rs-x {
  width: 36px; height: 36px; border: 1px solid #e2e8f0; border-radius: 10px;
  background: #fff; color: #475569; font-size: 0.9rem; cursor: pointer;
}
.vr-rs-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.vr-rs-kpis > div {
  display: grid; gap: 6px; padding: 12px 14px;
  border-radius: 12px; background: #f7f9fc; border: 1px solid #edf1f7;
}
.vr-rs-kpis span, .vr-rs-sec h4, .vr-rs-info span {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8;
}
.vr-rs-kpis strong { font-size: 1.2rem; font-weight: 700; color: #0b1b3a; font-variant-numeric: tabular-nums; }
.vr-rs-sec { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid #eef2f7; }
.vr-rs-sec h4 { margin: 0; }
.vr-rs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.vr-rs-info { display: grid; gap: 3px; min-width: 0; }
.vr-rs-info strong { font-size: 0.92rem; font-weight: 600; color: #0f172a; overflow-wrap: anywhere; }
.vr-rs-na { color: #cbd5e1; font-style: normal; }
.vr-rs-sales { display: grid; gap: 6px; }
.vr-rs-sale {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  padding: 9px 12px; border-radius: 10px; background: #f8fafc; font-size: 0.84rem; color: #475569;
}
.vr-rs-sale code { font-size: 0.78rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; }
.vr-rs-sale strong { color: #0b1b3a; }
.vr-rs-empty { margin: 0; font-size: 0.88rem; color: #94a3b8; }
.vr-rs-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid #eef2f7; }

@media (max-width: 900px) {
  .vr-rf-row--head { display: none; }
  .vr-rf-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    padding: 14px;
  }
  .vr-rf-who { grid-column: 1 / -1; }
  .vr-rf-row > [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8;
  }
}
@media (max-width: 480px) {
  .vr-rs-grid { grid-template-columns: 1fr; }
  .vr-rf-sort { width: 100%; }
  .vr-rf-sort select { flex: 1; }
}
.vr-rs { z-index: 5000; }
.vr-rf-row { grid-template-columns: minmax(0, 2.4fr) 112px 92px 66px 96px 104px 86px; }
.vr-rf-row > * { white-space: nowrap; }
.vr-rf-who-text strong, .vr-rf-who-text em { white-space: nowrap; }
@media (max-width: 900px) { .vr-rf-row { grid-template-columns: 1fr 1fr; } }
.vr-rf-row { column-gap: 16px; grid-template-columns: minmax(0, 2.2fr) 112px 96px 62px 96px 108px 84px; }
.vr-rf-row--head > * { font-size: 0.66rem; letter-spacing: 0.05em; }
/* My earnings dashboard */

/* My earnings dashboard */
.vr-earn-lede {
  margin: 8px 0 0;
  max-width: 54ch;
  color: #5b6b7c;
  font-size: 0.92rem;
  line-height: 1.45;
}
.vr-earn-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
}
.vr-earn-chip {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #0b1b2b;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.vr-earn-chip.is-active {
  background: #0b1b2b;
  border-color: #0b1b2b;
  color: #fff;
}
.vr-earn-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .vr-earn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vr-earn-focus {
  display: grid;
  gap: 14px;
}
.vr-earn-focus-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.vr-earn-focus-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b8a99;
  font-weight: 700;
}
.vr-earn-focus h3 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
}
.vr-earn-focus-meta {
  margin: 0;
  color: #5b6b7c;
  font-size: 0.88rem;
}
.vr-earn-focus-sum {
  text-align: right;
}
.vr-earn-focus-sum span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8a99;
  font-weight: 700;
}
.vr-earn-focus-sum strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}
.vr-earn-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}
.vr-earn-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.vr-earn-shop-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: #fbfcfe;
}
.vr-earn-shop-head strong { display: block; font-size: 0.98rem; }
.vr-earn-shop-head em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  color: #64748b;
  font-size: 0.82rem;
}
.vr-earn-shop-stats {
  display: flex;
  gap: 16px;
}
.vr-earn-shop-stats span { display: grid; gap: 2px; }
.vr-earn-shop-stats small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8a99;
  font-weight: 700;
}
.vr-earn-shop-stats b { font-size: 1.05rem; }
.vr-earn-open-shop {
  border: 0;
  background: transparent;
  color: #1a3a5c;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.vr-earn-open-shop:hover { text-decoration: underline; }

/* Referrals invite: link + email */
.vr-inv { display: grid; gap: 16px; }
.vr-inv-pct { display: grid; gap: 6px; max-width: 520px; }
.vr-inv-pct > span:first-child { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7b8a99; }
.vr-inv-pct-input { max-width: 140px; }
.vr-inv-pct-input input { font-size: 1.15rem; font-weight: 700; }
.vr-inv-pct-input b { padding-right: 12px; color: #0b1b2b; }
.vr-inv-pct small { color: #64748b; font-size: 0.8rem; }
.vr-inv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .vr-inv-grid { grid-template-columns: 1fr; } }
.vr-inv-block {
  display: grid; gap: 10px; align-content: start;
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; background: #fbfcfe;
}
.vr-inv-block h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.98rem; color: #0b1b2b; }
.vr-inv-block > p { margin: 0; color: #5b6b7c; font-size: 0.85rem; line-height: 1.45; }
.vr-inv-block textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 56px;
  border: 1px solid #d7e0ea; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.88rem; background: #fff;
}
.vr-inv-block .vr-aff-send { justify-self: start; }
.vr-inv-block .vr-pc-link-bar input { min-width: 0; }
.vr-aff-pending-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Notification banner (invites waiting) */
.vr-invite-banner {
  display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1px solid #0b1b2b; background: #0b1b2b; color: #fff; font: inherit; font-size: 0.9rem;
}
.vr-invite-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.vr-invite-banner em { font-style: normal; opacity: 0.7; }
.vr-invite-banner b { white-space: nowrap; color: #d4af37; }
.vr-invite-banner-dot { width: 9px; height: 9px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25); flex: none; }

/* Join link card */
.vr-join-card { border-color: #0b1b2b; }
.vr-join-card .vr-ref-invite-actions { margin-top: 12px; }
.vr-join-card .btn { margin-top: 10px; }

/* Earnings chart + KPI sub line */
.vr-earn-kpi-sub { display: block; margin-top: 4px; font-size: 0.76rem; color: #7b8a99; font-weight: 600; }
.vr-earn-chip em { font-style: normal; opacity: 0.6; margin-left: 4px; }
.vr-earn-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.vr-earn-chart-head .vr-wd-card-title { margin-bottom: 2px; }
.vr-earn-chart-total { font-size: 1.35rem; color: #0b1b2b; }
.vr-earn-bars {
  display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: 4px;
  height: 120px; margin-top: 14px; padding-bottom: 2px; border-bottom: 1px solid #e2e8f0;
}
.vr-earn-bar { display: block; height: var(--h); min-height: 3px; border-radius: 4px 4px 1px 1px; background: #e7edf4; }
.vr-earn-bar.has-value { background: #0b1b2b; }
.vr-earn-bar.has-value:hover { background: #d4af37; }
.vr-earn-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.72rem; color: #7b8a99; }
.vr-earn-how .vr-aff-steps { margin: 8px 0 0; }
html.brand-vision-rebel .vr-wd-kpis.vr-earn-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { html.brand-vision-rebel .vr-wd-kpis.vr-earn-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html.brand-vision-rebel .vr-wd-kpis.vr-earn-kpis { grid-template-columns: 1fr; } }
.vr-inv .vr-inv-pct { display: grid; width: 100%; max-width: none; }
.vr-inv .vr-inv-pct-input { display: inline-flex; align-items: center; gap: 8px; width: auto; max-width: none; }
.vr-inv .vr-inv-pct-input input { width: 110px; }
.vr-inv .vr-inv-pct-input b { padding: 0; font-size: 1.05rem; }

/* ── My earnings / Referrals v2 — same components as the main Dashboard ── */
.vr-earn2, .vr-aff2 { display: grid; gap: 14px; }
.vr-earn2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vr-earn2-head .vr-wd-title { margin: 2px 0 4px; }
.vr-earn2-head .vr-earn-lede { margin: 0; }
.vr-earn-shopseg { justify-self: start; max-width: 100%; overflow-x: auto; }
.vr-dash-kpi .vr-earn-kpi-sub { display: block; margin-top: 2px; font-size: 0.72rem; color: #7b8a99; font-weight: 600; text-align: left; }
.vr-earn-kpi-static { cursor: default; }
.vr-earn-panel-sub { margin: 2px 0 0; font-size: 0.78rem; }
.vr-earn2 .vr-dash-mid, .vr-aff2 .vr-dash-mid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: stretch; }
@media (max-width: 1000px) { .vr-earn2 .vr-dash-mid, .vr-aff2 .vr-dash-mid { grid-template-columns: 1fr; } }
.vr-earn2 .vr-dash-sales .dash-sales-wrap, .vr-aff2 .vr-dash-sales .dash-sales-wrap { min-height: 220px; }

.vr-earn-linklist { display: grid; gap: 10px; }
.vr-earn-linkrow { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(11, 27, 58, 0.09); border-radius: 14px; background: #f8fafc; }
.vr-earn-linkrow-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vr-earn-linkrow-top strong { font-size: 0.95rem; margin-right: auto; }
.vr-earn-pct { padding: 3px 9px; border-radius: 999px; background: #06152b; color: #fff; font-size: 0.74rem; font-weight: 700; }
.vr-earn-linkrow .vr-ref-linkbar input { flex: 1; min-width: 0; }
.vr-earn-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.vr-earn-steps li { display: flex; gap: 12px; align-items: flex-start; }
.vr-earn-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #06152b; color: #fff; font-size: 0.8rem; }
.vr-earn-steps span { display: grid; gap: 2px; font-size: 0.82rem; color: #5b6b7c; line-height: 1.4; }
.vr-earn-steps strong { color: #0b1b2b; font-size: 0.9rem; }

.vr-earn2-bottom { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.55fr); gap: 12px; }
@media (max-width: 1000px) { .vr-earn2-bottom { grid-template-columns: 1fr; } }
.vr-earn-legend { display: grid; gap: 6px; align-content: center; }
.vr-earn-legend-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 0.82rem; text-align: left; cursor: pointer; }
.vr-earn-legend-row:hover { background: #f1f5f9; }
.vr-earn-legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.vr-earn-legend-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-earn-legend-row em { font-style: normal; color: #7b8a99; }
.vr-earn-recent .vr-recent-row { grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr) 100px 80px !important; }
@media (max-width: 700px) { .vr-earn-recent .vr-recent-row { grid-template-columns: 1fr auto !important; } .vr-earn-recent .vr-recent-cust, .vr-earn-recent .vr-recent-status { display: none; } }

.vr-dash-panel.vr-inv { display: grid; gap: 12px; align-content: start; }
.vr-dash-panel.vr-inv .vr-dash-panel-head { margin-bottom: 0 !important; }
.vr-dash-panel.vr-inv .vr-inv-block { padding: 12px; gap: 8px; }
.vr-inv-mailrow { display: flex; gap: 8px; }
.vr-inv-mailrow .vr-aff-input { flex: 1; min-width: 0; }
.vr-inv-mailrow .vr-aff-send { flex: none; }
.vr-aff2 .vr-aff-hero { margin-bottom: 0; }

/* Referrals — invite card */
.vr-inv2 {
  display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
  border-radius: 22px; overflow: hidden; background: #fff;
  border: 1px solid rgba(11, 27, 58, 0.08); box-shadow: 0 18px 40px -28px rgba(6, 21, 43, 0.45);
}
@media (max-width: 900px) { .vr-inv2 { grid-template-columns: 1fr; } }
.vr-inv2-side {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; color: #fff; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, #1d3a6b 0%, #0b1b3a 55%, #06152b 100%);
}
.vr-inv2-side::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.28), rgba(212, 175, 55, 0) 70%);
}
.vr-inv2-eyebrow {
  align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.vr-inv2-side h3 { margin: 0; font-size: 1.65rem; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
.vr-inv2-side > p { margin: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; line-height: 1.5; }
.vr-inv2-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.vr-inv2-steps li { display: flex; gap: 12px; align-items: flex-start; }
.vr-inv2-steps b {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #d4af37; color: #06152b; font-size: 0.82rem; font-weight: 800;
}
.vr-inv2-steps span { display: grid; gap: 2px; }
.vr-inv2-steps strong { font-size: 0.95rem; color: #fff; }
.vr-inv2-steps em { font-style: normal; font-size: 0.82rem; color: rgba(255, 255, 255, 0.62); }
.vr-inv2-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.vr-inv2-stats span {
  padding: 7px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 0.8rem; color: rgba(255, 255, 255, 0.75);
}
.vr-inv2-stats strong { color: #fff; font-size: 0.95rem; margin-right: 3px; }

.vr-inv2-main { display: grid; gap: 20px; padding: 28px; align-content: start; }
.vr-inv2-main--empty { align-content: center; gap: 8px; }
.vr-inv2-field { display: grid; gap: 8px; margin: 0; }
.vr-inv2-label { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; color: #0b1b3a; }
.vr-inv2-label svg { color: #0b1b3a; opacity: 0.8; }
.vr-inv2-sub { margin: -2px 0 2px; font-size: 0.84rem; color: #64748b; }
.vr-inv2-pcts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vr-inv2-chip {
  min-width: 58px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(11, 27, 58, 0.14); background: #f8fafc;
  font: inherit; font-size: 0.95rem; font-weight: 700; color: #0b1b3a; cursor: pointer; transition: all 0.15s ease;
}
.vr-inv2-chip:hover { border-color: #0b1b3a; background: #fff; }
.vr-inv2-chip.is-active { background: #0b1b3a; border-color: #0b1b3a; color: #fff; box-shadow: 0 8px 18px -10px rgba(11, 27, 58, 0.8); }
.vr-inv2-custom {
  display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px dashed rgba(11, 27, 58, 0.25); background: #fff;
}
.vr-inv2-custom:focus-within { border-style: solid; border-color: #0b1b3a; box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1); }
.vr-inv2-custom input { width: 54px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.95rem; font-weight: 700; color: #0b1b3a; text-align: right; }
.vr-inv2-custom b { color: #0b1b3a; }
.vr-inv2-hint { margin: 0; padding: 10px 12px; border-radius: 12px; background: #f6f1df; color: #5c4a12; font-size: 0.85rem; }
.vr-inv2-hint b { color: #06152b; }
.vr-inv2-bar {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 14px;
  border: 1px solid rgba(11, 27, 58, 0.14); background: #f8fafc;
}
.vr-inv2-bar:focus-within { border-color: #0b1b3a; background: #fff; box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1); }
.vr-inv2-bar input {
  flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.9rem; color: #0f172a;
  text-overflow: ellipsis;
}
.vr-inv2-bar input[readonly] { color: #334155; }
.vr-inv2-btn {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 18px; border: 0; border-radius: 10px;
  background: #0b1b3a; color: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.vr-inv2-btn:hover { background: #142b57; }
.vr-inv2-btn:disabled { opacity: 0.6; cursor: wait; }
.vr-inv2-field textarea {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; padding: 11px 14px; border-radius: 14px;
  border: 1px solid rgba(11, 27, 58, 0.14); background: #f8fafc; font: inherit; font-size: 0.88rem; color: #0f172a;
}
.vr-inv2-field textarea:focus { outline: 0; border-color: #0b1b3a; background: #fff; box-shadow: 0 0 0 3px rgba(11, 27, 58, 0.1); }
.vr-inv2-or { display: flex; align-items: center; gap: 12px; margin: -6px 0; color: #94a3b8; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.vr-inv2-or::before, .vr-inv2-or::after { content: ""; flex: 1; height: 1px; background: rgba(11, 27, 58, 0.1); }
.vr-inv2 .vr-aff-msg { margin: 0; }
@media (max-width: 560px) {
  .vr-inv2-side, .vr-inv2-main { padding: 22px 18px; }
  .vr-inv2-bar { flex-wrap: wrap; padding: 6px; }
  .vr-inv2-bar input { flex-basis: 100%; padding: 0 8px; }
  .vr-inv2-btn { flex: 1; justify-content: center; }
}
