/* T'COEUR - design system */
:root {
    --tc-magenta: #B50F8C;
    --tc-magenta-deep: #8a0c6a;
    --tc-ink: #1a0a14;
    --tc-paper: #fff8fb;
    --tc-muted: #6b4a5c;
    --tc-blush: #fce4f2;
    --tc-line: #f0d0e4;
    --tc-ok: #1a7a3c;
    --tc-error: #a11;
    --tc-font-display: "Fraunces", Georgia, serif;
    --tc-font-body: "Outfit", "Segoe UI", sans-serif;
    --tc-nav-h: 72px;
    --tc-ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.tc-app {
    margin: 0;
    min-height: 100vh;
    color: var(--tc-ink);
    font-family: var(--tc-font-body);
    background:
        radial-gradient(ellipse 90% 50% at 50% -10%, var(--tc-blush) 0%, transparent 60%),
        linear-gradient(180deg, var(--tc-paper) 0%, #ffffff 45%);
    padding-bottom: calc(var(--tc-nav-h) + 1.5rem);
    animation: tcFadeIn .55s var(--tc-ease);
}

@keyframes tcFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@keyframes tcRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.tc-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

/* Brand / hero */
.tc-hero {
    text-align: center;
    padding: 1.75rem 0.5rem 1rem;
}
.tc-hero-logo {
    width: clamp(96px, 22vw, 140px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(181, 15, 140, 0.18));
}
.tc-hero h1,
.tc-page-title {
    font-family: var(--tc-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--tc-magenta);
    margin: 0.35rem 0;
    letter-spacing: 0.03em;
}
.tc-tagline {
    color: var(--tc-muted);
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
}
.tc-status {
    text-align: center;
    color: var(--tc-ok);
    font-size: 0.9rem;
    padding: 0.4rem;
}

/* Buttons */
.tc-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.tc-btn {
    display: inline-block;
    padding: 0.7rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform .2s var(--tc-ease), background .2s, color .2s;
}
.tc-btn:hover { transform: translateY(-1px); }
.tc-btn-primary {
    background: var(--tc-magenta);
    color: #fff;
}
.tc-btn-primary:hover { background: var(--tc-magenta-deep); }
.tc-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--tc-magenta);
    color: var(--tc-magenta);
}

/* Sections */
.tc-section {
    margin: 2rem 0 1rem;
    animation: tcRise .6s var(--tc-ease) both;
}
.tc-section:nth-of-type(2) { animation-delay: .08s; }
.tc-section h2 {
    font-family: var(--tc-font-display);
    color: var(--tc-magenta);
    text-align: center;
    font-size: 1.55rem;
    margin: 0 0 1rem;
}
.tc-muted-center,
.tc-guest-invite {
    text-align: center;
    color: var(--tc-muted);
    margin: 0.5rem auto 1.5rem;
    max-width: 28rem;
}

/* Nearby - bandeau d’avatars, pas de boîte d’alerte */
.tc-nearby {
    margin-top: 0.5rem;
}
.tc-nearby-empty {
    text-align: center;
    padding: 0.25rem 0.5rem 1rem;
    max-width: 26rem;
    margin: 0 auto;
}
.tc-nearby-lead {
    font-family: var(--tc-font-display);
    font-size: 1.15rem;
    color: var(--tc-ink);
    margin: 0 0 0.5rem;
}
.tc-nearby-sub {
    color: var(--tc-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.tc-nearby-hint {
    min-height: 1.25rem;
    color: var(--tc-muted);
    font-size: 0.85rem;
    margin: 0.65rem 0 0;
}
.tc-nearby-next {
    margin: 1rem 0 0;
}
.tc-nearby-next a {
    color: var(--tc-magenta);
    font-weight: 600;
    text-decoration: none;
}
.tc-nearby-next a:hover { text-decoration: underline; }
.tc-nearby-meta {
    text-align: center;
    color: var(--tc-muted);
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}
.tc-nearby-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.35rem 0.25rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.tc-nearby-avatar {
    flex: 0 0 auto;
    width: 88px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: center;
    scroll-snap-align: start;
    font-family: inherit;
    color: inherit;
    transition: transform .2s var(--tc-ease);
}
.tc-nearby-avatar:hover { transform: translateY(-3px); }
.tc-nearby-ring {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 0.35rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--tc-magenta), #f0a0d0);
}
.tc-nearby-avatar.is-online .tc-nearby-ring {
    box-shadow: 0 0 0 2px #1a7a3c;
}
.tc-nearby-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    border: 2px solid #fff;
}
.tc-nearby-name {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-nearby-dist {
    display: block;
    font-size: 0.7rem;
    color: var(--tc-muted);
}

/* Popup choix localisation (puis dialogue natif du navigateur) */
.tc-geo-prompt {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 10, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: tcFadeIn .25s var(--tc-ease);
}
.tc-geo-prompt[hidden] { display: none !important; }
.tc-geo-prompt-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.35rem;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    text-align: center;
}
.tc-geo-prompt-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--tc-blush);
    color: var(--tc-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.tc-geo-prompt-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--tc-ink);
    line-height: 1.35;
}
.tc-geo-prompt-text {
    margin: 0 0 1.25rem;
    color: var(--tc-muted);
    font-size: 0.92rem;
}
.tc-geo-prompt-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}
.tc-geo-prompt-actions .tc-btn { min-width: 7rem; }
.tc-geo-prompt-note {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    color: var(--tc-muted);
    min-height: 1.2em;
}

/* Compatible - grille de cartes alignée au design T'COEUR */
.tc-compatible {
    margin-top: 0.25rem;
}
.tc-compat-empty {
    text-align: center;
    padding: 0.5rem 0.75rem 1.25rem;
    max-width: 28rem;
    margin: 0 auto;
}
.tc-compat-lead {
    font-family: var(--tc-font-display);
    font-size: 1.15rem;
    color: var(--tc-ink);
    margin: 0 0 0.5rem;
}
.tc-compat-sub {
    color: var(--tc-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.45;
}
.tc-compat-next a {
    color: var(--tc-magenta);
    font-weight: 600;
    text-decoration: none;
}
.tc-compat-next a:hover { text-decoration: underline; }

.tc-compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 0.9rem;
    padding: 0.15rem 0 0.5rem;
}
.tc-compat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 16px;
    overflow: hidden;
    text-align: left;
    transition: box-shadow .25s var(--tc-ease), transform .25s var(--tc-ease);
    animation: tcRise .5s var(--tc-ease) both;
}
.tc-compat-card:hover {
    box-shadow: 0 10px 28px rgba(181, 15, 140, 0.14);
    transform: translateY(-2px);
}
.tc-compat-card.is-online::after {
    content: '';
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a7a3c;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(26, 122, 60, 0.25);
}
.tc-compat-badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 2;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--tc-magenta);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}
.tc-compat-photo {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: var(--tc-blush, #fce4f2);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.tc-compat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s var(--tc-ease);
}
.tc-compat-card:hover .tc-compat-photo img {
    transform: scale(1.04);
}
.tc-compat-body {
    padding: 0.7rem 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.tc-compat-name {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tc-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-compat-meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--tc-muted);
}
.tc-compat-bio {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    color: var(--tc-ink);
    line-height: 1.35;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tc-compat-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.65rem;
}
.tc-compat-actions form {
    margin: 0;
    flex: 1;
}
.tc-compat-btn {
    width: 100%;
    height: 2.15rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background .2s var(--tc-ease), color .2s var(--tc-ease), transform .15s var(--tc-ease);
}
.tc-compat-btn:active { transform: scale(0.96); }
.tc-compat-like {
    background: #fce4f2;
    color: var(--tc-magenta);
}
.tc-compat-like.is-liked,
.tc-compat-like:hover {
    background: var(--tc-magenta);
    color: #fff;
}
.tc-compat-chat {
    background: #fff0f8;
    color: var(--tc-magenta-deep, #8a0b6a);
}
.tc-compat-chat:hover {
    background: var(--tc-magenta-deep, #8a0b6a);
    color: #fff;
}
.tc-compat-view {
    background: #f1f5f9;
    color: var(--tc-ink);
    flex: 1;
}
.tc-compat-view:hover {
    background: var(--tc-ink);
    color: #fff;
}

/* Ancien markup (si encore présent ailleurs) */
.tc-compatible .user-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.tc-compatible .user-card {
    margin: 0;
}

/* Profile tiles (interaction surfaces) */
.tc-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.user-card,
.like-container,
.match-container,
.message-container,
.tc-card {
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
    padding: 0.85rem;
    text-align: center;
    transition: box-shadow .25s var(--tc-ease), transform .25s var(--tc-ease);
    animation: tcRise .5s var(--tc-ease) both;
}
.user-card:hover,
.like-container:hover,
.match-container:hover,
.message-container:hover {
    box-shadow: 0 10px 28px rgba(181, 15, 140, 0.12);
    transform: translateY(-2px);
}

/* Badge cœur / œil - différencie likes et vues */
.tc-interest-card {
    position: relative;
    overflow: visible;
}
.tc-interest-card--like {
    border-color: rgba(201, 24, 74, 0.28);
    box-shadow: 0 0 0 1px rgba(201, 24, 74, 0.06);
}
.tc-interest-card--view {
    border-color: rgba(26, 143, 136, 0.35);
    box-shadow: 0 0 0 1px rgba(26, 143, 136, 0.08);
}
.tc-interest-badge {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    z-index: 6;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
    pointer-events: none;
    border: 2px solid #fff;
}
.tc-interest-badge--like {
    background: linear-gradient(145deg, #ff6b8a, #c9184a);
    box-shadow:
        0 0 0 0 rgba(201, 24, 74, 0.45),
        0 6px 14px rgba(201, 24, 74, 0.4);
    animation: tcBadgeHeartBlink 1.35s ease-in-out infinite;
}
.tc-interest-badge--view {
    background: linear-gradient(145deg, #5eead4, #0f766e);
    box-shadow:
        0 0 0 0 rgba(15, 118, 110, 0.45),
        0 6px 14px rgba(15, 118, 110, 0.4);
    animation: tcBadgeEyeBlink 1.55s ease-in-out infinite;
}
.tc-interest-badge--view i {
    animation: tcEyeWink 1.55s ease-in-out infinite;
}
@keyframes tcBadgeHeartBlink {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(201, 24, 74, 0.45),
            0 6px 14px rgba(201, 24, 74, 0.4);
        filter: brightness(1);
    }
    40% {
        transform: scale(1.14);
        box-shadow:
            0 0 0 10px rgba(201, 24, 74, 0),
            0 8px 18px rgba(201, 24, 74, 0.55);
        filter: brightness(1.15);
    }
    55% {
        transform: scale(0.96);
    }
}
@keyframes tcBadgeEyeBlink {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow:
            0 0 0 0 rgba(15, 118, 110, 0.4),
            0 6px 14px rgba(15, 118, 110, 0.4);
        filter: brightness(1);
    }
    35% {
        transform: scale(1.12) rotate(-6deg);
        box-shadow:
            0 0 0 10px rgba(15, 118, 110, 0),
            0 8px 18px rgba(15, 118, 110, 0.55);
        filter: brightness(1.18);
    }
    50% {
        transform: scale(0.94) rotate(4deg);
    }
}
@keyframes tcEyeWink {
    0%, 42%, 58%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.15); }
}

.user-card img,
.like-container img.profile-pic,
.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}
.message-container {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    cursor: pointer;
    margin-bottom: 0.75rem;
}
.message-container .profile-pic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bottom nav */
.tc-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #0d0a0c;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
    overflow: visible;
}
.tc-nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0.65rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom, 0));
    overflow: visible;
}
.tc-nav li {
    position: relative;
    flex: 1 1 0;
    overflow: visible;
}
.tc-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    color: var(--tc-magenta);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.35rem;
    min-width: 0;
    width: 100%;
    overflow: visible;
    transition: color .2s var(--tc-ease), transform .2s var(--tc-ease);
}
.tc-nav-link i { font-size: 1.35rem; }
.tc-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.5rem;
    overflow: visible;
}
.tc-nav-badge {
    position: absolute;
    top: -0.4rem;
    left: 55%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 2px #0d0a0c;
    pointer-events: none;
    white-space: nowrap;
    box-sizing: border-box;
    transform-origin: center center;
}
.tc-nav-badge.is-empty {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    /* garde la place pour éviter le saut de layout */
    min-width: 0;
    width: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: none;
}
.tc-nav-badge.is-bump {
    animation: tcBadgeBump 0.35s ease-out;
}
@keyframes tcBadgeBump {
    0% { transform: scale(0.6); }
    55% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
.tc-nav-link.is-active {
    color: #fff;
    transform: translateY(-2px);
}

/* Footer */
.tc-footer {
    text-align: center;
    color: var(--tc-muted);
    padding: 2rem 1rem calc(1.25rem + var(--tc-nav-h));
    font-size: 0.88rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--tc-line);
    background:
        linear-gradient(180deg, transparent, rgba(252, 228, 242, 0.45));
}
.tc-footer-inner {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}
.tc-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tc-footer-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}
.tc-footer-name {
    font-family: var(--tc-font-display);
    font-size: 1.15rem;
    color: var(--tc-magenta);
    letter-spacing: 0.04em;
}
.tc-footer-time {
    margin: 0;
    font-variant-numeric: tabular-nums;
    color: var(--tc-muted);
    font-size: 0.85rem;
}
.tc-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}
.tc-footer-nav a {
    color: var(--tc-magenta);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}
.tc-footer-nav a:hover {
    text-decoration: underline;
}
.tc-footer-logout {
    margin: 0.35rem 0 0;
}
.tc-btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}
.tc-footer--profil {
    padding-bottom: calc(1.5rem + var(--tc-nav-h));
}
.tc-footer a { color: var(--tc-magenta); }
.tc-footer-links { margin-top: 0.35rem; }

/* Auth */
.tc-auth .tc-main { max-width: 420px; }
.tc-auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--tc-line);
    border-radius: 16px;
    padding: 1.75rem 1.35rem;
    margin-top: 2rem;
}
.tc-auth-card h1 {
    font-family: var(--tc-font-display);
    color: var(--tc-magenta);
    text-align: center;
    margin-top: 0;
}
.tc-form label {
    display: block;
    margin: 0.75rem 0 0.3rem;
    font-weight: 500;
}
.tc-form input[type="email"],
.tc-form input[type="password"],
.tc-form input[type="text"],
.tc-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--tc-line);
    border-radius: 10px;
    font: inherit;
}
.tc-form button,
.tc-form .tc-btn { width: 100%; margin-top: 1rem; text-align: center; }
.tc-error { color: var(--tc-error); }
.tc-ok { color: var(--tc-ok); }

/* Boosters */
.tc-booster-hero {
    text-align: center;
    padding: 0.75rem 0.25rem 1.1rem;
    animation: tcRise 0.5s var(--tc-ease) both;
}
.tc-booster-hero-title {
    font-family: var(--tc-font-display);
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    color: var(--tc-magenta);
    margin: 0 0 0.9rem;
    letter-spacing: 0.02em;
}
.tc-booster-hero-hint {
    max-width: 28rem;
    margin: 0.85rem auto 0;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: rgba(181, 15, 140, 0.08);
    color: var(--tc-ink, #1a0a14);
    font-size: 0.9rem;
    line-height: 1.4;
}
.tc-booster-hero-benefits {
    max-width: 32rem;
    margin: 0.75rem auto 0;
    color: #6b4a5c;
    font-size: 0.86rem;
    line-height: 1.45;
}
.tc-booster-hero-benefits strong {
    color: var(--tc-magenta, #B50F8C);
}
.tc-booster-wallet {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 22rem;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(181, 15, 140, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 228, 242, 0.65) 100%);
    box-shadow: 0 10px 28px rgba(26, 10, 20, 0.06);
}
.tc-booster-wallet-balance,
.tc-booster-wallet-mode {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    min-width: 0;
}
.tc-booster-wallet-mode {
    flex-direction: row;
    gap: 0.65rem;
    text-align: left;
}
.tc-booster-wallet-mode-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.tc-booster-wallet-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(181, 15, 140, 0.22), transparent);
}
.tc-booster-wallet-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tc-muted);
}
.tc-booster-wallet-amount {
    font-family: var(--tc-font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--tc-ink);
    line-height: 1.15;
    letter-spacing: 0.01em;
}
.tc-booster-wallet-mode strong {
    font-size: 1.05rem;
    color: var(--tc-ink);
    line-height: 1.2;
}
.tc-booster-wallet-mode-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.95rem;
}
.tc-booster-wallet-mode.is-lite .tc-booster-wallet-mode-icon {
    background: linear-gradient(145deg, #c4a0b4, #8a6a7c);
}
.tc-booster-wallet-mode.is-premium .tc-booster-wallet-mode-icon {
    background: linear-gradient(145deg, #f0c14a, #c99212);
    box-shadow: 0 4px 12px rgba(201, 146, 18, 0.35);
}
.tc-booster-wallet-mode.is-premium strong {
    color: #9a7010;
}

.tc-booster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
    gap: 1.15rem;
    padding-bottom: 0.5rem;
}

/* Packs boutique - aspect “carte power-up” */
.tc-booster-card {
    --tc-pack-a: #e85bc0;
    --tc-pack-b: #B50F8C;
    --tc-pack-c: #6a0a52;
    --tc-pack-ink: #1a0a14;
    --tc-pack-soft: rgba(181, 15, 140, 0.12);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
    padding: 1.1rem 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--tc-pack-b) 28%, transparent);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, color-mix(in srgb, var(--tc-pack-a) 14%, #fff) 48%, #fff 100%),
        radial-gradient(ellipse 90% 55% at 50% -5%, var(--tc-pack-soft), transparent 62%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 14px 32px rgba(26, 10, 20, 0.08);
    overflow: hidden;
    isolation: isolate;
    animation: tcBoosterCardIn 0.55s var(--tc-ease) both;
    animation-delay: calc(var(--tc-card-i, 1) * 45ms);
    transition: transform 0.35s var(--tc-ease), box-shadow 0.35s var(--tc-ease);
}
@keyframes tcBoosterCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to { opacity: 1; transform: none; }
}
.tc-booster-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 22px 40px rgba(26, 10, 20, 0.12);
}
.tc-booster-card-foil {
    pointer-events: none;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.55) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    opacity: 0;
}
.tc-booster-card:hover .tc-booster-card-foil {
    animation: tcBoosterFoil 0.85s var(--tc-ease) both;
}
@keyframes tcBoosterFoil {
    from { transform: translateX(-120%); opacity: 0; }
    20% { opacity: 0.7; }
    to { transform: translateX(120%); opacity: 0; }
}
.tc-booster-card-top,
.tc-booster-card-medallion,
.tc-booster-card-name,
.tc-booster-card-desc-wrap,
.tc-booster-card-footer {
    position: relative;
    z-index: 1;
}
.tc-booster-card-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.tc-booster-card-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tc-pack-b);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tc-pack-a) 18%, #fff);
    border: 1px solid color-mix(in srgb, var(--tc-pack-b) 22%, transparent);
}
.tc-booster-card-chip {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--tc-pack-a), var(--tc-pack-b));
    box-shadow: 0 4px 10px color-mix(in srgb, var(--tc-pack-b) 35%, transparent);
    white-space: nowrap;
}
.tc-booster-card-medallion {
    position: relative;
    width: 4.6rem;
    height: 4.6rem;
    margin: 0.15rem 0 0.85rem;
    display: grid;
    place-items: center;
}
.tc-booster-card-medallion-glow {
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tc-pack-a) 45%, transparent), transparent 68%);
    animation: tcBoosterGlow 2.8s ease-in-out infinite;
}
@keyframes tcBoosterGlow {
    0%, 100% { opacity: 0.55; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1.05); }
}
.tc-booster-card-medallion-core {
    position: relative;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.55rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%),
        linear-gradient(160deg, var(--tc-pack-a), var(--tc-pack-b) 55%, var(--tc-pack-c));
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 10px 22px color-mix(in srgb, var(--tc-pack-b) 40%, transparent),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.tc-booster-card-name {
    margin: 0 0 0.4rem;
    font-family: var(--tc-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--tc-pack-ink);
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.tc-booster-card-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--tc-muted);
}
.tc-booster-card-desc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    flex: 1;
    width: 100%;
}
.tc-booster-card-info {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border: 1px solid color-mix(in srgb, var(--tc-pack-b) 28%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--tc-pack-b);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--tc-ease);
}
.tc-booster-card-info:hover {
    background: color-mix(in srgb, var(--tc-pack-a) 18%, #fff);
    transform: translateY(-1px);
}
.tc-booster-card-info i {
    font-size: 0.85rem;
    margin: 0;
    color: inherit;
}

.tc-booster-info-dialog {
    border: none;
    padding: 0;
    max-width: min(92vw, 26rem);
    background: transparent;
}
.tc-booster-info-dialog::backdrop {
    background: rgba(26, 10, 20, 0.55);
    backdrop-filter: blur(4px);
}
.tc-booster-info-panel {
    position: relative;
    padding: 1.35rem 1.25rem 1.2rem;
    border-radius: 18px;
    background:
        linear-gradient(160deg, #fff 0%, #fce4f2 100%);
    border: 1px solid rgba(181, 15, 140, 0.2);
    box-shadow: 0 22px 48px rgba(26, 10, 20, 0.2);
    text-align: center;
}
.tc-booster-info-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(181, 15, 140, 0.1);
    color: var(--tc-magenta);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.tc-booster-info-orb {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #e85bc0, var(--tc-magenta));
    box-shadow: 0 8px 18px rgba(181, 15, 140, 0.3);
}
.tc-booster-info-panel h3 {
    margin: 0 0 0.65rem;
    font-family: var(--tc-font-display);
    font-size: 1.2rem;
    color: var(--tc-ink);
}
.tc-booster-info-body {
    margin: 0 0 1.1rem;
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--tc-muted);
}
.tc-booster-info-ok {
    width: 100%;
    margin: 0;
}
.tc-booster-card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid color-mix(in srgb, var(--tc-pack-b) 16%, transparent);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.tc-booster-card-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.05rem;
    font-family: var(--tc-font-display);
    color: var(--tc-pack-ink);
}
.tc-booster-card-price-value {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}
.tc-booster-card-price-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tc-muted);
}
.tc-booster-card-buy {
    width: 100%;
    margin: 0;
}
.tc-booster-card-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 !important;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--tc-pack-a), var(--tc-pack-b)) !important;
    border: none !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--tc-pack-b) 32%, transparent);
    transition: transform 0.2s var(--tc-ease), filter 0.2s ease;
}
.tc-booster-card-cta:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.tc-booster-card-cta i {
    font-size: 0.85rem;
    margin: 0;
    color: inherit;
}

/* Variantes par type */
.tc-booster-card--boost {
    --tc-pack-a: #9b8cff;
    --tc-pack-b: #5a4ad4;
    --tc-pack-c: #2f268a;
    --tc-pack-soft: rgba(90, 74, 212, 0.16);
}
.tc-booster-card--premium {
    --tc-pack-a: #f5d56a;
    --tc-pack-b: #c99212;
    --tc-pack-c: #8a6408;
    --tc-pack-soft: rgba(201, 146, 18, 0.2);
}
.tc-booster-card--premium.is-featured {
    border-color: rgba(201, 146, 18, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 245, 200, 0.9) inset,
        0 16px 36px rgba(201, 146, 18, 0.18);
}
.tc-booster-card--messages {
    --tc-pack-a: #e85bc0;
    --tc-pack-b: #B50F8C;
    --tc-pack-c: #6a0a52;
    --tc-pack-soft: rgba(181, 15, 140, 0.14);
}
.tc-booster-card--delete_messages {
    --tc-pack-a: #ff8f7a;
    --tc-pack-b: #d94a3a;
    --tc-pack-c: #8a2418;
    --tc-pack-soft: rgba(217, 74, 58, 0.14);
}
.tc-booster-card--ephemeral_messages {
    --tc-pack-a: #7ad4ff;
    --tc-pack-b: #2a8fc4;
    --tc-pack-c: #145a80;
    --tc-pack-soft: rgba(42, 143, 196, 0.16);
}
.tc-booster-card--video_calls {
    --tc-pack-a: #6ee0c8;
    --tc-pack-b: #1a9f88;
    --tc-pack-c: #0c5c4e;
    --tc-pack-soft: rgba(26, 159, 136, 0.16);
}
.tc-booster-card--likes {
    --tc-pack-a: #ff7a9a;
    --tc-pack-b: #c9184a;
    --tc-pack-c: #7a0f2c;
    --tc-pack-soft: rgba(201, 24, 74, 0.16);
}
.tc-booster-card--see_likes {
    --tc-pack-a: #5fd4cc;
    --tc-pack-b: #1a8f88;
    --tc-pack-c: #0d5550;
    --tc-pack-soft: rgba(26, 143, 136, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .tc-booster-card,
    .tc-booster-card-medallion-glow,
    .tc-booster-card:hover .tc-booster-card-foil {
        animation: none;
    }
    .tc-booster-card:hover { transform: none; }
}

/* Mes boosters actifs (menu déroulant) */
.tc-myboost {
    margin: 0 0 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(181, 15, 140, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 228, 242, 0.55) 100%),
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(181, 15, 140, 0.12), transparent 55%);
    box-shadow: 0 10px 28px rgba(26, 10, 20, 0.06);
    overflow: hidden;
    animation: tcRise 0.55s var(--tc-ease) both;
}
.tc-myboost-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    user-select: none;
}
.tc-myboost-summary::-webkit-details-marker { display: none; }
.tc-myboost-summary-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}
.tc-myboost-orb {
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #d61aa3, var(--tc-magenta-deep));
    box-shadow: 0 6px 16px rgba(181, 15, 140, 0.35);
    animation: tcMyBoostPulse 2.4s ease-in-out infinite;
}
.tc-myboost-summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.tc-myboost-summary-text strong {
    font-family: var(--tc-font-display);
    font-size: 1.15rem;
    color: var(--tc-ink);
    line-height: 1.2;
}
.tc-myboost-summary-text small {
    color: var(--tc-muted);
    font-size: 0.82rem;
}
.tc-myboost-summary-right {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
}
.tc-myboost-pill {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--tc-magenta);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tc-myboost-chevron {
    color: var(--tc-magenta);
    transition: transform 0.35s var(--tc-ease);
}
.tc-myboost[open] .tc-myboost-chevron {
    transform: rotate(180deg);
}
.tc-myboost-panel {
    padding: 0 1rem 1.1rem;
    border-top: 1px solid rgba(181, 15, 140, 0.12);
    animation: tcFadeIn 0.35s var(--tc-ease);
}
.tc-myboost-empty {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0.35rem 0.25rem;
    color: var(--tc-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}
.tc-myboost-empty i {
    color: var(--tc-magenta);
    margin-top: 0.15rem;
}
.tc-myboost-list {
    list-style: none;
    margin: 0.85rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.tc-myboost-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--tc-line);
    transition: transform 0.25s var(--tc-ease), box-shadow 0.25s var(--tc-ease);
}
.tc-myboost-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 10, 20, 0.07);
}
.tc-myboost-item-icon {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #e85bc0, var(--tc-magenta));
}
.tc-myboost-item--premium .tc-myboost-item-icon {
    background: linear-gradient(145deg, #f0c14a, #c99212);
}
.tc-myboost-item--boost .tc-myboost-item-icon {
    background: linear-gradient(145deg, #7c6cff, #4b3fd6);
}
.tc-myboost-item--see_likes .tc-myboost-item-icon {
    background: linear-gradient(145deg, #4ecdc4, #1a8f88);
}
.tc-myboost-item--likes .tc-myboost-item-icon {
    background: linear-gradient(145deg, #ff6b8a, #c9184a);
}
.tc-myboost-item-body {
    flex: 1;
    min-width: 0;
}
.tc-myboost-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tc-myboost-item-top strong {
    font-size: 1rem;
    color: var(--tc-ink);
}
.tc-myboost-status {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tc-ok);
    background: #e6f6ec;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.tc-myboost-detail {
    margin: 0.25rem 0 0;
    font-size: 0.86rem;
    color: var(--tc-muted);
}
.tc-myboost-until {
    margin: 0.45rem 0 0;
    font-size: 0.84rem;
    color: var(--tc-ink);
}
.tc-myboost-until i {
    color: var(--tc-magenta);
    margin-right: 0.25rem;
}
.tc-myboost-until--credits {
    color: var(--tc-muted);
}
.tc-myboost-bar {
    margin-top: 0.55rem;
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(181, 15, 140, 0.12);
    overflow: hidden;
}
.tc-myboost-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tc-magenta), #f0a0d0);
    transition: width 0.5s var(--tc-ease);
}
@keyframes tcMyBoostPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(181, 15, 140, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 8px 22px rgba(181, 15, 140, 0.48); }
}
@media (max-width: 520px) {
    .tc-myboost-summary {
        padding: 0.9rem 0.95rem;
    }
    .tc-myboost-summary-text strong {
        font-size: 1.05rem;
    }
}

/* Chat header */
.tc-chat-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--tc-magenta);
    color: #fff;
    padding: 0.75rem 1rem;
}
.tc-chat-header a { color: #fff; }
.tc-chat-header .profile-pic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}
.btn-video-call {
    margin-left: auto;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-video-call--buy {
    opacity: 0.9;
    font-size: 0.8rem;
}

/* Match hearts */
.heart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 6px;
}
.heart-container img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.heart-container .fa-heart {
    position: absolute;
    font-size: 28px;
    color: var(--tc-magenta);
    animation: heartbeat 2.5s infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(0.7); }
    50% { transform: scale(1.15); }
}
.icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.6rem;
}
.icons button {
    color: var(--tc-magenta);
    background: none;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
}

/* Profil legacy helpers (scoped) */
.tc-profil fieldset {
    border: 1px solid var(--tc-line);
    border-radius: 12px;
    padding: 1rem;
}
.tc-profil h3, .tc-profil h4 {
    color: var(--tc-magenta);
    font-family: var(--tc-font-display);
}

/* Compat: anciennes classes menu */
.menu { display: none; }

/* Notifications messages */
.tc-notify-banner {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(var(--tc-nav-h, 72px) + 0.75rem);
    z-index: 80;
    max-width: 520px;
    margin: 0 auto;
}
.tc-notify-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(181, 15, 140, 0.18);
}
.tc-notify-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1 1 180px;
}
.tc-notify-banner-text strong {
    color: var(--tc-magenta);
    font-family: var(--tc-font-display);
}
.tc-notify-banner-text span {
    color: var(--tc-muted);
    font-size: 0.88rem;
    line-height: 1.35;
}
.tc-notify-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.tc-notify-toasts {
    position: fixed;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(92vw, 360px);
    pointer-events: none;
}
.tc-notify-toast {
    pointer-events: auto;
    text-align: left;
    border: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--tc-magenta);
    color: #fff;
    box-shadow: 0 8px 24px rgba(181, 15, 140, 0.28);
    font: inherit;
    animation: tcRise .35s var(--tc-ease) both;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.tc-notify-toast-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    background: #fff;
}
.tc-notify-toast-text {
    min-width: 0;
    flex: 1;
}
.tc-notify-toast strong {
    display: block;
    margin-bottom: 0.2rem;
}
.tc-notify-toast span {
    display: block;
    font-size: 0.88rem;
    opacity: 0.92;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-notify-settings {
    margin: 1.5rem 0;
    padding: 1.1rem 1rem;
    background: #fff;
    border: 1px solid var(--tc-line);
    border-radius: 14px;
}
.tc-notify-settings h3 {
    margin: 0 0 0.5rem;
    font-family: var(--tc-font-display);
    color: var(--tc-magenta);
}
.tc-notify-settings-desc {
    margin: 0 0 0.75rem;
    color: var(--tc-muted);
    font-size: 0.92rem;
}
.tc-notify-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.tc-notify-settings-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--tc-muted);
}
.tc-notify-status {
    font-weight: 700;
}
.tc-notify-status.is-on { color: var(--tc-ok); }
.tc-notify-status.is-off { color: var(--tc-magenta); }
.tc-notify-status.is-blocked { color: var(--tc-error); }

/* Rejet match / like */
.tc-reject-btn { color: #9a3412 !important; }
.tc-section-hint {
    text-align: center;
    color: var(--tc-muted);
    font-size: 0.9rem;
    margin: -0.35rem auto 1rem;
    max-width: 28rem;
}
.tc-section-hint a { color: var(--tc-magenta); font-weight: 600; }
.tc-compat-quota {
    text-align: center;
    color: var(--tc-muted);
    font-size: 0.88rem;
    margin: 0 0 0.85rem;
}
.tc-compat-quota a { color: var(--tc-magenta); font-weight: 600; }
.tc-compat-need-boost {
    background: #f1f5f9 !important;
    color: var(--tc-muted) !important;
    text-decoration: none;
}
.tc-fav-status {
    margin: 0.25rem 0 0;
    color: var(--tc-magenta);
    font-size: 0.85rem;
    font-weight: 600;
}
.tc-like-visual {
    position: relative;
    display: inline-block;
}
.like-container.is-blurred {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}
.like-container.is-blurred .tc-like-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    /* Bloque clic, appui long, menu contextuel sur la zone floutée */
    touch-action: none;
}
.like-container.is-blurred .profile-pic {
    filter: blur(10px) brightness(0.85);
    transform: scale(1.05);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
.like-container.is-blurred .tc-like-visual,
.like-container.is-blurred .tc-like-mystery {
    pointer-events: none;
}
.like-container.is-blurred .tc-like-reveal {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
.tc-like-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    pointer-events: none;
}
.tc-like-mystery {
    color: var(--tc-muted);
    font-weight: 600;
}
.tc-btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}
.like-container.is-leaving,
.match-container.is-leaving,
.tc-compat-card.is-leaving,
.tc-favorite-card.is-leaving {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
    transition: opacity .28s var(--tc-ease), transform .28s var(--tc-ease);
    pointer-events: none;
}

/* Célébration de match */
body.tc-match-open { overflow: hidden; }
.tc-match-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: radial-gradient(ellipse at center, rgba(40, 8, 28, 0.55) 0%, rgba(15, 4, 12, 0.88) 70%);
    opacity: 0;
    transition: opacity .35s var(--tc-ease);
}
.tc-match-overlay.is-visible { opacity: 1; }

.tc-match-spiral {
    position: absolute;
    width: min(92vw, 520px);
    height: min(92vw, 520px);
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 190, 220, 0.08) 40deg,
            rgba(181, 15, 140, 0.45) 90deg,
            rgba(255, 220, 180, 0.35) 140deg,
            rgba(240, 120, 180, 0.2) 200deg,
            transparent 280deg,
            rgba(181, 15, 140, 0.4) 320deg,
            transparent 360deg);
    filter: blur(1px);
    animation: tcSpiralSpin 7s linear infinite;
    box-shadow:
        0 0 60px rgba(181, 15, 140, 0.35),
        inset 0 0 80px rgba(255, 200, 230, 0.15);
}
.tc-match-spiral::before,
.tc-match-spiral::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px solid rgba(255, 210, 230, 0.25);
    animation: tcSpiralSpin 11s linear infinite reverse;
}
.tc-match-spiral::after {
    inset: 28%;
    border-color: rgba(255, 180, 120, 0.3);
    animation-duration: 5.5s;
}
.tc-match-ray {
    position: absolute;
    width: min(110vw, 640px);
    height: min(110vw, 640px);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 230, 210, 0.55) 0%,
        rgba(255, 160, 200, 0.28) 28%,
        rgba(181, 15, 140, 0.12) 52%,
        transparent 70%);
    animation: tcRayPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes tcSpiralSpin {
    to { transform: rotate(360deg); }
}
@keyframes tcRayPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.75; }
    50% { transform: scale(1.08); opacity: 1; }
}

.tc-match-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.tc-match-float-heart {
    position: absolute;
    bottom: -10%;
    color: #f7a0c8;
    animation-name: tcHeartRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    text-shadow: 0 0 10px rgba(181, 15, 140, 0.45);
}
@keyframes tcHeartRise {
    0% { transform: translateY(0) rotate(0deg) scale(0.7); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translateY(-115vh) rotate(28deg) scale(1.15); opacity: 0; }
}

.tc-match-stage {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 420px;
    width: 100%;
    animation: tcRise .55s var(--tc-ease) both;
}
.tc-match-title {
    margin: 0 0 1.25rem;
    font-family: var(--tc-font-display);
    font-size: clamp(1.6rem, 5vw, 2.15rem);
    color: #ffe6f2;
    letter-spacing: 0.02em;
    text-shadow: 0 0 24px rgba(255, 160, 200, 0.55);
}
.tc-match-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 1.35rem;
}
.tc-match-avatar {
    margin: 0;
    width: 118px;
}
.tc-match-avatar img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 230, 240, 0.95);
    box-shadow:
        0 0 0 4px rgba(181, 15, 140, 0.35),
        0 12px 36px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(255, 180, 210, 0.35);
    background: #2a1020;
    animation: tcAvatarPop .55s var(--tc-ease) both;
}
.tc-match-avatar:last-of-type img { animation-delay: .12s; }
@keyframes tcAvatarPop {
    from { transform: scale(0.4); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.tc-match-avatar figcaption {
    margin-top: 0.45rem;
    color: #f8d5e8;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-match-heart-center {
    color: #ff6bab;
    font-size: 1.75rem;
    animation: heartbeat 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 120, 180, 0.8));
    flex-shrink: 0;
}
.tc-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.tc-match-actions .tc-btn-ghost {
    border-color: rgba(255, 220, 235, 0.55);
    color: #ffe6f2;
}
.tc-match-actions .tc-btn-primary {
    box-shadow: 0 8px 24px rgba(181, 15, 140, 0.45);
}

@media (min-width: 768px) {
    .tc-main { padding-top: 1.75rem; }
    .tc-match-avatar { width: 140px; }
    .tc-match-avatar img { width: 132px; height: 132px; }
}

/* Lightbox visionnage images (galerie + messages) */
body.tc-gallery-lb-open { overflow: hidden; }
.tc-gallery-lb {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.tc-gallery-lb[hidden] { display: none !important; }
.tc-gallery-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 10, 20, 0.82);
    backdrop-filter: blur(6px);
}
.tc-gallery-lb-panel {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 920px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-gallery-lb-img {
    display: block;
    max-width: 96vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    background: #1a0a14;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
.tc-gallery-lb-close {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    z-index: 2;
    width: 2.4rem;
    height: 2.4rem;
    border: none;
    border-radius: 50%;
    background: #B50F8C;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.tc-gallery-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #B50F8C;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.tc-gallery-lb-prev { left: -0.25rem; }
.tc-gallery-lb-next { right: -0.25rem; }
.tc-gallery-lb-counter {
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pagination */
.tc-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 1.25rem 0 0.5rem;
    padding: 0.75rem 0;
}
.tc-pagination-info {
    margin: 0;
    font-size: 0.85rem;
    color: var(--tc-muted, #6b5a66);
}
.tc-pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}
.tc-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.45rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tc-magenta, #B50F8C);
    text-decoration: none;
    border: 1px solid var(--tc-line, #e8dce3);
    background: #fff;
}
.tc-pagination-num:hover {
    border-color: var(--tc-magenta, #B50F8C);
    background: rgba(181, 15, 140, 0.06);
}
.tc-pagination-num.is-current {
    color: #fff;
    background: var(--tc-magenta, #B50F8C);
    border-color: var(--tc-magenta, #B50F8C);
}
.tc-pagination-ellipsis {
    padding: 0 0.2rem;
    color: var(--tc-muted, #6b5a66);
}
.tc-pagination .tc-btn.is-disabled,
.tc-pagination .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
