/* Rishta Gher Professional v0.6.2 — loaded after companion/plugin styles */
:root{
  --rgp-burgundy:#781936;
  --rgp-wine:#98264a;
  --rgp-gold:#c99a49;
  --rgp-ivory:#fff9f5;
  --rgp-pale:#f8e9ee;
  --rgp-border:#eadde1;
  --rgp-text:#20151a;
}

/* Companion-plugin dashboards/account areas */
body [class*="dashboard"] aside,
body [class*="dashboard"] [class*="sidebar"],
body [class*="dashboard"] [class*="nav"],
body [class*="member"] [class*="sidebar"],
body [class*="account"] [class*="sidebar"],
body [class*="profile"] [class*="sidebar"]{
  border-color:var(--rgp-border)!important;
}

/* Explicit common plugin naming patterns. */
.rgc-dashboard-sidebar,.rgc-member-sidebar,.rgc-account-sidebar,
.rg-dashboard-sidebar,.rg-member-sidebar,.rg-account-sidebar,
.member-dashboard-sidebar,.dashboard-sidebar,.account-sidebar{
  background:linear-gradient(155deg,#65142f,#821d3d)!important;
  color:#fff!important;
  border-color:#65142f!important;
  box-shadow:0 16px 38px rgba(78,15,38,.15)!important;
}
.rgc-dashboard-sidebar a,.rgc-member-sidebar a,.rgc-account-sidebar a,
.rg-dashboard-sidebar a,.rg-member-sidebar a,.rg-account-sidebar a,
.member-dashboard-sidebar a,.dashboard-sidebar a,.account-sidebar a{
  color:#fff!important;
}
.rgc-dashboard-sidebar a:hover,.rgc-dashboard-sidebar a.active,
.rgc-member-sidebar a:hover,.rgc-member-sidebar a.active,
.rg-dashboard-sidebar a:hover,.rg-dashboard-sidebar a.active,
.member-dashboard-sidebar a:hover,.member-dashboard-sidebar a.active,
.dashboard-sidebar a:hover,.dashboard-sidebar a.active{
  background:rgba(255,255,255,.12)!important;color:#f5d99c!important;
}

/* Dashboard KPIs and headings */
body [class*="dashboard"] h1,body [class*="dashboard"] h2,body [class*="dashboard"] h3{
  color:#35101f;
}
body [class*="dashboard"] [class*="stat"] strong,
body [class*="dashboard"] [class*="metric"] strong,
body [class*="dashboard"] [class*="count"]{
  color:var(--rgp-burgundy)!important;
}

/* Membership / pricing surfaces */
body [class*="membership"] [class*="plan"],
body [class*="pricing"] [class*="plan"],
body [class*="membership"] [class*="card"]{
  border-color:#e5d7d9!important;
  box-shadow:0 10px 30px rgba(77,14,37,.07)!important;
}
body [class*="membership"] [class*="featured"],
body [class*="membership"] [class*="popular"],
body [class*="pricing"] [class*="featured"]{
  border-color:var(--rgp-gold)!important;
}
body [class*="membership"] [class*="badge"],
body [class*="pricing"] [class*="badge"],
body [class*="plan"] [class*="badge"]{
  background:var(--rgp-pale)!important;color:var(--rgp-burgundy)!important;border-color:#e8ccd5!important;
}
body [class*="membership"] button,
body [class*="membership"] .button,
body [class*="membership"] input[type="submit"],
body [class*="pricing"] button,
body [class*="pricing"] .button{
  background:linear-gradient(135deg,#d6ad62,#c58f38)!important;
  color:#3d0c1d!important;border-color:#c58f38!important;
}

/* Common plugin notices/status/progress */
body [class*="progress"] > *{accent-color:var(--rgp-burgundy)!important}
body progress{accent-color:var(--rgp-burgundy)!important}
body [class*="success"],body [class*="verified"],body [class*="approved"]{
  color:var(--rgp-burgundy)!important;border-color:#e7ccd5!important;
}

/* Catch known legacy greens, including inline styles. */
[style*="#005b43"],[style*="#005B43"],[style*="#005c45"],[style*="#005C45"],
[style*="#006044"],[style*="#006b4f"],[style*="#006B4F"],[style*="#075e4a"],[style*="#075E4A"],
[style*="#0a684a"],[style*="#0A684A"],[style*="#004b35"],[style*="#004B35"],
[style*="rgb(0, 91, 67)"],[style*="rgb(0,91,67)"],[style*="rgb(0, 96, 68)"],[style*="rgb(0,96,68)"]{
  background-color:var(--rgp-burgundy)!important;
  border-color:var(--rgp-burgundy)!important;
}

/* Form + pagination consistency */
body input:focus,body select:focus,body textarea:focus{border-color:var(--rgp-wine)!important;box-shadow:0 0 0 3px rgba(152,38,74,.10)!important}
body input[type="checkbox"],body input[type="radio"]{accent-color:var(--rgp-burgundy)!important}
body .page-numbers.current,body .pagination .current{background:var(--rgp-burgundy)!important;border-color:var(--rgp-burgundy)!important;color:#fff!important}

/* =========================================================
   v0.6.3 — Premium Recent Member Cards
   Mirrors the approved clean locked-profile concept while
   preserving plugin profile data and member permissions.
   ========================================================= */
.rg-members-section .rgp-profile-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  background:#fff!important;
  border:1px solid #eadde1!important;
  border-top:2px solid #8b183b!important;
  border-radius:22px!important;
  overflow:hidden!important;
  box-shadow:0 16px 42px rgba(74,18,38,.09)!important;
  color:#24151b!important;
  text-decoration:none!important;
  transform:translateY(0);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important;
}
.rg-members-section .rgp-profile-card:hover{
  transform:translateY(-5px)!important;
  border-color:#d9b56d!important;
  box-shadow:0 22px 54px rgba(74,18,38,.14)!important;
}
.rg-members-section .rgp-profile-card *{box-sizing:border-box}

/* Locked image panel */
.rg-members-section .rgp-profile-card .rgp-locked-photo{
  position:relative!important;
  min-height:315px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  padding:58px 28px 98px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 11% 6%,rgba(120,25,54,.055) 0 54px,transparent 55px),
    radial-gradient(circle at 86% 22%,rgba(201,154,73,.10),transparent 32%),
    linear-gradient(135deg,#fffdfa 0%,#f7eff1 50%,#f2ece8 100%)!important;
  border:0!important;
  color:#5f1830!important;
}
.rg-members-section .rgp-profile-card .rgp-locked-photo:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg,transparent 0 38%,rgba(120,25,54,.025) 39% 40%,transparent 41% 100%);
}
.rg-members-section .rgp-card-badge{
  position:absolute!important;
  z-index:5!important;
  left:18px!important;
  top:18px!important;
  width:54px!important;
  height:54px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#8e173d,#65142f)!important;
  border:2px solid #d2a348!important;
  color:#f4c965!important;
  font-weight:900!important;
  font-size:17px!important;
  letter-spacing:.02em!important;
  box-shadow:0 8px 20px rgba(81,19,41,.18)!important;
}
.rg-members-section .rgp-card-heart{
  position:absolute!important;
  z-index:5!important;
  right:18px!important;
  top:18px!important;
  width:48px!important;
  height:48px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(120,25,54,.12)!important;
  color:#8b183b!important;
  font-size:29px!important;
  line-height:1!important;
  box-shadow:0 8px 22px rgba(57,17,31,.09)!important;
}
.rg-members-section .rgp-lock-icon{
  width:70px!important;
  height:70px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 auto 14px!important;
  border-radius:999px!important;
  background:rgba(255,249,247,.86)!important;
  color:#8b183b!important;
  border:1px solid #ecd5dd!important;
  font-size:31px!important;
  box-shadow:0 9px 24px rgba(73,19,37,.08)!important;
}
.rg-members-section .rgp-lock-copy{
  position:relative!important;
  z-index:2!important;
  display:block!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#64152d!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:25px!important;
  line-height:1.2!important;
  font-weight:700!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.rg-members-section .rgp-lock-note{
  position:relative!important;
  z-index:2!important;
  max-width:270px!important;
  margin:10px auto 0!important;
  color:#71646a!important;
  font-size:14px!important;
  line-height:1.55!important;
  background:transparent!important;
  border:0!important;
}
.rg-members-section .rgp-card-wave{
  position:absolute!important;
  z-index:3!important;
  left:0!important;
  right:0!important;
  bottom:-1px!important;
  height:86px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  padding:18px 20px 16px!important;
  overflow:hidden!important;
  color:#6d1631!important;
  background:#fff8f6!important;
  border-top:1px solid rgba(201,154,73,.65)!important;
  clip-path:polygon(0 38%,17% 20%,37% 38%,56% 67%,74% 36%,89% 20%,100% 24%,100% 100%,0 100%)!important;
}
.rg-members-section .rgp-card-wave:before{
  content:"“";
  position:absolute;
  left:17px;
  bottom:15px;
  color:#c99a49;
  font-family:Georgia,serif;
  font-size:45px;
  line-height:1;
}
.rg-members-section .rgp-wave-copy{
  position:relative;
  z-index:2;
  padding-left:34px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:12px;
  line-height:1.15;
  font-weight:700;
  text-align:left;
}
.rg-members-section .rgp-wave-brand{
  position:relative;
  z-index:2;
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;
  line-height:.8;
  font-weight:900;
  color:#8b183b;
  text-align:center;
}
.rg-members-section .rgp-wave-brand small{
  display:block;
  margin-top:7px;
  font-family:Inter,system-ui,sans-serif;
  font-size:6px;
  line-height:1;
  letter-spacing:.22em;
}

/* Profile information under image */
.rg-members-section .rgp-profile-card .rgp-profile-title{
  color:#38111f!important;
  font-size:21px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
.rg-members-section .rgp-profile-card .rgp-view-profile{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:max-content!important;
  min-height:40px!important;
  margin-top:10px!important;
  padding:9px 14px!important;
  border:1px solid #b85b75!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#84183b!important;
  font-size:13px!important;
  font-weight:800!important;
  box-shadow:none!important;
}
.rg-members-section .rgp-profile-card .rgp-view-profile:before{
  content:"◉";
  color:#9a2146;
  font-size:15px;
}
.rg-members-section .rgp-profile-card:hover .rgp-view-profile{
  background:#7b1737!important;
  color:#fff!important;
  border-color:#7b1737!important;
}

/* Remove old decorative locked-photo watermark clutter in enhanced cards. */
.rg-members-section .rgp-profile-card .rgp-locked-photo [style*="transform: rotate"],
.rg-members-section .rgp-profile-card .rgp-locked-photo [class*="watermark"]{
  opacity:.055!important;
}

@media(min-width:760px){
  .rg-members-section .rgp-profile-card{min-height:505px!important}
}
@media(max-width:760px){
  .rg-members-section .rgp-profile-card{border-radius:18px!important}
  .rg-members-section .rgp-profile-card .rgp-locked-photo{min-height:285px!important;padding:52px 22px 88px!important}
  .rg-members-section .rgp-lock-copy{font-size:22px!important}
  .rg-members-section .rgp-card-badge{left:14px!important;top:14px!important;width:48px!important;height:48px!important}
  .rg-members-section .rgp-card-heart{right:14px!important;top:14px!important;width:44px!important;height:44px!important}
}


/* v0.6.4 — server-rendered premium card structure */
.rg-members-section .rgp-profile-card .rgp-profile-info{
  position:relative!important;
  flex:1 1 auto!important;
  padding:22px 24px 24px!important;
  background:#fff!important;
  border-top:1px solid #f0e5e8!important;
  color:#37242b!important;
}
.rg-members-section .rgp-profile-card .rgp-profile-info > *{max-width:100%!important}
.rg-members-section .rgp-profile-card .rgp-profile-info p,
.rg-members-section .rgp-profile-card .rgp-profile-info div{
  line-height:1.55;
}
.rg-members-section .rgp-profile-card .rgp-profile-info .rgp-profile-title{margin-top:0!important;margin-bottom:10px!important}
/* Hide legacy decorative RG/watermark layers inside locked panel; the clean brand strip replaces them. */
.rg-members-section .rgp-profile-card .rgp-locked-photo > :not(.rgp-card-badge):not(.rgp-card-heart):not(.rgp-lock-icon):not(.rgp-lock-copy):not(.rgp-lock-note):not(.rgp-card-wave){
  position:relative;
  z-index:2;
}
