/* ==========================================================================
   REDDY MATRIMONY PREMIUM THEME — Inner Pages
   (auth, member listing, public profile, dashboard, member panel)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. AUTH PAGES (login split-screen + registration steps)
   -------------------------------------------------------------------------- */
.rm-auth-section { padding: 2.8rem 0 3.4rem; }
.rm-auth-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    background: #fff;
    border-radius: var(--rm-radius-xl);
    overflow: hidden;
    box-shadow: var(--rm-shadow-lg);
    border: 1px solid var(--rm-border);
    max-width: 980px;
    margin: 0 auto;
    min-height: 540px;
}
.rm-auth-side {
    position: relative;
    background:
        radial-gradient(520px 260px at 20% 12%, rgba(183, 110, 121, 0.25), transparent 60%),
        linear-gradient(155deg, var(--rm-primary-deeper) 0%, var(--rm-primary-dark) 55%, var(--rm-primary) 100%);
    color: #fff;
    padding: 2.8rem 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.rm-auth-side::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 60px;
    background-image: var(--rm-pattern-arch);
    background-repeat: repeat-x;
    opacity: 0.4;
    pointer-events: none;
}
.rm-auth-side::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--rm-pattern-diamond);
    opacity: 0.3;
    pointer-events: none;
}
.rm-auth-side > * { position: relative; z-index: 1; }
.rm-auth-side .rm-auth-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 2.2rem; }
.rm-auth-side .rm-auth-brand img { max-height: 46px; }
.rm-auth-side h2 {
    font-family: var(--rm-font-serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}
.rm-auth-side h2 span { color: var(--rm-gold-light); }
.rm-auth-side p { color: rgba(255, 250, 251, 0.75); font-size: 0.94rem; line-height: 1.7; }
.rm-auth-points { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.rm-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 0.55rem 0;
    font-size: 0.88rem;
    color: rgba(255, 250, 251, 0.88);
}
.rm-auth-points li i {
    width: 26px; height: 26px;
    flex: 0 0 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(183, 110, 121, 0.18);
    border: 1px solid rgba(221, 173, 181, 0.4);
    color: var(--rm-gold-light);
    font-size: 0.85rem;
    margin-top: 1px;
}
.rm-auth-telugu {
    font-family: var(--rm-font-telugu);
    color: rgba(221, 173, 181, 0.75);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.rm-auth-telugu::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--rm-gold), transparent); }

.rm-auth-main { padding: 2.6rem 2.5rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.rm-auth-main .rm-auth-title {
    font-family: var(--rm-font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rm-primary-dark);
    margin: 0 0 0.4rem;
}
.rm-auth-main .rm-auth-sub { color: var(--rm-text-soft); font-size: 0.92rem; margin-bottom: 1.9rem; }
.rm-auth-form .form-control { min-height: 48px; }
.rm-auth-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rm-auth-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--rm-text-mid); }
.rm-auth-remember input { width: 17px; height: 17px; accent-color: var(--rm-primary); }
.rm-auth-forgot { font-size: 0.85rem; font-weight: 600; color: var(--rm-primary); }
.rm-auth-sep { display: flex; align-items: center; gap: 12px; margin: 1.4rem 0; color: var(--rm-text-soft); font-size: 0.8rem; }
.rm-auth-sep::before, .rm-auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--rm-border); }
.rm-auth-alt { display: flex; justify-content: center; gap: 12px; }
.rm-auth-alt a {
    width: 46px; height: 46px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--rm-border);
    color: var(--rm-text-mid);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}
.rm-auth-alt a:hover { border-color: var(--rm-gold); color: var(--rm-primary); background: var(--rm-gold-pale); }
.rm-auth-foot { text-align: center; margin-top: 1.6rem; font-size: 0.9rem; color: var(--rm-text-soft); }
.rm-auth-foot a { font-weight: 700; }

/* demo credentials table */
.rm-demo-table { width: 100%; font-size: 0.82rem; }
.rm-demo-table th, .rm-demo-table td { padding: 0.55rem 0.7rem; border: 1px solid var(--rm-border) !important; color: var(--rm-text-mid); }
.rm-demo-table th { background: var(--rm-cream); color: var(--rm-brown); }

/* Registration multi-step */
.rm-reg-wrap { max-width: 760px; margin: 0 auto; }
.rm-reg-card {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-xl);
    box-shadow: var(--rm-shadow-lg);
    overflow: hidden;
}
.rm-reg-head {
    padding: 1.9rem 2.2rem 1.6rem;
    background: var(--rm-cream);
    border-bottom: 1px solid var(--rm-border);
    text-align: center;
}
.rm-reg-head h1 { font-family: var(--rm-font-serif); font-size: 1.55rem; font-weight: 700; color: var(--rm-primary-dark); margin: 0 0 0.35rem; }
.rm-reg-head p { color: var(--rm-text-soft); font-size: 0.9rem; margin: 0; }

/* progress indicator */
.rm-reg-progress { padding: 1.35rem 2.2rem 0; }
.rm-reg-steps { display: flex; list-style: none; margin: 0; padding: 0 0 1.35rem; }
.rm-reg-steps li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    color: var(--rm-text-soft);
}
.rm-reg-steps li::before {
    content: "";
    position: absolute;
    top: 17px; left: -50%;
    width: 100%;
    height: 2.5px;
    background: var(--rm-border);
    z-index: 0;
}
.rm-reg-steps li:first-child::before { display: none; }
.rm-reg-steps li .rm-reg-dot {
    position: relative;
    z-index: 1;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--rm-border);
    color: var(--rm-text-soft);
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}
.rm-reg-steps li .rm-reg-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-align: center; line-height: 1.3; }
.rm-reg-steps li.rm-done::before,
.rm-reg-steps li.rm-current::before { background: var(--rm-gold); }
.rm-reg-steps li.rm-done .rm-reg-dot { background: var(--rm-gold); border-color: var(--rm-gold-dark); color: #7A2D48; }
.rm-reg-steps li.rm-current .rm-reg-dot { background: var(--rm-primary); border-color: var(--rm-primary-dark); color: var(--rm-gold-light); box-shadow: 0 0 0 6px rgba(214, 51, 108, 0.14); }
.rm-reg-steps li.rm-current { color: var(--rm-primary-dark); }
.rm-reg-steps li.rm-current .rm-reg-label { color: var(--rm-primary-dark); font-weight: 700; }

.rm-reg-body { padding: 1.9rem 2.2rem 2.1rem; }
.rm-reg-step { display: none; animation: rmFadeUp 0.35s ease; }
.rm-reg-step.rm-active { display: block; }
@keyframes rmFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rm-reg-step-intro { font-size: 0.88rem; color: var(--rm-text-soft); margin: -0.3rem 0 1.3rem; padding-left: 0.9rem; border-left: 3px solid var(--rm-gold); line-height: 1.65; }
.rm-reg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 1.6rem; }
.rm-reg-nav .btn { min-width: 132px; }
.rm-reg-foot { padding: 1.15rem 2.2rem 1.5rem; border-top: 1px solid var(--rm-border); background: var(--rm-cream); text-align: center; font-size: 0.88rem; color: var(--rm-text-soft); }

/* Responsive auth pages */
@media (max-width: 991.98px) {
    .rm-auth-card { grid-template-columns: 1fr; max-width: 520px; }
    .rm-auth-side { display: none; }
    .rm-auth-main { padding: 2rem 1.5rem; }
}

/* --------------------------------------------------------------------------
   2. MEMBER LISTING (search results)
   -------------------------------------------------------------------------- */
.rm-listing-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}
.rm-listing-title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--rm-font-serif); font-size: 1.45rem; font-weight: 700; color: var(--rm-primary-dark); }
.rm-listing-title::before { content: ""; width: 6px; height: 30px; border-radius: 4px; background: linear-gradient(180deg, var(--rm-gold), var(--rm-primary)); }

.rm-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    background: var(--rm-primary);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 5px 14px rgba(166, 30, 77, 0.25);
}
.rm-filter-btn i { font-size: 1.05rem; }

/* member row card */
.rm-member-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-sm);
    margin-bottom: 1.35rem;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}
.rm-member-card:hover { transform: translateY(-3px); box-shadow: var(--rm-shadow-lg); border-color: rgba(183, 110, 121, 0.5); }

.rm-member-photo {
    position: relative;
    flex: 0 0 236px;
    background: var(--rm-ivory);
    overflow: hidden;
}
.rm-member-photo img { width: 100%; height: 100%; object-fit: cover; }
.rm-member-photo .rm-pc-lock {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: rgba(69, 16, 43, 0.55); color: #fff;
}
.rm-member-photo .rm-pc-lock i { font-size: 1.8rem; color: var(--rm-gold-light); }
.rm-member-photo .rm-pc-lock span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rm-member-badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
    z-index: 2;
}

.rm-member-body { flex: 1 1 auto; padding: 1.25rem 1.5rem 1.15rem; min-width: 0; }
.rm-member-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 0.7rem; }
.rm-member-name { font-size: 1.18rem; font-weight: 700; color: var(--rm-primary-dark); margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--rm-font-serif); }
.rm-member-name i { color: var(--rm-success); font-size: 1.05rem; }
.rm-member-code { font-size: 0.76rem; color: var(--rm-text-soft); letter-spacing: 0.05em; }
.rm-member-code b { color: var(--rm-gold-dark); }

.rm-member-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem 1.6rem;
    list-style: none;
    margin: 0 0 1rem; padding: 0;
}
.rm-member-meta li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.84rem;
    color: var(--rm-text-mid);
    padding: 0.28rem 0;
    border-bottom: 1px dashed rgba(242, 220, 226, 0.65);
    min-width: 0;
}
.rm-member-meta li i { color: var(--rm-gold-dark); width: 16px; text-align: center; flex: 0 0 16px; }
.rm-member-meta li b { font-weight: 600; color: var(--rm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* action bar (JS-managed ids preserved) */
.rm-member-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--rm-border);
    align-items: center;
}
.rm-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid var(--rm-border);
    background: #fff;
    color: var(--rm-text-mid);
    transition: all 0.2s ease;
    text-decoration: none;
}
.rm-action-btn i { font-size: 1rem; color: var(--rm-primary); }
.rm-action-btn:hover { border-color: var(--rm-primary); color: var(--rm-primary); background: var(--rm-primary-soft); }
.rm-action-btn.rm-action-primary {
    background: linear-gradient(135deg, var(--rm-primary), var(--rm-primary-dark));
    border-color: var(--rm-primary-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(166, 30, 77, 0.22);
}
.rm-action-btn.rm-action-primary i { color: var(--rm-gold-light); }
.rm-action-btn.rm-action-primary:hover { color: #fff; background: linear-gradient(135deg, var(--rm-primary-light), var(--rm-primary)); }
.rm-action-btn.rm-action-gold {
    background: linear-gradient(135deg, #EEB7BE, var(--rm-gold));
    border-color: var(--rm-gold-dark);
    color: #7A2D48;
}
.rm-action-btn.rm-action-gold i { color: #8C3450; }
.rm-action-btn.rm-action-gold:hover { background: linear-gradient(135deg, #EFC0C7, #DB96A0); color: #5E2038; }
.rm-action-btn.rm-action-muted { border-style: dashed; }

/* advanced search sidebar (existing markup, restyled) */
.aiz-filter-sidebar .card { border: 1px solid var(--rm-border); border-radius: var(--rm-radius-lg); }
.aiz-filter-sidebar .card-header { background: var(--rm-primary); color: #fff; border-radius: var(--rm-radius-lg) var(--rm-radius-lg) 0 0 !important; padding: 0.9rem 1.15rem; }
.aiz-filter-sidebar .card-header h5 { color: #fff; display: flex; align-items: center; gap: 9px; letter-spacing: 0.06em; }
.aiz-filter-sidebar .card-header h5::before { content: "\f2eb"; font-family: 'Line Awesome Free'; font-weight: 900; color: var(--rm-gold-light); }
.aiz-filter-sidebar .card-body { background: #fff; }

/* --------------------------------------------------------------------------
   3. PUBLIC PROFILE PAGE
   -------------------------------------------------------------------------- */
.rm-profile-hero {
    position: relative;
    background:
        radial-gradient(700px 320px at 88% 0%, rgba(183, 110, 121, 0.2), transparent 60%),
        linear-gradient(145deg, var(--rm-primary-deeper), var(--rm-primary-dark) 55%, var(--rm-primary));
    color: #fff;
    padding: 2.6rem 0 0;
    overflow: hidden;
}
.rm-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--rm-pattern-arch);
    background-repeat: repeat-x;
    background-position: top;
    opacity: 0.35;
    pointer-events: none;
}
.rm-profile-hero .container { position: relative; z-index: 1; }
.rm-profile-hero-name {
    font-family: var(--rm-font-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0 0 0.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.rm-profile-hero-name .rm-match-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(183, 110, 121, 0.18);
    border: 1px solid rgba(221, 173, 181, 0.45);
    color: var(--rm-gold-light);
    padding: 0.35em 0.85em;
    border-radius: 999px;
    font-family: var(--rm-font-body);
}
.rm-profile-hero-name .rm-match-tag i { color: var(--rm-gold-light); }
.rm-profile-hero .rm-ph-code { font-size: 0.8rem; color: rgba(255, 250, 251, 0.7); margin-bottom: 0.9rem; }
.rm-profile-hero .rm-ph-code b { color: var(--rm-gold-light); }
.rm-ph-quickinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin-bottom: 1.2rem;
    padding: 0;
    list-style: none;
}
.rm-ph-quickinfo li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(221, 173, 181, 0.28);
    padding: 0.4em 0.95em;
    border-radius: 999px;
    font-size: 0.82rem;
    color: rgba(255, 250, 251, 0.92);
}
.rm-ph-quickinfo li i { color: var(--rm-gold-light); font-size: 0.95rem; }
.rm-ph-interest {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(221, 173, 181, 0.3);
    border-radius: var(--rm-radius-lg);
    padding: 1.4rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(3px);
}
.rm-ph-interest .rm-ph-like { font-size: 1rem; font-weight: 600; margin-bottom: 0.9rem; color: #fff; }
.rm-ph-interest a.rm-ph-interest-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.rm-ph-interest a.rm-ph-interest-btn .rm-heart-ring {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--rm-gold);
    background: rgba(183, 110, 121, 0.14);
    color: var(--rm-gold-light);
    font-size: 1.5rem;
    transition: all 0.22s ease;
}
.rm-ph-interest a.rm-ph-interest-btn:hover .rm-heart-ring { background: var(--rm-gold); color: #5E2038; transform: scale(1.06); }

/* profile tabs */
.rm-profile-tabs {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.6rem;
    border-bottom: 2.5px solid rgba(221, 173, 181, 0.35);
}
.rm-profile-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 250, 251, 0.72);
    border-radius: 10px 10px 0 0;
    position: relative;
    transition: all 0.2s ease;
}
.rm-profile-tabs a i { color: var(--rm-gold-light); font-size: 1.05rem; }
.rm-profile-tabs a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.rm-profile-tabs a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.rm-profile-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2.5px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, var(--rm-gold-dark), var(--rm-gold-light));
}

/* profile sidebar (photo card + info) */
.aiz-profile-sidebar .rm-ps-photo {
    border-radius: var(--rm-radius-lg);
    border: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow-lg);
    overflow: hidden;
    position: relative;
    background: #fff;
}
.rm-ps-info {
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    background: #fff;
    box-shadow: var(--rm-shadow-sm);
    padding: 1.4rem;
}
.rm-ps-info .rm-ps-name { font-family: var(--rm-font-serif); font-size: 1.3rem; font-weight: 700; color: var(--rm-primary-dark); margin: 0.15rem 0 0.6rem; }
.rm-ps-info .btn { border-radius: 10px; }
.rm-ps-actions .btn i.d-block { font-size: 1.5rem; margin-bottom: 2px; }

/* sidebar similar profiles */
.rm-similar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 8px;
    background: #fff;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}
.rm-similar-item:hover { border-color: var(--rm-gold); box-shadow: var(--rm-shadow-md); transform: translateX(3px); }
.rm-similar-item img { width: 74px; height: 74px; border-radius: 9px; object-fit: cover; flex: 0 0 74px; }
.rm-similar-item .rm-si-name { font-size: 0.92rem; font-weight: 700; color: var(--rm-primary-dark); margin-bottom: 2px; }
.rm-similar-item .rm-si-meta { font-size: 0.74rem; color: var(--rm-text-soft); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* timeline accordion (detailed profile) */
.aiz-timeline-accordion .accordion-item { border-bottom: 1px dashed var(--rm-border); }
.aiz-timeline-accordion .accordion-head .size-50px {
    width: 52px; height: 52px;
    background: radial-gradient(circle at 32% 28%, rgba(221, 173, 181, 0.28), rgba(183, 110, 121, 0.1));
    border: 1.5px solid var(--rm-gold) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 6px rgba(183, 110, 121, 0.1);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.22s ease;
}
.aiz-timeline-accordion .accordion-head:hover .size-50px { box-shadow: 0 0 0 8px rgba(183, 110, 121, 0.16); transform: scale(1.03); }
.aiz-timeline-accordion .accordion-head span.fs-18 { color: var(--rm-primary-dark); }
.aiz-timeline-accordion .accordion-body .border { border: 1px solid var(--rm-border) !important; border-radius: var(--rm-radius); background: var(--rm-cream); }
.aiz-timeline-accordion .accordion-body table td,
.aiz-timeline-accordion .accordion-body table th { color: var(--rm-text-mid); font-size: 0.9rem; }
.aiz-timeline-accordion .accordion-body table td.fw-600,
.aiz-timeline-accordion .accordion-body table th.fw-600 { color: var(--rm-brown); }

/* gallery grid */
.rm-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.rm-gallery-item {
    position: relative;
    border-radius: var(--rm-radius);
    overflow: hidden;
    border: 1px solid var(--rm-border);
    aspect-ratio: 4 / 4.4;
    background: var(--rm-ivory);
    cursor: pointer;
}
.rm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.rm-gallery-item:hover img { transform: scale(1.06); }
.rm-gallery-item::after {
    content: "\f06e";
    font-family: 'Line Awesome Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(69, 16, 43, 0.5);
    color: var(--rm-gold-light);
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.rm-gallery-item:hover::after { opacity: 1; }

/* --------------------------------------------------------------------------
   4. MEMBER PANEL / DASHBOARD
   -------------------------------------------------------------------------- */
.rm-panel-section { padding: 2.6rem 0 3.4rem; background: var(--rm-bg); }
.rm-panel-layout { gap: 1.6rem; align-items: flex-start; }
.rm-panel-content { flex: 1 1 auto; min-width: 0; }

/* user sidenav (sidebar) */
.aiz-user-sidenav-wrap { flex: 0 0 268px; }
.aiz-user-sidenav {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-sm);
    padding-bottom: 1.1rem;
    overflow: hidden;
}
.aiz-user-sidenav .rm-side-user { padding: 1.5rem 1rem 1.1rem; background: linear-gradient(160deg, var(--rm-primary-deeper), var(--rm-primary-dark) 70%); position: relative; }
.aiz-user-sidenav .rm-side-user::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 46px;
    background-image: var(--rm-pattern-arch-dark);
    background-repeat: repeat-x;
    opacity: 0.6;
}
.aiz-user-sidenav .rm-side-user > * { position: relative; }
.aiz-user-sidenav .avatar { width: 86px; height: 86px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--rm-gold), var(--rm-gold-dark)); box-shadow: 0 8px 22px rgba(69, 16, 43, 0.4); }
.aiz-user-sidenav .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.aiz-user-sidenav .rm-side-name { color: #fff; font-weight: 700; font-size: 1.05rem; margin: 0.8rem 0 0.15rem; }
.aiz-user-sidenav .rm-side-package {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.55rem;
    padding: 0.32em 0.9em;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7A2D48;
    background: linear-gradient(135deg, #EEB7BE, var(--rm-gold));
    border: 1px solid var(--rm-gold-dark);
    border-radius: 999px;
}
.aiz-user-sidenav .rm-side-package.rm-side-free { background: rgba(255, 255, 255, 0.1); color: rgba(255, 250, 251, 0.85); border-color: rgba(221, 173, 181, 0.4); }

.aiz-side-nav-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 0.72rem 1.15rem !important;
    margin: 1px 0.6rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--rm-text-mid) !important;
    transition: all 0.18s ease;
    min-height: 44px;
}
.aiz-side-nav-link .aiz-side-nav-icon {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--rm-primary-soft);
    color: var(--rm-primary);
    font-size: 1rem;
    flex: 0 0 32px;
    transition: all 0.18s ease;
}
.aiz-side-nav-link:hover { background: var(--rm-ivory); color: var(--rm-primary-dark) !important; }
.aiz-side-nav-link:hover .aiz-side-nav-icon { background: var(--rm-gold-pale); color: var(--rm-gold-dark); }
.aiz-side-nav-link.active { background: linear-gradient(90deg, var(--rm-primary), var(--rm-primary-dark)) !important; color: #fff !important; box-shadow: 0 5px 14px rgba(166, 30, 77, 0.25); }
.aiz-side-nav-link.active .aiz-side-nav-icon { background: rgba(221, 173, 181, 0.22); color: var(--rm-gold-light); }
.aiz-side-nav-list.level-2 { border-left: 2px dashed var(--rm-border); margin-left: 1.7rem; padding-left: 0.4rem; }
.aiz-side-nav-link .badge-inline { background: var(--rm-gold); color: #7A2D48; }

/* dashboard stat cards */
.rm-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(140deg, var(--rm-primary-deeper), var(--rm-primary-dark) 60%, var(--rm-primary));
    border-radius: var(--rm-radius-lg);
    padding: 1.6rem 1.8rem;
    color: #fff;
    margin-bottom: 1.4rem;
    position: relative;
    overflow: hidden;
}
.rm-dash-head::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--rm-pattern-arch-dark);
    background-repeat: repeat-x;
    background-position: top;
    opacity: 0.5;
    pointer-events: none;
}
.rm-dash-head::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rm-gold-dark), var(--rm-gold-light), var(--rm-gold), var(--rm-gold-light), var(--rm-gold-dark));
}
.rm-dash-head > * { position: relative; z-index: 1; }
.rm-dash-head .rm-dash-hello .rm-dash-name { font-family: var(--rm-font-serif); font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; }
.rm-dash-head .rm-dash-hello .rm-dash-sub { color: rgba(255, 250, 251, 0.72); font-size: 0.88rem; margin: 0; }
.rm-dash-head .rm-dash-hello .rm-dash-telugu { font-family: var(--rm-font-telugu); color: rgba(221, 173, 181, 0.8); font-size: 0.8rem; margin-top: 0.35rem; }
.rm-dash-head .btn { position: relative; z-index: 1; }

.rm-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-bottom: 1.4rem; }
.rm-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--rm-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rm-stat-card:hover { transform: translateY(-3px); box-shadow: var(--rm-shadow-md); }
.rm-stat-card .rm-stat-icon {
    width: 52px; height: 52px;
    flex: 0 0 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rm-primary), var(--rm-primary-dark));
    color: var(--rm-gold-light);
    font-size: 1.45rem;
    box-shadow: 0 6px 16px rgba(166, 30, 77, 0.24);
}
.rm-stat-card.rm-stat-gold .rm-stat-icon { background: linear-gradient(135deg, #ECAEB7, var(--rm-gold)); color: #7A2D48; box-shadow: 0 6px 16px rgba(154, 84, 96, 0.32); }
.rm-stat-card .rm-stat-value { font-size: 1.45rem; font-weight: 700; color: var(--rm-primary-dark); line-height: 1.1; font-family: var(--rm-font-serif); }
.rm-stat-card .rm-stat-label { font-size: 0.78rem; color: var(--rm-text-soft); line-height: 1.4; margin-top: 3px; }

/* profile completion */
.rm-completion-card {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-sm);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.4rem;
}
.rm-completion-card .rm-completion-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 0.9rem; flex-wrap: wrap; }
.rm-completion-card .rm-completion-head h2 { font-size: 1.08rem; font-weight: 700; color: var(--rm-primary-dark); margin: 0; display: flex; align-items: center; gap: 9px; }
.rm-completion-card .rm-completion-head h2 i { color: var(--rm-gold-dark); font-size: 1.2rem; }
.rm-completion-card .rm-completion-pct { font-size: 1.3rem; font-weight: 700; color: var(--rm-gold-dark); font-family: var(--rm-font-serif); }
.rm-progress-track {
    height: 12px;
    background: var(--rm-ivory);
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.1rem;
}
.rm-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rm-primary), var(--rm-gold));
    transition: width 0.6s ease;
}
.rm-completion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-completion-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.4em 0.9em;
    border-radius: 999px;
    border: 1px dashed var(--rm-border);
    color: var(--rm-text-soft);
}
.rm-completion-chip i { font-size: 0.85rem; color: var(--rm-text-soft); }
.rm-completion-chip.rm-done { border-style: solid; border-color: rgba(15, 155, 110, 0.4); background: rgba(15, 155, 110, 0.08); color: var(--rm-success); }
.rm-completion-chip.rm-done i { color: var(--rm-success); }

/* dashboard cards */
.rm-dash-card {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-sm);
    overflow: hidden;
    height: 100%;
}
.rm-dash-card .rm-dash-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1.05rem 1.4rem;
    border-bottom: 1px solid var(--rm-border);
    background: var(--rm-cream);
}
.rm-dash-card .rm-dash-card-head h2 { font-size: 1rem; font-weight: 700; color: var(--rm-primary-dark); margin: 0; }
.rm-dash-card .rm-dash-card-head h2 i { color: var(--rm-gold-dark); margin-right: 6px; font-size: 1.15rem; }
.rm-dash-card .rm-dash-card-body { padding: 1.4rem; }

.rm-package-icon {
    width: 88px; height: 88px;
    margin: 0 auto 0.9rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(221, 173, 181, 0.3), rgba(183, 110, 121, 0.1));
    border: 1.5px solid var(--rm-gold);
    box-shadow: 0 0 0 7px rgba(183, 110, 121, 0.12);
    overflow: hidden;
}
.rm-package-icon img { max-height: 56px; max-width: 56px; object-fit: contain; }

.rm-verify-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
    padding: 1.8rem 1.4rem;
    background: var(--rm-cream);
    border: 1px dashed rgba(154, 84, 96, 0.45);
    border-radius: var(--rm-radius-lg);
    height: 100%;
}
.rm-verify-card img { width: 84px; height: auto; }
.rm-verify-card p { font-size: 0.9rem; color: var(--rm-text-mid); margin: 0; line-height: 1.6; }

/* wallet / misc tables */
.rm-panel-content .table th { background: var(--rm-cream); color: var(--rm-brown); font-size: 0.85rem; letter-spacing: 0.03em; }
.rm-panel-content .table td { color: var(--rm-text-mid); font-size: 0.88rem; vertical-align: middle; }

/* --------------------------------------------------------------------------
   5. MEMBER PANEL RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .rm-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .rm-auth-card { grid-template-columns: 1fr; min-height: 0; }
    .rm-auth-side { padding: 2rem 1.8rem; }
    .rm-auth-points { display: none; }
    .rm-member-photo { flex: 0 0 168px; }
    .rm-member-meta { grid-template-columns: repeat(2, 1fr); }
    .aiz-user-sidenav-wrap { flex: 1 1 100%; }
}
@media (max-width: 767.98px) {
    .rm-member-card { flex-direction: column; }
    .rm-member-photo { flex: 0 0 auto; height: 300px; }
    .rm-member-meta { grid-template-columns: 1fr; gap: 0; }
    .rm-member-actions { gap: 7px; }
    .rm-action-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .rm-reg-head, .rm-reg-progress, .rm-reg-body { padding-left: 1.2rem; padding-right: 1.2rem; }
    .rm-reg-steps li .rm-reg-label { font-size: 0.62rem; }
    .rm-reg-nav { flex-direction: column-reverse; }
    .rm-reg-nav .btn { width: 100%; }
    .rm-auth-main { padding: 1.9rem 1.5rem 1.8rem; }
    .rm-stat-grid { grid-template-columns: 1fr; }
    .rm-dash-head { padding: 1.3rem 1.25rem; }
    .rm-profile-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .rm-profile-tabs a { white-space: nowrap; }
}
@media (max-width: 575.98px) {
    .rm-member-photo { height: 262px; }
    .rm-member-body { padding: 1.05rem 1.1rem 1rem; }
    .rm-member-name { font-size: 1.05rem; }
}

/* --------------------------------------------------------------------------
   6. RTL PAGE ESSENTIALS
   -------------------------------------------------------------------------- */
[dir="rtl"] .rm-listing-title::before { margin-left: 10px; margin-right: 0; }
[dir="rtl"] .rm-similar-item:hover { transform: translateX(-3px); }
[dir="rtl"] .rm-member-meta li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .rm-profile-tabs a.active::after { left: 0; right: 0; }

/* --------------------------------------------------------------------------
   7. PUBLIC PROFILE — supplementary component styles
   -------------------------------------------------------------------------- */
/* similar profile rows (sidebar, original row markup kept) */
.rm-similar-row {
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 8px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.rm-similar-row:hover {
    border-color: var(--rm-gold);
    box-shadow: var(--rm-shadow-md);
    transform: translateX(3px);
}
.rm-similar-row img {
    width: 74px !important;
    height: 74px !important;
    border-radius: 9px;
    object-fit: cover;
}
.rm-similar-row .col { min-width: 0; }
.rm-similar-row h5 { font-size: 0.92rem; font-weight: 700; color: var(--rm-primary-dark); margin-bottom: 2px; }

/* tab section headings (Partner Preference / Gallery) */
.rm-tab-heading {
    font-family: var(--rm-font-serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--rm-primary-dark) !important;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--rm-gold) !important;
    padding-bottom: 1.1rem !important;
    margin-bottom: 2rem !important;
}
.rm-tab-heading::before {
    content: "";
    width: 8px;
    height: 30px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--rm-gold), var(--rm-primary));
}

/* gallery item overlay (zoom link) */
.rm-gallery-item .overlay,
.rm-gallery-item .absolute-full {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-gallery-item .overlay {
    background: rgba(69, 16, 43, 0.5);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 2;
}
.rm-gallery-item:hover .overlay { opacity: 1; }
.rm-gallery-item .overlay a { color: var(--rm-gold-light); }
.rm-gallery-item img.card-img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rm-radius); }
.rm-gallery-item { margin-bottom: 0; }

/* profile tables inside tabs */
.tab-content .table th {
    background: var(--rm-cream);
    color: var(--rm-brown);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    border-color: var(--rm-border) !important;
}
.tab-content .table td { color: var(--rm-text-mid); font-size: 0.9rem; border-color: var(--rm-border) !important; }
.tab-content .table { border: 1px solid var(--rm-border); border-radius: var(--rm-radius); overflow: hidden; }

/* RTL */
[dir="rtl"] .rm-similar-row:hover { transform: translateX(-3px); }
[dir="rtl"] .rm-tab-heading { flex-direction: row-reverse; }

/* --------------------------------------------------------------------------
   8. LOGIN MODAL & SHARED MODAL POLISH
   -------------------------------------------------------------------------- */
#LoginModal .modal-header {
    background: linear-gradient(120deg, var(--rm-primary-dark), var(--rm-primary));
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    padding: 1.15rem 1.4rem;
}
#LoginModal .modal-title { color: #fff; letter-spacing: 0.02em; }
#LoginModal .close { color: rgba(255,255,255,.85); text-shadow: none; }
#LoginModal .modal-body { background: var(--rm-cream); }
#LoginModal form { background: #fff; border: 1px solid var(--rm-border); border-radius: 12px; padding: 1.4rem; }
#LoginModal .btn-block { padding: 0.7rem 1rem; }

.confirm_modal .modal-header,
.package_update_alert_modal .modal-header { background: var(--rm-cream); }

/* notification dropdown items */
.list-group-item { border-color: var(--rm-border); }
.chat-user-item:hover { background: var(--rm-primary-soft) !important; }

/* daterangepicker / date inputs on cream backgrounds */
input[type="number"] { -moz-appearance: textfield; }
