/* ==========================================================================
   Lovit Web — feuille de style de l'app (/app), identité de l'app Android :
   rouge #D6002F, dégradé FF4E6B → F5145A, surfaces claires, coins généreux.
   Layout façon Tinder Web : barre latérale (matchs/messages) + zone principale.
   ========================================================================== */

:root {
  --red: #CD130A;        /* le vrai rouge Tinder */
  --grad-a: #E8452F;     /* rouge clair (dégradé) */
  --grad-b: #CD130A;
  --ink: #14151A;
  --text2: #74747C;
  --bg: #FFFFFF;
  --surface: #F1F1F4;
  --border: rgba(0, 0, 0, .08);
  --like: #4FD376;
  --nope: #FF4E5B;
  --star: #3AA6FF;
  --shadow: 0 10px 30px rgba(20, 21, 26, .14);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  /* colonne : bandeau info en haut + app qui remplit le reste */
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
#root { flex: 1; min-height: 0; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input { font: inherit; border: 0; outline: none; background: none; color: inherit; }
img, video { display: block; }

/* ---------- bandeau info (piloté back-office : warning/danger/info/success) ---------- */
.webinfo {
  flex: none;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  font-size: 13.5px; line-height: 1.35;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
  z-index: 40;
  background: var(--wb-bg); color: var(--wb-fg);
}
.webinfo--warning { --wb-bg: linear-gradient(90deg, #FDBA2D, #F59E0B); --wb-fg: #4A2E00; --wb-close: rgba(74,46,0,.16); --wb-close-h: rgba(74,46,0,.28); }
.webinfo--danger  { --wb-bg: linear-gradient(90deg, #F97066, #D92D20); --wb-fg: #fff; --wb-close: rgba(255,255,255,.20); --wb-close-h: rgba(255,255,255,.34); }
.webinfo--info    { --wb-bg: linear-gradient(90deg, #53B1FD, #2E90FA); --wb-fg: #fff; --wb-close: rgba(255,255,255,.20); --wb-close-h: rgba(255,255,255,.34); }
.webinfo--success { --wb-bg: linear-gradient(90deg, #32D583, #12B76A); --wb-fg: #fff; --wb-close: rgba(255,255,255,.20); --wb-close-h: rgba(255,255,255,.34); }
.webinfo .wi-ic { font-size: 16px; flex: none; }
.webinfo .wi-txt { flex: 1; }
.webinfo .wi-txt b { font-weight: 800; }
.webinfo .wi-close {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--wb-close); color: var(--wb-fg); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.webinfo .wi-close:hover { background: var(--wb-close-h); }
@media (max-width: 600px) {
  .webinfo { font-size: 12px; padding: 8px 12px; gap: 8px; }
}

/* ---------- splash ---------- */
.splash {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, var(--grad-a), var(--grad-b));
}
.splash-heart { animation: beat .75s ease-in-out infinite alternate; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
.splash-title { color: #fff; font-size: 34px; font-weight: 900; letter-spacing: -1px; }
@keyframes beat { from { transform: scale(1); } to { transform: scale(1.14); } }

/* ---------- (connexion : gérée par la modale de la landing « / ») ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------- coquille principale (desktop : sidebar + main) ---------- */
.shell { height: 100%; display: flex; }
.side {
  width: 380px; min-width: 320px; height: 100%;
  display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #fff;
}
.side-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); color: #fff;
}
.side-head .me-pic {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; cursor: pointer;
  background: rgba(255,255,255,.3);
}
.side-head .me-name { font-weight: 800; font-size: 16px; flex: 1; cursor: pointer; }
.side-head .icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background .2s;
}
.side-head .icon-btn:hover { background: rgba(255,255,255,.32); }
.side-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--border); }
.side-tabs button {
  padding: 14px 2px; margin-right: 22px; font-weight: 800; font-size: 15px; color: var(--text2);
  border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 7px;
}
.side-tabs button.on { color: var(--ink); border-bottom-color: var(--red); }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.side-body { flex: 1; overflow-y: auto; }

/* matchs (vignettes) */
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.match-tile { text-align: center; cursor: pointer; }
.match-tile .pic {
  width: 100%; aspect-ratio: 3/4; border-radius: 14px; object-fit: cover;
  border: 2.5px solid var(--red); transition: transform .15s;
}
.match-tile:hover .pic { transform: scale(1.03); }
.match-tile .nm { font-size: 13px; font-weight: 700; margin-top: 6px; }

/* conversations */
.conv {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  transition: background .15s;
}
.conv:hover, .conv.on { background: var(--surface); }
.conv .pic { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; position: relative; }
.conv .pic-wrap { position: relative; }
.dot {
  position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--like); border: 2px solid #fff;
}
.conv .txt { flex: 1; min-width: 0; }
.conv .nm { font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.conv .last { color: var(--text2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv .last.unread { color: var(--ink); font-weight: 700; }

.empty {
  padding: 44px 26px; text-align: center; color: var(--text2); font-size: 14px; line-height: 1.6;
}
.empty .big { font-size: 40px; margin-bottom: 10px; }

/* ---------- zone principale ---------- */
.main {
  flex: 1; height: 100%; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 50% -100px, #FFE3E9, var(--surface));
  display: flex; align-items: center; justify-content: center;
}

/* ---------- deck de cartes ---------- */
.deck-zone { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.deck { position: relative; width: min(420px, calc(100vw - 32px)); height: min(660px, calc(100vh - 190px)); }
.card {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: #222;
  box-shadow: var(--shadow); user-select: none;
  transition: transform .18s ease, opacity .18s ease;
}
.card.under1 { transform: scale(.965) translateY(12px); }
.card.under2 { transform: scale(.93) translateY(24px); }
.card.leaving-like { transition: transform .42s ease, opacity .42s ease; transform: translateX(130%) rotate(18deg) !important; opacity: 0; }
.card.leaving-nope { transition: transform .42s ease, opacity .42s ease; transform: translateX(-130%) rotate(-18deg) !important; opacity: 0; }
.card.leaving-super { transition: transform .42s ease, opacity .42s ease; transform: translateY(-120%) rotate(-4deg) !important; opacity: 0; }
.card .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 22%, transparent 42%);
}
.card .dots { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 5px; }
.card .dots i { flex: 1; height: 3.5px; border-radius: 2px; background: rgba(255,255,255,.35); }
.card .dots i.on { background: #fff; }
.card .tap-l, .card .tap-r { position: absolute; top: 0; bottom: 130px; width: 50%; }
.card .tap-l { left: 0; } .card .tap-r { right: 0; }
.card .info { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.card .name { font-size: 30px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.card .name .age { font-weight: 500; font-size: 25px; opacity: .95; }
.card .meta { font-size: 14px; opacity: .95; margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.card .bio { font-size: 13.5px; opacity: .9; margin-top: 7px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.card .chip {
  padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px);
}
.card .live-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: .4px;
}
.card .live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: beat .8s infinite alternate; }
.stamp {
  position: absolute; top: 44px; font-size: 34px; font-weight: 900; letter-spacing: 2px;
  padding: 4px 14px; border: 4px solid; border-radius: 10px; opacity: 0; transform: rotate(-14deg);
}
.stamp.like { left: 22px; color: var(--like); border-color: var(--like); }
.stamp.nope { right: 22px; color: var(--nope); border-color: var(--nope); transform: rotate(14deg); }
.card.pre-like .stamp.like, .card.pre-nope .stamp.nope { opacity: 1; }

/* boutons d'action sous le deck */
.actions { display: flex; align-items: center; gap: 18px; }
.act {
  border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(20,21,26,.16);
  display: flex; align-items: center; justify-content: center;
  transition: transform .14s;
}
.act:hover { transform: scale(1.09); }
.act:active { transform: scale(.94); }
.act.nope { width: 62px; height: 62px; color: var(--nope); font-size: 26px; }
.act.super { width: 50px; height: 50px; color: var(--star); font-size: 20px; }
.act.like { width: 62px; height: 62px; font-size: 26px; background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; }
.keys-hint { color: var(--text2); font-size: 12.5px; display: flex; gap: 16px; }
.keys-hint b { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; font-weight: 700; }

/* ---------- carte publicité (mention claire + CTA) ---------- */
.card .ad-chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
}
.card .ad-head { display: flex; align-items: center; gap: 10px; }
.card .ad-logo {
  width: 46px; height: 46px; border-radius: 12px; background: #fff;
  object-fit: contain; padding: 5px; flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.card .ad-cta {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.card .ad-cta:hover { transform: scale(1.04); }

/* ---------- badges officiels (Fondateur = or, Staff = rouge) ---------- */
.card-chips { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lv-badge {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px; overflow: hidden;
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .22); cursor: pointer;
  transition: transform .15s;
}
.lv-badge:hover { transform: scale(1.05); }
.lv-badge--founder { background: linear-gradient(135deg, #F7C948, #DA9E12); }
.lv-badge--staff { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }
.lv-badge .lv-ic { font-size: 10px; }
.lv-badge i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  opacity: 0; animation: lvtwinkle 2s ease-in-out infinite; pointer-events: none;
}
.lv-badge i:nth-of-type(1) { left: 13%; top: 28%; }
.lv-badge i:nth-of-type(2) { left: 80%; top: 22%; animation-delay: .5s; }
.lv-badge i:nth-of-type(3) { left: 58%; top: 68%; animation-delay: 1s; }
.lv-badge i:nth-of-type(4) { left: 30%; top: 70%; animation-delay: 1.5s; }
@keyframes lvtwinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1); } }
.pf-badge-row { display: flex; margin-top: 12px; }
/* modale explicative du badge */
.badge-pop .bp-ic {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}
.badge-pop .bp-ic.founder { background: linear-gradient(135deg, #F7C948, #DA9E12); }
.badge-pop .bp-ic.staff { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); }

/* limites (compteur) */
.limit-pill {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(20,21,26,.12); color: var(--ink);
}
.limit-pill span { color: var(--red); }

/* recherche / deck vide — cœur LOVIT « radar » (faisceau + ondes) */
.searching { text-align: center; color: var(--ink); padding: 30px; }
.radar { position: relative; width: 150px; height: 150px; margin: 0 auto 22px; }
.radar::before, .radar::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(205, 19, 10, .10);
}
.radar::before { inset: 12%; }
.radar::after { inset: 30%; border-color: rgba(205, 19, 10, .14); }
.radar .sweep {
  position: absolute; inset: 5px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(205, 19, 10, .28) 100%);
  animation: radarspin 2.4s linear infinite;
}
.radar .ring {
  position: absolute; inset: 0; border: 2px solid var(--red); border-radius: 50%;
  opacity: 0; animation: radarring 2.1s linear infinite;
}
.radar .ring.r2 { animation-delay: .7s; }
.radar .ring.r3 { animation-delay: 1.4s; }
.radar svg {
  position: absolute; top: 50%; left: 50%; margin: -26px 0 0 -26px;
  animation: beat .7s ease-in-out infinite alternate;
}
@keyframes radarspin { to { transform: rotate(360deg); } }
@keyframes radarring { 0% { transform: scale(.32); opacity: .5; } 100% { transform: scale(1); opacity: 0; } }
.searching h2 { font-size: 21px; font-weight: 900; }
.searching p { color: var(--text2); font-size: 14px; margin-top: 8px; line-height: 1.5; max-width: 340px; }

/* ---------- vue chat (dans la zone principale) ---------- */
.chat { width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: #fff;
}
.chat-head .back {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.chat-head .pic { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-head .nm { font-weight: 800; font-size: 16px; }
.chat-head .st { color: var(--text2); font-size: 12.5px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: var(--bg); }
.msg-row { display: flex; margin-bottom: 10px; }
.msg-row.mine { justify-content: flex-end; }
.bubble {
  max-width: 72%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.4;
  background: var(--surface); color: var(--ink); border-top-left-radius: 6px;
  word-wrap: break-word; overflow-wrap: break-word;
}
.msg-row.mine .bubble {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); color: #fff;
  border-radius: 18px; border-top-right-radius: 6px;
}
.msg-meta { text-align: right; color: var(--text2); font-size: 11.5px; margin: -4px 2px 10px; }
.msg-meta .seen { color: var(--star); font-weight: 700; }
.typing { display: inline-flex; gap: 4px; padding: 12px 16px; background: var(--surface); border-radius: 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text2); animation: ty 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }
.chat-input { display: flex; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input {
  flex: 1; background: var(--surface); border-radius: 999px; padding: 13px 18px; font-size: 15px;
}
.chat-input .snd {
  width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 18px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .15s, opacity .2s;
}
.chat-input .snd:disabled { opacity: .4; }
.chat-input .snd:not(:disabled):hover { transform: scale(1.08); }
.day-sep { text-align: center; color: var(--text2); font-size: 12px; margin: 14px 0; }

/* ---------- lives : lecteur façon TikTok (aléatoire, swipe = live suivant) ---------- */
.live-player.slide-up { animation: liveUp .35s ease; }
.live-player.slide-down { animation: liveDown .35s ease; }
@keyframes liveUp { from { transform: translateY(46px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes liveDown { from { transform: translateY(-46px); opacity: .25; } to { transform: none; opacity: 1; } }
.lp-hint {
  position: absolute; top: 72px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 12.5px; font-weight: 700;
  background: rgba(0, 0, 0, .45); padding: 6px 14px; border-radius: 999px;
  pointer-events: none; animation: hintFade 4s forwards; z-index: 3;
}
@keyframes hintFade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.live-player { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; }
.live-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lp-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent 20%),
              linear-gradient(to top, rgba(0, 0, 0, .65), transparent 38%);
}
.lp-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; }
.lp-top .pic { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.lp-who { flex: 1; min-width: 0; }
.lp-who .nm { font-weight: 800; font-size: 15px; }
.lp-who .st { font-size: 12.5px; opacity: .9; }
.lp-btn {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff;
  font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .15s;
}
.lp-btn:hover { background: rgba(0, 0, 0, .62); }
.lp-chat {
  position: absolute; left: 14px; bottom: 74px; width: min(360px, 70%); max-height: 38%;
  overflow-y: auto; display: flex; flex-direction: column; gap: 7px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%);
  mask-image: linear-gradient(to bottom, transparent, #000 16%);
}
.lp-line { display: flex; gap: 8px; align-items: flex-start; color: #fff; font-size: 13.5px; line-height: 1.35; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.lp-line img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.lp-line b { font-weight: 800; margin-right: 5px; }
.lp-bottom { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 10px; align-items: center; }
.lp-bottom input {
  flex: 1; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; color: #fff; padding: 11px 16px; font-size: 14px;
}
.lp-bottom input::placeholder { color: rgba(255, 255, 255, .7); }
.lp-send {
  width: 42px; height: 42px; border-radius: 50%; color: #fff; flex: none; font-size: 16px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  display: flex; align-items: center; justify-content: center;
}
.lp-heart {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  color: #ff5b78; font-size: 19px; flex: none; transition: transform .12s;
  display: flex; align-items: center; justify-content: center;
}
.lp-heart:active { transform: scale(1.3); }
.lp-hearts { position: absolute; right: 18px; bottom: 70px; width: 72px; height: 240px; pointer-events: none; overflow: hidden; }
.lp-hearts span { position: absolute; bottom: 0; font-size: 22px; animation: heartUp 1.8s ease-out forwards; }
@keyframes heartUp {
  0% { transform: translateY(0) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-210px) scale(1.25); opacity: 0; }
}
.lp-ended {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; background: rgba(8, 9, 12, .93); color: #fff; z-index: 5;
}
.lp-ended img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.lp-ended h3 { font-size: 20px; font-weight: 900; }
.lp-ended .m-btn { width: auto; padding: 13px 28px; }

/* ---------- vue likes ---------- */
.likes-wrap { width: 100%; height: 100%; overflow-y: auto; padding: 26px; }
.likes-wrap h1 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.likes-wrap .sub { color: var(--text2); font-size: 14px; margin-bottom: 20px; }
.likes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.liker { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 3/4; background: #ddd; box-shadow: 0 4px 14px rgba(20,21,26,.1); }
.liker img { width: 100%; height: 100%; object-fit: cover; }
.liker.hidden img { filter: blur(14px) saturate(1.1); transform: scale(1.1); }
.liker .lk-name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-weight: 800;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.liker .lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px;
}

/* ---------- vue profil ---------- */
.profile-wrap { width: 100%; height: 100%; overflow-y: auto; padding: 30px; display: flex; justify-content: center; }
.profile-card { width: 100%; max-width: 520px; }
.profile-card .hero {
  border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 3/4; max-height: 480px; box-shadow: var(--shadow);
  background: #ddd;
}
.profile-card .hero img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .hero .nm {
  position: absolute; left: 18px; bottom: 14px; color: #fff; font-size: 26px; font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.profile-card .row-pics { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.profile-card .row-pics img { width: 72px; height: 96px; border-radius: 12px; object-fit: cover; }
.pstat {
  display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 14px;
  padding: 15px 18px; margin-top: 12px; box-shadow: 0 3px 12px rgba(20,21,26,.07); font-size: 14.5px;
}
.pstat b { font-weight: 800; }
.pstat .plan { color: var(--red); font-weight: 900; }
.logout-btn {
  width: 100%; margin-top: 20px; padding: 14px; border-radius: 999px; font-weight: 800;
  color: var(--nope); background: #fff; box-shadow: 0 3px 12px rgba(20,21,26,.07);
}

/* ---------- maintenance ---------- */
.maint { text-align: center; padding: 40px 30px; max-width: 420px; }
.maint .ic {
  width: 100px; height: 100px; margin: 0 auto 20px; border-radius: 50%; font-size: 42px;
  background: rgba(214,0,47,.1); display: flex; align-items: center; justify-content: center;
  animation: beat .85s infinite alternate;
}
.maint h2 { font-size: 22px; font-weight: 900; }
.maint p { color: var(--text2); font-size: 14.5px; line-height: 1.55; margin-top: 10px; }
.maint .soon { color: var(--red); font-weight: 800; font-size: 14px; margin-top: 14px; }

/* ---------- popups (match, limite) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 14, .6); backdrop-filter: blur(5px); animation: fade .25s;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.match-pop { text-align: center; color: #fff; padding: 24px; }
.match-pop .title {
  font-size: 42px; font-weight: 900; font-style: italic;
  background: linear-gradient(90deg, #FFD8D3, #fff); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .5s cubic-bezier(.2,.9,.3,1.3);
}
.match-pop .faces { display: flex; justify-content: center; gap: -10px; margin: 26px 0; }
.match-pop .faces img {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.match-pop .faces img:first-child { transform: rotate(-8deg) translateX(10px); }
.match-pop .faces img:last-child { transform: rotate(8deg) translateX(-10px); }
.match-pop p { font-size: 15px; opacity: .95; }
.match-pop .mp-btn {
  margin-top: 22px; padding: 14px 34px; border-radius: 999px; font-weight: 800; font-size: 15px;
  background: #fff; color: var(--red); display: inline-block;
}
.match-pop .mp-later { display: block; margin: 14px auto 0; color: #fff; font-weight: 700; opacity: .9; }

.modal {
  width: min(400px, calc(100vw - 40px)); background: #fff; border-radius: 24px; padding: 30px 26px; text-align: center;
  animation: rise .35s cubic-bezier(.2,.9,.3,1.2);
}
.modal .m-ic {
  width: 82px; height: 82px; border-radius: 50%; margin: 0 auto 16px; font-size: 36px;
  background: rgba(214,0,47,.1); display: flex; align-items: center; justify-content: center;
  animation: beat .8s infinite alternate;
}
.modal h3 { font-size: 20px; font-weight: 900; }
.modal .count { color: var(--red); font-size: 38px; font-weight: 900; margin: 8px 0; font-variant-numeric: tabular-nums; }
.modal p { color: var(--text2); font-size: 14px; line-height: 1.5; }
.modal .m-btn {
  margin-top: 18px; width: 100%; padding: 14px; border-radius: 999px; color: #fff; font-weight: 800;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}

/* toast d'erreur réseau */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: rise .3s;
}

/* ---------- responsive mobile ---------- */
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { display: none; }
  .side.mobile-visible { display: flex; width: 100%; border-right: 0; flex: 1; }
  .main { flex: 1; }
  .main.mobile-hidden { display: none; }
  .deck { width: calc(100vw - 24px); height: calc(100dvh - 205px); }
  .keys-hint { display: none; }
  .bottom-nav {
    display: flex; background: #fff; border-top: 1px solid var(--border);
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text2); font-size: 11px; font-weight: 700; padding: 6px 0; position: relative;
  }
  .bottom-nav button.on { color: var(--red); }
  .bottom-nav .ic { font-size: 21px; }
  .bottom-nav .badge { position: absolute; top: 0; right: calc(50% - 22px); }
  .chat-head .back { display: flex; }
  .match-pop .faces img { width: 96px; height: 96px; }
}
@media (min-width: 901px) {
  .chat-head .back { display: none; }
}
