/* ============================================================
   CÉLIBE — Design system v2
   Prefixe cb- pour éviter les collisions avec Bootstrap.
   ============================================================ */

:root {
    --cb-brand-1: #fe3c72;
    --cb-brand-2: #ff655b;
    --cb-brand-grad: linear-gradient(135deg, #fe3c72 0%, #ff655b 100%);
    --cb-brand-soft: #ffe9ee;
    --cb-ink: #14141b;
    --cb-ink-2: #4b5563;
    --cb-ink-3: #9ca3af;
    --cb-bg: #f7f7fb;
    --cb-surface: #ffffff;
    --cb-border: #ececf2;
    --cb-green: #22c55e;
    --cb-gold: #f59e0b;
    --cb-radius: 20px;
    --cb-radius-sm: 12px;
    --cb-shadow: 0 8px 30px rgba(20, 20, 27, .08);
    --cb-shadow-lg: 0 18px 50px rgba(20, 20, 27, .16);
    --cb-nav-h: 64px;
}

:root[data-theme="dark"] {
    --cb-brand-soft: #3a1420;
    --cb-ink: #f2f2f7;
    --cb-ink-2: #b8bac4;
    --cb-ink-3: #7d7f8c;
    --cb-bg: #131318;
    --cb-surface: #1d1d25;
    --cb-border: #2d2d38;
    --cb-shadow: 0 8px 30px rgba(0, 0, 0, .35);
    --cb-shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
    --cb-header-bg: rgba(19, 19, 24, .85);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --cb-brand-soft: #3a1420;
        --cb-ink: #f2f2f7;
        --cb-ink-2: #b8bac4;
        --cb-ink-3: #7d7f8c;
        --cb-bg: #131318;
        --cb-surface: #1d1d25;
        --cb-border: #2d2d38;
        --cb-shadow: 0 8px 30px rgba(0, 0, 0, .35);
        --cb-shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
        --cb-header-bg: rgba(19, 19, 24, .85);
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--cb-bg);
    color: var(--cb-ink);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    transition: background .2s ease, color .2s ease;
}

/* ---------- Bascule thème sombre ---------- */
.cb-theme-toggle {
    background: transparent;
    border: 1.5px solid var(--cb-border);
    color: var(--cb-ink-2);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.cb-theme-toggle:hover { border-color: var(--cb-brand-1); color: var(--cb-brand-1); }
.cb-theme-toggle .cb-icon-dark { display: none; }
:root[data-theme="dark"] .cb-theme-toggle .cb-icon-light { display: none; }
:root[data-theme="dark"] .cb-theme-toggle .cb-icon-dark { display: inline-block; }

/* ---------- Icônes SVG ---------- */
.cbi {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    flex-shrink: 0;
    display: inline-block;
}

/* ---------- Utilitaires ---------- */
.cb-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.cb-container-sm { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.cb-grad-text {
    background: var(--cb-brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cb-muted { color: var(--cb-ink-2); }
.cb-small { font-size: .85rem; }

/* ---------- Boutons ---------- */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    line-height: 1.2;
}
.cb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.cb-btn:active { transform: translateY(0) scale(.98); }

.cb-btn-primary {
    background: var(--cb-brand-grad);
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(254, 60, 114, .35);
}
.cb-btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(254, 60, 114, .45); }

.cb-btn-outline {
    background: var(--cb-surface);
    color: var(--cb-ink) !important;
    border: 1.5px solid var(--cb-border);
}
.cb-btn-outline:hover { border-color: var(--cb-brand-1); color: var(--cb-brand-1) !important; }

.cb-btn-ghost { background: transparent; color: var(--cb-ink-2) !important; }
.cb-btn-ghost:hover { color: var(--cb-brand-1) !important; }

.cb-btn-danger { background: #fee2e2; color: #b91c1c !important; }
.cb-btn-danger:hover { background: #fecaca; }

.cb-btn-google {
    background: var(--cb-surface);
    border: 1.5px solid var(--cb-border);
    color: var(--cb-ink) !important;
    width: 100%;
    font-weight: 600;
}
.cb-btn-google:hover { border-color: #c9c9d4; background: #fafafa; }

.cb-btn-block { width: 100%; }
.cb-btn-sm { padding: 8px 16px; font-size: .875rem; }

/* ---------- Cartes / surfaces ---------- */
.cb-card {
    background: var(--cb-surface);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    border: 1px solid var(--cb-border);
}
.cb-card-pad { padding: 28px; }

/* ---------- Formulaires ---------- */
.cb-label {
    display: block;
    font-weight: 600;
    font-size: .875rem;
    margin-bottom: 6px;
    color: var(--cb-ink);
}
.cb-input, .cb-select, .cb-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: var(--cb-radius-sm);
    border: 1.5px solid var(--cb-border);
    background: var(--cb-surface);
    font-size: 1rem;
    font-family: inherit;
    color: var(--cb-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cb-input:focus, .cb-select:focus, .cb-textarea:focus {
    outline: none;
    border-color: var(--cb-brand-1);
    box-shadow: 0 0 0 4px rgba(254, 60, 114, .12);
}
.cb-field { margin-bottom: 18px; }
.cb-error { color: #dc2626; font-size: .85rem; margin-top: 5px; }
.cb-hint { color: var(--cb-ink-3); font-size: .8rem; margin-top: 5px; }

.cb-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--cb-ink-2); }
.cb-check input { margin-top: 3px; accent-color: var(--cb-brand-1); width: 18px; height: 18px; flex-shrink: 0; }

.cb-divider {
    display: flex; align-items: center; gap: 14px;
    color: var(--cb-ink-3); font-size: .85rem; margin: 20px 0;
}
.cb-divider::before, .cb-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--cb-border);
}

/* ---------- Header ---------- */
.cb-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--cb-header-bg, rgba(255, 255, 255, .85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cb-border);
}
.cb-header-inner {
    height: var(--cb-nav-h);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.cb-logo {
    font-size: 1.5rem; font-weight: 800; text-decoration: none;
    display: flex; align-items: center; gap: 6px; letter-spacing: -.5px;
}
.cb-logo:hover { text-decoration: none; }

.cb-nav-desktop { display: flex; align-items: center; gap: 4px; }
.cb-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    color: var(--cb-ink-2); text-decoration: none; font-weight: 600; font-size: .92rem;
    position: relative;
    transition: background .15s, color .15s;
}
.cb-nav-link:hover { background: var(--cb-brand-soft); color: var(--cb-brand-1); text-decoration: none; }
.cb-nav-link.active { background: var(--cb-brand-soft); color: var(--cb-brand-1); }
.cb-nav-link svg { width: 20px; height: 20px; }

.cb-badge {
    position: absolute; top: 0; right: 4px;
    background: var(--cb-brand-grad); color: #fff;
    font-size: .68rem; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.cb-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--cb-brand-1);
}
.cb-avatar-fallback {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--cb-brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; border: 2px solid #fff;
}

/* ---------- Bottom nav (mobile) ---------- */
.cb-bottomnav {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--cb-border);
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.cb-bottomnav-inner { display: flex; justify-content: space-around; }
.cb-bottomnav a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--cb-ink-3); text-decoration: none; font-size: .65rem; font-weight: 600;
    padding: 4px 10px; position: relative;
}
.cb-bottomnav a.active, .cb-bottomnav a:hover { color: var(--cb-brand-1); text-decoration: none; }
.cb-bottomnav svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
    .cb-nav-desktop { display: none; }
    .cb-bottomnav { display: block; }
    body.cb-has-bottomnav { padding-bottom: 76px; }
}

/* ---------- Toast / alertes ---------- */
.cb-toast {
    position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
    z-index: 2000;
    background: var(--cb-ink); color: #fff;
    padding: 12px 22px; border-radius: 999px;
    box-shadow: var(--cb-shadow-lg);
    font-weight: 600; font-size: .92rem;
    max-width: 90vw;
    animation: cb-toast-in .3s ease;
}
@keyframes cb-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Cookie banner ---------- */
.cb-cookies {
    position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 3000;
    max-width: 560px; margin: 0 auto;
    background: var(--cb-surface);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow-lg);
    border: 1px solid var(--cb-border);
    padding: 20px;
}
@media (max-width: 860px) {
    .cb-cookies { bottom: 86px; }
}

/* ---------- Hero (accueil) ---------- */
.cb-hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(254, 60, 114, .18), transparent),
                radial-gradient(900px 500px at 10% 10%, rgba(255, 101, 91, .14), transparent),
                linear-gradient(rgba(247, 247, 251, .88), rgba(247, 247, 251, .93)),
                url('/images/hero-bg.jpg') center 20% / cover no-repeat,
                var(--cb-bg);
    padding: 72px 0 56px;
    text-align: center;
}
:root[data-theme="dark"] .cb-hero {
    background: radial-gradient(1200px 600px at 80% -10%, rgba(254, 60, 114, .22), transparent),
                radial-gradient(900px 500px at 10% 10%, rgba(255, 101, 91, .16), transparent),
                linear-gradient(rgba(19, 19, 24, .87), rgba(19, 19, 24, .93)),
                url('/images/hero-bg.jpg') center 20% / cover no-repeat,
                var(--cb-bg);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .cb-hero {
        background: radial-gradient(1200px 600px at 80% -10%, rgba(254, 60, 114, .22), transparent),
                    radial-gradient(900px 500px at 10% 10%, rgba(255, 101, 91, .16), transparent),
                    linear-gradient(rgba(19, 19, 24, .87), rgba(19, 19, 24, .93)),
                    url('/images/hero-bg.jpg') center 20% / cover no-repeat,
                    var(--cb-bg);
    }
}
.cb-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800; letter-spacing: -1.5px; margin: 0 0 18px;
    line-height: 1.1;
}
.cb-hero p.lead { font-size: 1.15rem; color: var(--cb-ink-2); max-width: 560px; margin: 0 auto 30px; }

.cb-trust { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.cb-chip {
    background: var(--cb-surface); border: 1px solid var(--cb-border);
    border-radius: 999px; padding: 8px 16px;
    font-size: .85rem; font-weight: 600; color: var(--cb-ink-2);
    display: inline-flex; align-items: center; gap: 6px;
}

.cb-live-stats {
    display: flex; flex-wrap: wrap; gap: 28px; justify-content: center;
    margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--cb-border);
}
.cb-live-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cb-live-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--cb-ink); display: inline-flex; align-items: center; gap: 6px; }
.cb-live-stat-label { font-size: .8rem; color: var(--cb-ink-3); font-weight: 600; }
.cb-live-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--cb-green);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: cb-pulse-dot 2s infinite;
}
@keyframes cb-confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(540deg); opacity: 0; }
}

@keyframes cb-pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Features / pricing ---------- */
.cb-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cb-feature { text-align: center; padding: 30px 22px; }
.cb-feature .cb-ico {
    width: 56px; height: 56px; margin: 0 auto 16px;
    background: var(--cb-brand-soft); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.cb-feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.cb-feature p { color: var(--cb-ink-2); font-size: .92rem; margin: 0; }

.cb-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.cb-price-card { padding: 30px 26px; text-align: center; position: relative; display: flex; flex-direction: column; }
.cb-price-card.popular { border: 2px solid var(--cb-brand-1); box-shadow: 0 12px 40px rgba(254, 60, 114, .18); }
.cb-price-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--cb-brand-grad); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .5px;
    padding: 5px 14px; border-radius: 999px;
}
.cb-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -1px; }
.cb-price small { font-size: 1rem; font-weight: 600; color: var(--cb-ink-3); }
.cb-price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; text-align: left; flex: 1; }
.cb-price-card ul li { padding: 7px 0; color: var(--cb-ink-2); font-size: .92rem; display: flex; gap: 8px; }

/* ---------- Grille de profils ---------- */
.cb-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}
.cb-profile-card {
    position: relative; border-radius: var(--cb-radius); overflow: hidden;
    aspect-ratio: 3 / 4; background: #ddd;
    box-shadow: var(--cb-shadow);
    display: block; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.cb-profile-card:hover { transform: translateY(-4px); box-shadow: var(--cb-shadow-lg); }
.cb-profile-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-profile-card .cb-noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #e9e9f2, #d8d8e6);
    font-size: 3rem; color: #fff;
}
.cb-profile-overlay {
    position: absolute; inset: auto 0 0 0;
    padding: 40px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    color: #fff;
}
.cb-profile-overlay .name { font-weight: 700; font-size: 1.05rem; }
.cb-profile-overlay .meta { font-size: .8rem; opacity: .9; }

.cb-online-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: var(--cb-green); border: 2px solid #fff;
}

.cb-card-actions {
    position: absolute; top: 10px; right: 10px;
    display: flex; gap: 6px;
}
.cb-icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
    font-size: 1.1rem;
    transition: transform .15s ease;
}
.cb-icon-btn:hover { transform: scale(1.1); }

/* ---------- Swipe / Découvrir ---------- */
.cb-swipe-zone {
    max-width: 420px; margin: 0 auto;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}
.cb-swipe-card {
    position: relative;
    border-radius: 24px; overflow: hidden;
    aspect-ratio: 3 / 4.4;
    background: #1c1c24;
    box-shadow: var(--cb-shadow-lg);
    touch-action: pan-y;
    cursor: grab;
}
.cb-swipe-card.dragging { cursor: grabbing; transition: none; }
.cb-swipe-card.animate { transition: transform .35s ease, opacity .35s ease; }

.cb-swipe-photo {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.cb-swipe-photo-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #3f3f4e, #23232e);
    color: rgba(255,255,255,.6); font-size: 5rem;
}

.cb-photo-bars {
    position: absolute; top: 10px; left: 12px; right: 12px;
    display: flex; gap: 5px; z-index: 5;
}
.cb-photo-bars span {
    flex: 1; height: 4px; border-radius: 2px;
    background: rgba(255, 255, 255, .35);
}
.cb-photo-bars span.active { background: #fff; }

.cb-tap-left, .cb-tap-right {
    position: absolute; top: 0; bottom: 30%; width: 33%; z-index: 4;
}
.cb-tap-left { left: 0; }
.cb-tap-right { right: 0; }

.cb-swipe-info {
    position: absolute; inset: auto 0 0 0; z-index: 3;
    padding: 90px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
    color: #fff;
}
.cb-swipe-info h2 { margin: 0; font-size: 1.7rem; display: flex; align-items: center; gap: 10px; }
.cb-swipe-info .meta { opacity: .92; font-size: .95rem; margin-top: 4px; }
.cb-swipe-info .desc {
    margin-top: 10px; font-size: .9rem; opacity: .95;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.cb-stamp {
    position: absolute; top: 48px; z-index: 6;
    font-size: 2rem; font-weight: 800; letter-spacing: 2px;
    padding: 6px 18px; border-radius: 10px;
    border: 4px solid; opacity: 0;
    transform: rotate(-14deg);
    pointer-events: none;
}
.cb-stamp-like { left: 22px; color: #22c55e; border-color: #22c55e; }
.cb-stamp-nope { right: 22px; color: #ef4444; border-color: #ef4444; transform: rotate(14deg); }

.cb-swipe-actions {
    display: flex; justify-content: center; align-items: center; gap: 22px;
    margin-top: 22px;
}
.cb-action-btn {
    border: none; cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cb-surface); box-shadow: var(--cb-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cb-action-btn:hover { transform: scale(1.12); box-shadow: var(--cb-shadow-lg); }
.cb-action-btn:active { transform: scale(.95); }
.cb-action-pass { width: 64px; height: 64px; font-size: 1.7rem; color: #ef4444; }
.cb-action-like { width: 76px; height: 76px; font-size: 2rem; color: #22c55e; }
.cb-action-info { width: 52px; height: 52px; font-size: 1.2rem; color: #3b82f6; }
.cb-action-menu { width: 52px; height: 52px; font-size: 1.3rem; color: var(--cb-ink-3); }

/* ---------- Modales ---------- */
.cb-modal-backdrop {
    position: fixed; inset: 0; z-index: 4000;
    background: rgba(10, 10, 16, .6);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cb-modal {
    background: var(--cb-surface); border-radius: var(--cb-radius);
    max-width: 440px; width: 100%;
    padding: 28px; position: relative;
    box-shadow: var(--cb-shadow-lg);
    max-height: 88vh; overflow-y: auto;
    animation: cb-modal-in .25s ease;
}
@keyframes cb-modal-in {
    from { opacity: 0; transform: scale(.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.cb-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: var(--cb-bg); border: none; cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 1rem; color: var(--cb-ink-2);
}

/* ---------- Alerte de sécurité ---------- */
.cb-modal-security { max-width: 520px; }
.cb-security-head {
    display: flex; align-items: center; gap: 10px;
    color: var(--cb-gold); font-weight: 800; font-size: 1.15rem;
    margin-bottom: 14px;
}
.cb-security-body p { margin: 0 0 14px; color: var(--cb-ink-2); font-size: .93rem; line-height: 1.55; }
.cb-security-body strong { color: var(--cb-ink); }
.cb-security-body .warn { color: #b45309; font-weight: 700; }
.cb-security-body a { color: var(--cb-brand-1); font-weight: 700; }

/* Match ! */
.cb-match-modal { text-align: center; overflow: hidden; animation: cb-match-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.cb-match-title {
    font-size: 2.4rem; font-weight: 800; letter-spacing: -1px;
    margin-bottom: 6px;
    display: inline-block;
    animation: cb-title-pulse 1.6s ease-in-out infinite;
}
@keyframes cb-match-pop {
    0% { transform: scale(.7); opacity: 0; }
    60% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}
@keyframes cb-title-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.cb-match-photos { display: flex; justify-content: center; margin: 22px 0; }
.cb-match-photos img, .cb-match-photos .ph {
    width: 110px; height: 110px; border-radius: 50%;
    object-fit: cover; border: 4px solid #fff;
    box-shadow: var(--cb-shadow-lg);
}
.cb-match-photos > * + * { margin-left: -22px; }
.cb-match-photos .ph {
    background: var(--cb-brand-grad); display: flex;
    align-items: center; justify-content: center;
    color: #fff; font-size: 2.4rem; font-weight: 700;
}

/* ---------- Messagerie ---------- */
.cb-conv-list { display: flex; flex-direction: column; gap: 8px; }
.cb-conv {
    display: flex; align-items: center; gap: 14px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-sm);
    padding: 13px 16px;
    text-decoration: none; color: var(--cb-ink);
    transition: transform .12s ease, box-shadow .12s ease;
}
.cb-conv:hover { transform: translateY(-1px); box-shadow: var(--cb-shadow); text-decoration: none; color: var(--cb-ink); }
.cb-conv .avatar-wrap { position: relative; flex-shrink: 0; }
.cb-conv img, .cb-conv .avatar-fallback {
    width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
}
.cb-conv .avatar-fallback {
    background: var(--cb-brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
}
.cb-conv .online {
    position: absolute; bottom: 2px; right: 2px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--cb-green); border: 2.5px solid #fff;
}
.cb-conv .body { flex: 1; min-width: 0; }
.cb-conv .name { font-weight: 700; }
.cb-conv .preview {
    color: var(--cb-ink-3); font-size: .875rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cb-conv .preview.unread { color: var(--cb-ink); font-weight: 600; }
.cb-conv .right { text-align: right; flex-shrink: 0; }
.cb-conv .time { font-size: .75rem; color: var(--cb-ink-3); }
.cb-conv .count {
    background: var(--cb-brand-grad); color: #fff;
    font-size: .72rem; font-weight: 700;
    min-width: 20px; height: 20px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 6px; margin-top: 4px;
}

.cb-newmatches { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; }
.cb-newmatch { text-align: center; text-decoration: none; color: var(--cb-ink); flex-shrink: 0; width: 74px; }
.cb-newmatch img, .cb-newmatch .ph {
    width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
    border: 3px solid; border-image: var(--cb-brand-grad) 1;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--cb-brand-soft);
}
.cb-newmatch .ph {
    background: var(--cb-brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.4rem;
}
.cb-newmatch .nm { font-size: .75rem; font-weight: 600; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Fil de conversation */
.cb-chat-wrap {
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: column;
    height: calc(100vh - var(--cb-nav-h) - 20px);
}
@media (max-width: 860px) {
    .cb-chat-wrap { height: calc(100vh - var(--cb-nav-h) - 90px); }
}
.cb-chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-sm) var(--cb-radius-sm) 0 0;
}
.cb-chat-header img, .cb-chat-header .ph {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
}
.cb-chat-header .ph {
    background: var(--cb-brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cb-chat-messages {
    flex: 1; overflow-y: auto;
    background: var(--cb-surface);
    border-left: 1px solid var(--cb-border);
    border-right: 1px solid var(--cb-border);
    padding: 18px 16px;
    display: flex; flex-direction: column; gap: 10px;
}
.cb-bubble {
    max-width: 75%; padding: 10px 15px;
    border-radius: 18px; font-size: .95rem;
    word-wrap: break-word; white-space: pre-wrap;
}
.cb-bubble.mine {
    align-self: flex-end;
    background: var(--cb-brand-grad); color: #fff;
    border-bottom-right-radius: 6px;
}
.cb-bubble.theirs {
    align-self: flex-start;
    background: #f1f1f6; color: var(--cb-ink);
    border-bottom-left-radius: 6px;
}
.cb-bubble .t { display: block; font-size: .68rem; opacity: .7; margin-top: 3px; text-align: right; }
.cb-date-sep {
    align-self: center; font-size: .75rem; color: var(--cb-ink-3);
    background: var(--cb-bg); padding: 4px 12px; border-radius: 999px;
    margin: 6px 0;
}
.cb-chat-form {
    display: flex; gap: 10px;
    padding: 12px;
    background: var(--cb-surface);
    border: 1px solid var(--cb-border);
    border-radius: 0 0 var(--cb-radius-sm) var(--cb-radius-sm);
}
.cb-chat-form input {
    flex: 1; border: 1.5px solid var(--cb-border);
    border-radius: 999px; padding: 11px 18px; font-size: 1rem;
    font-family: inherit;
}
.cb-chat-form input:focus { outline: none; border-color: var(--cb-brand-1); }
.cb-chat-form button {
    width: 46px; height: 46px; border-radius: 50%;
    border: none; cursor: pointer;
    background: var(--cb-brand-grad); color: #fff; font-size: 1.15rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---------- Gestion des photos du profil ---------- */
.cb-photo-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.cb-photo-slot {
    position: relative; aspect-ratio: 3 / 4;
    border-radius: var(--cb-radius-sm); overflow: hidden;
    background: var(--cb-bg);
    border: 2px dashed var(--cb-border);
}
.cb-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cb-photo-slot.filled { border-style: solid; }
.cb-photo-slot .primary-tag {
    position: absolute; top: 8px; left: 8px;
    background: var(--cb-brand-grad); color: #fff;
    font-size: .65rem; font-weight: 700;
    padding: 3px 9px; border-radius: 999px;
}
.cb-photo-slot .slot-actions {
    position: absolute; bottom: 8px; left: 8px; right: 8px;
    display: flex; justify-content: space-between; gap: 6px;
}
.cb-photo-slot .slot-actions button {
    border: none; cursor: pointer; border-radius: 999px;
    font-size: .7rem; font-weight: 700; padding: 5px 10px;
    background: rgba(255, 255, 255, .92);
}
.cb-photo-add {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 6px; cursor: pointer;
    color: var(--cb-ink-3); font-size: .8rem; font-weight: 600;
    width: 100%; height: 100%;
}
.cb-photo-add .plus {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--cb-brand-soft); color: var(--cb-brand-1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700;
}

/* ---------- Sections / titres ---------- */
.cb-section { padding: 56px 0; }
.cb-section-title {
    text-align: center; font-size: 1.9rem; font-weight: 800;
    letter-spacing: -.5px; margin: 0 0 34px;
}
.cb-page-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; margin: 26px 0 20px; }

/* ---------- Footer ---------- */
.cb-footer {
    background: #14141b; color: #a1a1b3;
    padding: 40px 0 30px; margin-top: 60px;
    font-size: .9rem;
}
.cb-footer a { color: #d4d4e0; text-decoration: none; }
.cb-footer a:hover { color: #fff; }
.cb-footer .links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-bottom: 16px; }

/* ---------- Pages légales ---------- */
.cb-legal { max-width: 760px; margin: 0 auto; padding: 30px 16px 60px; }
.cb-legal h1 { font-size: 1.9rem; letter-spacing: -.5px; }
.cb-legal h2 { font-size: 1.25rem; margin-top: 34px; }
.cb-legal p, .cb-legal li { color: var(--cb-ink-2); line-height: 1.7; }

/* ---------- Vide / placeholder ---------- */
.cb-empty {
    text-align: center; padding: 70px 20px;
    color: var(--cb-ink-2);
}
.cb-empty .emoji { font-size: 3.4rem; margin-bottom: 14px; }
.cb-empty h3 { color: var(--cb-ink); margin: 0 0 8px; }

/* ---------- Compatibilité pages historiques (horoscope, chat, jeux) ---------- */
.price-card {
    background: var(--cb-surface);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    border: 1px solid var(--cb-border);
}
.btn-cta {
    background: var(--cb-brand-grad);
    color: #fff !important;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 999px;
    border: none;
    box-shadow: 0 6px 20px rgba(254, 60, 114, .35);
}
.btn-cta:hover { color: #fff; box-shadow: 0 10px 26px rgba(254, 60, 114, .45); }

/* ---------- Divers ---------- */
.cb-verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #3b82f6; color: #fff; font-size: .7rem;
}
.cb-fade-in { animation: cb-fade .35s ease; }
@keyframes cb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
