﻿/* ==========================================================================
   OTTAWA PUNJABIS - MATRIMONIAL FEED & SWIPING STYLESHEET
   3D Card Stack, Pointer Gesture Transforms, Visual Stamps, Drawer & Modals
   ========================================================================== */

/* 1. Main Feed Section & Header Bar */
.matrimonial-feed-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.feed-toolbar {
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
    gap: 0.75rem;
}

.feed-filter-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted, #475569);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
}

html.dark-mode .feed-filter-summary {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.feed-filter-summary .filter-count-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.btn-open-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

html.dark-mode .btn-open-filters {
    background: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-open-filters:hover {
    transform: translateY(-1px);
    border-color: var(--accent-sky, #38bdf8);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.2);
}

.btn-open-filters i {
    color: var(--primary, #FF512F);
}

/* 2. 3D Card Stack Viewport */
.deck-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 590px;
    perspective: 1200px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .deck-container {
        height: 540px;
        max-width: 100%;
    }
}

/* 3. Stacked Swiping Cards */
.swipe-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 16px 42px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: 50% 100%;
    will-change: transform, opacity;
}

html.dark-mode .swipe-card {
    background: rgba(30, 41, 59, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    color: #f8fafc;
}

/* Card Stack Hierarchy (Z-axis & Depth) */
.swipe-card.card-depth-0 {
    z-index: 10;
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    cursor: grab;
    pointer-events: auto;
}

.swipe-card.card-depth-0:active {
    cursor: grabbing;
}

.swipe-card.card-depth-1 {
    z-index: 9;
    transform: translate3d(0, 14px, 0) scale(0.96);
    opacity: 0.92;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
}

.swipe-card.card-depth-2 {
    z-index: 8;
    transform: translate3d(0, 28px, 0) scale(0.92);
    opacity: 0.76;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.35s ease;
}

.swipe-card.card-depth-hidden {
    z-index: 7;
    transform: translate3d(0, 36px, 0) scale(0.88);
    opacity: 0;
    pointer-events: none;
}

/* 4. Visual Stamps Overlay (LIKE & PASS / NOPE) */
.stamp-overlay {
    position: absolute;
    top: 24px;
    z-index: 30;
    pointer-events: none;
    font-size: 1.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 18px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.1s ease;
}

.stamp-like {
    left: 24px;
    color: #10b981;
    border: 4px solid #10b981;
    background: rgba(16, 185, 129, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    transform: rotate(-15deg);
}

.stamp-pass {
    right: 24px;
    color: #ef4444;
    border: 4px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    transform: rotate(15deg);
}

.stamp-superlike {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    color: #0284c7;
    border: 4px solid #0284c7;
    background: rgba(2, 132, 199, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}

/* 5. Card Visual Layout: Photo & Details */
.card-media-frame {
    position: relative;
    width: 100%;
    height: 66%;
    background: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

.card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.swipe-card:hover .card-photo {
    transform: scale(1.02);
}

.card-media-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

/* Photo Privacy Shield (Blurred state) */
.card-photo-privacy-shield {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1.5rem;
    z-index: 6;
}

.card-photo-privacy-shield i {
    font-size: 2.75rem;
    color: #fbbf24;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.4));
}

.card-photo-privacy-shield h4 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.card-photo-privacy-shield p {
    font-size: 0.8rem;
    color: #cbd5e1;
    max-width: 240px;
    line-height: 1.35;
}

/* Floating Status Badges */
.card-badges-floating {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 15;
    pointer-events: none;
}

.badge-status-pill {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.badge-status-pill.badge-pr {
    background: rgba(16, 185, 129, 0.88);
    border-color: rgba(255, 255, 255, 0.4);
}

.badge-verified-round {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0284c7;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    border: 2px solid white;
}

/* Card Content Area */
.card-details-pane {
    position: relative;
    padding: 1.15rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    z-index: 10;
}

.card-name-headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.card-name-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

html.dark-mode .card-name-title {
    color: #f8fafc;
}

.card-age-stat {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary, #FF512F);
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.card-location-row {
    font-size: 0.84rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    font-weight: 500;
}

html.dark-mode .card-location-row {
    color: #94a3b8;
}

/* Pill Tags Grid */
.card-tags-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.feed-attr-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 600;
    background: rgba(241, 245, 249, 0.95);
    color: #334155;
    border: 1px solid rgba(203, 213, 225, 0.7);
}

html.dark-mode .feed-attr-chip {
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.feed-attr-chip.chip-highlight {
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
    border-color: rgba(56, 189, 248, 0.3);
}

html.dark-mode .feed-attr-chip.chip-highlight {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.feed-attr-chip.chip-turban {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
}

/* Bio snippet */
.card-bio-teaser {
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

html.dark-mode .card-bio-teaser {
    color: #cbd5e1;
}

.card-expand-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.2s;
}

.card-expand-hint:hover {
    color: #0369a1;
}

/* 6. Action Buttons Bar */
.feed-actions-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 420px;
    padding: 0 1rem;
}

.swipe-circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: white;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html.dark-mode .swipe-circle-btn {
    background: #1e293b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.swipe-circle-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.swipe-circle-btn:active {
    transform: translateY(1px) scale(0.95);
}

/* Specific Action Buttons */
.btn-swipe-pass {
    width: 62px;
    height: 62px;
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
    font-size: 1.5rem;
}

.btn-swipe-pass:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
}

.btn-swipe-star {
    width: 50px;
    height: 50px;
    color: #0284c7;
    border: 2px solid rgba(2, 132, 199, 0.3);
    font-size: 1.25rem;
}

.btn-swipe-star:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}

.btn-swipe-like {
    width: 66px;
    height: 66px;
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
    font-size: 1.65rem;
}

.btn-swipe-like:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.38);
}

.btn-swipe-info {
    width: 50px;
    height: 50px;
    color: #8b5cf6;
    border: 2px solid rgba(139, 92, 246, 0.3);
    font-size: 1.2rem;
}

.btn-swipe-info:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
}

/* 7. Empty Feed State */
.deck-empty-state {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.75rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px dashed rgba(203, 213, 225, 0.85);
    box-shadow: 0 14px 35px -10px rgba(15, 23, 42, 0.08);
}

html.dark-mode .deck-empty-state {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.deck-empty-state .empty-icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 81, 47, 0.1), rgba(221, 36, 118, 0.1));
    color: var(--primary, #FF512F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 20px rgba(255, 81, 47, 0.15);
}

.deck-empty-state h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.deck-empty-state p {
    font-size: 0.92rem;
    color: #64748b;
    max-width: 290px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

html.dark-mode .deck-empty-state p {
    color: #94a3b8;
}

.deck-empty-state .empty-actions-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 260px;
}

/* 8. Filter Drawer Overlay & Sliding Panel */
.filter-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: flex-end;
}

.filter-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.filter-drawer-panel {
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #ffffff;
    box-shadow: -8px 0 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

html.dark-mode .filter-drawer-panel {
    background: #0f172a;
    color: #f8fafc;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-drawer-overlay.active .filter-drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(248, 250, 252, 0.85);
}

html.dark-mode .drawer-header {
    background: rgba(30, 41, 59, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.drawer-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #0f172a;
}

html.dark-mode .drawer-header h3 {
    color: #f8fafc;
}

.drawer-header .drawer-close-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drawer-header .drawer-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #ef4444;
}

html.dark-mode .drawer-header .drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.drawer-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.drawer-form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    justify-content: space-between;
}

html.dark-mode .drawer-form-group label {
    color: #cbd5e1;
}

.drawer-form-group select,
.drawer-form-group input {
    width: 100%;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 0.92rem;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

html.dark-mode .drawer-form-group select,
html.dark-mode .drawer-form-group input {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.15);
    color: #f8fafc;
}

.drawer-form-group select:focus,
.drawer-form-group input:focus {
    border-color: var(--accent-sky, #38bdf8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.age-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.age-range-inputs input {
    flex: 1;
    text-align: center;
}

.drawer-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 0.75rem;
    background: rgba(248, 250, 252, 0.9);
}

html.dark-mode .drawer-footer {
    background: rgba(30, 41, 59, 0.9);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* 9. Profile Detail Modal / Bottom Sheet */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.profile-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.profile-modal-dialog {
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark-mode .profile-modal-dialog {
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-modal-overlay.active .profile-modal-dialog {
    transform: scale(1) translateY(0);
}

.profile-modal-header-hero {
    position: relative;
    width: 100%;
    height: 260px;
    background: #0f172a;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
}

.profile-modal-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.profile-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-section-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary, #FF512F);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-attribute-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .modal-attribute-grid {
        grid-template-columns: 1fr;
    }
}

.modal-attr-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

html.dark-mode .modal-attr-item {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-attr-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

html.dark-mode .modal-attr-label {
    color: #94a3b8;
}

.modal-attr-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 700;
}

html.dark-mode .modal-attr-value {
    color: #f8fafc;
}

.modal-text-block {
    background: #f8fafc;
    border-left: 4px solid var(--accent-sky, #38bdf8);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.6;
}

html.dark-mode .modal-text-block {
    background: #1e293b;
    color: #cbd5e1;
}

.profile-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(248, 250, 252, 0.9);
}

html.dark-mode .profile-modal-footer {
    background: rgba(30, 41, 59, 0.9);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* 10. Mutual Match Celebration Modal */
.match-celebration-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.match-celebration-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.match-celebration-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(135deg, #090d16 0%, #1e1b4b 60%, #0f172a 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 25px 65px -10px rgba(251, 191, 36, 0.3), 0 0 40px rgba(236, 72, 153, 0.25);
    border-radius: 30px;
    padding: 2.75rem 2rem 2.25rem;
    text-align: center;
    color: white;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.match-celebration-overlay.active .match-celebration-card {
    transform: scale(1);
}

/* Confetti particles */
.celebration-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.sparkle-dot {
    position: absolute;
    border-radius: 50%;
    animation: sparkleFloat 3s infinite ease-in-out;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 0.9; }
}

.celebration-content {
    position: relative;
    z-index: 2;
}

.celebration-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid #fbbf24;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.celebration-headline {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #fbbf24 0%, #ec4899 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.celebration-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.85rem;
    line-height: 1.5;
}

/* Matched Partner Avatar Frame */
.celebration-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.85rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #fbbf24, #ec4899, #38bdf8);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
    animation: pulseRing 2.5s infinite;
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(236, 72, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}

.celebration-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 3px solid #0f172a;
}

.celebration-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #fbbf24;
    font-size: 3rem;
    border: 3px solid #0f172a;
}

.celebration-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-celebration-chat {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.95rem 1.75rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-celebration-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.55);
}

.btn-celebration-keep {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-celebration-keep:hover {
    background: rgba(255, 255, 255, 0.18);
    color: white;
}