  :root{
    --bg:        #0D0B1E;
    --violet:    #9146FF;
    --violet-2:  #6B2BFF;
    --pink:      #FF7EB6;
    --pink-2:    #FF4FA0;
    --cyan:      #5BE9FF;
    --ink:       #FFFFFF;
    --ink-dim:   #B9BBBE;
    --ink-mute:  #7C7E8C;
    --stroke:    rgba(255,255,255,0.10);
    --stroke-2:  rgba(255,255,255,0.14);
    --mf-modal-bg:linear-gradient(180deg,rgba(22,22,26,.99),rgba(12,12,16,.99));
    --mf-modal-border:rgba(255,255,255,.08);
    --mf-modal-shadow:0 34px 90px rgba(0,0,0,.75);
    --mf-modal-radius:20px;
    --mf-backdrop:rgba(6,7,12,.72);
  }
  *{box-sizing:border-box}
  /* Scrollbar sombre sur tout le site (Firefox + WebKit) */
  *{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}
  ::-webkit-scrollbar{width:10px;height:10px}
  ::-webkit-scrollbar-track{background:transparent}
  ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:8px;border:2px solid transparent;background-clip:content-box}
  ::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.26);background-clip:content-box}
  ::-webkit-scrollbar-corner{background:transparent}
  html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;font-family:"Inter",system-ui,sans-serif}
  html,body{height:100%;overflow:hidden}
  /* Fond personnalisé importé (image/vidéo) — couche derrière la carte, swipe seulement.
     PAS plein viewport (inset:0) : sa taille/position sont calculées en JS (positionCustomBg,
     cf. app.js) comme un multiple fixe de la taille de LA CARTE, centré dessus — ainsi fond +
     carte + bulles + GIFs/photos (déjà en % de la carte) scalent tous ENSEMBLE, comme un seul
     bloc, à toute résolution/ratio de fenêtre (bandes vides sur les côtés si le ratio ne
     correspond pas, plutôt qu'un fond qui se recadre différemment tout seul). */
  #customBgLayer{position:fixed;z-index:1;display:none;pointer-events:none;overflow:hidden}
  #customBgLayer img,#customBgLayer video{width:100%;height:100%;object-fit:cover;display:block}
  body[data-screen="swipe"] #customBgLayer.on{display:block}

  /* ------------- Background mesh ------------- */
  .scene{
    position:fixed;inset:0;z-index:0;overflow:hidden;
    background:
      radial-gradient(1200px 800px at 50% -10%, #1c143a 0%, transparent 60%),
      radial-gradient(900px 700px at 100% 100%, #1a0d2c 0%, transparent 55%),
      var(--bg);
  }
  /* Tailles/flou en clamp() : redimensionnement fluide et continu avec la
     largeur de viewport (pas de palier brutal desktop <-> mobile). L'opacité
     reste sur 2 paliers (pas d'unité compatible avec vw pour l'interpoler),
     mais au-delà de ~900px seulement — donc plus de saut perceptible en
     dessous, notamment quand la fenêtre passe par des ratios "carrés". */
  .blob{position:absolute;border-radius:50%;filter:blur(clamp(45px,5.6vw,80px));opacity:.5;mix-blend-mode:screen;will-change:transform}
  .blob.b1{width:clamp(340px,54vw,780px);height:clamp(340px,54vw,780px);left:-70px;top:-90px;background:radial-gradient(circle,#7a2bff 0%,#2a0f55 55%,transparent 70%);animation:drift1 22s ease-in-out infinite alternate}
  .blob.b2{width:clamp(300px,47vw,680px);height:clamp(300px,47vw,680px);right:-60px;top:30px;background:radial-gradient(circle,#ff5fae 0%,#5b1245 55%,transparent 70%);animation:drift2 26s ease-in-out infinite alternate}
  .blob.b3{width:clamp(240px,36vw,520px);height:clamp(240px,36vw,520px);left:18%;bottom:-90px;background:radial-gradient(circle,#5be9ff 0%,#0d3a55 50%,transparent 70%);opacity:.3;animation:drift3 30s ease-in-out infinite alternate}
  .blob.b4{width:clamp(200px,29vw,420px);height:clamp(200px,29vw,420px);right:22%;bottom:-110px;background:radial-gradient(circle,#9146ff 0%,#1d0d3a 55%,transparent 70%);animation:drift4 24s ease-in-out infinite alternate}
  @media (min-width:900px){
    .blob{opacity:.78}
    .blob.b3{opacity:.45}
  }
  @keyframes drift1{0%{transform:translate(0,0) scale(1)}100%{transform:translate(120px,80px) scale(1.08)}}
  @keyframes drift2{0%{transform:translate(0,0) scale(1)}100%{transform:translate(-140px,60px) scale(1.05)}}
  @keyframes drift3{0%{transform:translate(0,0) scale(1)}100%{transform:translate(80px,-60px) scale(1.1)}}
  @keyframes drift4{0%{transform:translate(0,0) scale(1)}100%{transform:translate(-90px,-100px) scale(0.95)}}

  /* ===== Fonds personnalisables (Boost) ===== */
  /* Couche d'étoiles — affichée seulement pour le fond "stars" */
  .bg-stars{display:none;position:absolute;inset:0;pointer-events:none}
  .bg-stars::before,.bg-stars::after{content:"";position:absolute;inset:-60%;background-repeat:repeat}
  /* Petites étoiles denses qui scintillent */
  .bg-stars::before{
    background-image:
      radial-gradient(1.4px 1.4px at 20px 30px, rgba(255,255,255,.95), transparent),
      radial-gradient(1px 1px at 90px 110px, rgba(255,255,255,.7), transparent),
      radial-gradient(1.6px 1.6px at 160px 60px, rgba(255,255,255,.9), transparent),
      radial-gradient(1px 1px at 210px 180px, rgba(255,255,255,.6), transparent),
      radial-gradient(1.2px 1.2px at 120px 230px, rgba(255,255,255,.8), transparent),
      radial-gradient(1px 1px at 290px 90px, rgba(255,255,255,.65), transparent),
      radial-gradient(1.3px 1.3px at 330px 200px, rgba(255,255,255,.85), transparent);
    background-size:340px 340px;
    animation:starTwinkle 5.5s ease-in-out infinite, starDrift 120s linear infinite;
  }
  /* Grosses étoiles éparses + halo rosé */
  .bg-stars::after{
    background-image:
      radial-gradient(2.4px 2.4px at 60px 80px, rgba(255,255,255,1), transparent),
      radial-gradient(2px 2px at 250px 150px, rgba(255,210,240,.9), transparent),
      radial-gradient(2.6px 2.6px at 410px 260px, rgba(210,225,255,.95), transparent),
      radial-gradient(2px 2px at 480px 60px, rgba(255,255,255,.9), transparent);
    background-size:560px 560px;
    animation:starTwinkle 7s ease-in-out infinite reverse, starDrift 200s linear infinite reverse;
    opacity:.9;
  }
  @keyframes starTwinkle{0%,100%{opacity:.45}50%{opacity:1}}
  @keyframes starDrift{from{transform:translate(0,0)}to{transform:translate(-340px,-340px)}}

  /* Les fonds personnalisés ne s'appliquent QUE pendant le swipe d'un profil
     (pas sur le deck vide → :not([data-swipe-empty="true"])) */
  /* Fond NOIR ÉTOILÉ — gradient violet profond + étoiles, blobs cachés */
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="stars"] .scene{
    background:
      radial-gradient(1000px 720px at 50% -8%, #221354 0%, transparent 60%),
      radial-gradient(820px 640px at 92% 112%, #2a1250 0%, transparent 55%),
      radial-gradient(700px 600px at 6% 100%, #150a30 0%, transparent 55%),
      #04030a;
  }
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="stars"] .blob{display:none}
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="stars"] .bg-stars{display:block}

  /* Fond ROSE — dégradé stylé magenta/rose, blob cyan caché */
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="pink"] .scene{
    background:
      radial-gradient(1100px 800px at 50% -10%, #ff5fae 0%, transparent 55%),
      radial-gradient(900px 720px at 100% 105%, #c026d3 0%, transparent 52%),
      radial-gradient(760px 640px at 0% 100%, #7a1850 0%, transparent 58%),
      linear-gradient(165deg, #2c0a26 0%, #1a0414 60%, #11030d 100%);
  }
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="pink"] .blob.b3{display:none}
  body[data-screen="swipe"]:not([data-swipe-empty="true"])[data-bg="pink"] .blob.b2{opacity:.92}

  /* Sélecteur de fond (onglet Boost) */
  .bg-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:8px}
  .bg-tile{
    display:flex;flex-direction:column;gap:7px;padding:0;border:none;background:none;cursor:pointer;
    color:#b9bbbe;font-family:inherit;font-size:12px;font-weight:600;align-items:stretch;
  }
  .bg-tile-prev{
    position:relative;width:100%;aspect-ratio:16/10;border-radius:12px;overflow:hidden;
    border:2px solid rgba(255,255,255,.12);box-shadow:0 6px 16px rgba(0,0,0,.45);
    transition:transform .15s ease, border-color .15s ease;
  }
  .bg-tile:hover .bg-tile-prev{transform:translateY(-2px)}
  .bg-tile.is-active .bg-tile-prev{border-color:#9146FF;box-shadow:0 0 0 2px rgba(145,70,255,.45), 0 8px 20px rgba(145,70,255,.35)}
  .bg-tile.is-active{color:#fff}
  .bg-prev-default{background:
    radial-gradient(60px 40px at 40% 10%, #7a2bff 0%, transparent 70%),
    radial-gradient(50px 40px at 100% 100%, #ff5fae 0%, transparent 70%),
    #0D0B1E}
  .bg-prev-stars{background:
    radial-gradient(40px 30px at 50% 0%, #221354 0%, transparent 70%),
    #04030a}
  .bg-prev-stars::after{content:"";position:absolute;inset:0;background-image:
    radial-gradient(1px 1px at 14px 12px,#fff,transparent),
    radial-gradient(1px 1px at 40px 30px,#fff,transparent),
    radial-gradient(1.5px 1.5px at 70px 16px,#fff,transparent),
    radial-gradient(1px 1px at 90px 40px,#fff,transparent),
    radial-gradient(1px 1px at 55px 48px,#fff,transparent);
    background-repeat:repeat}
  .bg-prev-pink{background:
    radial-gradient(50px 40px at 50% 0%, #ff5fae 0%, transparent 65%),
    radial-gradient(50px 40px at 100% 100%, #c026d3 0%, transparent 60%),
    linear-gradient(165deg,#2c0a26,#11030d)}

  .grain{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.05;mix-blend-mode:overlay;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}

  /* ------------- Layout ------------- */
  /* main z:6 → la carte (dans main) passe DEVANT les bulles fullscreen (.orbit z:5) */
  /* height:100dvh (viewport dynamique) → tient compte de la barre d'adresse mobile
     qui apparaît/disparaît, sinon le contenu passe sous l'UI du navigateur. Fallback 100vh. */
  main{position:relative;z-index:6;height:100vh;height:100dvh;display:flex;flex-direction:column}

  /* Header */
  header{
    flex:0 0 auto;
    margin:14px 22px 0;
    display:flex;align-items:center;justify-content:space-between;
    padding:10px 14px;
    /* Opacité volontairement élevée : le fond perso d'un profil peut être très
       CLAIR (ciel, neige…), et à ~45% la barre virait au gris pâle au lieu de
       rester bleu nuit. Le flou conserve l'effet verre, mais la teinte ne
       dépend plus de ce qu'il y a derrière. */
    background:linear-gradient(180deg, rgba(20,16,46,.88), rgba(20,16,46,.74));
    backdrop-filter:blur(20px) saturate(140%);
    -webkit-backdrop-filter:blur(20px) saturate(140%);
    border:1px solid var(--stroke);
    border-bottom:none;
    border-radius:18px;
    position:relative;overflow:visible;
  }
  /* Le logo est sorti du flux pour ne pas dicter la hauteur du header. */
  .brand{
    position:absolute;left:18px;top:50%;transform:translateY(-50%);
    display:flex;align-items:center;gap:3px;text-decoration:none;color:inherit;cursor:pointer;
    z-index:2;
  }
  .brand .mark{width:54px;height:54px;display:grid;place-items:center;flex:0 0 auto}
  .brand-word{font-family:'Space Grotesk',system-ui,-apple-system,sans-serif;font-weight:600;font-size:29px;letter-spacing:-.025em;color:#fff;line-height:1;display:flex;align-items:flex-end;white-space:nowrap}
  .brand-word .bw-i{position:relative;display:inline-block}
  .brand-word .bw-dot{position:absolute;left:50%;bottom:.66em;width:6px;height:6px;border-radius:50%;background:#9146FF;transform:translateX(-50%)}
  /* .brand est en position:absolute (hors flux) → Mon lien juste après le logo,
     nav poussée à droite (padding-left quand le bouton lien est masqué). */
  .header-share-link{margin-left:210px;flex:0 0 auto}
  body[data-auth="in"] .nav{padding-left:0}
  /* min-height : .brand est en position:absolute (hors flux), c'est donc .nav
     qui donne sa hauteur à l'entête. Quand ses enfants sont masqués -- lien
     perso, où il ne reste ni boutons ni "Se connecter" -- la barre s'effondrait
     sur son seul padding. Ce plancher (hauteur de la pastille profil) la garde
     identique dans tous les cas, et supprime au passage le sursaut de 56 à 69px
     entre visiteur déconnecté et utilisateur connecté. Posé ici et pas sur
     header : le padding de l'entête change selon le breakpoint. */
  .nav{display:flex;align-items:center;gap:6px;margin-left:auto;padding-left:210px;min-height:48px}
  /* Quêtes collé à gauche de Paramètres, partout (ordre naturel du DOM). */
  .nav a{color:var(--ink-dim);text-decoration:none;font-size:14px;font-weight:500;padding:8px 12px;border-radius:10px;transition:.18s ease}
  .nav a:hover{color:#fff;background:rgba(255,255,255,.04)}
  /* Floating corner controls */
  .corner-ctrl{
    position:fixed;bottom:22px;z-index:15;
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 14px;border-radius:13px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--stroke-2);
    backdrop-filter:blur(18px) saturate(140%);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
    color:#fff;font-family:inherit;font-size:13.5px;font-weight:600;
    letter-spacing:.01em;text-decoration:none;cursor:pointer;
    transition:transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow:0 8px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
  }
  .corner-ctrl:hover{
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.22);
    transform:translateY(-2px);
  }
  .corner-ctrl--discord{left:18px;bottom:18px;padding:11px;border-radius:14px}
  .corner-ctrl--discord svg{opacity:.95;width:22px;height:auto}

  /* Language switcher (fresh, isolated) */
  #langSwitch{
    position:fixed !important;
    right:18px !important;
    bottom:18px !important;
    top:auto !important;
    left:auto !important;
    margin:0 !important;
    z-index:30;
  }
  #langSwitch .ls-btn{
    all:unset;
    display:inline-flex;align-items:center;gap:8px;
    padding:11px 14px;border-radius:13px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--stroke-2);
    /* Flou piloté par variable : perf-lite la bascule à 'none' depuis la propre
       règle du bouton (contourne le combo all:unset + alias -webkit-). */
    --ls-backdrop:blur(18px) saturate(140%);
    backdrop-filter:var(--ls-backdrop);
    -webkit-backdrop-filter:var(--ls-backdrop);
    color:#fff;font-family:inherit;font-size:13.5px;font-weight:600;
    letter-spacing:.01em;cursor:pointer;
    box-shadow:0 8px 22px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
    transition:.18s ease;
    box-sizing:border-box;
  }
  #langSwitch .ls-btn:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);transform:translateY(-2px)}
  #langSwitch .ls-btn .ls-globe{opacity:.75}
  #langSwitch .ls-btn .ls-chev{opacity:.7;transition:transform .2s ease}
  #langSwitch[data-open="true"] .ls-btn .ls-chev{transform:rotate(180deg)}
  #langSwitch .ls-menu{
    position:absolute;bottom:calc(100% + 8px);right:0;min-width:188px;
    list-style:none;margin:0;padding:6px;
    background:var(--mf-modal-bg);
    border:1px solid var(--mf-modal-border);
    border-radius:14px;
    box-shadow:var(--mf-modal-shadow);
    transform-origin:bottom right;
    animation:lsIn .16s ease-out;
  }
  @keyframes lsIn{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
  #langSwitch .ls-menu li{
    display:flex;align-items:center;gap:10px;
    padding:9px 10px;border-radius:9px;cursor:pointer;
    font-size:13.5px;color:var(--ink-dim);font-weight:500;
    transition:.12s ease;
  }
  #langSwitch .ls-menu li:hover{background:rgba(255,255,255,.06);color:#fff}
  #langSwitch .ls-menu li[aria-selected="true"]{color:#fff;background:rgba(145,70,255,.18)}
  #langSwitch .ls-menu .ls-flag{font-size:16px;line-height:1}
  #langSwitch .ls-menu .ls-check{margin-left:auto;color:var(--pink);font-weight:700}
  #langSwitch .ls-menu li:not([aria-selected="true"]) .ls-check{display:none}

  .login{
    display:inline-flex;align-items:center;gap:8px;
    padding:9px 14px;border-radius:11px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--stroke-2);
    color:#fff;font-weight:600;font-size:13.5px;text-decoration:none;
    transition:.18s ease;
  }
  .login:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);transform:translateY(-1px)}
  .login .dot{width:7px;height:7px;border-radius:50%;background:#3BD17C;box-shadow:0 0 10px #3BD17C}

  /* Hero */
  .hero{
    flex:1 1 auto;
    position:relative;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    padding:20px 28px 40px;
    text-align:center;
  }
  .badge{
    display:inline-flex;align-items:center;gap:10px;
    padding:7px 12px 7px 8px;border-radius:999px;
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border:1px solid var(--stroke-2);
    backdrop-filter:blur(14px);
    font-size:12.5px;color:var(--ink-dim);font-weight:500;
    letter-spacing:.01em;
  }
  .badge .pulse{width:8px;height:8px;border-radius:50%;background:var(--pink);box-shadow:0 0 0 0 rgba(255,126,182,.7);animation:pulse 2s infinite}
  .badge b{color:#fff;font-weight:600}
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgba(255,126,182,.7)}70%{box-shadow:0 0 0 14px rgba(255,126,182,0)}100%{box-shadow:0 0 0 0 rgba(255,126,182,0)}}

  h1{
    font-family:"Clash Display",sans-serif;
    font-weight:800;
    /* Taille bornée par la LARGEUR *et* la HAUTEUR du viewport (min(vw,vh)) : garde la même
       proportion sur toute résolution (y compris écrans mis à l'échelle 125/150% = viewport
       étroit) → le titre ne « zoome » plus sur les résolutions non standard. */
    font-size:clamp(56px, min(12.5vw, 22vh), 240px);
    line-height:.9;letter-spacing:calc(-.045em + 3px);
    margin:24px auto 14px;
    background:linear-gradient(180deg,#fff 0%, #fff 35%, #FF7EB6 65%, #9146FF 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
    text-shadow:0 0 80px rgba(145,70,255,.25);
    position:relative;
  }
  .tagline{
    font-family:"Clash Display",sans-serif;font-weight:600;
    font-size:clamp(18px,2.1vw,28px);
    letter-spacing:-.01em;color:#fff;margin:0 0 14px;
  }
  .tagline .accent{
    background:linear-gradient(90deg,#FFB1D2 0%,#E0B8FF 55%,#B689FF 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
    filter:drop-shadow(0 0 18px rgba(224,184,255,.35));
  }
  .sub{
    color:var(--ink-dim);font-size:clamp(14px,1.25vw,16px);
    max-width:48ch;margin:0 auto 30px;line-height:1.55;
  }
  .sub b{color:#fff;font-weight:600}

  /* CTA */
  .cta-row{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:4px;position:relative;z-index:5}
  .cta-email-link{
    display:block;margin:12px auto 0;padding:4px 8px;background:none;border:none;position:relative;z-index:5;
    color:#fff;font-size:12.5px;font-weight:600;opacity:.7;cursor:pointer;font-family:inherit;
    text-decoration:underline;text-underline-offset:2px;
  }
  .cta-email-link:hover{opacity:1}
  .btn{
    position:relative;display:inline-flex;align-items:center;gap:12px;
    padding:18px 26px;border-radius:16px;font-weight:600;font-size:16px;
    text-decoration:none;color:#fff;cursor:pointer;border:none;
    transition:transform .18s ease, box-shadow .25s ease;
    font-family:inherit;
  }
  .btn-primary{
    background:linear-gradient(180deg,#A65BFF 0%, #6B2BFF 100%);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.12) inset,
      0 8px 24px rgba(107,43,255,.45),
      0 0 60px rgba(145,70,255,.55),
      0 0 120px rgba(145,70,255,.35);
  }
  .btn-primary::before{
    content:"";position:absolute;inset:1px;border-radius:15px;
    background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%);
    pointer-events:none;
  }
  .btn-primary:hover{transform:translateY(-2px);box-shadow:
    0 0 0 1px rgba(255,255,255,.16) inset,
    0 12px 32px rgba(107,43,255,.55),
    0 0 80px rgba(145,70,255,.7),
    0 0 160px rgba(255,126,182,.35);}
  .btn-primary:active{transform:translateY(0)}
  .btn-ghost{
    background:rgba(255,255,255,.05);
    border:1px solid var(--stroke-2);
    backdrop-filter:blur(10px);
  }
  .btn-ghost:hover{background:rgba(255,255,255,.10);transform:translateY(-2px)}
  .btn .arr{transition:transform .2s ease}
  .btn:hover .arr{transform:translateX(3px)}

  /* Discord transparent icon — only the logo, no background, smaller */
  .landing-discord-btn{
    display:flex;align-items:center;justify-content:center;
    width:30px;height:30px;background:transparent;color:#5865F2;
    text-decoration:none;transition:transform .18s ease, color .2s ease;
    margin:14px auto 0;
  }
  .landing-discord-btn:hover{transform:translateY(-2px) scale(1.1);color:#7C8AFF}
  body[data-auth="out"] .landing-discord-btn{display:none}

  .cta-meta{
    margin-top:22px;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
    color:var(--ink-mute);font-size:13px;position:relative;z-index:5;
  }
  .cta-meta .stack{display:flex;margin-right:4px}
  .cta-meta .stack span{
    width:22px;height:22px;border-radius:50%;
    border:2px solid var(--bg);
    margin-left:-7px;
    background-size:cover;background-position:center;
  }
  .cta-meta .stack span:first-child{margin-left:0}
  .cta-meta b{color:#fff;font-weight:600}
  .cta-meta .sep{color:#3a3650}

  /* Bubble layer */
  .bubbles{position:absolute;inset:0;z-index:3;overflow:visible;pointer-events:none}
  .bubble{pointer-events:auto}
  .bubble{
    position:absolute;display:grid;place-items:center;
    border-radius:50%;
    background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
    border:1px solid var(--stroke-2);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    box-shadow:0 12px 40px rgba(13,11,30,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
    cursor:pointer;will-change:transform;
    transition:box-shadow .2s ease;
    user-select:none;
  }
  /* Redimensionnement fluide (pas de palier brutal) : chaque bulle garde sa
     taille de base (--bsize, posée en JS au spawn) sur grand écran, et
     rétrécit progressivement avec la largeur de viewport en dessous
     d'environ 1380px, jusqu'à ~40% de sa taille d'origine. */
  .bubble{
    width:clamp(calc(var(--bsize,64px) * .4), calc(var(--bsize,64px) * .4 + 4.2vw), var(--bsize,64px)) !important;
    height:clamp(calc(var(--bsize,64px) * .4), calc(var(--bsize,64px) * .4 + 4.2vw), var(--bsize,64px)) !important;
  }
  .bubble:hover{box-shadow:0 12px 40px rgba(13,11,30,.5), 0 0 0 1px rgba(255,255,255,.18) inset, 0 0 24px rgba(255,126,182,.35)}
  .bubble.dying{animation:die .4s cubic-bezier(.2,.7,.3,1) forwards;pointer-events:none}
  @keyframes die{
    0%{transform:scale(1) rotate(0);opacity:1;filter:brightness(1)}
    30%{transform:scale(1.25) rotate(8deg);opacity:1;filter:brightness(2)}
    100%{transform:scale(.2) rotate(-45deg);opacity:0;filter:brightness(3)}
  }
  .bubble svg{width:46%;height:46%;color:#fff;pointer-events:none}
  .bubble .face{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;font-family:"Clash Display",sans-serif;font-weight:700;font-size:22px;pointer-events:none}
  .bubble .glow{position:absolute;inset:-2px;border-radius:50%;filter:blur(18px);opacity:.55;z-index:-1;pointer-events:none}
  /* Cover image (album / jeu / anime) — remplit parfaitement le cercle */
  .bubble .b-img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center;pointer-events:none;display:block}
  /* Logo détouré (Valorant…) — contenu sur fond de marque */
  .bubble .b-logo{width:60%;height:60%;border-radius:0;object-fit:contain;pointer-events:none;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.45))}
  /* Glyphe (♂ ♀) */
  .bubble .b-glyph{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;font-weight:800;font-size:32px;line-height:1;color:#fff;pointer-events:none}

  /* Particles */
  .particle{
    position:absolute;pointer-events:none;border-radius:50%;
    will-change:transform,opacity;
  }

  /* Bottom corner decorations */
  .badge.corner{
    position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
    color:var(--ink-mute);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;
    background:none;border:none;backdrop-filter:none;padding:0;
  }
  .badge.corner b{color:#fff;font-weight:500;letter-spacing:.04em}

  @media (max-width:780px){
    header{margin:10px 14px 0}
    /* Le titre « Matefindr » (un seul mot, ratio largeur/police ≈ 5.3) DOIT tenir :
       plafonné à ~15vw (+ garde-fou hauteur pour paysage) → jamais coupé sur les
       côtés dans la zone tablette / téléphone paysage (601–780px). */
    h1{font-size:min(15vw, 24vh, 128px)}
  }

  /* Bulles décoratives : visibles uniquement si largeur ET hauteur ≥1000px
     (grand écran confortable) — masquées dès que l'une des deux dimensions
     passe en dessous, y compris en fenêtre "carrée" redimensionnée. */
  @media (max-width:999px){
    #bubbles{display:none}
  }
  @media (max-height:999px){
    #bubbles{display:none}
  }

  /* Mobile : interface épurée, hero plus confortable */
  @media (max-width:600px){
    .badge.corner{display:none}
    /* Nav bar ~30% plus compacte + logo/texte réduits pour que le bouton
       "Se connecter" tienne sur une seule ligne (au lieu de wrapper). */
    header{margin:10px 15px 0;padding:7px 10px}
    .brand{left:12px}
    .brand .mark{width:38px;height:38px}
    /* Le mot "matefindr" chevauchait le bouton Quêtes (~40px de recouvrement,
       mesuré : texte jusqu'à x=159, icône Quêtes dès x=119) -- juste l'icône
       sur mobile, comme un favicon d'app. */
    .brand-word{display:none}
    .header-share-link{margin-left:150px}
    .nav{padding-left:150px}
    /* Pas la place pour 3 icônes + la pastille profil sur un écran de téléphone :
       Mon lien disparaît (Quêtes reste, juste à gauche de Paramètres). Sans ça les
       icônes débordaient carrément hors de l'écran. */
    #navShareLink{display:none !important}
    body[data-auth="in"] .nav{padding-left:0}
    /* Contenu de l'accueil centré verticalement (le titre « Matefindr » au milieu
       de l'écran) plutôt que collé en haut. */
    .hero{padding:14px 18px 28px;justify-content:center;gap:2px}
    /* Idem : le titre tient toujours (≈15.5vw max) au lieu d'être coupé sur les bords. */
    h1{font-size:min(15.5vw, 96px);letter-spacing:calc(-.045em + 1px);margin:12px auto 10px}
    .tagline{font-size:clamp(16px,5vw,21px);margin:0 0 10px}
    .sub{font-size:14.5px;max-width:34ch;margin:0 auto 22px}
    .cta-row{width:100%}
    .cta-row .btn-primary{width:100%;justify-content:center;padding:16px 22px}
    .cta-meta{flex-wrap:wrap;justify-content:center;row-gap:4px}
  }

  /* Bigger nav on large screens */
  @media (min-width:1100px){
    header{margin:20px 44px 0;padding:14px 22px;border-radius:22px}
    .brand{left:28px}
    .brand .mark{width:58px;height:58px}
    .login{padding:12px 18px;font-size:15px;border-radius:13px;gap:10px}
    .login .dot{width:8px;height:8px}
  }


  /* ============================================================
     SCREENS — landing / onboarding / swipe / account
     Toggled via body[data-screen="..."]
     ============================================================ */
  .screen{display:none}
  body[data-screen="landing"]    #screen-landing,
  body[data-screen="onboarding"] #screen-onboarding,
  body[data-screen="swipe"]      #screen-swipe,
  body[data-screen="account"]    #screen-account { display:flex }

  /* Écran de load : fond sombre vide. Logo+spinner uniquement si connexion lente
     (classe .is-slow) — sans carte / fond noir autour. */
  .mf-page-loader{
    position:fixed;inset:0;z-index:9990;
    display:grid;place-items:center;
    background:#0D0B1E;
    transition:opacity .12s ease;
    pointer-events:all;
  }
  .mf-page-loader[hidden]{display:none !important}
  .mf-page-loader.is-leaving{opacity:0;pointer-events:none}
  body.mf-page-loading > *:not(#mfPageLoader):not(#gate){
    visibility:hidden !important;
    pointer-events:none !important;
  }
  body.mf-page-loading #mfPageLoader{
    visibility:visible !important;
  }
  .mf-page-loader-brand{
    display:flex;flex-direction:column;align-items:center;gap:16px;
    opacity:0;pointer-events:none;
    transition:opacity .25s ease;
  }
  .mf-page-loader.is-slow .mf-page-loader-brand{opacity:1}
  .mf-page-loader-logo{
    width:48px;height:48px;object-fit:contain;
    filter:drop-shadow(0 4px 14px rgba(145,70,255,.45));
  }
  .mf-page-loader-spin{
    width:28px;height:28px;border-radius:50%;
    border:2.5px solid rgba(255,255,255,.12);
    border-top-color:#FF7EB6;
    border-right-color:#9146FF;
    animation:mfPageSpin .7s linear infinite;
  }
  @keyframes mfPageSpin{to{transform:rotate(360deg)}}
  @media (prefers-reduced-motion:reduce){
    .mf-page-loader{transition:none}
    .mf-page-loader-brand{transition:none}
    .mf-page-loader-spin{animation:none;border-color:rgba(255,255,255,.25);border-top-color:#FF7EB6}
  }

  /* Hide bubble-only landing extras on non-landing screens (decluttering) */
  body:not([data-screen="landing"]) .corner-ctrl--discord{display:none}
  /* Connecté : sur l'accueil, le coin bas-gauche devient le bouton Messages (plus le Discord) */
  body[data-auth="in"] .corner-ctrl--discord{display:none}
  body[data-auth="in"] #langSwitch{display:none}
  /* Bouton Messages : visible sur swipe + accueil quand connecté, caché ailleurs */
  body[data-auth="out"] #msgFab,
  body[data-screen="account"] #msgFab,
  body[data-screen="onboarding"] #msgFab,
  body[data-screen="account"] .bf-fab{display:none !important}
  body[data-auth="in"][data-screen="landing"] #msgFab{display:grid !important}

  /* Keyframes partagées par plusieurs popovers plein écran (gef/oeo/clip-overlay…) */
  @keyframes fadeInOverlay{from{opacity:0}to{opacity:1}}
  @keyframes likerPop{from{transform:scale(.85);opacity:0}to{transform:scale(1);opacity:1}}

  /* Match celebration overlay */
  .match-overlay{
    position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;
    pointer-events:none;
  }
  .match-overlay[data-show="true"]{display:flex}
  /* Pendant le match, on cache la scène swipe derrière (carte + bulles + GIFs)
     pour qu'aucun élément ne transparaisse à travers le backdrop. */
  body.match-active .swipe-stage .orbit,
  body.match-active #swipeOrbit,
  body.match-active #swipeStickersBg,
  body.match-active #swipeWrap,
  body.match-active .swipe-actions,
  body.match-active .blob,
  body.match-active .bg-blobs,
  body.match-active .grain{visibility:hidden !important;opacity:0 !important}
  .match-backdrop{
    position:absolute;inset:0;background:var(--mf-backdrop);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
    pointer-events:auto;
    animation:matchBackdropIn .4s ease-out;
  }
  @keyframes matchBackdropIn{from{opacity:0}to{opacity:1}}
  .match-content{
    position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:20px;
    pointer-events:auto;
    animation:matchPop .6s cubic-bezier(.2,.7,.3,1.2);
  }
  @keyframes matchPop{0%{opacity:0;transform:scale(.3) rotate(-8deg)}60%{transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}
  .match-title{
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:48px;letter-spacing:.02em;
    color:#fff;margin:0;text-shadow:0 6px 26px rgba(0,0,0,.6);
  }
  .match-accent{background:linear-gradient(135deg,#FF7EB6,#9146FF,#5BE9FF);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
  .match-sub{font-size:15px;color:#dcddde;margin:0}
  .match-avatars{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:24px;margin-top:8px}
  .match-avi{
    flex:0 0 auto;
    width:120px;height:120px;border-radius:50%;
    display:grid;place-items:center;color:#fff;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:48px;
    box-shadow:0 14px 42px rgba(0,0,0,.6), 0 0 0 4px rgba(255,255,255,.10) inset;
    overflow:hidden;
  }
  .match-heart-burst{flex:0 0 auto}
  .match-heart-burst svg{display:block}
  .match-avi img{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .match-avi-me  {background:linear-gradient(135deg,#5BE9FF,#9146FF);animation:matchAviInLeft  .6s .15s both cubic-bezier(.2,.7,.3,1.2)}
  .match-avi-them{background:linear-gradient(135deg,#FF7EB6,#9146FF);animation:matchAviInRight .6s .15s both cubic-bezier(.2,.7,.3,1.2)}
  @keyframes matchAviInLeft {0%{opacity:0;transform:translateX(-80px) scale(.6)}100%{opacity:1;transform:translateX(0) scale(1)}}
  @keyframes matchAviInRight{0%{opacity:0;transform:translateX(80px)  scale(.6)}100%{opacity:1;transform:translateX(0) scale(1)}}
  .match-heart-burst{animation:matchHeartBeat 1.2s infinite ease-in-out}
  @keyframes matchHeartBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.18)}}
  .match-names{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:700;color:#fff}
  .match-names .match-x{color:#FF4FA0;font-size:22px}

  /* Mini avatar that flies to the bottom-left msg-fab */
  .match-fly[hidden]{display:none !important}
  .match-fly{
    position:fixed;width:64px;height:64px;border-radius:50%;
    display:grid;place-items:center;color:#fff;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:24px;
    background:linear-gradient(135deg,#FF7EB6,#9146FF);
    box-shadow:0 12px 32px rgba(255,79,160,.5);
    z-index:201;overflow:hidden;pointer-events:none;
  }
  .match-fly img{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .match-fly.is-flying{
    animation:matchFly 1.1s cubic-bezier(.5,.1,.3,1.2) forwards;
  }
  @keyframes matchFly{
    0%   { transform:translate(0,0) scale(1.3); opacity:1 }
    60%  { transform:translate(var(--fx,-200px), var(--fy,200px)) scale(.7); opacity:1 }
    100% { transform:translate(var(--fx,-200px), var(--fy,200px)) scale(.2); opacity:0 }
  }
  /* msg-fab pulse when receiving a new match */
  .msg-fab.pulse-match{animation:msgFabPulse .9s 3 ease-out}
  @keyframes msgFabPulse{
    0%,100%{box-shadow:0 14px 36px rgba(64,78,237,.45), 0 0 0 0 rgba(255,79,160,.6)}
    50%    {box-shadow:0 14px 36px rgba(64,78,237,.45), 0 0 0 14px rgba(255,79,160,0)}
  }

  /* Floating Messages FAB (bottom-left when logged-in) */
  .msg-fab{
    position:fixed;left:18px;bottom:18px;z-index:24;
    width:60px;height:60px;border-radius:20px;border:none;
    display:grid;place-items:center;cursor:pointer;color:#fff;
    background:linear-gradient(140deg, #5865F2 0%, #404EED 100%);
    box-shadow:0 14px 36px rgba(64,78,237,.45), 0 0 0 1px rgba(255,255,255,.10) inset;
    transition:transform .2s ease, box-shadow .25s ease;
  }
  .msg-fab:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 18px 44px rgba(64,78,237,.6), 0 0 0 1px rgba(255,255,255,.15) inset}
  .msg-fab .fab-badge{
    position:absolute;top:-4px;right:-4px;
    min-width:22px;height:22px;padding:0 6px;border-radius:11px;
    background:#FF4FA0;color:#fff;font-size:12px;font-weight:800;
    display:grid;place-items:center;border:2px solid #0D0B1E;
  }

  /* Bottom-right FAB — Heart only (likes received), visible auth=in */
  .bf-fab{
    position:fixed;right:18px;z-index:24;
    width:60px;height:60px;border-radius:20px;border:none;cursor:pointer;
    display:none;align-items:center;justify-content:center;color:#fff;
    transition:transform .2s ease, box-shadow .25s ease;
  }
  body[data-auth="in"] .bf-fab{display:flex}
  .bf-fab:hover{transform:translateY(-3px) scale(1.04)}
  .bf-fab--heart{
    bottom:18px;
    background:linear-gradient(140deg,#FF4FA0 0%,#C92866 100%);
    box-shadow:0 14px 36px rgba(255,79,160,.45), 0 0 0 1px rgba(255,255,255,.10) inset;
  }
  .bf-fab--heart:hover{box-shadow:0 18px 44px rgba(255,79,160,.65), 0 0 0 1px rgba(255,255,255,.15) inset}
  .bf-fab .fab-badge{
    position:absolute;top:-10px;left:50%;transform:translateX(-50%);
    min-width:22px;height:22px;padding:0 6px;border-radius:11px;
    background:#FFFFFF;color:#FF4FA0;font-size:12px;font-weight:800;
    display:grid;place-items:center;border:2px solid #0D0B1E;
  }
  /* Volume musique — glass discret + barre blanche au survol (à droite) */
  .mf-vol{
    --mf-vol-btn-size:53px;
    --mf-vol-bar:78px;
    --mf-vol-bg:rgba(8,6,20,.13);
    position:fixed;z-index:45;display:none;align-items:center;gap:0;
    top:auto;bottom:18px;left:14px;
    border:1px solid transparent;border-radius:18px;box-sizing:border-box;
    transition:background .18s ease,border-color .18s ease,padding .22s ease;
  }
  body[data-auth="in"][data-screen="swipe"] .mf-vol,
  body[data-preview="true"] .mf-vol,
  body[data-shared="true"] .mf-vol{display:flex}
  body[data-screen="account"] .mf-vol,
  body[data-auth="in"][data-screen="landing"] .mf-vol,
  body[data-auth="in"][data-screen="onboarding"] .mf-vol{display:none !important}
  /* Swipe : aligné verticalement avec le bouton Messages */
  body[data-auth="in"][data-screen="swipe"]:not([data-preview="true"]) .mf-vol{
    left:calc(18px + 60px + 10px);
    bottom:calc(18px + (60px - var(--mf-vol-btn-size)) / 2);
    align-items:center;
  }
  body[data-preview="true"] .mf-vol,
  body[data-shared="true"] .mf-vol{
    left:14px;
    bottom:calc(18px + (60px - var(--mf-vol-btn-size)) / 2);
  }
  body[data-shared="true"] .mf-vol{left:14px}
  .mf-vol:hover,.mf-vol.mf-vol--open{
    background:var(--mf-vol-bg);border-color:var(--stroke-2);padding-right:6px;
  }
  .mf-vol-btn{
    width:var(--mf-vol-btn-size);height:var(--mf-vol-btn-size);border-radius:18px;border:1px solid var(--stroke-2);
    background:var(--mf-vol-bg);color:#fff;cursor:pointer;display:grid;place-items:center;flex:0 0 auto;padding:0;
    transition:background .18s ease,border-color .18s ease;box-sizing:border-box;
  }
  .mf-vol:hover .mf-vol-btn,.mf-vol.mf-vol--open .mf-vol-btn{background:transparent;border-color:transparent}
  .mf-vol-btn svg{width:26px;height:26px;display:block}
  .mf-vol-slash{display:none}
  .mf-vol.muted .mf-vol-wave{display:none}
  .mf-vol.muted .mf-vol-slash{display:block}
  .mf-vol.muted .mf-vol-btn{color:rgba(255,126,182,.92)}
  .mf-vol-track{
    width:0;opacity:0;overflow:hidden;margin-left:0;flex:0 0 auto;
    transition:width .22s ease,opacity .18s ease,margin-left .22s ease;
    display:flex;align-items:center;
  }
  .mf-vol:hover .mf-vol-track,.mf-vol.mf-vol--open .mf-vol-track{width:var(--mf-vol-bar);opacity:1;margin-left:6px}
  .mf-vol-range{
    -webkit-appearance:none;appearance:none;width:var(--mf-vol-bar);height:6px;border-radius:999px;outline:none;cursor:pointer;display:block;
    background:linear-gradient(90deg,#fff var(--mf-vol-pct,50%),rgba(255,255,255,.22) var(--mf-vol-pct,50%));
  }
  .mf-vol-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;border:none;box-shadow:0 1px 4px rgba(0,0,0,.35);cursor:pointer}
  .mf-vol-range::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:#fff;border:none;box-shadow:0 1px 4px rgba(0,0,0,.35);cursor:pointer}
  @media(max-width:520px){
    /* Bouton son retiré sur téléphone : encombrait le bas de l'écran à côté des
       autres contrôles flottants (messages, likes reçus...). */
    .mf-vol{display:none !important}
  }

  /* Messages panel — slide-out drawer */
  .msg-panel{
    position:fixed;left:0;bottom:0;
    width:min(420px,96vw);height:min(640px,calc(100vh - 40px));
    border-radius:var(--mf-modal-radius);margin:0 0 12px 12px;z-index:60;
    background:var(--mf-modal-bg);
    border:1px solid var(--mf-modal-border);
    box-shadow:var(--mf-modal-shadow);
    opacity:0;transform:translateY(12px);pointer-events:none;
    transition:opacity .25s ease, transform .3s cubic-bezier(.2,.7,.3,1);
    display:flex;flex-direction:column;color:#fff;overflow:hidden;
  }
  .msg-panel[data-open="true"]{opacity:1;transform:translateY(0);pointer-events:auto}
  .msg-head{
    display:flex;align-items:center;justify-content:space-between;
    padding:18px 18px 14px;border-bottom:1px solid rgba(255,255,255,.06);
  }
  .msg-head h3{margin:0;font-family:"Clash Display",sans-serif;font-weight:700;font-size:20px;letter-spacing:-.01em}
  .msg-close{
    width:32px;height:32px;border-radius:10px;cursor:pointer;
    display:grid;place-items:center;color:var(--ink-dim);
    background:rgba(255,255,255,.05);border:1px solid var(--mf-modal-border);
    transition:.16s ease;
  }
  .msg-close:hover{color:#fff;background:rgba(255,255,255,.10)}
  .msg-list{flex:1 1 auto;overflow-y:auto;padding:8px}
  .msg-list .msg-empty{padding:40px 20px;text-align:center;color:#8b8c92;font-size:13.5px;line-height:1.5}
  .msg-item{
    all:unset;display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;
    padding:10px 12px;border-radius:12px;cursor:pointer;
    transition:.14s ease;position:relative;
  }
  .msg-item:hover{background:rgba(255,255,255,.04)}
  .msg-item.active{background:rgba(255,255,255,.06)}
  .msg-item .avi{
    width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:18px;color:#fff;
    flex:0 0 auto;
  }
  .msg-item .info{flex:1 1 auto;min-width:0}
  .msg-item .info .top{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
  .msg-item .info .top b{font-size:14.5px;font-weight:700}
  .msg-item .info .top .t{color:#8b8c92;font-size:11.5px;font-weight:500}
  .msg-item .info p{margin:2px 0 0;color:#b9bbbe;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .msg-item .dot{
    position:absolute;right:14px;bottom:14px;
    width:9px;height:9px;border-radius:50%;background:#FF4FA0;box-shadow:0 0 8px #FF4FA0;
  }
  .msg-item.read .dot{display:none}

  /* Chat view (inside the panel) — head + input fixes, body scrolle (min-height:0 indispensable) */
  .msg-chat{display:none;flex:1 1 auto;flex-direction:column;min-height:0}
  .msg-panel[data-view="chat"] .msg-list{display:none}
  .msg-panel[data-view="chat"] .msg-chat{display:flex}
  /* En vue conversation, on masque l'entête "Messages" du panneau (la conv a son propre entête) */
  .msg-panel[data-view="chat"] .msg-head{display:none}
  .msg-chat-head{flex:0 0 auto;display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.06)}
  .msg-back{
    width:30px;height:30px;border-radius:8px;cursor:pointer;display:grid;place-items:center;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#b9bbbe;
    transition:.16s ease;
  }
  .msg-back:hover{background:rgba(255,255,255,.08);color:#fff}
  .msg-chat-head .avi{
    width:38px;height:38px;border-radius:50%;display:grid;place-items:center;cursor:pointer;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:16px;color:#fff;flex:0 0 auto;
  }
  .msg-chat-head .avi:hover{filter:brightness(1.08)}
  .msg-chat-id{cursor:pointer;min-width:0}
  .msg-chat-id:hover b{text-decoration:underline}
  .msg-chat-head b{font-size:14.5px;font-weight:700;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .msg-chat-head small{color:#8b8c92;font-size:11.5px}
  .msg-close--chat{margin-left:auto;flex:0 0 auto}
  .msg-chat-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}
  /* Ligne message = avatar de l'expéditeur + colonne [heure au-dessus, bulle] */
  .msg-row{display:flex;align-items:flex-end;gap:8px;max-width:100%}
  .msg-row.me{flex-direction:row-reverse}
  .msg-avi{width:30px;height:30px;border-radius:50%;flex:0 0 auto;overflow:hidden;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;font-family:"Clash Display",sans-serif}
  .msg-avi img{width:100%;height:100%;object-fit:cover;display:block}
  .msg-col{display:flex;flex-direction:column;max-width:74%;min-width:0}
  .msg-row.me .msg-col{align-items:flex-end}
  .msg-row.them .msg-col{align-items:flex-start}
  .msg-time{font-size:9.5px;line-height:1;opacity:.5;margin:0 7px 3px;font-variant-numeric:tabular-nums;color:#b9bbbe}
  .msg-bubble{
    max-width:100%;padding:9px 12px;border-radius:14px;font-size:14px;line-height:1.45;
    word-break:break-word;
  }
  .msg-bubble.them{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);border-bottom-left-radius:4px}
  .msg-bubble.me  {background:linear-gradient(135deg,#5865F2,#404EED);color:#fff;border-bottom-right-radius:4px;box-shadow:0 6px 18px rgba(64,78,237,.35)}
  .msg-bubble.system{align-self:center;max-width:90%;text-align:center;background:rgba(255,255,255,.04);color:#b9bbbe;font-size:12.5px;border-radius:12px}
  /* Séparateur de jour dans une conversation (chip centrée, ex: "Hier", "lundi 23 juin"). */
  .msg-daysep{align-self:center;margin:14px auto 6px;padding:4px 13px;font-size:11px;font-weight:700;letter-spacing:.03em;
    color:#9aa0a6;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.05);border-radius:999px;
    text-transform:capitalize;font-variant-numeric:tabular-nums;flex:0 0 auto}
  .msg-input{
    flex:0 0 auto;display:flex;gap:8px;padding:10px;border-top:1px solid rgba(255,255,255,.06);
  }
  .msg-input input{
    flex:1 1 auto;padding:11px 14px;border-radius:12px;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);
    color:#fff;font-family:inherit;font-size:14px;outline:none;
    transition:.18s ease;
  }
  .msg-input input:focus{border-color:rgba(88,101,242,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(88,101,242,.16)}
  .msg-input button{
    padding:0 16px;border-radius:12px;border:none;cursor:pointer;
    background:linear-gradient(135deg,#5865F2,#404EED);color:#fff;font-weight:700;font-size:13.5px;
    transition:.16s ease;
  }
  .msg-input button:hover{transform:translateY(-1px)}

  /* Account chip in header */
  .account-chip{
    display:none;align-items:center;gap:10px;padding:6px 12px 6px 6px;
    border-radius:999px;background:rgba(255,255,255,.05);
    border:1px solid var(--stroke-2);cursor:pointer;text-decoration:none;
    color:#fff;font-weight:600;font-size:13.5px;
    transition:.18s ease;
  }
  body[data-auth="in"] .account-chip{display:inline-flex}
  body[data-auth="in"] .login{display:none}
  .account-chip:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.22);transform:translateY(-1px)}
  .account-chip .avatar{
    width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
    overflow:hidden; /* sans ça une photo de profil zoomée (recadrage) dépasse du rond */
    font-family:"Clash Display",sans-serif;font-weight:700;font-size:14px;
    background:linear-gradient(135deg,#FF7EB6,#9146FF);color:#fff;
    box-shadow:0 0 0 1.5px rgba(255,255,255,.18) inset;
  }
  .account-chip .avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}

  /* Boutons navbar : Quêtes / Paramètres / Mon lien — même verre + hover plus clair */
  .nav-ico{
    display:none;align-items:center;justify-content:center;width:42px;height:42px;padding:0;
    border-radius:12px;border:1px solid var(--stroke-2);color:#fff;
    background:linear-gradient(180deg, rgba(28,22,58,.86), rgba(18,12,42,.86));
    backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%);
    box-shadow:0 8px 22px rgba(0,0,0,.35);
    cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .12s ease,box-shadow .14s ease;
    flex:0 0 auto;box-sizing:border-box;
  }
  body[data-auth="in"] .nav-ico{display:inline-flex}
  .nav-ico:hover{
    background:linear-gradient(180deg, rgba(52,42,88,.95), rgba(34,26,64,.95));
    border-color:rgba(255,255,255,.28);
    box-shadow:0 10px 26px rgba(0,0,0,.4);
    transform:translateY(-1px);
  }
  .nav-ico:active{transform:scale(.97)}
  .nav-ico svg{width:18px;height:18px;display:block}
  .nav-ico--quests svg{width:24px;height:24px}
  #navShareLink{color:#fff}
  .msg-chat-sub--hidden{color:var(--ink-dim);font-style:italic}

  /* Modales compte (lien + paramètres) — même DA que l'éditeur */
  .conn-pop-backdrop{
    position:fixed;inset:0;z-index:298;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  }
  .conn-pop-backdrop[hidden]{display:none}
  .cp-close{
    width:32px;height:32px;border-radius:10px;border:1px solid var(--stroke-2);background:rgba(255,255,255,.05);
    color:var(--ink-dim);cursor:pointer;font-size:15px;font-family:inherit;display:grid;place-items:center;flex:0 0 auto;
  }
  .cp-close:hover{color:#fff;background:rgba(255,255,255,.10)}
  .conn-pop{
    position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:299;
    width:min(92vw,420px);max-height:min(88vh,760px);overflow:hidden auto;
    border-radius:var(--mf-modal-radius);padding:20px 20px 18px;color:#fff;
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);box-shadow:var(--mf-modal-shadow);
  }
  .conn-pop[hidden]{display:none !important}
  .conn-pop:not([hidden]){display:block}
  .conn-pop .cp-close{position:absolute;top:16px;right:16px}
  .conn-pop-head{margin:0 0 8px;padding-right:36px}
  .conn-pop-head b{display:block;font-size:17px;font-weight:800;line-height:1.25}
  .conn-pop-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px}
  .conn-pop .btn{padding:10px 18px;border-radius:12px;border:1px solid var(--stroke-2);cursor:pointer;background:rgba(255,255,255,.05);color:#fff;font-family:inherit;font-weight:700;font-size:13.5px}
  .conn-pop .btn.primary{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.08);color:#fff}
  .conn-pop .btn.primary:hover{background:rgba(255,255,255,.18)}
  .link-sub{color:var(--ink-dim);font-size:12.5px;line-height:1.5;margin:0 0 16px}
  .link-share{
    display:flex;flex-direction:column;gap:12px;margin:0 0 16px;padding:14px 14px 12px;border-radius:14px;
    background:rgba(59,209,124,.10);border:1px solid rgba(59,209,124,.32)
  }
  .link-share[hidden]{display:none}
  .link-share-main{min-width:0}
  .link-share-label{display:block;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(140,229,176,.75);margin-bottom:5px}
  .link-full{
    display:block;color:#8CE5B0;font-weight:800;font-size:15px;text-decoration:none;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap
  }
  .link-full:hover{text-decoration:underline}
  .link-share-actions{display:flex;gap:8px}
  .link-share-actions .btn{flex:1;justify-content:center}
  .link-edit-block{
    margin:0 0 4px;padding:14px;border-radius:14px;
    background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)
  }
  .link-edit-label{font-size:12px;font-weight:800;color:#fff;margin:0 0 4px}
  .link-edit-hint{font-size:11.5px;color:var(--ink-dim);line-height:1.45;margin:0 0 10px}
  .link-pset{margin:0 0 14px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
  .link-pset[hidden]{display:none}
  .link-pset-label{font-size:11.5px;font-weight:700;color:var(--ink-dim);margin-bottom:10px}
  .link-pset-slots{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:0}
  .link-input-row{display:flex;align-items:stretch;border-radius:11px;overflow:hidden;border:1.5px solid var(--stroke-2);background:rgba(255,255,255,.05)}
  .link-input-row.is-locked{opacity:.72;border-color:rgba(255,255,255,.12)}
  .link-input-row.is-locked input{color:var(--ink-dim);cursor:not-allowed}
  .link-input-row:focus-within{border-color:rgba(145,70,255,.6);box-shadow:0 0 0 4px rgba(145,70,255,.16)}
  .link-prefix{display:flex;align-items:center;padding:0 4px 0 12px;color:var(--ink-dim);font-size:12.5px;white-space:nowrap;background:rgba(255,255,255,.04);user-select:none}
  .link-input-row input{flex:1;min-width:0;padding:11px 12px 11px 2px;border:none;background:transparent;box-shadow:none;border-radius:0;color:#fff;font:inherit}
  .link-status{min-height:18px;font-size:12.5px;font-weight:700;margin:9px 2px 0}
  .link-status.ok{color:#3BD17C}
  .link-status.err{color:#FF6B8A}
  .link-status.dim{color:var(--ink-dim);font-weight:600}
  .settings-pop{width:min(92vw,440px)}
  .set-sheet{display:flex;flex-direction:column;gap:16px;padding:2px}
  .set-sheet .ss-group{display:flex;flex-direction:column;gap:9px}
  .set-sheet .ss-lbl{font-size:11.5px;font-weight:800;color:var(--ink-dim);text-transform:uppercase;letter-spacing:.06em;display:flex;justify-content:space-between;align-items:center}
  .set-sheet .ss-lbl span{color:#C9B6FF;font-weight:700;text-transform:none;letter-spacing:0}
  .set-sheet #ssVol{width:100%;accent-color:#9146FF}
  .set-sheet .ss-bill{background:rgba(255,255,255,.04);border:1px solid var(--stroke-2);border-radius:12px;padding:12px 14px;font-size:13.5px;color:#fff;line-height:1.55}
  .set-sheet .ss-bill small{color:var(--ink-dim);font-size:12.5px}
  .set-sheet .ss-danger{border-top:1px solid var(--stroke-2);padding-top:14px}
  .set-sheet .ss-danger .btn{width:100%}
  .set-sheet .ss-danger .btn+.btn{margin-top:8px}
  .set-sheet .btn.ghost-danger{color:#FF7EB6;background:transparent;border:1px solid rgba(255,126,182,.35)}
  .set-sheet .ss-lang{display:flex;gap:8px}
  .set-sheet .ss-lang button{flex:1;padding:10px;border-radius:11px;border:1.5px solid var(--stroke-2);background:rgba(255,255,255,.03);
    color:var(--ink-dim);font-family:inherit;font-weight:700;font-size:13px;cursor:pointer;transition:.14s ease}
  .set-sheet .ss-lang button:hover{color:#fff}
  .set-sheet .ss-lang button.on{border-color:#9146FF;background:rgba(145,70,255,.18);color:#fff}
  .set-sheet .ss-legal-link{display:flex;align-items:center;gap:8px;padding:12px 14px;border-radius:12px;
    background:rgba(255,255,255,.04);border:1px solid var(--stroke-2);color:#fff;font-size:13.5px;font-weight:600;text-decoration:none;transition:.14s ease}
  .set-sheet .ss-legal-link:hover{background:rgba(145,70,255,.14);border-color:rgba(145,70,255,.4)}
  .set-sheet .ss-delete-confirm{margin-top:10px;padding:13px 14px;border-radius:12px;background:rgba(255,79,160,.08);border:1px solid rgba(255,126,182,.3)}
  .set-sheet .ss-delete-confirm p{margin:0 0 10px;font-size:12.5px;line-height:1.5;color:#ffd1e2}
  .set-sheet .ss-delete-confirm code{background:rgba(0,0,0,.3);padding:1px 6px;border-radius:5px;font-weight:800;color:#fff}
  .set-sheet .ss-delete-confirm input{width:100%;box-sizing:border-box;padding:11px 13px;border-radius:10px;background:rgba(0,0,0,.25);
    border:1.5px solid rgba(255,126,182,.35);color:#fff;font:inherit;font-weight:700;text-align:center;letter-spacing:.04em;outline:none;margin-bottom:10px}
  .set-sheet .ss-delete-confirm input:focus{border-color:#FF7EB6;box-shadow:0 0 0 4px rgba(255,126,182,.16)}
  .set-sheet .ss-delete-actions{display:flex;gap:8px}
  .set-sheet .ss-delete-actions .btn{width:auto;flex:1;margin-top:0 !important}
  .set-sheet .ss-delete-status{margin-top:8px;font-size:12.5px;color:#ff8a9a;min-height:16px}

  /* ===== Paramètres — page plein écran (plus un simple popup centré) ===== */
  .conn-pop.settings-pop{
    position:fixed;inset:0;left:0;top:0;transform:none;z-index:299;
    width:100%;height:100%;max-width:none;max-height:none;
    border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column;
    background:
      radial-gradient(1100px 760px at 20% -8%,rgba(122,43,255,.16) 0%,transparent 58%),
      radial-gradient(1000px 720px at 92% 8%,rgba(255,126,182,.10) 0%,transparent 55%),
      var(--mf-modal-bg,#100c22);
  }
  .conn-pop.settings-pop[hidden]{display:none !important}
  /* #settingsBody (cible de body.innerHTML dans renderIndexSettings) est le vrai
     enfant flex de #settingsPop -- .set-layout n'est qu'un descendant à l'intérieur.
     Sans ça, #settingsBody (display:block par défaut, flex-grow:0) ne se
     contraint jamais à la hauteur restante et .set-content ne peut pas scroller
     (toute la page grandit avec son contenu au lieu de défiler). */
  .settings-pop #settingsBody{flex:1 1 0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  .set-page-head{
    flex:0 0 auto;display:flex;align-items:center;gap:12px;padding:16px 22px;
    border-bottom:1px solid var(--stroke-2);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    position:sticky;top:0;z-index:2;background:rgba(13,11,30,.72);
  }
  .set-back{
    width:38px;height:38px;border-radius:12px;border:1px solid var(--stroke-2);background:rgba(255,255,255,.05);
    color:#fff;cursor:pointer;display:grid;place-items:center;flex:0 0 auto;font-size:17px;transition:.16s ease;
  }
  .set-back:hover{background:rgba(145,70,255,.18);border-color:rgba(145,70,255,.5)}
  .set-page-head b{font-family:"Clash Display","Inter",sans-serif;font-size:19px;font-weight:800;letter-spacing:-.01em}
  .set-layout{flex:1 1 0;min-height:0;overflow:hidden;display:flex;max-width:1080px;margin:0 auto;width:100%}
  .set-nav{flex:0 0 216px;min-height:0;padding:18px 12px;display:flex;flex-direction:column;gap:4px;overflow-y:auto;border-right:1px solid var(--stroke-2)}
  .set-nav button{
    display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:11px;border:none;
    background:transparent;color:var(--ink-dim);font-family:inherit;font-weight:700;font-size:13.5px;
    cursor:pointer;text-align:left;transition:.14s ease;
  }
  .set-nav button:hover{color:#fff;background:rgba(255,255,255,.05)}
  .set-nav button.on{color:#fff;background:linear-gradient(180deg,rgba(145,70,255,.28),rgba(107,43,255,.16));box-shadow:0 0 0 1px rgba(145,70,255,.35) inset}
  .set-content{flex:1 1 0;min-width:0;min-height:0;overflow-y:auto;padding:28px 30px 90px;scroll-behavior:smooth}
  .set-panel[hidden]{display:none}
  .set-panel{scroll-margin-top:10px}
  .set-panel + .set-panel{margin-top:10px;padding-top:32px;border-top:1px solid var(--stroke-2)}
  .set-panel h2{font-family:"Clash Display","Inter",sans-serif;font-size:22px;font-weight:800;margin:0 0 4px;letter-spacing:-.01em}
  .set-panel .set-panel-sub{color:var(--ink-dim);font-size:13.5px;margin:0 0 22px;line-height:1.5}
  .set-card{background:rgba(255,255,255,.03);border:1px solid var(--stroke-2);border-radius:16px;padding:18px 20px;margin-bottom:16px}
  .set-card h3{margin:0 0 14px;font-size:14.5px;font-weight:800;display:flex;align-items:center;gap:8px}
  .set-card p.set-card-hint{color:var(--ink-dim);font-size:12.5px;line-height:1.5;margin:-8px 0 14px}
  @media (max-width:820px){
    .set-layout{flex-direction:column}
    .set-nav{flex-direction:row;flex:0 0 auto;overflow-x:auto;overflow-y:hidden;border-right:none;border-bottom:1px solid var(--stroke-2);padding:10px 12px;gap:6px}
    .set-nav button{flex:0 0 auto;white-space:nowrap}
    .set-content{padding:20px 16px 60px}
  }

  /* Identité (résumé compte) */
  .set-identity{display:flex;align-items:center;gap:14px;margin-bottom:18px}
  .set-identity .si-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#FF7EB6,#9146FF);display:grid;place-items:center;font-weight:800;font-size:20px;color:#fff;flex:0 0 auto;overflow:hidden}
  .set-identity .si-avatar img{width:100%;height:100%;object-fit:cover;display:block}
  .set-identity .si-txt{min-width:0}
  .set-identity .si-name{font-weight:800;font-size:16px;color:#fff}
  .set-identity .si-tag{color:var(--ink-dim);font-size:12.5px}
  .set-identity .si-status{display:flex;align-items:center;gap:6px;margin-top:5px;font-size:12px;font-weight:600;color:#8CE5B0}
  .set-identity .si-status-dot{width:8px;height:8px;border-radius:50%;background:#3BD17C;box-shadow:0 0 0 3px rgba(59,209,124,.18);flex:0 0 auto}

  /* Sélecteur segmenté générique (genre, etc.) — même langage visuel que .ss-lang */
  .set-seg{display:flex;gap:8px;flex-wrap:wrap}
  .set-seg button{flex:1;min-width:84px;padding:11px;border-radius:11px;border:1.5px solid var(--stroke-2);background:rgba(255,255,255,.03);
    color:var(--ink-dim);font-family:inherit;font-weight:700;font-size:13px;cursor:pointer;transition:.14s ease}
  .set-seg button:hover{color:#fff}
  .set-seg button.on{border-color:#9146FF;background:rgba(145,70,255,.18);color:#fff}

  /* Facturation : mode de paiement + historique des transactions */
  .bill-pm-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.03);border:1px solid var(--stroke-2)}
  .bill-pm-ico{font-size:22px;flex:0 0 auto}
  .bill-pm-txt{flex:1;min-width:0}
  .bill-pm-txt b{display:block;font-size:13.5px;color:#fff}
  .bill-pm-txt small{color:var(--ink-dim);font-size:12px}
  .bill-pm-badge{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:4px 9px;border-radius:999px;background:rgba(59,209,124,.16);color:#8CE5B0;flex:0 0 auto}
  .bill-tx-head,.bill-tx-row{display:grid;grid-template-columns:1.1fr 1.6fr 0.8fr;gap:10px;font-size:12.5px;padding:9px 2px}
  .bill-tx-head{color:var(--ink-dim);font-weight:800;text-transform:uppercase;font-size:10.5px;letter-spacing:.05em;border-bottom:1px solid var(--stroke-2)}
  .bill-tx-row{color:#fff;border-bottom:1px solid var(--stroke)}
  .bill-tx-row:last-child{border-bottom:none}
  .bill-tx-row span:last-child,.bill-tx-head span:last-child{font-weight:700;text-align:right}
  .bill-tx-head span:last-child{font-weight:800}

  /* Lignes à interrupteur (notifications) */
  .set-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0}
  .set-toggle-row+.set-toggle-row{border-top:1px solid var(--stroke-2)}
  .set-toggle-row .str-label{font-size:13.5px;font-weight:700;color:#fff}
  .set-toggle-row .str-sub{font-size:12px;color:var(--ink-dim);margin-top:2px}

  /* Bouton "Enregistrer" (sous les champs Âge/Genre/Pays) : apparaît quand un champ
     non confirmé-directement (Compte / Notifications / Préférences) a été modifié.
     L'onglet Abonnement n'en a pas besoin, ses actions s'appliquent tout de suite. */
  .set-savebar{
    display:none;align-items:center;justify-content:center;gap:8px;
    width:100%;margin:14px 0 18px;padding:13px 20px;border-radius:14px;border:none;
    background:linear-gradient(180deg,#A65BFF,#6B2BFF);box-shadow:0 10px 26px rgba(107,43,255,.4);
    color:#fff;font-family:inherit;font-weight:800;font-size:14px;cursor:pointer;
  }
  .set-savebar.show{display:flex}
  .set-savebar:hover{filter:brightness(1.08)}

  /* ===== Onboarding ===== */
  #screen-onboarding{
    position:relative;z-index:2;flex:1 1 auto;min-height:0;flex-direction:column;
    align-items:center;justify-content:center;justify-content:safe center;
    padding:30px 24px 30px;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .onb-card{
    width:min(94vw,720px);
    padding:42px 44px 34px;border-radius:28px;
    background:rgba(22,22,28,.82);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(28px) saturate(140%);
    -webkit-backdrop-filter:blur(28px) saturate(140%);
    box-shadow:0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.03) inset;
    color:#fff;text-align:center;
    animation:authCardIn .35s cubic-bezier(.2,.7,.3,1);
  }
  .onb-progress{display:flex;gap:6px;margin:0 auto 28px;width:fit-content}
  .onb-progress span{
    width:52px;height:4px;border-radius:2px;background:rgba(255,255,255,.08);
    transition:.3s ease;
  }
  .onb-progress span.done{background:linear-gradient(90deg,#FF7EB6,#9146FF,#5BE9FF)}
  .onb-step{text-align:center}
  .onb-step h2{
    font-family:"Clash Display",sans-serif;font-weight:700;
    font-size:32px;letter-spacing:-.015em;margin:0 0 4px;
    background:linear-gradient(180deg,#fff 0%,#d9c6ff 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
    text-align:center;
  }
  .onb-step .sub{color:#b9bbbe;font-size:15px;margin:0 auto 16px;text-align:center !important;width:100%;display:block}

  /* ---- Welcome step (grande page Hey, X!) ---- */
  .onb-welcome{padding:10px 0}
  .onb-welcome h2{font-size:clamp(34px,5vw,48px);margin:0 0 10px}
  .onb-welcome-avatar{
    width:120px;height:120px;border-radius:50%;margin:0 auto 22px;
    display:grid;place-items:center;font-size:52px;font-weight:800;color:#fff;overflow:hidden;
    background:linear-gradient(135deg,#5865F2,#404EED);
    box-shadow:0 0 0 4px rgba(255,255,255,.14) inset, 0 18px 50px rgba(88,101,242,.5);
  }
  .onb-welcome-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .onb-welcome .onb-actions{margin-top:26px}

  /* ---- Country select ---- */
  .onb-select{
    width:100%;box-sizing:border-box;padding:16px 16px;border-radius:14px;
    background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.14);
    color:#fff;font-family:inherit;font-size:16px;outline:none;cursor:pointer;
    margin-bottom:8px;transition:.18s ease;
    appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat:no-repeat;background-position:right 14px center;padding-right:38px;
  }
  .onb-select:focus{border-color:rgba(145,70,255,.6);background-color:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.18)}
  .onb-select option{background:#1a1a20;color:#fff}

  /* Formulaire fusionné (âge + genre + pays) */
  .onb-merged .onb-merged-block{margin-bottom:18px;text-align:left}
  .onb-merged .onb-merged-block:last-of-type{margin-bottom:8px}
  .onb-merged .onb-merged-lbl{display:block;font-size:13.5px;font-weight:700;color:#fff;margin-bottom:8px;letter-spacing:.01em}
  .onb-merged .onb-age{margin-bottom:0;width:100%;box-sizing:border-box}
  .onb-merged .onb-options{margin:0}
  .onb-merged .onb-skip{margin-top:8px}

  /* Custom country picker — affiche les vraies images de drapeaux (flagcdn) */
  .ctry-picker{position:relative;width:100%;margin-bottom:8px}
  .ctry-trigger{
    width:100%;box-sizing:border-box;padding:14px 38px 14px 14px;border-radius:14px;
    background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.14);
    color:#fff;font-family:inherit;font-size:16px;cursor:pointer;text-align:left;
    display:flex;align-items:center;gap:10px;transition:.18s ease;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat:no-repeat;background-position:right 14px center;
  }
  .ctry-trigger:hover,.ctry-picker[data-open="true"] .ctry-trigger{border-color:rgba(88,101,242,.6);background-color:rgba(255,255,255,.07)}
  .ctry-trigger .ctry-flag{width:26px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.4);flex:0 0 auto}
  .ctry-trigger .ctry-name{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .ctry-trigger .ctry-placeholder{color:#b9bbbe}
  .ctry-panel{
    position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:50;
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);border-radius:14px;
    box-shadow:var(--mf-modal-shadow);
    max-height:0;overflow:hidden;opacity:0;pointer-events:none;
    transition:opacity .15s ease, max-height .2s ease;
  }
  .ctry-picker[data-open="true"] .ctry-panel{max-height:340px;opacity:1;pointer-events:auto}
  .ctry-search{
    width:100%;box-sizing:border-box;padding:11px 14px;border:none;border-bottom:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.04);color:#fff;font-family:inherit;font-size:14px;outline:none;
  }
  .ctry-list{max-height:280px;overflow-y:auto;padding:4px}
  .ctry-list .ctry-item{
    display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:9px;cursor:pointer;
    color:#fff;font-size:14.5px;transition:background .12s ease;
  }
  .ctry-list .ctry-item:hover,.ctry-list .ctry-item.is-active{background:rgba(88,101,242,.18)}
  .ctry-list .ctry-item img{width:26px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.4);flex:0 0 auto}
  .ctry-list .ctry-empty{color:#b9bbbe;font-size:13px;text-align:center;padding:14px}

  /* ---- Personnalisation step ---- */
  .onb-perso{text-align:left}
  .onb-perso h2,.onb-perso .sub{text-align:center}
  .onb-bulles-cta{
    width:100%;display:flex;align-items:center;gap:14px;padding:16px 16px;border-radius:16px;cursor:pointer;
    background:linear-gradient(135deg,#9146FF 0%,#B14BFF 46%,#FF7EB6 100%);
    border:1.5px solid rgba(255,255,255,.22);color:#fff;text-align:left;margin-bottom:16px;
    box-shadow:0 8px 26px rgba(145,70,255,.45), inset 0 1px 0 rgba(255,255,255,.28);
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .onb-bulles-cta:hover{box-shadow:0 16px 42px rgba(145,70,255,.6)}
  .onb-bulles-ico{font-size:30px;line-height:1;flex:0 0 auto}
  .onb-bulles-txt{display:flex;flex-direction:column;flex:1;gap:2px}
  .onb-bulles-txt b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:16px}
  .onb-bulles-txt small{font-size:12px;color:rgba(255,255,255,.92)}
  .onb-bulles-arrow{font-size:26px;color:rgba(255,255,255,.85);flex:0 0 auto;font-weight:300}
  .onb-perso-grid{display:flex;flex-direction:column;gap:12px;margin-bottom:14px}
  .onb-field{display:flex;flex-direction:column;gap:6px}
  .onb-field-lbl{font-size:12.5px;font-weight:600;color:#b9bbbe;letter-spacing:.02em}
  .onb-input{
    width:100%;box-sizing:border-box;padding:12px 14px;border-radius:11px;outline:none;
    background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.10);
    color:#fff;font-family:inherit;font-size:14px;resize:none;transition:.18s ease;
  }
  .onb-input:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.16)}
  .onb-perso-row{display:flex;gap:16px;align-items:flex-end;margin-bottom:18px}
  .onb-colors{flex:1;display:flex;flex-direction:column;gap:6px}
  .onb-color-wheels{display:flex;gap:10px}
  .onb-color-wheels input[type=color]{width:46px;height:46px;border:none;border-radius:50%;background:none;cursor:pointer;padding:0}
  .onb-color-wheels input[type=color]::-webkit-color-swatch-wrapper{padding:0}
  .onb-color-wheels input[type=color]::-webkit-color-swatch{border:2px solid rgba(255,255,255,.25);border-radius:50%}
  .onb-photo{display:flex;flex-direction:column;gap:6px;align-items:center}
  .onb-avatar{
    width:58px;height:58px;border-radius:50%;display:grid;place-items:center;cursor:pointer;overflow:hidden;
    background:rgba(255,255,255,.05);border:1.5px dashed rgba(255,255,255,.25);font-size:22px;transition:.18s ease;
  }
  .onb-avatar:hover{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.08)}
  .onb-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .onb-options{display:grid;gap:14px;margin-bottom:26px}
  .onb-options:has(+ .onb-skip){margin-bottom:14px}
  .onb-options.three{grid-template-columns:repeat(3,1fr)}
  .onb-options.four{grid-template-columns:repeat(2,1fr)}
  .onb-options.genders{grid-template-columns:repeat(4,1fr)}
  @media (max-width:640px){
    /* Frame contenue et scrollable au milieu de l'écran, au lieu de laisser
       la carte grandir librement (et donc déborder du viewport). */
    .onb-card{
      padding:22px 18px 18px;
      max-height:min(82vh,640px);overflow-y:auto;-webkit-overflow-scrolling:touch;
    }
    .onb-step h2{font-size:22px}
    .onb-step .sub{font-size:13.5px;margin:0 auto 10px}
    .onb-progress{margin:0 auto 16px}
    .onb-welcome-avatar{width:76px;height:76px;font-size:34px;margin:0 auto 14px}
    .onb-merged .onb-merged-block{margin-bottom:12px}
    .onb-merged .onb-merged-lbl{font-size:12.5px;margin-bottom:6px}
    .onb-options{gap:8px;margin-bottom:14px}
    .onb-options.genders{grid-template-columns:repeat(2,1fr)}
    .onb-opt{padding:16px 10px;gap:8px;font-size:14px}
  }
  .onb-opt{
    padding:30px 14px;border-radius:18px;cursor:pointer;
    background:rgba(255,255,255,.03);border:1.5px solid rgba(255,255,255,.08);
    color:#fff;font-family:inherit;font-weight:600;font-size:15px;
    display:flex;flex-direction:column;align-items:center;gap:12px;
    transition:transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .25s ease;
    position:relative;overflow:hidden;
  }
  .onb-opt::before{
    content:"";position:absolute;inset:0;border-radius:inherit;opacity:0;
    background:linear-gradient(135deg, rgba(255,126,182,.16), rgba(91,233,255,.16));
    transition:opacity .25s ease;
  }
  .onb-opt:hover{background:rgba(255,255,255,.06);transform:translateY(-3px);border-color:rgba(255,255,255,.18)}
  .onb-opt:hover::before{opacity:1}
  .onb-opt.selected{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);box-shadow:0 0 0 4px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.35)}
  .onb-opt.selected::before{opacity:1;background:linear-gradient(135deg, rgba(255,126,182,.25), rgba(91,233,255,.25))}
  .onb-opt > *{position:relative;z-index:1}
  /* Fixed height so all 3 emojis sit at the same vertical baseline */
  .onb-opt .emoji{font-size:36px;line-height:1;display:flex;align-items:center;justify-content:center;height:42px}
  /* ♂ / ♀ bolder for the gender options */
  .onb-opt .emoji.emoji-bold{font-weight:900;-webkit-text-stroke:1.5px #fff;color:#fff;font-size:38px}
  /* Star SVG sized to match the ♂♀ visual scale */
  .onb-opt .emoji svg{width:34px !important;height:34px !important}
  /* Outline star (for "Autre") — SVG already strokes only */
  .onb-opt .emoji svg{display:block}

  /* Smaller text-link to skip the gender question */
  .onb-skip{
    display:block;margin:-8px auto 8px;padding:4px 10px;
    background:transparent;border:none;cursor:pointer;
    color:#e7e8ea;font-family:inherit;font-size:13.5px;font-weight:600;
    text-decoration:underline;text-decoration-color:rgba(255,255,255,.40);
    transition:color .15s ease, text-decoration-color .15s ease;
  }
  .onb-skip:hover{color:#fff;text-decoration-color:rgba(255,255,255,.80)}
  .onb-skip.is-active{color:#fff;text-decoration-color:#FF7EB6}
  .onb-opt .label{font-size:13.5px}
  .onb-age{
    width:100%;box-sizing:border-box;
    padding:18px 16px;border-radius:14px;
    background:rgba(255,255,255,.04);border:1.5px solid var(--stroke-2);
    color:#fff;font-family:"Clash Display",sans-serif;font-weight:700;
    font-size:28px;text-align:center;outline:none;
    transition:.18s ease;letter-spacing:.05em;
  }
  .onb-age:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.18)}
  .onb-terms{display:flex;align-items:flex-start;gap:9px;margin:0 0 16px;padding:11px 13px;border-radius:12px;
    background:rgba(255,255,255,.04);border:1.5px solid var(--stroke-2);cursor:pointer;text-align:left}
  .onb-terms input[type=checkbox]{width:18px;height:18px;flex:none;margin:1px 0 0;accent-color:#9146FF;cursor:pointer}
  .onb-terms span{font-size:12.5px;line-height:1.5;color:#dcdde3}
  .onb-terms a{color:#c7a5ff;text-decoration:underline}
  .onb-terms a:hover{color:#fff}
  .onb-actions{display:flex;gap:10px;margin-top:6px}
  .onb-actions--single{justify-content:center}
  .onb-actions--single .onb-btn{min-width:200px}
  /* Avatar de bienvenue plus compact quand il coiffe le formulaire fusionné */
  .onb-merged .onb-welcome-avatar{width:80px;height:80px;font-size:36px;margin:0 auto 12px}
  .onb-btn{
    flex:1;padding:13px 18px;border-radius:13px;border:none;cursor:pointer;
    font-family:inherit;font-weight:700;font-size:14.5px;
    transition:.16s ease;
  }
  .onb-btn--prev{background:rgba(255,255,255,.05);color:#fff;border:1px solid var(--stroke-2)}
  .onb-btn--prev:hover{background:rgba(255,255,255,.10)}
  .onb-btn--next{
    background:linear-gradient(180deg,#A65BFF 0%, #6B2BFF 100%);color:#fff;
    box-shadow:0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 18px rgba(107,43,255,.45), 0 0 30px rgba(145,70,255,.35);
  }
  .onb-btn--next:hover{transform:translateY(-1px)}
  .onb-btn--next:disabled{opacity:.45;cursor:not-allowed;transform:none}
  .onb-actions--stack{flex-direction:column;gap:12px;margin-top:22px}
  .onb-actions--stack .onb-btn{width:100%}
  .onb-later{display:flex;flex-direction:column;align-items:center;gap:3px;line-height:1.25;padding:11px 18px}
  .onb-later span{font-weight:700;font-size:14.5px}
  .onb-later small{font-weight:400;font-size:11px;color:#b9bbbe;max-width:34ch}

  /* ===== Swipe deck =====
     Marges haut/bas réservées en permanence : .swipe-actions est TOUJOURS
     position:fixed (voir plus bas) donc hors du flux -- sans cette réserve,
     .swipe-stage grandirait par-dessus la zone où les boutons flottent. */
  #screen-swipe{
    position:relative;z-index:2;flex:1 1 auto;flex-direction:column;
    /* 18px latéraux : MÊME valeur que .stage de l'éditeur (editor.html), pour
       que la carte y ait exactement la même taille qu'ici. Avec 24 d'un côté et
       12 de l'autre, l'éditeur disposait de 366px de large contre 342 au swipe
       sur un téléphone de 390px -- deux tailles de carte différentes. */
    align-items:center;justify-content:flex-start;padding:62px 18px 94px;gap:10px;min-height:0;
  }
  /* Stage = card + floating orb-bubbles */
  /* Conteneur souple : occupe tout l'espace dispo, centre .swipe-shell-wrap (qui,
     lui, a une taille de référence fixe mise à l'échelle via JS -- voir plus bas).
     flex+align-items/justify-content (PAS grid+place-items) : transform:scale() ne
     réduit JAMAIS la boîte de LAYOUT de .swipe-shell-wrap (406×663 fixe même
     visuellement rétréci) -- dès qu'elle est plus grande que l'espace dispo (tout
     téléphone), elle "déborde" du point de vue du centrage. Testé : grid
     place-items:center bascule alors en centrage "safe" (repli sur le bord, comme
     un start-align) et la carte part hors-écran d'un côté ; align-items/
     justify-content:center en flex, eux, centrent correctement même en
     débordement (offset négatif symétrique) -- mêmes formules, même bug que
     .card-zone dans editor.html, corrigé de la même façon. */
  .swipe-stage{
    position:relative;
    width:100%;
    flex:1 1 auto;min-height:0;overflow:visible;
    display:flex;align-items:center;justify-content:center;
    pointer-events:none;
  }
  .swipe-stage .swipe-wrap{pointer-events:auto}
  /* Orbit floats across the whole viewport, BEHIND the profile card */
  .swipe-stage .orbit{
    position:fixed;inset:0;pointer-events:none;z-index:5;
  }
  /* Orb wrapper — carries absolute position + float animation */
  .swipe-stage .orbit .orb-wrap{
    position:absolute;
    display:flex;flex-direction:column;align-items:center;gap:9px;
    pointer-events:auto;
    animation:orbFloat 6s ease-in-out infinite;
  }
  /* Orb bubble — uniform 115px diameter for all types */
  .swipe-stage .orbit .orb{
    width:115px;height:115px;border-radius:50%;
    display:grid;place-items:center;
    border:1.5px solid rgba(255,255,255,.28);
    cursor:pointer;pointer-events:auto;
    transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, border-color .25s ease;
    color:#fff;position:relative;overflow:visible;
  }
  /* Cover image must clip to the circle (orb is overflow:visible for glow) */
  .swipe-stage .orbit .orb > .orb-cover{clip-path:circle(50%);-webkit-clip-path:circle(50%)}
  /* Inner specular shimmer */
  .swipe-stage .orbit .orb::before{
    content:"";position:absolute;inset:0;border-radius:50%;
    background:radial-gradient(circle at 34% 28%, rgba(255,255,255,.30) 0%, transparent 56%);
    pointer-events:none;z-index:1;
  }
  .swipe-stage .orbit .orb:hover{transform:scale(1.12);border-color:rgba(255,255,255,.42)}
  .swipe-stage .orbit .orb:active{transform:scale(.93)}
  .swipe-stage .orbit .orb svg{width:42px;height:42px;position:relative;z-index:2;filter:drop-shadow(0 2px 8px rgba(0,0,0,.4))}
  .swipe-stage .orbit .orb .orb-cover{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center;z-index:2}
  /* Pochettes verticales (anime / film / série) : on cadre vers le haut pour ne pas couper les visages */
  .swipe-stage .orbit .orb[data-kind="anime"] .orb-cover,
  .swipe-stage .orbit .orb[data-kind="film"] .orb-cover{object-position:center 20%}
  /* Kind-specific vibrant colors :
     - music = green (Spotify-like)
     - anime = deep purple
     - film  = light blue
     - game  = red */
  .swipe-stage .orbit .orb[data-kind="music"]{
    background:radial-gradient(circle at 34% 28%, var(--orb-c1,#2BFF8C) 0%, var(--orb-c2,#1ED760) 35%, var(--orb-c3,#0E7A38) 100%);
    border-color:var(--orb-bc,rgba(80,255,150,.85));
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.22),
      inset 0 -10px 22px rgba(0,0,0,.28),
      0 0 0 2px var(--orb-rc,rgba(29,185,84,.40)),
      0 0 22px 4px var(--orb-gc,rgba(30,215,96,.80)),
      0 0 60px 14px var(--orb-hc,rgba(29,185,84,.45)),
      0 14px 30px rgba(0,0,0,.55);
  }
  /* Pochette qui tourne comme un vinyle → identifie une bulle de son au premier
     coup d'œil, même sans cliquer dessus. */
  .swipe-stage .orbit .orb[data-kind="music"] .orb-cover{animation:orbVinylSpin 6s linear infinite}
  @keyframes orbVinylSpin{to{transform:rotate(360deg)}}
  html.perf-lite .swipe-stage .orbit .orb[data-kind="music"] .orb-cover{animation:none}
  /* Anime & voice : violet/purple fixe (pas personnalisable — seuls Musique/Jeu/Série·Film le sont) */
  .swipe-stage .orbit .orb[data-kind="anime"],
  .swipe-stage .orbit .orb[data-kind="voice"]{
    background:radial-gradient(circle at 34% 28%, #C7A5FF 0%, #8B5CF6 45%, #4A1BC1 100%);
    border-color:rgba(199,165,255,.85);
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.25),
      inset 0 -10px 22px rgba(0,0,0,.28),
      0 0 0 2px rgba(139,92,246,.50),
      0 0 24px 5px rgba(199,165,255,.85),
      0 0 62px 16px rgba(139,92,246,.55),
      0 14px 30px rgba(0,0,0,.5);
  }
  /* Film : violet/purple par défaut, personnalisable via --orb-* (couleur choisie dans l'éditeur) */
  .swipe-stage .orbit .orb[data-kind="film"]{
    background:radial-gradient(circle at 34% 28%, var(--orb-c1,#C7A5FF) 0%, var(--orb-c2,#8B5CF6) 45%, var(--orb-c3,#4A1BC1) 100%);
    border-color:var(--orb-bc,rgba(199,165,255,.85));
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.25),
      inset 0 -10px 22px rgba(0,0,0,.28),
      0 0 0 2px var(--orb-rc,rgba(139,92,246,.50)),
      0 0 24px 5px var(--orb-gc,rgba(199,165,255,.85)),
      0 0 62px 16px var(--orb-hc,rgba(139,92,246,.55)),
      0 14px 30px rgba(0,0,0,.5);
  }
  /* Game : Discord cool blue par défaut (deep navy core + bright cyan rim), personnalisable via --orb-* */
  .swipe-stage .orbit .orb[data-kind="game"]{
    background:radial-gradient(circle at 34% 28%, var(--orb-c1,#8DCBFF) 0%, var(--orb-c2,#2F7BD8) 45%, var(--orb-c3,#102E5A) 100%);
    border-color:var(--orb-bc,rgba(141,203,255,.9));
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,.25),
      inset 0 -10px 22px rgba(0,0,0,.32),
      0 0 0 2px var(--orb-rc,rgba(47,123,216,.55)),
      0 0 24px 5px var(--orb-gc,rgba(141,203,255,.85)),
      0 0 62px 16px var(--orb-hc,rgba(47,123,216,.55)),
      0 14px 30px rgba(0,0,0,.55);
  }
  /* Contour désactivé : pas de bordure/anneau. Avec pochette, fond neutre sinon le
     dégradé couleur fuit en liseré anti-alias autour du clip circulaire. */
  .swipe-stage .orbit .orb.orb--no-contour{
    border:none!important;
    outline:none!important;
  }
  .swipe-stage .orbit .orb.orb--no-contour:has(.orb-cover){
    background:#0c0c10!important;
  }
  .swipe-stage .orbit .orb.orb--no-contour.orb--no-glow[data-kind="music"],
  .swipe-stage .orbit .orb.orb--no-contour.orb--no-glow[data-kind="game"],
  .swipe-stage .orbit .orb.orb--no-contour.orb--no-glow[data-kind="film"]{
    box-shadow:0 14px 30px rgba(0,0,0,.55)!important;
  }
  .swipe-stage .orbit .orb.orb--no-contour:not(.orb--no-glow)[data-kind="music"]{
    box-shadow:0 0 40px 14px var(--orb-gc,rgba(30,215,96,.45)),0 0 70px 20px var(--orb-hc,rgba(29,185,84,.28)),0 14px 30px rgba(0,0,0,.55)!important;
  }
  .swipe-stage .orbit .orb.orb--no-contour:not(.orb--no-glow)[data-kind="game"]{
    box-shadow:0 0 40px 14px var(--orb-gc,rgba(141,203,255,.45)),0 0 70px 20px var(--orb-hc,rgba(47,123,216,.28)),0 14px 30px rgba(0,0,0,.55)!important;
  }
  .swipe-stage .orbit .orb.orb--no-contour:not(.orb--no-glow)[data-kind="film"]{
    box-shadow:0 0 40px 14px var(--orb-gc,rgba(199,165,255,.45)),0 0 70px 20px var(--orb-hc,rgba(139,92,246,.28)),0 14px 30px rgba(0,0,0,.5)!important;
  }
  /* Pochette légèrement oversized pour masquer le fringe 1px du clip circulaire */
  .swipe-stage .orbit .orb.orb--no-contour > .orb-cover{
    inset:-2px;width:calc(100% + 4px);height:calc(100% + 4px);
  }
  /* Icône (pochette ou symbole du type) affichée par-dessus l'aplat de survol --
     masquée par défaut si une pochette est présente (ne réapparaît qu'au survol),
     toujours visible sinon (identique au rendu sans pochette d'avant). */
  .swipe-stage .orbit .orb .orb-hicon{position:absolute;inset:0;display:grid;place-items:center;border-radius:50%;opacity:0;transition:opacity .15s ease;pointer-events:none;z-index:3}
  .swipe-stage .orbit .orb:not(:has(.orb-cover)) .orb-hicon{opacity:1}
  /* Play/pause à l'intérieur de .orb-hicon (bulles "lisibles" uniquement, cf.
     .orb--playable) -- les deux sont dans le DOM, un seul visible à la fois
     selon .playing (posé/retiré par playOrb()/openClipOverlay() ci-dessous). */
  .swipe-stage .orbit .orb .orb-ico-play,
  .swipe-stage .orbit .orb .orb-ico-pause{position:absolute;inset:0;display:grid;place-items:center}
  .swipe-stage .orbit .orb .orb-ico-pause{display:none}
  .swipe-stage .orbit .orb.playing .orb-ico-play{display:none}
  .swipe-stage .orbit .orb.playing .orb-ico-pause{display:grid}
  /* Survol façon Discord (desktop uniquement) : la bulle s'inverse en aplat de
     couleur d'accent, icône blanche par-dessus -- RÉSERVÉ aux bulles "lisibles"
     (son, ou jeu avec clip -- cf. .orb--playable posée dans renderOrbs()) : une
     bulle sans musique ni clip reste la bulle de base au survol, rien ne
     s'affiche dessus. Toggle profil.orbHoverInvert pour le survol lui-même,
     cf. applyOrbCustomColor()/orbDisplayHoverOff() -- mais tant que ça joue
     (.playing), l'aplat + l'icône (pause) restent affichés même sans survol,
     et même si orbHoverInvert est désactivé (retour visuel fonctionnel, pas
     juste décoratif). */
  .swipe-stage .orbit .orb.orb--playable:not(.orb--locked)::after{
    content:'';position:absolute;inset:-3px;border-radius:50%;z-index:2;opacity:0;
    pointer-events:none;transition:opacity .15s ease;background:rgba(0,0,0,.55);
  }
  .swipe-stage .orbit .orb.orb--playable.playing:not(.orb--locked)::after{opacity:1}
  .swipe-stage .orbit .orb.orb--playable.playing:not(.orb--locked) .orb-hicon{opacity:1}
  @media (hover:hover) and (pointer:fine){
    .swipe-stage .orbit .orb.orb--playable:not(.orb--hover-off):not(.orb--locked):hover::after{opacity:1}
    .swipe-stage .orbit .orb.orb--playable:not(.orb--hover-off):not(.orb--locked):hover .orb-hicon{opacity:1}
  }
  .swipe-stage .orbit .orb[data-kind="voice"].playing{animation:voicePulse 1s ease-in-out infinite}
  @keyframes voicePulse{
    0%,100%{box-shadow:0 0 0 4px rgba(145,70,255,.5), 0 0 32px rgba(145,70,255,.75)}
    50%    {box-shadow:0 0 0 10px rgba(145,70,255,.2), 0 0 70px rgba(145,70,255,1)}
  }
  @keyframes orbFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
  @keyframes orbDrift{
    0%,100%{ filter:drop-shadow(0 0 0 transparent) }
    50%    { filter:drop-shadow(0 8px 18px rgba(255,255,255,.08)) }
  }
  /* Common orbs — the displayed profile shares this bubble with me. Stand out with
     a bright golden glow + scale-up + pulsing badge so they read as "we both like this". */
  .swipe-stage .orbit .orb--common{
    transform:scale(1.08);
    border-color:#FFE680 !important;
    box-shadow:
      inset 0 0 0 1.5px rgba(255,255,255,.4),
      inset 0 -10px 22px rgba(0,0,0,.24),
      0 0 0 2px rgba(255,224,128,.7),
      0 0 16px 3px rgba(255,221,90,.55),
      0 0 36px 8px rgba(255,180,50,.28),
      0 14px 30px rgba(0,0,0,.5) !important;
    animation:orbCommonPulse 2.6s ease-in-out infinite;
  }
  /* La pochette d'une bulle commune : très légèrement plus lumineuse */
  .swipe-stage .orbit .orb--common .orb-cover{filter:brightness(1.06) saturate(1.08)}
  .swipe-stage .orbit .orb--common::after{
    content:"✨";position:absolute;top:-6px;right:-6px;z-index:4;
    width:24px;height:24px;border-radius:50%;
    background:linear-gradient(135deg,#FFD83D,#FF9A3D);
    color:#1c1d22;font-size:13px;line-height:24px;text-align:center;
    box-shadow:0 4px 12px rgba(255,170,40,.65), 0 0 0 2px rgba(255,255,255,.85) inset;
    animation:orbCommonStarSpin 5s linear infinite;
  }
  @keyframes orbCommonPulse{
    0%,100% { filter:brightness(1.03) drop-shadow(0 0 3px rgba(255,216,61,.35)); }
    50%     { filter:brightness(1.1) drop-shadow(0 0 10px rgba(255,221,90,.5)); }
  }
  @keyframes orbCommonStarSpin{to{transform:rotate(360deg)}}
  .swipe-stage .orbit .orb--common:hover{transform:scale(1.22)}
  .orb-wrap--common .orb-label{color:#FFD83D !important;font-weight:800;text-shadow:0 0 8px rgba(255,216,61,.55)}

  /* Bulles verrouillées (compte sans Boost qui n'a pas assez de bulles) */
  .swipe-stage .orbit .orb.orb--locked{
    background:radial-gradient(circle at 35% 30%, #2b2b38, #131319 72%) !important;
    border-color:rgba(255,255,255,.16) !important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.5) !important;
    color:#aeb2c6 !important;
  }
  .swipe-stage .orbit .orb.orb--locked:hover{transform:scale(1.08);border-color:rgba(255,255,255,.3) !important}
  .orb-lock-glyph{font-family:"Clash Display",sans-serif;font-weight:800;font-size:46px;line-height:1;color:#c9ccda;text-shadow:0 2px 8px rgba(0,0,0,.55);position:relative;z-index:2}
  .orb-wrap--locked .orb-label{color:#6f7286 !important}

  /* Popup "profil incomplet" au clic sur une bulle verrouillée */
  .orb-lock-pop{position:fixed;inset:0;z-index:95;display:none;align-items:center;justify-content:center;padding:22px}
  .orb-lock-pop.open{display:flex}
  .orb-lock-pop .olp-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .orb-lock-pop .olp-box{position:relative;z-index:1;max-width:340px;width:100%;text-align:center;border-radius:var(--mf-modal-radius);padding:26px 22px 20px;
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);box-shadow:var(--mf-modal-shadow)}
  .orb-lock-pop .olp-ico{font-size:34px}
  .orb-lock-pop .olp-msg{color:#dfe1ea;font-size:14.5px;line-height:1.5;margin:12px 0 18px}
  .orb-lock-pop .olp-btn{width:100%;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:13px;cursor:pointer;font-family:inherit;font-weight:800;font-size:14px;color:#fff;
    background:rgba(255,255,255,.12);box-shadow:none;transition:transform .15s ease,background .15s ease}
  .orb-lock-pop .olp-btn:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}

  /* Same 115px even when crowded — user requested uniform size */
  .orbit.orbit--dynamic .orb{width:115px;height:115px}
  .orbit.orbit--dynamic .orb svg{width:38px;height:38px}
  .orbit.orbit--dynamic .orb-label{max-width:120px;font-size:11px}
  /* When dynamic, position is set inline → kill the CSS nth-child defaults */
  .orbit.orbit--dynamic .orb-wrap:nth-child(n){top:auto;left:auto;right:auto;bottom:auto;animation:none}
  .orbit .orb-wrap{user-select:none;-webkit-user-select:none}
  .orbit .orb-wrap .orb{cursor:pointer}

  /* Music orbs : same 115px as the rest */
  .orbit .orb-wrap--music .orb{width:115px;height:115px}
  .orbit .orb-wrap--music .orb svg{width:44px;height:44px}
  .orbit.orbit--dynamic .orb-wrap--music .orb{width:115px;height:115px}
  .orbit.orbit--dynamic .orb-wrap--music .orb svg{width:44px;height:44px}

  /* ===== Taille des bulles : référence fixe unique =====
     115px partout (music/game/anime/film), quelle que soit la résolution --
     renderOrbs() (js/app.js) pose la taille RÉELLEMENT affichée en JS
     (D = 115 * scale, même "scale" que .swipe-shell-wrap) puisque .orbit est un
     FRÈRE de .swipe-shell-wrap (position:fixed plein viewport), pas un
     descendant : il ne suit pas automatiquement son transform:scale. */

  /* Sound-wave ripple when clicking a music orb */
  .orb-sound-ripple{
    position:absolute;left:50%;top:50%;width:100%;height:100%;
    border-radius:50%;border:2.5px solid rgba(29,185,84,.7);
    transform:translate(-50%,-50%) scale(.6);opacity:.85;
    pointer-events:none;z-index:3;
    animation:orbSoundWave 1.2s ease-out forwards;
  }
  @keyframes orbSoundWave{
    0%   { transform:translate(-50%,-50%) scale(.6); opacity:.9; border-width:4px }
    100% { transform:translate(-50%,-50%) scale(2.4); opacity:0; border-width:.5px }
  }
  /* Pulsing glow on the music orb while playing */
  .orbit .orb-wrap--music .orb.playing{
    animation:musicGlow 1.4s ease-in-out infinite;
  }
  .orbit .orb-wrap--music .orb.playing.orb--no-contour{
    animation:musicGlowNoContour 1.4s ease-in-out infinite;
  }
  .orbit .orb-wrap--music .orb.playing.orb--no-contour.orb--no-glow{
    animation:none;
    box-shadow:0 14px 30px rgba(0,0,0,.55)!important;
  }
  @keyframes musicGlow{
    0%,100%{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -10px 22px rgba(0,0,0,.28), 0 0 0 2px rgba(29,185,84,.45), 0 0 22px 4px rgba(29,185,84,.65), 0 0 60px 14px rgba(29,185,84,.42), 0 14px 30px rgba(0,0,0,.45) }
    50%    { box-shadow:inset 0 0 0 1px rgba(255,255,255,.22), inset 0 -10px 22px rgba(0,0,0,.28), 0 0 0 5px rgba(29,185,84,.30), 0 0 38px 12px rgba(29,185,84,.85), 0 0 90px 24px rgba(29,185,84,.55), 0 14px 30px rgba(0,0,0,.45) }
  }
  @keyframes musicGlowNoContour{
    0%,100%{ box-shadow:inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -10px 22px rgba(0,0,0,.28), 0 0 36px 14px rgba(29,185,84,.4), 0 0 70px 22px rgba(29,185,84,.25), 0 14px 30px rgba(0,0,0,.45) }
    50%    { box-shadow:inset 0 0 0 1px rgba(255,255,255,.18), inset 0 -10px 22px rgba(0,0,0,.28), 0 0 48px 18px rgba(29,185,84,.55), 0 0 90px 28px rgba(29,185,84,.35), 0 14px 30px rgba(0,0,0,.45) }
  }
  /* Orb label — floats below each bubble */
  .orb-label{
    font-size:10.5px;font-weight:700;color:#fff;
    text-shadow:0 1px 10px rgba(0,0,0,.95);
    max-width:96px;text-align:center;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    letter-spacing:.015em;pointer-events:none;opacity:.92;
  }
  /* Petite icône musique devant le nom de la piste (indicateur permanent) */
  .orb-label-ico{width:10px;height:10px;margin:0 3px -1px 0;flex:0 0 auto;vertical-align:-1px}
  /* Badge clip (bas à droite de la bulle jeu) -- indicateur permanent et discret,
     remplace l'ancien hint plein-centre qui pulsait toutes les 8s. */
  .swipe-stage .orbit .orb .orb-clip{
    position:absolute;bottom:-4px;right:-4px;z-index:5;
    width:22px;height:22px;border-radius:50%;
    background:linear-gradient(135deg,#FF4FA0,#9146FF);color:#fff;
    display:grid;place-items:center;border:2px solid #0d0b1e;
    box-shadow:0 3px 10px rgba(145,70,255,.5);pointer-events:none;
  }
  .swipe-stage .orbit .orb .orb-clip svg{width:11px;height:11px}
  /* 6 orbit positions */
  .orbit .orb-wrap:nth-child(1){top:5%;   left:0;    animation-delay:-.4s}
  .orbit .orb-wrap:nth-child(2){top:16%;  right:0;   animation-delay:-1.2s}
  .orbit .orb-wrap:nth-child(3){top:46%;  left:0;    animation-delay:-.8s}
  .orbit .orb-wrap:nth-child(4){top:54%;  right:0;   animation-delay:-2.2s}
  .orbit .orb-wrap:nth-child(5){bottom:4%;left:5%;   animation-delay:-1.6s}
  .orbit .orb-wrap:nth-child(6){bottom:4%;right:5%;  animation-delay:-3s}
  /* Le swipe est ACTIVÉ dès que l'écran est en portrait (hauteur > largeur) */
  @media (orientation:portrait){
    /* Compte aussi en portrait : layout empilé fluide */
    .acc-card{padding:14px}
    .acc-main{flex-direction:column}
    .acc-identity{display:none !important}
    .acc-tab-body{width:100%}
    .acc-hero{grid-template-columns:1fr;gap:14px;text-align:center}
    .acc-hero-avatar{order:-1}
    .acc-hero-side{align-items:stretch;text-align:left}
    .acc-color-wheel-row{justify-content:center}
  }

  /* Toast for orb clicks */
  .swipe-toast{
    position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(20px);
    padding:12px 18px;border-radius:14px;
    background:var(--mf-modal-bg);
    border:1px solid var(--mf-modal-border);
    color:#fff;font-size:14px;font-weight:600;
    display:flex;align-items:center;gap:10px;
    box-shadow:var(--mf-modal-shadow);
    opacity:0;pointer-events:none;
    transition:opacity .25s ease, transform .25s ease;
    z-index:60;max-width:90vw;
  }
  .swipe-toast[data-show="true"]{opacity:1;transform:translateX(-50%) translateY(0)}
  .swipe-toast .t-ico{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:rgba(255,255,255,.08)}
  .swipe-toast .t-body b{display:block;font-weight:700;font-size:14px}
  .swipe-toast .t-body span{color:var(--ink-dim);font-size:12.5px}

  /* Taille de référence UNIQUE (plus de vw/vh/dvh ni de formule par breakpoint) --
     computeSwipeScale() (js/app.js) mesure l'espace réellement disponible et pose
     un transform:scale() ici pour que TOUT (carte + son contenu) tienne à l'écran,
     à n'importe quelle résolution/orientation, en gardant exactement les mêmes
     proportions. Le transform inline posé par JS inclut translateZ(0) (voir
     computeSwipeScale) pour ne pas perdre l'accélération GPU ci-dessous. */
  .swipe-shell-wrap{
    position:relative;width:406px;height:663px;z-index:60;
    /* flex-shrink:0 -- .swipe-stage est flex (voir plus haut) : par défaut un enfant
       flex peut rétrécir sous sa largeur/hauteur déclarées (flex-shrink:1) si l'espace
       manque, ce qui se CUMULAIT avec le transform:scale() posé par JS (le même ratio
       appliqué deux fois -- une fois via le rétrécissement flex de la boîte de LAYOUT,
       une fois via le scale visuel) et affichait la carte ~2 fois trop petite. La
       boîte de layout doit rester STRICTEMENT à 406×663 ; seul le transform la réduit
       visuellement. */
    flex-shrink:0;
    margin-top:-1px;padding-top:1px;
    margin-bottom:-1px;padding-bottom:1px;
    border-radius:20px;overflow:visible;
    transform:translateZ(0);
    -webkit-backface-visibility:hidden;
  }
  .swipe-shell{
    position:relative;width:100%;height:100%;
    background:transparent;overflow:visible;
  }
  .swipe-wrap{
    position:relative;width:100%;height:100%;
    background:transparent;overflow:visible;
  }

  /* Overlay pendant le chargement des médias (avatar/bannière/fond) du PROCHAIN
     profil -- posé par-dessus la carte + le fond ACTUELS (jamais retirés du DOM
     tant que le suivant n'est pas prêt), pour ne jamais montrer un profil à moitié
     chargé. Ignoré entièrement si tout est déjà en cache (voir ensureDeckSync). */
  .swipe-card-loader{
    position:absolute;inset:0;z-index:10;border-radius:20px;overflow:hidden;
    display:grid;place-items:center;
    background:rgba(13,11,30,.42);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
    animation:swipeCardLoaderIn .15s ease;
  }
  @keyframes swipeCardLoaderIn{from{opacity:0}to{opacity:1}}
  .swipe-card-loader-spin{
    width:34px;height:34px;border-radius:50%;
    border:3px solid rgba(255,255,255,.16);
    border-top-color:#FF7EB6;border-right-color:#9146FF;
    animation:mfPageSpin .7s linear infinite;
  }
  @media (prefers-reduced-motion:reduce){
    /* Le fondu d'apparition (décoratif) respecte la préférence -- pas la rotation
       elle-même : un indicateur de chargement figé ne dit plus "ça charge" et se
       lit comme un bug (icône plantée), contrairement à un mouvement de fond. */
    .swipe-card-loader{animation:none}
  }

  /* Discord-style profile card */
  .swipe-card{
    position:absolute;inset:0;border-radius:20px;overflow:hidden;isolation:isolate;
    container-type:inline-size;container-name:profile-card;
    background-color:var(--c2,#1c1d22);
    background-image:linear-gradient(180deg, var(--c1,#242429) 0%, var(--c2,#1c1d22) 100%);
    color:#fff;cursor:grab;user-select:none;-webkit-user-select:none;
    border:none;
    display:flex;flex-direction:column;
    box-shadow:0 30px 80px rgba(0,0,0,.6);
    transition:transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s ease;
    will-change:transform;
    z-index:2;
  }
  /* Traînée de particules (SVG du preset, ou image perso importée) derrière le
     curseur préréglé (panneau Curseur, editor.html) -- posée sur TOUT l'écran
     swipe (#screen-swipe, position:relative), pas juste la carte, cf.
     startScreenCursorTrail()/applyScreenCursor() dans buildCard(). */
  #screen-swipe .cursor-trail-dot{position:absolute;z-index:90;pointer-events:none;width:var(--cursor-trail-size,18px);height:var(--cursor-trail-size,18px);
    transform:translate(-50%,-50%) scale(1);opacity:.95;transition:opacity .6s ease, transform .6s ease}
  #screen-swipe .cursor-trail-dot svg,#screen-swipe .cursor-trail-dot img{width:100%;height:100%;display:block;object-fit:contain}
  #screen-swipe .cursor-trail-dot.fade{opacity:0;transform:translate(-50%,-50%) scale(.35) translateY(-16px)}
  /* Le curseur perso couvre tout l'écran swipe (cf. applyScreenCursor) --
     les boutons/icônes cliquables gardent leur curseur normal : un preset
     clair (ex: le rond blanc) resterait sinon invisible sur un bouton clair,
     et la main perd son affordance de clic sur tout le reste. */
  #screen-swipe .swipe-btn,
  #screen-swipe .stool-btn,
  #screen-swipe .my-status,
  #screen-swipe #myStatusPop button,
  #screen-swipe .orbit .orb,
  #screen-swipe .msg-close,
  #screen-swipe .set-back,
  #screen-swipe .preview-exit-btn{cursor:pointer!important}
  /* Empêche le drag natif des images (PDP, drapeaux, icônes…) → le swipe prend toute la carte */
  .swipe-card img,
  .swipe-card svg,
  .swipe-gif img,
  .swipe-photo img,
  #swipeStickersBg img,
  #orbitLayer img{
    -webkit-user-drag:none;user-drag:none;
    -webkit-user-select:none;user-select:none;
  }
  .swipe-card.entering{
    animation:cardIn .55s cubic-bezier(.2,.7,.3,1) both;
  }
  @keyframes cardIn{
    from{transform:translateX(120%) rotate(14deg);opacity:0}
    to  {transform:translateX(0) rotate(0);opacity:1}
  }
  .swipe-card:active{cursor:grabbing}
  .swipe-card .banner{
    /* Format Discord 600×240 → ratio 5:2 */
    aspect-ratio:50/17;height:auto;max-height:none;background:transparent;
    position:relative;flex:0 0 auto;overflow:hidden;
  }
  .swipe-card .avatar-wrap{
    /* Avatar 140px, moitié sur la bannière 5:2 (34cqi = hauteur bannière) */
    position:absolute;left:20px;top:calc(34cqi - 70px);width:140px;height:140px;border-radius:50%;
    padding:8px;background:#1c1d22;display:grid;place-items:center;z-index:5;
    transform:none;
  }
  .swipe-card .avatar-wrap .avi{
    width:100%;height:100%;border-radius:50%;display:grid;place-items:center;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:52px;color:#fff;
    position:relative;z-index:2;
    overflow:hidden; /* clippe l'<img> zoomée (transform:scale du crop) dans le cercle, comme .avatar dans l'éditeur */
  }
  /* Nitro decoration — animated rainbow conic ring on top of the avatar */
  .swipe-card .avatar-wrap.nitro::before{
    content:"";position:absolute;inset:0;border-radius:50%;
    background:conic-gradient(from 0deg,#FF7EB6,#9146FF,#5BE9FF,#3BD17C,#FFB66E,#FF4FA0,#FF7EB6);
    animation:nitroSpin 6s linear infinite;
    z-index:0;
  }
  .swipe-card .avatar-wrap.nitro::after{
    content:"";position:absolute;inset:5px;border-radius:50%;background:#1c1d22;z-index:1;
  }
  @keyframes nitroSpin{to{transform:rotate(360deg)}}
  .swipe-card .nitro-badge{
    position:absolute;left:108px;top:calc(34cqi + 8px);
    background:linear-gradient(135deg,#FF7EB6,#9146FF);
    color:#fff;font-size:10px;font-weight:800;letter-spacing:.06em;
    padding:3px 7px;border-radius:6px;
    box-shadow:0 4px 14px rgba(145,70,255,.5);
    z-index:3;
  }
  .swipe-card .status-dot{
    display:none !important; /* rond de statut retiré de la photo de profil */
    position:absolute;right:4px;bottom:4px;width:24px;height:24px;border-radius:50%;
    border:5px solid #1c1d22;box-sizing:content-box;
    place-items:center;
  }
  .swipe-card .status-dot svg{display:block}
  .swipe-card .status-dot.online{background:#3ba55d}
  /* idle / offline : Discord moon style — grey background + crescent inside */
  .swipe-card .status-dot.idle,
  .swipe-card .status-dot.offline{background:#747f8d}
  .swipe-card .status-dot.dnd   {background:#ed4245}

  .swipe-card .body{
    /* ~70px bas avatar − un peu de chevauchement → pseudo au plus près sous la PFP */
    flex:1 1 auto;padding:64px 18px 54px;display:flex;flex-direction:column;gap:8px;
    /* PAS de scroll : un profil bien rempli (bio + activité + vocal + connexions +
       réseaux) qui dépasse la hauteur de référence de la carte fait "dézoomer"
       .card-body-bottom (voir fitCardBodyBottom, js/app.js) au lieu de défiler --
       le pseudo/titre en haut et les stats en bas (vues/inscription/note,
       position:absolute, hors de ce flux) restent toujours à taille normale.
       overflow:hidden = filet de sécurité si le calcul de dézoom laisse un
       résidu (cas extrême, plancher de lisibilité atteint). */
    overflow:hidden;position:relative;
  }
  .swipe-card .card-body-top{flex:0 0 auto}
  .swipe-card .card-body-bottom{
    flex:0 0 auto;display:flex;flex-direction:column;gap:8px;
    transform-origin:top center;
  }
  .swipe-card.has-card-connections .body{padding-bottom:200px}
  .swipe-card .joined{color:#7c7e8c;font-size:11.5px;display:flex;align-items:center;gap:6px;margin-top:2px}
  .swipe-card .joined svg{opacity:.7}
  .swipe-card .card-bottom-left .joined{
    margin-top:0;color:rgba(255,255,255,.78);font-size:11px;font-weight:600;
    text-shadow:0 1px 6px rgba(0,0,0,.55);max-width:100%;
  }
  .swipe-card .card-bottom-left .joined svg{opacity:.9;flex:0 0 auto}

  /* Looking-for badge — bottom-right of the card */
  .swipe-card .lookfor svg{width:22px;height:22px}
  .swipe-card .lookfor{
    position:absolute;right:14px;bottom:14px;
    width:46px;height:46px;border-radius:50%;
    display:grid;place-items:center;font-size:22px;
    background:linear-gradient(135deg,#FF7EB6,#9146FF);
    box-shadow:0 8px 22px rgba(145,70,255,.5), 0 0 0 3px #1c1d22, 0 0 0 4px rgba(255,255,255,.08);
    z-index:4;
  }
  .swipe-card .lookfor[data-look="chill"]{background:linear-gradient(135deg,#FFB66E,#FF7EB6)}
  .swipe-card .lookfor[data-look="game"] {background:linear-gradient(135deg,#5BE9FF,#9146FF)}
  .swipe-card .lookfor[data-look="talk"] {background:linear-gradient(135deg,#3BD17C,#1EA362)}
  .swipe-card .lookfor[data-look="sleep"]{background:linear-gradient(135deg,#9146FF,#6B2BFF)}
  .swipe-card .name-row{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
  /* Effet "Tremblement" (Boost) -- pseudo/bio, cf. panneau Texte (editor.html). */
  @keyframes txtShake{
    0%,100%{transform:translate(0,0)}
    10%{transform:translate(-1px,-1px)}
    20%{transform:translate(1px,0)}
    30%{transform:translate(-1px,1px)}
    40%{transform:translate(1px,-1px)}
    50%{transform:translate(-1px,0)}
    60%{transform:translate(1px,1px)}
    70%{transform:translate(-1px,-1px)}
    80%{transform:translate(1px,0)}
    90%{transform:translate(-1px,1px)}
  }
  .swipe-card [data-shake="1"]{display:inline-block;animation:txtShake .5s linear infinite}
  .swipe-card .name{font-family:"Clash Display",sans-serif;font-weight:700;font-size:36px;letter-spacing:-.01em;line-height:1.05}
  /* Aperçu (mon profil, depuis l'éditeur) : typographie EXACTEMENT identique à celle
     du pseudo dans l'éditeur (32px), au lieu de la taille utilisée pour les cartes
     des autres utilisateurs (36px). */
  body[data-preview="true"] .swipe-card .name{font-size:32px}
  /* Boost subscribers — golden shimmering name */
  .swipe-card .name.name--boost{
    background:linear-gradient(110deg,
      #FFE17A 0%,
      #F5C040 20%,
      #FFFAE6 35%,
      #F5C040 50%,
      #B27B14 65%,
      #F5C040 80%,
      #FFE17A 100%);
    background-size:220% 100%;
    -webkit-background-clip:text;background-clip:text;
    color:transparent;-webkit-text-fill-color:transparent;
    text-shadow:none;
    filter:drop-shadow(0 0 8px rgba(255,216,61,.35));
    animation:nameBoostShimmer 4.5s ease-in-out infinite;
  }
  @keyframes nameBoostShimmer{
    0%,100%{background-position:0% 50%}
    50%    {background-position:100% 50%}
  }
  /* Tiny gold star next to a boost name */
  .swipe-card .name-boost-star{
    display:inline-block;margin-left:4px;vertical-align:0;
    width:18px;height:18px;line-height:1;
    background:linear-gradient(135deg,#FFE17A,#F5C040,#B27B14);
    -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 14.7 9.2 22 9.7l-5.8 4.6 1.9 7.2L12 17.6 5.9 21.5l1.9-7.2L2 9.7l7.3-.5L12 2Z'/></svg>") center/contain no-repeat;
            mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 14.7 9.2 22 9.7l-5.8 4.6 1.9 7.2L12 17.6 5.9 21.5l1.9-7.2L2 9.7l7.3-.5L12 2Z'/></svg>") center/contain no-repeat;
    filter:drop-shadow(0 0 6px rgba(255,216,61,.6));
  }
  /* age inline next to the name (legacy / fallback) — hidden in favor of the corner badge */
  .swipe-card .age{display:none}

  /* Age + gender badge — just BELOW the banner 5:2 */
  .card-age-badge{
    position:absolute;top:calc(34cqi + 8px);right:16px;z-index:6;
    display:flex;align-items:center;gap:8px;
    padding:8px 16px;border-radius:999px;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
    box-shadow:0 6px 18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.14) inset;
    color:#fff;font-family:"Clash Display",sans-serif;font-weight:800;
  }
  .card-age-badge .cab-age{font-size:24px;line-height:1;letter-spacing:.02em}
  .card-age-badge .cab-flag{font-size:22px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  .card-age-badge .cab-flag img{width:28px;height:20px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.85);display:block}
  .card-age-badge .cab-gender{
    font-size:20px;line-height:1;width:28px;height:28px;border-radius:50%;
    display:grid;place-items:center;
  }
  .card-age-badge .cab-gender[data-g="male"],
  .card-age-badge .cab-gender[data-g="il"]{background:#2287F7;color:#fff}
  .card-age-badge .cab-gender[data-g="female"],
  .card-age-badge .cab-gender[data-g="elle"]{background:#FF4FA0;color:#fff}
  .card-age-badge .cab-gender[data-g="nonbinary"],
  .card-age-badge .cab-gender[data-g="other"],
  .card-age-badge .cab-gender[data-g="autre"]{
    background:rgba(255,255,255,.08);color:#fff;
    box-shadow:0 0 0 1px rgba(255,255,255,.30) inset;
  }
  .card-age-badge .cab-gender svg{display:block}
  /* ♂ ♀ bolder on the card too */
  .card-age-badge .cab-gender[data-g="male"],
  .card-age-badge .cab-gender[data-g="il"],
  .card-age-badge .cab-gender[data-g="female"],
  .card-age-badge .cab-gender[data-g="elle"]{font-weight:900}
  /* Gradient emoji in the onboarding picker for the non-binary option */
  .onb-opt .emoji.nb-grad{
    background:linear-gradient(135deg, #FFD166 0%, #FF7EB6 35%, #9146FF 70%, #5BE9FF 100%);
    -webkit-background-clip:text;background-clip:text;
    -webkit-text-fill-color:transparent;color:transparent;
  }
  .swipe-card .handle{color:#b9bbbe;font-size:13px;display:flex;align-items:center;gap:6px;margin-top:-8px}
  .swipe-card .handle .sep{opacity:.6}
  .swipe-card .handle .handle-tag--blur{filter:blur(5px);user-select:none;pointer-events:none}
  .swipe-card hr.div{border:none;border-top:1px solid rgba(255,255,255,.08);margin:4px 0 2px}

  /* Discord en haut du profil ; connexions plus bas (sous bio / vocal).
     Descendant (pas enfant direct) : .discord-floor vit maintenant dans
     .card-body-bottom, pas directement dans .body (voir fitCardBodyBottom). */
  .swipe-card .body .discord-floor{margin:2px 0 6px}
  .swipe-card .card-discord-conn-stack{
    display:flex;flex-direction:column;gap:10px;margin-top:0;
  }
  .swipe-card .card-discord-conn-stack .card-connections-wrap{margin-top:0;min-height:72px}
  .swipe-card .bio + .card-voice{margin-top:6px}

  .swipe-card .activity{
    background:#2b2d31;border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px;
  }
  .swipe-card .activity .icon{
    width:36px;height:36px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;
    background:rgba(255,255,255,.06);
  }
  .swipe-card .activity .lbl{font-size:13px;line-height:1.3}
  .swipe-card .activity .lbl b{display:block;font-weight:700;font-size:13.5px;color:#fff}
  .swipe-card .activity .lbl span{color:#b9bbbe;font-size:12.5px}

  /* Discord activity (Spotify, jeux…) — style carte Discord */
  .swipe-card .discord-activity{
    background:#2b2d31;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;
  }
  .swipe-card .discord-activity--spotify{background:linear-gradient(135deg,#3d1f1f 0%,#2a1515 100%)}
  .swipe-card .discord-activity-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .swipe-card .discord-activity-kind{font-size:11px;font-weight:700;color:#b9bbbe;letter-spacing:.01em}
  .swipe-card .discord-activity-brand{width:16px;height:16px;opacity:.75;flex:0 0 auto}
  .swipe-card .discord-activity-body{display:flex;align-items:flex-start;gap:10px;min-width:0}
  /* Discord activity — taille cover forcée (portail hors .swipe-card aussi) */
  .swipe-card .discord-activity-cover,
  .discord-floor-act-detail .discord-activity-cover,
  .discord-activity-cover{
    width:48px !important;height:48px !important;max-width:48px;max-height:48px;
    border-radius:6px;object-fit:cover;flex:0 0 48px;background:rgba(0,0,0,.25);
  }
  .swipe-card .discord-activity-cover--ph{display:grid;place-items:center}
  .swipe-card .discord-activity-meta{flex:1;min-width:0;font-size:12.5px;line-height:1.35}
  .swipe-card .discord-activity-meta b{display:block;font-weight:700;font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .swipe-card .discord-activity-meta > span{display:block;color:#b9bbbe;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
  .swipe-card .discord-activity-progress{height:3px;border-radius:99px;background:rgba(255,255,255,.25);margin-top:8px;overflow:hidden}
  .swipe-card .discord-activity-progress span{display:block;height:100%;background:#fff;border-radius:99px}
  .swipe-card .discord-activity-times{display:flex;justify-content:space-between;font-size:10px;color:rgba(255,255,255,.55);margin-top:4px}
  .swipe-card .discord-last-seen{color:#7c7e8c;font-size:11.5px;margin-top:4px}

  /* Voice memo widget on the swipe card (replaces 'activity') */
  .swipe-card .card-voice{
    background:linear-gradient(135deg, rgba(145,70,255,.18), rgba(255,126,182,.12));
    border:1px solid rgba(145,70,255,.35);
    border-radius:10px;padding:8px 12px;display:flex;align-items:center;gap:10px;
  }
  .swipe-card .card-voice-play{
    width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;flex:0 0 auto;
    display:grid;place-items:center;color:#fff;
    background:linear-gradient(180deg,#9146FF,#6B2BFF);
    box-shadow:0 4px 12px rgba(107,43,255,.5);
  }
  .swipe-card .card-voice-play:hover{transform:scale(1.06)}
  .swipe-card .card-voice-play .ico-pause{display:none}
  .swipe-card .card-voice[data-playing="true"] .card-voice-play .ico-play{display:none}
  .swipe-card .card-voice[data-playing="true"] .card-voice-play .ico-pause{display:block}
  .swipe-card .card-voice-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
  .swipe-card .card-voice-info b{font-size:12px;font-weight:700;color:#fff;letter-spacing:.02em}
  .swipe-card .card-voice-track{height:5px;border-radius:3px;background:rgba(255,255,255,.10);overflow:hidden}
  .swipe-card .card-voice-bar{display:block;height:100%;width:0%;background:linear-gradient(90deg,#9146FF,#FF7EB6);transition:width .1s linear}
  .swipe-card .card-voice-time{font-size:11px;font-weight:700;color:#b9bbbe;flex:0 0 auto}

  /* Musique d'entrée (MP3 perso, Boost) -- position ABSOLUE dans l'espace entre l'avatar
     et le badge âge (jamais dans le flux : ne doit JAMAIS déplacer pseudo/bio/le reste
     de la carte). Fond clair + bouton play blanc plein pour ne pas paraître "éteint". */
  .swipe-card .card-entry-music{
    position:absolute;left:104px;top:calc(34cqi + 4px);z-index:5;width:158px;box-sizing:border-box;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.26);
    border-radius:12px;padding:6px 8px;display:flex;flex-direction:column;gap:5px;
    backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
    box-shadow:0 6px 18px rgba(0,0,0,.4);
  }
  .swipe-card .card-em-info{display:flex;align-items:center;gap:5px;width:100%}
  .swipe-card .card-em-cover{width:19px;height:19px;border-radius:5px;object-fit:cover;flex:0 0 auto}
  .swipe-card .card-em-meta{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  .swipe-card .card-em-name{font-size:8px;font-weight:700;color:#fff;letter-spacing:.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;line-height:1.2}
  .swipe-card .card-em-track{height:3px;border-radius:2px;background:rgba(255,255,255,.18);overflow:hidden}
  .swipe-card .card-em-bar{display:block;height:100%;width:0%;background:#fff;transition:width .1s linear}
  .swipe-card .card-em-time{font-size:7px;font-weight:700;color:#fff;flex:0 0 auto;letter-spacing:-.01em}
  /* Boutons de lecture -- rangée à part, centrée, sous le titre/la pochette. */
  .swipe-card .card-em-controls{display:flex;align-items:center;justify-content:center;gap:8px}
  .swipe-card .card-em-ctl{
    width:18px;height:18px;border-radius:50%;border:1px solid rgba(255,255,255,.3);cursor:pointer;flex:0 0 auto;
    display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.10);
  }
  .swipe-card .card-em-ctl:hover{background:rgba(255,255,255,.2)}
  .swipe-card .card-em-ctl svg{width:8px;height:8px}
  .swipe-card .card-em-play{
    width:22px;height:22px;border:none;color:#141414;
    background:#fff;
    box-shadow:0 3px 10px rgba(255,255,255,.4);
  }
  .swipe-card .card-em-play:hover{transform:scale(1.06)}
  .swipe-card .card-em-play svg{width:8.5px;height:8.5px}
  .swipe-card .card-em-play .ico-pause{display:none}
  .swipe-card .card-entry-music[data-playing="true"] .card-em-play .ico-play{display:none}
  .swipe-card .card-entry-music[data-playing="true"] .card-em-play .ico-pause{display:block}

  /* Compacté quand une musique d'entrée est vraiment configurée -- laisse la place
     au lecteur juste à sa gauche (cf. .card-entry-music ci-dessus, 158px de large). */
  .swipe-card.has-entry-music .card-age-badge{gap:5px;padding:5px 9px}
  .swipe-card.has-entry-music .card-age-badge .cab-age{font-size:16px}
  .swipe-card.has-entry-music .card-age-badge .cab-flag{font-size:15px}
  .swipe-card.has-entry-music .card-age-badge .cab-flag img{width:19px;height:14px}
  .swipe-card.has-entry-music .card-age-badge .cab-gender{font-size:14px;width:19px;height:19px}

  .swipe-card .meta{display:flex;gap:6px;flex-wrap:wrap}
  .swipe-card .chip{
    padding:5px 10px;border-radius:999px;font-size:11.5px;font-weight:600;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#dcddde;
  }
  .swipe-card .me-chip{
    position:absolute;top:10px;left:12px;z-index:6;
    font-size:10px;font-weight:800;padding:3px 9px;border-radius:999px;
    background:linear-gradient(135deg,#FF7EB6,#9146FF);color:#fff;
    letter-spacing:.06em;box-shadow:0 3px 10px rgba(145,70,255,.45);
  }
  /* Lien de partage : nombre de vues, en bas à gauche de la carte. */
  .swipe-card .card-bottom-left{
    position:absolute;left:14px;bottom:14px;z-index:6;
    display:flex;flex-direction:column;align-items:flex-start;gap:8px;
    max-width:calc(100% - 110px);pointer-events:none;
  }
  .swipe-card .card-bottom-left .card-views{
    position:static;left:auto;bottom:auto;
  }
  .swipe-card .card-views{
    display:inline-flex;align-items:center;gap:7px;
    color:#fff;font-size:18px;font-weight:400;font-family:"Clash Display",sans-serif;
    text-shadow:0 2px 8px rgba(0,0,0,.6);
    pointer-events:none;
  }
  .swipe-card .card-views svg{width:20px;height:20px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.6))}
  .swipe-card .card-views b{font-weight:inherit}

  /* Réactions : badge en bas à droite de la carte. Tant que JE n'ai pas réagi,
     juste une icône + 5 points blancs identiques (teaser, aucune donnée révélée).
     Dès que je réagis, les points prennent la taille de leur part de vote (le
     plus voté est mis en valeur) -- jamais avant, et jamais un swipe/dismiss. */
  .swipe-card .card-reactions{
    position:absolute;right:7px;bottom:14px;z-index:6;
    display:flex;flex-direction:column;align-items:center;gap:8px;
    color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6);
    pointer-events:none;
  }
  .swipe-card .card-reactions .cr-dots{display:flex;align-items:flex-end;gap:2px}
  .swipe-card .card-reactions .cr-col{display:flex;flex-direction:column;align-items:center;gap:5px}
  .swipe-card .card-reactions .cr-col i{
    display:block;width:9px;border-radius:999px;background:rgba(255,255,255,.55);
    height:9px;transition:height .25s cubic-bezier(.2,.7,.3,1), background .2s ease, box-shadow .2s ease;
  }
  .swipe-card .card-reactions .cr-col b{font-size:16px;line-height:1;font-weight:400;font-style:normal;opacity:.9;font-family:"Clash Display",sans-serif}
  .swipe-card .card-reactions[data-reacted="true"] .cr-col i.top{
    background:#fff;box-shadow:0 0 0 1px rgba(255,126,182,.6), 0 0 6px rgba(255,126,182,.5);
  }
  /* Moyenne : uniquement une fois QUE J'AI noté (jamais avant), au-dessus des 5 jauges
     (qui restent toutes visibles, étiquetées 1-5). Icône étoile (pas un emoji). */
  .swipe-card .card-reactions .cr-avg{
    display:flex;align-items:center;gap:4px;
    font-size:18px;font-weight:800;color:#fff;font-family:"Clash Display",sans-serif;
  }
  .swipe-card .card-reactions .cr-avg svg{width:18px;height:18px;flex:0 0 auto;color:#FFD84D}
  .swipe-card .bio{
    font-size:13px;color:#b9bbbe;line-height:1.5;white-space:pre-wrap;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.06);
    backdrop-filter:brightness(1.15);
    -webkit-backdrop-filter:brightness(1.15);
    border-radius:10px;padding:10px 12px;
    box-shadow:0 2px 10px rgba(0,0,0,.18) inset;
  }
  .swipe-card .bio b{color:#fff;display:block;margin-bottom:4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;font-weight:700}
  /* Avatar decoration overlay — Discord serves it as APNG which auto-animates.
     We avoid any CSS that could pause the animation (no will-change/transform/filter
     on the <img> itself). The glow is applied to the parent wrapper. */
  /* (avatar-wrap is already position:absolute above; .avi-deco uses inset relative to it) */
  .swipe-card .avi-deco{
    position:absolute;inset:-12px;width:calc(100% + 24px);height:calc(100% + 24px);
    object-fit:contain;pointer-events:none;z-index:3;
  }
  .swipe-card .avatar-wrap.has-deco{
    animation: decoGlowParent 3.6s ease-in-out infinite;
  }
  @keyframes decoGlowParent{
    0%,100% { filter: drop-shadow(0 0 6px rgba(145,70,255,.0)); }
    50%     { filter: drop-shadow(0 0 14px rgba(145,70,255,.55)) drop-shadow(0 0 4px rgba(91,233,255,.30)); }
  }

  /* Connexions (profil swipe) — sous « A rejoint Matefindr », zone remplie jusqu'à ~200px du bas */
  .swipe-card .card-connections-wrap{
    flex:1 1 auto;min-height:72px;margin-top:6px;margin-bottom:4px;
    display:flex;flex-direction:column;position:relative;z-index:6;
  }
  .swipe-card .card-connections{
    display:flex;flex-wrap:wrap;align-content:flex-start;align-items:flex-start;
    gap:12px;flex:1 1 auto;width:100%;
  }
  .swipe-card .card-conn{position:relative;display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;width:40px;flex:0 0 40px;padding:0;border:none;background:transparent;text-decoration:none;color:#fff}
  .swipe-card .card-conn-ico{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;overflow:hidden}
  .swipe-card .card-conn-ico > img,
  .swipe-card .card-conn-ico > .conn-ico-svg{width:100%;height:100%;object-fit:contain;flex:0 0 auto;display:grid;place-items:center}
  .swipe-card .card-conn .conn-favicon{object-fit:cover;border-radius:7px;background:transparent;transform:scale(1.14)}
  .swipe-card .card-conn .conn-ico-svg svg{width:88%;height:88%}
  .swipe-card .card-conn .conn-ico-uniform svg path,
  .swipe-card .card-conn .conn-ico-uniform svg circle,
  .swipe-card .card-conn .conn-ico-uniform svg rect{fill:currentColor !important}
  .swipe-card .card-conn .conn-ico-uniform svg path[stroke],
  .swipe-card .card-conn .conn-ico-uniform svg rect[stroke]{fill:none !important;stroke:currentColor}
  .swipe-card .card-conn-user{
    position:absolute;left:50%;top:calc(100% + 2px);transform:translateX(-50%);
    font-size:11px;font-weight:600;color:#b9bbbe;text-align:center;line-height:1.25;
    max-width:72px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;
  }
  /* Discord : username toujours visible (ou flouté si option décochée) */
  .swipe-card .card-conn--label-always .card-conn-user{
    opacity:1;max-height:1.4em;transform:translateX(-50%);
  }
  .swipe-card .card-conn-user--blur,
  .swipe-card .card-conn--label-blur .card-conn-user{
    filter:blur(5px);user-select:none;-webkit-user-select:none;color:rgba(185,187,190,.85);
    opacity:1;max-height:1.4em;
  }
  /* Autres réseaux : username uniquement au survol */
  .swipe-card .card-conn--hover-label .card-conn-user{
    opacity:0;max-height:0;overflow:hidden;margin:0;
    transform:translateX(-50%) translateY(4px);
    transition:opacity .16s ease, transform .16s ease, max-height .16s ease;
  }
  @media (hover:hover){
    .swipe-card .card-conn--hover-label:hover .card-conn-user,
    .swipe-card .card-conn--hover-label:focus-visible .card-conn-user{opacity:1;max-height:1.4em;transform:translateX(-50%);color:#fff}
    .swipe-card.light-bg .card-conn--hover-label:hover .card-conn-user,
    .swipe-card.light-bg .card-conn--hover-label:focus-visible .card-conn-user{color:#101014}
  }
  @media (hover:none){
    .swipe-card .card-conn--hover-label:active .card-conn-user,
    .swipe-card .card-conn--hover-label:focus-within .card-conn-user{opacity:1;max-height:1.4em;transform:translateX(-50%);color:#fff}
    .swipe-card.light-bg .card-conn--hover-label:active .card-conn-user,
    .swipe-card.light-bg .card-conn--hover-label:focus-within .card-conn-user{color:#101014}
  }
  .swipe-card .card-connections--many{gap:10px}
  .swipe-card .card-connections--many .card-conn{width:34px;flex-basis:34px}
  .swipe-card .card-connections--many .card-conn-ico{width:31px;height:31px}
  .swipe-card .card-connections--many .card-conn-user{font-size:10px;max-width:76px}
  .swipe-card .card-connections--dense{gap:8px}
  .swipe-card .card-connections--dense .card-conn{width:29px;flex-basis:29px}
  .swipe-card .card-connections--dense .card-conn-ico{width:27px;height:27px}
  .swipe-card .card-connections--dense .card-conn-user{font-size:9px;max-width:68px}
  .swipe-card .card-connections--dense .card-conn .conn-favicon{transform:scale(1.08)}
  /* Social connections on card (clickable links) */
  .card-socials{display:flex;flex-direction:column;gap:4px;margin-top:-4px;position:relative;z-index:6}
  .card-social{
    display:flex;align-items:center;gap:6px;
    font-size:11.5px;color:#b9bbbe;font-weight:500;
    padding:3px 4px;border-radius:6px;
    text-decoration:none;transition:background .15s, color .15s, transform .15s;
    cursor:pointer;
  }
  .card-social:hover{background:rgba(255,255,255,.08);color:#fff;transform:translateX(2px)}
  .card-social svg{flex:0 0 auto;opacity:.85}
  .card-social[data-kind="instagram"] svg{color:#e1306c}
  .card-social[data-kind="tiktok"] svg{color:#fff}
  .card-social[data-kind="spotify"] svg{color:#1DB954}

  .swipe-card .common{display:flex;gap:14px;color:#b9bbbe;font-size:12px;margin-top:auto}
  .swipe-card .common b{color:#fff;font-weight:700}

  /* Discord servers in common — DANS le corps de la carte, sur la ligne du
     titre (sous le pseudo). Auparavant en position:absolute par-dessus la
     bannière : ça masquait l'image de bannière et pouvait chevaucher l'avatar,
     d'où le déplacement ici, dans le flux. */
  .swipe-card .card-title-guilds-row{
    display:flex;align-items:center;gap:8px;flex-wrap:wrap;
    position:relative;margin-top:2px;min-height:0;width:100%;
  }
  .swipe-card .card-title-guilds-row .card-title-slot{
    display:block;max-width:100%;min-width:0;
  }
  .swipe-card .card-title-guilds-row .card-title-slot--empty{display:none}
  .swipe-card .card-guilds{display:flex;align-items:center;gap:10px;margin-top:auto;flex-wrap:wrap}
  .swipe-card .card-guilds--head{
    /* Icônes SEULEMENT (pas de libellé texte) : le "X serveurs communs" est
       accessible via title="" (tooltip au survol) -- voir guildsBlockHtml
       (js/app.js). Taille ×1.4 par rapport à l'ancienne base (18px→25px). */
    display:inline-flex;align-items:center;flex:none;
    margin:0;padding:4px;border-radius:12px;
    background:rgba(0,0,0,.30);border:1px solid rgba(255,255,255,.10);
    pointer-events:none;
  }
  .swipe-card .card-guilds--head .cg-icons{
    display:flex;flex-wrap:nowrap;align-items:center;gap:0;
  }
  .swipe-card .card-guilds--head .cg-icon{
    width:25px;height:25px;margin-left:-7px;border-width:2px;
  }
  .swipe-card .card-guilds--head .cg-icon:first-child{margin-left:0}
  .swipe-card .card-guilds--head .cg-more{
    margin-left:-7px;min-width:25px;height:25px;padding:0 5px;border-radius:12.5px;font-size:11px;
  }
  .swipe-card .cg-icons{display:flex;align-items:center}
  .swipe-card .cg-icon{
    width:26px;height:26px;border-radius:50%;
    background:#1c1d22;border:2px solid #0d0b1e;object-fit:cover;
    display:grid;place-items:center;color:#fff;font-size:11px;font-weight:800;
    margin-left:-8px;flex:0 0 auto;
  }
  .swipe-card .cg-icon:first-child{margin-left:0}
  .swipe-card .cg-icon--ph{background:linear-gradient(135deg,#5865F2,#404EED)}
  .swipe-card .cg-more{
    margin-left:-8px;
    min-width:26px;height:26px;padding:0 6px;border-radius:13px;
    background:#2b2d31;color:#fff;font-size:11px;font-weight:800;
    border:2px solid #0d0b1e;display:grid;place-items:center;
  }
  .swipe-card .cg-label{font-size:12px;color:#b9bbbe;line-height:1}
  .swipe-card .cg-label b{color:#fff;font-weight:700}
  .swipe-card.light-bg .cg-icon{border-color:rgba(255,255,255,.65)}
  .swipe-card.light-bg .cg-more{background:rgba(0,0,0,.10);color:#101014;border-color:rgba(255,255,255,.65)}
  .swipe-card.light-bg .card-guilds--head{background:rgba(255,255,255,.72);border-color:rgba(0,0,0,.08)}

  /* Auto-contrast — when profile color is too light, switch text to dark */
  .swipe-card.light-bg .name,
  .swipe-card.light-bg .handle,
  .swipe-card.light-bg .handle .sep,
  .swipe-card.light-bg .joined,
  .swipe-card.light-bg .bio,
  .swipe-card.light-bg .bio b,
  .swipe-card.light-bg .common,
  .swipe-card.light-bg .common b,
  .swipe-card.light-bg .activity .lbl b,
  .swipe-card.light-bg .activity .lbl span,
  .swipe-card.light-bg .discord-activity-kind,
  .swipe-card.light-bg .discord-activity-meta b,
  .swipe-card.light-bg .discord-activity-meta > span,
  .swipe-card.light-bg .discord-last-seen,
  .swipe-card.light-bg .card-social,
  .swipe-card.light-bg .card-voice-info b,
  .swipe-card.light-bg .card-voice-time{color:#101014 !important}
  .swipe-card.light-bg .handle .sep{opacity:.5}
  .swipe-card.light-bg .joined svg,
  .swipe-card.light-bg .card-social svg{color:#101014;opacity:.85}
  .swipe-card.light-bg .bio{background:rgba(0,0,0,.12);border-color:rgba(0,0,0,.10)}
  .swipe-card.light-bg .activity{background:rgba(0,0,0,.06)}
  .swipe-card.light-bg .discord-activity{background:rgba(0,0,0,.08)}
  .swipe-card.light-bg .discord-activity--spotify{background:linear-gradient(135deg,rgba(80,30,30,.35),rgba(50,20,20,.4))}
  .swipe-card.light-bg .discord-activity-progress{background:rgba(0,0,0,.15)}
  .swipe-card.light-bg .discord-activity-progress span{background:#101014}
  .swipe-card.light-bg .card-voice{background:rgba(0,0,0,.10)}
  .swipe-card.light-bg hr.div{border-color:rgba(0,0,0,.12)}
  .swipe-card.light-bg .card-social[data-kind="tiktok"] svg{color:#101014}

  /* LIKE / NOPE stamps */
  .swipe-card .badge-stamp{
    position:absolute;top:24px;padding:6px 14px;border-radius:8px;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:22px;letter-spacing:.08em;
    border:3px solid;opacity:0;transition:opacity .12s ease;
    pointer-events:none;z-index:5;
  }
  .swipe-card .badge-stamp.like {right:18px;color:#03d100;border-color:#03d100;transform:rotate(-12deg);text-shadow:0 0 14px rgba(3,209,0,.6)}
  .swipe-card .badge-stamp.nope {left:18px;color:#ff008c;border-color:#ff008c;transform:rotate(12deg);text-shadow:0 0 14px rgba(255,0,140,.6)}

  /* ============================================================
     Refonte "échelle unique" : la carte (.swipe-shell-wrap), les bulles
     (.orbit .orb) et le fond perso gardent TOUJOURS les mêmes proportions
     desktop de référence -- computeSwipeScale() (js/app.js) calcule un seul
     facteur d'échelle (espace réellement disponible ÷ taille de référence)
     et l'applique via transform:scale() sur .swipe-shell-wrap. Tout élément
     DESCENDANT de .swipe-card hérite automatiquement de ce scale (plus besoin
     de dupliquer chaque taille/police par breakpoint -- l'ancien bloc mobile
     + l'ancien bloc paysage-téléphone, ~90 règles au total, sont supprimés).
     Seuls les boutons d'action (.swipe-actions/.swipe-btn/#msgFab/.bf-fab)
     restent à taille FIXE et position:fixed en permanence (cibles tactiles
     toujours confortables, même quand la carte est zoomée très petite). */

  /* Swipe toolbar — floating right side, stacked above msgFab, hover reveals details */
  .swipe-tools{
    position:fixed;right:18px;bottom:18px;z-index:22;
    display:none;flex-direction:column-reverse;gap:10px;align-items:flex-end;
    pointer-events:none;
  }
  body[data-screen="swipe"] .swipe-tools{display:none !important}
  .stool-btn{
    position:relative;
    display:flex;align-items:center;justify-content:center;
    width:48px;height:48px;padding:0;border-radius:50%;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(22,22,28,.85);
    backdrop-filter:blur(20px) saturate(140%);
    -webkit-backdrop-filter:blur(20px) saturate(140%);
    box-shadow:0 10px 28px rgba(0,0,0,.45);
    color:#fff;font-family:inherit;cursor:pointer;
    pointer-events:auto;
    transition:transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s ease, background .22s ease;
  }
  .stool-btn:hover{
    transform:translateX(-3px) scale(1.06);
    border-color:rgba(145,70,255,.55);
    background:rgba(28,28,36,.95);
  }
  .stool-ico{font-size:18px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
  /* Detail panel slides in from right on hover/active */
  .stool-lbl{
    position:absolute;right:calc(100% + 10px);top:50%;
    transform:translateY(-50%) translateX(10px);
    display:flex;flex-direction:column;line-height:1.15;
    background:rgba(22,22,28,.92);
    border:1px solid rgba(255,255,255,.10);
    border-radius:12px;padding:6px 12px;
    white-space:nowrap;color:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.45);
    opacity:0;pointer-events:none;
    transition:opacity .22s ease, transform .22s cubic-bezier(.2,.7,.3,1);
    backdrop-filter:blur(20px) saturate(140%);
    -webkit-backdrop-filter:blur(20px) saturate(140%);
  }
  .stool-btn:hover .stool-lbl,
  .stool-btn:focus-visible .stool-lbl,
  .stool-btn.is-open .stool-lbl{opacity:1;transform:translateY(-50%) translateX(0);pointer-events:auto}
  .stool-lbl b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:13px;color:#fff}
  .stool-lbl small{font-size:10px;color:#b9bbbe;text-transform:uppercase;letter-spacing:.06em}
  .stool-stats{display:none}

  /* Action buttons — blended with the "draggable gradient icon" aesthetic.
     Toujours position:fixed (indépendant de la carte, jamais mis à l'échelle
     avec elle) : reste une cible tactile confortable même quand la carte est
     zoomée très petite sur un tout petit écran. */
  /* z-index > celui de .swipe-shell-wrap (60) : le slider de note (.react-popup)
     s'ouvre VERS LE HAUT, donc par-dessus le bas de la carte. Comme
     .swipe-actions crée un contexte d'empilement, le z-index:400 interne du
     popup ne pouvait pas l'en faire sortir -- à 23 il passait derrière la carte
     et on n'en voyait qu'un liseré sous le bord bas. */
  .swipe-actions{position:fixed;left:0;right:0;bottom:20px;display:flex;gap:8px;align-items:center;justify-content:center;z-index:65}
  /* Mode APERÇU complet : on cache like/nope et on montre "Quitter l'aperçu" */
  .preview-exit-btn{display:none}
  body[data-preview="true"] .swipe-btn--no,
  body[data-preview="true"] .swipe-btn--yes{display:none !important}
  body[data-preview="true"] .preview-exit-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:60px;padding:0 26px;border-radius:20px;cursor:pointer;
    background:linear-gradient(135deg,#2f3136,#1c1d22);color:#fff;border:1.5px solid rgba(255,255,255,.18);
    font-family:inherit;font-size:15px;font-weight:700;
    box-shadow:0 14px 40px rgba(0,0,0,.55);transition:transform .15s ease, background .15s ease;
  }
  body[data-preview="true"] .preview-exit-btn:hover{transform:translateY(-2px);background:linear-gradient(135deg,#3a3d44,#26272e)}
  /* En aperçu : on masque la toolbar swipe + les FABs (heart, messages) pour rester clean */
  body[data-preview="true"] .swipe-toolbar,
  body[data-preview="true"] #heartFab,
  body[data-preview="true"] #msgFab{display:none !important}

  /* Lien perso (matefindr.com/<slug>) : plus de like/dislike/swipe ni de FABs
     messages/likes -- le slider à étoiles (.shared-reactions) à la place, dans une
     barre sombre à faible opacité (les étoiles, elles, ressortent en pleine opacité). */
  .shared-reactions{display:none}
  body[data-shared="true"] .swipe-btn--no,
  body[data-shared="true"] .swipe-btn--yes,
  body[data-shared="true"] .react-wrap,
  body[data-shared="true"] .swipe-tools,
  body[data-shared="true"] .my-status,
  body[data-shared="true"] #heartFab,
  body[data-shared="true"] #msgFab,
  /* Pas de "Se connecter" sur un lien perso : le visiteur vient voir UN profil,
     pas s'inscrire. La connexion reste déclenchée à la demande s'il note le
     profil (handleSharedAction, js/app.js). */
  body[data-shared="true"] .login{display:none !important}
  body[data-shared="true"] .shared-reactions{
    display:flex;gap:12px;align-items:center;
    padding:12px 18px;border-radius:999px;
    background:rgba(0,0,0,.5);
    backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%);
    box-shadow:0 14px 40px rgba(0,0,0,.5);
    position:relative;z-index:400; /* calque le plus haut (hors #gate) -- rien ne doit passer devant */
  }
  /* Propriétaire sur son propre lien : aperçu visiteur, sans se noter soi-même */
  body[data-shared-own="true"] .shared-reactions{display:none !important}
  body[data-shared-own="true"] .preview-exit-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:60px;padding:0 26px;border-radius:20px;cursor:pointer;
    background:linear-gradient(135deg,#2f3136,#1c1d22);color:#fff;border:1.5px solid rgba(255,255,255,.18);
    font-family:inherit;font-size:15px;font-weight:700;
    box-shadow:0 14px 40px rgba(0,0,0,.55);transition:transform .15s ease, background .15s ease;
  }
  body[data-shared-own="true"] .preview-exit-btn:hover{transform:translateY(-2px);background:linear-gradient(135deg,#3a3d44,#26272e)}

  /* Bouton "react" (entre Passer et Liker) : révèle un popup de 5 emojis au-dessus,
     ne swipe/dismiss JAMAIS la carte -- ne modifie que le graphique de réactions.
     Volontairement discret (opacité réduite) pour ne pas concurrencer Passer/Liker,
     mais assez grand pour que le smiley + le badge "+" restent lisibles. */
  .react-wrap{position:relative;display:flex;align-items:center}
  body[data-preview="true"] .react-wrap{display:none !important}
  /* Spécificité (0,2,0) via .react-wrap : .swipe-btn{width:68px...} plus bas dans ce
     fichier a la même spécificité (0,1,0) qu'un simple .swipe-btn--react{width:22px}
     et gagnerait la cascade (déclaré après) -- même piège déjà rencontré avec
     .swipe-btn--shared-heart, cf. plus haut. */
  .react-wrap .swipe-btn--react{
    position:relative;width:32px;height:32px;padding:0;border-radius:12px;
    background:rgba(0,0,0,.45);box-shadow:none;opacity:.65;
  }
  .swipe-btn--react svg{width:18px;height:18px}
  .swipe-btn--react::before{display:none}
  /* Badge "+" incrusté en haut à gauche du smiley (invite à ajouter une réaction) --
     même couleur que le bouton lui-même (pas d'accent rose/violet qui détonne). */
  .swipe-btn--react::after{
    content:"+";position:absolute;top:-4px;left:-4px;width:18px;height:18px;border-radius:50%;
    background:#2f3136;color:#fff;
    font-size:13px;font-weight:800;line-height:18px;text-align:center;
    box-shadow:0 2px 6px rgba(0,0,0,.45);
  }
  .swipe-btn--react:hover{opacity:1;background:rgba(0,0,0,.6)}
  .react-popup{
    position:absolute;left:50%;bottom:calc(100% + 14px);transform:translateX(-50%) translateY(6px);
    z-index:400;
    display:flex;gap:8px;padding:9px 11px;border-radius:999px;
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);
    box-shadow:var(--mf-modal-shadow);
    opacity:0;pointer-events:none;transition:opacity .16s ease, transform .16s ease;
  }
  .react-popup[data-open="true"]{opacity:1;pointer-events:auto;transform:translateX(-50%) translateY(0)}

  /* Slider à étoiles (note 1.0-5.0, pas de 0.1) : on glisse la poignée bleue vers la
     droite par-dessus les étoiles (elles passent en jaune au fur et à mesure), la note
     en cours s'affiche au-dessus de la poignée pendant le glissé. Au relâchement : la
     note est envoyée, la poignée revient tout à gauche ("retour de force") et affiche
     la note envoyée à la place de la flèche. */
  .rate-slider{position:relative;width:220px;height:38px;touch-action:none;--rs-handle:38px}
  .rate-slider[data-size="lg"]{width:320px;height:52px;--rs-handle:52px}
  /* Les 5 étoiles occupent la zone ENTRE les deux positions extrêmes de la poignée
     (left:var(--rs-handle) à droite:var(--rs-handle), pas juste la moitié) : sinon la
     poignée au repos (tout à gauche) recouvre la 1re étoile -- une seule visible sur 5. */
  .rate-stars{
    position:absolute;top:0;bottom:0;left:var(--rs-handle);right:var(--rs-handle);
    display:flex;align-items:center;justify-content:space-between;pointer-events:none;
  }
  .rate-star{width:20px;height:20px;color:rgba(255,255,255,.18);transition:color .12s ease}
  .rate-slider[data-size="lg"] .rate-star{width:28px;height:28px}
  .rate-star.active{color:var(--shared-swipe-color,#FFD84D)}
  .rate-handle{
    position:absolute;top:0;left:0;width:var(--rs-handle);height:var(--rs-handle);
    border-radius:50%;background:var(--shared-ui-color,#7328F4);color:#fff;cursor:grab;
    display:grid;place-items:center;box-shadow:0 8px 22px rgba(115,40,244,.55);
    transition:left .35s cubic-bezier(.2,.8,.3,1);
    -webkit-user-select:none;user-select:none;
  }
  .rate-handle.dragging{transition:none;cursor:grabbing}
  /* display:none (pas juste opacity:0) : au repos, sans note en cours, rien de ce
     libellé ne doit être rendu -- "le petit truc au-dessus" signalé par l'utilisateur. */
  .rate-handle .rate-value{
    display:none;position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);
    font-size:13px;font-weight:800;color:#fff;background:rgba(0,0,0,.65);
    padding:3px 9px;border-radius:8px;white-space:nowrap;
    pointer-events:none;
  }
  .rate-handle.show-rate-value .rate-value{display:block}
  .rate-handle .rate-submitted{display:none;font-size:12px;font-weight:800}
  .rate-slider[data-size="lg"] .rate-handle .rate-submitted{font-size:15px}
  .rate-handle.has-submitted .rate-arrow{display:none}
  .rate-handle.has-submitted .rate-submitted{display:block}

  .swipe-btn{
    position:relative;width:68px;height:68px;border-radius:22px;border:none;cursor:pointer;
    display:grid;place-items:center;color:#fff;padding:14px;
    transition:transform .16s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow:0 14px 32px rgba(0,0,0,.45);
    overflow:visible;
  }
  .swipe-btn::before{
    content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;
    filter:blur(14px);opacity:.55;transition:opacity .2s ease;
  }
  .swipe-btn:hover{transform:translateY(-3px) scale(1.06)}
  .swipe-btn:hover::before{opacity:.9}
  .swipe-btn:active{transform:translateY(-1px) scale(.98)}
  /* Nope = pink → magenta (motion lib colors) */
  .swipe-btn--no  {background:linear-gradient(180deg,#ff008c 0%, #d309e1 100%)}
  .swipe-btn--no::before {background:linear-gradient(180deg,#ff008c 0%, #d309e1 100%)}
  /* Yes = lime → green */
  .swipe-btn--yes {background:linear-gradient(180deg,#e6ff00 0%, #03d100 100%);color:#0d3a00}
  .swipe-btn--yes::before{background:linear-gradient(180deg,#e6ff00 0%, #03d100 100%)}
  .swipe-btn svg path{stroke-linecap:round;stroke-linejoin:round}
  /* Live reaction while dragging — class set by JS on .swipe-actions */
  .swipe-actions.dir-right .swipe-btn--yes{transform:scale(1.22);box-shadow:0 18px 40px rgba(3,209,0,.55)}
  .swipe-actions.dir-right .swipe-btn--yes::before{opacity:1}
  .swipe-actions.dir-left  .swipe-btn--no {transform:scale(1.22);box-shadow:0 18px 40px rgba(255,0,140,.55)}
  .swipe-actions.dir-left  .swipe-btn--no::before{opacity:1}
  /* .swipe-btn/.swipe-btn--react gardent une taille FIXE unique (plus de
     surcharge mobile) : indépendants de la carte, jamais mis à l'échelle. */

  /* My-status floating control — bottom-LEFT, neutral aesthetic */
  .my-status{
    position:fixed;right:18px;bottom:142px;z-index:23;
    display:none;align-items:center;justify-content:center;
    width:48px;height:48px;padding:0;border-radius:50%;
    background:rgba(22,22,28,.85);
    border:1px solid rgba(255,255,255,.10);
    backdrop-filter:blur(20px) saturate(140%);
    -webkit-backdrop-filter:blur(20px) saturate(140%);
    cursor:pointer;color:#fff;font-size:0;
    transition:transform .18s ease, background .18s ease, border-color .18s ease;
    box-shadow:0 10px 28px rgba(0,0,0,.45);
  }
  .my-status:hover{background:rgba(28,28,34,.95);border-color:rgba(255,255,255,.20);transform:translateY(-2px) scale(1.05)}
  .my-status #myStatusLabel{display:none}
  .my-status .ms-emoji{
    width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:18px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.12);
    transition:.18s ease;
  }
  /* Subtle per-mode accent line (no full violet background) */
  .my-status[data-look="chill"] .ms-emoji{box-shadow:0 0 0 1.5px rgba(255,182,110,.7)}
  .my-status[data-look="game"]  .ms-emoji{box-shadow:0 0 0 1.5px rgba(91,233,255,.7)}
  .my-status[data-look="talk"]  .ms-emoji{box-shadow:0 0 0 1.5px rgba(59,209,124,.8)}
  .my-status[data-look="sleep"] .ms-emoji{box-shadow:0 0 0 1.5px rgba(145,70,255,.6)}
  body[data-screen="swipe"] .my-status{display:none !important}

  /* Popover — clean dark, no violet */
  .ms-pop{
    position:fixed;right:78px;bottom:142px;z-index:24;
    padding:8px;border-radius:var(--mf-modal-radius);min-width:240px;
    background:var(--mf-modal-bg);
    border:1px solid var(--mf-modal-border);
    box-shadow:var(--mf-modal-shadow);
    display:none;transform-origin:bottom left;
  }
  .ms-pop[data-open="true"]{display:block;animation:msPopIn .18s ease-out}
  @keyframes msPopIn{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
  .ms-pop button{
    all:unset;display:flex;align-items:center;gap:12px;width:100%;
    padding:10px 12px;border-radius:11px;cursor:pointer;
    font-size:13.5px;color:#dcddde;font-weight:600;box-sizing:border-box;
    transition:.14s ease;
  }
  .ms-pop button:hover{background:rgba(255,255,255,.05);color:#fff}
  .ms-pop button.selected{background:rgba(255,255,255,.07);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
  .ms-pop button .emo{
    width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:18px;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.10);flex:0 0 auto;
  }
  .ms-pop button[data-val="chill"] .emo{box-shadow:0 0 0 1.5px rgba(255,182,110,.65)}
  .ms-pop button[data-val="game"]  .emo{box-shadow:0 0 0 1.5px rgba(91,233,255,.65)}
  .ms-pop button[data-val="talk"]  .emo{box-shadow:0 0 0 1.5px rgba(59,209,124,.75)}
  .ms-pop button[data-val="sleep"] .emo{box-shadow:0 0 0 1.5px rgba(145,70,255,.55)}
  .ms-pop button .lbl{display:flex;flex-direction:column}
  .ms-pop button .lbl small{font-weight:500;color:#8b8c92;font-size:11.5px}
  .swipe-empty{
    text-align:center;color:var(--ink-dim);font-size:15px;padding:40px 20px;
  }
  .swipe-empty h3{color:#fff;font-family:"Clash Display",sans-serif;font-size:22px;margin:0 0 6px}

  /* ===== Account tabs ===== */
  .acc-tabs{
    display:flex;gap:6px;flex-wrap:wrap;padding:6px;border-radius:14px;
    background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
    margin-bottom:14px;
  }
  .acc-tab-btn{
    flex:1 1 auto;min-width:64px;padding:8px 10px;border-radius:10px;border:none;
    background:transparent;color:#b9bbbe;font-family:inherit;font-weight:700;font-size:12px;
    cursor:pointer;transition:.15s ease;white-space:nowrap;
    display:inline-flex;align-items:center;justify-content:center;gap:6px;position:relative;
  }
  .acc-tab-btn:hover{color:#fff;background:rgba(255,255,255,.05)}
  .acc-tab-btn.active{background:linear-gradient(180deg,#A65BFF,#6B2BFF);color:#fff;box-shadow:0 4px 14px rgba(107,43,255,.35)}

  /* Boost tab — premium yellow */
  .acc-tab-btn--boost{
    color:#FFD83D;background:rgba(255,216,61,.06);
    box-shadow:inset 0 0 0 1px rgba(255,216,61,.30);
  }
  .acc-tab-btn--boost .boost-star{
    display:inline-flex;align-items:center;line-height:1;color:#FFD83D;
    filter:drop-shadow(0 0 6px rgba(255,216,61,.55));
  }
  .acc-tab-btn--boost .boost-star svg{display:block}
  .acc-tab-btn--boost:hover{
    color:#fff;background:rgba(255,216,61,.18);box-shadow:inset 0 0 0 1px rgba(255,216,61,.55);
  }
  .acc-tab-btn--boost.active{
    background:linear-gradient(180deg,#FFE066,#E5A800);color:#1a1100;
    box-shadow:0 6px 22px rgba(255,216,61,.55), inset 0 0 0 1px rgba(255,255,255,.4);
  }
  .acc-tab-btn--boost.active .boost-star{color:#1a1100;text-shadow:none}

  /* Tab count chip */
  .tab-count{
    display:none;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
    background:rgba(255,255,255,.18);color:#fff;font-size:10.5px;font-weight:800;
    align-items:center;justify-content:center;line-height:1;
  }
  .tab-count[data-show="true"]{display:inline-flex}
  .acc-tab-btn.active .tab-count{background:rgba(255,255,255,.30)}

  /* Identity panel (now profile card preview) — visible on ALL tabs */
  body[data-screen="account"] .acc-identity{display:flex !important;flex-direction:column;gap:8px;min-height:0}
  .acc-identity > h3{font-size:14px !important}
  .acc-preview-wrap{
    width:100%;flex:1 1 auto;min-height:0;
    position:relative;border-radius:16px;overflow:hidden;
  }
  .acc-preview-wrap .swipe-card.preview-mode{
    position:relative !important;inset:auto !important;width:100%;height:100%;
    transform:none !important;cursor:default !important;animation:none !important;
  }
  /* Le corps de la carte d'aperçu suit le même comportement que la vraie carte de profil (pas de scroll) */
  .acc-preview-wrap .swipe-card.preview-mode .body{overflow:hidden !important}
  .acc-preview-wrap .swipe-card .badge-stamp{display:none !important}
  /* Frame autour du preview + bouton "Aperçu complet" en bas à droite */
  .acc-preview-frame{position:relative;width:100%;flex:1 1 auto;min-height:0;display:flex}
  .acc-preview-full{
    position:absolute;right:10px;bottom:10px;z-index:5;
    display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;
    background:linear-gradient(135deg,#9146FF,#FF4FA0);color:#fff;border:1.5px solid rgba(255,255,255,.25);
    font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;
    box-shadow:0 8px 22px rgba(145,70,255,.5);
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .acc-preview-full:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 12px 30px rgba(145,70,255,.7)}
  .acc-preview-full svg{flex:0 0 auto}
  /* Animated profile decoration ring — extra glow around the avatar */
  .swipe-card .avatar-wrap.has-deco::before{
    content:'';position:absolute;inset:-3px;border-radius:50%;
    background:conic-gradient(from 0deg, rgba(255,255,255,0), rgba(145,70,255,.55), rgba(91,233,255,.55), rgba(255,126,182,.55), rgba(255,255,255,0));
    filter:blur(4px);opacity:.55;animation:nitroSpin 8s linear infinite;z-index:0;pointer-events:none;
  }
  /* Profile body color — dégradé statique plein cadre (pas d'animation qui
     laisse voir le fond derrière aux coins arrondis). */
  .swipe-card[style*="background:"]{
    background-size:100% 100% !important;
    background-repeat:no-repeat !important;
  }

  /* Discord notifications panel */
  .acc-notif-toggles{display:flex;flex-direction:column;gap:8px;margin-top:6px}
  .acc-notif-row{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 12px;border-radius:10px;
    background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
  }
  .acc-notif-lbl{font-size:13.5px;color:#dcddde;font-weight:500}

  /* Danger zone in Paramètres */
  .acc-billing{display:flex;flex-direction:column;gap:7px;padding:13px 15px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
  .acc-billing .bill-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13.5px}
  .acc-billing .bill-k{color:#b9bbbe}
  .acc-billing .bill-v{font-weight:700;color:#fff;text-align:right}
  .acc-danger-zone{display:flex;flex-direction:column;gap:8px;margin-top:8px}
  .acc-danger-zone .acc-btn--danger{margin-left:0 !important}
  .acc-tab-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
  .acc-tab{flex:1 1 auto;min-height:0;overflow:auto;padding-right:4px}
  .acc-tab[hidden]{display:none !important}
  .acc-tab .acc-section,
  .acc-section.acc-tab{border-top:none;margin-top:0;padding-top:6px}

  /* ===== Account screen — new sections ===== */
  .acc-section{padding:14px 0;border-top:1px solid rgba(255,255,255,.06);margin-top:8px}
  .acc-section:first-child{border-top:none;margin-top:0}
  .acc-section h3{
    margin:0 0 12px;font-family:"Clash Display",sans-serif;font-weight:700;font-size:16px;letter-spacing:.02em;
    color:#fff;display:flex;align-items:center;gap:8px;
  }
  .acc-section h3 .pill{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,126,182,.18);color:#FFB1D2;letter-spacing:.08em;text-transform:uppercase}
  .acc-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  @media (max-width:560px){ .acc-grid2{grid-template-columns:1fr} }
  .acc-input, .acc-select{
    width:100%;box-sizing:border-box;padding:12px 14px;border-radius:11px;outline:none;
    background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.08);
    color:#fff;font-family:inherit;font-size:14px;
    transition:.18s ease;
  }
  .acc-input:focus, .acc-select:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.16)}
  .acc-select{appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px;cursor:pointer}
  .acc-select option{background:#1a1a20;color:#fff}

  /* Language toggle */
  .acc-langs{display:flex;gap:8px}
  .acc-langs button{
    flex:1;padding:10px 14px;border-radius:10px;cursor:pointer;
    background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.08);
    color:#dcddde;font-family:inherit;font-weight:700;font-size:13.5px;
    transition:.16s ease;
  }
  .acc-langs button{display:flex;align-items:center;justify-content:center;gap:8px}
  .acc-langs button:hover{background:rgba(255,255,255,.08);color:#fff}
  .acc-langs button.active{background:rgba(255,255,255,.10);color:#fff;border-color:rgba(255,255,255,.30);box-shadow:0 0 0 3px rgba(255,255,255,.05)}
  .acc-lang-flag{width:22px;height:16px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.3);flex:0 0 auto}

  /* Custom banner upload */
  .acc-banner-row{display:flex;align-items:center;gap:12px;margin-top:6px}
  .acc-banner-prev{
    width:120px;height:62px;border-radius:10px;
    background:linear-gradient(135deg,#5865F2,#9146FF);background-size:cover;background-position:center;
    border:1.5px solid rgba(255,255,255,.08);
    box-shadow:0 4px 12px rgba(0,0,0,.4);
    flex:0 0 auto;
  }
  .acc-banner-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

  /* Discord avatar-decoration picker (real Discord shop decos via CDN) */
  .dd-deco-grid{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(78px,1fr));gap:8px;margin-top:8px;
    max-height:340px;overflow-y:auto;padding:6px;border-radius:12px;
    background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06);
  }
  .dd-deco-tile{
    position:relative;width:100%;aspect-ratio:1/1.15;border-radius:10px;cursor:pointer;
    background:rgba(255,255,255,.03);border:1.5px solid rgba(255,255,255,.08);
    display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
    padding:6px 4px 4px;transition:.15s ease;
  }
  .dd-deco-tile:hover{transform:scale(1.05);border-color:rgba(145,70,255,.45)}
  .dd-deco-tile.selected{border-color:#9146FF;background:rgba(145,70,255,.20);box-shadow:0 0 0 2px rgba(145,70,255,.35)}
  .dd-deco-tile img{width:48px;height:48px;object-fit:contain;display:block;pointer-events:none}
  .dd-deco-empty{
    width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
    background:rgba(255,255,255,.05);color:#b9bbbe;font-size:18px;font-weight:300;
  }
  .dd-deco-name{
    margin-top:4px;font-size:9.5px;color:#dcddde;text-align:center;line-height:1.15;
    overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
    max-width:100%;
  }
  .dd-deco-empty-wrap{padding:10px;color:#72767d;font-size:12px;text-align:center}

  /* Fake-Nitro decoration picker (legacy custom CSS picker — still hidden in DOM) */
  .acc-deco-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:10px;margin-top:8px}
  .acc-deco-tile{
    position:relative;width:100%;aspect-ratio:1/1;border-radius:14px;cursor:pointer;
    background:rgba(255,255,255,.03);border:1.5px solid rgba(255,255,255,.08);
    display:grid;place-items:center;transition:.15s ease;padding:0;
    overflow:hidden;
  }
  .acc-deco-tile:hover{transform:scale(1.04);border-color:rgba(145,70,255,.45)}
  .acc-deco-tile.selected{border-color:#9146FF;background:rgba(145,70,255,.18);box-shadow:0 0 0 2px rgba(145,70,255,.35)}
  .acc-deco-tile .deco-avi{
    width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#FF7EB6,#9146FF);
    display:grid;place-items:center;color:#fff;font-family:"Clash Display",sans-serif;font-weight:800;font-size:22px;
    position:relative;z-index:2;
  }
  .acc-deco-tile .deco-name{
    position:absolute;left:0;right:0;bottom:4px;
    text-align:center;font-size:10px;color:#dcddde;font-weight:600;letter-spacing:.02em;
    pointer-events:none;
  }
  .acc-deco-tile[data-deco="none"]{background:rgba(255,255,255,.02)}
  .acc-deco-tile[data-deco="none"] .deco-avi{background:#2b2d31}

  /* Decoration effects shared between the picker tile and the live card avatar.
     Apply with a class like `.has-fake-deco` + `data-fakedeco="<id>"` on .avatar-wrap. */
  .deco-effect{position:absolute;inset:-10px;border-radius:50%;pointer-events:none;z-index:1}
  .deco-rainbow.deco-effect{
    background:conic-gradient(from 0deg,#FF7EB6,#9146FF,#5BE9FF,#3BD17C,#FFB66E,#FF4FA0,#FF7EB6);
    animation:nitroSpin 6s linear infinite;
    -webkit-mask:radial-gradient(circle, transparent 56%, #000 60%);
    mask:radial-gradient(circle, transparent 56%, #000 60%);
  }
  .deco-gold.deco-effect{
    background:conic-gradient(from 0deg,#FFD83D,#FFA63D,#FFD83D,#FFEEA0,#FFD83D);
    animation:nitroSpin 8s linear infinite;
    -webkit-mask:radial-gradient(circle, transparent 56%, #000 60%);
    mask:radial-gradient(circle, transparent 56%, #000 60%);
  }
  .deco-fire.deco-effect{
    background:radial-gradient(circle at 50% 100%, #FF4D00 0%, #FF9A1F 25%, transparent 60%);
    filter:blur(2px);
    animation:decoFireFlicker 1.4s ease-in-out infinite alternate;
  }
  @keyframes decoFireFlicker{
    0%{transform:translateY(2px) scale(1);opacity:.85}
    100%{transform:translateY(-3px) scale(1.08);opacity:1}
  }
  .deco-stars.deco-effect{
    background:
      radial-gradient(circle at 12% 22%, #fff 0 1.5px, transparent 2px),
      radial-gradient(circle at 88% 18%, #fff 0 2px, transparent 3px),
      radial-gradient(circle at 18% 78%, #fff 0 1.5px, transparent 2px),
      radial-gradient(circle at 82% 82%, #fff 0 2.5px, transparent 3.5px),
      radial-gradient(circle at 50% 50%, transparent 60%, rgba(145,70,255,.5) 100%);
    animation:decoStarsTwinkle 2.6s ease-in-out infinite;
  }
  @keyframes decoStarsTwinkle{
    0%,100%{opacity:.7;filter:drop-shadow(0 0 6px rgba(255,255,255,.6))}
    50%    {opacity:1;filter:drop-shadow(0 0 10px rgba(145,70,255,.85))}
  }
  .deco-electric.deco-effect{
    border-radius:50%;
    background:radial-gradient(circle at 50% 50%, transparent 58%, #5BE9FF 62%, transparent 70%);
    box-shadow:0 0 22px 4px #5BE9FF, inset 0 0 18px #2BC4FF;
    animation:decoElectric 1.6s ease-in-out infinite;
  }
  @keyframes decoElectric{
    0%,100%{filter:hue-rotate(0deg) brightness(1)}
    50%    {filter:hue-rotate(20deg) brightness(1.4)}
  }
  .deco-bubbles.deco-effect{
    background:
      radial-gradient(circle at 20% 30%, #FF7EB6 0 6px, transparent 7px),
      radial-gradient(circle at 75% 25%, #5BE9FF 0 5px, transparent 6px),
      radial-gradient(circle at 28% 78%, #3BD17C 0 5px, transparent 6px),
      radial-gradient(circle at 80% 80%, #FFB66E 0 6px, transparent 7px);
    animation:decoBubbles 4s ease-in-out infinite;
    -webkit-mask:radial-gradient(circle, transparent 54%, #000 58%);
    mask:radial-gradient(circle, transparent 54%, #000 58%);
  }
  @keyframes decoBubbles{
    0%,100%{transform:translate(0,0)}
    50%    {transform:translate(2px,-3px)}
  }
  .deco-heart.deco-effect{
    background:radial-gradient(circle at 50% 50%, transparent 60%, #FF4FA0 62%, transparent 72%);
    box-shadow:0 0 18px 2px rgba(255,79,160,.7), inset 0 0 16px rgba(255,79,160,.45);
    animation:decoHeartBeat 1.4s ease-in-out infinite;
  }
  @keyframes decoHeartBeat{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}
  .deco-aurora.deco-effect{
    background:conic-gradient(from 180deg,#3BD17C,#5BE9FF,#9146FF,#FF7EB6,#3BD17C);
    filter:blur(4px) saturate(1.4);
    animation:nitroSpin 11s linear infinite;
    -webkit-mask:radial-gradient(circle, transparent 56%, #000 62%);
    mask:radial-gradient(circle, transparent 56%, #000 62%);
  }
  .deco-pixel.deco-effect{
    background:
      conic-gradient(from 45deg, #5BE9FF 0 25%, transparent 0 50%, #FF7EB6 0 75%, transparent 0);
    -webkit-mask:radial-gradient(circle, transparent 56%, #000 60%);
    mask:radial-gradient(circle, transparent 56%, #000 60%);
    animation:nitroSpin 4s steps(8) infinite;
  }

  /* Profile color picker — wheel version (one circular swatch per slot) */
  .acc-color-wheel-row{display:flex;align-items:center;gap:14px;margin-top:8px;flex-wrap:wrap}
  .acc-color-wheel{
    position:relative;display:inline-flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;
  }
  .acc-color-wheel input[type="color"]{
    appearance:none;-webkit-appearance:none;
    width:48px;height:48px;border-radius:50%;border:3px solid rgba(255,255,255,.18);
    cursor:pointer;padding:0;background:#9146FF;
    box-shadow:0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08) inset;
    transition:transform .15s ease, border-color .15s ease;
  }
  .acc-color-wheel input[type="color"]:hover{transform:scale(1.06);border-color:rgba(255,255,255,.42)}
  .acc-color-wheel input[type="color"]::-webkit-color-swatch-wrapper{padding:0;border-radius:50%}
  .acc-color-wheel input[type="color"]::-webkit-color-swatch{border:none;border-radius:50%}
  .acc-color-wheel input[type="color"]::-moz-color-swatch{border:none;border-radius:50%}
  .acc-color-wheel-lbl{font-size:10.5px;font-weight:700;color:#b9bbbe;letter-spacing:.05em;text-transform:uppercase}
  /* Bouton reset = aperçu de la couleur de base Discord (le gris vers lequel on remet) */
  .acc-color-reset{
    width:36px;height:36px;border-radius:50%;border:1.5px solid rgba(255,255,255,.14);
    background:#36393F;color:#fff;cursor:pointer;font-size:18px;line-height:1;
    transition:.15s;align-self:flex-end;margin-bottom:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.3);
  }
  .acc-color-reset:hover{background:#2F3136;color:#fff;border-color:rgba(255,255,255,.30);transform:scale(1.06)}

  /* "Mes bulles" CTA — gros bouton qui ouvre l'overlay edit */
  .acc-bulles-cta{
    position:relative;overflow:hidden;
    display:flex;align-items:center;gap:14px;width:100%;
    padding:18px 18px;border-radius:16px;cursor:pointer;
    background:linear-gradient(135deg, #9146FF 0%, #B14BFF 46%, #FF7EB6 100%);
    border:1.5px solid rgba(255,255,255,.22);
    color:#fff;font-family:inherit;text-align:left;
    box-shadow:0 8px 26px rgba(145,70,255,.45), inset 0 1px 0 rgba(255,255,255,.28);
    transition:transform .18s ease, box-shadow .18s ease;
    animation:bullesCtaPulse 2.8s ease-in-out infinite;
  }
  @keyframes bullesCtaPulse{
    0%,100%{box-shadow:0 8px 26px rgba(145,70,255,.45), inset 0 1px 0 rgba(255,255,255,.28)}
    50%{box-shadow:0 12px 36px rgba(255,126,182,.55), inset 0 1px 0 rgba(255,255,255,.28)}
  }
  .acc-bulles-cta:hover{
    transform:translateY(-2px) scale(1.015);
    box-shadow:0 16px 42px rgba(145,70,255,.6);
  }
  .acc-bulles-cta:active{transform:translateY(0) scale(.99)}
  .acc-bulles-cta-ico{
    font-size:30px;line-height:1;flex:0 0 auto;position:relative;z-index:1;
    filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
    animation:bullesCtaFloat 3s ease-in-out infinite;
  }
  @keyframes bullesCtaFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
  .acc-bulles-cta-text{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px;position:relative;z-index:1}
  .acc-bulles-cta-text b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:17px;color:#fff;letter-spacing:-.01em;text-shadow:0 1px 6px rgba(0,0,0,.25)}
  .acc-bulles-cta-text small{font-size:12px;color:rgba(255,255,255,.92);font-weight:600}
  .acc-bulles-cta-arrow{font-size:26px;color:rgba(255,255,255,.85);flex:0 0 auto;font-weight:300;position:relative;z-index:1;transition:transform .18s ease}
  .acc-bulles-cta:hover .acc-bulles-cta-arrow{transform:translateX(3px)}
  @media (prefers-reduced-motion:reduce){
    .acc-bulles-cta,.acc-bulles-cta-ico{animation:none}
  }

  .acc-color-pair{display:flex;flex-direction:column;gap:4px;margin-top:8px}
  .acc-color-pair:first-of-type{margin-top:4px}
  .acc-color-lbl{font-size:11px;font-weight:700;color:#b9bbbe;letter-spacing:.04em;text-transform:uppercase}
  .acc-color-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}
  .acc-color-swatch{
    width:34px;height:34px;border-radius:50%;cursor:pointer;position:relative;
    background:var(--c,#9146FF);border:2px solid rgba(255,255,255,.08);
    transition:.16s ease;padding:0;font-family:inherit;
  }
  .acc-color-swatch:hover{transform:scale(1.1);border-color:rgba(255,255,255,.25)}
  .acc-color-swatch.active{border-color:#fff;box-shadow:0 0 0 3px rgba(145,70,255,.4)}
  .acc-color-swatch[data-color="discord"]{
    width:auto;border-radius:18px;padding:6px 12px 6px 6px;height:34px;
    display:inline-flex;align-items:center;gap:8px;color:#fff;font-size:12px;font-weight:700;
    background:rgba(255,255,255,.04);
  }
  .acc-color-swatch[data-color="discord"] span{
    width:22px;height:22px;border-radius:50%;display:block;
  }
  .acc-color-pick{
    width:34px;height:34px;border-radius:50%;cursor:pointer;
    background:repeating-conic-gradient(#FF7EB6 0% 12%, #FFB66E 12% 24%, #3BD17C 24% 38%, #5BE9FF 38% 52%, #9146FF 52% 68%, #FF4FA0 68% 84%, #FF7EB6 84% 100%);
    border:2px solid rgba(255,255,255,.10);display:grid;place-items:center;
    position:relative;overflow:hidden;
  }
  .acc-color-pick:hover{border-color:rgba(255,255,255,.30);transform:scale(1.06)}
  .acc-color-pick input[type="color"]{
    position:absolute;inset:0;width:100%;height:100%;border:none;opacity:0;cursor:pointer;
  }
  .acc-color-pick-ico{
    color:#fff;font-size:18px;font-weight:800;text-shadow:0 1px 4px rgba(0,0,0,.6);
    pointer-events:none;line-height:1;
  }

  /* Social connections — compact */
  .acc-social{display:flex;flex-direction:column;gap:6px}
  .acc-social-row{
    display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:10px;
    background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
  }
  .acc-social-row .so-ico{
    width:28px;height:28px;border-radius:8px;display:grid;place-items:center;flex:0 0 auto;color:#fff;
  }
  .acc-social-row .so-ico svg{width:15px;height:15px}
  .acc-social-row[data-kind="instagram"] .so-ico{background:linear-gradient(135deg,#f9ce34 0%,#ee2a7b 50%,#6228d7 100%)}
  .acc-social-row[data-kind="tiktok"]    .so-ico{background:#000;border:1px solid rgba(255,255,255,.10)}
  .acc-social-row[data-kind="spotify"]   .so-ico{background:#1DB954}
  .acc-social-row .so-name{flex:0 0 auto;font-size:12px;font-weight:700;width:62px}
  .acc-social-row input{
    flex:1 1 auto;min-width:0;padding:6px 10px;border-radius:8px;outline:none;
    background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
    color:#fff;font-family:inherit;font-size:12.5px;
  }
  .acc-social-row input:focus{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.07)}
  .acc-social-row button{
    padding:6px 11px;border-radius:8px;cursor:pointer;flex:0 0 auto;
    background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);
    color:#fff;font-family:inherit;font-weight:700;font-size:12px;
    transition:.16s ease;
  }
  .acc-social-row button:hover{background:rgba(255,255,255,.12)}
  .acc-social-row button.connected{background:rgba(59,209,124,.18);border-color:rgba(59,209,124,.4);color:#9CF0BD}

  /* Mini profile preview — Discord-style */
  .preview-card{
    width:100%;max-width:340px;margin:6px auto 0;border-radius:18px;overflow:visible;
    background:#1c1d22;border:1px solid rgba(255,255,255,.06);
    box-shadow:0 18px 40px rgba(0,0,0,.5);position:relative;
  }
  .preview-card .pb{height:62px;background:linear-gradient(135deg,#5865F2,#9146FF);position:relative;background-size:cover;background-position:center;border-radius:14px 14px 0 0;overflow:hidden}
  .preview-card .pa{
    position:absolute;left:14px;top:22px;width:58px;height:58px;border-radius:50%;padding:4px;
    background:#1c1d22;display:grid;place-items:center;z-index:2;
  }
  .preview-card .prev-deco{
    position:absolute;inset:-14px;width:calc(100% + 28px);height:calc(100% + 28px);
    object-fit:contain;pointer-events:none;z-index:3;
  }
  .prev-socials{display:flex;flex-direction:column;gap:3px;margin:6px 0 0}
  .prev-social{display:flex;align-items:center;gap:5px;font-size:10.5px;color:#b9bbbe}
  .prev-social[data-kind="instagram"] svg{color:#e1306c}
  .prev-social[data-kind="tiktok"] svg{color:#fff}
  .prev-social[data-kind="spotify"] svg{color:#1DB954}
  .preview-card .pa .av{
    width:100%;height:100%;border-radius:50%;display:grid;place-items:center;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:22px;color:#fff;
    background:linear-gradient(135deg,#FF7EB6,#9146FF);
  }
  .preview-card .pa .av img{width:100%;height:100%;border-radius:50%;object-fit:cover}
  .preview-card .pbody{padding:32px 12px 10px;color:#fff}
  .preview-card .pn{display:flex;align-items:baseline;gap:6px}
  .preview-card .pn b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:18px}
  .preview-card .pn span{color:#b9bbbe;font-size:14px}
  .preview-card .ph{color:#b9bbbe;font-size:12px;margin:2px 0 8px}
  .preview-card .pbio{font-size:12.5px;color:#dcddde;line-height:1.45;background:rgba(255,255,255,.04);padding:8px 10px;border-radius:8px}
  .preview-card .pchips{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
  .preview-card .pchips span{font-size:10.5px;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);color:#dcddde}

  /* ===== Account screen ===== */
  /* Scroll vertical si le contenu déborde (à TOUTE taille) → toutes les options
     restent 100% accessibles. Centré quand ça rentre (via .acc-card margin:auto). */
  #screen-account{
    position:relative;z-index:2;flex:1 1 auto;flex-direction:column;
    align-items:center;justify-content:flex-start;padding:14px 24px;
    overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;min-height:0;
  }
  /* Desktop : no scroll anywhere. Mobile : allow internal scroll. */
  @media (min-width:761px){
    html, body{height:100vh;max-height:100vh;overflow:hidden !important}
    body[data-screen="onboarding"], body[data-screen="swipe"], body[data-screen="account"]{overflow:hidden !important}
  }
  @media (max-width:760px){
    /* Filet de sécurité : si le contenu (hero centré, carte de swipe + bulles, etc.)
       dépasse la hauteur réelle de l'écran (petit téléphone, barre d'adresse visible,
       zoom système…), on peut scroller pour tout voir au lieu que ce soit invisible
       et inatteignable (overflow:hidden couperait le haut ET le bas symétriquement
       avec justify-content:center, sans aucun moyen d'y accéder). */
    body[data-screen="landing"], body[data-screen="onboarding"], body[data-screen="swipe"], body[data-screen="account"]{overflow:auto !important}
  }
  .acc-card{
    position:relative;
    width:min(98vw,1280px);margin:auto;
    padding:12px 16px 14px;border-radius:22px;display:flex;flex-direction:column;min-height:auto;flex:0 0 auto;
    background:linear-gradient(180deg, rgba(28,22,58,.78), rgba(18,12,42,.78));
    border:1px solid var(--stroke-2);
    backdrop-filter:blur(22px) saturate(150%);
    -webkit-backdrop-filter:blur(22px) saturate(150%);
    box-shadow:0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
    color:#fff;
  }
  /* CRITICAL: hidden tabs really hidden */
  .acc-tab[hidden]{display:none !important}
  /* No-scroll: tabs fit on screen (overflow visible pour ne pas rogner le
     bouton "Mes bulles" ni son glow quand il s'agrandit au survol) */
  .acc-tab:not([hidden]){overflow:visible !important;padding-right:0 !important}
  /* ===== Desktop : AUCUN scroll de page — la carte tient dans le viewport,
     le contenu d'onglet scrolle en interne si vraiment nécessaire ===== */
  @media (min-width:761px){
    #screen-account{overflow:hidden !important;justify-content:center}
    .acc-card{max-height:calc(100vh - 24px);overflow:hidden}
    .acc-main{flex:1 1 auto;min-height:0;overflow:hidden}
    .acc-tab-body{min-height:0;overflow:hidden}
    .acc-tab:not([hidden]){overflow-y:auto !important;overflow-x:hidden !important;min-height:0}
    /* Grille déco Discord plus compacte → l'onglet Boost tient sans scroll de page */
    .dd-deco-grid{max-height:150px !important;grid-template-columns:repeat(auto-fill,minmax(66px,1fr)) !important}
  }
  .acc-section{padding:6px 0 !important;margin-top:2px !important}
  .acc-section h3{margin:0 0 6px !important;font-size:13.5px !important}
  .acc-field{margin-top:6px !important}
  .acc-field label{font-size:11.5px !important;margin-bottom:3px !important}
  .acc-input, .acc-select, .acc-field textarea{padding:7px 10px !important;font-size:12.5px !important}
  .acc-field textarea{min-height:96px !important;max-height:160px !important;resize:vertical !important}
  .acc-color-row{gap:5px !important;margin-top:3px !important}
  .acc-color-swatch{width:26px !important;height:26px !important}
  .acc-color-swatch[data-color="discord"]{height:26px !important;padding:3px 8px 3px 3px !important;font-size:10.5px !important}
  .acc-color-swatch[data-color="discord"] span{width:18px !important;height:18px !important}
  .acc-color-pick{width:26px !important;height:26px !important}
  .acc-btn{padding:7px 12px !important;font-size:12px !important}
  .acc-resync-btn{padding:6px 10px !important}
  .acc-orb-grid{overflow:visible}
  .gif-stage{min-height:90px !important;height:90px !important}
  .acc-actions{margin-top:8px !important}
  .acc-tabs{margin-bottom:8px !important}
  .boost-banner{padding:8px 12px !important;margin-bottom:0 !important}
  /* Inline boost banner inside acc-actions row */
  .acc-actions{display:flex;align-items:center;gap:12px}
  .boost-banner--inline{flex:1 1 auto;margin-bottom:0 !important;min-width:0}

  /* Profil tab: top row 2 columns (Pseudo/Bio | Comptes liés), then full-width below */
  .acc-tab--profil:not([hidden]){display:flex !important;flex-direction:column;gap:10px}
  .acc-profil-top{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;align-items:start;margin-bottom:6px}
  .acc-profil-col{display:flex;flex-direction:column;gap:8px;min-width:0}
  @media (max-width:780px){ .acc-profil-top{grid-template-columns:1fr} }

  /* ===== NOUVEAU layout profil — hero + grille 2 colonnes (desktop) sans scroll ===== */
  .acc-hero{
    display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:center;
    margin-bottom:12px;padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,.07);
  }
  .acc-hero-side{display:flex;flex-direction:column;gap:6px;min-width:0}
  .acc-hero-side--right{align-self:center}
  .acc-hero-avatar{display:flex;flex-direction:column;align-items:center;gap:4px;align-self:center}
  .acc-hero-avatar-circle{
    position:relative;width:96px;height:96px;border-radius:50%;cursor:pointer;
    background:linear-gradient(135deg,#5865F2 0%,#404EED 100%);
    display:grid;place-items:center;overflow:hidden;color:rgba(255,255,255,.85);
    box-shadow:0 8px 22px rgba(88,101,242,.45), 0 0 0 3px rgba(255,255,255,.08) inset;
    border:3px solid rgba(255,255,255,.12);
    transition:transform .18s ease, box-shadow .18s ease;
  }
  .acc-hero-avatar-circle:hover{transform:scale(1.05);box-shadow:0 14px 36px rgba(88,101,242,.6), 0 0 0 3px rgba(255,255,255,.15) inset}
  .acc-hero-avatar-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
  .acc-hero-avatar-circle[data-has-img="true"] .acc-hero-avatar-img{display:block}
  .acc-hero-avatar-circle[data-has-img="true"] .acc-hero-avatar-empty{display:none}
  .acc-hero-avatar-empty{display:grid;place-items:center;width:100%;height:100%}
  .acc-hero-avatar-edit{
    position:absolute;bottom:4px;right:4px;width:30px;height:30px;border-radius:50%;
    background:linear-gradient(135deg,#5865F2,#404EED);color:#fff;display:grid;place-items:center;
    border:2.5px solid #1c1d22;box-shadow:0 4px 10px rgba(0,0,0,.4);
    transition:transform .15s ease;
  }
  .acc-hero-avatar-circle:hover .acc-hero-avatar-edit{transform:scale(1.15)}
  .acc-hero-avatar-hint{font-size:11px;color:#b9bbbe;font-weight:500;letter-spacing:.02em}
  /* Champs compacts dans le hero */
  .acc-field--compact label{font-size:11.5px;color:#b9bbbe;margin-bottom:5px;display:block;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
  .acc-field--compact input,
  .acc-field--compact textarea{
    font-size:13.5px;padding:9px 11px;border-radius:10px;
  }
  .acc-field--compact textarea{min-height:46px !important;max-height:80px !important;line-height:1.4}
  /* Rangées (Mes bulles, Vocal, Comptes liés, Resync) */
  .acc-row{margin-bottom:0}
  .acc-row > h3{font-size:14px}
  .acc-row:last-child{margin-bottom:0}
  /* Layout grille : sur desktop, 2 colonnes pour les rangées sous le hero (pas de scroll) */
  @media (min-width:721px){
    .acc-tab--profil:not([hidden]){
      display:grid !important;
      grid-template-columns:1fr 1fr;
      gap:12px 18px;
      align-content:start;
    }
    .acc-tab--profil .acc-hero{grid-column:1 / -1}
    .acc-tab--profil .acc-row--resync{grid-column:1 / -1;margin-top:4px}
    /* Comptes liés peut être un peu plus grand → on lui donne sa colonne mais reste compact */
    .acc-tab--profil .acc-row--socials .acc-social{gap:6px}
    .acc-tab--profil .acc-row--voice{align-self:start}
  }
  /* Responsive : sur écran étroit, on empile (pseudo/bio EN-DESSOUS de l'avatar) */
  @media (max-width:720px){
    .acc-hero{grid-template-columns:1fr;gap:14px;text-align:center}
    .acc-hero-avatar{order:-1}
    .acc-hero-side{align-items:stretch;text-align:left}
    .acc-color-wheel-row{justify-content:center}
  }
  /* Anti-débordement : empêche le contenu de pousser hors de la carte
     (sinon le fond sombre .scene apparaît derrière, p.ex. à gauche du bouton "Mes bulles") */
  .acc-main{min-width:0}
  .acc-tab-body{min-width:0}
  .acc-tab{min-width:0}
  .acc-social-row{min-width:0}
  .acc-social-row input{min-width:0}
  .acc-bulles-cta{position:relative;z-index:1}

  /* Preview-mode swipe-card — scale down everything proportionally for the mini preview */
  .acc-preview-wrap .swipe-card.preview-mode .banner{height:90px !important;max-height:90px !important}
  .acc-preview-wrap .swipe-card.preview-mode .avatar-wrap{
    top:50px !important;left:14px !important;
    width:80px !important;height:80px !important;padding:5px !important;
  }
  .acc-preview-wrap .swipe-card.preview-mode .avatar-wrap .avi{font-size:30px !important}
  .acc-preview-wrap .swipe-card.preview-mode .avi-deco{inset:-8px !important;width:calc(100% + 16px) !important;height:calc(100% + 16px) !important}
  .acc-preview-wrap .swipe-card.preview-mode .body{padding:54px 14px 40px !important;gap:8px !important}
  .acc-preview-wrap .swipe-card.preview-mode .name{font-size:18px !important}
  .acc-preview-wrap .swipe-card.preview-mode .age{font-size:14px !important}
  .acc-preview-wrap .swipe-card.preview-mode .handle{font-size:11px !important}
  .acc-preview-wrap .swipe-card.preview-mode .joined{font-size:10px !important}
  .acc-preview-wrap .swipe-card.preview-mode .bio{font-size:11.5px !important;padding:7px 9px !important}
  .acc-preview-wrap .swipe-card.preview-mode .activity{padding:7px 9px !important}
  .acc-preview-wrap .swipe-card.preview-mode .activity .icon{width:28px !important;height:28px !important}
  .acc-preview-wrap .swipe-card.preview-mode .common{font-size:10.5px !important}
  .acc-preview-wrap .swipe-card.preview-mode .lookfor{width:36px !important;height:36px !important;font-size:18px !important;right:10px !important;bottom:10px !important}
  .acc-preview-wrap .swipe-card.preview-mode .me-chip{font-size:8.5px !important;padding:2px 6px !important}
  .acc-preview-wrap .swipe-card.preview-mode .status-dot{width:18px !important;height:18px !important;border-width:4px !important}
  /* Badge âge / drapeau / genre à l'échelle dans l'aperçu */
  .acc-preview-wrap .swipe-card.preview-mode .card-age-badge{top:72px !important;right:10px !important;padding:5px 10px !important;gap:5px !important}
  .acc-preview-wrap .swipe-card.preview-mode .card-age-badge .cab-age{font-size:16px !important}
  .acc-preview-wrap .swipe-card.preview-mode .card-age-badge .cab-flag{font-size:14px !important}
  .acc-preview-wrap .swipe-card.preview-mode .card-age-badge .cab-flag img{width:19px !important;height:14px !important}
  .acc-preview-wrap .swipe-card.preview-mode .card-age-badge .cab-gender{font-size:13px !important;width:19px !important;height:19px !important}

  /* 2-column Boost */
  .acc-tab[data-tab="boost"]:not([hidden]){display:grid !important;grid-template-columns:1fr 1fr;gap:8px 18px;align-content:start;height:100%}
  .acc-tab[data-tab="boost"]:not([hidden]) > h3{grid-column:1 / -1;margin-bottom:0 !important}
  @media (max-width:780px){ .acc-tab[data-tab="boost"]:not([hidden]){grid-template-columns:1fr} }
  /* 2-column main area: identity left, tab content right */
  .acc-main{
    flex:0 0 auto;min-height:auto;display:grid;
    grid-template-columns:280px 1fr;gap:18px;
  }
  /* Écran compte = page PARAMÈTRES uniquement (la personnalisation de profil est dans l'éditeur) */
  #accTabs{display:none !important}
  body[data-screen="account"] .acc-identity{display:none !important}
  .acc-main{grid-template-columns:1fr !important}
  .acc-identity{
    display:flex;flex-direction:column;gap:14px;
    padding:18px;border-radius:18px;
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.06);
    overflow:visible;min-height:auto;
  }
  .acc-identity .acc-avatar-wrap{
    display:flex;flex-direction:column;align-items:center;gap:10px;
  }
  .acc-identity .acc-avatar{
    width:140px;height:140px;border-radius:50%;display:grid;place-items:center;
    font-family:"Clash Display",sans-serif;font-weight:800;font-size:54px;color:#fff;
    box-shadow:0 0 0 3px rgba(255,255,255,.12) inset, 0 14px 40px rgba(145,70,255,.45);
    overflow:hidden;flex:0 0 auto;cursor:pointer;
    transition:transform .2s ease;position:relative;
  }
  .acc-identity .acc-avatar:hover{transform:scale(1.04)}
  .acc-identity .acc-avatar::after{
    content:"📷 Changer";position:absolute;inset:auto 0 0 0;
    background:linear-gradient(180deg, transparent, rgba(0,0,0,.7));
    color:#fff;font-size:11px;font-weight:700;padding:18px 6px 8px;
    text-align:center;opacity:0;transition:opacity .2s ease;
  }
  .acc-identity .acc-avatar:hover::after{opacity:1}
  .acc-identity .acc-name{
    font-family:"Clash Display",sans-serif;font-weight:700;font-size:20px;text-align:center;margin:0;
  }
  .acc-identity .acc-handle{color:var(--ink-dim);font-size:13px;text-align:center;margin:0}
  .acc-tab-body{flex:0 0 auto;min-height:auto;display:flex;flex-direction:column;overflow:visible}
  .acc-tab{overflow:visible;padding-right:0}
  @media (max-width:900px){
    .acc-main{grid-template-columns:1fr;gap:14px}
    .acc-identity{order:0}
    .acc-identity .acc-avatar{width:96px;height:96px;font-size:38px}
  }
  /* Legacy avatar override - used in some non-account contexts */
  .acc-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
  .acc-name{font-family:"Clash Display",sans-serif;font-weight:700;font-size:24px;letter-spacing:-.01em;margin:0}
  .acc-handle{color:var(--ink-dim);font-size:14px;margin:2px 0 0}
  .acc-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
  /* Respecte l'attribut [hidden] (sinon display:flex ci-dessus l'écrase → champs Banniere/Deco toujours visibles) */
  .acc-field[hidden]{display:none !important}

  /* ===== Panneau Fake Nitro ===== */
  .fn-panel{
    grid-column:1 / -1;
    border-radius:16px;padding:14px 16px;margin-bottom:14px;
    background:linear-gradient(160deg, rgba(145,70,255,.14), rgba(255,79,160,.07));
    border:1px solid rgba(145,70,255,.32);
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }
  .fn-panel.is-on{
    border-color:rgba(255,79,160,.55);
    background:linear-gradient(160deg, rgba(145,70,255,.2), rgba(255,79,160,.12));
    box-shadow:0 0 0 1px rgba(255,79,160,.25), 0 12px 34px rgba(145,70,255,.28);
  }
  .fn-head{display:flex;align-items:center;gap:12px}
  .fn-ico{
    flex:0 0 auto;width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:#fff;
    background:linear-gradient(135deg,#9146FF,#FF4FA0);box-shadow:0 6px 16px rgba(145,70,255,.55);
  }
  .fn-panel.is-on .fn-ico{animation:fnPulse 1.6s ease-in-out infinite}
  @keyframes fnPulse{0%,100%{box-shadow:0 6px 16px rgba(145,70,255,.55)}50%{box-shadow:0 8px 26px rgba(255,79,160,.8)}}
  .fn-head-txt{flex:1;min-width:0}
  .fn-head-txt b{display:block;font-size:15px;font-weight:800;font-family:"Clash Display",sans-serif}
  .fn-head-txt small{display:block;color:#b9bbbe;font-size:11.5px;margin-top:2px;line-height:1.3}
  .fn-toggle{flex:0 0 auto;margin:0 !important}
  .fn-hint{margin-top:10px;font-size:12px;color:#c9b6ff;background:rgba(145,70,255,.12);border:1px dashed rgba(145,70,255,.35);border-radius:10px;padding:8px 11px}
  .fn-panel.is-on .fn-hint{display:none}
  .fn-body{margin-top:12px;display:flex;flex-direction:column;gap:14px}
  .fn-panel:not(.is-on) .fn-body{display:none}
  .fn-body .acc-field{margin:0 !important}
  .acc-field label{font-size:12.5px;font-weight:600;color:var(--ink-dim);letter-spacing:.02em}
  .acc-field .val{
    padding:12px 14px;border-radius:11px;
    background:rgba(255,255,255,.04);border:1px solid var(--stroke-2);
    color:#fff;font-size:14.5px;
  }
  .acc-field textarea{
    width:100%;box-sizing:border-box;min-height:96px;resize:vertical;
    padding:12px 14px;border-radius:11px;outline:none;
    background:rgba(255,255,255,.04);border:1.5px solid var(--stroke-2);
    color:#fff;font-family:inherit;font-size:14.5px;line-height:1.45;
    transition:.18s ease;
  }
  .acc-field textarea:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.18)}
  .acc-actions{display:flex;gap:10px;margin-top:18px;flex-wrap:wrap}
  .acc-btn{
    padding:11px 18px;border-radius:12px;border:none;cursor:pointer;
    font-family:inherit;font-weight:700;font-size:14px;
    transition:.16s ease;
  }
  .acc-btn--primary{background:linear-gradient(180deg,#A65BFF 0%, #6B2BFF 100%);color:#fff;box-shadow:0 6px 18px rgba(107,43,255,.45)}
  .acc-btn--primary:hover{transform:translateY(-1px)}
  .acc-btn--ghost{background:rgba(255,255,255,.05);color:#fff;border:1px solid var(--stroke-2)}
  .acc-btn--ghost:hover{background:rgba(255,255,255,.10)}
  .acc-btn--discord{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;
    padding:11px 14px;border-radius:12px;border:1px solid rgba(88,101,242,.45);
    background:rgba(88,101,242,.15);color:#fff;text-decoration:none;transition:.16s ease;flex:0 0 auto;
  }
  .acc-btn--discord:hover{background:rgba(88,101,242,.30);border-color:rgba(88,101,242,.75)}
  .acc-btn--danger{background:rgba(255,79,160,.12);color:#FF7EB6;border:1px solid rgba(255,79,160,.35);margin-left:auto}
  .acc-btn--danger:hover{background:rgba(255,79,160,.22)}
  .acc-msg{margin-top:12px;padding:10px 12px;border-radius:10px;font-size:13px;display:none;background:rgba(59,209,124,.12);border:1px solid rgba(59,209,124,.35);color:#9CF0BD}
  .acc-msg[data-show="true"]{display:block;animation:authViewIn .22s ease-out}

  /* Save button — sits inline next to "← Retour" on the right side of the actions row */
  .acc-save-bar{
    margin-left:auto;display:flex;align-items:center;
    transform:translateY(6px);opacity:0;pointer-events:none;
    transition:transform .22s cubic-bezier(.2,.7,.3,1), opacity .18s ease;
  }
  .acc-save-bar[data-show="true"]{transform:translateY(0);opacity:1;pointer-events:auto}
  .acc-save-bar .acc-btn--primary{
    padding:10px 16px !important;font-size:13px !important;
    border-radius:12px !important;
    box-shadow:0 10px 28px rgba(107,43,255,.5), 0 0 0 1px rgba(255,255,255,.08) inset;
  }

  /* Boost banner OUTSIDE the acc-card */
  .boost-banner--outside{
    width:min(98vw,1280px);margin:12px auto 0;display:flex !important;
    box-shadow:0 12px 36px rgba(0,0,0,.55);
  }
  /* Bannière de pub Boost retirée à la demande */
  #boostBanner{display:none !important}
  .acc-save-bar .acc-save-msg{
    font-size:13px;font-weight:600;color:#fff;margin-right:6px;white-space:nowrap;
  }
  .acc-save-bar .acc-btn{padding:9px 14px;font-size:13px}

  /* Floating Discord FAB — bottom-right of viewport, account screen only */
  .acc-discord-fab{
    position:fixed;right:22px;bottom:22px;
    width:52px;height:52px;border-radius:50%;
    display:none;align-items:center;justify-content:center;
    background:#5865F2;
    border:1px solid rgba(255,255,255,.18);
    color:#fff;text-decoration:none;
    box-shadow:0 8px 22px rgba(88,101,242,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
    transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
    z-index:90;
  }
  body[data-screen="account"] .acc-discord-fab{display:flex}
  .acc-discord-fab svg{width:28px;height:auto;display:block}

  /* Bouton Retour = FAB rond en bas à GAUCHE, symétrique au bouton Discord (bas droite) */
  .acc-back-fab{
    display:none;position:fixed;left:22px;bottom:22px;
    width:52px;height:52px;border-radius:50%;padding:0;
    align-items:center;justify-content:center;cursor:pointer;
    background:#2f3136;color:#fff;border:1px solid rgba(255,255,255,.18);
    box-shadow:0 8px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
    transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
    z-index:90;
  }
  body[data-screen="account"] .acc-back-fab{display:flex}
  .acc-back-fab svg{display:block}
  .acc-back-fab:hover{
    background:#3a3d44;
    transform:translateY(-2px) scale(1.05);
    box-shadow:0 12px 30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12) inset;
  }
  .acc-discord-fab:hover{
    background:#6b75f5;
    transform:translateY(-2px) scale(1.05);
    box-shadow:0 12px 30px rgba(88,101,242,.65), 0 0 0 1px rgba(255,255,255,.12) inset;
  }

  /* Voice memo — compact dark block in the Profil right column */
  .acc-voice{display:flex;flex-direction:column;gap:6px;margin-top:10px}
  .acc-voice-lbl{font-size:11.5px;font-weight:700;color:#dcddde}
  /* Record button */
  .acc-voice-record{
    display:flex;align-items:center;justify-content:flex-start;gap:10px;
    padding:10px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.08);
    background:rgba(255,255,255,.03);cursor:pointer;color:#fff;
    font-family:inherit;font-weight:600;font-size:13px;
    transition:.15s ease;
  }
  .acc-voice-record:hover{background:rgba(145,70,255,.12);border-color:rgba(145,70,255,.40)}
  .acc-voice-record .acc-voice-ico{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:linear-gradient(180deg,#9146FF,#6B2BFF);color:#fff;flex:0 0 auto}
  .acc-voice-record .ico-stop{display:none}
  .acc-voice-record[data-state="recording"]{border-color:rgba(255,79,160,.55);background:rgba(255,79,160,.10)}
  .acc-voice-record[data-state="recording"] .acc-voice-ico{background:linear-gradient(180deg,#FF4FA0,#C92866);animation:voiceRecPulse 1.2s ease-in-out infinite}
  .acc-voice-record[data-state="recording"] .ico-mic{display:none}
  .acc-voice-record[data-state="recording"] .ico-stop{display:block}
  .acc-voice-record .acc-voice-timer{margin-left:auto;font-size:11px;font-weight:800;color:#FF7EB6;letter-spacing:.04em}
  @keyframes voiceRecPulse{
    0%,100%{box-shadow:0 0 0 0 rgba(255,79,160,.5)}
    50%    {box-shadow:0 0 0 8px rgba(255,79,160,0)}
  }
  /* Player (listen + delete) */
  .acc-voice-player{
    display:flex;align-items:center;gap:10px;
    padding:8px 10px 8px 8px;border-radius:12px;
    background:rgba(20,21,26,.85);border:1px solid rgba(255,255,255,.06);
  }
  .acc-voice-play{
    width:34px;height:34px;border-radius:50%;border:none;cursor:pointer;
    display:grid;place-items:center;color:#fff;flex:0 0 auto;
    background:linear-gradient(180deg,#9146FF,#6B2BFF);
    box-shadow:0 4px 12px rgba(107,43,255,.4);
  }
  .acc-voice-play:hover{transform:scale(1.05)}
  .acc-voice-play .ico-pause{display:none}
  .acc-voice-play[data-playing="true"] .ico-play{display:none}
  .acc-voice-play[data-playing="true"] .ico-pause{display:block}
  .acc-voice-track{
    flex:1;height:6px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden;
  }
  .acc-voice-track-bar{
    display:block;height:100%;width:0%;
    background:linear-gradient(90deg,#9146FF,#FF7EB6);
    transition:width .1s linear;
  }
  .acc-voice-time{font-size:11px;font-weight:700;color:#b9bbbe;min-width:30px;text-align:right}
  .acc-voice-del{
    width:28px;height:28px;border-radius:8px;border:none;cursor:pointer;
    display:grid;place-items:center;flex:0 0 auto;
    background:rgba(255,79,160,.12);color:#FF7EB6;border:1px solid rgba(255,79,160,.30);
    transition:.15s ease;
  }
  .acc-voice-del:hover{background:rgba(255,79,160,.22)}

  /* ===== GIF placement stage (account) ===== */
  .gif-stage{
    position:relative;width:100%;aspect-ratio:920/740;border-radius:16px;
    background:rgba(255,255,255,.03);border:1.5px dashed rgba(255,255,255,.12);
    margin-top:10px;overflow:hidden;
  }
  .gif-stage-card{
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    width:36%;aspect-ratio:300/420;border-radius:14px;
    background:linear-gradient(180deg,rgba(145,70,255,.18),rgba(255,126,182,.10));
    border:1px solid rgba(255,255,255,.10);display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:4px;pointer-events:none;
  }
  .gif-stage-card span{font-size:28px}
  .gif-stage-card small{color:#b9bbbe;font-size:10.5px}
  .gif-item{
    position:absolute;width:64px;height:64px;border-radius:10px;overflow:hidden;
    cursor:grab;user-select:none;box-shadow:0 6px 18px rgba(0,0,0,.5);
    border:2px solid rgba(255,255,255,.20);touch-action:none;z-index:3;
  }
  .gif-item:active{cursor:grabbing}
  .gif-item img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
  .gif-item .gif-del{
    position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;
    background:#2f3136;color:#fff;border:1.5px solid rgba(255,255,255,.2);
    font-size:11px;cursor:pointer;display:grid;place-items:center;padding:0;z-index:5;
  }
  .gif-item .gif-del:hover{background:#ff4f80;border-color:#ff4f80}

  /* ===== GIFs en arrière-plan (derrière les bulles ET la carte) =====
     Layer fixe dans body → z-index dans le root context :
       1 = GIFs (arrière)   /   .swipe-stage .orbit z:5 = bulles (milieu)   /   main z:6 = carte (devant) */
  .swipe-gifs-bg{position:fixed;inset:0;pointer-events:none;z-index:1;overflow:visible}
  /* content-box + border sur l'outer : la zone image = visW×visH (comme l'éditeur),
     le contour 2px est hors du cadre — sinon border-box mange 4px du crop. */
  .swipe-gifs-bg .swipe-gif{
    position:fixed;border-radius:12px;overflow:hidden;
    box-sizing:content-box;
    box-shadow:0 10px 28px rgba(0,0,0,.5);
    border:2px solid rgba(255,255,255,.20);
    transform-origin:center center;
  }
  .swipe-gifs-bg .swipe-gif-inner{position:relative;width:100%;height:100%;overflow:hidden;line-height:0;box-sizing:border-box}
  .swipe-gifs-bg .swipe-gif-inner img,.swipe-gifs-bg .swipe-gif-inner video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:center center;box-sizing:border-box}
  /* Contour désactivable sur les PHOTOS perso (pas les GIFs) — cf. renderSwipePhotos.
     Retire aussi l'ombre portée : sans ça le rectangle d'ombre trahit encore "une
     image collée" même sans bordure visible. */
  .swipe-gifs-bg.no-contour .swipe-gif,.swipe-gifs-bg .swipe-gif.no-contour{border:none;box-shadow:none}

  /* ===== GIF edit overlay (preview carte plein écran, comme l'éditeur de bulles) ===== */
  .gef{position:fixed;inset:0;z-index:332;display:none;align-items:center;justify-content:center}
  .gef[data-show="true"]{display:flex;animation:fadeInOverlay .25s ease-out}
  .gef-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
  .gef-close{position:fixed;top:18px;right:18px;z-index:4;width:44px;height:44px;border-radius:10px;border:1px solid var(--mf-modal-border);cursor:pointer;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.05);box-shadow:var(--mf-modal-shadow);font-family:inherit;font-size:15px;transition:transform .15s ease,background .15s ease}
  .gef-close:hover{transform:scale(1.04);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.14)}
  .gef-stage{position:relative;z-index:1;width:100vw;height:100vh;display:grid;place-items:center}
  .gef-card-wrap{position:relative;width:min(96vw,449px);height:min(86vh,663px);border-radius:20px;overflow:visible;box-shadow:0 30px 80px rgba(0,0,0,.7);animation:likerPop .35s cubic-bezier(.2,.7,.3,1.1)}
  .gef-card-wrap .swipe-card{position:absolute !important;inset:0 !important;transform:none !important;cursor:default !important;border-radius:20px}
  .gef-card-wrap .swipe-card .badge-stamp{display:none !important}
  /* Couche d'édition par-dessus la carte (handles visibles → overflow visible) */
  /* Layer d'édition GIF — coïncide avec la carte. Les GIFs débordent visuellement
     car overflow:visible et la card-wrap aussi. Les coords sont en % de la carte. */
  .gef-gif-layer{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:visible}
  .gef-gif-layer > *{pointer-events:auto}
  .gef-gif{position:absolute;touch-action:none;cursor:grab;will-change:transform}
  .gef-gif.dragging{cursor:grabbing}
  .gef-gif-inner{width:100%;border-radius:12px;overflow:hidden;border:2px solid rgba(255,255,255,.7);box-shadow:0 10px 28px rgba(0,0,0,.55),0 0 0 2px rgba(88,101,242,.35)}
  .gef-gif-inner img{width:100%;height:auto;display:block;pointer-events:none}
  .gef-handle{position:absolute;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.5);z-index:6}
  .gef-handle svg{width:15px;height:15px;display:block;pointer-events:none}
  .gef-del{top:-14px;left:-14px;background:#2f3136;color:#fff;cursor:pointer}
  .gef-del:hover{background:#ff4f80}
  .gef-rotate{top:-14px;right:-14px;background:#5865F2;color:#fff;cursor:grab;touch-action:none}
  .gef-resize{bottom:-14px;right:-14px;background:#3BD17C;color:#0c2a18;cursor:nwse-resize;touch-action:none}
  /* Barre de recherche en bas de l'overlay */
  .gef-add{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:4;width:min(94vw,440px);background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);border-radius:var(--mf-modal-radius);padding:10px;box-shadow:var(--mf-modal-shadow)}
  .gef-add input{width:100%;box-sizing:border-box;padding:11px 14px;border-radius:11px;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.14);color:#fff;font-family:inherit;font-size:14px;outline:none}
  .gef-add input:focus{border-color:rgba(88,101,242,.6);box-shadow:0 0 0 4px rgba(88,101,242,.18)}
  .gef-sugg{display:none;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px;max-height:34vh;overflow-y:auto}
  .gef-sugg.open{display:grid}
  .gef-sugg .gef-sg-item{cursor:pointer;border-radius:9px;overflow:hidden;aspect-ratio:1;background:#000;border:1px solid rgba(255,255,255,.08)}
  .gef-sugg .gef-sg-item img{width:100%;height:100%;object-fit:cover;display:block}
  .gef-hint{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:4;color:#dcddde;font-size:12.5px;background:var(--mf-modal-bg);padding:7px 14px;border-radius:999px;border:1px solid var(--mf-modal-border);box-shadow:var(--mf-modal-shadow)}

  /* ===== Toggle switch ===== */
  .toggle{display:inline-flex;align-items:center;cursor:pointer;user-select:none}
  .toggle input{display:none}
  .toggle-track{
    width:44px;height:24px;border-radius:999px;background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.14);position:relative;transition:.18s ease;
  }
  .toggle-thumb{
    position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
    background:#fff;transition:.2s ease;box-shadow:0 2px 6px rgba(0,0,0,.4);
  }
  .toggle input:checked + .toggle-track{background:linear-gradient(90deg,#A65BFF,#6B2BFF);border-color:rgba(145,70,255,.6)}
  .toggle input:checked + .toggle-track .toggle-thumb{transform:translateX(20px)}

  /* ===== Swipe-music chip (boost) ===== */
  .swipe-music-current{
    display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:11px;
    background:rgba(29,185,84,.10);border:1px solid rgba(29,185,84,.35);margin-bottom:10px;
  }
  .swipe-music-current img{width:36px;height:36px;border-radius:6px;flex:0 0 auto}
  .swipe-music-current .smc-info{flex:1;min-width:0;line-height:1.25}
  .swipe-music-current .smc-info b{display:block;font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .swipe-music-current .smc-info small{color:#9CF0BD;font-size:11px}
  .swipe-music-current button{background:rgba(255,79,160,.18);color:#FF7EB6;border:1px solid rgba(255,79,160,.4);border-radius:8px;padding:6px 10px;font-size:11.5px;cursor:pointer;flex:0 0 auto}

  /* ===== Floating swipe music player ===== */
  .swipe-music{
    position:fixed;bottom:88px;left:18px;z-index:90;display:flex;align-items:center;gap:10px;
    padding:8px 12px 8px 8px;border-radius:999px;background:rgba(28,29,34,.94);
    border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 28px rgba(0,0,0,.5);
    transform:translateY(140%);transition:transform .25s ease,opacity .2s;opacity:0;pointer-events:none;
  }
  .swipe-music[data-show="true"]{transform:none;opacity:1;pointer-events:auto}
  /* Quand la conversation est ouverte, la pastille musique passe DERRIÈRE le panneau (z < 60). */
  body:has(.msg-panel[data-open="true"]) .swipe-music{z-index:40}
  body[data-screen="swipe"] .swipe-music[data-show="true"]{display:flex}
  body:not([data-screen="swipe"]) .swipe-music{display:none}
  .sm-cover{width:36px;height:36px;border-radius:50%;background-size:cover;background-position:center;background-color:#1DB954;animation:sm-spin 8s linear infinite;flex:0 0 auto}
  .sm-cover.is-paused{animation-play-state:paused}
  @keyframes sm-spin{to{transform:rotate(360deg)}}
  .sm-info{line-height:1.2;max-width:140px;min-width:0}
  .sm-info b{display:block;font-size:12.5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sm-info small{font-size:10.5px;color:#b9bbbe;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .sm-btn{width:32px;height:32px;border-radius:50%;border:none;background:linear-gradient(180deg,#1DB954,#15803d);color:#fff;cursor:pointer;display:grid;place-items:center;flex:0 0 auto}


  /* ===== Liked-me panel ===== */
  .liked-panel{
    position:fixed;top:0;right:0;height:100vh;width:min(92vw,360px);z-index:200;
    background:var(--mf-modal-bg);border-left:1px solid var(--mf-modal-border);
    box-shadow:var(--mf-modal-shadow);
    transform:translateX(100%);transition:.25s ease;display:flex;flex-direction:column;
  }
  .liked-panel[data-open="true"]{transform:none}
  .liked-list{flex:1;overflow:auto;padding:6px}
  .lb-tabs{display:flex;gap:6px;padding:0 14px 10px;border-bottom:1px solid rgba(255,255,255,.06)}
  .lb-tab{flex:1;padding:8px 10px;border-radius:10px 10px 0 0;border:none;background:transparent;color:#b9bbbe;font-family:inherit;font-weight:700;font-size:12.5px;cursor:pointer;transition:.12s}
  .lb-tab:hover{color:#fff}
  .lb-tab.is-active{color:#fff;background:rgba(255,255,255,.06)}
  .lb-rank{width:22px;flex:0 0 auto;text-align:center;font-family:"Clash Display",sans-serif;font-weight:800;font-size:13px;color:#72767d}
  .lb-item:nth-child(1) .lb-rank{color:#FFD83D}
  .lb-item:nth-child(2) .lb-rank{color:#C7CDD6}
  .lb-item:nth-child(3) .lb-rank{color:#D8935B}
  .lb-score{flex:0 0 auto;font-size:12.5px;font-weight:700;color:#dcddde;display:flex;align-items:center;gap:4px}
  .liked-empty{padding:32px 22px;text-align:center;color:#dcddde}
  .liked-paywall{display:flex;flex-direction:column;align-items:center;gap:14px;padding:18px 22px 22px;text-align:center;border-top:1px solid rgba(255,255,255,.06);margin-top:14px}
  .liked-paywall .lp-text{font-size:14px;color:#dcddde;line-height:1.4;margin:0}
  .liked-paywall .lp-text b{color:#FFD83D;font-weight:800}
  .liked-paywall .lp-cta{width:100%;max-width:240px}
  .liked-empty{padding:32px 22px;text-align:center;color:#dcddde}
  .liked-empty p{margin:6px 0;font-size:14px;line-height:1.4}
  .liked-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;cursor:pointer;transition:.12s}
  .liked-item:hover{background:rgba(255,255,255,.05)}
  .liked-item .lavi{width:44px;height:44px;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-family:"Clash Display",sans-serif;font-weight:800;font-size:18px;color:#fff;flex:0 0 auto}
  .liked-item .lavi img{width:100%;height:100%;object-fit:cover;display:block}
  .liked-item .li-info{flex:1;min-width:0}
  .liked-item .li-info b{display:block;font-size:14px;color:#fff}
  .liked-item .li-info small{font-size:11.5px;color:#b9bbbe}
  .liked-item .li-blur{filter:blur(6px);transition:.2s;user-select:none}
  /* Locked (non-boost) : reveal slightly on hover for visual feedback only */
  .liked-item--locked:hover .li-blur{filter:blur(3px)}
  .liked-item--clickable{cursor:pointer}
  .liked-item--clickable:hover{background:rgba(255,79,160,.10)}
  .liked-item .li-action{
    width:32px;height:32px;border-radius:50%;border:none;cursor:pointer;
    display:grid;place-items:center;flex:0 0 auto;
    transition:.15s ease;
  }
  .liked-item .li-act-heart{
    margin-left:auto;color:#FF7EB6;
    background:rgba(255,79,160,.14);border:1px solid rgba(255,79,160,.35);
  }
  .liked-item .li-act-heart:hover{background:rgba(255,79,160,.32);transform:scale(1.10)}
  .liked-item .li-act-x{
    color:#fff;background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.20);
  }
  .liked-item .li-act-x:hover{background:rgba(255,255,255,.16);transform:scale(1.10)}

  /* ===== Boost banner (account) ===== */
  .boost-banner{
    width:100%;display:flex;align-items:center;gap:14px;
    padding:14px 16px;border-radius:16px;border:1.5px solid rgba(255,193,84,.4);
    background:linear-gradient(120deg,rgba(255,193,84,.10),rgba(145,70,255,.18));
    color:#fff;font-family:inherit;cursor:pointer;margin-bottom:14px;
    position:relative;overflow:hidden;transition:.16s ease;text-align:left;
  }
  .boost-banner:hover{transform:translateY(-1px);border-color:rgba(255,193,84,.7)}
  .boost-banner.is-active{border-color:rgba(59,209,124,.55);background:linear-gradient(120deg,rgba(59,209,124,.10),rgba(145,70,255,.18))}
  .bb-glow{position:absolute;inset:0;background:radial-gradient(circle at 18% 50%,rgba(255,193,84,.30),transparent 55%);pointer-events:none}
  .bb-emoji{font-size:24px;flex:0 0 auto;filter:drop-shadow(0 2px 8px rgba(255,193,84,.6))}
  .bb-text{flex:1;min-width:0;line-height:1.3}
  .bb-text b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:15px;display:block}
  .bb-text small{color:#dcddde;font-size:11.5px;display:block;margin-top:2px}
  .bb-cta{
    padding:7px 14px;border-radius:999px;background:linear-gradient(180deg,#FFD080,#FFB347);
    color:#3d1e00;font-weight:800;font-size:12px;letter-spacing:.04em;flex:0 0 auto;text-transform:uppercase;
  }
  .boost-banner.is-active .bb-cta{background:rgba(59,209,124,.18);color:#9CF0BD;border:1px solid rgba(59,209,124,.4)}

  /* ===== Boost modal ===== */
  .boost-modal{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:18px}

  /* ===== Orb edit overlay (fullscreen profile preview + floating "+" bubble) ===== */
  .oeo{position:fixed;inset:0;z-index:330;display:none;align-items:center;justify-content:center}
  .oeo[data-show="true"]{display:flex;animation:fadeInOverlay .25s ease-out}
  .oeo-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
  .oeo-close{
    position:fixed;top:18px;right:18px;z-index:3;width:44px;height:44px;border-radius:10px;border:1px solid var(--mf-modal-border);cursor:pointer;
    display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.05);
    box-shadow:var(--mf-modal-shadow);
    transition:transform .15s ease, background .15s ease;
  }
  .oeo-close:hover{transform:scale(1.04);background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.14)}
  .oeo-stage{
    position:relative;z-index:1;width:100vw;height:100vh;
    display:grid;place-items:center;
  }
  .oeo-card-wrap{
    position:relative;width:min(96vw,449px);height:min(86vh,663px);
    border-radius:20px;overflow:hidden;
    box-shadow:0 30px 80px rgba(0,0,0,.7);
    animation:likerPop .35s cubic-bezier(.2,.7,.3,1.1);
  }
  .oeo-card-wrap .swipe-card{position:absolute !important;inset:0 !important;transform:none !important;cursor:default !important}
  .oeo-card-wrap .swipe-card .badge-stamp{display:none !important}

  /* Mini orb tiles (existing bubbles) + "+" FAB — MÊME taille que les bulles de swipe (115px) */
  .oeo-orb,
  .oeo-add-fab{
    position:absolute;width:115px;height:115px;border-radius:50%;
    display:grid;place-items:center;color:#fff;
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease, top .3s cubic-bezier(.2,.7,.3,1), left .3s cubic-bezier(.2,.7,.3,1);
    animation:oeoFloat 4.2s ease-in-out infinite;
  }
  .oeo-orb svg, .oeo-add-fab svg{width:42px;height:42px}
  .oeo-orb{
    cursor:grab;
    border:2px solid rgba(255,255,255,.25);
    background:#1c1d22;
    box-shadow:0 12px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06) inset;
    overflow:visible;
    touch-action:none;
    user-select:none;-webkit-user-select:none;
  }
  .oeo-orb:active{cursor:grabbing}
  .oeo-orb--dragging{
    cursor:grabbing !important;
    transform:scale(1.10);
    box-shadow:0 20px 50px rgba(0,0,0,.8), 0 0 0 2px rgba(255,255,255,.25) inset !important;
    transition:none !important;
  }
  /* Clip the cover image with clip-path so the round shape stays clean
     without clipping the overflowing × / + / rank-orbit children. */
  .oeo-orb img{
    width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%;
    clip-path:circle(50%);-webkit-clip-path:circle(50%);
  }
  .oeo-orb[data-kind="anime"] img,
  .oeo-orb[data-kind="film"] img{object-position:center 20%}
  .oeo-orb .oeo-orb-ico{font-size:30px}
  .oeo-orb[data-kind="music"]{border-color:rgba(80,255,150,.85);box-shadow:0 12px 30px rgba(29,185,84,.45)}
  .oeo-orb[data-kind="music"] img{animation:orbVinylSpin 6s linear infinite}
  html.perf-lite .oeo-orb[data-kind="music"] img{animation:none}
  /* Pas de spin pendant le drag : suit le geste, ne tourne pas dans le vide. */
  .oeo-orb--dragging[data-kind="music"] img{animation-play-state:paused}
  .oeo-orb[data-kind="game"]{border-color:rgba(141,203,255,.85);box-shadow:0 12px 30px rgba(47,123,216,.45)}
  .oeo-orb[data-kind="film"]{border-color:rgba(199,165,255,.85);box-shadow:0 12px 30px rgba(139,92,246,.45)}
  .oeo-orb:hover{transform:scale(1.08);box-shadow:0 16px 40px rgba(0,0,0,.7)}
  .oeo-orb .oeo-orb-del{
    position:absolute;top:-2px;right:-2px;width:20px;height:20px;border-radius:50%;
    border:1.5px solid #0d0b1e;
    background:linear-gradient(135deg,#FF4FA0,#C92866);
    color:#fff;font-size:12px;font-weight:800;line-height:1;
    cursor:pointer;padding:0;
    display:grid;place-items:center;z-index:6;
    box-shadow:0 3px 9px rgba(255,79,160,.55), 0 0 0 1px rgba(255,255,255,.18) inset;
    opacity:.85;transition:transform .15s ease, opacity .15s ease, box-shadow .15s ease;
  }
  .oeo-orb .oeo-orb-del:hover{
    opacity:1;transform:scale(1.18);
    box-shadow:0 6px 16px rgba(255,79,160,.85), 0 0 0 1px rgba(255,255,255,.30) inset;
  }
  .oeo-orb .oeo-orb-del svg{display:block;width:10px;height:10px}
  .oeo-add-fab{
    border:2px dashed rgba(145,70,255,.7);
    background:rgba(145,70,255,.14);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    cursor:pointer;
    box-shadow:0 12px 30px rgba(145,70,255,.40), 0 0 0 1px rgba(255,255,255,.05) inset;
  }
  .oeo-add-fab:hover{
    transform:scale(1.10);
    background:rgba(145,70,255,.30);
    box-shadow:0 16px 40px rgba(145,70,255,.65), 0 0 0 1px rgba(255,255,255,.15) inset;
  }
  .oeo-plus{font-size:38px;line-height:1;font-weight:300;font-family:"Clash Display",sans-serif;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.45)}
  @keyframes oeoFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
  .oeo-orb-rank{
    position:absolute;bottom:-4px;left:50%;transform:translateX(-50%);
    padding:0 8px;height:20px;border-radius:11px;
    background:linear-gradient(135deg,#FFD83D,#FF9A3D);color:#1c1d22;
    font-size:9.5px;font-weight:800;line-height:20px;text-align:center;
    border:2px solid #0d0b1e;text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;
  }
  /* Mini "+" button next to a game orb — opens the rank/clip modal */
  .oeo-orb .oeo-orb-meta{
    position:absolute;bottom:-4px;left:-6px;
    width:26px;height:26px;border-radius:50%;
    border:2px solid #0d0b1e;
    background:linear-gradient(135deg,#9146FF,#6B2BFF);
    color:#fff;font-size:18px;font-weight:300;line-height:1;
    cursor:pointer;padding:0;
    display:grid;place-items:center;z-index:5;
    box-shadow:0 6px 14px rgba(145,70,255,.55), 0 0 0 1px rgba(255,255,255,.15) inset;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .oeo-orb .oeo-orb-meta:hover{
    transform:scale(1.18);
    box-shadow:0 10px 22px rgba(145,70,255,.85), 0 0 0 1px rgba(255,255,255,.30) inset;
  }
  /* Round rank mini-bubble orbiting around a game orb in the edit overlay */
  .oeo-orb-rank-orbit{
    position:absolute;inset:-18px;border-radius:50%;
    pointer-events:none;z-index:5;
    animation:oeoRankOrbit 9s linear infinite;
  }
  .oeo-orb-rank-orbit .oeo-orb-rank-ball{
    position:absolute;top:-10px;left:50%;transform:translateX(-50%);
    width:32px;height:32px;border-radius:50%;
    background:transparent;
    border:2px solid var(--rc1);
    display:grid;place-items:center;
    box-shadow:0 0 12px var(--rc1), 0 5px 12px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.18) inset;
    animation:oeoRankCounter 9s linear infinite;
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  }
  .oeo-orb-rank-orbit .oeo-orb-rank-ico{font-size:16px;line-height:1;filter:drop-shadow(0 1px 3px rgba(0,0,0,.85)) drop-shadow(0 0 5px var(--rc1, #fff))}
  .oeo-orb-rank-orbit .oeo-orb-rank-ball--img{
    background:transparent;border:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
    width:38px;height:38px;
  }
  .oeo-orb-rank-orbit .oeo-orb-rank-img{
    width:100%;height:100%;object-fit:contain;display:block;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.6)) drop-shadow(0 0 6px var(--rc1, rgba(255,255,255,.4)));
  }
  @keyframes oeoRankOrbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
  @keyframes oeoRankCounter{from{transform:translateX(-50%) rotate(0deg)}to{transform:translateX(-50%) rotate(-360deg)}}

  .oeo-add-panel{
    position:fixed;top:0;right:0;height:100vh;width:min(380px,92vw);z-index:4;
    background:var(--mf-modal-bg);border-left:1px solid var(--mf-modal-border);
    transform:translateX(105%);transition:.28s cubic-bezier(.2,.7,.3,1);
    display:flex;flex-direction:column;padding:18px 18px 22px;
    box-shadow:var(--mf-modal-shadow);
  }
  .oeo-add-panel[data-open="true"]{transform:translateX(0)}
  .oeo-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
  .oeo-panel-head h3{margin:0;font-family:"Clash Display",sans-serif;font-size:18px;color:#fff;font-weight:700}
  .oeo-panel-close{width:32px;height:32px;border:1px solid var(--mf-modal-border);background:rgba(255,255,255,.05);color:var(--ink-dim);border-radius:10px;cursor:pointer;font-size:15px;line-height:1;display:grid;place-items:center;font-family:inherit}
  .oeo-panel-close:hover{background:rgba(255,255,255,.10);color:#fff}
  .oeo-cats{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
  .oeo-cats button{
    padding:8px 12px;border-radius:999px;border:1.5px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);color:#b9bbbe;cursor:pointer;
    font-family:inherit;font-size:13px;font-weight:600;transition:.15s;
  }
  .oeo-cats button:hover{background:rgba(255,255,255,.08);color:#fff}
  .oeo-cats button.active{border-color:#9146FF;background:rgba(145,70,255,.18);color:#fff}
  .oeo-sugg{flex:1;overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:6px}
  .oeo-sugg .sp-item{cursor:pointer}

  /* Game meta modal (rank + clip after adding a game bubble) */
  .gmm-modal{position:fixed;inset:0;z-index:360;display:none;align-items:center;justify-content:center;padding:18px}
  .gmm-modal[data-open="true"]{display:flex}
  .gmm-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .gmm-card{
    position:relative;z-index:1;width:min(420px,96vw);
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);border-radius:var(--mf-modal-radius);
    padding:22px 22px 18px;box-shadow:var(--mf-modal-shadow);
    animation:authCardIn .25s cubic-bezier(.2,.7,.3,1);
  }
  .gmm-close{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:10px;border:1px solid var(--mf-modal-border);background:rgba(255,255,255,.05);color:var(--ink-dim);cursor:pointer;display:grid;place-items:center;font-family:inherit;font-size:15px}
  .gmm-close:hover{background:rgba(255,255,255,.10);color:#fff}
  .gmm-title{margin:0 0 4px;font-family:"Clash Display",sans-serif;font-weight:700;font-size:20px;color:#fff}
  .gmm-sub{margin:0 0 16px;font-size:13px;color:#b9bbbe}
  .gmm-field{margin-bottom:12px}
  .gmm-field label{display:block;font-size:12.5px;font-weight:600;color:#dcddde;margin-bottom:6px}
  .gmm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}

  /* Clip overlay (click on a game bubble → embed plays) */
  .clip-overlay{position:fixed;inset:0;z-index:380;display:none;align-items:center;justify-content:center;padding:24px}
  .clip-overlay[data-show="true"]{display:flex;animation:fadeInOverlay .25s ease-out}
  .clip-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
  .clip-close{position:fixed;top:18px;right:18px;z-index:2;width:44px;height:44px;border-radius:10px;border:1px solid var(--mf-modal-border);cursor:pointer;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.05);box-shadow:var(--mf-modal-shadow);font-family:inherit;font-size:15px}
  .clip-close:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.14);transform:scale(1.04)}
  .clip-content{position:relative;z-index:1;width:min(96vw,960px);max-height:88vh;border-radius:14px;overflow:hidden;background:#000;box-shadow:0 30px 80px rgba(0,0,0,.7)}
  .clip-content iframe,
  .clip-content video{width:100%;aspect-ratio:16/9;height:auto;display:block;border:none}
  .clip-empty{padding:60px 30px;text-align:center;color:#b9bbbe;font-size:14px}
  .clip-external-link{
    display:block;text-align:center;padding:10px 16px;
    color:#FF7EB6;font-size:12.5px;text-decoration:underline;
    background:rgba(255,255,255,.04);border-top:1px solid rgba(255,255,255,.06);
  }
  .clip-external-link:hover{color:#fff;background:rgba(255,79,160,.18)}

  /* Rank badge on a game orb (legacy static badge — kept for fallback) */
  .orb-rank{
    position:absolute;bottom:-4px;right:-4px;z-index:4;
    min-width:24px;height:24px;padding:0 8px;border-radius:13px;
    background:linear-gradient(135deg,#FFD83D,#FF9A3D);color:#1c1d22;
    font-size:10.5px;font-weight:800;line-height:24px;text-align:center;
    border:2px solid #0d0b1e;box-shadow:0 4px 12px rgba(0,0,0,.5);
    text-transform:uppercase;letter-spacing:.02em;white-space:nowrap;
  }
  /* Rank as a round mini-bubble orbiting around the game orb (swipe card) */
  .swipe-stage .orbit .orb .orb-rank-orbit{
    position:absolute;inset:-22px;border-radius:50%;
    pointer-events:none;z-index:4;
    animation:orbRankOrbit 10s linear infinite;
  }
  .swipe-stage .orbit .orb .orb-rank-orbit .orb-rank-ball{
    position:absolute;top:-12px;left:50%;transform:translateX(-50%);
    width:38px;height:38px;border-radius:50%;
    background:transparent;
    border:2.5px solid var(--rc1);
    display:grid;place-items:center;
    box-shadow:0 0 14px var(--rc1), 0 6px 16px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.18) inset;
    animation:orbRankCounter 10s linear infinite;
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  }
  .swipe-stage .orbit .orb .orb-rank-orbit .orb-rank-ico{font-size:18px;line-height:1;filter:drop-shadow(0 1px 3px rgba(0,0,0,.85)) drop-shadow(0 0 6px var(--rc1, #fff))}
  /* When a real rank PNG is available, drop the round backplate so the icon stands free */
  .swipe-stage .orbit .orb .orb-rank-orbit .orb-rank-ball--img{
    background:transparent;border:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
    width:44px;height:44px;
  }
  .swipe-stage .orbit .orb .orb-rank-orbit .orb-rank-img{
    width:100%;height:100%;object-fit:contain;display:block;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.6)) drop-shadow(0 0 8px var(--rc1, rgba(255,255,255,.4)));
  }
  @keyframes orbRankOrbit{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
  @keyframes orbRankCounter{from{transform:translateX(-50%) rotate(0deg)}to{transform:translateX(-50%) rotate(-360deg)}}
  /* Mini "+" button next to a game orb (only on MY card) — opens rank/clip modal */
  .swipe-stage .orbit .orb .orb-meta{
    position:absolute;bottom:-6px;left:-8px;z-index:5;
    width:30px;height:30px;border-radius:50%;
    border:2.5px solid #0d0b1e;
    background:linear-gradient(135deg,#9146FF,#6B2BFF);
    color:#fff;font-size:22px;font-weight:300;line-height:1;
    cursor:pointer;padding:0;
    display:grid;place-items:center;
    box-shadow:0 6px 18px rgba(145,70,255,.55), 0 0 0 1px rgba(255,255,255,.15) inset;
    transition:transform .15s ease, box-shadow .15s ease;
  }
  .swipe-stage .orbit .orb .orb-meta:hover{
    transform:scale(1.18);
    box-shadow:0 10px 26px rgba(145,70,255,.85), 0 0 0 1px rgba(255,255,255,.30) inset;
  }
  .boost-modal[data-open="true"]{display:flex}
  .bm-backdrop{position:absolute;inset:0;background:var(--mf-backdrop);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
  .bm-card{
    position:relative;z-index:1;width:min(96vw,460px);max-height:92vh;overflow:auto;
    background:var(--mf-modal-bg);border:1px solid var(--mf-modal-border);border-radius:var(--mf-modal-radius);
    padding:26px 22px 22px;color:#fff;box-shadow:var(--mf-modal-shadow);
    animation:authViewIn .22s ease-out;
  }
  .bm-close{
    position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:10px;border:1px solid var(--mf-modal-border);
    background:rgba(255,255,255,.05);color:var(--ink-dim);cursor:pointer;display:grid;place-items:center;font-family:inherit;font-size:15px;
  }
  .bm-close:hover{background:rgba(255,255,255,.10);color:#fff}
  .bm-head{text-align:center;margin-bottom:16px}
  .bm-sparkle{font-size:34px;display:block;margin-bottom:4px;filter:drop-shadow(0 4px 12px rgba(255,193,84,.6))}
  .bm-head h2{margin:0;font-family:"Clash Display",sans-serif;font-weight:700;font-size:26px}
  .bm-grad{background:linear-gradient(90deg,#FFD080,#FF7EB6,#9146FF);-webkit-background-clip:text;background-clip:text;color:transparent}
  .bm-head p{color:#b9bbbe;font-size:13px;margin:6px 0 0}
  .bm-feats{list-style:none;padding:0;margin:0 0 18px;display:flex;flex-direction:column;gap:8px}
  .bm-feats li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:11px;background:rgba(255,255,255,.04);font-size:13px}
  .bm-feats li span{font-size:18px;flex:0 0 auto}
  .bm-feats li b{font-weight:700;color:#fff;margin-right:4px}
  /* Comparison columns */
  .bm-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
  .bm-col{position:relative;padding:14px 12px;border-radius:14px;border:1.5px solid rgba(255,255,255,.08);background:rgba(255,255,255,.02)}
  .bm-col--basic{opacity:.82}
  .bm-col--boost{border-color:rgba(255,193,84,.55);background:linear-gradient(180deg,rgba(255,193,84,.10),rgba(145,70,255,.12));box-shadow:0 8px 24px rgba(255,193,84,.10)}
  .bm-col-tag{position:absolute;top:-9px;left:50%;transform:translateX(-50%);padding:3px 10px;border-radius:999px;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:linear-gradient(90deg,#FFD080,#FFB347);color:#3d1e00;white-space:nowrap}
  .bm-col-head{text-align:center;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:10px}
  .bm-col-name{font-family:"Clash Display",sans-serif;font-weight:700;font-size:13px;color:#b9bbbe;letter-spacing:.02em}
  .bm-col-sub{display:block;font-family:"Clash Display",sans-serif;font-weight:700;font-size:20px;color:#fff;margin-top:2px}
  .bm-col--boost .bm-col-sub{background:linear-gradient(90deg,#FFD080,#FF7EB6);-webkit-background-clip:text;background-clip:text;color:transparent}
  .bm-col-price{margin-top:6px;font-size:10.5px;color:#b9bbbe;line-height:1.5}
  .bm-col-price b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:15px;color:#fff;display:inline}
  .bm-col-price small{font-size:10px;margin-left:1px}
  .bm-col-feats{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:7px}
  .bm-col-feats li{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.35}
  .bm-col-feats li span{font-size:13px;flex:0 0 auto;width:18px;text-align:center;font-weight:700}
  .bm-col-feats li.off{color:#72767d}
  .bm-col-feats li.off span{color:#ff4f80}
  .bm-col-feats li.on{color:#fff}
  .bm-col-feats li.on span{color:#3BD17C}
  .bm-col--boost .bm-col-feats li.on span{color:inherit;font-size:14px;font-weight:400}
  .bm-plans{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .bm-plan{
    position:relative;padding:18px 12px 14px;border-radius:14px;border:1.5px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.03);color:#fff;cursor:pointer;text-align:center;font-family:inherit;
    transition:.16s ease;display:flex;flex-direction:column;align-items:center;gap:8px;
  }
  .bm-plan:hover{transform:translateY(-2px);border-color:rgba(145,70,255,.6);background:rgba(145,70,255,.10)}
  .bm-plan--best{border-color:rgba(255,193,84,.6);background:linear-gradient(180deg,rgba(255,193,84,.10),rgba(255,126,182,.10))}
  .bm-plan--best:hover{border-color:rgba(255,193,84,.9)}
  .bm-plan-tag{
    position:absolute;top:-9px;left:50%;transform:translateX(-50%);
    padding:3px 10px;border-radius:999px;font-size:9.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
    background:#2f3136;color:#b9bbbe;white-space:nowrap;
  }
  .bm-plan--best .bm-plan-tag{background:linear-gradient(90deg,#FFD080,#FFB347);color:#3d1e00}
  .bm-plan-price b{font-family:"Clash Display",sans-serif;font-weight:700;font-size:28px;display:block}
  .bm-plan-price small{font-size:11.5px;color:#b9bbbe}
  .bm-plan-was{color:#7c7e8c;font-weight:600;font-size:13px}
  .bm-plan-until{display:block;margin:2px 0 8px;font-size:10.5px;font-weight:700;color:#FF7EB6}
  .bm-plan-cta{padding:7px 16px;border-radius:999px;background:linear-gradient(180deg,#A65BFF,#6B2BFF);font-weight:700;font-size:12.5px}
  .bm-plan--best .bm-plan-cta{background:linear-gradient(180deg,#FFD080,#FFB347);color:#3d1e00}
  .bm-active{margin-top:14px;padding:12px;border-radius:12px;background:rgba(59,209,124,.10);border:1px solid rgba(59,209,124,.35);text-align:center}
  .bm-active p{margin:0 0 8px;color:#9CF0BD;font-size:13px}

  /* ===== Orb manager ===== */
  .acc-orb-cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
  .acc-orb-cat{
    padding:7px 13px;border-radius:999px;border:1.5px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.04);color:#b9bbbe;font-size:12.5px;font-weight:600;
    cursor:pointer;transition:.15s ease;font-family:inherit;
  }
  .acc-orb-cat.active{border-color:#9146FF;background:rgba(145,70,255,.18);color:#fff}
  .acc-orb-cat.cat-soon{opacity:.72;cursor:not-allowed;flex-direction:column;gap:1px;line-height:1.15}
  .acc-orb-cat.cat-soon small{font-size:9px;font-weight:700;color:#FFD15C;letter-spacing:.04em;text-transform:uppercase}
  .acc-orb-cat:hover:not(.active){background:rgba(255,255,255,.08);color:#fff}
  .oeo-cats button.oeo-cat--soon{opacity:.72;cursor:not-allowed;flex-direction:column;gap:1px;line-height:1.15}
  .oeo-cats button.oeo-cat--soon small{font-size:9px;font-weight:700;color:#FFD15C;letter-spacing:.04em;text-transform:uppercase}
  .oeo-cats button.oeo-cat--soon:hover{background:rgba(255,255,255,.04);color:var(--dim)}
  .acc-orb-form{display:flex;gap:8px;margin-bottom:16px}
  .acc-orb-input-wrap{flex:1;position:relative}
  .acc-orb-input-wrap .acc-input{width:100%;margin:0;box-sizing:border-box}
  .spotify-sugg{
    position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:120;
    background:#1c1d22;border:1px solid rgba(255,255,255,.12);border-radius:12px;
    overflow:hidden;box-shadow:0 8px 28px rgba(0,0,0,.6);display:none;
  }
  .spotify-sugg.open{display:block}
  .sp-item{display:flex;align-items:center;gap:10px;padding:9px 12px;cursor:pointer;transition:.12s}
  .sp-item:hover{background:rgba(255,255,255,.06)}
  .sp-item img,.sp-no-cover{width:36px;height:36px;border-radius:6px;object-fit:cover;flex:0 0 auto}
  .sp-no-cover{background:linear-gradient(135deg,#3a3050,#1a1426);display:grid;place-items:center;font-size:18px;animation:spLoadPulse 1.2s ease-in-out infinite}
  @keyframes spLoadPulse{0%,100%{opacity:.55}50%{opacity:.9}}
  .sp-item--loading .sp-info{opacity:.6}
  .sp-item--unavailable{opacity:.35;cursor:not-allowed}
  .sp-item--unavailable .sp-no-cover{animation:none;background:#3a2030}
  .sp-item--unavailable .sp-no-cover::before{content:'×';color:#ff6688;font-weight:800}
  .sp-info{flex:1;min-width:0}
  .sp-title{font-size:13px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sp-artist{font-size:11px;color:#b9bbbe;margin-top:1px}
  .sp-dur{font-size:10px;color:#72767d;flex:0 0 auto}
  .acc-orb-add{
    width:44px;height:44px;border-radius:12px;border:none;flex:0 0 auto;
    background:linear-gradient(180deg,#A65BFF,#6B2BFF);color:#fff;
    font-size:24px;font-weight:300;cursor:pointer;display:grid;place-items:center;
    box-shadow:0 4px 14px rgba(107,43,255,.4);transition:.15s ease;
  }
  .acc-orb-add:hover{transform:scale(1.07)}
  .acc-orb-grid{
    --cols:6;
    display:grid;grid-template-columns:repeat(var(--cols), minmax(0, 1fr));
    gap:14px 18px;min-height:20px;width:100%;
  }
  /* Tier 1 (>6) — denser */
  .acc-orb-grid.acc-orb-grid--many{ --cols:6; gap:10px 14px }
  /* Tier 2 (>12) — more cols, smaller cells so everything fits */
  .acc-orb-grid.acc-orb-grid--many2{ --cols:9; gap:8px 10px }
  .acc-orb-item{display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;min-width:0}
  .acc-orb-circle{
    width:100%;aspect-ratio:1;max-width:200px;border-radius:50%;display:grid;place-items:center;
    position:relative;overflow:visible;
    transition:width .2s ease;
  }
  .acc-orb-grid--many .acc-orb-circle{max-width:140px}
  .acc-orb-grid--many2 .acc-orb-circle{max-width:90px}
  .acc-orb-circle svg{width:48px !important;height:48px !important}
  .acc-orb-grid--many .acc-orb-circle svg{width:36px !important;height:36px !important}
  .acc-orb-grid--many2 .acc-orb-circle svg{width:26px !important;height:26px !important}
  .acc-orb-circle::before{
    content:"";position:absolute;inset:0;border-radius:50%;
    background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.30) 0%,transparent 56%);
    pointer-events:none;z-index:1;
  }
  .acc-orb-circle svg{width:28px;height:28px;color:#fff;position:relative;z-index:2}
  .acc-orb-circle .orb-cover{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center;z-index:2}
  .acc-orb-circle[data-kind="anime"] .orb-cover,
  .acc-orb-circle[data-kind="film"] .orb-cover{object-position:center 20%}
  .acc-orb-circle[data-kind="music"]{background:linear-gradient(145deg,var(--orb-c1,#1ed760),var(--orb-c2,#1DB954),var(--orb-c3,#0e7a38));box-shadow:0 8px 24px var(--orb-gc,rgba(29,185,84,.5))}
  .acc-orb-circle[data-kind="music"] .orb-cover{animation:orbVinylSpin 6s linear infinite}
  html.perf-lite .acc-orb-circle[data-kind="music"] .orb-cover{animation:none}
  .acc-orb-circle[data-kind="game"] {background:linear-gradient(145deg,var(--orb-c1,#FFD080),var(--orb-c2,#FFB66E),var(--orb-c3,#FF4FA0));box-shadow:0 8px 24px var(--orb-gc,rgba(255,79,160,.5))}
  .acc-orb-circle[data-kind="anime"]{background:linear-gradient(145deg,#FF9CC0,#FF7EB6,#b020b8);box-shadow:0 8px 24px rgba(192,38,211,.5)}
  .acc-orb-circle[data-kind="film"] {background:linear-gradient(145deg,var(--orb-c1,#a78bfa),var(--orb-c2,#7c3aed),var(--orb-c3,#4c1d95));box-shadow:0 8px 24px var(--orb-gc,rgba(124,58,237,.5))}
  .acc-orb-lbl{font-size:11px;font-weight:700;color:#fff;width:100%;max-width:100%;text-align:center;line-height:1.25;word-break:break-word}
  .acc-orb-grid--many .acc-orb-lbl{font-size:10px}
  .acc-orb-grid--many2 .acc-orb-lbl{font-size:9px;line-height:1.15;max-height:2.2em;overflow:hidden}
  .acc-orb-del{
    position:absolute;top:-3px;right:-3px;width:18px;height:18px;border-radius:50%;
    background:#2f3136;border:1.5px solid rgba(255,255,255,.2);color:#dcddde;
    font-size:11px;line-height:1;cursor:pointer;display:grid;place-items:center;
    transition:.15s ease;z-index:3;padding:0;
  }
  .acc-orb-del:hover{background:#ff4f80;border-color:#ff4f80;color:#fff}

  /* Auth modal */
  .auth-backdrop{
    position:fixed;inset:0;z-index:60;display:none;
    background:var(--mf-backdrop);backdrop-filter:blur(8px) saturate(120%);
    -webkit-backdrop-filter:blur(8px) saturate(120%);
    align-items:center;justify-content:center;
    animation:authIn .18s ease-out;
  }
  .auth-backdrop[data-open="true"]{display:flex}
  @keyframes authIn{from{opacity:0}to{opacity:1}}
  .auth-card{
    position:relative;width:min(92vw,420px);
    padding:30px 28px 26px;border-radius:var(--mf-modal-radius);
    background:var(--mf-modal-bg);
    border:1px solid var(--mf-modal-border);
    box-shadow:var(--mf-modal-shadow);
    color:#fff;text-align:center;
    animation:authCardIn .25s cubic-bezier(.2,.7,.3,1);
  }
  @keyframes authCardIn{from{opacity:0;transform:translateY(14px) scale(.96)}to{opacity:1;transform:none}}
  .auth-card .auth-close{
    position:absolute;top:12px;right:12px;width:32px;height:32px;
    display:grid;place-items:center;border-radius:10px;cursor:pointer;
    background:rgba(255,255,255,.05);border:1px solid var(--mf-modal-border);
    color:var(--ink-dim);transition:.15s ease;font-family:inherit;font-size:15px;
  }
  .auth-card .auth-close:hover{background:rgba(255,255,255,.10);color:#fff}
  .auth-card h2{
    font-family:"Clash Display",sans-serif;font-weight:700;
    font-size:24px;margin:0 0 6px;letter-spacing:-.01em;
    background:linear-gradient(180deg,#fff 0%,#d9c6ff 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .auth-card .auth-sub{color:var(--ink-dim);font-size:13.5px;margin:0 0 20px}
  .auth-list{display:flex;flex-direction:column;gap:10px}
  .auth-btn{
    display:flex;align-items:center;gap:12px;
    padding:13px 16px;border-radius:13px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--stroke-2);
    color:#fff;font-family:inherit;font-size:14.5px;font-weight:600;
    cursor:pointer;text-decoration:none;text-align:left;
    transition:.18s ease;
  }
  .auth-btn:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.22);transform:translateY(-1px)}
  .auth-btn svg{flex:0 0 auto}
  .auth-btn .lbl{flex:1}
  .auth-btn--discord{background:linear-gradient(180deg, rgba(145,70,255,.25), rgba(107,43,255,.18));border-color:rgba(145,70,255,.45)}
  .auth-btn--discord:hover{background:linear-gradient(180deg, rgba(145,70,255,.4), rgba(107,43,255,.28));border-color:rgba(145,70,255,.65);box-shadow:0 0 30px rgba(145,70,255,.35)}

  /* Auth views — providers <-> email */
  .auth-view{display:none}
  .auth-card[data-view="providers"] .auth-view--providers{display:block}
  .auth-card[data-view="email"] .auth-view--email{display:block;animation:authViewIn .22s ease-out}
  @keyframes authViewIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
  .auth-back{
    position:absolute;top:12px;left:12px;width:32px;height:32px;
    display:grid;place-items:center;border-radius:9px;cursor:pointer;
    background:rgba(255,255,255,.05);border:1px solid var(--stroke);
    color:var(--ink-dim);transition:.15s ease;
  }
  .auth-back:hover{background:rgba(255,255,255,.10);color:#fff;transform:translateX(-2px)}
  .auth-form{display:flex;flex-direction:column;gap:12px;text-align:left;margin-top:6px}
  .auth-field{display:flex;flex-direction:column;gap:6px}
  .auth-field label{font-size:12.5px;font-weight:600;color:var(--ink-dim);letter-spacing:.02em}
  .auth-input{
    width:100%;box-sizing:border-box;
    padding:13px 14px;border-radius:12px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--stroke-2);
    color:#fff;font-family:inherit;font-size:14.5px;
    transition:.18s ease;outline:none;
  }
  .auth-input::placeholder{color:var(--ink-mute)}
  .auth-input:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.07);box-shadow:0 0 0 4px rgba(145,70,255,.18)}
  .auth-input.invalid{border-color:#FF4FA0;box-shadow:0 0 0 4px rgba(255,79,160,.18)}
  .auth-row{display:flex;align-items:center;justify-content:space-between;font-size:12.5px}
  .auth-row label{display:inline-flex;align-items:center;gap:7px;color:var(--ink-dim);cursor:pointer;user-select:none}
  .auth-row input[type="checkbox"]{accent-color:#9146FF;width:14px;height:14px}
  .auth-row a{color:var(--pink);text-decoration:none;font-weight:600}
  .auth-row a:hover{text-decoration:underline}
  .auth-submit{
    margin-top:4px;padding:14px 16px;border-radius:13px;border:none;cursor:pointer;
    background:linear-gradient(180deg,#A65BFF 0%, #6B2BFF 100%);
    color:#fff;font-family:inherit;font-weight:700;font-size:15px;
    box-shadow:0 0 0 1px rgba(255,255,255,.12) inset, 0 6px 18px rgba(107,43,255,.45), 0 0 30px rgba(145,70,255,.35);
    transition:transform .15s ease, box-shadow .2s ease;
  }
  .auth-submit:hover{transform:translateY(-1px);box-shadow:0 0 0 1px rgba(255,255,255,.16) inset, 0 8px 22px rgba(107,43,255,.55), 0 0 40px rgba(145,70,255,.5)}
  .auth-submit:active{transform:translateY(0)}
  .auth-footer{margin-top:14px;font-size:13px;color:var(--ink-dim);text-align:center}
  .auth-footer a{color:var(--pink);text-decoration:none;font-weight:600}
  .auth-footer a:hover{text-decoration:underline}
  .auth-msg{
    margin-top:10px;padding:10px 12px;border-radius:10px;font-size:13px;
    background:rgba(59,209,124,.12);border:1px solid rgba(59,209,124,.35);color:#9CF0BD;
    display:none;
  }
  .auth-msg[data-show="true"]{display:block;animation:authViewIn .22s ease-out}
  /* ===== Password gate (accès privé) ===== */
  #gate{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;
    background:radial-gradient(1200px 800px at 50% -10%, #1c143a 0%, transparent 60%), radial-gradient(900px 700px at 100% 100%, #1a0d2c 0%, transparent 55%), #0D0B1E;
    padding:24px;text-align:center}
  #gate[hidden]{display:none}
  #gate .gate-logo{width:96px;height:auto;margin-bottom:4px;filter:drop-shadow(0 4px 22px rgba(255,31,158,.5))}
  #gate h1{font-family:"Clash Display",sans-serif;font-weight:800;font-size:clamp(28px,5vw,44px);margin:0;
    background:linear-gradient(180deg,#fff 0%,#d9c6ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
  #gate p{color:#b9bbbe;font-size:14.5px;margin:0 0 8px}
  #gate .gate-form{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
  #gate input{padding:14px 16px;border-radius:13px;background:rgba(255,255,255,.05);border:1.5px solid rgba(255,255,255,.14);
    color:#fff;font-family:inherit;font-size:18px;outline:none;text-align:center;letter-spacing:.3em;width:200px;transition:.18s ease}
  #gate input:focus{border-color:rgba(145,70,255,.6);background:rgba(255,255,255,.08);box-shadow:0 0 0 4px rgba(145,70,255,.18)}
  #gate button{padding:14px 24px;border-radius:13px;border:none;cursor:pointer;font-family:inherit;font-weight:700;font-size:15px;color:#fff;
    background:linear-gradient(180deg,#A65BFF 0%,#6B2BFF 100%);box-shadow:0 8px 24px rgba(107,43,255,.45);transition:transform .16s ease}
  #gate button:hover{transform:translateY(-1px)}
  #gate .gate-err{color:#FF7EB6;font-size:13px;min-height:16px;font-weight:600}
  /* CTA Discord (rejoindre la bêta sans le code) : couleur Discord franche + fond
     plein, sinon un simple <a> texte se fondait dans le fond sombre du gate. */
  #gate .gate-discord-btn{
    margin-top:10px;display:inline-flex;align-items:center;gap:10px;
    padding:13px 22px;border-radius:13px;
    background:#5865F2;color:#fff;text-decoration:none;
    font-family:inherit;font-weight:700;font-size:14.5px;
    box-shadow:0 8px 24px rgba(88,101,242,.5);
    transition:transform .16s ease, background .16s ease;
  }
  #gate .gate-discord-btn:hover{background:#4752C4;transform:translateY(-1px)}
  #gate .gate-discord-btn svg{flex:0 0 auto}

  /* ============================================================
     PARAMÈTRES — refonte placement & esthétisme (fond transparent)
     On garde le glassmorphism sombre de l'app, on restructure le
     contenu en groupes/panneaux pour une meilleure lisibilité.
     ============================================================ */
  /* En-tête de page */
  .acc-settings .set-head{ margin-bottom:18px; }
  .acc-settings .set-title{
    font-family:"Clash Display",sans-serif;font-weight:800;
    font-size:26px;letter-spacing:-.015em;margin:0;
    background:linear-gradient(180deg,#fff 0%, #E9DCFF 100%);
    -webkit-background-clip:text;background-clip:text;color:transparent;
  }
  .acc-settings .set-sub{ margin:4px 0 0;color:var(--ink-dim);font-size:13px;font-weight:500; }

  /* Groupes (panneaux translucides) */
  .acc-settings .set-group{
    background:rgba(255,255,255,.035);
    border:1px solid rgba(255,255,255,.08);
    border-radius:16px;padding:16px 18px;margin-bottom:14px;
  }
  .acc-settings .set-group:last-child{ margin-bottom:0; }
  .acc-settings .set-group-h{
    display:flex;align-items:center;gap:8px;
    font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
    color:#b9a7ff;margin-bottom:13px;
  }
  .acc-settings .set-ico{ font-size:14px;filter:saturate(1.1); }
  .acc-settings .set-group--danger{ border-color:rgba(255,79,160,.28);background:rgba(255,79,160,.05); }
  .acc-settings .set-group--danger .set-group-h{ color:#FF8FBE; }

  /* Rangées dans un groupe */
  .acc-settings .set-row{ display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0; }
  .acc-settings .set-row + .set-row{ margin-top:14px;padding-top:14px;border-top:1px solid rgba(255,255,255,.06); }
  .acc-settings .set-row--col{ flex-direction:column;align-items:stretch;gap:10px; }
  .acc-settings .set-row-lbl{ font-size:13.5px;font-weight:600;color:#fff;display:flex;align-items:center; }
  .acc-settings .set-row-val{ color:#C9B6FF;font-weight:700;margin-left:8px;font-size:13px; }

  /* Sélecteur de langue — segmenté glass */
  .acc-settings .acc-langs{ display:flex;gap:8px;flex:0 0 auto; }
  .acc-settings .acc-langs button{
    display:inline-flex;align-items:center;justify-content:center;gap:7px;
    padding:8px 14px;border-radius:11px;cursor:pointer;font-weight:600;font-size:12.5px;
    background:rgba(255,255,255,.05);border:1.5px solid rgba(255,255,255,.12);color:var(--ink-dim);
    transition:.15s ease;
  }
  .acc-settings .acc-langs button:hover{ background:rgba(255,255,255,.10);color:#fff; }
  .acc-settings .acc-langs button.active{
    background:linear-gradient(180deg,#A65BFF,#6B2BFF);border-color:transparent;color:#fff;
    box-shadow:0 6px 16px rgba(107,43,255,.4);
  }

  /* Slider volume pleine largeur */
  .acc-settings input[type="range"]{ width:100%;accent-color:#9146FF;margin:0; }

  /* Facturation — lignes claires sur fond du groupe */
  .acc-settings .acc-billing{ background:transparent !important;border:none !important;padding:0 !important;gap:9px !important; }

  /* Zone dangereuse — boutons empilés pleine largeur */
  .acc-settings .acc-danger-zone{ display:flex;flex-direction:column;gap:10px;margin-top:0; }
  .acc-settings .acc-danger-zone .acc-btn{ width:100%;margin:0 !important; }

  /* Confort mobile */
  @media (max-width:600px){
    body[data-screen="account"] #screen-account{ padding-left:12px !important;padding-right:12px !important; }
    body[data-screen="account"] .acc-card{ width:100% !important;max-width:100% !important;box-sizing:border-box !important;border-radius:20px !important; }
    .acc-settings .set-row{ flex-direction:column;align-items:stretch;gap:9px; }
    .acc-settings .acc-langs button{ flex:1; }
  }

  /* ===== Mode perf allégé (machines faibles / prefers-reduced-motion) =====
     Coupe les effets de rendu les plus coûteux, qui font ramer les GPU faibles :
     blobs de fond animés + flou 80px, scintillement des étoiles, et surtout les
     backdrop-filter plein écran recalculés à chaque image. Le design reste
     lisible : les cartes conservent leur couleur de fond semi-opaque.
     Activé par la classe .perf-lite posée sur <html> (voir script du <head>). */
  html.perf-lite .blob{
    animation:none !important;      /* fige le mouvement (recalcul du flou en boucle) */
    transform:none !important;
    filter:blur(46px) !important;   /* flou réduit, composité une seule fois */
    will-change:auto !important;    /* libère la couche GPU gardée en vie */
    opacity:.5 !important;
  }
  html.perf-lite .bg-stars::before,
  html.perf-lite .bg-stars::after{ animation:none !important; }
  /* backdrop-filter = l'une des propriétés les plus coûteuses → on la coupe. */
  html.perf-lite *{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
  /* Bouton langue : son flou passe par une variable (all:unset bloque l'override
     direct), donc on la neutralise ici pour couper aussi son backdrop-filter. */
  html.perf-lite #langSwitch .ls-btn{ --ls-backdrop:none; }
  /* Réduction de mouvement système : on fige uniquement les animations de fond
     (mouvement), mais on garde le flou et le verre dépoli — c'est une préférence
     de mouvement, pas un signal de machine lente. */
  @media (prefers-reduced-motion: reduce){
    .blob{ animation:none !important; transform:none !important; }
    .bg-stars::before, .bg-stars::after{ animation:none !important; }
    .orb[data-kind="music"] .orb-cover, .oeo-orb[data-kind="music"] img, .acc-orb-circle[data-kind="music"] .orb-cover{ animation:none !important; }
  }
