
.rgc-wrap{width:100%;max-width:1150px;margin:25px auto 55px;padding-left:16px;padding-right:16px}.rgc-card{background:#fff;border:1px solid #e6e1d3;border-radius:16px;padding:22px;box-shadow:0 9px 26px #183c3110}
.rgc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.rgc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.rgc-form{display:grid;gap:16px}.rgc-form label{display:grid;gap:7px;font-size:13px;font-weight:800}
.rgc-form input,.rgc-form select,.rgc-form textarea{padding:12px;border:1px solid #d7d1c3;border-radius:8px;font:inherit;background:#fff}.rgc-form textarea{min-height:120px}
.rgc-btn{border:0;background:#004b35;color:#fff;padding:12px 17px;border-radius:8px;font-weight:800;cursor:pointer}.rgc-btn.gold{background:#d7a536;color:#15382e}.rgc-muted{color:#6e7d77}
.rgc-profile{overflow:hidden}.rgc-avatar{height:210px;background:linear-gradient(135deg,#d9e7df,#f0e1b8);display:grid;place-items:center;font-size:65px;font-family:Georgia,serif;color:#004b35;font-weight:800}
.rgc-body{padding:17px}.rgc-body h3{margin:0 0 6px}.rgc-body p{margin:4px 0;color:#6e7d77;font-size:14px}.rgc-pill{display:inline-flex;background:#ebf5ef;color:#0a684a;border-radius:99px;padding:5px 8px;font-size:11px;font-weight:900}
.rgc-search{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:22px}.rgc-search input,.rgc-search select{width:100%;padding:11px;border:1px solid #d7d1c3;border-radius:8px}
.rgc-dashboard{display:grid;grid-template-columns:220px 1fr;gap:22px}.rgc-side{background:#004b35;color:#fff;border-radius:15px;padding:18px;display:grid;gap:6px;height:max-content}.rgc-side a{padding:10px;border-radius:7px;color:#fff;text-decoration:none}.rgc-side a:hover{background:#ffffff18}
.rgc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rgc-stat{background:#fff;border:1px solid #e6e1d3;border-radius:14px;padding:18px}.rgc-stat strong{font-size:29px;color:#004b35;display:block}
.rgc-message-list{display:grid;gap:10px}.rgc-message{padding:12px;border-radius:9px;background:#f6f3e9}.rgc-own{background:#e5f2e9;margin-left:15%}.rgc-alert{padding:12px 14px;border-radius:9px;background:#fff4cf;border:1px solid #ead58d}
@media(max-width:850px){.rgc-grid,.rgc-grid2,.rgc-search,.rgc-stats{grid-template-columns:1fr 1fr}.rgc-dashboard{grid-template-columns:1fr}}
@media(max-width:580px){.rgc-grid,.rgc-grid2,.rgc-search,.rgc-stats{grid-template-columns:1fr}}

.rgc-other-field{
  grid-column:1 / -1;
  padding:14px;
  border:1px solid #c9ddcf;
  background:#f5fbf7;
  border-radius:10px;
}
.rgc-other-field input{
  border-color:#0a684a!important;
}


.rgc-chat-image-wrap{margin-top:10px}
.rgc-chat-image{display:block;max-width:min(360px,100%);max-height:420px;object-fit:contain;border-radius:12px;border:1px solid #d8d2c4;background:#fff}

.rgc-payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}@media(max-width:800px){.rgc-payment-methods{grid-template-columns:1fr}}


.rgc-free-membership-card{
  display:grid;
  grid-template-columns:minmax(300px, .9fr) minmax(420px, 1.35fr);
  gap:28px;
  align-items:stretch;
  overflow:hidden;
}
.rgc-free-membership-copy{padding:4px 0}
.rgc-free-membership-visual{
  position:relative;
  min-height:420px;
  border-radius:20px;
  overflow:hidden;
  background:#f8eee8;
}
.rgc-free-membership-visual img{
  width:100%;
  height:100%;
  min-height:420px;
  display:block;
  object-fit:cover;
  object-position:center;
}
.rgc-membership-visual-caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  padding:16px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  text-align:center;
}
.rgc-membership-visual-caption strong{
  display:block;
  color:#004b35;
  font-size:18px;
  line-height:1.35;
}
.rgc-membership-visual-caption span{
  display:block;
  margin-top:5px;
  color:#65736d;
  font-size:13px;
}
@media(max-width:900px){
  .rgc-free-membership-card{grid-template-columns:1fr}
  .rgc-free-membership-visual{min-height:320px}
  .rgc-free-membership-visual img{min-height:320px}
}


/* v0.5.3 membership layout compatibility fixes */
.rgc-wrap,
.rgc-wrap *{
  box-sizing:border-box;
}
.rgc-wrap{
  width:100%;
  max-width:1150px;
  margin:25px auto 55px;
  padding-left:16px;
  padding-right:16px;
}
.rgc-free-membership-card{
  width:100%;
  max-width:100%;
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:24px;
  align-items:stretch;
  overflow:hidden;
}
.rgc-free-membership-copy{
  min-width:0;
}
.rgc-free-membership-visual{
  min-width:0;
  width:100%;
  min-height:380px;
  overflow:hidden;
  border-radius:18px;
  background:linear-gradient(135deg,#fff4ee,#f3e6dc);
}
.rgc-free-membership-visual img{
  display:block;
  width:100%;
  height:100%;
  min-height:380px;
  max-width:none;
  object-fit:cover;
  object-position:72% center;
}
.rgc-membership-visual-caption{
  max-width:calc(100% - 32px);
}
.rgc-grid,
.rgc-grid2,
.rgc-grid3{
  min-width:0;
}
.rgc-card{
  min-width:0;
  max-width:100%;
}
@media(max-width:900px){
  .rgc-free-membership-card{
    grid-template-columns:1fr;
  }
  .rgc-free-membership-visual,
  .rgc-free-membership-visual img{
    min-height:300px;
  }
}
@media(max-width:600px){
  .rgc-wrap{
    padding-left:10px;
    padding-right:10px;
  }
  .rgc-free-membership-visual,
  .rgc-free-membership-visual img{
    min-height:240px;
  }
  .rgc-membership-visual-caption{
    position:static;
    max-width:none;
    margin:0;
    border-radius:0;
    box-shadow:none;
  }
}

/* v0.5.4 clean membership artwork */
.rgc-free-membership-visual{
  background:#f7eee7;
}
.rgc-free-membership-visual img{
  object-position:center center;
}
.rgc-membership-visual-caption{
  background:rgba(0,75,53,.90);
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}
.rgc-membership-visual-caption strong{
  color:#fff;
}
.rgc-membership-visual-caption span{
  color:#f4ead4;
}

/* v0.7.0 starter profile photos */
.rgc-profile .rgc-avatar-photo{
  overflow:hidden;
  padding:0;
  background:#ece6da;
}
.rgc-profile .rgc-avatar-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
.rgc-sample-pill{
  background:#fff3cf!important;
  color:#8a6500!important;
}

/* v0.7.1 clickable/testing profiles */
.rgc-profile{padding:0;overflow:hidden}
.rgc-profile-main-link{display:block;color:inherit;text-decoration:none}
.rgc-profile-main-link:focus-visible{outline:3px solid #d7a536;outline-offset:-3px}
.rgc-profile .rgc-avatar{width:100%;height:210px;border-radius:0}
.rgc-profile .rgc-body{padding:17px}
.rgc-view-profile{display:inline-block;margin-top:10px;color:#004b35;font-weight:800;font-size:13px}
.rgc-card-actions{display:flex;gap:9px;flex-wrap:wrap;padding:0 17px 17px}
.rgc-card-actions form{margin:0}
.rgc-btn-secondary{background:#d7a536;color:#17382e;text-decoration:none}
.rgc-btn-light{background:#f3efe5;color:#004b35;text-decoration:none}
.rgc-profile-detail{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.4fr);gap:24px;align-items:start}
.rgc-profile-detail-photo{overflow:hidden;padding:0}
.rgc-profile-detail-photo img{width:100%;display:block;aspect-ratio:4/5;object-fit:cover}
.rgc-detail-initial{aspect-ratio:4/5;display:grid;place-items:center;font-size:90px;background:#e5eee9;color:#004b35}
.rgc-profile-detail-info h1{margin:8px 0 4px}
.rgc-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
.rgc-detail-grid>div{padding:14px;border:1px solid #e6e1d3;border-radius:10px;background:#fcfaf5;display:grid;gap:4px}
.rgc-detail-grid small{color:#6e7d77}
.rgc-about-box{padding:18px;background:#f7f3e9;border-radius:12px;margin-bottom:20px}
.rgc-about-box h3{margin-top:0}
.rgc-detail-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.rgc-detail-actions form{margin:0}
@media(max-width:760px){
  .rgc-profile-detail{grid-template-columns:1fr}
  .rgc-profile-detail-photo img,.rgc-detail-initial{max-height:460px;aspect-ratio:auto}
}
@media(max-width:520px){
  .rgc-detail-grid{grid-template-columns:1fr}
}

/* v0.8.0 messenger */
.rgc-messenger{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:620px;background:#fff;border:1px solid #e6e1d3;border-radius:18px;overflow:hidden}
.rgc-messenger-sidebar{border-right:1px solid #e6e1d3;background:#fbfaf6}
.rgc-messenger-sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid #e6e1d3}
.rgc-messenger-sidebar-head h2{margin:0}
.rgc-unread-total,.rgc-unread-badge{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#004b35;color:#fff;font-size:12px;font-weight:800}
.rgc-conversations{display:grid}
.rgc-conversation{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 14px;border-bottom:1px solid #eee8db;text-decoration:none;color:inherit}
.rgc-conversation.is-active{background:#eaf4ee}
.rgc-conversation-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#dfe9e4;color:#004b35;display:grid;place-items:center;font-weight:900}
.rgc-conversation-avatar.large{width:48px;height:48px}
.rgc-conversation-avatar img{width:100%;height:100%;object-fit:cover}
.rgc-conversation-meta{display:grid;min-width:0}
.rgc-conversation-meta strong,.rgc-conversation-meta small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rgc-conversation-meta small{color:#75817c}
.rgc-messenger-main{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;min-width:0}
.rgc-chat-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid #e6e1d3}
.rgc-chat-head-user{display:flex;gap:10px;align-items:center}
.rgc-chat-head-user>div{display:grid}
.rgc-chat-head small{color:#76837d}
.rgc-chat-stream{padding:18px;overflow:auto;max-height:520px;background:linear-gradient(#fffdf8,#faf7ef)}
.rgc-msg-row{display:flex;margin:8px 0}
.rgc-msg-row.mine{justify-content:flex-end}
.rgc-msg-row.theirs{justify-content:flex-start}
.rgc-msg-bubble{max-width:min(72%,560px);padding:11px 13px;border-radius:15px;background:#f0ece2;box-shadow:0 2px 8px #00000008}
.rgc-msg-row.mine .rgc-msg-bubble{background:#dff0e6}
.rgc-msg-bubble small{display:block;margin-top:6px;color:#76837d;font-size:11px}
.rgc-msg-image-link img{display:block;max-width:320px;width:100%;margin-top:8px;border-radius:10px}
.rgc-typing-status{min-height:24px;padding:0 18px;color:#738079;font-size:12px}
.rgc-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;padding:14px 18px;border-top:1px solid #e6e1d3;align-items:end}
.rgc-chat-compose textarea{resize:none;min-height:46px;max-height:120px}
.rgc-attach-btn{width:44px;height:44px;border:1px solid #d8d2c4;border-radius:8px;display:grid;place-items:center;cursor:pointer;background:#fff}
.rgc-chat-note{padding:0 18px 14px;color:#7c837f;font-size:12px}
.rgc-chat-placeholder{padding:50px;text-align:center;color:#6f7b76}
.rgc-pending-interests{display:grid;gap:10px}
.rgc-pending-interest{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e6e1d3;border-radius:10px}
.rgc-empty-chat{padding:18px;color:#7c837f}
@media(max-width:800px){
  .rgc-messenger{grid-template-columns:1fr}
  .rgc-messenger-sidebar{border-right:0;border-bottom:1px solid #e6e1d3}
  .rgc-conversations{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .rgc-conversations{grid-template-columns:1fr}
  .rgc-chat-compose{grid-template-columns:minmax(0,1fr) auto}
  .rgc-chat-compose .rgc-attach-btn{grid-column:1/2}
  .rgc-msg-bubble{max-width:88%}
}

.rgc-profile-quota{height:10px;background:#e7e1d4;border-radius:999px;overflow:hidden}
.rgc-profile-quota span{display:block;height:100%;background:#004b35;border-radius:999px}

/* v0.9.6 live dashboard notifications */
.rgc-live-nav-link{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rgc-nav-badge{
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#d7a536;
  color:#123a2d;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 0 0 0 rgba(215,165,54,.45);
}
.rgc-nav-badge[hidden]{display:none!important}
.rgc-nav-badge.has-count{
  animation:rgcBadgePulse 2s ease-in-out infinite;
}
.rgc-live-stat{position:relative;overflow:hidden}
.rgc-live-stat .rgc-stat-pulse{
  position:absolute;
  width:12px;
  height:12px;
  border-radius:50%;
  top:16px;
  right:16px;
  background:#d7a536;
  opacity:0;
}
.rgc-live-stat.is-pulsing{
  animation:rgcCardPulse 1.25s ease;
}
.rgc-live-stat.is-pulsing .rgc-stat-pulse{
  animation:rgcDotPulse 1.25s ease;
}
@keyframes rgcBadgePulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(215,165,54,.35)}
  50%{transform:scale(1.08);box-shadow:0 0 0 7px rgba(215,165,54,0)}
}
@keyframes rgcCardPulse{
  0%,100%{transform:translateY(0)}
  35%{transform:translateY(-3px)}
  70%{transform:translateY(0)}
}
@keyframes rgcDotPulse{
  0%{opacity:0;transform:scale(.5)}
  35%{opacity:1;transform:scale(1.5)}
  100%{opacity:0;transform:scale(2.4)}
}
@media (prefers-reduced-motion: reduce){
  .rgc-nav-badge.has-count,
  .rgc-live-stat.is-pulsing,
  .rgc-live-stat.is-pulsing .rgc-stat-pulse{
    animation:none!important;
  }
}

/* v0.9.7 interests inbox */
.rgc-stat-link{display:block;text-decoration:none;color:inherit}
.rgc-stat-link small{display:block;margin-top:6px;color:#697b74;font-size:11px}
.rgc-stat-link:hover{border-color:#d7a536;box-shadow:0 8px 24px #173f3212}
.rgc-interest-tabs{display:flex;gap:8px;margin:20px 0}
.rgc-interest-tab{border:1px solid #ded8ca;background:#fff;padding:10px 14px;border-radius:999px;font-weight:800;cursor:pointer}
.rgc-interest-tab.is-active{background:#004b35;color:#fff;border-color:#004b35}
.rgc-interest-tab span{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;border-radius:999px;background:#d7a536;color:#17382e;font-size:11px}
.rgc-interest-panel{display:none}
.rgc-interest-panel.is-active{display:block}
.rgc-interest-list{display:grid;gap:12px}
.rgc-interest-item{display:grid;grid-template-columns:minmax(0,1.4fr) auto minmax(260px,auto);gap:16px;align-items:center;background:#fff;border:1px solid #e7e1d4;border-radius:14px;padding:14px}
.rgc-interest-person{display:flex;align-items:center;gap:12px}
.rgc-interest-person>div{display:grid}
.rgc-interest-person small{color:#718079}
.rgc-interest-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.rgc-interest-actions form{margin:0}
.rgc-interest-status{padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}
.rgc-interest-status.status-pending{background:#fff0c8;color:#7a5b00}
.rgc-interest-status.status-accepted{background:#e2f2e7;color:#0d5e3f}
.rgc-interest-status.status-declined{background:#f4e5e3;color:#8a3329}
@media(max-width:760px){
  .rgc-interest-item{grid-template-columns:1fr}
  .rgc-interest-actions{justify-content:flex-start}
}

/* v0.9.8 pending chat request state */
.rgc-chat-waiting{
  max-width:720px;
  margin:0 auto;
  padding:70px 34px;
}
.rgc-waiting-icon{
  width:64px;
  height:64px;
  margin:0 auto 16px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#e4f2e9;
  color:#00583e;
  font-size:28px;
  font-weight:900;
}
.rgc-chat-waiting h2{
  margin:0 0 10px;
  color:#004b35;
}
.rgc-chat-waiting>p{
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
  line-height:1.65;
}
.rgc-pending-chat-requests{
  display:grid;
  gap:10px;
  margin:26px auto 18px;
  max-width:560px;
  text-align:left;
}
.rgc-pending-chat-request{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  background:#fffdf8;
  border:1px solid #e5dece;
  border-radius:12px;
}
.rgc-pending-chat-request>div{
  display:grid;
}
.rgc-pending-chat-request small{
  color:#78837e;
}
.rgc-pending-label{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:#fff0c8;
  color:#755900;
  font-size:11px;
  font-weight:900;
}
.rgc-waiting-note{
  font-size:12px;
}
@media(max-width:560px){
  .rgc-chat-waiting{padding:40px 18px}
  .rgc-pending-chat-request{grid-template-columns:40px minmax(0,1fr)}
  .rgc-pending-label{grid-column:2}
}

/* v0.9.9 mandatory profile before connecting */
.rgc-profile-required{
  border-left:4px solid #d7a536;
}
.rgc-profile-required a{
  font-weight:900;
}
.rgc-profile-gate{
  max-width:700px;
  margin:35px auto;
  text-align:center;
  padding:42px;
}
.rgc-profile-gate h2{
  color:#004b35;
  margin-top:0;
}

/* v1.0.0 profile photo upload + privacy */
.rgc-profile-photo-editor{
  display:grid;
  gap:14px;
  padding:18px;
  margin:18px 0;
  border:1px solid #e4dece;
  border-radius:14px;
  background:#fcfaf5;
}
.rgc-current-photo{max-width:220px}
.rgc-photo-remove{display:flex;align-items:center;gap:8px}
.rgc-photo-shell{
  overflow:hidden;
  background:#e4eee9;
  color:#004b35;
}
.rgc-photo-shell img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.rgc-photo-private{
  display:grid;
  place-items:center;
  align-content:center;
  gap:6px;
  text-align:center;
  padding:14px;
}
.rgc-photo-private strong{
  font-size:34px;
  line-height:1;
}
.rgc-photo-private span{
  font-size:12px;
  font-weight:800;
  line-height:1.25;
}
.rgc-current-photo-preview{
  width:180px;
  height:180px;
  border-radius:16px;
}
.rgc-profile-card-photo{
  width:100%;
  height:210px;
  border-radius:0;
}
.rgc-profile-card-photo.rgc-photo-private strong{
  font-size:42px;
}
.rgc-profile-card-photo.rgc-photo-private span{
  font-size:14px;
}
.rgc-detail-photo-box{
  width:100%;
  min-height:420px;
}
.rgc-detail-photo-box.rgc-photo-private strong{
  font-size:72px;
}
.rgc-detail-photo-box.rgc-photo-private span{
  font-size:18px;
}
@media(max-width:760px){
  .rgc-detail-photo-box{min-height:320px}
}

/* v1.0.1 required photos + branded private placeholder */
.rgc-photo-private{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(135deg,rgba(234,243,238,.96),rgba(218,232,225,.96));
}
.rgc-photo-private::before{
  content:"Rishta Gher";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  z-index:-1;
  font-family:Georgia,serif;
  font-size:clamp(28px,5vw,72px);
  font-weight:800;
  color:rgba(0,75,53,.07);
  transform:rotate(-18deg) scale(1.08);
  white-space:nowrap;
}
.rgc-photo-private::after{
  content:"RG";
  position:absolute;
  right:14px;
  bottom:10px;
  z-index:-1;
  font-family:Georgia,serif;
  font-size:18px;
  font-weight:900;
  color:rgba(215,165,54,.16);
}
.rgc-photo-private strong,
.rgc-photo-private span,
.rgc-photo-private small{position:relative;z-index:1}
.rgc-private-name{display:block}
.rgc-private-note{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:2px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.74);
  color:#65756e;
  font-size:10px;
  font-weight:800;
}
.rgc-detail-photo-box .rgc-private-note{font-size:12px;padding:5px 10px}

/* profile-photo warning shown only after invalid save attempt */
.rgc-photo-required-warning[hidden]{display:none!important}
.rgc-photo-required-warning{
  display:grid;
  gap:4px;
  margin:0 0 14px;
  padding:13px 15px;
  border:1px solid #e9aaa5;
  border-left:4px solid #cf4b43;
  border-radius:10px;
  background:#fff1f0;
  color:#7d2c28;
}
.rgc-photo-required-warning strong{
  color:#a5322c;
  font-size:14px;
}
.rgc-photo-required-warning span{
  font-size:13px;
}
.rgc-input-error{
  border-color:#cf4b43!important;
  background:#fff8f7!important;
  box-shadow:0 0 0 2px rgba(207,75,67,.08)!important;
}

/* v1.0.3 three-image profile gallery */
.rgc-existing-gallery,
.rgc-selected-photo-preview{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,150px));
  gap:12px;
  margin:4px 0 8px;
}
.rgc-existing-gallery-item,
.rgc-selected-photo-item{
  position:relative;
  display:grid;
  gap:6px;
  padding:8px;
  background:#fff;
  border:1px solid #ddd5c5;
  border-radius:12px;
}
.rgc-existing-gallery-item img,
.rgc-selected-photo-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:8px;
  background:#eef2ef;
}
.rgc-existing-gallery-item>span,
.rgc-selected-photo-item>span{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:800;
}
.rgc-existing-gallery-item small{
  position:absolute;
  top:14px;
  left:14px;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(0,75,53,.9);
  color:#fff;
  font-size:10px;
  font-weight:900;
}
.rgc-profile-gallery-view{
  display:grid;
  grid-template-columns:2fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:8px;
  min-height:420px;
  background:#e8eee9;
}
.rgc-profile-gallery-view img{
  width:100%;
  height:100%;
  object-fit:cover;
  min-height:0;
}
.rgc-profile-gallery-view img:first-child{
  grid-row:1 / 3;
}
.rgc-profile-gallery-view img:only-child{
  grid-column:1 / 3;
  grid-row:1 / 3;
}
.rgc-profile-gallery-view img:nth-child(2):last-child{
  grid-row:1 / 3;
}
@media(max-width:640px){
  .rgc-existing-gallery,
  .rgc-selected-photo-preview{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .rgc-profile-gallery-view{
    min-height:320px;
  }
}

/* v1.0.4 three separate image upload slots */
.rgc-photo-upload-slots{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:8px 0 14px;
}
.rgc-photo-slot{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid #ddd5c5;
  border-radius:12px;
  background:#fff;
}
.rgc-photo-slot>span{
  display:flex;
  justify-content:space-between;
  gap:8px;
  color:#004b35;
  font-weight:900;
}
.rgc-photo-slot em{
  color:#7a827e;
  font-size:10px;
  font-style:normal;
  font-weight:700;
}
.rgc-photo-slot input[type=file]{
  width:100%;
  min-width:0;
}
.rgc-slot-preview{
  display:none;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:9px;
  background:#eef2ef;
}
.rgc-slot-preview.has-image{display:block}
.rgc-slot-preview img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
@media(max-width:700px){
  .rgc-photo-upload-slots{grid-template-columns:1fr}
}

/* v1.0.5 profile image slider */
.rgc-profile-slider{
  width:100%;
  min-width:0;
}
.rgc-profile-slider-stage{
  position:relative;
  width:100%;
  min-height:430px;
  overflow:hidden;
  background:#eef2ef;
  border-radius:14px;
}
.rgc-profile-slide{
  display:none!important;
  width:100%!important;
  height:430px!important;
  object-fit:cover!important;
  object-position:center!important;
}
.rgc-profile-slide.is-active{
  display:block!important;
}
.rgc-slider-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:3;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:#004b35;
  font-size:32px;
  line-height:1;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 4px 18px rgba(0,0,0,.14);
}
.rgc-slider-prev{left:12px}
.rgc-slider-next{right:12px}
.rgc-slider-controls{
  display:flex;
  gap:9px;
  margin-top:10px;
}
.rgc-slider-thumb{
  width:72px;
  height:58px;
  padding:2px;
  border:2px solid transparent;
  border-radius:9px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
}
.rgc-slider-thumb.is-active{
  border-color:#d7a536;
}
.rgc-slider-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:5px;
}
@media(max-width:760px){
  .rgc-profile-slider-stage{min-height:340px}
  .rgc-profile-slide{height:340px!important}
  .rgc-slider-arrow{width:40px;height:40px;font-size:28px}
}

.rgc-profile-card-buttons{display:flex;gap:8px;flex-wrap:wrap}

/* v1.0.8 multi-profile search */
.rgc-search-results .rgc-profile{
  overflow:hidden;
}
.rgc-search-results .rgc-profile-card-photo{
  height:210px;
}

/* v1.0.9 homepage multi-profile cards */
.rgc-featured-profiles .rgc-profile{
  overflow:hidden;
}
.rgc-featured-profiles .rgc-profile-card-photo{
  height:220px;
}

/* v1.1.0 complete profile */
.rgc-form-section{margin:20px 0;padding:18px;border:1px solid #e3dccd;border-radius:14px;background:#fcfaf5}
.rgc-form-section-head h3{margin:0 0 5px;color:#004b35}
.rgc-required-fields-alert{background:#fff1f0;border-left:4px solid #cf4b43;color:#7d2c28}
.rgc-form input:required,.rgc-form select:required,.rgc-form textarea:required{border-left:3px solid #d7a536}


/* v1.5.4 contact-sharing safety warnings */
.rgc-chat-plan-warning{
  margin:0 18px 14px;
  padding:9px 12px;
  border-left:4px solid #d7a536;
  border-radius:6px;
  background:#fff8dd;
  color:#8a6500;
  font-size:13px;
  font-weight:700;
}
.rgc-chat-plan-warning:empty{display:none}
.rgc-chat-warning{
  margin:0 18px 10px;
  padding:10px 12px;
  border-left:4px solid #d63638;
  border-radius:6px;
  background:#fff0f0;
  color:#a12622;
  font-size:13px;
  font-weight:800;
}
.rgc-chat-warning[hidden]{display:none!important}


/* v1.8.0 Premium Profile Cards — source-level */
.rgc-grid .rgc-card.rgc-profile{
  position:relative!important;overflow:hidden!important;background:#fff!important;
  border:1px solid #eadfd9!important;border-radius:22px!important;
  box-shadow:0 14px 34px rgba(68,22,37,.09)!important;
  transition:transform .2s ease,box-shadow .2s ease!important;
}
.rgc-grid .rgc-card.rgc-profile:hover{transform:translateY(-3px)!important;box-shadow:0 20px 46px rgba(68,22,37,.14)!important}
.rgc-profile-main-link{display:block!important;color:inherit!important;text-decoration:none!important}
.rgc-profile-card-photo,.rgc-profile .rgc-photo-shell{
  position:relative!important;min-height:250px!important;border-radius:0!important;border:0!important;
  background:radial-gradient(circle at 7% 5%,#e8f3ef 0 13%,transparent 13.5%),linear-gradient(145deg,#fbfdfc,#f4faf7)!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  padding:34px 20px 66px!important;overflow:hidden!important;
}
.rgc-profile .rgc-private-watermark-v176{display:none!important}
.rgc-profile .rgc-private-lock-v176{transform:scale(.86)!important;margin-bottom:10px!important}
.rgc-profile .rgc-private-title-v176{
  color:#741735!important;font-family:Georgia,"Times New Roman",serif!important;font-size:21px!important;
  line-height:1.2!important;font-weight:700!important;margin:0 0 8px!important;text-decoration:none!important;
}
.rgc-profile .rgc-private-sub-v176{color:#69716f!important;font-size:12px!important;line-height:1.5!important;text-align:center!important;max-width:245px!important}
.rgc-profile .rgc-private-wave-light-v178{position:absolute!important;left:-8%!important;right:-8%!important;bottom:16px!important;height:54px!important;background:#e7b95e!important;opacity:.95!important;border-radius:50% 50% 0 0/70% 70% 0 0!important;transform:rotate(-3deg)!important}
.rgc-profile .rgc-private-wave-dark-v178{position:absolute!important;left:-8%!important;right:-8%!important;bottom:-18px!important;height:70px!important;background:#7b1737!important;border-radius:50% 50% 0 0/55% 55% 0 0!important;transform:rotate(2deg)!important}
.rgc-profile .rgc-private-brand-v178{position:absolute!important;right:18px!important;bottom:10px!important;z-index:3!important;color:#fff!important;text-align:center!important}
.rgc-profile .rgc-private-brand-v178 b{display:block!important;font-family:Georgia,serif!important;font-size:20px!important;line-height:1!important}
.rgc-profile .rgc-private-brand-v178 small{display:block!important;font-size:7px!important;letter-spacing:.08em!important;color:#f5d99d!important}
.rgc-profile .rgc-body{position:relative!important;padding:20px 20px 22px!important;background:#fff!important}
.rgc-profile .rgc-body:before{
  content:"RG";display:grid;place-items:center;width:38px;height:38px;margin-bottom:12px;
  border-radius:11px;background:#7b1737;color:#d7aa50;border:2px solid #d7aa50;
  font-size:11px;font-weight:900;box-shadow:0 5px 12px rgba(70,20,37,.12)
}
.rgc-profile .rgc-pill{position:absolute!important;right:18px!important;top:20px!important;background:#fff6df!important;color:#765116!important;border:1px solid #ead19c!important;border-radius:999px!important;padding:5px 9px!important;font-size:10px!important;font-weight:800!important}
.rgc-profile .rgc-body h3{margin:0 0 8px!important;color:#20161a!important;font-size:19px!important;line-height:1.25!important;font-weight:800!important}
.rgc-profile .rgc-body p{margin:4px 0!important;color:#65706d!important;font-size:13px!important;line-height:1.55!important}
.rgc-profile .rgc-view-profile{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:14px!important;
  min-height:38px!important;padding:9px 14px!important;border:1px solid #7b1737!important;border-radius:10px!important;
  background:#fff!important;color:#7b1737!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;
}
.rgc-profile-main-link:hover .rgc-view-profile{background:#7b1737!important;color:#fff!important}
.rgc-profile .rgc-card-actions{padding:0 20px 20px!important;display:flex!important;gap:8px!important;background:#fff!important}
.rgc-profile .rgc-card-actions .rgc-btn{border-radius:10px!important}
@media(max-width:700px){.rgc-profile-card-photo,.rgc-profile .rgc-photo-shell{min-height:220px!important}}


/* v2.2.7 — Individual profile highlight cards */
.rgc-profile-highlights-v227{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}
.rgc-profile-highlight-v227{
  min-height:112px;
  padding:16px 10px;
  border:1px solid #eadfda;
  border-radius:12px;
  background:#fffdfb;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-shadow:0 1px 3px rgba(53,24,32,.04);
}
.rgc-profile-highlight-icon-v227{
  display:block;
  margin-bottom:7px;
  color:#a01e45;
  font-size:25px;
  line-height:1;
}
.rgc-profile-highlight-v227 small{
  display:block;
  margin-bottom:5px;
  color:#351820;
  font-size:14px;
  font-weight:700;
}
.rgc-profile-highlight-v227 strong{
  color:#351820;
  font-size:15px;
  line-height:1.35;
  font-weight:500;
  overflow-wrap:anywhere;
}
@media (max-width:700px){
  .rgc-profile-highlights-v227{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .rgc-profile-highlight-v227{
    min-height:104px;
    padding:14px 8px;
  }
}


/* v2.2.8 — Professional individual-profile presentation
   Visual-only refinement: theme-matched cards, softer borders and spacing. */
.rgc-profile-highlights-v227{
  gap:14px;
  margin:22px 0 24px;
}
.rgc-profile-highlight-v227{
  min-height:96px;
  padding:16px 18px;
  border:1px solid rgba(127,22,54,.10);
  border-radius:16px;
  background:linear-gradient(145deg,#fffdfb 0%,#fbf7f2 100%);
  box-shadow:0 7px 20px rgba(63,11,27,.055);
  display:grid;
  grid-template-columns:48px 1fr;
  grid-template-rows:auto auto;
  column-gap:13px;
  align-items:center;
  justify-items:start;
  text-align:left;
}
.rgc-profile-highlight-icon-v227{
  grid-row:1 / span 2;
  width:48px;
  height:48px;
  margin:0;
  border-radius:50%;
  background:#f8eceb;
  color:#7f1636;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:23px;
  line-height:1;
}
.rgc-profile-highlight-v227 small{
  align-self:end;
  margin:0 0 3px;
  color:#76666a;
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
}
.rgc-profile-highlight-v227 strong{
  align-self:start;
  color:#351820;
  font-size:16px;
  line-height:1.3;
  font-weight:700;
}

/* Soften legacy profile section outlines/headings without changing data/forms. */
.rgc-detail-card,
.rgc-profile-card,
.rgc-card{
  border-color:rgba(127,22,54,.10) !important;
}
.rgc-detail-card{
  border-radius:16px !important;
  box-shadow:0 7px 22px rgba(63,11,27,.045);
}
.rgc-detail-card h3,
.rgc-detail-card h4,
.rgc-profile-card h3,
.rgc-profile-card h4{
  color:#7f1636;
  border:0 !important;
  border-bottom:1px solid rgba(127,22,54,.10) !important;
  padding-bottom:10px;
  margin-bottom:14px;
}

/* Target the visible profile detail grids/sections: remove harsh inner lines. */
.rgc-detail-grid > div,
.rgc-detail-grid .rgc-field,
.rgc-detail-grid .rgc-detail-item{
  border-color:rgba(127,22,54,.08) !important;
  border-radius:12px;
  background:#fffdfb;
}

/* Family/requirements sections inherit a calmer matrimonial-card treatment. */
.rgc-family-section,
.rgc-requirements-section,
.rgc-profile-section{
  border:1px solid rgba(127,22,54,.10) !important;
  border-radius:16px !important;
  background:#fffdfb;
  box-shadow:0 7px 22px rgba(63,11,27,.04);
}
.rgc-family-section h3,
.rgc-requirements-section h3,
.rgc-profile-section h3{
  color:#7f1636;
  border:0 !important;
  border-bottom:1px solid rgba(127,22,54,.10) !important;
}

/* Generic profile-page fieldsets: replace dark rectangular legends/lines. */
.rgc-profile-wrap fieldset,
.rgc-profile-detail fieldset,
.rgc-managed-profile-view fieldset{
  border:1px solid rgba(127,22,54,.10) !important;
  border-radius:16px !important;
  background:#fffdfb;
  box-shadow:0 7px 22px rgba(63,11,27,.04);
}
.rgc-profile-wrap legend,
.rgc-profile-detail legend,
.rgc-managed-profile-view legend{
  color:#7f1636 !important;
  border:0 !important;
  background:transparent !important;
  padding:0 8px !important;
  font-weight:700;
}

@media (max-width:700px){
  .rgc-profile-highlights-v227{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .rgc-profile-highlight-v227{
    min-height:94px;
    padding:13px 12px;
    grid-template-columns:40px 1fr;
    column-gap:10px;
  }
  .rgc-profile-highlight-icon-v227{
    width:40px;
    height:40px;
    font-size:20px;
  }
  .rgc-profile-highlight-v227 strong{font-size:14px}
  .rgc-profile-highlight-v227 small{font-size:12px}
}


/* v2.2.9 — Exact profile UI cleanup.
   Targets the real form/highlight classes in Core; presentation only. */

/* Remove the old boxed heading/section lines from profile create/edit forms. */
.rgc-form .rgc-form-section{
  margin:24px 0 !important;
  padding:20px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(145deg,#fffdfb 0%,#fbf7f2 100%) !important;
  box-shadow:0 8px 24px rgba(63,11,27,.055) !important;
}
.rgc-form .rgc-form-section-head{
  margin:0 0 16px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
.rgc-form .rgc-form-section-head h3{
  margin:0 0 5px !important;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:#7f1636 !important;
  font-size:19px !important;
  line-height:1.3 !important;
  font-weight:800 !important;
  box-shadow:none !important;
}
.rgc-form .rgc-form-section-head h3:before{
  content:"♡";
  display:inline-flex;
  width:34px;
  height:34px;
  margin-right:9px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  background:#f8eceb;
  color:#a01e45;
  font-size:20px;
}
.rgc-form .rgc-form-section-head p{margin:5px 0 0 43px !important}

/* Required fields keep validation semantics but lose the harsh gold side-line. */
.rgc-form input:required,
.rgc-form select:required,
.rgc-form textarea:required{
  border-left:1px solid #eadfda !important;
}
.rgc-form input,
.rgc-form select,
.rgc-form textarea{
  border-color:#eadfda !important;
  border-radius:11px !important;
  background:#fffdfb !important;
  box-shadow:none !important;
}
.rgc-form input:focus,
.rgc-form select:focus,
.rgc-form textarea:focus{
  border-color:#c99a45 !important;
  box-shadow:0 0 0 3px rgba(201,154,69,.12) !important;
  outline:0 !important;
}

/* Profile photo editor + upload slots: no rectangular maroon/gold frames. */
.rgc-form .rgc-profile-photo-editor{
  margin:24px 0 !important;
  padding:20px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(145deg,#fffdfb 0%,#fbf7f2 100%) !important;
  box-shadow:0 8px 24px rgba(63,11,27,.055) !important;
}
.rgc-form .rgc-photo-upload-slots{
  gap:14px !important;
  margin-top:14px !important;
}
.rgc-form .rgc-photo-slot{
  min-height:160px;
  padding:15px !important;
  border:0 !important;
  border-radius:15px !important;
  background:#fffdfb !important;
  box-shadow:0 5px 18px rgba(63,11,27,.055) !important;
}
.rgc-form .rgc-photo-slot>span{
  color:#7f1636 !important;
  border:0 !important;
  background:transparent !important;
}
.rgc-form .rgc-slot-preview{
  border:0 !important;
  outline:0 !important;
  border-radius:12px !important;
  background:#f8eceb !important;
}
.rgc-form .rgc-existing-gallery-item{
  border:0 !important;
  outline:0 !important;
  border-radius:14px !important;
  background:#fffdfb !important;
  box-shadow:0 5px 18px rgba(63,11,27,.055) !important;
  overflow:hidden;
}
.rgc-form .rgc-existing-gallery-item small{
  border:0 !important;
  background:#7f1636 !important;
  color:#fff !important;
  border-radius:999px !important;
}

/* Stronger, unmistakably Rishta Gher themed profile highlights. */
.rgc-profile-highlights-v227{
  gap:14px !important;
  margin:22px 0 26px !important;
}
.rgc-profile-highlight-v227{
  min-height:104px !important;
  padding:17px 18px !important;
  border:0 !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#fffdfb 0%,#f8eceb 100%) !important;
  box-shadow:0 8px 24px rgba(101,18,44,.09) !important;
  grid-template-columns:52px 1fr !important;
  column-gap:14px !important;
}
.rgc-profile-highlight-icon-v227{
  width:52px !important;
  height:52px !important;
  border:1px solid rgba(201,154,69,.30) !important;
  background:linear-gradient(145deg,#f8eceb,#efd8ae) !important;
  color:#7f1636 !important;
  box-shadow:0 5px 12px rgba(101,18,44,.08) !important;
  font-size:24px !important;
}
.rgc-profile-highlight-v227 small{
  color:#7f1636 !important;
  font-size:12px !important;
  font-weight:800 !important;
  text-transform:uppercase;
  letter-spacing:.045em !important;
}
.rgc-profile-highlight-v227 strong{
  color:#351820 !important;
  font-size:16px !important;
  font-weight:800 !important;
}

/* Family section specifically uses the same soft card, never the old outline. */
.rgc-form .rgc-family-section{
  border:0 !important;
  background:linear-gradient(145deg,#fffdfb 0%,#fbf7f2 100%) !important;
  box-shadow:0 8px 24px rgba(63,11,27,.055) !important;
}

@media(max-width:700px){
  .rgc-form .rgc-form-section,
  .rgc-form .rgc-profile-photo-editor{padding:15px !important}
  .rgc-profile-highlight-v227{
    min-height:96px !important;
    padding:13px !important;
    grid-template-columns:42px 1fr !important;
    column-gap:10px !important;
  }
  .rgc-profile-highlight-icon-v227{
    width:42px !important;
    height:42px !important;
    font-size:20px !important;
  }
  .rgc-profile-highlight-v227 strong{font-size:14px !important}
}
