/* ============ OnlyShappa — feuille de style ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #000;
  --surface: #161619;
  --surface-2: #202027;
  --line: rgba(255, 255, 255, .09);
  --txt: #fff;
  --muted: #9b9ba6;
  --accent: #00e6a8;
  --accent-2: #16d6c9;
  --accent-fg: var(--accent-fg);   /* texte sur fond accent (boutons, badges) */
  --accent-deep: #00b88a;
  --danger: #ff5d6c;
  /* Easings (Emil Kowalski / iOS-flavored) */
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-out-quint: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
}
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body { display: flex; justify-content: center; }

/* ---- Barre du haut ---- */
.topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  z-index: 30;
  background: linear-gradient(#000c, #0000);
  pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 9px; pointer-events: auto; }
.brand-mark-wrap { width: 28px; height: 28px; display: inline-flex; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-mark-img { object-fit: cover; background: #1a1a1f; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.4px; }
.brand-name b {
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-actions {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
}
.topbar-icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .3s var(--ease-out-expo), color .25s ease;
}
.topbar-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.topbar-icon-btn:active { transform: scale(.92); transition-duration: .08s; }
.topbar-icon-btn svg { width: 19px; height: 19px; }
/* Bouton mode prive : switch entre les deux icones (eye / eye-off). */
#privacy-btn .ic-eye-off { display: none; }
#privacy-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,.05)); }
#privacy-btn.on .ic-eye-on  { display: none; }
#privacy-btn.on .ic-eye-off { display: block; }

/* ---- Feed scrollable façon TikTok ---- */
.feed {
  height: 100%; width: 100%; max-width: 480px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.feed::-webkit-scrollbar { display: none; }

.card {
  position: relative;
  height: 100%; width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden;
  background: #0c0c0e;
}
.media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter .45s var(--ease-out-expo);
}
/* ---- Protections anti-download / context menu / drag (mobile + desktop) ---- */
.media, .vmedia, .item-thumb {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  user-drag: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: none;
}
/* ---- Mode prive : floute toutes les images / videos ---- */
body.privacy-on .media,
body.privacy-on .item-thumb {
  filter: blur(28px) brightness(.55) saturate(1.1);
  transform: scale(1.06); /* masque les bords du flou */
}
/* ---- Onglet en arriere-plan : flou de protection ---- */
body.tab-hidden .media,
body.tab-hidden .vmedia,
body.tab-hidden .item-thumb {
  filter: blur(40px) brightness(.4) !important;
  transform: scale(1.08) !important;
}
/* ---- Watermark discret (traçabilite) ---- */
.card::before {
  content: attr(data-wm);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(255,255,255,.04) 49%, rgba(255,255,255,.04) 51%, transparent 52%);
  background-size: 200px 200px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.04);
  font-size: 14px; font-weight: 800; letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  text-align: center;
  transform: rotate(-22deg);
  mix-blend-mode: overlay;
}
body.privacy-on .item-thumb { transition: filter .35s var(--ease-out-expo); }
.card .privacy-veil {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: none;
  align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff;
  pointer-events: none;
  animation: veil-in .5s var(--ease-out-expo);
}
.card .privacy-veil svg { width: 15px; height: 15px; }
body.privacy-on .card .privacy-veil { display: inline-flex; }
@keyframes veil-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.85); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Tap sur la carte en mode prive -> revele temporairement */
body.privacy-on .card.peek .media,
body.privacy-on .card.peek .item-thumb { filter: none; transform: none; }
body.privacy-on .card.peek .privacy-veil { display: none; }
.shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0008 0%, #0000 22%, #0000 48%, #000a 78%, #000e 100%);
}

/* ---- Rail d'actions à droite ---- */
.rail {
  position: absolute; right: 10px; bottom: 168px;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.avatar { position: relative; width: 48px; height: 48px; margin-bottom: 6px; }
.avatar img {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid #fff; object-fit: cover; background: #333;
}
.avatar .plus {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg);
  font-size: 15px; font-weight: 800;
  display: grid; place-items: center;
}
.rail-btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: transform .35s var(--ease-out-expo);
  will-change: transform;
}
.rail-btn:active { transform: scale(.86); transition-duration: .08s; }
.rail-btn .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background-color .25s ease, transform .35s var(--ease-out-expo);
}
.rail-btn:hover .ic { background: rgba(255, 255, 255, .06); }
.rail-btn svg { width: 30px; height: 30px; fill: #fff; filter: drop-shadow(0 1px 3px #0009); transition: fill .25s ease; }
.rail-btn b { font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px #0009; }
.rail-btn.liked svg { fill: var(--danger); }
.rail-btn.liked .ic { animation: heart-pop .42s var(--ease-out-expo); }
.rail-share .ic { width: 46px; height: 46px; }
/* Le bouton share utilise un trait blanc (currentColor) au lieu d'un fill solide. */
.rail-share svg { fill: none; stroke: #fff; }
.rail-btn.pulse .ic { animation: rail-pulse .42s var(--ease-out-expo); }
@keyframes rail-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(.82); }
  100% { transform: scale(1); }
}
@keyframes heart-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.28); }
  60%  { transform: scale(.92); }
  100% { transform: scale(1); }
}

/* ---- Bloc d'infos ---- */
.info { position: absolute; left: 0; right: 70px; bottom: 110px; z-index: 4; padding: 0 14px; }
.seller { display: flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.verified { width: 15px; height: 15px; display: grid; place-items: center; background: var(--accent); border-radius: 50%; }
.verified svg { width: 11px; height: 11px; fill: var(--accent-fg); }
.title { font-size: 17px; font-weight: 700; line-height: 1.25; margin-bottom: 5px; }
.desc {
  font-size: 13.5px; line-height: 1.5; color: #e7e7ea; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.loc-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: -.05px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.loc-chip svg { width: 13px; height: 13px; fill: #fff; flex-shrink: 0; }

/* ---- Barre d'achat ---- */
.buybar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  background: rgba(16, 16, 20, .78);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
}
.price-col { display: flex; flex-direction: column; line-height: 1.15; }
.price-label { font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.price { font-size: 20px; font-weight: 800; }
.price i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.buy {
  position: relative; overflow: hidden;
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: -.1px;
  color: var(--accent-fg);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  padding: 15px; border-radius: 14px; cursor: pointer;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.32);
  transition: transform .45s var(--ease-out-expo), box-shadow .35s ease;
}
.buy::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out-quint);
  pointer-events: none;
}
.buy:hover::after { transform: translateX(110%); }
.buy:active { transform: scale(.97); transition-duration: .1s; box-shadow: 0 3px 12px color-mix(in srgb, var(--accent) 26%, transparent); }
.buy-arrow {
  display: inline-block;
  transition: transform .42s var(--ease-out-expo);
}
.buy:hover .buy-arrow { transform: translateX(5px); }

/* ---- Animation d'entrée de la carte active ---- */
.info, .rail, .buybar {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease-out-expo), transform .65s var(--ease-out-expo);
}
.card.active .info   { opacity: 1; transform: none; transition-delay: .04s; }
.card.active .rail   { opacity: 1; transform: none; transition-delay: .12s; }
.card.active .buybar { opacity: 1; transform: none; transition-delay: 0s; }

/* ---- Chargement ---- */
.loader {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--muted); font-size: 13px; text-align: center; padding: 20px;
}
.loader-ring {
  width: 38px; height: 38px;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loader small { font-size: 11px; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Indice de scroll ---- */
.scroll-hint {
  position: fixed; left: 50%; bottom: 116px; transform: translateX(-50%);
  z-index: 12;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600;
  color: #fff; text-shadow: 0 1px 4px #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.scroll-hint.show { opacity: .9; animation: bob 1.7s ease-in-out infinite; }
.scroll-hint.gone { opacity: 0; animation: none; }
.scroll-hint svg { width: 22px; height: 22px; fill: #fff; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

/* ---- Modale / bottom-sheet ---- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .25s ease;
}
.modal.hidden { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet {
  position: relative;
  width: 100%; max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(26px + env(safe-area-inset-bottom));
  max-height: 94vh; overflow-y: auto;
  animation: slideup .5s var(--ease-spring);
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.grab { width: 38px; height: 4px; border-radius: 99px; background: #ffffff2e; margin: 0 auto 16px; }
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border: none; border-radius: 50%;
  background: var(--surface-2); color: #fff;
  font-size: 13px; cursor: pointer;
}

/* ---- Récap article ---- */
.item-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.item-thumb { width: 50px; height: 50px; border-radius: 12px; object-fit: cover; background: #333; }
.item-name { font-size: 15px; font-weight: 700; }
.item-city { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Montant ---- */
.pay-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); text-align: center;
}
.pay-amount {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 6px 0 4px;
}
.pay-num { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; }
.pay-cur { display: flex; flex-direction: column; font-size: 15px; font-weight: 800; color: var(--accent); }
.pay-cur small { font-size: 9px; font-weight: 700; color: var(--muted); letter-spacing: .4px; }
.pay-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-bottom: 18px; }
.pay-note b { color: #e7e7ea; }

/* ---- Carte QR ---- */
.qr-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 16px; margin-bottom: 14px; text-align: center;
}
.qr {
  width: 168px; height: 168px;
  background: #fff; border-radius: 12px; padding: 8px;
  margin: 0 auto 14px; display: block;
}
.addr-row {
  display: flex; align-items: center; gap: 8px;
  background: #0d0d0f; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px;
}
.addr-row code {
  flex: 1; text-align: left;
  font-size: 11.5px; color: #cfcfd4; word-break: break-all;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
}
.copy-btn {
  flex-shrink: 0; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-fg);
  font-family: inherit; font-size: 11px; font-weight: 800;
  padding: 7px 11px; border-radius: 8px;
}
.copy-btn.done { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }

/* ---- Boutons de méthode ---- */
.method {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; border: none; border-radius: 14px;
  padding: 15px; margin-top: 10px;
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  transition: transform .12s;
}
.method svg { width: 19px; height: 19px; }
.method:active:not(:disabled) { transform: scale(.98); }
.method:disabled { opacity: .45; cursor: not-allowed; }
.method-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-fg); }
.method-primary svg { fill: var(--accent-fg); }
.method-secondary { background: var(--surface-2); color: #fff; border: 1px solid var(--line); }
.method-demo { background: transparent; color: #b9a8ff; border: 1px dashed #5b4d86; }
.method-demo svg { fill: #b9a8ff; }
.method-toggle {
  background: none; color: var(--muted); font-weight: 600; font-size: 13px; padding: 14px;
  text-decoration: underline; text-underline-offset: 3px;
}
.method-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600; font-size: 13.5px;
}
.method-ghost svg { fill: var(--muted); }
.method-ghost:hover { color: #fff; border-color: rgba(255,255,255,.22); }

/* ---- Hint de paiement mobile ---- */
.pay-tip {
  display: flex; align-items: flex-start; gap: 11px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px;
  padding: 13px 14px; margin-top: 4px;
}
.pay-tip svg { width: 18px; height: 18px; fill: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pay-tip > div { display: flex; flex-direction: column; gap: 3px; }
.pay-tip b { font-size: 13px; font-weight: 800; color: var(--accent); }
.pay-tip span { font-size: 12.5px; color: #d9d9de; line-height: 1.5; }

/* ---- Champ txid ---- */
.txid-wrap.hidden { display: none; }
.txid-input {
  width: 100%; margin-top: 10px;
  background: #0d0d0f; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px; color: #fff; font-size: 13px; font-family: inherit;
}
.txid-input:focus { outline: none; border-color: var(--accent); }

/* ---- Séparateur ---- */
.or {
  display: flex; align-items: center; gap: 12px;
  color: #6a6a72; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; margin: 18px 0 2px;
}
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---- Statut ---- */
.status {
  display: none;
  font-size: 13px; line-height: 1.45;
  margin-top: 14px; padding: 11px 13px; border-radius: 11px;
}
.status.show { display: block; }
.status.err { background: rgba(255, 93, 108, .12); color: #ff9ba3; }
.status.info { background: color-mix(in srgb, var(--accent) 10%, transparent); color: #7fe8cf; }
.status.ok { background: color-mix(in srgb, var(--accent) 14%, transparent); color: #7fe8cf; }
.spin {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: -1px; margin-right: 7px; opacity: .85;
}

.trust {
  display: flex; align-items: flex-start; gap: 7px; justify-content: center;
  font-size: 11px; line-height: 1.4; color: var(--muted);
  margin-top: 18px; text-align: center;
}

/* ---- Écran succès ---- */
.success { text-align: center; padding: 14px 0 4px; }
.success-check {
  width: 78px; height: 78px; margin: 6px auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  animation: pop .5s cubic-bezier(.2, 1.3, .4, 1);
}
.success-check svg { width: 40px; height: 40px; fill: var(--accent-fg); }
@keyframes pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.success h3 { font-size: 20px; font-weight: 800; }
.success-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.contact-card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent) 4%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 16px; padding: 18px; margin: 20px 0 6px;
}
.contact-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
}
.contact-value { font-size: 18px; font-weight: 800; margin: 8px 0 14px; word-break: break-word; }

/* ---- Age gate 18+ ---- */
body.age-locked { overflow: hidden; }
.age-gate {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  opacity: 0;
  transition: opacity .35s var(--ease-out-expo);
}
.age-gate.show { opacity: 1; }
.age-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 22px;
  text-align: center;
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .45s var(--ease-spring), opacity .35s var(--ease-out-expo);
}
.age-gate.show .age-card { transform: none; opacity: 1; transition-delay: .04s; }
.age-badge {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 900; letter-spacing: -.5px;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.age-badge-deny {
  background: linear-gradient(135deg, var(--danger), #ff8593);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 93, 108, .3);
}
.age-card h1 { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.age-card p { font-size: 13.5px; line-height: 1.55; color: #d9d9de; margin-bottom: 14px; }
.age-card p b { color: #fff; font-weight: 700; }
.age-remember {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); margin: 4px 0 18px;
  cursor: pointer; user-select: none;
}
.age-remember input { accent-color: var(--accent); width: 16px; height: 16px; }
.age-actions { display: flex; flex-direction: column; gap: 9px; }
.age-yes, .age-no {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 800; font-size: 14.5px;
  border-radius: 13px; padding: 14px; cursor: pointer; border: none;
  text-decoration: none;
  transition: transform .35s var(--ease-out-expo);
}
.age-yes {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.age-no {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); font-weight: 600;
}
.age-yes:active, .age-no:active { transform: scale(.97); transition-duration: .1s; }
.age-fine { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

/* ---- Modale assistance ---- */
.sheet-help { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.help-head { text-align: center; padding: 4px 4px 18px; }
.help-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 26%, transparent);
}
.help-icon svg { width: 28px; height: 28px; }
.help-head h3 { font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.help-head p {
  font-size: 13.5px; line-height: 1.55; color: #d9d9de;
  margin-top: 8px; max-width: 340px; margin-inline: auto;
}
.help-form { display: flex; flex-direction: column; gap: 8px; }
.help-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin-bottom: 2px;
}
.help-fine { font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 14px; text-align: center; }
.help-fine b { color: #fff; font-weight: 700; }
.help-head-compact { padding-bottom: 12px; }
.help-head-compact h3 { margin-bottom: 0; }
.help-head-compact p { display: none; }
.help-sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; text-align: center; }

/* ---- Onglets ---- */
.help-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2); padding: 4px;
  border-radius: 12px; margin-bottom: 14px;
}
.htab {
  flex: 1;
  background: transparent; border: none;
  color: var(--muted); font-family: inherit; font-size: 12.5px; font-weight: 700;
  padding: 8px 6px; border-radius: 8px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
  white-space: nowrap;
}
.htab:hover { color: #fff; }
.htab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.help-panel.hidden { display: none; }

/* ---- Chat ---- */
.chat-feed {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px;
  min-height: 240px; max-height: 360px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chat-feed::-webkit-scrollbar { width: 4px; }
.chat-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.chat-msg { display: flex; gap: 8px; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-avatar {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-size: 13px; font-weight: 900;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 28%, transparent);
}
.chat-bubble {
  background: var(--surface);
  color: #e9e9ee;
  padding: 10px 13px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  font-size: 13.5px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: bubble-in .35s var(--ease-out-expo);
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  font-weight: 600;
  border-top-left-radius: 14px;
  border-top-right-radius: 4px;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.chat-typing .dots {
  display: inline-flex; gap: 4px; align-items: center;
}
.chat-typing .dots i {
  width: 6px; height: 6px; background: var(--muted); border-radius: 50%;
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.chat-typing .dots i:nth-child(2) { animation-delay: .15s; }
.chat-typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: .35; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1); }
}
.chat-input {
  display: flex; gap: 8px; margin-top: 10px;
}
.chat-input input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff; font-family: inherit; font-size: 13.5px;
}
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: none; border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 28%, transparent);
  transition: transform .25s var(--ease-out-expo);
}
.chat-input button:active { transform: scale(.94); }
.chat-input button svg { width: 18px; height: 18px; }
.chat-suggests {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.chip-sug {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip-sug:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---- Form devenir vendeur ---- */
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.fg-row { display: flex; flex-direction: column; gap: 5px; }
.fg-row label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fg-row .opt { font-weight: 500; color: var(--muted); font-size: 10.5px; }
.fg-row input, .fg-row textarea {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  color: #fff; font-family: inherit; font-size: 13.5px;
}
.fg-row input:focus, .fg-row textarea:focus { outline: none; border-color: var(--accent); }
.fg-row textarea { resize: vertical; min-height: 70px; }
.fg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg-row-2 > div { display: flex; flex-direction: column; gap: 5px; }
.fg-row-2 label { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.fg-row-2 input {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px;
  color: #fff; font-family: inherit; font-size: 13.5px;
}
.apply-preview {
  width: 100%; aspect-ratio: 16/10;
  background: #0e0e10; border: 1px dashed var(--line); border-radius: 10px;
  object-fit: cover; display: none;
}
.apply-preview.show { display: block; }
.file-row {
  display: flex; gap: 8px;
}
.file-btn {
  background: var(--surface-2); border: 1px solid var(--line);
  color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 9px 13px; border-radius: 9px; cursor: pointer;
}
.hidden { display: none !important; }
.help-legal-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}
.help-legal-row a { color: var(--muted); text-decoration: none; }
.help-legal-row a:hover { color: var(--accent); }
.age-fine a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Feed mis en pause par l'admin ---- */
.feed-paused {
  height: 100%; padding: 40px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
  animation: feedfade .6s var(--ease-out-expo);
}
.feed-paused-mark {
  width: 64px; height: 64px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 25%, transparent);
  position: relative;
}
.feed-paused-mark::before, .feed-paused-mark::after {
  content: ''; position: absolute; top: 18px; width: 8px; height: 28px;
  background: var(--accent-fg); border-radius: 3px;
}
.feed-paused-mark::before { left: 18px; }
.feed-paused-mark::after { right: 18px; }
.feed-paused h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.feed-paused p { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 320px; }
@keyframes feedfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Toast bas d'ecran ---- */
.os-toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  z-index: 200;
  background: rgba(22, 22, 25, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out-expo), transform .42s var(--ease-out-expo);
}
.os-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- Desktop ---- */
@media (min-width: 540px) {
  body { background: #070708; }
  .feed { box-shadow: 0 0 90px #000; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ Videos feed ============ */
.videos-modal {
  position: fixed; inset: 0; z-index: 550;
  background: #000;
  animation: fade .25s ease;
}
.videos-modal.hidden { display: none; }
.videos-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.videos-top {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.78), transparent);
  pointer-events: none;
}
.videos-title {
  pointer-events: auto;
  font-size: 16px; font-weight: 800; letter-spacing: -.3px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.videos-top .game-close { pointer-events: auto; }

.videos-feed {
  width: 100%; max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
}
.videos-feed::-webkit-scrollbar { display: none; }

.vcard {
  position: relative;
  height: 100%; width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden;
  background: #0c0c0e;
}
.vmedia {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter .45s var(--ease-out-expo);
}
body.privacy-on .vmedia {
  filter: blur(28px) brightness(.55) saturate(1.1);
  transform: scale(1.06);
}
body.privacy-on .vcard.peek .vmedia { filter: none; transform: none; }
.vshade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0008 0%, #0000 22%, #0000 60%, #000a 88%, #000e 100%);
  pointer-events: none;
}
.vmute {
  position: absolute; top: 70px; right: 14px;
  z-index: 5;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s ease, transform .25s var(--ease-out-expo);
}
.vmute:hover { background: rgba(0,0,0,.65); }
.vmute:active { transform: scale(.92); }
.vmute svg { width: 18px; height: 18px; }
.vmute .vol-on { display: none; }
.vmute .vol-off { display: block; }
.vcard.sound-on .vmute .vol-on { display: block; }
.vcard.sound-on .vmute .vol-off { display: none; }
.vcard.sound-on .vmute {
  background: color-mix(in srgb, var(--accent) 14%, rgba(0,0,0,.45));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

.vinfo {
  position: absolute; left: 0; right: 70px; bottom: 0;
  z-index: 4;
  padding: 0 18px calc(24px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.vtitle {
  font-size: 17px; font-weight: 800; letter-spacing: -.2px;
  line-height: 1.25; margin-bottom: 6px;
}
.vdesc {
  font-size: 13.5px; line-height: 1.5; color: #e7e7ea;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.videos-empty {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  color: var(--muted); font-size: 14px; text-align: center;
}
.videos-empty-icon { font-size: 42px; opacity: .5; }

/* Animation d'entree des elements de la carte active */
.vinfo, .vmute {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease-out-expo), transform .55s var(--ease-out-expo);
}
.vcard.active .vinfo { opacity: 1; transform: none; transition-delay: .08s; }
.vcard.active .vmute { opacity: 1; transform: none; transition-delay: .14s; }

@media (min-width: 540px) {
  .videos-feed { box-shadow: 0 0 90px #000; }
}

/* ============ Mini-jeu USDT Catcher ============ */
.game-modal {
  position: fixed; inset: 0; z-index: 600;
  background: #000;
  animation: fade .25s ease;
}
.game-modal.hidden { display: none; }
.game-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.78), transparent);
  pointer-events: none;
}
.hud-pill {
  pointer-events: auto;
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 13px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hud-label {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--muted);
}
.hud-val { font-size: 17px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.hud-lives .hud-val { color: var(--danger); }
.game-close {
  pointer-events: auto;
  margin-left: auto;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #fff; font-size: 20px; font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.game-close:hover { background: rgba(255,255,255,.14); }
#g-canvas {
  width: 100%; height: 100%; display: block;
  touch-action: none;
  cursor: pointer;
}
.game-overlay {
  position: absolute; inset: 0;
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 20px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.game-card {
  width: 100%; max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px 26px 24px;
  text-align: center;
  animation: slideup .45s var(--ease-spring);
}
.game-badge {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-fg);
  display: grid; place-items: center;
  font-size: 19px; font-weight: 900; letter-spacing: -.5px;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 30%, transparent);
}
.game-badge-gold {
  background: linear-gradient(135deg, #ffd166, #ffb627);
  color: #5a3a00;
  font-size: 24px;
  box-shadow: 0 14px 32px rgba(255, 209, 102, .35);
}
.game-card h2 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.game-card p { font-size: 13.5px; line-height: 1.6; color: #d9d9de; margin-bottom: 18px; }
.game-card p b { color: var(--danger); font-weight: 700; }
.game-card .method { margin-top: 6px; }
.game-tip { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.game-over .game-badge { font-size: 26px; }

/* ---- Splash de chargement ---- */
.splash {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity .45s var(--ease-out-expo);
}
.splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-mark {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: splash-pulse 2.2s ease-in-out infinite;
  overflow: hidden;
}
.splash-mark svg { width: 100%; height: 100%; }
.splash-mark img { width: 100%; height: 100%; object-fit: cover; }
.splash-name {
  font-size: 21px; font-weight: 800; letter-spacing: -.4px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.splash-spin {
  margin-top: 4px;
  width: 26px; height: 26px;
  border: 2.5px solid rgba(255, 255, 255, .1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

/* Pendant le boot : si privacy ON, masque les images avant que le JS bind les classes. */
html.preboot-privacy .media,
html.preboot-privacy .item-thumb {
  filter: blur(28px) brightness(.55) saturate(1.1);
  transform: scale(1.06);
}

/* ---- Tres petits ecrans ---- */
@media (max-width: 360px) {
  .title { font-size: 16px; }
  .desc { font-size: 13px; }
  .pay-num { font-size: 36px; }
  .age-card { padding: 22px 18px 18px; border-radius: 18px; }
  .age-card h1 { font-size: 19px; }
  .age-badge { width: 52px; height: 52px; font-size: 17px; }
  .help-head h3 { font-size: 17px; }
  .feed-paused h2 { font-size: 19px; }
}

/* ---- Safe overflow sur titres trop longs ---- */
.title, .item-name, .brand-name {
  overflow-wrap: anywhere;
}
