/* ==========================================================================
   PARTNER DISCOVERY & SPOTLIGHT CARDS (STREAMLINED PORTRAIT PATTERN)
   - Full-bleed vertical portrait photo with deep dark bottom scrim
   - Top-Left: Location badge (smaller, frosted glass)
   - Top-Right: Rating & Age badge (smaller, frosted glass)
   - Bottom Content:
     - Name + Circular Blue Verified Badge
     - Clean 2-line Bio
     - Action Buttons: High-contrast pure white pill 'Get In Touch' + Dark squircle Bookmark
   - Zero pricing clutter
   ========================================================================== */

.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-sizing: border-box;
    isolation: isolate;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(226, 24, 91, 0.18);
    border-color: rgba(226, 24, 91, 0.4);
}

/* --- Full-Bleed Background Photo --- */
.partner-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #111827;
}

.partner-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-card-img {
    transform: scale(1.04);
}

/* --- Smooth Gradient Scrim / Scrim Overlay --- */
.partner-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0) 22%,
            rgba(0, 0, 0, 0) 45%,
            rgba(6, 9, 15, 0.5) 65%,
            rgba(6, 9, 15, 0.9) 82%,
            rgba(6, 9, 15, 0.99) 100%);
    pointer-events: none;
}

/* --- Top Floating Meta Bar: Location Left, Rating & Age Right --- */
.partner-card-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

/* Top-Left Location Badge */
.card-top-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: rgba(11, 15, 25, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.card-top-location i,
.card-top-location svg {
    width: 12px;
    height: 12px;
    color: #fda4af;
    stroke-width: 2.4px;
}

/* Top-Right Rating & Age Badge */
.card-top-meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: var(--radius-full);
    background: rgba(11, 15, 25, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.card-top-meta .meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ffffff;
}

.card-top-meta .top-star-icon {
    width: 12px;
    height: 12px;
    color: #eab308;
    fill: #eab308;
}

.card-top-meta .meta-dot {
    opacity: 0.45;
    font-size: 0.65rem;
}

.card-top-meta .meta-age {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* --- Overlay Content (Bottom Alignment) --- */
.partner-card-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    padding: 24px 20px 22px 20px;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
}

/* Name and Verified Badge */
.partner-card-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.partner-card-name {
    font-size: 1.48rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.verified-check-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1d9bf0;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(29, 155, 240, 0.45);
}

.verified-check-badge i,
.verified-check-badge svg {
    width: 13px;
    height: 13px;
    stroke-width: 3.2px;
}

/* Bio Text (Clean 2-line clamp) */
.partner-card-bio {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.45;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Bottom Action Buttons: White 'Get In Touch' Pill + Dark Squircle Bookmark */
.partner-card-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-card-touch {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    background: #ffffff;
    color: #0b0f19;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
}

.btn-card-touch:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
    color: #000000;
}

.btn-card-touch i,
.btn-card-touch svg {
    width: 18px;
    height: 18px;
    color: #0b0f19;
    stroke-width: 2.2px;
}

.btn-card-bookmark {
    width: 52px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-card-bookmark:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-card-bookmark i,
.btn-card-bookmark svg {
    width: 19px;
    height: 19px;
    stroke-width: 2.2px;
    color: #ffffff;
}

/* Active Bookmarked State */
.btn-card-bookmark.bookmarked {
    background: rgba(226, 24, 91, 0.25);
    border-color: rgba(226, 24, 91, 0.55);
    color: #ff3366;
    box-shadow: 0 0 16px rgba(226, 24, 91, 0.35);
}

.btn-card-bookmark.bookmarked i,
.btn-card-bookmark.bookmarked svg {
    fill: #ff3366;
    color: #ff3366;
}


/* ==========================================================================
   PARTNER DISCOVERY INFINITE GRID SYSTEM
   - Desktop view: 4 profiles in a row, infinite vertical pagination below
   - Mobile view: 2 profiles in width, infinite vertical pagination below
   - Clean, modern layout with all animations & marquee slides removed
   ========================================================================== */

.discovery-stage {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
}

.discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .discovery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .discovery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   COMPACT PARTNER CARDS
   - Desktop: 4 cards per row, 380px tall
   - Mobile: 2 cards per row, 275px tall
   - Rich dark bottom scrim, micro-pills, bio clamp & touch actions
   ========================================================================== */

.rmp-partner-card-compact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    isolation: isolate;
}

@media (max-width: 1024px) {
    .rmp-partner-card-compact {
        height: 350px;
        border-radius: 18px;
    }
}

@media (max-width: 640px) {
    .rmp-partner-card-compact {
        height: 275px;
        border-radius: 16px;
    }
}

.rmp-partner-card-compact:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(226, 24, 91, 0.2);
    border-color: rgba(226, 24, 91, 0.5);
}

.rmp-partner-card-compact:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Background Media & Image */
.rmp-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #111827;
}

.rmp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.rmp-partner-card-compact:hover .rmp-card-img {
    transform: scale(1.05);
}

/* Scrim Gradient Overlay - Radiant face clarity with solid contrast for bottom texts */
.rmp-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.16) 0%,
            rgba(0, 0, 0, 0) 28%,
            rgba(6, 9, 15, 0.05) 48%,
            rgba(6, 9, 15, 0.62) 68%,
            rgba(6, 9, 15, 0.88) 84%,
            rgba(6, 9, 15, 0.98) 100%);
    pointer-events: none;
}

/* Top Floating Meta Micro-Pills */
.rmp-card-top-bar {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.rmp-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

.rmp-top-pill i,
.rmp-top-pill svg {
    width: 10px;
    height: 10px;
    stroke-width: 2.2px;
}

.rmp-pill-location i,
.rmp-pill-location svg {
    color: #fda4af;
}

.rmp-pill-meta .rmp-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #ffffff;
    font-weight: 700;
}

.rmp-pill-meta .star-icon {
    width: 9px;
    height: 9px;
    color: #eab308;
    fill: #eab308;
}

.rmp-pill-meta .rmp-meta-dot {
    opacity: 0.45;
    font-size: 0.55rem;
}

.rmp-pill-meta .rmp-age {
    color: rgba(255, 255, 255, 0.92);
}

/* Bottom Card Content */
.rmp-card-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    padding: 10px 12px 10px 12px;
    box-sizing: border-box;
    width: 100%;
    margin-top: auto;
}

.rmp-card-name-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}

.rmp-card-name {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.2px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

.rmp-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d9bf0;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 1px 5px rgba(29, 155, 240, 0.4);
}

.rmp-verified-badge i,
.rmp-verified-badge svg {
    width: 8.5px;
    height: 8.5px;
    stroke-width: 3.5px;
}

.rmp-card-bio {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.32;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Compact Action Buttons */
.rmp-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.btn-rmp-touch {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
    background: #ffffff;
    color: #0b0f19;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.btn-rmp-touch:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.32);
    color: #000000;
}

.btn-rmp-touch i,
.btn-rmp-touch svg {
    width: 12px;
    height: 12px;
    color: #0b0f19;
    stroke-width: 2.2px;
}

.btn-rmp-bookmark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-rmp-bookmark:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-rmp-bookmark i,
.btn-rmp-bookmark svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2px;
    color: #ffffff;
}

.btn-rmp-bookmark.bookmarked {
    background: rgba(226, 24, 91, 0.25);
    border-color: rgba(226, 24, 91, 0.55);
    color: #ff3366;
    box-shadow: 0 0 12px rgba(226, 24, 91, 0.35);
}

.btn-rmp-bookmark.bookmarked i,
.btn-rmp-bookmark.bookmarked svg {
    fill: #ff3366;
    color: #ff3366;
}

/* Full Profile Detail Modal */
.profile-modal-box {
    position: relative;
    max-width: 480px !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 28px !important;
    background: var(--surface) !important;
    border: 1px solid var(--surface-border) !important;
}

.profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 30;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition-micro), background var(--transition-micro);
}

.profile-modal-close:hover {
    transform: scale(1.12);
    background: rgba(11, 15, 25, 0.92);
}

.profile-modal-header-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-modal-media {
    position: relative;
    width: 100%;
    height: 290px;
    overflow: hidden;
}

.profile-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.profile-modal-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 25, 0.88) 100%);
    pointer-events: none;
}

.profile-modal-meta-row {
    position: absolute;
    bottom: 12px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
}

.profile-modal-content {
    padding: 20px;
}

.profile-modal-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-modal-bio {
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.profile-modal-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   INFINITE PAGINATION & SCROLL LOADER / SENTINEL
   ========================================================================== */

.infinite-scroll-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
    visibility: hidden;
}

.infinite-scroll-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px 20px 16px;
    width: 100%;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
    font-weight: 500;
}

.infinite-scroll-loader.active {
    display: flex;
}

.infinite-scroll-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--brand-primary, #e2185b);
    border-radius: 50%;
    animation: rmpInfiniteSpin 0.75s linear infinite;
}

@keyframes rmpInfiniteSpin {
    to {
        transform: rotate(360deg);
    }
}

.infinite-scroll-end {
    display: none;
    text-align: center;
    padding: 32px 16px 20px 16px;
    color: var(--text-muted, #94a3b8);
    font-size: 0.84rem;
    font-weight: 500;
}

.infinite-scroll-end.active {
    display: block;
}

/* Mobile fine-tuning for card contents in 2-column view */
@media (max-width: 640px) {
    .rmp-card-top-bar {
        top: 6px;
        left: 6px;
        right: 6px;
    }

    .rmp-top-pill {
        padding: 2px 6px;
        font-size: 0.58rem;
        gap: 2px;
    }

    .rmp-top-pill i,
    .rmp-top-pill svg {
        width: 9px;
        height: 9px;
    }

    .rmp-pill-location span {
        max-width: 58px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rmp-card-content {
        padding: 8px;
    }

    .rmp-card-name {
        font-size: 0.84rem;
    }

    .rmp-verified-badge {
        width: 12px;
        height: 12px;
    }

    .rmp-verified-badge i,
    .rmp-verified-badge svg {
        width: 7.5px;
        height: 7.5px;
    }

    .rmp-card-bio {
        font-size: 0.64rem;
        margin: 0 0 6px 0;
        -webkit-line-clamp: 2;
        line-height: 1.25;
    }

    .btn-rmp-touch {
        height: 28px;
        font-size: 0.66rem;
        padding: 0 6px;
        gap: 3px;
    }

    .btn-rmp-touch i,
    .btn-rmp-touch svg {
        width: 10px;
        height: 10px;
    }

    .btn-rmp-bookmark {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .btn-rmp-bookmark i,
    .btn-rmp-bookmark svg {
        width: 11px;
        height: 11px;
    }
}