/* ============================================================
   GTA6ONLY — "Leonida Dusk" design system
   Palette : nuit violette + rose flamant + orange couchant
   Type    : Anton (display) / Space Grotesk (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --night:    #0B0614;
  --dusk:     #160D26;
  --dusk-2:   #1F1336;
  --flamingo: #FF4D8D;
  --sunset:   #FF9A3D;
  --violet:   #8B6CFF;
  --palm:     #2BD9A8;
  --gold:     #FFD166;
  --sand:     #F3EBE0;
  --muted:    #B6A8D6;
  --danger:   #FF5C5C;
  --border:   rgba(243,235,224,0.09);
  --border-hot: rgba(255,77,141,0.35);
  --vice: linear-gradient(120deg, #FF4D8D 0%, #FF7A59 55%, #FFB13D 100%);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--flamingo); color: var(--night); }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }

/* Lisibilité des champs : placeholders, curseur, autofill */
::placeholder { color: rgba(182,168,214,0.55); opacity: 1; }
input, textarea { caret-color: var(--flamingo); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--night) inset !important;
  -webkit-text-fill-color: var(--sand) !important;
  caret-color: var(--sand);
  transition: background-color 99999s ease-in-out 0s;
}
input[type="file"] { color: var(--muted); }
input[type="file"]::file-selector-button {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--sand); border-radius: 8px; padding: 0.45rem 0.9rem;
  margin-right: 0.8rem; cursor: pointer; font-family: inherit; font-size: 0.8rem;
  transition: border-color 0.2s;
}
input[type="file"]::file-selector-button:hover { border-color: var(--border-hot); }
select {
  background: var(--night); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); padding: 0.55rem 0.9rem; font-size: 0.85rem; cursor: pointer;
}
select:focus { outline: none; border-color: var(--flamingo); }
select option { background: var(--night); color: var(--sand); }
a { color: var(--flamingo); }

:focus-visible { outline: 2px solid var(--flamingo); outline-offset: 2px; }

.mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.vice-text {
  background: var(--vice);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============ LOADER ============ */
#siteLoader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--night);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  transition: opacity 0.45s ease;
}
#siteLoader.hidden { opacity: 0; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
}
.loader-logo span {
  background: var(--vice);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-track { width: 220px; height: 3px; background: var(--dusk-2); border-radius: 3px; overflow: hidden; }
.loader-bar {
  width: 12%; height: 100%; background: var(--vice); border-radius: 3px;
  transition: width 0.3s ease;
  animation: loaderPulse 1.1s ease-in-out infinite alternate;
}
@keyframes loaderPulse { from { width: 15%; } to { width: 82%; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 2rem;
  /* Insets safe-area (encoches iOS) : la valeur ne descend jamais sous le padding de base */
  padding: max(0.8rem, env(safe-area-inset-top))
           max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right))
           0.8rem
           max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  background: rgba(11,6,20,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: 0.06em;
  color: #FFFFFF; text-decoration: none;
}
.nav-logo span {
  background: var(--vice);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 0.4rem; flex: 1; }
.nav-link {
  background: none; border: none; color: var(--muted);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 0.45rem 0.85rem; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--sand); background: rgba(255,255,255,0.05); }
.nav-link.on { color: var(--flamingo); background: rgba(255,77,141,0.1); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
#navAuth, #navUser { display: flex; align-items: center; gap: 0.6rem; }

.lang-switch {
  display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.lang-switch button {
  background: none; border: none; color: var(--muted);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  padding: 0.4rem 0.6rem; transition: all 0.2s;
}
.lang-switch button.on { background: var(--flamingo); color: var(--night); }

.user-chip {
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.35rem 0.8rem;
  color: var(--sand); font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.2s;
}
.user-chip:hover { border-color: var(--border-hot); }

/* notifications */
#notifWrap { position: relative; }
#notifBtn, #dmNavBtn {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); transition: all 0.2s; cursor: pointer;
}
#notifBtn:hover, #dmNavBtn:hover { color: var(--sand); border-color: var(--border-hot); }
#notifBadge, #dmNavBadge {
  display: none; position: absolute; top: -5px; right: -5px;
  background: var(--flamingo); color: var(--night);
  font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600;
  width: 17px; height: 17px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: 2px solid var(--night);
}
#notifPanel {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  width: 330px; max-width: 86vw;
  background: var(--dusk); border: 1px solid var(--border-hot);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.7);
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.12em;
  color: var(--flamingo); text-transform: uppercase;
}
.notif-head button {
  background: none; border: none; color: var(--muted);
  font-family: var(--font-body); font-size: 0.72rem;
}
.notif-head button:hover { color: var(--sand); }
#notifList { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; cursor: pointer; transition: background 0.15s;
}
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item.unread { border-left: 3px solid var(--flamingo); background: rgba(255,77,141,0.06); }
.notif-item time { display: block; font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 1.6rem; text-align: center; color: var(--muted); font-size: 0.82rem; }

.hamburger { display: none; background: none; border: none; color: var(--sand); font-size: 1.4rem; }
#mobileMenu {
  /* S'ancre juste sous la nav (68px) + descend avec l'encoche iOS */
  display: none; position: fixed; left: 0; right: 0; z-index: 490;
  top: calc(68px + env(safe-area-inset-top));
  background: rgba(11,6,20,0.97); border-bottom: 1px solid var(--border);
  flex-direction: column; padding: 0.6rem 0 max(0.6rem, env(safe-area-inset-bottom));
}
#mobileMenu.open { display: flex; }
#mobileMenu button {
  background: none; border: none; color: var(--sand);
  font-size: 1rem; font-weight: 600; padding: 0.85rem 1.5rem; text-align: left;
}
#mobileMenu button:hover { background: rgba(255,77,141,0.1); color: var(--flamingo); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border-radius: 10px; border: none;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em;
  padding: 0.6rem 1.2rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }
.btn.sm { padding: 0.4rem 0.85rem; font-size: 0.76rem; }
.btn.full { width: 100%; margin-top: 1rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.btn.vice { background: var(--vice); color: #1A0820; box-shadow: 0 4px 22px rgba(255,77,141,0.3); }
.btn.vice:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,77,141,0.45); }

.btn.ghost { background: none; border: 1px solid transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--sand); border-color: var(--border); }

.btn.outline { background: rgba(255,255,255,0.03); border: 1px solid var(--border-hot); color: var(--sand); }
.btn.outline:hover { background: rgba(255,77,141,0.12); transform: translateY(-2px); }

.btn.gold { background: linear-gradient(120deg, #FFD166, #FFA94D); color: #2A1A00; box-shadow: 0 4px 22px rgba(255,209,102,0.25); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,209,102,0.4); }

.link-arrow {
  background: none; border: none; color: var(--flamingo);
  font-size: 0.82rem; font-weight: 600;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.75; }

/* ============ PAGES ============ */
main { min-height: 100vh; }
.page { display: none; padding-top: 57px; animation: pageIn 0.35s ease; }
.page.on { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Bouton Retour flottant (toutes les pages sauf l'accueil) ===== */
.back-fab {
  position: fixed; top: 68px; left: 1rem; z-index: 450;
  display: none; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.05rem 0.55rem 0.85rem; border-radius: 99px;
  background: rgba(22,13,38,0.82); border: 1px solid var(--border-hot);
  color: var(--sand); font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,0.75);
  transition: transform 0.18s cubic-bezier(0.25,1,0.5,1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.back-fab.show { display: inline-flex; animation: backFabIn 0.35s cubic-bezier(0.22,1,0.36,1); }
@keyframes backFabIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.back-fab-arrow { font-size: 1.1rem; line-height: 1; transition: transform 0.18s ease; }
.back-fab:hover {
  transform: translateX(-3px); border-color: var(--flamingo);
  background: linear-gradient(135deg, rgba(255,77,141,0.22), rgba(255,154,61,0.1));
  box-shadow: 0 16px 34px -14px rgba(255,77,141,0.55);
}
.back-fab:hover .back-fab-arrow { transform: translateX(-4px); }
.back-fab:active { transform: scale(0.95); }
.back-fab:focus-visible { outline: 2px solid var(--flamingo); outline-offset: 2px; }
@media (max-width: 700px) {
  /* Mobile : bouton rond compact (flèche seule) en bas à gauche, cible tactile 46px */
  .back-fab {
    top: auto; bottom: 1.1rem; left: 1.1rem;
    width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%;
    background: rgba(22,13,38,0.92); box-shadow: 0 14px 30px -8px rgba(0,0,0,0.85);
  }
  .back-fab .back-fab-txt { display: none; }
  .back-fab-arrow { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .back-fab.show { animation: none; }
  .back-fab:hover, .back-fab:hover .back-fab-arrow, .back-fab:active { transform: none; }
}

.page-head { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.page-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.07em; line-height: 1.05;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 18px rgba(255,77,141,0.25);
}
.page-title.sm { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.page-sub { color: var(--muted); margin-top: 0.4rem; }

.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem 1rem; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.4rem; gap: 1rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 2px 14px rgba(255,77,141,0.25);
  position: relative; padding-bottom: 0.55rem;
}
.section-head h2::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 3px;
  background: var(--vice);
}

/* ============ HERO ============ */
.hero {
  position: relative; height: calc(100svh - 57px); min-height: 540px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0B0614 0%, #2A0F3A 55%, #6B1E4F 80%, #C2456B 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 0 1.2rem; max-width: 900px; }
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sunset); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 13vw, 9rem);
  line-height: 0.95; letter-spacing: 0.02em;
  text-shadow: 0 10px 60px rgba(255,77,141,0.35);
}
.hero-sub {
  color: rgba(243,235,224,0.96); font-size: clamp(0.95rem, 2vw, 1.15rem);
  max-width: 560px; margin: 1.1rem auto 0;
  text-shadow: 0 2px 16px rgba(11,6,20,0.65);
}
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; flex-wrap: wrap; }

/* ===== Réseaux GTA6only sous le hero ===== */
.hero-socials {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.6rem; margin-top: 1.3rem;
}
/* "Suis-nous :" sur sa propre ligne -> les 3 boutons se centrent proprement en dessous */
.hero-socials-label {
  flex-basis: 100%; text-align: center; font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem;
}
.hero-soc {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none;
  color: var(--sand); font-weight: 700; font-size: 0.82rem; min-width: 132px;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 99px; padding: 0.5rem 1rem;
  background: rgba(11,6,20,0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-soc svg { flex-shrink: 0; }
.hero-soc:hover { transform: translateY(-3px); }
.hero-soc.ig:hover { color: #fff; border-color: transparent; box-shadow: 0 10px 24px -8px rgba(220,39,67,0.6);
  background: linear-gradient(45deg, #f09433, #e6683c 28%, #dc2743 50%, #cc2366 72%, #bc1888); }
.hero-soc.tt:hover { color: #fff; border-color: #25F4EE; background: #000; box-shadow: 0 10px 24px -8px rgba(37,244,238,0.55); }
.hero-soc.dc:hover { color: #fff; border-color: transparent; background: #5865F2; box-shadow: 0 10px 24px -8px rgba(88,101,242,0.7); }
@media (prefers-reduced-motion: reduce) { .hero-soc:hover { transform: none; } }

.countdown {
  display: flex; align-items: flex-start; justify-content: center; gap: 0.55rem;
  margin-top: 1.9rem;
}
.cd-cell {
  background: rgba(11,6,20,0.55); border: 1px solid var(--border-hot);
  border-radius: 12px; padding: 0.6rem 0.9rem; min-width: 74px;
  backdrop-filter: blur(6px);
}
.cd-cell span {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1;
  background: var(--vice);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cd-cell label {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.cd-sep { font-family: var(--font-display); font-size: 1.8rem; color: var(--flamingo); padding-top: 0.55rem; }
.cd-caption { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; color: rgba(243,235,224,0.85); margin-top: 0.7rem; text-transform: uppercase; text-shadow: 0 2px 12px rgba(11,6,20,0.7); }

.hero-scroll {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 36px; border: 2px solid rgba(243,235,224,0.35); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; top: 6px; left: 50%; width: 4px; height: 7px;
  margin-left: -2px; border-radius: 2px; background: var(--flamingo);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }

/* ============ STATS STRIP ============ */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: -1px auto 0; border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius); overflow: hidden;
  background: var(--dusk);
}
.strip-item {
  padding: 1.3rem 1rem; text-align: center;
  border-right: 1px solid var(--border);
}
.strip-item:last-child { border-right: none; }
.strip-item b {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.05em;
  color: #FFFFFF;
}
.strip-item span { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--palm); animation: liveBlink 1.4s ease-in-out infinite; }
@keyframes liveBlink { 0%,100% { opacity: 1; box-shadow: 0 0 10px var(--palm); } 50% { opacity: 0.35; box-shadow: none; } }

/* ============ CATEGORIES ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cat-grid.big { max-width: 1100px; margin: 1.6rem auto 0; padding: 0 1.5rem 3rem; }
.cat-card {
  --cat-accent: var(--flamingo);
  position: relative; text-align: left;
  background: var(--dusk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1.1rem;
  overflow: hidden; cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
/* Barre d'accent colorée par quartier */
.cat-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--cat-accent); opacity: 0.7; transition: width 0.22s ease, opacity 0.2s;
}
/* Halo coloré qui apparait au survol */
.cat-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 70% 80% at 100% 0%, var(--cat-accent), transparent 60%);
  transition: opacity 0.25s; mix-blend-mode: soft-light;
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cat-accent);
  box-shadow: 0 16px 44px -16px var(--cat-accent);
  outline: none;
}
.cat-card:hover::before, .cat-card:focus-visible::before { width: 5px; opacity: 1; }
.cat-card:hover::after, .cat-card:focus-visible::after { opacity: 0.35; }
.cat-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-accent) 45%, transparent), 0 16px 44px -16px var(--cat-accent); }
/* Pastille d'icône colorée (style block-based) */
.cat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; font-size: 1.35rem;
  color: var(--cat-accent);
  background: color-mix(in srgb, var(--cat-accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat-accent) 35%, transparent);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
}
.cat-icon .ic { width: 1.45rem; height: 1.45rem; }
/* Icônes des succès / défis / boutique */
.ach-cell span .ic, .ach-icon .ic, .up-badge .ic { color: var(--gold); }
.ch-icon .ic { color: var(--flamingo); }
.shop-section-head h3 .ic { color: var(--flamingo); vertical-align: -0.12em; margin-right: 0.28em; }
.cat-card:hover .cat-icon { transform: scale(1.08) rotate(-4deg); }
.cat-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0.7rem 0 0.2rem; color: #FFFFFF; }
.cat-card p { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.cat-count {
  display: inline-block; margin-top: 0.7rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--cat-accent);
}
/* Flèche qui glisse au survol */
.cat-arrow {
  position: absolute; right: 1.1rem; bottom: 1.1rem;
  color: var(--cat-accent); font-size: 1.1rem; opacity: 0;
  transform: translateX(-6px); transition: opacity 0.22s, transform 0.22s;
}
.cat-card:hover .cat-arrow, .cat-card:focus-visible .cat-arrow { opacity: 1; transform: none; }

/* ============ TOPIC LIST ============ */
.topic-toolbar {
  max-width: 1100px; margin: 0.4rem auto 0; padding: 0 1.5rem;
  display: flex; justify-content: flex-end;
}
.load-more-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 3rem; text-align: center; }
.topic-list { display: flex; flex-direction: column; gap: 0.7rem; max-width: 1100px; margin: 1.4rem auto 0; }
#topicList { padding: 0 1.5rem 1.2rem; }
.topic-row-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--dusk-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; overflow: hidden;
}
.topic-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.topic-row {
  display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%;
  background: var(--dusk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.95rem 1.2rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.topic-row:hover { transform: translateX(4px); border-color: var(--border-hot); }
.topic-row.pinned { border-color: rgba(255,209,102,0.4); background: linear-gradient(90deg, rgba(255,209,102,0.06), var(--dusk) 40%); }
.topic-row-main { flex: 1; min-width: 0; }
.topic-row-title {
  font-weight: 700; font-size: 0.95rem; color: #FFFFFF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topic-row-meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; display:flex; gap:0.6rem; flex-wrap:wrap; }
.topic-row-meta .author { color: var(--violet); font-weight: 600; }
.topic-row-stats { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); flex-shrink: 0; }
.pin-flag { color: var(--gold); font-size: 0.72rem; font-family: var(--font-mono); }
.empty-msg { padding: 2.5rem 1rem; text-align: center; color: var(--muted); }

/* ============ FORUM STATES ============ */
.forum-state { display: none; }
.forum-state.on { display: block; animation: pageIn 0.3s ease; }
.back-link {
  display: inline-block; margin: 1.6rem 0 0 1.5rem;
  background: none; border: none; color: var(--muted); font-size: 0.85rem; font-weight: 600;
  transition: color 0.2s;
}
.back-link:hover { color: var(--flamingo); }
@media (min-width: 1140px) { .back-link { margin-left: calc((100vw - 1100px) / 2); } }

.forum-search {
  display: flex; gap: 0.6rem; max-width: 1100px; margin: 0.6rem auto 0; padding: 0 1.5rem;
}
.forum-search input {
  flex: 1; background: var(--dusk); border: 1px solid var(--border);
  border-radius: 10px; color: var(--sand); padding: 0.7rem 1rem; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.forum-search input:focus { outline: none; border-color: var(--flamingo); }
#searchResults { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
#searchResults .topic-list { margin-top: 1rem; }

/* ===== Highlights forum : 5 derniers + 3 top sujets ===== */
.forum-highlights {
  max-width: 1100px; margin: 1.8rem auto 0.5rem; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; align-items: start;
}
.fh-col { display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.fh-title {
  display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.2rem;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.fh-col.top .fh-title { color: var(--gold); }
.fh-ico { font-size: 1.05rem; }
.fh-list { display: flex; flex-direction: column; gap: 0.7rem; }
/* Entrée animée en cascade des lignes */
.fh-list .topic-row { animation: fhRowIn 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.fh-list .topic-row:nth-child(2) { animation-delay: 0.05s; }
.fh-list .topic-row:nth-child(3) { animation-delay: 0.1s; }
.fh-list .topic-row:nth-child(4) { animation-delay: 0.15s; }
.fh-list .topic-row:nth-child(5) { animation-delay: 0.2s; }
@keyframes fhRowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Médaille de rang (top sujets) */
.topic-row.ranked { gap: 0.7rem; }
.topic-rank { font-size: 1.3rem; flex-shrink: 0; width: 1.7rem; text-align: center; line-height: 1; }
.fh-col.top .topic-row { border-color: rgba(255,209,102,0.28); background: linear-gradient(100deg, rgba(255,209,102,0.05), var(--dusk) 55%); }
.fh-col.top .topic-row:hover { border-color: rgba(255,209,102,0.55); }
@media (max-width: 760px) { .forum-highlights { grid-template-columns: 1fr; gap: 1.8rem; } }
@media (prefers-reduced-motion: reduce) { .fh-list .topic-row { animation: none; } }

/* ============ TOPIC VIEW ============ */
.topic-view {
  max-width: 1100px; margin: 1.2rem auto 0; padding: 1.8rem;
  background: var(--dusk); border: 1px solid var(--border); border-radius: var(--radius);
}
@media (max-width: 1140px) { .topic-view, .replies-title, #repliesList, .reply-box, #replyLoginMsg { margin-left: 1.5rem !important; margin-right: 1.5rem !important; } }
.topic-cat-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sunset); border: 1px solid rgba(255,154,61,0.35);
  border-radius: 6px; padding: 0.2rem 0.6rem; margin-bottom: 0.8rem;
}
.topic-view h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.25; color: #FFFFFF; }
.topic-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }
.topic-meta .author { color: var(--violet); font-weight: 700; cursor: pointer; }
.topic-body { margin-top: 1.3rem; white-space: pre-wrap; word-wrap: break-word; color: var(--sand); }
.topic-body a, .reply-body a { color: var(--flamingo); word-break: break-all; }
#tvImage { margin-top: 1.2rem; border-radius: 10px; cursor: zoom-in; max-height: 420px; }
.topic-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.react-btn {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 9px; color: var(--sand); font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 0.9rem; transition: all 0.18s;
}
.react-btn:hover { border-color: var(--border-hot); transform: translateY(-1px); }
.react-btn.liked { background: rgba(255,77,141,0.18); border-color: var(--flamingo); }
.react-btn.disliked { background: rgba(139,108,255,0.18); border-color: var(--violet); }
.react-btn.warn { color: var(--sunset); }
.react-btn.danger { color: var(--danger); }

.replies-title {
  max-width: 1100px; margin: 2.2rem auto 0;
  font-family: var(--font-display); letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 1.15rem; color: #FFFFFF;
}
#repliesList { max-width: 1100px; margin: 1rem auto 0; display: flex; flex-direction: column; gap: 0.7rem; }
.reply-card {
  background: var(--dusk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  animation: pageIn 0.25s ease;
}
.reply-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.reply-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--dusk-2); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; overflow: hidden; border: 1px solid var(--border);
}
.reply-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reply-author { font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.reply-author.vip { color: var(--gold); }
.reply-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }
.reply-body { font-size: 0.9rem; white-space: pre-wrap; word-wrap: break-word; color: var(--sand); }
.reply-body .mention { color: var(--flamingo); font-weight: 700; }
.reply-foot-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.reply-foot-actions button {
  background: none; border: none; color: var(--muted); font-size: 0.74rem; font-weight: 600;
  transition: color 0.15s;
}
.reply-foot-actions button:hover { color: var(--sand); }
.reply-foot-actions button.liked { color: var(--flamingo); }
.reply-foot-actions button.disliked { color: var(--violet); }

.reply-box {
  max-width: 1100px; margin: 1.6rem auto 3rem;
  background: var(--dusk); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem;
}
.reply-box textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--night); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); padding: 0.8rem 1rem; font-size: 0.9rem;
}
.reply-box textarea:focus { outline: none; border-color: var(--flamingo); }
.reply-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.7rem; }
.chat-login-msg { max-width: 1100px; margin: 1rem auto 3rem; text-align: center; color: var(--muted); font-size: 0.85rem; display: none; }

/* ============ NEWS ============ */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem;
  max-width: 1100px; margin: 1.6rem auto 0; padding: 0 1.5rem 3.5rem;
}
.news-card {
  background: var(--dusk); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: var(--sand);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--border-hot); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--dusk-2); }
.news-card-body { padding: 1rem 1.1rem 1.2rem; }
.news-card h3 { font-size: 0.95rem; line-height: 1.35; }
.news-card time { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--sunset); margin-top: 0.5rem; }
/* Badge "video" YouTube sur la vignette */
.news-card { position: relative; }
.news-card::after {
  content: "\25B6"; position: absolute; top: 0.7rem; left: 0.7rem;
  background: rgba(229,9,20,0.95); color: #fff; font-size: 0.58rem;
  width: 30px; height: 21px; border-radius: 6px; padding-left: 1px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px -3px rgba(0,0,0,0.6);
}
/* Boutons "Suivre Rockstar" : couleurs de marque au survol */
.news-follow {
  max-width: 1100px; margin: 1.2rem auto 0; padding: 0 1.5rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.news-follow-label { font-size: 0.8rem; color: var(--muted); margin-right: 0.2rem; }
.news-soc {
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none; color: var(--sand);
  border: 1px solid var(--border); border-radius: 99px; padding: 0.42rem 0.95rem;
  font-size: 0.82rem; font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.news-soc svg { flex-shrink: 0; }
.news-soc:hover { transform: translateY(-2px); }
.news-soc.yt:hover { color: #fff; background: #ff0000; border-color: #ff0000; box-shadow: 0 8px 20px -8px rgba(255,0,0,0.6); }
.news-soc.x:hover  { color: #000; background: #fff; border-color: #fff; box-shadow: 0 8px 20px -8px rgba(255,255,255,0.5); }
.news-soc.ig:hover { color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(220,39,67,0.6);
  background: linear-gradient(45deg, #f09433, #e6683c 28%, #dc2743 50%, #cc2366 72%, #bc1888); }
@media (prefers-reduced-motion: reduce) { .news-soc:hover, .news-card:hover { transform: none; } }

/* ===== Bandes-annonces (lecteurs YouTube intégrés) ===== */
.news-section-title {
  max-width: 1100px; margin: 2.2rem auto 1rem; padding: 0 1.5rem;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 600;
}
.trailers {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem;
}
.trailer-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 16px 44px -24px rgba(0,0,0,0.85);
  transition: transform 0.25s cubic-bezier(0.25,1,0.5,1), border-color 0.25s ease, box-shadow 0.25s ease;
  animation: trailerIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
.trailer-card:nth-child(2) { animation-delay: 0.12s; }
@keyframes trailerIn { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }
.trailer-card:hover { transform: translateY(-4px); border-color: rgba(255,77,141,0.45); box-shadow: 0 26px 54px -26px rgba(255,77,141,0.5); }
.trailer-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.trailer-tag {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; pointer-events: none;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.7rem; color: #fff; padding: 0.28rem 0.72rem; border-radius: 99px;
  background: linear-gradient(135deg, #FF4D8D, #FF7A59); box-shadow: 0 6px 16px -6px rgba(255,77,141,0.7);
}
.trailer-tag.two { background: linear-gradient(135deg, #FF9A3D, #FFD166); color: #1a0f07; }
.trailer-tag.new { background: linear-gradient(135deg, #FFD166, #FF9A3D); color: #1a0f07; box-shadow: 0 0 0 2px rgba(255,209,102,0.35), 0 6px 18px -4px rgba(255,209,102,0.8); animation: tagPulse 2s ease-in-out infinite; }
@keyframes tagPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.trailer-card.featured { box-shadow: 0 0 0 1.5px rgba(255,209,102,0.5), 0 16px 44px -12px rgba(255,209,102,0.32); }
@media (prefers-reduced-motion: reduce) { .trailer-tag.new { animation: none !important; } }
.trailer-meta { padding: 0.85rem 1.1rem 1.1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.trailer-meta h3 { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.03em; }
.trailer-meta time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--sunset); flex-shrink: 0; }
@media (max-width: 760px) { .trailers { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .trailer-card { animation: none; }
  .trailer-card:hover { transform: none; }
}

/* ============ RANKS ============ */
.ranks-wrap { max-width: 860px; margin: 1.4rem auto 0; padding: 0 1.5rem 4rem; }

/* Échelle de progression : 4 grades reliés par une ligne */
.ranks-scale {
  display: grid; grid-template-columns: repeat(4, 1fr);
  position: relative; margin-bottom: 2rem;
}
.ranks-scale::before {
  content: ''; position: absolute; top: 18px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, #2BD9A8, #FF4D8D, #FF9A3D, #FFD166);
  opacity: 0.4; z-index: 0;
}
.scale-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  position: relative; z-index: 1; text-align: center;
}
.scale-icon {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; border-radius: 50%; background: var(--night);
  border: 2px solid var(--c); box-shadow: 0 0 14px -4px var(--c);
}
.scale-name { font-size: 0.78rem; color: var(--c); }
.scale-pts { font-size: 0.62rem; color: var(--muted); }

.ranks-list { display: flex; flex-direction: column; gap: 0.55rem; }
.rank-row {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--dusk); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.rank-row:hover { transform: translateX(4px); border-color: var(--border-hot); }
.rank-pos {
  font-family: var(--font-display); font-size: 1.15rem; width: 2.2rem; flex-shrink: 0;
  color: var(--muted); text-align: center;
}
.rank-av {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: var(--dusk-2); border: 2px solid var(--border);
}
.rank-av img { width: 100%; height: 100%; object-fit: cover; }
.rank-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.rank-name { font-weight: 700; }
.rank-level { font-size: 0.72rem; }
.rank-pts { font-family: var(--font-mono); font-size: 0.95rem; color: var(--sunset); flex-shrink: 0; font-weight: 600; }
.rank-pts small { font-size: 0.66rem; color: var(--muted); font-weight: 400; }

/* Podium : top 3 mis en valeur */
.rank-row.top1 { border-color: rgba(255,209,102,0.5); background: linear-gradient(100deg, rgba(255,209,102,0.08), var(--dusk) 55%); }
.rank-row.top1 .rank-av { border-color: var(--gold); box-shadow: 0 0 16px -3px var(--gold); }
.rank-row.top2 { border-color: rgba(200,204,212,0.35); }
.rank-row.top3 { border-color: rgba(205,138,85,0.35); }
.rank-row.top1 .rank-pos, .rank-row.top2 .rank-pos, .rank-row.top3 .rank-pos { font-size: 1.4rem; }

@media (max-width: 560px) {
  .scale-name { font-size: 0.66rem; }
  .scale-pts { font-size: 0.54rem; white-space: nowrap; }
  .rank-av { width: 36px; height: 36px; }
  .rank-pts { font-size: 0.85rem; }
}

/* ============ PROFILE ============ */
.profile-banner {
  position: relative; height: 220px;
  background: linear-gradient(120deg, #2A0F3A, #6B1E4F 60%, #C2456B);
  background-size: cover; background-position: center;
}
.profile-banner .btn { position: absolute; right: 1rem; top: 1rem; z-index: 6; }
/* ===== Recadreur d'image (avatar / banniere) ===== */
.crop-modal { max-width: 460px; }
.crop-stage {
  position: relative; margin: 0.9rem 0 0.4rem; border-radius: 12px; overflow: hidden;
  background: #0b0614; border: 1px solid var(--border); touch-action: none; line-height: 0;
}
.crop-stage canvas { display: block; width: 100%; height: auto; cursor: grab; }
.crop-stage canvas:active { cursor: grabbing; }
/* Repere rond pour l'avatar (la photo sera affichee en cercle) */
.crop-stage.round::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: 50%; box-shadow: 0 0 0 2000px rgba(11,6,20,0.55);
}
.crop-zoom { width: 100%; margin: 0.6rem 0 1rem; accent-color: var(--flamingo); cursor: pointer; }
.crop-actions { display: flex; gap: 0.6rem; }
/* Carte de formulaire admin (donner des points) */
.admin-form-card { max-width: 460px; background: var(--dusk); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.admin-form-title { font-family: var(--font-display); letter-spacing: 0.06em; color: var(--flamingo); margin-bottom: 0.3rem; }
.admin-form-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.6rem; }
.admin-form-card label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.3rem; }
.admin-form-card input { width: 100%; background: var(--night); border: 1px solid var(--border); border-radius: 10px; color: var(--sand); padding: 0.7rem 1rem; font-size: 0.95rem; }
.admin-form-card input:focus { outline: none; border-color: var(--flamingo); }
.admin-form-card .btn { margin-top: 1.3rem; }
/* Donner / Retirer des coins : deux boutons côte à côte */
.ap-points-btns { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.ap-points-btns .btn { flex: 1; margin-top: 0; }
.btn.ap-remove { color: #ff8a8d; border-color: rgba(255,107,107,0.45); }
.btn.ap-remove:hover { background: rgba(255,107,107,0.1); border-color: rgba(255,107,107,0.65); color: #ff6b6b; }
.profile-head {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: flex-end; gap: 1.4rem; flex-wrap: wrap;
  transform: translateY(-44px); margin-bottom: -24px;
}
.profile-avatar {
  position: relative; width: 110px; height: 110px; border-radius: 50%;
  background: var(--dusk-2); border: 4px solid var(--night);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; cursor: pointer; overflow: hidden; flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit {
  position: absolute; inset: auto 0 0 0; padding: 0.2rem 0; text-align: center;
  background: rgba(11,6,20,0.75); font-size: 0.8rem;
  opacity: 0; transition: opacity 0.2s;
}
.profile-avatar:hover .avatar-edit { opacity: 1; }
.profile-id h1 { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: 0.07em; color: #FFFFFF; }
.profile-tags { display: flex; gap: 0.5rem; margin-top: 0.3rem; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  border: 1px solid var(--border); border-radius: 6px; padding: 0.2rem 0.6rem; color: var(--muted);
}
.tag.gold { color: var(--gold); border-color: rgba(255,209,102,0.45); }
/* Profils (perso + public) : chips en pilule homogenes, alignes avec les
   badges staff / fondateur / niveau pour un rendu propre et coherent. */
.profile-tags .tag, .up-chips .tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border-radius: 99px; padding: 0.28rem 0.72rem; font-size: 0.68rem; line-height: 1;
}
.profile-side { margin-left: auto; display: flex; gap: 0.6rem; padding-bottom: 0.6rem; flex-wrap: wrap; }

.profile-grid {
  max-width: 1100px; margin: 2.2rem auto 0; padding: 0 1.5rem 3.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.card {
  background: var(--dusk); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
}
.card.wide { grid-column: 1 / -1; }
.card h3 {
  font-family: var(--font-display); font-size: 0.95rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--flamingo);
  margin-bottom: 1rem;
}
.card-head-row { display: flex; align-items: baseline; justify-content: space-between; }

/* ===== Carte « Mon réseau » (abonnements / abonnés) ===== */
#followCard .card-head-row { flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.follow-tabs { display: flex; gap: 0.4rem; }
.follow-tab {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: none; border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); font-size: 0.72rem; font-weight: 700; padding: 0.28rem 0.75rem; cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.follow-tab b { color: var(--text); }
.follow-tab:hover { border-color: var(--border-hot); color: var(--text); }
.follow-tab.on { border-color: var(--flamingo); color: #fff; background: rgba(255,77,141,0.12); }
.follow-tab.on b { color: var(--flamingo); }
.follow-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.55rem; margin-top: 1rem; }
.follow-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 0.5rem 0.6rem; cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.25,1,0.5,1), border-color 0.16s ease, background 0.16s ease;
  animation: followIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.follow-item:hover { transform: translateX(3px); border-color: rgba(255,77,141,0.4); background: rgba(255,77,141,0.06); }
@keyframes followIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.follow-item:nth-child(2) { animation-delay: 0.03s; }
.follow-item:nth-child(3) { animation-delay: 0.06s; }
.follow-item:nth-child(4) { animation-delay: 0.09s; }
.follow-item:nth-child(5) { animation-delay: 0.12s; }
.follow-item:nth-child(n+6) { animation-delay: 0.15s; }
.follow-av {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
  background: var(--dusk-2); border: 2px solid rgba(255,77,141,0.3);
}
.follow-av img { width: 100%; height: 100%; object-fit: cover; }
.follow-name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.85rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-go { color: var(--muted); font-size: 1.1rem; line-height: 1; opacity: 0; transform: translateX(-4px); transition: opacity 0.16s ease, transform 0.16s ease; }
.follow-item:hover .follow-go { opacity: 1; transform: none; color: var(--flamingo); }
.follow-empty { color: var(--muted); font-size: 0.85rem; font-style: italic; padding: 0.6rem 0 0.2rem; margin-top: 1rem; }
@media (hover: none) { .follow-go { opacity: 0.5; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .follow-item { animation: none; }
  .follow-item:hover, .follow-item:hover .follow-go { transform: none; }
}

.level-row { display: flex; align-items: center; gap: 0.9rem; }
.level-icon { font-size: 2.2rem; }
.level-info b { display: block; font-family: var(--font-display); letter-spacing: 0.08em; font-size: 1.2rem; color: #FFFFFF; }
.xp-track { height: 8px; background: var(--night); border-radius: 6px; margin-top: 1rem; overflow: hidden; }
.xp-bar { height: 100%; width: 0; background: var(--vice); border-radius: 6px; transition: width 0.8s cubic-bezier(0.22,1,0.36,1); }
.xp-label { margin-top: 0.5rem; }
.level-coins { margin-top: 0.6rem; display: flex; align-items: center; gap: 0.35rem; color: var(--sand); font-size: 0.92rem; }
.level-coins .lc-ico { font-size: 1rem; }
.level-coins b { color: var(--gold); font-size: 1.04rem; }

.bio-text { font-size: 0.9rem; color: var(--sand); min-height: 1.4em; }
#bioEdit textarea {
  width: 100%; min-height: 80px; margin: 0.6rem 0; resize: vertical;
  background: var(--night); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); padding: 0.7rem 0.9rem; font-size: 0.88rem;
}
#bioEdit textarea:focus { outline: none; border-color: var(--flamingo); }

.platform-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.1rem; font-size: 0.8rem; color: var(--muted); }
.platform-row.tight { margin-top: 0.3rem; }
.pf {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; color: var(--sand); font-size: 0.78rem; font-weight: 600;
  padding: 0.4rem 0.8rem; transition: all 0.18s;
}
.pf:hover { border-color: var(--border-hot); }
.pf.sel { background: rgba(255,77,141,0.16); border-color: var(--flamingo); }

.activity-item {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; cursor: pointer;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover .activity-title { color: var(--flamingo); }
.activity-kind { font-family: var(--font-mono); font-size: 0.64rem; color: var(--sunset); text-transform: uppercase; letter-spacing: 0.1em; flex-shrink: 0; }
.activity-title { flex: 1; color: var(--sand); transition: color 0.15s; }
.activity-time { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted); }

/* ============ CHAT (messagerie pro) ============ */
.chat-online { font-family: var(--font-mono); font-size: 0.7rem; color: var(--palm); }
.chat-box {
  background: linear-gradient(180deg, var(--dusk), #160b27);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 0; margin-bottom: 3.5rem; overflow: hidden;
  box-shadow: 0 24px 70px -36px rgba(0,0,0,0.7);
}
.chat-messages {
  height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.1rem 1.2rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,77,141,0.05), transparent 70%);
}
.chat-messages::-webkit-scrollbar { width: 7px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.chat-msg { display: flex; gap: 0.55rem; align-items: flex-end; animation: chatIn 0.25s cubic-bezier(0.22,1,0.36,1); max-width: 80%; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-msg .reply-avatar {
  width: 34px; height: 34px; font-size: 0.85rem; flex-shrink: 0; overflow: hidden;
  border-radius: 50%; border: 2px solid var(--border); background: var(--dusk-2);
  display: flex; align-items: center; justify-content: center;
}
.chat-msg .reply-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-msg-body {
  background: var(--dusk-2); border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px; padding: 0.5rem 0.85rem; min-width: 0;
}
.chat-msg-author { font-size: 0.75rem; font-weight: 700; color: var(--violet); }
.chat-msg-time { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted); margin-left: 0.5rem; }
.chat-msg-text { font-size: 0.88rem; line-height: 1.45; word-wrap: break-word; margin-top: 0.12rem; }
/* Bouton "Traduire" par message : icone 🌐 discrete, s'allume au survol, actif = violet */
.chat-translate {
  background: none; border: none; cursor: pointer; padding: 0.05rem 0.25rem; margin-left: 0.2rem;
  font-size: 0.72rem; line-height: 1; vertical-align: middle; border-radius: 6px;
  opacity: 0.45; filter: grayscale(0.4);
  transition: opacity 0.15s ease, transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}
.chat-msg:hover .chat-translate { opacity: 0.95; filter: grayscale(0); }
.chat-translate:hover { opacity: 1; transform: scale(1.18); filter: grayscale(0); }
.chat-translate:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; opacity: 1; }
.chat-translate.on { opacity: 1; filter: none; background: color-mix(in srgb, var(--violet) 24%, transparent); }
.chat-translate[disabled] { cursor: default; transform: none; }
@media (hover: none) { .chat-translate { opacity: 0.7; } }
.chat-msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.chat-msg.mine .chat-msg-body {
  background: linear-gradient(135deg, rgba(255,77,141,0.22), rgba(255,154,61,0.12));
  border-color: rgba(255,77,141,0.3); border-radius: 14px 4px 14px 14px;
}
.chat-login-msg { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 0.8rem; }
.chat-input-row {
  display: flex; gap: 0.6rem; padding: 0.85rem 1rem;
  border-top: 1px solid var(--border); background: rgba(255,255,255,0.015);
}
.chat-input-row input {
  flex: 1; background: var(--night); border: 1px solid var(--border); border-radius: 99px;
  color: var(--sand); padding: 0.7rem 1.15rem; font-size: 0.9rem;
}
.chat-input-row input:focus { outline: none; border-color: var(--flamingo); box-shadow: 0 0 0 3px rgba(255,77,141,0.12); }
.chat-input-row .btn { border-radius: 99px; padding-left: 1.4rem; padding-right: 1.4rem; }

/* ============ MODALS ============ */
.overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(8,4,14,0.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.overlay.on { display: flex; animation: overlayIn 0.25s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  background: var(--dusk); border: 1px solid var(--border-hot);
  border-radius: 18px; padding: 1.8rem;
  animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal.premium { text-align: center; }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem;
  background: none; border: none; color: var(--muted); font-size: 1rem;
  width: 32px; height: 32px; border-radius: 8px; transition: all 0.15s;
}
.modal-close:hover { color: var(--sand); background: rgba(255,255,255,0.06); }
.modal-title {
  font-family: var(--font-display); font-size: 1.5rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.2rem;
  color: #FFFFFF;
}
.modal label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.3rem; }
.modal input[type="text"], .modal input[type="email"], .modal input[type="password"], .modal input:not([type]), .modal textarea {
  width: 100%; background: var(--night); border: 1px solid var(--border);
  border-radius: 10px; color: var(--sand); padding: 0.7rem 0.9rem; font-size: 0.9rem;
  transition: border-color 0.2s;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--flamingo); }
.modal textarea { resize: vertical; }
.check-row { display: flex !important; gap: 0.6rem; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; font-size: 0.8rem !important; line-height: 1.45; margin-top: 1.1rem !important; cursor: pointer; }
.check-row input { width: auto !important; margin-top: 3px; accent-color: var(--flamingo); }

.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; background: var(--night); border-radius: 10px; padding: 4px; }
.auth-tabs button {
  flex: 1; background: none; border: none; color: var(--muted);
  font-weight: 700; font-size: 0.85rem; padding: 0.55rem; border-radius: 8px;
  transition: all 0.2s;
}
.auth-tabs button.on { background: var(--vice); color: #1A0820; }
.auth-tc { display: none; }
.auth-tc.on { display: block; animation: pageIn 0.25s ease; }
.auth-tc.center { text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 0.6rem; animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

#topicImagePreview { position: relative; margin-top: 0.7rem; }
#topicImagePreview img { border-radius: 10px; max-height: 180px; }
#topicImagePreview button {
  position: absolute; top: 6px; left: 6px;
  background: rgba(11,6,20,0.8); border: none; color: var(--sand);
  width: 28px; height: 28px; border-radius: 8px;
}
#topicImageInput { font-size: 0.8rem; color: var(--muted); }

.report-reasons { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.9rem; }
.report-reasons button {
  text-align: left; background: var(--night); border: 1px solid var(--border);
  border-radius: 10px; color: var(--sand); font-size: 0.85rem; padding: 0.65rem 0.9rem;
  transition: all 0.15s;
}
.report-reasons button:hover { border-color: var(--border-hot); }
.report-reasons button.sel { border-color: var(--flamingo); background: rgba(255,77,141,0.1); }

.premium-star { font-size: 3rem; color: var(--gold); text-shadow: 0 0 30px rgba(255,209,102,0.6); animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.premium-list { list-style: none; text-align: left; margin: 1.2rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.premium-list li { font-size: 0.88rem; padding-left: 1.6rem; position: relative; }
.premium-list li::before { content: '★'; position: absolute; left: 0; color: var(--tier, var(--gold)); }
.premium-note { margin-top: 0.8rem; }

/* ===== ADMIN DASHBOARD ===== */
.admin-overlay { padding: 0; }
.admin-dash {
  display: flex; width: 100%; height: 100%;
  background: var(--night, #0d0716); overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.22,1,0.36,1);
}
@media (min-width: 900px) {
  .admin-dash { width: 96vw; max-width: 1240px; height: 90vh; border-radius: 20px; border: 1px solid var(--border); }
}
/* Sidebar */
.admin-sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #150a26, #0d0716);
  border-right: 1px solid var(--border); padding: 1.2rem 0.9rem;
}
.admin-brand { display: flex; align-items: center; gap: 0.7rem; padding: 0.3rem 0.6rem 1.3rem; }
.admin-brand-logo {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; background: linear-gradient(135deg, rgba(255,77,141,0.25), rgba(255,154,61,0.18)); border: 1px solid var(--border-hot);
}
.admin-brand-txt b { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; font-size: 1rem; display: block; }
.admin-brand-txt b span { color: var(--flamingo); }
.admin-brand-txt small { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.admin-nav { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.admin-nav button {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  background: none; border: none; border-radius: 11px; color: var(--muted);
  font-size: 0.85rem; font-weight: 600; padding: 0.62rem 0.7rem; cursor: pointer;
  transition: background 0.15s, color 0.15s; position: relative;
}
.admin-nav button i { font-style: normal; font-size: 1rem; width: 1.4rem; text-align: center; }
.admin-nav button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.admin-nav button.on { background: linear-gradient(135deg, rgba(255,77,141,0.9), rgba(255,154,61,0.75)); color: #fff; box-shadow: 0 6px 20px -8px rgba(255,77,141,0.7); }
.admin-nav button .badge-count { margin-left: auto; }
.admin-whoami {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem; margin-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.admin-whoami-av {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); font-weight: 700; color: var(--flamingo);
}
.admin-whoami b { display: block; font-size: 0.82rem; }
.admin-whoami small { font-size: 0.58rem; }
/* Zone principale */
.admin-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.admin-page-title { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; font-size: 1.3rem; flex: 1; }
.admin-dash-close { position: static; }
.admin-burger { display: none; background: none; border: none; color: var(--text); font-size: 1.3rem; cursor: pointer; }
#adminBody { flex: 1; overflow-y: auto; padding: 1.4rem; }
@media (max-width: 899px) {
  .admin-sidebar {
    position: absolute; top: 0; bottom: 0; left: -260px; width: 230px; z-index: 20;
    transition: left 0.25s ease; box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
  .admin-sidebar.open { left: 0; }
  .admin-burger { display: block; }
}

/* ===== ADMIN — POLISH v3 (z-index, sidebar, transitions) ===== */
/* Le panneau admin passe SOUS les modales qu'on ouvre depuis lui (profil, casier)
   -> sinon le profil s'ouvrait DERRIERE le menu (meme z-index 800 que .overlay). */
#adminOverlay { z-index: 760; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.admin-dash { box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.05); }
@media (min-width: 900px) { .admin-dash { border-color: rgba(255,77,141,0.18); } }
.admin-brand-logo { box-shadow: 0 0 18px -4px rgba(255,77,141,0.5); }

/* Sidebar : survol qui glisse, icone qui respire, item actif avec barre d'accent */
.admin-nav button { transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease; }
.admin-nav button:hover { transform: translateX(3px); }
.admin-nav button i { transition: transform 0.16s ease; }
.admin-nav button:hover i { transform: scale(1.14); }
.admin-nav button.on { box-shadow: inset 3px 0 0 rgba(255,255,255,0.85), 0 8px 22px -8px rgba(255,77,141,0.75); }
.admin-nav button .badge-count {
  margin-left: auto; background: var(--flamingo); color: #fff; font-weight: 700;
  font-size: 0.56rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 10px -2px var(--flamingo);
}

/* Topbar : leger fond degrade */
.admin-topbar { background: linear-gradient(180deg, rgba(255,77,141,0.05), transparent); }

/* Apparition du contenu a chaque changement d'onglet */
@keyframes adminBodyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.admin-body-in { animation: adminBodyIn 0.32s cubic-bezier(0.22,1,0.36,1); }

@media (prefers-reduced-motion: reduce) {
  .admin-nav button, .admin-nav button:hover, .admin-nav button i, .admin-nav button:hover i { transform: none; }
  .admin-body-in, .admin-dash { animation: none; }
}

.admin-toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-toolbar input {
  flex: 1; min-width: 180px;
  background: var(--night); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); padding: 0.55rem 0.9rem; font-size: 0.85rem;
}
.admin-toolbar input:focus { outline: none; border-color: var(--flamingo); }
.admin-demo-note {
  background: rgba(255,209,102,0.08); border: 1px solid rgba(255,209,102,0.35);
  border-radius: 10px; padding: 0.6rem 0.9rem; margin-bottom: 1rem;
  font-size: 0.78rem; color: var(--gold);
}
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 720px) { .admin-cols { grid-template-columns: 1fr; } }
.admin-col-card { background: var(--night); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.admin-col-card h4 {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sunset); margin-bottom: 0.6rem;
}
.admin-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--dusk-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; overflow: hidden; vertical-align: middle;
}
.admin-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-user-cell { display: flex; align-items: center; gap: 0.55rem; }
.role-chip {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  border-radius: 6px; padding: 0.15rem 0.5rem; font-weight: 700;
}
.role-chip.admin { background: rgba(255,77,141,0.15); color: var(--flamingo); border: 1px solid rgba(255,77,141,0.4); }
.role-chip.moderator { background: rgba(139,108,255,0.15); color: var(--violet); border: 1px solid rgba(139,108,255,0.4); }
.report-preview {
  background: var(--dusk-2); border-left: 3px solid var(--border-hot);
  border-radius: 6px; padding: 0.5rem 0.8rem; margin: 0.5rem 0;
  font-size: 0.8rem; color: var(--sand); font-style: italic;
  max-height: 80px; overflow: hidden;
}
.admin-chat-row {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.55rem 0.2rem; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.admin-chat-row .who { font-weight: 700; color: var(--violet); flex-shrink: 0; }
.admin-chat-row .txt { flex: 1; word-break: break-word; }
.admin-chat-row .when { font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted); flex-shrink: 0; }
.announce-box textarea {
  width: 100%; min-height: 110px; resize: vertical;
  background: var(--night); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); padding: 0.8rem 1rem; font-size: 0.9rem; margin: 0.8rem 0;
}
.announce-box textarea:focus { outline: none; border-color: var(--flamingo); }
.announce-note { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.badge-count {
  background: var(--flamingo); color: var(--night);
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  border-radius: 8px; padding: 1px 6px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin-bottom: 1.4rem; }
.admin-stat {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem;
  transition: transform 0.18s, border-color 0.18s;
}
.admin-stat::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--accent); opacity: 0.85; }
.admin-stat:hover { transform: translateY(-2px); border-color: var(--accent); }
.admin-stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.admin-stat-top span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.admin-stat-icon { font-style: normal; font-size: 1rem; opacity: 0.9; }
.admin-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1; color: #fff; }

/* Tableau "Team" (membres) */
.admin-avatar.lg { width: 38px; height: 38px; font-size: 1rem; border-radius: 11px; }
.admin-user-id { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.admin-user-name { font-weight: 600; font-size: 0.88rem; }
.admin-user-sub { font-family: var(--font-mono); font-size: 0.66rem; }
.role-chip.member { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); }
.admin-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--text); }
.admin-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.admin-engage { display: flex; align-items: center; gap: 0.6rem; min-width: 140px; }
.admin-engage-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.admin-engage-bar i { display: block; height: 100%; border-radius: 6px; transition: width 0.4s ease; }
.admin-engage .mono { font-size: 0.68rem; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
.team-table td { padding: 0.7rem 0.6rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.admin-table th { text-align: left; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table .btn.sm { padding: 0.25rem 0.6rem; font-size: 0.68rem; }
.admin-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }

/* ============================================================
   ADMIN MEMBRES v2 — design pro, identite cliquable, animations
   ============================================================ */
/* Identite cliquable -> profil (souris + clavier) */
.admin-user-cell.clickable {
  cursor: pointer; border-radius: 10px; padding: 0.3rem 0.45rem; margin: -0.3rem -0.45rem;
  transition: background 0.16s ease; outline: none; width: 100%;
}
.admin-user-cell.clickable:hover { background: rgba(255,77,141,0.08); }
.admin-user-cell.clickable:focus-visible { box-shadow: 0 0 0 2px var(--flamingo); }
.admin-user-id { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.admin-user-name { font-weight: 700; transition: color 0.16s ease; white-space: nowrap; }
.admin-user-cell.clickable:hover .admin-user-name { color: var(--flamingo); }
.admin-user-sub { font-size: 0.66rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.admin-user-go {
  margin-left: auto; font-size: 1.2rem; line-height: 1; color: var(--muted);
  opacity: 0; transform: translateX(-5px); transition: opacity 0.16s ease, transform 0.16s ease;
}
.admin-user-cell.clickable:hover .admin-user-go { opacity: 1; transform: none; color: var(--flamingo); }
.admin-avatar.lg { transition: transform 0.18s cubic-bezier(0.25,1,0.5,1), box-shadow 0.2s; }
.admin-user-cell.clickable:hover .admin-avatar.lg { transform: scale(1.07); }

/* Lignes : survol propre + separateurs doux */
.team-table tbody tr { transition: background 0.15s ease; }
.team-table tbody tr:hover { background: rgba(255,255,255,0.022); }
.team-table td { border-bottom: 1px solid rgba(255,255,255,0.06); }
.team-table tbody tr:last-child td { border-bottom: none; }
.admin-engage-bar i { box-shadow: 0 0 8px -1px currentColor; }

/* Boutons d'action icone (oeil + casier) : carres et nets */
.admin-actions .act-view, .admin-actions .act-rec {
  width: 30px; min-width: 30px; padding: 0; font-size: 0.9rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-actions .act-view:hover { color: var(--flamingo); border-color: rgba(255,77,141,0.45); background: rgba(255,77,141,0.08); }
.admin-actions .act-rec:hover { color: var(--sunset); border-color: rgba(255,154,61,0.45); }

/* Entree animee des lignes (une seule fois : classe .admin-rows-intro posee par le JS) */
@keyframes admRowIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.admin-rows-intro tbody tr { animation: admRowIn 0.42s cubic-bezier(0.25,1,0.5,1) both; }
.admin-rows-intro tbody tr:nth-child(2) { animation-delay: 0.04s; }
.admin-rows-intro tbody tr:nth-child(3) { animation-delay: 0.08s; }
.admin-rows-intro tbody tr:nth-child(4) { animation-delay: 0.12s; }
.admin-rows-intro tbody tr:nth-child(5) { animation-delay: 0.16s; }
.admin-rows-intro tbody tr:nth-child(6) { animation-delay: 0.2s; }
.admin-rows-intro tbody tr:nth-child(n+7) { animation-delay: 0.24s; }

/* Mobile : le tableau devient des cartes empilees (lisibles + tactiles) */
@media (max-width: 720px) {
  .team-table thead { display: none; }
  .team-table, .team-table tbody, .team-table tr, .team-table td { display: block; width: 100%; }
  .team-table tbody tr {
    border: 1px solid var(--line); border-radius: 14px; margin-bottom: 0.85rem;
    padding: 0.7rem 0.9rem; background: rgba(255,255,255,0.02);
  }
  .team-table tbody tr:hover { background: rgba(255,255,255,0.03); }
  .team-table td { border: none !important; padding: 0.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 0.9rem; }
  .team-table td::before {
    content: attr(data-label); font-family: var(--font-mono); font-size: 0.6rem;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex-shrink: 0;
  }
  .team-table td:first-child { display: block; padding-bottom: 0.6rem; margin-bottom: 0.2rem; border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
  .team-table td:first-child::before { display: none; }
  .admin-user-go { opacity: 0.6; transform: none; }
  .admin-engage { min-width: 0; flex: 1; max-width: 60%; }
  .admin-actions { justify-content: flex-end; flex: 1; }
}

/* Accessibilite : respecte "reduire les animations" */
@media (prefers-reduced-motion: reduce) {
  .admin-rows-intro tbody tr { animation: none; }
  .admin-user-cell.clickable, .admin-avatar.lg, .admin-user-go { transition: none; }
  .admin-user-cell.clickable:hover .admin-avatar.lg { transform: none; }
}

.report-card { background: var(--night); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.7rem; }
.report-card .reason { color: var(--sunset); font-weight: 700; font-size: 0.85rem; }
.report-card .detail { font-size: 0.8rem; color: var(--muted); margin: 0.3rem 0 0.6rem; }

/* ============ LIGHTBOX / TOASTS ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 900; display: none;
  background: rgba(8,4,14,0.92); align-items: center; justify-content: center;
  cursor: zoom-out; padding: 2rem;
}
.lightbox.on { display: flex; animation: overlayIn 0.2s ease; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

#toastWrap { position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 950; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; }
.toast {
  background: var(--dusk-2); border: 1px solid var(--border-hot); color: var(--sand);
  border-radius: 12px; padding: 0.7rem 1.4rem; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: toastIn 0.35s cubic-bezier(0.22,1,0.36,1);
}
.toast.ok { border-color: rgba(43,217,168,0.5); }
.toast.err { border-color: rgba(255,92,92,0.5); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.out { opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border); margin-top: 2rem;
  padding: 2.5rem 1.5rem 3rem; text-align: center; color: var(--muted); font-size: 0.78rem;
}
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.06em; color: #FFFFFF; margin-bottom: 0.6rem; }
.footer-logo span {
  background: var(--vice);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer p { max-width: 560px; margin: 0.3rem auto; }

/* ============ SCROLL REVEAL ============ */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--dusk-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2D1C4D; }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  #navAuth .btn.ghost { display: none; }
  #navUser .btn.ghost { display: none; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: none; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .profile-grid { grid-template-columns: 1fr; }
  .cd-cell { min-width: 60px; padding: 0.5rem 0.6rem; }
  .topic-row-stats { display: none; }
  .profile-side { margin-left: 0; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal-up { opacity: 1; transform: none; }
}

/* ===== SONDAGES ===== */
.poll-toggle-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; margin-top: 0.8rem; }
.poll-opt-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.poll-opt-row input { flex: 1; }
.poll-opt-row .poll-opt-del { background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; padding: 0 0.7rem; }
.poll-create-foot { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.4rem; }
.poll-box { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; margin: 1rem 0; background: rgba(255,255,255,0.02); }
.poll-head { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 0.8rem; }
.poll-total { margin-left: auto; color: var(--muted); font-size: 0.78rem; }
.poll-opt { position: relative; display: flex; align-items: center; width: 100%; text-align: left; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.9rem; margin-bottom: 0.45rem; color: var(--text); cursor: pointer; overflow: hidden; transition: border-color 0.2s, transform 0.15s; }
.poll-opt:hover:not(.closed) { border-color: var(--vice); transform: translateX(2px); }
.poll-opt.mine { border-color: var(--vice); }
.poll-opt.closed { cursor: default; }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,77,141,0.22), rgba(255,154,61,0.16)); transition: width 0.6s cubic-bezier(0.22,1,0.36,1); }
.poll-label { position: relative; z-index: 1; flex: 1; }
.poll-pct { position: relative; z-index: 1; color: var(--muted); font-size: 0.8rem; }
.poll-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== PREDICTIONS ===== */
.preds-balance { margin-bottom: 1rem; font-size: 0.95rem; }
.preds-balance b { color: var(--gold); }
.preds-section-title { font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; margin: 1.6rem 0 0.9rem; }
.preds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.pred-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; background: rgba(255,255,255,0.02); transition: border-color 0.2s, transform 0.18s; }
.pred-card:hover { border-color: rgba(255,77,141,0.4); transform: translateY(-2px); }
.pred-card.resolved { opacity: 0.85; }
.pred-card.cancelled { opacity: 0.55; }
.pred-q { font-weight: 600; margin-bottom: 0.4rem; }
.pred-pot { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.8rem; }
.pred-opt { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.85rem; margin-bottom: 0.4rem; overflow: hidden; transition: border-color 0.2s; }
.pred-opt.picked { border-color: var(--vice); box-shadow: 0 0 0 1px var(--vice); }
.pred-opt.winner { border-color: var(--gold); }
.pred-opt.mine { border-color: var(--vice); }
.pred-my { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.pred-bet-form { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.7rem; flex-wrap: wrap; }
.pred-amount { width: 90px; }
.pred-hint { font-size: 0.75rem; color: var(--muted); }
.preds-table { margin-top: 0.5rem; }

/* ===== MEDIAS (embeds, galerie, image de reponse) ===== */
.media-embed { display: block; position: relative; width: 100%; max-width: 560px; aspect-ratio: 16/9; margin: 0.6rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-card { display: inline-flex; align-items: center; gap: 0.55rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.9rem; margin: 0.4rem 0; text-decoration: none; color: var(--text); transition: border-color 0.2s; }
.media-card:hover { border-color: var(--vice); }
.media-card-icon { font-size: 1.1rem; }
.reply-img { max-width: 320px; max-height: 240px; border-radius: 10px; margin-top: 0.5rem; cursor: zoom-in; border: 1px solid var(--line); display: block; }
.reply-img-btn { cursor: pointer; font-size: 1.1rem; margin-right: auto; opacity: 0.7; transition: opacity 0.2s; }
.reply-img-btn:hover { opacity: 1; }
#replyImagePreview { position: relative; display: inline-block; margin-top: 0.5rem; }
#replyImagePreview img { max-height: 120px; border-radius: 8px; border: 1px solid var(--line); display: block; }
#replyImagePreview button { position: absolute; top: -8px; right: -8px; background: var(--danger, #e5484d); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-size: 0.7rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.gallery-cell { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-cell:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: rgba(10,4,20,0.55); opacity: 0; transition: opacity 0.2s; }
.gallery-cell:hover .gallery-overlay { opacity: 1; }

/* ===== SOCIAL : profil public + DM ===== */
.clickable { cursor: pointer; }
.clickable:hover { text-decoration: underline; }
.up-modal { padding: 0; overflow: hidden; max-width: 520px; width: min(520px, calc(100vw - 2rem)); }
.up-banner {
  position: relative; height: 130px;
  background:
    radial-gradient(ellipse 70% 90% at 80% 0%, rgba(255,154,61,0.4), transparent 60%),
    radial-gradient(ellipse 80% 100% at 15% 100%, rgba(255,77,141,0.45), transparent 65%),
    linear-gradient(135deg, #2a1040, #1a0a2e);
  background-size: cover; background-position: center;
}
.up-banner-fade {
  position: absolute; inset: auto 0 0 0; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(20,8,31,0.85));
  pointer-events: none;
}
.up-body { padding: 0 1.6rem 1.5rem; }
.up-head { display: flex; gap: 1rem; align-items: flex-end; margin-top: -42px; position: relative; flex-wrap: wrap; }
.up-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  border: 3px solid var(--vice-solid, #FF4D8D);
  box-shadow: 0 0 0 4px rgba(20,8,31,0.95), 0 8px 24px rgba(0,0,0,0.45);
  background: #1a0a2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; overflow: hidden; flex-shrink: 0;
}
.up-avatar img { width: 100%; height: 100%; object-fit: cover; }
.up-id { flex: 1; min-width: 200px; padding-bottom: 0.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.up-id h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; line-height: 1.1; }
.up-title-line { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin: 0.15rem 0 0.35rem; min-height: 0.9em; }
/* Rangée de badges pleine largeur, alignée et homogène */
.up-chips { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; margin-top: 0.9rem; }
.up-chips:empty { display: none; }
.up-chips .tag { margin: 0; }
.up-level-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 99px; padding: 0.26rem 0.7rem; line-height: 1;
  background: rgba(11,6,20,0.45);
}
.up-actions { display: flex; gap: 0.5rem; align-self: flex-end; padding-bottom: 0.3rem; }
.up-bio { margin: 1rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--text); }
.up-bio.empty { color: var(--muted); font-style: italic; }
.up-stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 1.1rem 0 0; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.02);
}
.up-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.7rem 0.3rem;
}
.up-stat + .up-stat { border-left: 1px solid var(--border); }
.up-stat b { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 600; }
.up-stat span { font-size: 0.56rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.up-level { margin: 0.9rem 0 0; }
.up-level .xp-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
.up-xp-label { font-size: 0.64rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.35rem; display: flex; justify-content: space-between; }
.up-section-label {
  margin: 1.2rem 0 0.55rem; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 0.7rem;
}
.up-section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.up-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.up-badge {
  cursor: default; font-size: 1.15rem; width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.03);
  transition: transform 0.15s, border-color 0.15s;
}
.up-badge:hover { transform: translateY(-2px); border-color: rgba(255,209,102,0.5); }
.up-badges-empty { font-size: 0.78rem; color: var(--muted); font-style: italic; }
@media (max-width: 480px) {
  .up-actions { width: 100%; }
  .up-actions .btn { flex: 1; }
  .up-stats { grid-template-columns: repeat(3, 1fr); }
  .up-stat:nth-child(4) { border-left: none; border-top: 1px solid var(--border); }
  .up-stat:nth-child(5) { border-top: 1px solid var(--border); }
}
.dm-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1rem; height: 560px; }
.dm-panel {
  background: linear-gradient(180deg, var(--dusk), #160b27);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 70px -40px rgba(0,0,0,0.7);
}
.dm-side-head {
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,0.02);
}
.dm-side { flex: 1; overflow-y: auto; padding: 0.5rem; }
.dm-conv-row {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  background: none; border: none; color: var(--text); padding: 0.6rem 0.7rem;
  border-radius: 12px; cursor: pointer; text-align: left; transition: background 0.15s;
}
.dm-conv-row:hover { background: rgba(255,255,255,0.04); }
.dm-conv-row.on { background: rgba(255,77,141,0.12); }
.dm-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--dusk-2); border: 1px solid var(--border); font-size: 1rem; flex-shrink: 0; }
.dm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dm-conv-txt { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.dm-conv-txt b { font-size: 0.86rem; }
.dm-conv-txt small { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.dm-conv-time { font-size: 0.58rem; color: var(--muted); flex-shrink: 0; align-self: flex-start; }
.dm-thread-panel { position: relative; }
.dm-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.8rem; text-align: center;
  color: var(--muted); padding: 2rem;
}
.dm-empty-icon { font-size: 2.6rem; opacity: 0.5; }
.dm-empty p { max-width: 240px; font-size: 0.88rem; line-height: 1.5; }
.dm-thread { display: flex; flex-direction: column; height: 100%; }
.dm-thread-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.dm-thread-id { display: flex; align-items: center; gap: 0.6rem; }
.dm-thread-id .dm-avatar { width: 34px; height: 34px; }
.dm-thread-head b { font-size: 0.95rem; }
/* En-tete de conversation + avatars de la liste cliquables -> profil */
.dm-thread-id:hover b { text-decoration: underline; }
.dm-thread-id:hover .dm-avatar, .dm-conv-row .dm-avatar:hover { border-color: var(--border-hot); }
.dm-messages {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem;
  padding: 1.1rem 1.2rem;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,77,141,0.04), transparent 70%);
}
.dm-messages::-webkit-scrollbar { width: 7px; }
.dm-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
.dm-msg {
  max-width: 72%; background: var(--dusk-2); border: 1px solid var(--border);
  border-radius: 4px 14px 14px 14px; padding: 0.5rem 0.85rem; align-self: flex-start;
  animation: chatIn 0.22s cubic-bezier(0.22,1,0.36,1);
}
.dm-msg span { font-size: 0.88rem; line-height: 1.45; word-wrap: break-word; }
.dm-msg.me {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,77,141,0.22), rgba(255,154,61,0.12));
  border-color: rgba(255,77,141,0.3); border-radius: 14px 4px 14px 14px;
}
.dm-msg time { display: block; font-size: 0.58rem; color: var(--muted); margin-top: 0.25rem; font-family: var(--font-mono); }
.dm-thread .chat-input-row { border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .dm-layout { grid-template-columns: 1fr; height: auto; }
  .dm-side-panel { max-height: 230px; }
  .dm-thread-panel { height: 460px; }
}

/* ===== GAMIFICATION ===== */
.streak-widget { display: flex; align-items: center; gap: 0.9rem; max-width: 1100px; margin: 1rem auto 0; padding: 0.8rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,154,61,0.06); }
.streak-flame { font-size: 1.6rem; }
.streak-info { display: flex; flex-direction: column; flex: 1; }
.streak-info span { font-size: 0.72rem; color: var(--muted); }
.toast.achievement { display: flex; align-items: center; gap: 0.7rem; border: 1px solid var(--gold, #FFD166); background: rgba(255,209,102,0.12); animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.ach-icon { font-size: 1.6rem; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.6rem; }
.ach-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.6rem 0.3rem; border: 1px solid var(--line); border-radius: 10px; opacity: 0.32; filter: grayscale(0.9); transition: opacity 0.2s; text-align: center; }
.ach-cell.on { opacity: 1; filter: none; border-color: rgba(255,209,102,0.45); }
.ach-cell span { font-size: 1.4rem; }
.ach-cell label { font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.challenge-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.challenge-row:last-child { border-bottom: none; }
.challenge-row.done { opacity: 0.55; }
.ch-icon { font-size: 1.3rem; }
.ch-body { flex: 1; }
.ch-body .xp-track { margin: 0.25rem 0; }
.ch-body .mono { font-size: 0.68rem; color: var(--muted); }
.ch-done { color: var(--gold); font-size: 1.2rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.9rem; }
.shop-cell { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); transition: border-color 0.2s, transform 0.18s; }
.shop-cell:hover { border-color: rgba(255,77,141,0.4); transform: translateY(-2px); }
.shop-color { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); }
.shop-title-prev { font-size: 0.8rem; color: var(--gold); }
.shop-price { font-size: 0.75rem; color: var(--muted); }
.shop-tier { font-size: 0.6rem; }

/* ===== PREMIUM ===== */
.premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 1000px; margin: 1rem auto 1.5rem; padding-top: 0.5rem; align-items: stretch; }
.premium-card {
  --tier: var(--gold);
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), border-color 0.22s, box-shadow 0.22s;
}
/* Barre d'accent colorée par palier en haut de la carte (coins arrondis assortis) */
.premium-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--tier); opacity: 0.85; border-radius: 18px 18px 0 0;
}
/* Halo coloré qui apparait au survol (respecte les coins arrondis) */
.premium-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  border-radius: 18px;
  background: radial-gradient(ellipse 90% 50% at 50% 0%, var(--tier), transparent 65%);
  transition: opacity 0.25s; mix-blend-mode: soft-light;
}
.premium-card:hover {
  transform: translateY(-6px);
  border-color: var(--tier);
  box-shadow: 0 22px 50px -20px var(--tier);
}
.premium-card:hover::after { opacity: 0.25; }
.tier-vice { --tier: #FFC062; }
.tier-leonida { --tier: #FF4D8D; }
.tier-legende { --tier: #FFD166; }
.premium-card.featured {
  border-color: var(--vice);
  background: linear-gradient(175deg, rgba(255,77,141,0.12), rgba(255,154,61,0.05));
  box-shadow: 0 12px 44px -18px rgba(255,77,141,0.4);
}
.premium-card.tier-legende { background: linear-gradient(175deg, rgba(255,209,102,0.08), rgba(255,255,255,0.01)); }
.premium-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--vice); color: #fff; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; padding: 0.28rem 0.85rem; border-radius: 99px; white-space: nowrap;
  box-shadow: 0 4px 14px -3px rgba(255,77,141,0.6);
}
.premium-tier-head { text-align: center; margin-bottom: 1.1rem; }
.premium-stars {
  display: inline-flex; gap: 0.15rem; font-size: 1.45rem; color: var(--tier);
  text-shadow: 0 0 20px color-mix(in srgb, var(--tier) 55%, transparent);
}
.premium-tier-head h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; margin: 0.45rem 0 0.3rem; }
.tier-legende .premium-tier-head h2 {
  background: linear-gradient(90deg, #FFD166, #FFF3C4, #FFD166); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: legendeShift 3s linear infinite;
}
.premium-price { font-size: 1.7rem; font-weight: 700; color: var(--tier); font-family: var(--font-display); }
.premium-price span { font-size: 0.75rem; color: var(--muted); font-weight: 400; font-family: var(--font-body, inherit); }
.premium-card .premium-list { flex: 1; }
/* Pastille "palier actuel" si l'utilisateur l'a déjà */
.premium-card.is-current { border-color: var(--tier); }
.premium-current-badge {
  position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono);
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tier);
  border: 1px solid var(--tier); border-radius: 99px; padding: 0.2rem 0.55rem;
}
.tier-badge { color: var(--gold); font-size: 0.8em; letter-spacing: 0.05em; }
.tier-badge.legende { text-shadow: 0 0 10px rgba(255,209,102,0.8); }
.name-legende {
  background: linear-gradient(90deg, #FF4D8D 0%, #FF9A3D 20%, #FFD166 40%, #FFF3C4 50%, #FFD166 60%, #FF9A3D 80%, #FF4D8D 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: legendeShift 2.2s linear infinite;
  font-weight: 700;
}
@keyframes legendeShift { from { background-position: 0% 0; } to { background-position: -200% 0; } }
/* Pseudo dore automatique des paliers VICE / LEONIDA (couleurs solides : lisibles
   partout, y compris mobile, contrairement au degrade qui peut casser). */
.name-vice    { color: #FFD166; font-weight: 700; }
.name-leonida { color: #FFC23D; font-weight: 700; text-shadow: 0 0 8px rgba(255,194,61,0.45); }
#legendsShowcase {
  border: 1px solid rgba(255,209,102,0.3); border-radius: 16px;
  background: radial-gradient(ellipse 90% 120% at 50% -20%, rgba(255,209,102,0.08), transparent 70%);
  padding: 1.1rem 1.2rem; margin-bottom: 1.8rem;
}
#legendsShowcase .preds-section-title { margin: 0 0 0.9rem; font-size: 0.95rem; }
.legends-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.legend-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,209,102,0.3); border-radius: 12px; padding: 0.7rem 1rem; cursor: pointer; color: var(--text); transition: transform 0.18s, box-shadow 0.2s; min-width: 88px; }
.legend-cell:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(255,209,102,0.18); }
.legend-cell b { font-size: 0.82rem; }
.legend-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: rgba(255,209,102,0.1); border: 2px solid rgba(255,209,102,0.45); }
.legend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-tabs {
  display: flex; gap: 0.4rem; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.chat-tabs button { background: none; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: 0.75rem; font-weight: 600; padding: 0.34rem 0.95rem; cursor: pointer; transition: all 0.2s; }
.chat-tabs button:hover { color: var(--text); border-color: var(--border-hot); }
.chat-tabs button.on { border-color: var(--vice); color: var(--text); background: rgba(255,77,141,0.1); }
/* Plusieurs salons : scroll horizontal discret + description du salon actif */
.chat-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chat-tabs::-webkit-scrollbar { display: none; }
.chat-tabs button { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35rem; }
.chat-channel-desc {
  margin: 0; padding: 0.5rem 1.1rem; font-size: 0.76rem; color: var(--muted);
  border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015);
}
.premium-cat .cat-lock { position: absolute; top: 0.8rem; right: 0.9rem; font-size: 1.1rem; }
.cat-card.premium-cat { border-color: rgba(255,209,102,0.3); position: relative; }
.cat-card.premium-cat.locked { opacity: 0.75; }
body.vice-night { filter: saturate(1.15) contrast(1.04); }

/* ===== FIX : conteneur centre pour les nouvelles pages ===== */
#page-predictions > :not(.page-head), #page-gallery > :not(.page-head),
#page-shop > :not(.page-head), #page-messages > :not(.page-head),
#page-premium > :not(.page-head) {
  max-width: 1100px; margin-left: auto; margin-right: auto;
  padding-left: 1.5rem; padding-right: 1.5rem; box-sizing: border-box;
}
#page-predictions, #page-gallery, #page-shop, #page-messages, #page-premium { padding-bottom: 3.5rem; }

/* Champs hors modal (mise de pari, dates admin, etc.) */
input[type="number"], input[type="datetime-local"] {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); padding: 0.45rem 0.6rem; font-size: 0.85rem;
}
input[type="number"]:focus, input[type="datetime-local"]:focus { outline: none; border-color: var(--flamingo); }

/* ===== FIX : vrais boutons sous les reponses ===== */
.reply-foot-actions { flex-wrap: wrap; }
.reply-foot-actions button {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 99px;
  padding: 0.34rem 0.85rem; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.12s, background 0.15s;
}
.reply-foot-actions button:hover { background: rgba(255,255,255,0.06); border-color: var(--border-hot); transform: translateY(-1px); }

/* ===== FIX LISIBILITE : Oswald 600 partout ou la police display est utilisee ===== */
.loader-logo, .nav-logo, .cd-cell span, .cd-sep, .rank-pos, .footer-logo,
.page-title, .hero-title, .modal-title, .profile-id h1, .level-info b,
.admin-stat b, .preds-section-title, .premium-tier-head h2, .section-head h2 {
  font-weight: 600;
}
/* Halos attenues pour des titres plus nets */
.page-title { text-shadow: 0 2px 10px rgba(255,77,141,0.12); }
.hero-title { text-shadow: 0 6px 30px rgba(255,77,141,0.2); }

/* Le degrade Legende est un simple changement de couleur (pas un mouvement) :
   on le garde meme quand le systeme demande de reduire les animations. */
@media (prefers-reduced-motion: reduce) {
  .name-legende { animation-duration: 2.2s !important; animation-iteration-count: infinite !important; }
}

/* ===== BOUTIQUE v2 : sections, descriptions, aura ===== */
/* Glow NET : halo en opacite reduite -> les lettres restent franches (pas floues), l'aura reste visible. */
.name-glow {
  text-shadow:
    0 0 2px color-mix(in srgb, currentColor 38%, transparent),
    0 0 6px color-mix(in srgb, currentColor 22%, transparent);
}
/* Fallback navigateurs sans color-mix : glow leger */
@supports not (color: color-mix(in srgb, red, blue)) {
  .name-glow { text-shadow: 0 0 4px currentColor; }
}
.shop-section-head { margin: 1.6rem 0 0.8rem; }
.shop-section-head h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem; }
.shop-section-head p { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.shop-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.9rem; }
.shop-cell { align-items: flex-start; text-align: left; }
.shop-cell.equipped { border-color: rgba(255,209,102,0.5); box-shadow: 0 0 18px rgba(255,209,102,0.08) inset; }
.shop-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.45; flex: 1; }
.shop-cell-foot { display: flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: space-between; }
.shop-price.owned { color: var(--gold); }
.shop-price.too-expensive { color: var(--danger, #e5484d); }
.shop-glow-prev { font-weight: 700; color: var(--flamingo); font-size: 0.95rem; padding: 0.35rem 0; }
.shop-cell .btn.full { width: 100%; }
/* Bouton d'un item equipe : cliquable pour deselectionner -> teinte rouge au survol = retrait */
.shop-cell.equipped .btn { cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.shop-cell.equipped .btn:hover { color: #ff6b6b; border-color: rgba(255,107,107,0.5); background: rgba(255,107,107,0.08); }

/* ===== Badge de titre boutique (profil perso + carte publique) ===== */
.tag.title-badge {
  color: var(--gold); border-color: rgba(255,209,102,0.45);
  background: rgba(255,209,102,0.07);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ===== BOUTIQUE v3 : page pro (sections empilees, portefeuille, cartes homogenes) ===== */
.shop-list { display: block; }
.shop-wallet {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem;
  border: 1px solid rgba(255,209,102,0.4); border-radius: 14px;
  padding: 0.8rem 1.2rem; background: linear-gradient(135deg, rgba(255,209,102,0.08), rgba(255,154,61,0.04));
  min-width: 200px;
}
.shop-wallet-label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--muted); }
.shop-wallet b { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--gold); line-height: 1; }
.shop-wallet b small { font-size: 0.8rem; color: var(--muted); font-weight: 400; }
.shop-wallet-hint { font-size: 0.62rem; color: var(--muted); text-align: right; max-width: 230px; }
.shop-section-head {
  margin: 2.4rem 0 1rem; display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); padding-bottom: 0.6rem;
}
.shop-section-head h3 { font-size: 1.15rem; margin: 0; }
.shop-section-head p { margin: 0; flex: 1; min-width: 200px; text-align: right; }
.shop-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.shop-prev {
  width: 100%; height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: 10px; background: rgba(255,255,255,0.025); margin-bottom: 0.7rem;
}
.shop-cell { padding: 1rem; }
.shop-cell b { font-size: 0.95rem; }
.shop-cell .shop-desc { margin: 0.3rem 0 0.7rem; min-height: 2.6em; }
@media (max-width: 640px) {
  .shop-wallet { align-items: flex-start; width: 100%; }
  .shop-wallet-hint { text-align: left; }
  .shop-section-head p { text-align: left; }
}

/* ============================================================
   BOUTIQUE v4 — REDESIGN PREMIUM (PC + mobile)
   ============================================================ */
/* --- Portefeuille = element hero (reflet + jeton + glow) --- */
.page-head.row { align-items: flex-start; }
.shop-wallet {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,209,102,0.5); border-radius: 16px;
  padding: 0.9rem 1.3rem;
  background: linear-gradient(135deg, rgba(255,209,102,0.17), rgba(255,122,89,0.06) 55%, rgba(255,77,141,0.05));
  box-shadow: 0 14px 36px -16px rgba(255,209,102,0.45), inset 0 1px 0 rgba(255,255,255,0.08);
}
.shop-wallet::after {              /* jeton decoratif en filigrane */
  content: "🪙"; position: absolute; right: -10px; bottom: -16px;
  font-size: 4.6rem; opacity: 0.10; transform: rotate(-12deg); pointer-events: none;
}
.shop-wallet::before {             /* reflet qui balaie une fois a l'ouverture */
  content: ""; position: absolute; top: 0; left: -70%; width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.20), transparent);
  transform: skewX(-18deg); animation: walletShine 2.4s ease-in-out 0.35s 1;
}
@keyframes walletShine { 0% { left: -70%; } 55%, 100% { left: 140%; } }
.shop-wallet-label { color: var(--gold); opacity: 0.9; }
.shop-wallet b { font-size: 2rem; text-shadow: 0 0 22px rgba(255,209,102,0.45); }

/* --- Carte article : profondeur + survol qui souleve & illumine --- */
.shop-cell {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.09); border-radius: 16px;
  box-shadow: 0 6px 22px -14px rgba(0,0,0,0.7);
  transition: transform 0.22s cubic-bezier(0.25,1,0.5,1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.shop-cell::before {               /* lisere superieur lumineux au survol */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--flamingo), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.shop-cell:hover {
  transform: translateY(-5px);
  border-color: rgba(255,77,141,0.45);
  box-shadow: 0 22px 46px -20px rgba(255,77,141,0.5), 0 0 0 1px rgba(255,77,141,0.18);
}
.shop-cell:hover::before { opacity: 1; }
.shop-cell:hover .shop-prev { transform: scale(1.05); }

/* Carte equipee : accent or + pastille de validation */
.shop-cell.equipped {
  border-color: rgba(255,209,102,0.55);
  background: linear-gradient(165deg, rgba(255,209,102,0.1), rgba(255,255,255,0.012));
  box-shadow: 0 8px 26px -16px rgba(255,209,102,0.4), inset 0 0 0 1px rgba(255,209,102,0.12);
}
.shop-cell.equipped::after {
  content: "✓"; position: absolute; top: 0.55rem; right: 0.55rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #1a0f07; font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(255,209,102,0.6);
}

/* --- Vitrine d'apercu --- */
.shop-prev {
  height: 78px; border-radius: 12px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,77,141,0.12), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.28s cubic-bezier(0.25,1,0.5,1);
}
.shop-color {
  width: 48px; height: 48px; border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 4px rgba(255,255,255,0.04);
}
.shop-title-prev { font-size: 1rem; letter-spacing: 0.02em; text-shadow: 0 0 10px rgba(255,209,102,0.35); }
.shop-glow-prev { font-size: 1.15rem; }

/* --- Nom, prix, pastille tier, bouton --- */
.shop-cell b { font-size: 1rem; letter-spacing: 0.01em; }
.shop-cell .shop-desc { min-height: 2.7em; }
.shop-cell-foot { margin-top: auto; }
.shop-price { font-size: 0.88rem; font-weight: 700; color: var(--gold); display: inline-flex; align-items: center; gap: 0.3rem; }
.shop-price:not(.owned)::before { content: "🪙"; font-size: 0.85em; }
.shop-price.owned { color: #2BD9A8; }
.shop-price.too-expensive { color: #ff8a8d; }
.tag.gold.shop-tier {
  font-weight: 700; letter-spacing: 0.06em;
  background: linear-gradient(135deg, rgba(255,209,102,0.22), rgba(255,154,61,0.12));
  border-color: rgba(255,209,102,0.5); color: var(--gold);
  box-shadow: 0 0 14px rgba(255,209,102,0.18);
}
.shop-cell .btn.full { margin-top: 0.7rem; font-weight: 700; letter-spacing: 0.03em; }
.shop-cell .btn.vice.full { box-shadow: 0 8px 22px -10px rgba(255,77,141,0.6); }
.shop-cell .btn.vice.full:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(255,77,141,0.78); }

/* --- Entree animee (une seule fois : flag .shop-intro pose par le JS) --- */
@keyframes shopCardIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.shop-intro .shop-cell { animation: shopCardIn 0.5s cubic-bezier(0.25,1,0.5,1) both; }
.shop-intro .shop-row .shop-cell:nth-child(2) { animation-delay: 0.05s; }
.shop-intro .shop-row .shop-cell:nth-child(3) { animation-delay: 0.1s; }
.shop-intro .shop-row .shop-cell:nth-child(4) { animation-delay: 0.15s; }
.shop-intro .shop-row .shop-cell:nth-child(5) { animation-delay: 0.2s; }
.shop-intro .shop-row .shop-cell:nth-child(n+6) { animation-delay: 0.25s; }

/* --- Mobile : cibles tactiles confortables --- */
@media (max-width: 640px) {
  .shop-cell .btn.full { min-height: 44px; }
  .shop-wallet b { font-size: 1.7rem; }
  .shop-prev { height: 68px; }
}

/* --- Accessibilite : respecte "reduire les animations" --- */
@media (prefers-reduced-motion: reduce) {
  .shop-cell, .shop-prev { transition: none; }
  .shop-cell:hover { transform: none; }
  .shop-cell:hover .shop-prev { transform: none; }
  .shop-intro .shop-cell { animation: none; }
  .shop-wallet::before { animation: none; display: none; }
}

/* ===== Formulaire admin predictions : labels clairs ===== */
.ap-form .ap-label { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.3rem; }
.ap-form .ap-label .ap-opt { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.ap-form .ap-help { font-size: 0.72rem; color: var(--muted); margin: 0.35rem 0 0; line-height: 1.5; }
.ap-form #apCreate { margin-top: 1rem; }
.ap-form textarea { font-family: var(--font-mono); font-size: 0.8rem; }

/* ===== Predictions : lignes de reponses admin + bouton traduire + statuts ===== */
.ap-opt-row { display: grid; grid-template-columns: 26px 1fr 1fr 30px; gap: 0.5rem; align-items: center; margin-bottom: 0.45rem; }
.ap-opt-num { color: var(--muted); font-size: 0.75rem; text-align: center; }
.ap-opt-del { background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); width: 28px; height: 28px; cursor: pointer; transition: all 0.15s; }
.ap-opt-del:hover { color: var(--danger, #e5484d); border-color: var(--danger, #e5484d); }
#apAddOpt { margin: 0.2rem 0 0.4rem; }
.ap-submit-row { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.ap-status { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; border: 1px solid; border-radius: 99px; padding: 0.15rem 0.55rem; vertical-align: middle; }
.ap-status.open { color: #2BD9A8; }
.ap-status.resolved { color: var(--gold); }
.ap-status.cancelled { color: var(--muted); }
.pred-q-row { display: flex; align-items: flex-start; gap: 0.5rem; }
.pred-q-row .pred-q { flex: 1; }
.pred-translate { background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 0.85rem; width: 30px; height: 30px; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
.pred-translate:hover, .pred-translate.on { color: var(--text); border-color: var(--vice, #FF4D8D); }
@media (max-width: 560px) { .ap-opt-row { grid-template-columns: 20px 1fr 30px; } .ap-opt-row .ap-opt-en { grid-column: 2; } }

/* ===== Predictions : selection claire + lignes simplifiees ===== */
.ap-opt-row { grid-template-columns: 26px 1fr 30px; }
.pred-opt.picked { background: rgba(255,77,141,0.13); border-color: var(--vice, #FF4D8D); box-shadow: 0 0 0 1px var(--vice, #FF4D8D); }
.pred-opt.picked .poll-label::before { content: "? "; color: var(--vice, #FF4D8D); font-weight: 700; }

/* =====================================================================
   PRÉDICTIONS v2 — REDESIGN premium + animations
   ===================================================================== */
/* Solde = pastille dorée */
.preds-balance { margin-bottom: 1.6rem; }
.preds-wallet {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid rgba(255,209,102,0.42); border-radius: 99px; padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, rgba(255,209,102,0.16), rgba(255,122,89,0.05));
  box-shadow: 0 8px 22px -12px rgba(255,209,102,0.5);
}
.preds-wallet-ico { font-size: 1.05rem; }
.preds-wallet-txt { font-size: 0.9rem; color: var(--muted); }
.preds-wallet-txt b { color: var(--gold); font-size: 1.05rem; }

/* Titres de section : pastille icône + barre d'accent */
.preds-section-title { display: flex; align-items: center; gap: 0.55rem; font-size: 1.2rem; }

/* Table meilleurs parieurs : conteneur arrondi, podium, badges, survol */
.preds-table {
  border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.008));
}
.preds-table th {
  padding: 0.8rem 1.1rem; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.preds-table td { padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.preds-table tbody tr:last-child td { border-bottom: none; }
.preds-table tbody tr { transition: background 0.16s ease; }
.preds-table td:first-child { font-size: 1.3rem; text-align: center; width: 3.4rem; }   /* médaille */
.preds-table td:nth-child(2) { font-weight: 600; color: #fff; }                          /* membre */
.preds-table td:nth-child(3) { color: var(--gold); font-weight: 700; }                   /* gains */
/* Podium : teinte de fond subtile pour le top 3 */
.preds-table tbody tr:nth-child(1) { background: linear-gradient(90deg, rgba(255,209,102,0.1), transparent 55%); }
.preds-table tbody tr:nth-child(2) { background: linear-gradient(90deg, rgba(206,209,219,0.07), transparent 55%); }
.preds-table tbody tr:nth-child(3) { background: linear-gradient(90deg, rgba(205,127,50,0.08), transparent 55%); }
.preds-table tbody tr:hover { background: rgba(255,77,141,0.08) !important; }

/* Cartes prédiction : verre premium + entrée + survol */
.pred-card {
  border: 1px solid rgba(255,255,255,0.09); border-radius: 18px; padding: 1.2rem 1.3rem;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  box-shadow: 0 10px 30px -20px rgba(0,0,0,0.8); position: relative; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.25,1,0.5,1), box-shadow 0.2s ease;
  animation: predIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.preds-grid .pred-card:nth-child(2) { animation-delay: 0.07s; }
.preds-grid .pred-card:nth-child(3) { animation-delay: 0.14s; }
.preds-grid .pred-card:nth-child(4) { animation-delay: 0.21s; }
@keyframes predIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pred-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--flamingo), var(--sunset), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.pred-card:hover { transform: translateY(-4px); border-color: rgba(255,77,141,0.45); box-shadow: 0 24px 50px -24px rgba(255,77,141,0.5); }
.pred-card:hover::before { opacity: 1; }
.pred-card.resolved::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pred-q { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }

/* Cagnotte = badge doré */
.pred-pot {
  display: inline-flex; align-items: center; gap: 0.35rem; margin: 0.5rem 0 0.9rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--gold); background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.32);
  border-radius: 99px; padding: 0.22rem 0.65rem;
}

/* Options : barre qui pousse, états net */
.pred-opt { border-radius: 12px; padding: 0.65rem 0.95rem; margin-bottom: 0.5rem; }
.pred-opt .poll-bar { transform-origin: left; animation: barGrow 0.7s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pred-opt:hover { border-color: rgba(255,77,141,0.4); }
.pred-opt.winner { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 18px -6px rgba(255,209,102,0.6); }
.pred-opt.winner .poll-bar { background: linear-gradient(90deg, rgba(255,209,102,0.3), rgba(255,154,61,0.18)); }
.pred-opt.mine { border-color: var(--vice); box-shadow: 0 0 0 1px var(--vice); }
.poll-label { font-weight: 600; }
.poll-pct { font-weight: 700; color: var(--text); }

/* Mon pari + date */
.pred-my {
  margin-top: 0.7rem; padding: 0.45rem 0.7rem; border-radius: 9px;
  background: rgba(255,77,141,0.08); border: 1px solid rgba(255,77,141,0.2); color: var(--text);
}
.poll-note { margin-top: 0.6rem; }

/* Formulaire de pari premium */
.pred-bet-form { margin-top: 0.9rem; }
.pred-amount {
  width: 100px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px; color: var(--sand); padding: 0.5rem 0.7rem; font-family: var(--font-mono);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pred-amount:focus { outline: none; border-color: var(--flamingo); box-shadow: 0 0 0 3px rgba(255,77,141,0.15); }
.pred-bet-btn { box-shadow: 0 8px 20px -10px rgba(255,77,141,0.6); transition: transform 0.14s ease, box-shadow 0.18s ease; }
.pred-bet-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(255,77,141,0.8); }

/* Bouton traduire : pastille claire (cohérent avec le chat) */
.pred-translate { background: rgba(255,255,255,0.06); }
.pred-translate:hover, .pred-translate.on { color: #fff; background: color-mix(in srgb, var(--vice) 22%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .pred-card { animation: none; }
  .pred-card:hover { transform: none; }
  .pred-opt .poll-bar { animation: none; }
  .pred-bet-btn:hover { transform: none; }
}
.pred-bet-btn { min-width: 110px; max-width: 100%; white-space: normal; }
@media (max-width: 560px) { .ap-opt-row { grid-template-columns: 20px 1fr 30px; } .ap-opt-row .ap-opt-en { display: none; } }

/* ===== HOME v2 : tagline FORUM, CTA anime, bande premium ===== */
.hero-tagline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.95rem, 2.6vw, 1.5rem); letter-spacing: 0.14em;
  color: rgba(243,235,224,0.92); margin-top: 0.55rem;
  text-shadow: 0 2px 16px rgba(11,6,20,0.6);
}
.hero-tagline span {
  background: var(--vice); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 700;
}

/* ===== FIX MOBILE : texte orange en degrade qui devient noir =====
   Le texte en degrade (-webkit-background-clip:text) bugge sur certains
   navigateurs mobiles (iOS / Brave + animations transform du hero) et
   s'affiche en noir/invisible. On force une couleur orange solide sur petit
   ecran pour garantir la lisibilite. */
@media (max-width: 768px) {
  .vice-text,
  .hero-tagline span,
  .nav-logo span,
  .footer-logo span,
  .loader-logo span,
  .cd-cell span {
    background: none !important;
    -webkit-text-fill-color: #FF7A59 !important;
    color: #FF7A59 !important;
  }
}
/* Pseudo "legende" : le degrade anime (-webkit-background-clip:text) casse sur
   mobile -> pseudo pale/flou. On force un or solide NET (comme VICE/LEONIDA). */
@media (max-width: 768px) {
  .name-legende {
    background: none !important;
    -webkit-text-fill-color: #FFD166 !important;
    color: #FFD166 !important;
    animation: none !important;
  }
}
.hero-cta-main { animation: ctaGlow 2.8s ease-in-out infinite; }
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 8px 30px -10px rgba(255,77,141,0.55); }
  50% { box-shadow: 0 10px 42px -6px rgba(255,77,141,0.9); }
}

.home-premium {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,209,102,0.35); border-radius: 20px;
  background: linear-gradient(135deg, #190a2c, #2a1040);
  padding: 2.2rem 2rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.home-premium:hover { transform: translateY(-3px); border-color: rgba(255,209,102,0.6); box-shadow: 0 18px 55px -18px rgba(255,209,102,0.35); }
.hp-glow {
  position: absolute; top: -50%; right: -10%; width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,154,61,0.28), transparent 70%);
  animation: hpGlow 6.5s ease-in-out infinite; pointer-events: none;
}
@keyframes hpGlow {
  0%,100% { transform: translateX(0) scale(1); opacity: 0.65; }
  50% { transform: translateX(-22px) scale(1.12); opacity: 1; }
}
.hp-body { position: relative; z-index: 1; }
.hp-eyebrow { color: var(--gold); font-size: 0.7rem; letter-spacing: 0.16em; }
.hp-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2rem); margin: 0.4rem 0 0.5rem; }
.hp-sub { color: var(--muted); font-size: 0.9rem; line-height: 1.55; max-width: 520px; }
.hp-tiers { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 1.2rem 0 1.5rem; }
.hp-tier { display: flex; flex-direction: column; gap: 0.15rem; border: 1px solid var(--border); border-radius: 12px; padding: 0.55rem 1rem; font-family: var(--font-mono); font-size: 0.95rem; color: var(--gold); }
.hp-tier b { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; color: var(--text); letter-spacing: 0.05em; }
.hp-tier.featured { border-color: var(--vice); background: rgba(255,77,141,0.08); }
@media (max-width: 560px) { .home-premium { padding: 1.6rem 1.3rem; } .hp-tier { flex: 1; min-width: 90px; align-items: center; } }

/* Entree du hero : animation auto-declenchee (independante du scroll, fiable en haut de page) */
.hero-rise { opacity: 0; animation: heroRise 0.72s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
/* Animations d accueil douces et explicitement demandees : gardees meme en "reduire les animations". */
@media (prefers-reduced-motion: reduce) {
  .hero-rise { animation: heroRise 0.72s cubic-bezier(0.22,1,0.36,1) both !important; }
  .hero-cta-main { animation: ctaGlow 2.8s ease-in-out infinite !important; }
  .hp-glow { animation: hpGlow 6.5s ease-in-out infinite !important; }
}

/* ===== Bouton Premium dans la nav (dore, brillance animee) ===== */
.nav-premium {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.3rem;
  border: 1px solid rgba(255,209,102,0.55); border-radius: 99px;
  background: linear-gradient(135deg, rgba(255,209,102,0.16), rgba(255,154,61,0.1));
  color: var(--gold); font-family: var(--font-mono); font-size: 0.72rem; line-height: 1;
  font-weight: 600; letter-spacing: 0.06em; padding: 0.5rem 1rem; cursor: pointer;
  text-indent: 0.06em; /* compense l'espacement de lettre en fin de texte */
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; white-space: nowrap;
}
.nav-premium:hover { transform: translateY(-1px); border-color: var(--gold); box-shadow: 0 6px 22px -8px rgba(255,209,102,0.7); }
.nav-premium::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); animation: premiumShine 4.5s ease-in-out infinite;
}
@keyframes premiumShine { 0%, 60% { left: -60%; } 80%, 100% { left: 130%; } }
.mm-premium { color: var(--gold) !important; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .nav-premium::after { animation: premiumShine 4.5s ease-in-out infinite !important; }
}
@media (max-width: 980px) { .nav-premium { display: none; } }

/* ===== Diaporama de fond du hero (images deposees par le proprietaire) ===== */
.hero-slides {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  /* Un seul mouvement continu : zoom tres lent en va-et-vient infini, jamais
     coupe ni reinitialise -> parfaitement fluide. Porte par le conteneur (1 seule
     couche GPU) plutot que par image, ce qui evite les a-coups. */
  animation: heroBreath 34s ease-in-out infinite alternate;
  transform-origin: 52% 46%; will-change: transform;
}
@keyframes heroBreath { from { transform: scale(1.0); } to { transform: scale(1.1); } }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* Fondu pur (opacite seule) : la propriete la plus fluide a animer */
  opacity: 0; transition: opacity 1.6s ease-in-out;
}
.hero-slide.on { opacity: 1; }
/* Voile sombre pour garder le texte parfaitement lisible sur n importe quelle image */
.hero-photo-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 1s ease;
  background:
    linear-gradient(180deg, rgba(11,6,20,0.6) 0%, rgba(11,6,20,0.2) 38%, rgba(11,6,20,0.72) 100%),
    radial-gradient(ellipse 75% 55% at 50% 46%, transparent 0%, rgba(11,6,20,0.55) 100%);
}
.hero.has-photo .hero-photo-scrim { opacity: 1; }
/* Le fondu et le zoom restent actifs meme avec "reduire les animations" (souhait
   explicite de l'utilisateur) : on bat la regle globale reduce-motion. */
@media (prefers-reduced-motion: reduce) {
  .hero-slides { animation: heroBreath 34s ease-in-out infinite alternate !important; }
  .hero-slide { transition: opacity 1.6s ease-in-out !important; }
}

/* Titre boutique en sous-titre proeminent sous le pseudo du profil */
.profile-title-line {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--gold); margin: 0.15rem 0 0.5rem; font-weight: 600;
}

/* Actions sur les messages prives (heure + traduire + supprimer) */
.dm-msg-foot { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; }
.dm-msg-foot time { font-size: 0.58rem; color: var(--muted); font-family: var(--font-mono); }
.dm-act { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.72rem; padding: 0.1rem 0.25rem; border-radius: 6px; transition: color 0.15s, background 0.15s; opacity: 0; }
.dm-msg:hover .dm-act { opacity: 0.8; }
.dm-act:hover { opacity: 1; color: var(--text); background: rgba(255,255,255,0.06); }
.dm-del:hover { color: var(--danger, #e5484d); }
.dm-msg-txt { font-size: 0.88rem; line-height: 1.45; word-wrap: break-word; display: block; }

/* En-tete du fil DM : groupe d actions (bloquer + supprimer conversation) */
.dm-thread-actions { display: flex; gap: 0.4rem; }

/* ===== POLISH ANIMATION (skills ui-animation + ui-ux-pro-max) ===== */
/* Entree echelonnee des sujets : seulement les premiers items (listes longues = pas de stagger) */
@keyframes rowIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.topic-list .topic-row { animation: rowIn 0.34s cubic-bezier(0.22,1,0.36,1) both; }
.topic-list .topic-row:nth-child(1) { animation-delay: 0.02s; }
.topic-list .topic-row:nth-child(2) { animation-delay: 0.06s; }
.topic-list .topic-row:nth-child(3) { animation-delay: 0.10s; }
.topic-list .topic-row:nth-child(4) { animation-delay: 0.14s; }
.topic-list .topic-row:nth-child(5) { animation-delay: 0.18s; }
.topic-list .topic-row:nth-child(6) { animation-delay: 0.22s; }
.topic-list .topic-row:nth-child(7) { animation-delay: 0.26s; }
.topic-list .topic-row:nth-child(n+8) { animation-delay: 0.30s; }

/* Retour tactile au clic sur les cartes cliquables (scale subtil, GPU only) */
.topic-row:active { transform: translateX(4px) scale(0.99); }
.rank-row:active, .dm-conv-row:active, .legend-cell:active, .shop-cell:active, .pred-card:active { transform: scale(0.985); }
.rank-row, .dm-conv-row, .legend-cell { transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.2s ease, background 0.15s ease; }

/* Les animations d entree decoratives suivent reduire-les-animations (geree globalement) */

/* Reduce-motion : pas d entree echelonnee, sujets visibles immediatement (accessibilite) */
@media (prefers-reduced-motion: reduce) {
  .topic-list .topic-row { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Badge premium LEGENDE : dore plus intense que les paliers inferieurs */
.tag.gold.legende {
  background: rgba(255,209,102,0.16); border-color: rgba(255,209,102,0.7);
  box-shadow: 0 0 14px -4px rgba(255,209,102,0.8);
}

/* ===== BADGES STAFF (owner / admin / moderateur) ===== */
.staff-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 99px; padding: 0.3rem 0.7rem; line-height: 1;
  border: 1px solid currentColor; white-space: nowrap;
}
.staff-badge.owner { color: #FFDF8E; background: rgba(255,209,102,0.2); box-shadow: 0 0 16px -3px rgba(255,209,102,0.85); }
.staff-badge.admin { color: #FF7AAE; background: rgba(255,77,141,0.2); box-shadow: 0 0 16px -4px rgba(255,77,141,0.7); }
.staff-badge.mod   { color: #C4A6FF; background: rgba(139,108,255,0.2); box-shadow: 0 0 16px -4px rgba(139,108,255,0.6); }

/* Badge FONDATEUR (rareté — 100 premiers abonnés) */
.founder-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 99px;
  padding: 0.3rem 0.7rem; line-height: 1; white-space: nowrap;
  color: #8DF0E2; background: rgba(64,224,208,0.16); border: 1px solid rgba(127,231,217,0.6);
  box-shadow: 0 0 16px -4px rgba(64,224,208,0.6);
}
.founder-fomo {
  max-width: 640px; margin: 0.2rem auto 1.6rem; text-align: center;
  padding: 0.7rem 1.1rem; border-radius: 12px;
  background: rgba(64,224,208,0.1); border: 1px solid rgba(127,231,217,0.4);
  color: #C7F4ED; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
}
.founder-fomo-badge { font-size: 1.05rem; }

/* Icônes SVG (héritent la couleur et la taille du texte) */
.ic { display: inline-block; vertical-align: -0.14em; flex-shrink: 0; }
i[data-ic], i[data-plogo] { display: inline-flex; align-items: center; line-height: 0; }
/* Vrais logos de plateforme (PlayStation / Xbox / Windows) */
.plogo { display: inline-block; vertical-align: -0.16em; }
.pf i[data-plogo] { font-size: 1.05em; margin-right: 0.15em; }
.topic-row-avatar .plogo, .reply-avatar .plogo { height: 1.2em; }
/* Icône de titre de section : taille (~0.85em) et couleur d'accent */
h2 > i[data-ic], h3 > i[data-ic], .page-title i[data-ic] { color: var(--flamingo); font-size: 0.85em; margin-right: 0.12em; }
h2 > i[data-ic] .ic, h3 > i[data-ic] .ic, .page-title i[data-ic] .ic { vertical-align: -0.1em; }

/* Badge staff collé au nom (profil public + profil perso) */
.up-name-row, .profile-name-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: nowrap; min-width: 0; }
.up-name-row h2, .profile-name-row h1 { margin: 0; line-height: 1.3; min-width: 0; white-space: nowrap; }
.staff-badge-inline { flex-shrink: 0; align-self: center; position: relative; top: 0.05em; }

/* Profil : survol subtil des cartes (desktop) */
.profile-grid .card { transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.profile-grid .card:hover { border-color: var(--border-hot); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .profile-grid .card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.7); }
}
/* R�le owner dans le tableau admin */
.role-chip.owner { background: rgba(255,209,102,0.16); color: #FFD166; border: 1px solid rgba(255,209,102,0.5); }

/* =====================================================================
   PROFIL v2 — REDESIGN premium (prive + public) + animations
   ===================================================================== */
/* --- Banniere prive : plus immersive, fondu vers la page + reflet anime --- */
.profile-banner { height: 250px; }
.profile-banner::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 110px;
  background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none;
}
.profile-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.1) 48%, transparent 58%);
  background-size: 280% 100%; animation: bannerSheen 7.5s ease-in-out infinite;
}
@keyframes bannerSheen { 0% { background-position: 145% 0; } 55%, 100% { background-position: -145% 0; } }
.profile-banner .btn {
  background: rgba(11,6,20,0.5); border: 1px solid rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* --- Avatar prive : halo qui pulse (rose <-> orange) + zoom au survol --- */
.profile-avatar {
  width: 124px; height: 124px;
  transition: transform 0.25s cubic-bezier(0.25,1,0.5,1);
  animation: avatarPulse 3.2s ease-in-out infinite;
}
.profile-avatar:hover { transform: scale(1.05) translateY(-2px); }
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(255,77,141,0.5), 0 0 20px -3px rgba(255,77,141,0.5), 0 14px 34px -12px rgba(0,0,0,0.75); }
  50%     { box-shadow: 0 0 0 3px rgba(255,154,61,0.55), 0 0 30px 0 rgba(255,154,61,0.65), 0 14px 34px -12px rgba(0,0,0,0.75); }
}
.profile-id h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.45); }

/* --- Cartes : verre premium + lisere haut au survol + entree en cascade --- */
.profile-grid .card {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 32px -20px rgba(0,0,0,0.85);
  animation: cardRise 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.profile-grid .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--flamingo), var(--sunset), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.profile-grid .card:hover::before { opacity: 1; }
@keyframes cardRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.profile-grid .card:nth-child(2) { animation-delay: 0.06s; }
.profile-grid .card:nth-child(3) { animation-delay: 0.12s; }
.profile-grid .card:nth-child(4) { animation-delay: 0.18s; }
.profile-grid .card:nth-child(5) { animation-delay: 0.24s; }
.profile-grid .card:nth-child(6) { animation-delay: 0.3s; }

/* --- Carte niveau : icone lumineuse + barre XP avec reflet qui glisse --- */
.level-icon { filter: drop-shadow(0 0 10px currentColor); }
.profile-grid .xp-track { height: 10px; background: rgba(0,0,0,0.45); box-shadow: inset 0 1px 3px rgba(0,0,0,0.55); }
.profile-grid .xp-bar { position: relative; background: linear-gradient(90deg, #FF4D8D, #FF9A3D 60%, #FFD166); box-shadow: 0 0 12px -2px rgba(255,154,61,0.85); }
.profile-grid .xp-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 220% 100%; animation: xpShine 2.6s ease-in-out infinite;
}
@keyframes xpShine { 0% { background-position: 210% 0; } 60%, 100% { background-position: -120% 0; } }

/* --- Boutons plateforme : selection premium --- */
.pf:hover { border-color: rgba(255,77,141,0.5); }
.pf.sel { border-color: var(--flamingo); background: rgba(255,77,141,0.14); color: #fff; box-shadow: 0 0 14px -4px rgba(255,77,141,0.65); }

/* --- Profil PUBLIC (modale) : avatar qui pulse, banniere animee, stats vivantes --- */
.up-avatar { animation: upAvatarPulse 3.2s ease-in-out infinite; }
@keyframes upAvatarPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(20,8,31,0.95), 0 0 18px -2px rgba(255,77,141,0.45), 0 8px 24px rgba(0,0,0,0.45); }
  50%     { box-shadow: 0 0 0 4px rgba(20,8,31,0.95), 0 0 28px 1px rgba(255,77,141,0.7), 0 8px 24px rgba(0,0,0,0.45); }
}
.up-banner { overflow: hidden; }
.up-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.12) 48%, transparent 58%);
  background-size: 280% 100%; animation: bannerSheen 7.5s ease-in-out infinite;
}
.up-stat { transition: background 0.15s ease; }
.up-stat:hover { background: rgba(255,77,141,0.08); }
.up-stat b { color: #fff; }

/* --- Accessibilite : coupe les animations si demande --- */
@media (prefers-reduced-motion: reduce) {
  .profile-banner::before, .up-banner::after, .profile-grid .xp-bar::after,
  .profile-avatar, .up-avatar, .profile-grid .card { animation: none; }
  .profile-avatar:hover { transform: none; }
}

/* =====================================================================
   MOBILE — cibles tactiles + lisibilite (place en fin de fichier pour
   gagner la cascade sur toutes les regles de base definies plus haut)
   ===================================================================== */
@media (max-width: 640px) {
  /* --- Barre de nav + cibles tactiles (norme 44px Apple / 48dp Material) --- */
  .nav {
    padding: max(0.55rem, env(safe-area-inset-top))
             max(clamp(0.9rem, 4vw, 2.5rem), env(safe-area-inset-right))
             0.55rem
             max(clamp(0.9rem, 4vw, 2.5rem), env(safe-area-inset-left));
    gap: 0.5rem;
  }
  .nav-actions { gap: 0.45rem; }
  .hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; font-size: 1.55rem; line-height: 1;
  }
  #notifBtn, #dmNavBtn { width: 42px; height: 42px; }
  .lang-switch button { padding: 0.55rem 0.7rem; min-height: 40px; }
  .nav-logo { display: inline-flex; align-items: center; min-height: 40px; }
  /* Header allege : le pseudo + Deconnexion passent dans le menu hamburger,
     ce qui libere la barre et garde le bouton menu (☰) accessible. */
  .user-chip, #navUser .btn.ghost { display: none; }
  /* Panneau notifications : pleine largeur sous la nav (fini le debordement a gauche) */
  #notifPanel {
    position: fixed; top: calc(64px + env(safe-area-inset-top));
    left: max(0.6rem, env(safe-area-inset-left));
    right: max(0.6rem, env(safe-area-inset-right));
    width: auto; max-width: none;
  }
  .btn { min-height: 46px; }
  .btn.sm { min-height: 40px; }
  .chat-tabs button { min-height: 38px; }
  .link-arrow { min-height: 40px; display: inline-flex; align-items: center; }
  .btn, button, a, .nav-link, .chat-tabs button { touch-action: manipulation; }

  /* --- Anti-zoom iOS : police des champs >= 16px (!important bat les regles ciblees) --- */
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  select, textarea { font-size: 16px !important; }

  /* --- Lisibilite du texte de lecture --- */
  .topic-body { font-size: 1rem; }
  .reply-body, .chat-msg-text, .dm-msg-txt, .up-bio { font-size: 0.95rem; }
  .shop-desc { font-size: 0.82rem; }
  /* Plancher de lisibilite pour les plus petits libelles */
  .cd-cell label { font-size: 0.66rem; }
  .cd-caption, .hero-eyebrow { font-size: 0.8rem; }
  .chat-msg-time, .shop-wallet-label, .shop-wallet-hint,
  .premium-current-badge, .cat-count { font-size: 0.7rem; }
}

/* =====================================================================
   ONBOARDING — bande "Comment ca marche" (visiteurs non connectes)
   ===================================================================== */
.section-head.center { text-align: center; flex-direction: column; align-items: center; gap: 0.4rem; }
.section-lead { color: var(--muted); font-size: 0.95rem; max-width: 560px; margin: 0 auto; line-height: 1.55; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.onboard-step {
  position: relative; text-align: center; padding: 1.7rem 1.3rem 1.4rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.onboard-step:hover { transform: translateY(-3px); border-color: var(--border-hot); box-shadow: 0 16px 40px -20px rgba(255,77,141,0.5); }
.onboard-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--vice);
  color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.onboard-ico { display: block; font-size: 2.4rem; line-height: 1; margin: 0.5rem 0 0.8rem; }
.onboard-step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 0 0.45rem; }
.onboard-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.onboard-cta { text-align: center; margin-top: 1.8rem; }
@media (max-width: 720px) {
  .onboard-steps { grid-template-columns: 1fr; gap: 1.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* Etat vide engageant (forum sans sujet, derniers sujets, etc.) */
.empty-invite {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  text-align: center; padding: 2.4rem 1.4rem;
  border: 1px dashed var(--border); border-radius: 16px; background: rgba(255,255,255,0.02);
}
.empty-invite-ico { font-size: 2.2rem; line-height: 1; opacity: 0.9; }
.empty-invite p { color: var(--muted); margin: 0; font-size: 0.92rem; max-width: 360px; }

/* =====================================================================
   GAMIFICATION — widget de progression (home) + toast de recompense
   ===================================================================== */
.progress-widget {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  max-width: 1100px; margin: 1rem auto 0; padding: 0.9rem 1.3rem;
  border: 1px solid var(--border); border-left: 3px solid var(--lvl, var(--flamingo));
  border-radius: 14px; background: rgba(255,255,255,0.03);
}
.pw-level { display: flex; align-items: center; gap: 0.7rem; }
.pw-ico { font-size: 1.8rem; line-height: 1; }
.pw-id { display: flex; flex-direction: column; line-height: 1.25; }
.pw-id b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; color: var(--lvl, var(--text)); }
.pw-id .mono { font-size: 0.72rem; color: var(--muted); }
.pw-progress { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 0.35rem; }
.pw-bar-track { height: 7px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; }
.pw-bar { height: 100%; border-radius: 99px; background: var(--lvl, var(--flamingo)); transition: width 0.7s cubic-bezier(0.22,1,0.36,1); }
.pw-next { font-size: 0.7rem; color: var(--muted); }
@media (max-width: 560px) {
  .progress-widget { gap: 0.8rem; }
  .pw-progress { order: 3; flex-basis: 100%; }
}

/* Toast "+X points" : recompense visuelle immediate apres une contribution */
.points-toast {
  position: fixed; left: 50%; top: 26%; z-index: 4000; pointer-events: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: 0.03em;
  color: #FFD166; padding: 0.6rem 1.25rem; border-radius: 99px;
  background: rgba(11,6,20,0.88); border: 1px solid rgba(255,209,102,0.6);
  box-shadow: 0 12px 44px -10px rgba(255,209,102,0.6);
  animation: ptIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.points-toast.out { animation: ptOut 0.6s ease forwards; }
.pt-coin { font-size: 1.2rem; }
@keyframes ptIn  { from { opacity: 0; transform: translate(-50%, 16px) scale(0.85); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes ptOut { from { opacity: 1; transform: translate(-50%, 0) scale(1); }        to { opacity: 0; transform: translate(-50%, -34px) scale(0.95); } }
/* Animations de recompense gardees meme en "reduire les animations" (feedback voulu) */
@media (prefers-reduced-motion: reduce) {
  .points-toast { animation: ptIn 0.5s cubic-bezier(0.22,1,0.36,1) both !important; }
  .points-toast.out { animation: ptOut 0.6s ease forwards !important; }
  .pw-bar { transition: width 0.7s cubic-bezier(0.22,1,0.36,1) !important; }
}

/* =====================================================================
   REACTIONS EMOJI sur les messages (😂🔥💀…)
   ===================================================================== */
.reply-reactions { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; margin: 0.55rem 0 0.1rem; }
.reaction-pill {
  display: inline-flex; align-items: center; gap: 0.28rem; line-height: 1.3;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 99px;
  padding: 0.12rem 0.55rem; font-size: 0.9rem; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s, background 0.15s;
}
.reaction-pill span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.reaction-pill:hover { border-color: var(--border-hot); }
.reaction-pill:active { transform: scale(0.9); }
.reaction-pill.on { background: rgba(255,77,141,0.14); border-color: var(--flamingo); }
.reaction-pill.on span { color: var(--flamingo); }

.reaction-add-wrap { position: relative; display: inline-flex; }
.reaction-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 26px; border-radius: 99px; cursor: pointer; font-size: 0.82rem; line-height: 1;
  background: none; border: 1px solid var(--border); color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.reaction-add:hover { color: var(--text); border-color: var(--border-hot); }
.reaction-picker {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 30;
  display: none; gap: 0.1rem; padding: 0.35rem;
  background: #1b1029; border: 1px solid var(--border-hot); border-radius: 12px;
  box-shadow: 0 14px 38px -12px rgba(0,0,0,0.85);
}
.reaction-add-wrap.open .reaction-picker { display: flex; animation: rpick-in 150ms cubic-bezier(0.25, 1, 0.5, 1); transform-origin: top left; }
@keyframes rpick-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .reaction-add-wrap.open .reaction-picker { animation: none; }
}
.rpick {
  background: none; border: none; cursor: pointer; font-size: 0.95rem; line-height: 1;
  padding: 0.1rem 0.14rem; border-radius: 8px; transition: transform 0.12s ease, background 0.15s;
}
.rpick:hover { background: rgba(255,255,255,0.08); transform: scale(1.18); }
.rpick.on { background: rgba(255,77,141,0.18); }
.reaction-picker { flex-wrap: wrap; max-width: 232px; }
/* Réactions premium : emojis exclusifs (👑 💎 🤑 🦩) */
.rpick.prem:not(.locked) { background: rgba(255,209,102,0.14); }
.rpick.prem.locked { opacity: 0.42; filter: grayscale(0.5); cursor: not-allowed; }
.reaction-pill.prem { border-color: rgba(255,209,102,0.5); background: rgba(255,209,102,0.12); }
.reaction-pill.prem span { color: var(--gold); }

/* ===== Pack Wallpapers 4K (premium) ===== */
.wpp-section { max-width: 1100px; margin: 2.6rem auto 0; padding: 0 1.5rem 1rem; }
.wpp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1.2rem; }
.wpp-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--dusk-2); }
.wpp-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.3s ease, filter 0.3s ease; }
.wpp-item:hover img { transform: scale(1.04); }
.wpp-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.7rem; }
.wpp-name { font-size: 0.78rem; color: var(--sand); font-weight: 600; }
.wpp-dl {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; text-decoration: none; flex-shrink: 0;
  background: rgba(255,209,102,0.16); color: var(--gold); border: 1px solid rgba(255,209,102,0.45);
  font-size: 0.95rem; transition: background 0.15s, transform 0.12s;
}
.wpp-dl:hover { background: rgba(255,209,102,0.28); }
.wpp-dl:active { transform: scale(0.9); }
.wpp-lock { font-size: 0.95rem; opacity: 0.85; flex-shrink: 0; }
.wpp-grid.locked .wpp-item img { filter: blur(7px) brightness(0.55); }
.wpp-grid.locked .wpp-item { pointer-events: none; }
.wpp-caption { color: var(--muted); font-size: 0.78rem; margin-top: 1rem; letter-spacing: 0.04em; }
@media (max-width: 720px) { .wpp-grid { grid-template-columns: repeat(2, 1fr); } }

/* Réactions du chat : compactes et discrètes (bouton + visible au survol/focus) */
.chat-reactions { margin: 0.35rem 0 0; gap: 0.28rem; }
.chat-reactions:empty { display: none; }
.chat-reactions .reaction-pill { padding: 0.04rem 0.45rem; font-size: 0.82rem; }
.chat-reactions .reaction-pill span { font-size: 0.66rem; }
.chat-reactions .reaction-add {
  width: 27px; height: 21px; font-size: 0.72rem; opacity: 0.45;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.chat-msg:hover .chat-reactions .reaction-add,
.chat-reactions .reaction-add:focus-visible,
.chat-reactions .reaction-add-wrap.open .reaction-add { opacity: 1; }
@media (hover: none) { .chat-reactions .reaction-add { opacity: 0.7; } }

/* Le selecteur de reactions ne doit jamais deborder de l'ecran ni du chat :
   on limite sa largeur a la fenetre, et pour ses propres messages (a droite)
   on l'ancre a droite du bouton pour qu'il ouvre vers l'interieur. */
.reaction-picker { width: max-content; max-width: calc(100vw - 20px); flex-wrap: nowrap; }
.chat-msg.mine .reaction-picker { left: auto; right: 0; transform-origin: top right; }
/* Dans le chat : la barre d'emotes s'ouvre EN DESSOUS du bouton (ne recouvre plus le message) */
.chat-msg .reaction-picker { top: calc(100% + 6px); bottom: auto; }

/* =====================================================================
   CHAT v2 — REDESIGN premium (PC + mobile) + animations
   ===================================================================== */
/* Conteneur : plus de profondeur */
.chat-box { border: 1px solid rgba(255,77,141,0.14); box-shadow: 0 30px 80px -40px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.03); }
.chat-messages { gap: 0.85rem; padding: 1.2rem 1.3rem; }

/* Onglets Général / Salon Leonida : pilules premium */
.chat-tabs button { font-weight: 700; letter-spacing: 0.02em; transition: all 0.18s cubic-bezier(0.25,1,0.5,1); }
.chat-tabs button:hover { transform: translateY(-1px); }
.chat-tabs button.on {
  background: linear-gradient(135deg, rgba(255,77,141,0.92), rgba(255,154,61,0.78)); color: #fff;
  border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255,77,141,0.7);
}

/* Avatars : anneau rose + ombre */
.chat-msg .reply-avatar { width: 36px; height: 36px; border: 2px solid rgba(255,77,141,0.35); box-shadow: 0 4px 12px -4px rgba(0,0,0,0.6); }

/* Bulles : profondeur subtile */
.chat-msg-body {
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 4px 16px -10px rgba(0,0,0,0.7);
}
.chat-msg.mine .chat-msg-body { background: linear-gradient(135deg, rgba(255,77,141,0.26), rgba(255,154,61,0.14)); border-color: rgba(255,77,141,0.4); }

/* Bouton Traduire : PILULE claire et toujours visible (mobile inclus) */
.chat-translate {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; padding: 0.12rem 0.34rem; margin-left: 0.3rem;
  font-size: 0.72rem; line-height: 1; vertical-align: middle; border-radius: 8px;
  opacity: 0.85; filter: none;
  transition: opacity 0.15s ease, transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.chat-msg:hover .chat-translate { opacity: 1; }
.chat-translate:hover { opacity: 1; transform: scale(1.12); background: color-mix(in srgb, var(--violet) 22%, transparent); border-color: var(--violet); filter: none; }
.chat-translate.on { opacity: 1; background: color-mix(in srgb, var(--violet) 30%, transparent); border-color: var(--violet); }
@media (hover: none) { .chat-translate { opacity: 0.95; } }

/* Zone de saisie : input + bouton envoyer premium */
.chat-input-row { padding: 1rem 1.1rem; background: rgba(255,255,255,0.02); }
.chat-input-row input {
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.1); padding: 0.8rem 1.2rem;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.chat-input-row input:focus { background: rgba(0,0,0,0.5); box-shadow: 0 0 0 3px rgba(255,77,141,0.16); }
.chat-input-row .btn { font-weight: 700; box-shadow: 0 8px 22px -8px rgba(255,77,141,0.6); transition: transform 0.14s ease, box-shadow 0.18s ease; }
.chat-input-row .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(255,77,141,0.8); }
.chat-input-row .btn:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .chat-msg { animation: none; }
  .chat-tabs button:hover, .chat-input-row .btn:hover, .chat-translate:hover { transform: none; }
}

/* ===== Compte à rebours / événement (home) ===== */
.countdown-section { margin-top: 1.4rem; }
.countdown-card {
  position: relative; text-align: center; overflow: hidden;
  padding: 1.7rem 1.2rem; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255,77,141,0.22), transparent 60%),
    linear-gradient(180deg, rgba(40,18,52,0.92), rgba(20,8,31,0.92));
  border: 1px solid var(--border-hot);
  box-shadow: 0 22px 60px -28px rgba(255,77,141,0.5);
}
.cd-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--flamingo);
}
.cd-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 4.4vw, 2.5rem);
  letter-spacing: 0.04em; text-transform: uppercase; margin: 0.4rem 0 0.1rem; color: #fff;
}
.cd-sub { color: var(--muted); font-size: 0.92rem; margin: 0.1rem auto 0; max-width: 36rem; }
.cd-clock {
  display: inline-flex; align-items: flex-start; gap: 0.55rem; margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.cd-num {
  font-family: var(--font-display); font-size: clamp(2rem, 7.5vw, 3.5rem); line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(255,77,141,0.45);
}
.cd-lbl {
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.45rem;
}
.acd-sep {
  font-family: var(--font-display); font-size: clamp(1.6rem, 5.5vw, 2.7rem); line-height: 1;
  color: rgba(255,77,141,0.5); align-self: flex-start; margin-top: 0.05rem;
}
.cd-live {
  font-family: var(--font-display); font-size: clamp(1.3rem, 4.4vw, 2.1rem);
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--flamingo); margin-top: 0.5rem;
}
@media (prefers-reduced-motion: no-preference) {
  .cd-live { animation: cdPulse 1.6s ease-in-out infinite; }
  @keyframes cdPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}

/* =====================================================================
   PARRAINAGE — carte "Invite tes amis" (profil)
   ===================================================================== */
#referralCardWrap { border-left: 3px solid var(--gold, #FFD166); }
.ref-lead { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin: 0 0 0.9rem; }
.ref-link-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.ref-link {
  flex: 1; min-width: 200px;
  background: rgba(11,6,20,0.6); border: 1px solid var(--border); border-radius: 10px;
  color: var(--sand); font-family: var(--font-mono); font-size: 0.82rem; padding: 0.6rem 0.8rem;
}
.ref-link:focus { outline: none; border-color: var(--gold, #FFD166); }
.ref-stat { margin-top: 0.95rem; color: var(--muted); font-size: 0.9rem; }
.ref-stat b { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold, #FFD166); margin-right: 0.35rem; }

/* =====================================================================
   MEMBRE DE LA SEMAINE (home)
   ===================================================================== */
.motw-card {
  display: flex; align-items: center; gap: 1.1rem;
  max-width: 1100px; margin: 0 auto; padding: 1.05rem 1.4rem;
  border: 1px solid var(--border); border-left: 3px solid var(--lvl, var(--gold, #FFD166));
  border-radius: 16px; background: rgba(255,209,102,0.05);
}
.motw-medal { font-size: 1.8rem; line-height: 1; }
.motw-ava {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--lvl, var(--gold));
  overflow: hidden; flex-shrink: 0; background: rgba(11,6,20,0.6);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.motw-ava img { width: 100%; height: 100%; object-fit: cover; }
.motw-info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 0.15rem; }
.motw-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; cursor: pointer; color: #fff; }
.motw-name:hover { text-decoration: underline; }
.motw-lvl { font-family: var(--font-mono); font-size: 0.75rem; }
.motw-count { text-align: center; flex-shrink: 0; }
.motw-count b { display: block; font-family: var(--font-display); font-size: 1.65rem; color: var(--gold, #FFD166); line-height: 1; }
.motw-count span { font-size: 0.68rem; color: var(--muted); }
@media (max-width: 560px) {
  .motw-card { flex-wrap: wrap; gap: 0.8rem; }
  .motw-count { flex-basis: 100%; text-align: left; display: flex; align-items: baseline; gap: 0.4rem; }
}

/* =====================================================================
   SONDAGE DE LA SEMAINE (home)
   ===================================================================== */
.wp-card {
  max-width: 1100px; margin: 0 auto; padding: 1.3rem 1.5rem;
  border: 1px solid var(--border); border-left: 3px solid var(--flamingo);
  border-radius: 16px; background: rgba(255,255,255,0.03);
}
.wp-question { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.02em; margin: 0 0 1rem; color: #fff; }
.wp-opts { display: flex; flex-direction: column; gap: 0.55rem; }
.wp-opt {
  position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,0.03);
  padding: 0.7rem 0.95rem; color: var(--sand); font-size: 0.95rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.wp-opt:hover { border-color: var(--border-hot); }
.wp-opt:active { transform: scale(0.99); }
.wp-opt.mine { border-color: var(--flamingo); }
.wp-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 0;
  background: rgba(255,77,141,0.16); transition: width 0.55s cubic-bezier(0.22,1,0.36,1);
}
.wp-opt.mine .wp-bar { background: rgba(255,77,141,0.3); }
.wp-label, .wp-pct { position: relative; z-index: 1; }
.wp-label { font-weight: 600; }
.wp-pct { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }
.wp-opt.mine .wp-pct { color: var(--flamingo); }
.wp-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.9rem; flex-wrap: wrap; }
.wp-total { margin: 0; font-size: 0.75rem; color: var(--muted); }
.wp-tr, .ct-tr, .ct-modal-tr { font-size: 0.72rem; }
.ct-tr, .ct-modal-tr { margin-left: 0.45rem; }

/* =====================================================================
   CONCOURS fan-art / memes (banniere home + overlay)
   ===================================================================== */
.contest-banner {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 1.2rem 1.5rem;
  border: 1px solid var(--border); border-left: 3px solid var(--palm, #2BD9A8);
  border-radius: 16px; background: rgba(43,217,168,0.05);
}
.ct-banner-main { flex: 1; min-width: 200px; }
.ct-theme { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.02em; color: #fff; }
.ct-desc { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; line-height: 1.5; }
.ct-meta { font-size: 0.72rem; color: var(--muted); margin: 0.5rem 0 0; }

.contest-modal { max-width: 760px; width: 92%; }
.ct-modal-theme { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.3rem; }
.ct-modal-desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.5rem; line-height: 1.5; }
.ct-modal-meta { font-size: 0.72rem; color: var(--muted); margin: 0 0 1rem; }
.ct-submit { border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; background: rgba(255,255,255,0.02); }
.ct-submit h4 { margin: 0 0 0.7rem; font-family: var(--font-display); letter-spacing: 0.04em; }
.ct-submit-row { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.ct-submit-row .mono { font-size: 0.75rem; color: var(--muted); }
.ct-submit #ctCaption { width: 100%; margin-bottom: 0.6rem; }

.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.9rem; }
.ct-entry { position: relative; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.02); }
.ct-entry.voted { border-color: var(--flamingo); }
.ct-entry.winner { border-color: var(--gold, #FFD166); box-shadow: 0 0 0 1px var(--gold, #FFD166), 0 10px 30px -10px rgba(255,209,102,0.5); }
.ct-entry img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; cursor: pointer; }
.ct-entry figcaption { padding: 0.5rem 0.65rem; display: flex; flex-direction: column; gap: 0.15rem; }
.ct-author { font-weight: 600; font-size: 0.82rem; }
.ct-cap { font-size: 0.76rem; color: var(--muted); word-break: break-word; }
.ct-vote {
  position: absolute; top: 0.5rem; right: 0.5rem;
  background: rgba(11,6,20,0.7); border: 1px solid rgba(255,255,255,0.2); border-radius: 99px;
  color: #fff; font-size: 0.8rem; padding: 0.2rem 0.55rem; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 0.25rem; transition: transform 0.12s, border-color 0.15s, background 0.15s;
}
.ct-vote:hover:not([disabled]) { border-color: var(--flamingo); }
.ct-vote:active:not([disabled]) { transform: scale(0.9); }
.ct-vote.on { background: rgba(255,77,141,0.5); border-color: var(--flamingo); }
.ct-vote[disabled] { opacity: 0.55; cursor: not-allowed; }
.ct-crown {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 1;
  background: var(--gold, #FFD166); color: #1a0f28; font-family: var(--font-mono); font-weight: 700;
  font-size: 0.62rem; padding: 0.18rem 0.5rem; border-radius: 99px;
}
.ct-admin-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
.ct-admin-row input { width: 90px; }
.ct-admin-row label { font-size: 0.7rem; color: var(--muted); }
.ct-admin-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; }
@media (max-width: 560px) { .ct-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* =====================================================================
   CONNEXION SOCIALE (Google / Discord)
   ===================================================================== */
.auth-or { display: flex; align-items: center; text-align: center; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1rem 0 0.3rem; gap: 0.7rem; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* Lien "mot de passe oublie" + texte d'aide des vues forgot/reset */
.auth-link { display: block; width: 100%; margin-top: 0.7rem; background: none; border: none; padding: 0; text-align: center; color: var(--violet); font-size: 0.82rem; cursor: pointer; text-decoration: none; transition: color 0.15s; }
.auth-link:hover { color: var(--flamingo); text-decoration: underline; }
.auth-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; margin: 0.2rem 0 1rem; }
.btn.social { display: flex; align-items: center; justify-content: center; gap: 0.7rem; margin-top: 0.55rem; font-weight: 600; font-size: 0.92rem; }
.btn.social .soc-ic { width: 19px; height: 19px; flex-shrink: 0; }
.btn.social.google { background: #ffffff; color: #1f1f1f; }
.btn.social.google:hover { background: #efefef; }
.btn.social.discord { background: #5865F2; color: #ffffff; }
.btn.social.discord:hover { background: #4853d4; }

/* =====================================================================
   HUB DES PERSONNAGES (vitrine artworks, defilement horizontal)
   ===================================================================== */
.chars-strip {
  display: flex; gap: 0.9rem; overflow-x: auto; padding: 0.3rem 0.1rem 0.9rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.chars-strip::-webkit-scrollbar { height: 6px; }
.chars-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.chars-strip::-webkit-scrollbar-track { background: transparent; }
.char-card {
  position: relative; flex: 0 0 240px; margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.char-card:hover { transform: translateY(-3px); border-color: var(--border-hot); box-shadow: 0 14px 34px -16px rgba(0,0,0,0.7); }
.char-card img { width: 100%; height: 150px; object-fit: cover; object-position: center 22%; display: block; }
.char-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0.85rem 0.65rem;
  background: linear-gradient(transparent, rgba(11,6,20,0.93)); pointer-events: none;
}
.char-card figcaption b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.02em; color: #fff; }
.char-card figcaption span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; }
@media (max-width: 560px) { .char-card { flex-basis: 200px; } .char-card img { height: 128px; } }

/* ===== Classement : bascule Tout temps / Cette semaine ===== */
.ranks-tabs { display: flex; gap: 0.5rem; justify-content: center; margin: 0 0 1.3rem; }
.ranks-tab {
  background: none; border: 1px solid var(--border); border-radius: 99px;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  padding: 0.42rem 1.1rem; cursor: pointer; transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.ranks-tab:hover { color: var(--text); border-color: var(--border-hot); }
.ranks-tab.on { background: rgba(255,77,141,0.12); border-color: var(--flamingo); color: #fff; }

.search-count { font-size: 0.74rem; color: var(--muted); margin: 0 0 0.7rem; letter-spacing: 0.05em; }

/* ===== Page légale ===== */
#page-legal { max-width: 880px; margin: 0 auto; padding-bottom: 3rem; }
.legal-todo {
  max-width: 880px; margin: 0 auto 1.5rem; padding: 0.8rem 1rem; border-radius: 12px;
  background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.4);
  color: #F3D27A; font-size: 0.84rem; line-height: 1.5;
}
.legal-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.legal-tab {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.9rem; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.legal-tab:hover { color: var(--sand); border-color: var(--border-hot); }
.legal-tab.on { background: rgba(255,77,141,0.12); border-color: var(--flamingo); color: #fff; }
.legal-doc { display: none; line-height: 1.65; color: var(--sand); }
.legal-doc.on { display: block; animation: legalFade 0.3s ease; }
@keyframes legalFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.legal-doc h2 { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.03em; color: #fff; margin-bottom: 0.3rem; }
.legal-doc h3 { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: 0.04em; color: var(--flamingo); margin: 1.6rem 0 0.5rem; text-transform: uppercase; }
.legal-doc p { margin: 0.5rem 0; font-size: 0.92rem; }
.legal-doc ul { margin: 0.5rem 0 0.5rem 1.2rem; }
.legal-doc li { margin: 0.3rem 0; font-size: 0.92rem; }
.legal-doc a { color: var(--flamingo); }
.legal-doc b { color: #fff; }
.legal-upd { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }

/* Liens légaux du footer */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 1.1rem; margin: 0.9rem 0; }
.footer-links button {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; padding: 0.2rem;
}
.footer-links button:hover { color: var(--flamingo); }

/* ===== CONCOURS "GAGNE GTA6" (home) ===== */
.giveaway-section { padding: 0 1rem; }
.giveaway-card {
  position: relative; overflow: hidden;
  max-width: 1100px; margin: 1.6rem auto;
  display: flex; align-items: center; gap: 2.2rem;
  padding: 2rem 2.2rem;
  background: linear-gradient(135deg, var(--dusk-2) 0%, var(--dusk) 100%);
  border: 1px solid var(--border-hot);
  border-radius: 20px;
  box-shadow: 0 18px 60px rgba(255,77,141,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
}
.gv-glow {
  position: absolute; top: -50%; left: -10%; width: 55%; height: 200%;
  background: radial-gradient(closest-side, rgba(255,209,102,0.18), transparent 70%);
  pointer-events: none; will-change: transform, opacity; animation: gvGlow 6s ease-in-out infinite;
}
@keyframes gvGlow { 0%,100% { opacity: .45; transform: translateX(0) scale(1); } 50% { opacity: 1; transform: translateX(25%) scale(1.12); } }

.gv-prize { flex: 0 0 auto; }
.gv-emblem {
  position: relative; overflow: hidden; line-height: 0; max-width: 300px;
  border: 2px solid var(--gold); border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255,209,102,0.25), 0 12px 44px rgba(255,209,102,0.22);
  will-change: transform; animation: gvFloat 5s ease-in-out infinite;
}
.gv-cover { display: none; width: 300px; max-width: 100%; height: auto; }
.gv-emblem.has-cover .gv-cover { display: block; }
.gv-emblem.has-cover .gv-fallback { display: none; }
.gv-fallback {
  width: 190px; min-height: 190px; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 1.5rem 1rem;
  background: linear-gradient(160deg, #2A1740 0%, #120A1F 100%);
}
@keyframes gvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.gv-ribbon {
  position: absolute; top: 14px; left: -36px; transform: rotate(-45deg);
  background: var(--vice); color: #1A0820;
  font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .06em;
  text-transform: uppercase; padding: .22rem 2.6rem; z-index: 3;
}
.gv-emblem-shine {
  position: absolute; top: 0; left: 0; width: 45%; height: 100%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.32), transparent);
  transform: skewX(-18deg) translateX(-220%);
  will-change: transform; animation: gvShine 3.8s ease-in-out infinite;
}
@keyframes gvShine { 0%,55% { transform: skewX(-18deg) translateX(-220%); } 100% { transform: skewX(-18deg) translateX(460%); } }
.gv-game { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--sand); letter-spacing: .02em; }
.gv-game .vice-text { background: var(--vice); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gv-edition { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.gv-body { flex: 1 1 auto; min-width: 0; }
.gv-tag {
  display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.3);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: .85rem;
}
.gv-title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.08; color: var(--sand); text-transform: uppercase; margin-bottom: .55rem; }
.gv-desc { color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 580px; margin-bottom: 1rem; }
.gv-tiers { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.gv-tier { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--gold); border: 1px solid rgba(255,209,102,0.3); border-radius: 8px; padding: .32rem .6rem; }
.gv-action { display: flex; flex-direction: column; gap: .5rem; }
.gv-join { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.gv-note { font-size: .8rem; color: var(--muted); }
.gv-entered { display: flex; align-items: center; gap: .8rem; }
.gv-entered-ico { font-size: 1.9rem; }
.gv-entered-txt { display: flex; flex-direction: column; }
.gv-entered-txt b { color: var(--gold); font-size: 1rem; }
.gv-entered-txt span { color: var(--muted); font-size: .85rem; }
.gv-legal { margin-top: .9rem; font-size: .76rem; line-height: 1.5; color: var(--muted); opacity: .85; max-width: 580px; }

@media (max-width: 760px) {
  .giveaway-card { flex-direction: column; text-align: center; padding: 1.6rem 1.2rem; gap: 1.4rem; }
  .gv-desc, .gv-legal { margin-left: auto; margin-right: auto; }
  .gv-tiers, .gv-join { justify-content: center; }
  .gv-title { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gv-glow, .gv-emblem { animation: none !important; }
  .gv-emblem-shine { display: none !important; }
}
