
/* 1.8.3 compatibility cleanup for legacy renderer still present in page/opcode caches */

/* Remove the two exact legacy artifacts visible on Find Rishta:
   giant diagonal Rishta Gher watermark + extra RG block above title. */
.rgc-profile .rgc-photo-private::before,
.rgc-card.rgc-profile .rgc-photo-private::before{
  content:none!important;display:none!important;
}
.rgc-profile .rgc-body::before,
.rgc-card.rgc-profile .rgc-body::before{
  content:none!important;display:none!important;
}

/* Keep only the intentional RG badge that sits beside the profile title. */
.rgc-profile .rgc-profile-title-v179{
  display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 9px!important;
}
.rgc-profile .rgc-profile-rg-badge-v179{
  flex:0 0 38px!important;width:38px!important;height:38px!important;
  display:grid!important;place-items:center!important;border-radius:11px!important;
  background:#781936!important;color:#d8aa51!important;border:1px solid #d8aa51!important;
  box-shadow:0 5px 14px rgba(120,25,54,.14)!important;
}

/* Cleaner legacy card body, matching the isolated v1.8.2 design. */
.rgc-premium-card-v181 .rgc-body{
  padding:20px!important;background:#fff!important;
}
.rgc-premium-card-v181 .rgc-body h3{
  margin:0!important;color:#201519!important;font-size:19px!important;line-height:1.3!important;font-weight:800!important;
}
.rgc-premium-card-v181 .rgc-body p{
  margin:7px 0!important;color:#606764!important;font-size:13px!important;line-height:1.45!important;
}
.rgc-premium-card-v181 .rgc-view-profile{
  display:flex!important;width:100%!important;justify-content:space-between!important;
  min-height:42px!important;margin-top:16px!important;padding:10px 14px!important;
  border:1px solid #781936!important;border-radius:11px!important;
  background:#fff!important;color:#781936!important;text-decoration:none!important;font-weight:800!important;
}
.rgc-premium-card-v181:hover .rgc-view-profile{background:#781936!important;color:#fff!important}

/* Also neutralize any stale green badge rules injected by older plugin versions. */
.rgc-profile .rgc-profile-rg-badge-v160,
.rgc-profile .rgc-profile-rg-badge-v179{
  background:#781936!important;color:#d8aa51!important;border-color:#d8aa51!important;
}

/* Isolated renderer: never allow legacy pseudo decorations to leak in. */
.rgp182-card::before,.rgp182-card::after,
.rgp182-content::before,.rgp182-content::after{
  content:none!important;display:none!important;
}
