/* ==========================================================================
   FRYNZY RENCONTRE & MATCHMAKING — STYLESHEET (Clean White & Rose Aesthetics)
   Fully Optimized for Desktop, Tablet and Smartphone (iOS / Android)
   ========================================================================== */

:root {
    --primary-rose: #f43f5e;
    --primary-rose-hover: #e11d48;
    --primary-rose-dark: #be123c;
    --rose-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #fb7185 100%);
    --rose-gradient-subtle: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    --rose-glow: rgba(244, 63, 94, 0.25);
    
    --bg-white: #ffffff;
    --bg-surface: #f8fafc;
    --bg-subtle: #f1f5f9;
    
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-rose: #fecdd3;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-rose: 0 10px 25px -5px rgba(244, 63, 94, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    --bottom-nav-height: 62px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body.rencontre-body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-surface);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Background floating canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top Navigation Header
   -------------------------------------------------------------------------- */
.rencontre-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.brand-badge {
    background: var(--rose-gradient-subtle);
    color: var(--primary-rose);
    border: 1px solid var(--border-rose);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Navigation Tabs */
.nav-menu-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-surface);
    padding: 4px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 1;
}

.nav-menu-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-rose);
    background: rgba(244, 63, 94, 0.06);
}

.tab-btn.active {
    background: var(--rose-gradient);
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-rose);
}

/* Mobile Scrollable Sub-tabs Bar (≤ 768px) */
.mobile-tabs-scroll-bar {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 14px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    gap: 8px;
}

.mobile-tabs-scroll-bar::-webkit-scrollbar {
    display: none;
}

.tab-btn-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    outline: none;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tab-btn-pill.active {
    background: var(--rose-gradient);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-guide-modal {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-body);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-guide-modal:hover {
    border-color: var(--border-rose);
    color: var(--primary-rose);
    background: #fff5f6;
}

.btn-nav-auth {
    background: var(--rose-gradient);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-nav-auth:hover {
    box-shadow: var(--shadow-rose);
    transform: translateY(-1px);
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-rose);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.rencontre-hero {
    position: relative;
    z-index: 10;
    padding: 40px 20px 24px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 241, 242, 0.4) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: var(--rose-gradient-subtle);
    border: 1px solid var(--border-rose);
    color: var(--primary-rose);
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(26px, 4.5vw, 44px);
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 900;
}

.rose-text {
    background: var(--rose-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.hero-stat-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: transform 0.2s ease;
}

.hero-stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-rose);
}

.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--rose-gradient-subtle);
    color: var(--primary-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-stat-value {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-stat-label {
    display: block;
    font-size: 11.5px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Main Container & Tab Panes
   -------------------------------------------------------------------------- */
.main-container {
    position: relative;
    z-index: 10;
    max-width: 960px;
    margin: 30px auto 60px;
    padding: 0 16px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Content Cards
   -------------------------------------------------------------------------- */
.content-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--rose-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-rose);
}

.card-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.card-subheading {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Photo Uploader Box
   -------------------------------------------------------------------------- */
.photo-uploader-box {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-surface);
    border: 2px dashed var(--border-rose);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-uploader-box:hover {
    background: #fff5f6;
    border-color: var(--primary-rose);
}

.photo-circle-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid var(--primary-rose);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.photo-circle-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.photo-circle-preview i {
    font-size: 32px;
    color: var(--primary-rose);
}

.photo-upload-hint {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.photo-upload-subhint {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-change-photo {
    display: none;
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Form Grid & Controls
   -------------------------------------------------------------------------- */
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-label i {
    color: var(--primary-rose);
    font-size: 13px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    background: var(--bg-white);
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.age-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-range-wrap input {
    text-align: center;
}

/* Pill Selectors */
.pill-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.pill-option {
    padding: 10px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.pill-option:hover {
    border-color: var(--border-rose);
    background: #fff5f6;
    color: var(--primary-rose);
}

.pill-option.selected {
    background: var(--rose-gradient);
    border-color: transparent;
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-rose);
}

/* Custom Checkbox */
.custom-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-rose);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox-label {
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.4;
    font-weight: 500;
}

/* Primary Button */
.btn-rose-primary {
    width: 100%;
    padding: 14px 24px;
    background: var(--rose-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-rose);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-rose-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(244, 63, 94, 0.4);
}

.btn-rose-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: var(--radius-full);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    border-color: var(--primary-rose);
    color: var(--primary-rose);
    background: #fff5f6;
}

/* --------------------------------------------------------------------------
   Creation Success Box & Links
   -------------------------------------------------------------------------- */
.creation-success-box {
    display: none;
    text-align: center;
    padding: 40px 24px;
}

.success-icon-bubble {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--rose-gradient);
    color: #ffffff;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: var(--shadow-rose);
}

.link-copy-container {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-rose);
    border-radius: var(--radius-lg);
    padding: 6px 6px 6px 16px;
    max-width: 600px;
    margin: 20px auto;
    gap: 10px;
}

.link-text-display {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-rose);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.btn-copy-link {
    background: var(--rose-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.share-buttons-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-social-share {
    padding: 9px 18px;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.btn-social-share.whatsapp { background: #25d366; }
.btn-social-share.telegram { background: #0088cc; }
.btn-social-share.facebook { background: #1877f2; }

/* --------------------------------------------------------------------------
   Feed Grid (Mur Découverte)
   -------------------------------------------------------------------------- */
.feed-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.feed-filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag-btn {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag-btn.active, .filter-tag-btn:hover {
    background: var(--rose-gradient-subtle);
    border-color: var(--border-rose);
    color: var(--primary-rose);
    font-weight: 700;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.profile-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-rose);
}

.profile-card-cover {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--bg-subtle);
    overflow: hidden;
}

.profile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-verified-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-rose);
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(244, 63, 94, 0.15);
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.profile-like-btn:hover {
    color: var(--primary-rose);
    border-color: var(--primary-rose);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.25);
}

.profile-like-btn.liked {
    background: #fff1f2;
    color: var(--primary-rose);
    border-color: var(--border-rose);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    cursor: default;
}

.profile-like-btn.liked i {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.45); }
    100% { transform: scale(1); }
}

.profile-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.profile-card-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.profile-card-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-card-bio {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.45;
    margin-bottom: 12px;
    flex: 1;
}

.profile-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.profile-tag-pill {
    padding: 3px 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.btn-card-action {
    width: 100%;
    padding: 9px;
    background: var(--rose-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Creator Requests & Candidate Cards
   -------------------------------------------------------------------------- */
.rencontre-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.candidates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.candidate-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.candidate-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 240px;
}

.candidate-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-rose);
    flex-shrink: 0;
}

.candidate-details h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.candidate-details p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.candidate-match-score {
    padding: 6px 14px;
    background: var(--rose-gradient-subtle);
    border: 1px solid var(--border-rose);
    border-radius: var(--radius-full);
    color: var(--primary-rose);
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.candidate-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-whatsapp-direct {
    background: #25d366;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Compatibility Simulator
   -------------------------------------------------------------------------- */
.compat-sim-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.compat-result-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-rose);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
}

.compat-gauge-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--rose-gradient);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-rose);
}

.compat-gauge-num {
    font-size: 26px;
    font-weight: 900;
}

.compat-gauge-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Guide Modal
   -------------------------------------------------------------------------- */
.guide-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.guide-modal-backdrop.active {
    display: flex;
}

.guide-modal-window {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: popModal 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popModal {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.guide-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-modal-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-modal-scroll-body {
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-section-block {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.guide-section-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.guide-section-title i {
    color: var(--primary-rose);
}

.guide-rules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guide-rules-list li {
    font-size: 13px;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.guide-rules-list li i {
    margin-top: 3px;
    color: var(--primary-rose);
    font-size: 13px;
    flex-shrink: 0;
}

.guide-checkboxes-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #fff5f6;
    border: 1px solid var(--border-rose);
    border-radius: var(--radius-lg);
}

.guide-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 12.5px;
}

.guide-footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Fixed Mobile Bottom Navigation Bar (Visible ≤ 768px)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-item {
    background: none;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    flex: 1;
}

.mobile-bottom-nav-item i {
    font-size: 18px;
}

.mobile-bottom-nav-item span {
    font-size: 10.5px;
    font-weight: 600;
}

.mobile-bottom-nav-item.active {
    color: var(--primary-rose);
}

.mobile-bottom-nav-item.active i {
    transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.rencontre-footer {
    text-align: center;
    margin-top: 40px;
    padding: 30px 20px 40px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.footer-links-row {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--primary-rose);
}

.footer-dot {
    color: #cbd5e1;
}

.footer-copy-text {
    font-size: 12.5px;
    color: var(--text-light);
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Media Queries
   ========================================================================== */
@media (max-width: 900px) {
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .compat-sim-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.rencontre-body {
        padding-bottom: var(--bottom-nav-height);
    }

    .desktop-only-tabs {
        display: none !important;
    }

    .mobile-tabs-scroll-bar {
        display: flex;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .nav-wrap {
        padding: 10px 14px;
    }

    .brand-name {
        font-size: 18px;
    }

    .guide-btn-text {
        display: none;
    }

    .btn-guide-modal {
        padding: 7px 10px;
    }

    .rencontre-hero {
        padding: 24px 14px 18px;
    }

    .hero-subtitle {
        font-size: 13.5px;
        margin-bottom: 18px;
    }

    .hero-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hero-stat-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .hero-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .hero-stat-value {
        font-size: 12.5px;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .main-container {
        margin: 18px auto 40px;
        padding: 0 12px;
    }

    .content-card {
        padding: 20px 14px;
        border-radius: var(--radius-lg);
    }

    .card-header-flex {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .card-heading {
        font-size: 17px;
    }

    .form-grid-3, .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pill-selector-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-copy-container {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .link-text-display {
        text-align: center;
        margin-bottom: 6px;
    }

    .btn-copy-link {
        width: 100%;
        justify-content: center;
    }

    .share-buttons-row {
        flex-direction: column;
    }

    .btn-social-share, .btn-outline-dark {
        width: 100%;
        justify-content: center;
    }

    .candidate-card {
        flex-direction: column;
        align-items: stretch;
    }

    .candidate-actions {
        width: 100%;
    }

    .btn-whatsapp-direct {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    .candidate-actions .btn-outline-dark {
        width: 100%;
    }

    .feed-filter-bar {
        padding: 10px 12px;
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }

    .rencontre-footer {
        padding-bottom: 70px;
    }
}

@media (max-width: 480px) {
    .hero-stats-row {
        grid-template-columns: 1fr;
    }
    .pill-selector-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ═══ SHIMMER, ICEBREAKER & MYSTERY CHESTS EXTRA STYLES ═══ */
/* Shimmer Skeleton & Realistic Loading Styles */
@keyframes rencontreShimmerAnim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #ffffff 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: rencontreShimmerAnim 1.5s infinite ease-in-out;
    border-radius: 10px;
}

.skeleton-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.skeleton-cover {
    width: 100%;
    height: 230px;
}

.skeleton-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
}

.skeleton-title {
    width: 60%;
    height: 20px;
}

.skeleton-meta {
    width: 80%;
    height: 12px;
}

.skeleton-bio {
    width: 95%;
    height: 12px;
}

.skeleton-tags {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.skeleton-tag {
    width: 60px;
    height: 24px;
    border-radius: 99px;
}

.skeleton-btn {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    margin-top: 6px;
}

.profile-card-img {
    transition: opacity 0.4s ease;
    opacity: 0;
}
.profile-card-img.img-ready {
    opacity: 1;
}

/* Icebreaker Question Styles */
.icebreaker-card {
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(240, 253, 250, 0.9) 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 18px;
    padding: 20px;
    margin: 18px 0;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
}

.icebreaker-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.icebreaker-title {
    font-size: 15px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icebreaker-sub {
    font-size: 13px;
    color: #475569;
    margin-bottom: 14px;
    line-height: 1.45;
}

.icebreaker-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.icebreaker-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.icebreaker-chip:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.icebreaker-chip.selected {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* 3D Mystery Chests / Jeu de Secours Styles */
.rescue-game-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #31103f 100%);
    border: 2px solid rgba(244, 63, 94, 0.35);
    border-radius: 24px;
    padding: 24px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.rescue-game-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
    margin-bottom: 12px;
}

.rescue-game-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.rescue-game-sub {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 580px;
}

.chests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0 10px;
}

.mystery-chest-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    user-select: none;
    backdrop-filter: blur(10px);
}

.mystery-chest-card:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

.mystery-chest-card.selected {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.4), 0 14px 34px rgba(245, 158, 11, 0.35);
}

.chest-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
    transition: transform 0.3s ease;
}

.mystery-chest-card:hover .chest-icon-wrap {
    transform: scale(1.12) rotate(3deg);
}

.mystery-chest-card.selected .chest-icon-wrap {
    transform: scale(1.15);
    animation: chestBounce 2s infinite ease-in-out;
}

@keyframes chestBounce {
    0%, 100% { transform: translateY(0) scale(1.15); }
    50% { transform: translateY(-8px) scale(1.18); }
}

.chest-label {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.chest-status {
    font-size: 11.5px;
    font-weight: 700;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.mystery-chest-card.selected .chest-status {
    color: #fbbf24;
}

.chest-heart-indicator {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    border-radius: 50%;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.5);
    border: 2px solid #ffffff;
    animation: pulseHeart 1.5s infinite;
}

.mystery-chest-card.selected .chest-heart-indicator {
    display: flex;
}

@keyframes pulseHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 640px) {
    .chests-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .mystery-chest-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 14px;
        padding: 14px 16px;
    }
    .chest-icon-wrap {
        margin: 0;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}



/* ══════════════════════════════════════════════════════════════════════════
   ULTRA-REALISTIC SHIMMER & SKELETON LOADING ENGINE
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes rencontreShimmerSweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f1f5f9 0%, #f8fafc 30%, #ffffff 50%, #f8fafc 70%, #f1f5f9 100%) !important;
    background-size: 200% 100% !important;
    animation: rencontreShimmerSweep 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 8px;
}

.skeleton-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    pointer-events: none !important;
}

.profile-card-cover {
    position: relative;
    width: 100%;
    height: 210px;
    background: #f1f5f9;
    overflow: hidden;
}

.card-img-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 35%, #ffffff 50%, #f1f5f9 65%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: rencontreShimmerSweep 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s ease-out;
}

.profile-card-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.profile-card-img.img-ready {
    opacity: 1;
}

.icebreaker-chip {
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.icebreaker-chip:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.18);
}

.icebreaker-chip.selected {
    background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35) !important;
    transform: translateY(-1px);
}


.candidate-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    flex-shrink: 0;
}
