/* 0. Critical Viewport & Scroll Container Fix for position: sticky */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.spm-pd-wrapper {
    background: #f8fafc;
    padding: 30px 0 70px;
    min-height: 85vh;
    overflow: visible !important;
}

.spm-pd-wrapper .container,
.spm-pd-wrapper .row {
    overflow: visible !important;
}

.spm-pd-wrapper .col-lg-4 {
    position: relative !important;
}

/* 1. Hero Card Overview */
.spm-pd-hero-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(225, 29, 72, 0.1);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.spm-pd-photo-col {
    position: relative;
    background: #f1f5f9;
}

.spm-pd-main-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.8;
    overflow: hidden;
    background: #e2e8f0;
}

.spm-pd-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.spm-pd-main-img:hover {
    transform: scale(1.03);
}

/* 📸 Clickable Profile Photo (Active Users) */
.spm-pd-photo-click-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.spm-pd-photo-click-wrap:hover .spm-pd-main-img {
    transform: scale(1.05);
}

.spm-pd-photo-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 6;
    transition: all 0.25s ease;
    pointer-events: none;
}

.spm-pd-photo-click-wrap:hover .spm-pd-photo-zoom-hint {
    background: #e11d48;
    border-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
}

/* 🔒 Unbypassable Photo Locked Overlay (Inactive Users) */
.spm-pd-photo-locked-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    cursor: pointer;
}

.spm-pd-img-locked {
    filter: blur(14px) grayscale(0.5) brightness(0.85);
    transform: scale(1.08);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.spm-pd-photo-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.88) 100%);
    z-index: 6;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.spm-pd-photo-locked-wrap:hover .spm-pd-photo-locked-overlay {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.94) 100%);
}

.spm-pd-lock-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(225, 29, 72, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.2);
    margin-bottom: 12px;
    animation: spmPulseLock 2s infinite ease-in-out;
}

@keyframes spmPulseLock {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.spm-pd-lock-heading {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.spm-pd-lock-status-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    display: inline-block;
}

.spm-pd-lock-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 220px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.spm-pd-lock-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.spm-pd-photo-locked-wrap:hover .spm-pd-lock-btn {
    background: #ffffff;
    color: #be123c;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Badges floating on photo */
.spm-pd-badge-top-left {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}

.spm-pd-badge-top-right {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
}

.spm-pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spm-pd-badge-verified {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.spm-pd-badge-id {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
}

.spm-pd-badge-mangal {
    background: rgba(225, 29, 72, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.spm-pd-badge-marriage {
    background: rgba(245, 158, 11, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.spm-pd-photo-counter {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: auto;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    z-index: 5;
}

.spm-pd-photo-counter:hover {
    background: #e11d48;
    color: #ffffff;
}

/* Watermark */
.spm-pd-watermark {
    position: absolute;
    bottom: 12px;
    left: 14px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 4;
}

/* Profile Info Column */
.spm-pd-info-col {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.spm-pd-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.spm-pd-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spm-pd-verified-icon {
    color: #10b981;
    font-size: 22px;
}

.spm-pd-tagline {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 20px;
}

.spm-pd-quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spm-pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.spm-pd-chip i {
    color: #e11d48;
}

/* 🌟 LUXURY & SPACIOUS CANDIDATE ABOUT ME / SELF INTRO BOX */
.spm-pd-about-box {
    background: linear-gradient(135deg, #fffaf5 0%, #fff1f2 100%);
    border: 1px solid #fecdd3;
    border-left: 5px solid #e11d48;
    border-radius: 16px;
    padding: 18px 22px;
    margin-top: 18px;
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.06);
    position: relative;
    overflow: hidden;
}

.spm-pd-about-box::before {
    content: "\f10d";
    font-family: FontAwesome;
    position: absolute;
    top: -8px;
    right: 15px;
    font-size: 80px;
    color: rgba(225, 29, 72, 0.05);
    pointer-events: none;
}

.spm-pd-about-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #881337;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spm-pd-about-title i {
    font-size: 18px;
    color: #e11d48;
}

.spm-pd-about-text {
    font-size: 14.5px;
    color: #334155;
    line-height: 1.8;
    margin-top: 8px;
    font-weight: 450;
}

.spm-pd-about-text p {
    margin: 0;
}

.spm-pd-about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(225, 29, 72, 0.2);
}

.spm-pd-about-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #9f1239;
    background: #ffffff;
    border: 1px solid #fecdd3;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Action Buttons Bar */
.spm-pd-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.spm-pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    border: none;
}

.spm-pd-btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.3);
}

.spm-pd-btn-primary:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.4);
    color: #ffffff;
}

.spm-pd-btn-chat {
    background: #0f172a;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.spm-pd-btn-chat:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
}

.spm-pd-btn-outline {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    color: #334155 !important;
}

.spm-pd-btn-outline:hover {
    border-color: #e11d48;
    color: #e11d48 !important;
    background: #fff1f2;
    transform: translateY(-2px);
}

.spm-pd-btn-success {
    background: #16a34a;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.3);
}

.spm-pd-btn-success:hover {
    background: #15803d;
    transform: translateY(-2px);
}

.spm-pd-btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.3);
}

.spm-pd-btn-whatsapp:hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    transform: translateY(-2px);
}

/* 2. Structured Detail Sections */
.spm-pd-section-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(225, 29, 72, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    padding: 28px 26px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.spm-pd-section-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e11d48 0%, #f59e0b 100%);
}

.spm-pd-section-title {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.spm-pd-section-title i {
    color: #e11d48;
    font-size: 20px;
}

/* Grid of data points */
.spm-pd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.spm-pd-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.spm-pd-cell:hover {
    border-color: #fca5a5;
    background: #fff8f8;
    transform: translateY(-2px);
}

.spm-pd-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spm-pd-label i {
    color: #94a3b8;
    font-size: 11px;
}

.spm-pd-val {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}

/* 3. Contact & Plan Validation Box */
.spm-pd-contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #fff8f8 100%);
    border: 1.5px solid #fecdd3;
    border-radius: 20px;
    padding: 24px 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.spm-pd-locked-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 18px;
    padding: 22px 18px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 14px;
}

.spm-pd-locked-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

.spm-pd-locked-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.2);
    border: 1.5px solid #e11d48;
    color: #fb7185;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.spm-pd-locked-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
}

.spm-pd-locked-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* 4. Photo Gallery Grid */
.spm-pd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.spm-pd-gallery-thumb {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
}

.spm-pd-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.spm-pd-gallery-thumb:hover {
    border-color: #e11d48;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.15);
}

.spm-pd-gallery-thumb:hover img {
    transform: scale(1.08);
}

/* 5. 🎯 Right-Side Sticky Container */
.spm-pd-sidebar-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 85px !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.spm-pd-sticky-summary {
    background: #ffffff;
    border: 1.5px solid rgba(225, 29, 72, 0.15);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
}

.spm-pd-sticky-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.spm-pd-sticky-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e11d48;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
    flex-shrink: 0;
}

.spm-pd-sticky-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.spm-pd-sticky-meta {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.spm-pd-sticky-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 6. 🎠 Slick Carousel Core Styles (Embedded for 100% reliability) */
.slick-slider {
    position: relative;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list {
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slick-list:focus {
    outline: none;
}

.slick-list.dragging {
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slick-track {
    position: relative;
    top: 0;
    left: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.slick-track:before,
.slick-track:after {
    display: table;
    content: '';
}

.slick-track:after {
    clear: both;
}

.slick-loading .slick-track {
    visibility: hidden;
}

.slick-slide {
    display: none;
    float: left;
    height: 100%;
    min-height: 1px;
}

[dir='rtl'] .slick-slide {
    float: right;
}

.slick-slide img {
    display: block;
}

.slick-slide.slick-loading img {
    display: none;
}

.slick-slide.dragging img {
    pointer-events: none;
}

.slick-initialized .slick-slide {
    display: block;
}

.slick-loading .slick-slide {
    visibility: hidden;
}

.slick-vertical .slick-slide {
    display: block;
    height: auto;
    border: 1px solid transparent;
}

.slick-arrow.slick-hidden {
    display: none;
}

/* Recommended Profiles Carousel Enhancements */
.spm-rec-section-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.spm-rec-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.spm-rec-header-text {
    flex: 1;
    min-width: 0;
}

.spm-home-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.spm-similar-heading {
    font-size: 21px;
    line-height: 1.3;
    word-break: break-word;
}

.spm-rec-nav-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.spm-recommended-slider {
    position: relative;
    margin: 0 -7px;
    width: calc(100% + 14px);
}

/* Prevent vertical card stacking before Slick initializes */
.spm-recommended-slider:not(.slick-initialized) {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
}

.spm-recommended-slider:not(.slick-initialized) .spm-rec-slide-item {
    flex: 0 0 25%;
    max-width: 25%;
}

.spm-recommended-slider .slick-list {
    overflow: hidden;
    margin: 0;
}

.spm-recommended-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.spm-recommended-slider .slick-slide {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-width: 0;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
}

.spm-recommended-slider .slick-slide > div {
    height: 100%;
    width: 100%;
    display: flex;
}

.spm-rec-slide-item {
    padding: 4px 7px 12px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* Slick Dots for Mobile */
.spm-recommended-slider .slick-dots {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 8px 0 2px;
    margin: 0;
}

.spm-recommended-slider .slick-dots li {
    margin: 0;
    padding: 0;
}

.spm-recommended-slider .slick-dots li button {
    font-size: 0;
    line-height: 0;
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    transition: all 0.25s ease;
    cursor: pointer;
}

.spm-recommended-slider .slick-dots li.slick-active button {
    width: 22px;
    background: #e11d48;
}

.spm-slider-btn-prev,
.spm-slider-btn-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.spm-slider-btn-prev:hover,
.spm-slider-btn-next:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

/* ==========================================================================
   💎 MODERN RECOMMENDED / SIMILAR MATCHES CAROUSEL CARDS
   ========================================================================== */
.spm-rec-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.spm-rec-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.13), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: rgba(225, 29, 72, 0.32);
}

.spm-rec-media-wrap {
    aspect-ratio: 4 / 4.6;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.spm-rec-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.spm-rec-card:hover .spm-rec-photo {
    transform: scale(1.06);
}

.spm-rec-media-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.22) 40%, transparent 65%);
    pointer-events: none;
}

/* ID Chip */
.spm-rec-id-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Verified Badge */
.spm-rec-verified-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

/* Photo Bottom Floating Caption (Age & Height) */
.spm-rec-media-caption {
    position: absolute;
    bottom: 9px;
    left: 9px;
    right: 9px;
    z-index: 3;
    pointer-events: none;
}

.spm-rec-caption-tag {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    max-width: 100%;
}

/* Card Body */
.spm-rec-body {
    padding: 13px 14px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
    min-width: 0;
}

.spm-rec-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spm-rec-name a {
    color: #0f172a;
    transition: color 0.2s ease;
}

.spm-rec-name a:hover {
    color: #e11d48 !important;
}

/* Gotra Chip */
.spm-rec-gotra-chip {
    font-size: 11px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-block;
    align-self: flex-start;
    font-weight: 600;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specification Items */
.spm-rec-specs-list {
    display: flex;
    flex-direction: column;
    gap: 4.5px;
    flex-grow: 1;
    min-width: 0;
}

.spm-rec-spec-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.spm-rec-spec-item i {
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: 11.5px;
}

/* Actions Bar */
.spm-rec-actions-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.spm-rec-view-btn {
    flex-grow: 1;
    min-width: 0;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 7px 10px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.25);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.spm-rec-view-btn:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    transform: scale(1.02);
    box-shadow: 0 5px 14px rgba(225, 29, 72, 0.38);
    color: #ffffff !important;
}

.spm-rec-icon-btn {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.spm-rec-icon-btn:hover {
    transform: scale(1.1);
}

.spm-rec-interest-btn:hover {
    color: #e11d48;
    background: #ffe4e6;
    border-color: #fda4af;
}

.spm-rec-icon-btn.open-chat-btn:hover {
    color: #0284c7;
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* 7. Mobile Floating Action Bar */
.spm-pd-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(225, 29, 72, 0.15);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 14px;
    z-index: 1050;
}

.spm-pd-mobile-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.spm-pd-mob-btn {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
    .spm-pd-info-col {
        padding: 24px 20px;
    }

    .spm-pd-name {
        font-size: 24px;
    }

    .spm-pd-sidebar-sticky {
        position: static !important;
        top: 0;
    }

    .spm-recommended-slider:not(.slick-initialized) .spm-rec-slide-item {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media screen and (max-width: 767px) {
    .spm-pd-wrapper {
        padding: 16px 0 80px;
    }

    .spm-pd-hero-card {
        border-radius: 18px;
    }

    .spm-pd-info-col {
        padding: 20px 16px;
    }

    .spm-pd-name {
        font-size: 21px;
    }

    .spm-pd-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .spm-pd-section-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .spm-pd-section-title {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .spm-pd-action-bar {
        display: none;
    }

    .spm-pd-sticky-summary {
        display: none !important;
    }

    .spm-pd-mobile-bar {
        display: block;
        bottom: 60px !important;
        z-index: 1045 !important;
        padding: 8px 10px;
    }

    .spm-pd-mob-btn.spm-pd-mob-icon-only {
        flex: 0 0 42px !important;
        max-width: 42px;
        padding: 0 !important;
    }

    body {
        padding-bottom: 132px !important;
    }

    /* 📱 Mobile Recommended Slider Fixes */
    .spm-rec-header-row {
        align-items: center;
        margin-bottom: 14px;
        gap: 8px;
    }

    .spm-home-header-badge {
        font-size: 10px;
        padding: 3px 9px;
        margin-bottom: 4px;
    }

    .spm-similar-heading {
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .spm-slider-btn-prev,
    .spm-slider-btn-next {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .spm-recommended-slider {
        margin: 0 -5px;
        width: calc(100% + 10px);
    }

    .spm-recommended-slider:not(.slick-initialized) .spm-rec-slide-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .spm-rec-slide-item {
        padding: 3px 5px 10px;
    }

    .spm-rec-card {
        border-radius: 14px;
    }

    .spm-rec-media-wrap {
        aspect-ratio: 4 / 4.1;
    }

    .spm-rec-body {
        padding: 10px 11px 11px;
    }

    .spm-rec-name {
        font-size: 13.5px;
    }

    .spm-rec-gotra-chip {
        font-size: 10px;
        padding: 1.5px 6px;
    }

    .spm-rec-spec-item {
        font-size: 11px;
        gap: 5px;
    }

    .spm-rec-actions-bar {
        padding-top: 8px;
        gap: 5px;
    }

    .spm-rec-view-btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .spm-rec-icon-btn {
        width: 30px;
        height: 30px;
        font-size: 11.5px;
    }
}

@media screen and (max-width: 539px) {
    .spm-recommended-slider:not(.slick-initialized) .spm-rec-slide-item {
        flex: 0 0 85%;
        max-width: 85%;
    }

    .spm-rec-media-wrap {
        aspect-ratio: 4 / 3.8;
        max-height: 235px;
    }

    .spm-rec-body {
        padding: 11px 12px 12px;
    }

    .spm-rec-name {
        font-size: 14.5px;
    }

    .spm-rec-spec-item {
        font-size: 11.5px;
    }

    .spm-rec-view-btn {
        font-size: 12px;
        padding: 7px 10px;
    }

    .spm-rec-icon-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
