/* ============================================================
   LILEMO · Random video chat
   Thème rouge/noir · état-driven layout (home | searching | connected)
   ============================================================ */

:root {
    color-scheme: dark;
    --bg:             #0A0B0E;
    --bg-soft:        #141419;
    --surface:        #1F1F25;
    --surface-2:      #2A2A31;

    --ink:            #FFFFFF;
    --ink-soft:       #D6D8DE;
    --ink-mute:       #9CA0AB;

    --red:            #EF4555;
    --red-hot:        #F25563;
    --red-deep:       #C83543;
    --red-dark:       #8E2A33;
    --red-darker:     #5E1C22;

    --border:         rgba(255, 255, 255, 0.08);
    --border-strong:  rgba(255, 255, 255, 0.16);

    --r-sm:   12px;
    --r-md:   18px;
    --r-lg:   24px;
    --r-xl:   32px;
    --r-pill: 999px;

    --ease:   cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 200ms;
    --t-base: 420ms;
    --t-slow: 700ms;

    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
            'SF Pro Display', system-ui, sans-serif;

    /* Padding du cadre "téléphone" */
    --pad-x: 18px;
    --pad-top: max(6px, env(safe-area-inset-top));
    --pad-bot: env(safe-area-inset-bottom);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; background: none; border: 0; color: inherit; font: inherit; }
ul { list-style: none; }

html {
    height: 100%;
    overflow: hidden;
    background: #0A0B0E;
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: manipulation;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    -webkit-text-size-adjust: 100%;
    -webkit-touch-callout: none;
}
* { touch-action: manipulation; }
input, textarea { touch-action: auto; } /* saisie OK */

.ico    { width: 20px; height: 20px; flex: none; display: inline-block; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 32px; height: 32px; }

/* ============================================================
   LAYOUT — trame principale en grille
   ============================================================ */
#app {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--pad-top) var(--pad-x) var(--pad-bot);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    overflow: hidden;
    isolation: isolate;
}

/* ============================================================
   VISIBILITÉ SELON L'ÉTAT — data-show="home|chat|searching"
   ============================================================ */
[data-show="home"]      { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
[data-show="chat"]      { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
[data-show="searching"] { transition: opacity var(--t-fast) var(--ease); }

#app[data-state="home"]       [data-show="chat"],
#app[data-state="home"]       [data-show="searching"]  { opacity: 0; pointer-events: none; }
#app[data-state="searching"]  [data-show="home"]       { opacity: 0; pointer-events: none; }
#app[data-state="searching"]  [data-show="chat"]       { opacity: 1; }
#app[data-state="connected"]  [data-show="home"]       { opacity: 0; pointer-events: none; }
#app[data-state="connected"]  [data-show="searching"]  { opacity: 0; pointer-events: none; }
#app[data-state="connected"]  [data-show="chat"]       { opacity: 1; }


/* ============================================================
   TOP BAR — headers superposés (grid-area stacking)
   ============================================================ */
.top-bar {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 44px;
    position: relative;
    z-index: 5;
}

/* Collapse top bar when chat controls live inside the remote-frame */
#app[data-state="searching"] .top-bar,
#app[data-state="connected"]  .top-bar {
    min-height: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-header, .chat-header {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

/* --- Header HOME : barre filtres + profil --- */
.home-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--red-darker);
    padding: 8px;
    border-radius: var(--r-pill);
}

/* --- Bouton Genre : pill qui s'étire vers le bas (split pill) --- */
/* genre-host réserve l'espace dans le flex row via le placeholder invisible */
.genre-host {
    flex: 1;
    position: relative;
}
/* Placeholder invisible pour maintenir la taille du host */
.genre-placeholder {
    visibility: hidden;
    pointer-events: none;
    width: 100%;
    padding: 10px 16px;
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    letter-spacing: -0.01em;
    display: block;
}
/* Pill absolue : fixe en haut du host, s'étire vers le bas, coins constants */
.genre-pill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--red);
    border-radius: 21px;
    overflow: hidden;
    z-index: 10;
}
.genre-trigger {
    width: 100%;
    padding: 10px 16px;
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: center;
    background: transparent;
}
.genre-trigger:active { background: rgba(0,0,0,0.1); }
.genre-options {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.genre-options.is-open { max-height: 200px; }
.genre-opt {
    padding: 9px 16px;
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    letter-spacing: -0.01em;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.genre-opt + .genre-opt { border-top: 1px solid rgba(255,255,255,0.12); }
.genre-opt:hover  { background: rgba(0,0,0,0.1); color: #fff; }
.genre-opt.is-selected { color: #fff; background: rgba(0,0,0,0.15); }

.name-pill {
    flex: 1;
    padding: 8px 18px;
    background: var(--red);
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    min-height: 44px;
    box-shadow: 0 6px 18px rgba(239, 69, 85, 0.25);
}

.name-text {
    font-weight: 800;
    font-style: italic;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.01em;
}

.profile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
    box-shadow: 0 6px 18px rgba(239, 69, 85, 0.25);
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.profile-btn:hover  { background: var(--red-hot); }
.profile-btn:active { transform: scale(0.94); }
.profile-btn .ico   { width: 24px; height: 24px; }

/* --- Header CHAT : controls uniquement (nom déplacé en bas) --- */
.chat-header {
    display: flex;
    align-items: center;
    padding-right: 110px; /* place pour le self-pip top-right */
}

.remote-info { min-width: 0; }

.remote-name {
    font-weight: 800;
    font-style: italic;
    font-size: 22px;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remote-country {
    font-weight: 500;
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 2px;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-btn {
    padding: 8px 16px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-style: italic;
    font-size: 14px;
    color: #fff;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.pill-btn:active { transform: scale(0.96); }

.pill-dark {
    background: var(--red);
}
.pill-dark:hover { background: var(--red-hot); }

.media-pill {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--red);
    border-radius: var(--r-pill);
    padding: 3px 4px;
}

.media-btn {
    width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: var(--r-pill);
    transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.media-btn:hover  { background: rgba(255, 255, 255, 0.12); }
.media-btn:active { transform: scale(0.92); }
.media-btn .ico   { width: 18px; height: 18px; }

.media-ico-off { display: none; }
.media-btn[aria-pressed="true"] .media-ico-on  { display: none; }
.media-btn[aria-pressed="true"] .media-ico-off { display: inline-block; }
.media-btn[aria-pressed="true"] { background: rgba(0, 0, 0, 0.30); }

/* ============================================================
   STAGE — zone centrale (aperçu caméra + vidéo distante)
   ============================================================ */
.stage {
    min-height: 0;
}

/* ---- Self preview : overlay dans #app qui morph entre plein cadre et PiP ----
   Variables de hauteurs figées pour rendre l'animation continue.
   --h-topbar   : hauteur du top-bar (le chat-header défini la taille max, ~88px)
   --h-cta      : hauteur du bouton principal (~62px)
   --h-filters  : hauteur de la barre de filtres (~60px, masquée en chat)
   --gap        : gap du grid parent (10px)
   ---------------------------------------------------------------------- */
:root {
    --h-topbar:      60px;
    --h-cta:         62px;
    --h-filters:     60px;
    --h-remote-info: 36px;
    --gap:           10px;
}

.self-frame {
    position: absolute;
    z-index: 4;
    overflow: hidden;
    background: #000;
    border-radius: 0 0 var(--r-md) var(--r-md);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);

    /* État HOME — plein écran, touche les bords, dépasse en haut */
    top:    0;
    left:   0;
    width:  100%;
    height: calc(100dvh - var(--pad-bot) - var(--h-cta) - var(--gap));

    transition:
        top           var(--t-base) var(--ease),
        left          var(--t-base) var(--ease),
        width         var(--t-base) var(--ease),
        height        var(--t-base) var(--ease),
        opacity       var(--t-base) var(--ease),
        border-radius var(--t-base) var(--ease);
    border: 0 solid transparent;
}

.self-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* mirrored by default (front cam) */
}
#video-self.is-back-cam {
    transform: none;
    background: #0E0E12;
    pointer-events: none;
}

video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

/* Wordmark text logo */
.zapp-wordmark {
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    color: var(--red);
    line-height: 1;
    display: inline-block;
    user-select: none;
}
.zapp-wordmark-lg  { font-size: 44px; }
.zapp-wordmark-xl  { font-size: 64px; }

/* Wordmark accueil : centré en bas (ambiance "chat" même sur home). */
.self-wordmark {
    position: absolute;
    bottom: calc(var(--pad-bot) + var(--h-cta) + var(--gap) + 12px);
    left: 50%;
    transform: translateX(-50%);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.55);
    pointer-events: auto;
    z-index: 6;
    user-select: none;
}
#app[data-state="searching"] .self-wordmark,
#app[data-state="connected"]  .self-wordmark { display: none; }

/* Actions bas-gauche (accueil) — historique + messages, SOUS le logo Zapp! */
.home-actions {
    position: absolute;
    bottom: calc(var(--pad-bot) + var(--h-cta) + var(--gap) + 10px);
    left: 10px;
    display: flex;
    gap: 10px;
    z-index: 6;
}
#app[data-state="searching"] .home-actions,
#app[data-state="connected"]  .home-actions { display: none; }

.home-action-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.home-action-btn:hover  { background: var(--red-hot); }
.home-action-btn:active { transform: scale(0.94); }
.home-action-btn .ico   { width: 22px; height: 22px; }

.home-action-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--red);
}
.home-action-dot[hidden] { display: none; }

/* History / Messages / DM panels (slide-up, same as profile/onboarding) */
.history-panel .onboarding-inner,
.messages-panel .onboarding-inner {
    padding-top: 56px;
    gap: 14px;
}
.history-hero {
    text-align: center;
    margin-bottom: 10px;
}

.history-list,
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.history-item,
.message-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
}
.history-item:hover,
.message-item:hover { background: var(--surface-2); }

.history-avatar,
.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red-darker);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-style: italic;
    font-size: 18px;
    flex: none;
    text-transform: uppercase;
}

.history-info,
.message-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-name,
.message-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-meta,
.message-preview {
    font-size: 12px;
    color: var(--ink-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-action-btn {
    padding: 8px 12px;
    border-radius: var(--r-pill);
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex: none;
    transition: background var(--t-fast) var(--ease);
}
.history-action-btn:hover { background: var(--red-hot); }

.history-empty {
    text-align: center;
    color: var(--ink-mute);
    font-size: 14px;
    padding: 40px 20px;
}

.messages-notice {
    margin-top: auto;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-mute);
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    border-radius: var(--r-md);
}
.messages-notice[hidden] { display: none; }

.message-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    flex: none;
}

/* DM panel — conversation plein écran, sans chrome décoratif */
.dm-inner {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 100dvh;
    min-height: 100vh;
}
.dm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 16px 10px;
    background: transparent;
}
.dm-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 24px;
    display: grid;
    place-items: center;
    flex: none;
}
.dm-back-btn:hover { background: var(--surface); }
.dm-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dm-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dm-msg {
    max-width: 75%;
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}
.dm-msg-mine {
    align-self: flex-end;
    background: var(--red);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.dm-msg-theirs {
    align-self: flex-start;
    background: var(--surface);
    color: var(--ink);
    border-bottom-left-radius: 4px;
}
.dm-msg-seen {
    align-self: flex-end;
    font-size: 11px;
    color: var(--ink-mute);
    margin-top: -4px;
    margin-right: 4px;
    font-style: italic;
}
.dm-empty {
    text-align: center;
    color: var(--ink-mute);
    font-size: 13px;
    padding: 30px 20px;
}
.dm-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: transparent;
}

.cam-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    z-index: 1;
    overflow: hidden;
}
.cam-placeholder[hidden] { display: none; }

/* ------------------------------------------------------------
   Diaporama d'accueil — 4 photos qui défilent derrière le logo
   tant que la caméra n'est pas active. Crossfade + très léger
   zoom (Ken Burns) pour un rendu cinématographique smooth.
   ------------------------------------------------------------ */
.cam-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.cam-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    will-change: opacity, transform;
    animation: cam-slide-cycle 24s ease-in-out infinite;
}

/* 4 slides, décalées d'1/4 du cycle (6s chacune) → crossfade fluide
   entre la slide N qui s'efface et la slide N+1 qui apparaît. */
.cam-slide:nth-child(1) { animation-delay: 0s;  }
.cam-slide:nth-child(2) { animation-delay: 6s;  }
.cam-slide:nth-child(3) { animation-delay: 12s; }
.cam-slide:nth-child(4) { animation-delay: 18s; }

@keyframes cam-slide-cycle {
    0%   { opacity: 0; transform: scale(1.04); }
    5%   { opacity: 1;                          }
    25%  { opacity: 1; transform: scale(1.0);   }
    30%  { opacity: 0;                          }
    100% { opacity: 0; transform: scale(1.04);  }
}

/* Voile sombre par-dessus les slides pour préserver la lisibilité du
   logo. Dégradé radial : un peu plus dense au centre où se trouve le
   wordmark, plus léger sur les bords pour ne pas tuer les photos. */
.cam-slideshow-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center,
            rgba(10, 11, 14, 0.85) 0%,
            rgba(10, 11, 14, 0.72) 60%,
            rgba(10, 11, 14, 0.85) 100%);
    pointer-events: none;
}

@keyframes home-logo-drift {
    0%   { transform: translateX(0);     opacity: 1; }
    42%  { transform: translateX(0);     opacity: 1; }
    54%  { transform: translateX(360%);  opacity: 0; }
    55%  { transform: translateX(-300%); opacity: 0; }
    68%  { transform: translateX(0);     opacity: 1; }
    100% { transform: translateX(0);     opacity: 1; }
}

.cam-logo-wrap {
    position: relative;
    z-index: 2;
    animation: logo-float 3.5s ease-in-out infinite;
}

/* Le "!" du wordmark Zapp! est encapsulé dans un span dédié dans
   index.html, ce qui permet de l'animer indépendamment des lettres
   "Zapp". Effet "wobble" : repos prolongé puis micro-tremblement
   décroissant comme une cloche qu'on viendrait de frapper.
   Timing 4s : ~3.4s d'immobilité, ~0.6s de wobble, en boucle. */
.zapp-bang {
    display: inline-block;
    transform-origin: 50% 100%; /* pivote depuis la base du "!" */
    animation: zapp-bang-wobble 4s ease-in-out infinite;
}

@keyframes zapp-bang-wobble {
    0%, 85%, 100% { transform: rotate(0deg); }
    87%           { transform: rotate(-18deg); }
    89%           { transform: rotate(14deg);  }
    91%           { transform: rotate(-9deg);  }
    93%           { transform: rotate(5deg);   }
    95%           { transform: rotate(-2deg);  }
    97%           { transform: rotate(1deg);   }
}

@media (prefers-reduced-motion: reduce) {
    .zapp-bang { animation: none; }
}

.cam-off-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    z-index: 3;
}
.cam-off-overlay[hidden] { display: none; }


.self-brand {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 2;
}

.self-brand .call-brand-name { color: var(--red); }

.self-controls {
    position: absolute;
    bottom: calc(var(--pad-bot) + var(--h-cta) + var(--gap) + 10px);
    right: 10px;
    z-index: 6;
    display: flex;
    align-items: center;
    background: var(--red);
    border-radius: var(--r-pill);
    padding: 3px 4px;
}

/* SEARCHING / CONNECTED — self-frame en PiP haut-droite */
#app[data-state="searching"] .self-frame,
#app[data-state="connected"] .self-frame {
    top:          var(--pad-top);
    left:         calc(100% - var(--pad-x) - 96px);
    width:        96px;
    height:       128px;
    border-radius: var(--r-md);
    border-width: 0;
}

/* ---- Remote frame : même hauteur que self-frame accueil ---- */
.remote-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--pad-bot) - var(--h-cta) - var(--gap));
    border-radius: 0 0 var(--r-md) var(--r-md);
    overflow: hidden;
    background: var(--bg-soft);
    display: grid;
    place-items: center;
    z-index: 1;
}

/* ---- Overlay haut : username + report ---- */
.remote-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}
.remote-top-bar > * { pointer-events: auto; }

#app[data-state="searching"] .remote-top-bar { opacity: 0; pointer-events: none; }

.remote-top-identity {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    padding: 7px 12px;
}

/* ---- Overlay bas : aligné avec barre caméra (même offset bottom) ---- */
.remote-info-bar {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    padding: 3px var(--pad-x);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    pointer-events: none;
}
.remote-info-bar > * { pointer-events: auto; }

/* Boutons icône de la barre bas — même taille que media-btn (34×30) */
.remote-info-bar .pill-btn {
    width: 34px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: none;
}

#app[data-state="searching"] .remote-info-bar { opacity: 0; pointer-events: none; }

/* Wordmark centré horizontalement, aligné verticalement avec les boutons */
.remote-wordmark {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    height: 36px;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

/* ---- Aperçu dernier message reçu ---- */
.last-msg-preview {
    position: absolute;
    bottom: calc(10px + 3px + 30px + 3px + 8px);
    left: var(--pad-x);
    right: var(--pad-x);
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--r-md);
    padding: 7px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.last-msg-preview[hidden] { display: none; }

.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#app[data-state="searching"] .remote-video { display: none; }

.call-brand {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
    pointer-events: none;
    z-index: 2;
}

#app[data-state="connected"] .call-brand { opacity: 1; }

.call-brand-logo {
    width: 36px;
    height: auto;
    filter: brightness(0) invert(42%) sepia(74%) saturate(838%) hue-rotate(312deg) brightness(107%) contrast(94%);
}

.call-brand-name {
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    color: var(--red);
    letter-spacing: -0.01em;
    line-height: 1;
}

.looking-card {
    position: absolute;
    inset: 0;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 24px 36px;
    text-align: center;
}

#app[data-state="connected"] .looking-card { display: none; }

@keyframes logo-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-7px); }
}

.looking-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-float 3.5s ease-in-out infinite;
}

.phone-icon {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(42%) sepia(74%) saturate(838%) hue-rotate(312deg) brightness(107%) contrast(94%);
}

.looking-tip {
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    opacity: 0.85;
    transition: opacity var(--t-base) var(--ease);
}
.looking-tip.is-fading { opacity: 0; }

/* ============================================================
   CTA — Chattez ! / Next !
   ============================================================ */
.cta-wrap {
    position: relative;
    display: flex;
    justify-content: center;
}

.main-cta {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    border-radius: var(--r-pill);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.main-cta:hover  { background: var(--red-hot); }
.main-cta:active { transform: translateY(1px) scale(0.985); }

/* Effet brillance discrète — bande blanche fine qui traverse le bouton.
   Opacité réduite (0.22 max) pour préserver la couleur d'origine du bouton.
   Pause longue entre passages pour ne pas faire briller en permanence. */
#app[data-state="home"] .main-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0)   0%,
        rgba(255, 255, 255, 0)   25%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0)   75%,
        rgba(255, 255, 255, 0)   100%
    );
    transform: skewX(-20deg);
    animation: cta-shine 4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

/* Slide rapide (35% du cycle) puis longue pause (65%) → effet ponctuel,
   pas un éclairage permanent qui dénature la couleur du bouton. */
@keyframes cta-shine {
    0%   { left: -80%; }
    35%  { left: 120%; }
    100% { left: 120%; }
}

/* ============================================================
   Effet de reflet — réutilisé sur les chips Country/Genre et
   sur le bouton Subscribe. Mêmes paramètres exacts que le CTA
   home (largeur 60%, opacité 0.22, durée 4s, easing identique).
   ============================================================ */

/* Chips Country / Genre — le shimmer passe DERRIÈRE le texte
   (z-index: -1) car le fond rouge est géré par la pill parente
   (qui a son propre stacking context via z-index: 10). */
.country-trigger,
.genre-trigger {
    position: relative;
}

.country-trigger::before,
.genre-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0)    0%,
        rgba(255, 255, 255, 0)    25%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0)    75%,
        rgba(255, 255, 255, 0)    100%
    );
    transform: skewX(-20deg);
    animation: cta-shine 4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: -1;
}

/* Bouton Subscribe (panel premium) — shimmer indépendant de
   l'app state, contrairement au CTA home. Le span interne est
   poussé en z-index: 2 pour rester au-dessus du reflet. */
.premium-subscribe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0)    0%,
        rgba(255, 255, 255, 0)    25%,
        rgba(255, 255, 255, 0.22) 50%,
        rgba(255, 255, 255, 0)    75%,
        rgba(255, 255, 255, 0)    100%
    );
    transform: skewX(-20deg);
    animation: cta-shine 4s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

.premium-subscribe-btn > span {
    position: relative;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .country-trigger::before,
    .genre-trigger::before,
    .premium-subscribe-btn::before {
        animation: none;
        left: -80%;
    }
}

/* Le label home reste au-dessus de l'effet de brillance.
   Cible uniquement .cta-label-home (les autres labels sont en
   position absolute, ne pas y toucher). */
#app[data-state="home"] .main-cta .cta-label-home {
    z-index: 2;
}

/* Accessibilité : désactive l'animation pour les utilisateurs qui le demandent */
@media (prefers-reduced-motion: reduce) {
    #app[data-state="home"] .main-cta::before { animation: none; left: -80%; }
}

.cta-label {
    display: inline-block;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}

.cta-label-home { position: relative; }
.cta-label-searching,
.cta-label-chat { position: absolute; inset: 0; display: grid; place-items: center; }

/* État par défaut des labels non-home (cachés) */
.cta-label-searching { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* HOME — cache chat et searching */
#app[data-state="home"] .cta-label-searching,
#app[data-state="home"] .cta-label-chat { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* SEARCHING — affiche "Stop", cache les autres */
#app[data-state="searching"] .cta-label-home { opacity: 0; transform: translateY(-6px); pointer-events: none; }
#app[data-state="searching"] .cta-label-searching { opacity: 1; transform: translateY(0); pointer-events: auto; }
#app[data-state="searching"] .cta-label-chat { opacity: 0; transform: translateY(6px); pointer-events: none; }

/* CONNECTED — affiche "Next !", cache les autres */
#app[data-state="connected"] .cta-label-home,
#app[data-state="connected"] .cta-label-searching { opacity: 0; transform: translateY(-6px); pointer-events: none; }
#app[data-state="connected"] .cta-label-chat { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---- CTA split — Stop (gauche) / Next (droite) ---- */
.cta-split-group {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.cta-split-stop {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateX(52px) scale(0.65);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), background-color var(--t-fast) var(--ease);
}
.cta-wrap.is-split .cta-split-stop:hover  { background: var(--surface); }
.cta-wrap.is-split .cta-split-stop:active { transform: scale(0.91); }

.cta-split-next {
    flex: 1;
    height: 52px;
    border-radius: var(--r-pill);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-style: italic;
    font-size: 22px;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 28px rgba(239, 69, 85, 0.28);
    opacity: 0;
    transform: translateX(-20px) scale(0.88);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cta-wrap.is-split .cta-split-next:hover  { background: var(--red-hot); }
.cta-wrap.is-split .cta-split-next:active { transform: scale(0.98); }

.cta-wrap.is-split > .main-cta {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.88);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), background-color var(--t-fast) var(--ease);
}
.cta-wrap.is-split > .cta-split-group  { pointer-events: auto; }
.cta-wrap.is-split .cta-split-stop     { opacity: 1; transform: translateX(0) scale(1); }
.cta-wrap.is-split .cta-split-next     { opacity: 1; transform: translateX(0) scale(1); }


/* --- Bouton Country : même mécanique split-pill que Genre --- */
.country-host {
    flex: 1;
    position: relative;
}
.country-placeholder {
    visibility: hidden;
    pointer-events: none;
    width: 100%;
    padding: 10px 16px;
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    letter-spacing: -0.01em;
    display: block;
}
.country-pill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--red);
    border-radius: 21px;
    overflow: hidden;
    z-index: 10;
}
.country-trigger {
    width: 100%;
    padding: 10px 16px;
    font-weight: 800;
    font-style: italic;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #fff;
    text-align: center;
    background: transparent;
}
.country-trigger:active { background: rgba(0,0,0,0.1); }
.country-options {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-options.is-open { max-height: 300px; }
.country-opt {
    padding: 9px 16px;
    font-weight: 700;
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    letter-spacing: -0.01em;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    flex-shrink: 0;
}
.country-opt + .country-opt { border-top: 1px solid rgba(255,255,255,0.12); }
.country-opt:hover  { background: rgba(0,0,0,0.1); color: #fff; }
.country-opt.is-selected { color: #fff; background: rgba(0,0,0,0.15); }


/* ============================================================
   INFO PANEL — slide depuis le haut
   ============================================================ */
.info-panel {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.info-panel.is-open { transform: translateY(0); }

.info-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: max(52px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.info-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink-soft);
    display: grid;
    place-items: center;
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.info-close:hover { background: var(--surface-2); color: var(--ink); }

.info-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 16px 0 4px;
}


.info-tagline {
    font-weight: 800;
    font-style: italic;
    font-size: 22px;
    color: var(--ink);
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.info-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 6px;
    margin-bottom: -2px;
}

.info-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.info-list li {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.info-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

.info-list strong { color: var(--ink); font-weight: 700; }

.info-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 10px 18px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--r-pill);
    transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    cursor: pointer;
}
.info-cta:hover  { background: var(--red-hot); }
.info-cta:active { transform: scale(0.96); }

/* Lien réseau social dans le panneau infos */
.info-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    width: fit-content;
}
.info-social-link:hover  { background: var(--red); color: #fff; }
.info-social-link:active { transform: scale(0.96); }
.info-social-link .ico   { width: 18px; height: 18px; }

.info-footer {
    font-size: 12px;
    color: var(--ink-mute);
    text-align: center;
    line-height: 1.6;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
}

.name-pill { cursor: pointer; }

/* ============================================================
   PERMISSION OVERLAY
   ============================================================ */
.perm-fallback {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 7, 10, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
.perm-fallback[hidden] { display: none; }

.perm-card {
    width: 100%;
    max-width: 360px;
    padding: 32px 24px;
    text-align: center;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.perm-icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(239, 69, 85, 0.14);
    color: var(--red);
}

.perm-title {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.015em;
}

.perm-sub {
    margin: 8px 0 22px;
    font-size: 14px;
    color: var(--ink-soft);
}

.perm-cta {
    font-size: 20px;
    padding: 16px 28px;
}

/* ============================================================
   DIALOG
   ============================================================ */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
}
.dialog.is-open { opacity: 1; pointer-events: auto; }
.dialog[hidden] { display: none; }

.dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 10, 0.60);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dialog-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 26px 20px 18px;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
    text-align: center;
    transform: translateY(10px) scale(0.98);
    transition: transform var(--t-base) var(--ease);
}
.dialog.is-open .dialog-card { transform: translateY(0) scale(1); }

.dialog-title {
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.015em;
}

.dialog-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--ink-soft);
}

.dialog-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 18px 0 12px;
}

.dialog-option {
    padding: 12px 14px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.dialog-option:hover {
    background: rgba(239, 69, 85, 0.08);
    border-color: rgba(239, 69, 85, 0.35);
    color: var(--red-hot);
}
.dialog-option:active { transform: scale(0.98); }

.btn-ghost {
    padding: 12px 18px;
    border-radius: var(--r-pill);
    color: var(--ink-soft);
    font-weight: 600;
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.btn-ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-stack {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: min(340px, calc(100% - 32px));
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r-pill);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    pointer-events: auto;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-warning { border-color: rgba(239, 69, 85, 0.45); color: var(--red-hot); }

/* ============================================================
   PHONE RING ANIMATION — pendant la recherche
   ============================================================ */
@keyframes phone-ring {
    0%,  90%, 100% { transform: rotate(0deg); }
    10%             { transform: rotate(-20deg); }
    20%             { transform: rotate(20deg); }
    30%             { transform: rotate(-16deg); }
    40%             { transform: rotate(16deg); }
    50%             { transform: rotate(-10deg); }
    60%             { transform: rotate(10deg); }
    70%             { transform: rotate(-4deg); }
    80%             { transform: rotate(4deg); }
}

#app[data-state="searching"] .phone-icon {
    animation: phone-ring 1.5s ease-in-out infinite;
    transform-origin: 50% 65%;
}

/* ============================================================
   LOADING DOTS — pseudo partenaire pendant chargement
   ============================================================ */
@keyframes dot-pulse {
    0%, 80%, 100% { opacity: 0.15; transform: translateY(0); }
    40%           { opacity: 1;    transform: translateY(-3px); }
}
.loading-dots { display: inline-flex; gap: 3px; align-items: flex-end; }
.loading-dots span {
    display: inline-block;
    font-size: 1.3em;
    line-height: 1;
    animation: dot-pulse 1.2s ease-in-out infinite;
    opacity: 0.15;
}
.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================================
   MATCH OVERLAY — "Match !" affiché 1 s avant le passage en connecté
   ============================================================ */
.match-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}
.match-overlay[hidden] { display: none; }
.match-overlay.is-visible { opacity: 1; }

.match-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transform: scale(0.85) translateY(16px);
    transition: transform 0.45s var(--ease-out);
}
.match-overlay.is-visible .match-card { transform: scale(1) translateY(0); }

.match-tag {
    font-weight: 800;
    font-style: italic;
    font-size: 18px;
    color: var(--red);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.match-reveal-name {
    font-weight: 800;
    font-size: 52px;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}
.match-reveal-gender {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-mute);
    letter-spacing: -0.01em;
}

/* ---- Petit cœur qui s'envole (même principe que floating-emoji) ---- */
.floating-heart {
    position: fixed;
    z-index: 90;
    pointer-events: none;
    animation: emoji-float 1.6s var(--ease-out) forwards;
}
.floating-heart svg {
    width: 28px;
    height: 28px;
    color: var(--red);
    display: block;
    filter: drop-shadow(0 2px 6px rgba(239,69,85,0.5));
}

/* ============================================================
   AUTH — login overlay + onboarding
   ============================================================ */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
}
.auth-overlay.is-open { opacity: 1; pointer-events: auto; }
.auth-overlay[hidden]  { display: none; }

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 10, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 32px 24px 24px;
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: translateY(18px) scale(0.97);
    transition: transform var(--t-base) var(--ease);
}
.auth-overlay.is-open .auth-card { transform: translateY(0) scale(1); }


.auth-title {
    font-size: 22px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.auth-sub {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    font-family: var(--font);
    transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    margin-top: 6px;
}
.google-btn:hover  { background: rgba(255, 255, 255, 0.08); }
.google-btn:active { transform: scale(0.97); }

.auth-terms {
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.5;
}
.auth-link { color: var(--red); cursor: pointer; text-decoration: underline; }

/* Onboarding */
.onboarding-panel {
    position: fixed;
    inset: 0;
    z-index: 85;
    background: var(--bg);
    transform: translateY(100%);
    transition: transform var(--t-slow) var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.onboarding-panel.is-open { transform: translateY(0); }
.onboarding-panel[hidden] { display: none; }

.onboarding-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: max(48px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.onboarding-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 16px;
    font-family: var(--font);
    outline: none;
    transition: border-color var(--t-fast) var(--ease);
    -webkit-appearance: none;
}
.form-input:focus       { border-color: var(--red); }
.form-input::placeholder { color: var(--ink-mute); }

select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 16px;
    padding-right: 44px;
    cursor: pointer;
}

.age-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-2);
    outline: none;
    cursor: pointer;
}
.age-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 69, 85, 0.4);
}
.age-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--red);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(239, 69, 85, 0.4);
}

.age-error {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
}
.age-error[hidden] { display: none; }

.cgu-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 2px;
    cursor: pointer;
    user-select: none;
}
.cgu-checkbox {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--red);
    flex: none;
    cursor: pointer;
}
.cgu-text {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
}
.cgu-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.cgu-link:hover { color: var(--red-hot); }

.gender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gender-btn {
    padding: 13px 8px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gender-btn:hover  { background: var(--surface-2); color: var(--ink); }
.gender-btn:active { transform: scale(0.97); }
.gender-btn.is-selected {
    background: rgba(239, 69, 85, 0.12);
    border-color: var(--red);
    color: var(--red);
    font-weight: 700;
}

/* ============================================================
   PROFIL PANEL
   ============================================================ */
.profile-username-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.profile-username-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.profile-username-edit-btn .ico { width: 16px; height: 16px; }
.profile-username-edit-btn:hover { background: rgba(255,255,255,0.06); color: var(--ink); }

.profile-email {
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: var(--r-md);
    font-size: 14px;
    color: var(--ink-soft);
    word-break: break-all;
}

.profile-save-btn { margin-top: 8px; }

.profile-logout-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 15px;
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.profile-logout-btn:hover { background: rgba(255,255,255,0.06); color: var(--ink); }

.profile-close-btn {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 16px;
    display: grid;
    place-items: center;
    transition: background-color var(--t-fast) var(--ease);
}
.profile-close-btn:hover { background: var(--surface); color: var(--ink); }

/* ============================================================
   AD OVERLAY
   ============================================================ */
/* ============================================================
   AD — même design que la page searching, croix CTA en bas
   ============================================================ */
.ad-overlay {
    position: fixed;
    inset: 0;
    z-index: 75;
    background: var(--bg);
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
    pointer-events: none;
}
.ad-overlay.is-open { opacity: 1; pointer-events: auto; }
.ad-overlay[hidden]  { display: none; }

.ad-inner {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    padding: var(--pad-top) var(--pad-x) var(--pad-bot);
}

.ad-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 36px;
    text-align: center;
    gap: 20px;
}

.ad-badge {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, 0.35);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ad-brand-footer {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font);
    font-weight: 800;
    font-style: italic;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.14);
    letter-spacing: -0.02em;
    pointer-events: none;
}

.ad-slot {
    flex: 1;
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-mute);
    font-size: 13px;
}

.ad-close-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.ad-close-icon {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ad-overlay.is-locked .ad-close-cta {
    pointer-events: none;
    background: var(--surface);
    color: var(--ink-soft);
    opacity: 0.85;
}

/* ============================================================
   ZAPP+ — premium gates & paywall
   ============================================================ */

/* Premium badge/dot hidden */
[data-premium-gate]::after { display: none; }
.prem-inline { display: none; }

/* ---- Zapp+ status row in profile panel ---- */
.zapp-plus-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: rgba(239, 69, 85, 0.08);
    border: 1px solid rgba(239, 69, 85, 0.30);
    cursor: pointer;
    transition: background-color var(--t-fast) var(--ease);
    user-select: none;
}
.zapp-plus-status-row:hover { background: rgba(239, 69, 85, 0.14); }

.zapp-plus-row-label {
    font-weight: 800;
    font-style: italic;
    font-size: 17px;
    color: var(--red);
    letter-spacing: -0.01em;
}

.zapp-plus-row-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--ink-mute);
    border: 1px solid var(--border);
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.zapp-plus-row-badge.is-active {
    background: rgba(239, 69, 85, 0.14);
    color: var(--red-hot);
    border-color: rgba(239, 69, 85, 0.40);
}

/* ---- Premium panel ---- */
.premium-panel { z-index: 90; }

.premium-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
}

.premium-title {
    font-size: 42px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.premium-plus-label { color: var(--red); }

.premium-price-card {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 18px;
    border-radius: var(--r-lg);
    background: rgba(239, 69, 85, 0.07);
    border: 1px solid rgba(239, 69, 85, 0.25);
}

.premium-price {
    font-size: 38px;
    font-weight: 900;
    font-style: italic;
    color: var(--red);
    letter-spacing: -0.03em;
    line-height: 1;
}

.premium-period {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-mute);
}

.premium-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.premium-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
}

.premium-feature-icon {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: rgba(239,69,85,0.1);
    color: var(--red);
}

.premium-feature span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.premium-cta { font-size: 18px; }

.stripe-btn-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

.premium-subscribe-btn {
    width: 100%;
    max-width: 360px;
    font-size: 18px;
    padding: 16px 24px;
    position: relative;
}

/* ============================================================
   PREMIUM SUCCESS — confirmation d'achat, anim du "+"
   ============================================================ */
.premium-success {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--pad-x);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease);
    pointer-events: none;
}
.premium-success.is-open { opacity: 1; pointer-events: auto; }
.premium-success[hidden] { display: none; }

.premium-success-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(239, 69, 85, 0.28) 0%, rgba(10, 11, 14, 0.94) 60%, rgba(6, 7, 10, 0.98) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.premium-success-card {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 40px 28px 32px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 120px rgba(239, 69, 85, 0.15);
    transform: scale(0.92);
    opacity: 0;
    transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease);
}
.premium-success.is-open .premium-success-card {
    transform: scale(1);
    opacity: 1;
}

.premium-success-logo {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 26px;
    gap: 0;
}

.premium-success-word {
    font-family: var(--font);
    font-weight: 800;
    font-style: italic;
    font-size: 68px;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
    transform: translateY(8px);
    opacity: 0;
    transition: transform 500ms var(--ease-out), opacity 400ms var(--ease);
}

.premium-success-plus {
    font-family: var(--font);
    font-weight: 800;
    font-style: italic;
    font-size: 88px;
    line-height: 1;
    color: var(--red);
    display: inline-block;
    transform: scale(0) rotate(-180deg);
    opacity: 0;
    text-shadow: 0 0 40px rgba(239, 69, 85, 0.55);
    transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 400ms var(--ease);
    margin-left: 2px;
}

.premium-success.is-open .premium-success-word {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 100ms;
}
.premium-success.is-open .premium-success-plus {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    transition-delay: 350ms;
    animation: plus-pulse 1.6s ease-in-out 1.1s 3;
}

@keyframes plus-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 69, 85, 0.0)); }
    50%      { transform: scale(1.12); filter: drop-shadow(0 0 24px rgba(239, 69, 85, 0.7)); }
}

.premium-success-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 10px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease-out);
}
.premium-success.is-open .premium-success-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 650ms;
}

.premium-success-sub {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.45;
    margin: 0 0 28px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease-out);
}
.premium-success.is-open .premium-success-sub {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 800ms;
}

.premium-success-cta {
    width: 100%;
    font-size: 18px;
    padding: 14px 24px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease-out);
}
.premium-success.is-open .premium-success-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 950ms;
}

.premium-terms {
    text-align: center;
    font-size: 12px;
    color: var(--ink-mute);
    line-height: 1.5;
}

/* ============================================================
   CALL TIMER
   ============================================================ */
.call-timer {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-mute);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex: none;
}

/* ============================================================
   EMOJI BAR + FLOATING REACTIONS
   ============================================================ */
.emoji-bar { display: none; }

#app[data-state="connected"] .emoji-bar {
    display: none;
}

.emoji-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 17px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
    line-height: 1;
}
.emoji-btn:hover  { background: rgba(0, 0, 0, 0.70); }
.emoji-btn:active { transform: scale(0.88); }

@keyframes emoji-float {
    0%   { opacity: 1;    transform: translateY(0)      scale(1);   }
    60%  { opacity: 0.9;  transform: translateY(-60px)  scale(1.35);}
    100% { opacity: 0;    transform: translateY(-110px) scale(1.5); }
}

.floating-emoji {
    position: absolute;
    z-index: 8;
    font-size: 30px;
    animation: emoji-float 1.6s var(--ease-out) forwards;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* ============================================================
   CHAT PANEL
   ============================================================ */
.chat-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    bottom: 0;
    width: 100%;
    max-width: 520px;
    height: min(62dvh, 500px);
    z-index: 20;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--t-base) var(--ease);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}
.chat-panel.is-open {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.chat-panel-bar {
    display: flex;
    align-items: center;
    padding: 14px 16px 11px;
    border-bottom: 1px solid var(--border);
    flex: none;
}
.chat-panel-title {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
    letter-spacing: -0.01em;
}
.chat-close-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--ink-soft);
    font-size: 13px;
    display: grid;
    place-items: center;
    transition: background-color var(--t-fast) var(--ease);
}
.chat-close-btn:hover { background: var(--surface); color: var(--ink); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.chat-msg {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}
.chat-msg-mine {
    align-self: flex-end;
    background: var(--red);
    color: #fff;
    border-bottom-right-radius: 5px;
}
.chat-msg-theirs {
    align-self: flex-start;
    background: var(--surface-2);
    color: var(--ink);
    border-bottom-left-radius: 5px;
}

.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    flex: none;
    background: var(--bg-soft);
}
.chat-input {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    -webkit-appearance: none;
    transition: border-color var(--t-fast) var(--ease);
}
.chat-input::placeholder { color: var(--ink-mute); }
.chat-input:focus { border-color: var(--red); }

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: grid;
    place-items: center;
    flex: none;
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chat-send-btn:hover  { background: var(--red-hot); }
.chat-send-btn:active { transform: scale(0.9); }

/* Chat toggle button badge */
/* Variante des home-action-btn pendant l'appel (cœur + chat) :
   alignées sur les dimensions de la barre caméra (.media-btn 34×30, pill). */
.call-action-btn {
    width: 34px;
    height: 30px;
    border-radius: var(--r-pill);
    box-shadow: none;
}
.call-action-btn .ico { width: 18px; height: 18px; }
.chat-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    display: block;
    border: 2px solid var(--red);
}
.chat-badge[hidden] { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 720px) {
    :root { --pad-x: 24px; }
    .main-cta { font-size: 24px; padding: 16px 28px; }
    .name-text { font-size: 20px; }
}

/* ============================================================
   MOTION PREFERENCE
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   ÉCRAN BAN
   ============================================================ */
.ban-screen {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}
.ban-screen[hidden] { display: none; }

.ban-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    max-width: 320px;
    width: 100%;
}

.ban-icon {
    width: 72px;
    height: 72px;
    color: var(--red);
    margin: 4px 0;
}
.ban-icon svg { width: 100%; height: 100%; }

.ban-title {
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.ban-sub {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

.ban-expiry {
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
    margin: 0;
}

.ban-rules {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin: 4px 0;
    padding: 0;
}
.ban-rules li {
    font-size: 13px;
    color: var(--ink-soft);
    padding: 10px 14px 10px 36px;
    background: rgba(239,69,85,0.06);
    border: 1px solid rgba(239,69,85,0.15);
    border-radius: var(--r-md);
    position: relative;
}
.ban-rules li::before {
    content: '✕';
    position: absolute;
    left: 13px;
    color: var(--red);
    font-weight: 700;
    font-size: 11px;
}

.ban-contact {
    font-size: 12px;
    color: var(--ink-muted, var(--ink-soft));
    line-height: 1.6;
    margin-top: 4px;
}

.ban-logout-btn {
    margin-top: 24px;
    padding: 12px 28px;
    border-radius: var(--r-pill);
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ban-logout-btn:hover  { background: var(--surface); color: var(--ink); }
.ban-logout-btn:active { transform: scale(0.97); }
